[02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:31]accept exits with 7 [03:21:31]New connection [03:21:31]New thread 3067366756 created [03:21:31]Thread 3067510116 joined [03:21:31]Waiting for new connection... [03:21:31] Sock 7.Parse request [03:21:31]Sock 7.Check first char [03:21:31]Sock 7.First char is OK [03:21:31]request: POST /json_proto HTTP/1.0 [03:21:31]Method: POST [03:21:31]URL: /json_proto [03:21:31]Method is POST - this is cgi request [03:21:31]url: /json_proto [03:21:31]query_string will be loaded in cgi processing [03:21:31]execute_cgi json_proto POST (null) [03:21:31]execute_cgi path=json_proto method=POST [03:21:31]POST find Content-Length [03:21:31]Host: 172.17.39.67:8080 [03:21:31]Content-Length: 671 [03:21:31]Content-Type: application/json [03:21:31] [03:21:31]POST finish read [03:21:31]Found Content-Length = 671 [03:21:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 8.030, "sum" : 540.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:21:31]execute_script... [03:21: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)1319291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 8.030, "sum" : 540.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:21:31]POST & json_proto [03:21:31]process_json_proto [03:21:31]json parsed OK: [03:21:31]protocol is kg_v1.0 [03:21:31]action value=close_receipt [03:21:31]process_action close_receipt [03:21:31]cmd_close_receipt [03:21:31]MH_GetDate [03:21:31]Write to MH i2c: F0 00 00 1E 3B 48 [03:21:31]Write i2c OK [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: F0 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: F0 09 00 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: F0 09 00 1E 3B 00 3E 44 93 66 86 7C 92 66 C6 [03:21:31]GetLastDocTimeStamp 1720924974 [03:21:31]current date 1720927294 [03:21:31]FM_GetShiftState [03:21:31]SAM_PROTO_GetShiftState [03:21:31]wFMCommunicate request_size=4 [03:21:31]MH_SAM_APDU [03:21:31]CAPDU: 80 13 01 00 [03:21:31]Write to MH i2c: E2 08 00 1F 3B 80 13 01 00 00 00 00 00 D7 [03:21:31]Write i2c OK [03:21:31]MH_I2C_Read... [03:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:21:31]Read from MH i2c: E2 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: E2 0E 00 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: E2 0E 00 1F 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 0D [03:21:31]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [03:21:31]wFMCommunicate OK [03:21:31]SAM_PROTO_GetShiftState done [03:21:31]FM_GetShiftState done [03:21:31]opened in 1720915483 [03:21:31]opened+sec_in_day 1721001883 [03:21:31]quantity*price = 54041 [03:21:31]sum+1 = 54043 [03:21:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.39 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 24 14.07.2024 03:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162712 ФПД: 229599171702802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T032134&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162712&fm=229599171702802&tin=02508201610067®Number=0000000000090858&sum=54000 [03:21:32]StoreToDocumentArchive [03:21:32]shift 463 fd 162712 [03:21:32]save to /storage/0463/doc_00162712 [03:21:32]save last doc name /storage/0463/doc_00162712 to /storage/kkm_last_doc_name [03:21:32]save OK [03:21:32]Clear old archive folders... [03:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:21:32]tlvbuf is 0063F620 [03:21:32]SAM_PROTO_ClearQueue [03:21:32]wFMCommunicate request_size=4 [03:21:32]MH_SAM_APDU [03:21:32]CAPDU: 80 09 00 00 [03:21:32]Write to MH i2c: E2 08 00 2C 3B 80 09 00 00 00 00 00 00 D9 [03:21:32]Write i2c OK [03:21:32]MH_I2C_Read... [03:21:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:21:32]Read from MH i2c: E2 [03:21:32]MH_I2C_Read... [03:21:32]Read from MH i2c: E2 03 00 [03:21:32]MH_I2C_Read... [03:21:32]Read from MH i2c: E2 03 00 2C 3B 00 90 00 DB [03:21:32]RAPDU: 90 00 [03:21:32]wFMCommunicate OK [03:21:32]SAM_PROTO_ClearQueue done [03:21:32]KKMCreateOFDPacket [03:21:32]OFDProtocolAddRootSTLVToBuf [03:21:32]FM_MakeSignedData [03:21:32]FM_MakeSignedData [03:21:32]SAM_PROTO_SignData [03:21:32]wFMCommunicate request_size=4 [03:21:32]MH_SAM_APDU [03:21:32]CAPDU: 80 0D 01 02 [03:21:32]Write to MH i2c: E2 08 00 2D 3B 80 0D 01 02 00 00 00 00 E1 [03:21:32]Write i2c OK [03:21:32]MH_I2C_Read... [03:21:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:21:33]Read from MH i2c: E2 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 03 00 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 03 00 2D 3B 00 90 00 DC [03:21:33]RAPDU: 90 00 [03:21:33]wFMCommunicate OK [03:21:33]wFMCommunicate request_size=255 [03:21:33]MH_SAM_APDU [03:21:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 1F 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 1A D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3E 44 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7B 02 00 35 04 06 00 [03:21:33]Write to MH i2c: E2 02 01 2E 3B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 1F 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 1A D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3E 44 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7B 02 00 35 04 06 00 00 00 51 [03:21:33]Write i2c OK [03:21:33]MH_I2C_Read... [03:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:21:33]Read from MH i2c: E2 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 03 00 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 03 00 2E 3B 00 90 00 DD [03:21:33]RAPDU: 90 00 [03:21:33]wFMCommunicate OK [03:21:33]wFMCommunicate request_size=11 [03:21:33]MH_SAM_APDU [03:21:33]CAPDU: 80 0D 02 02 06 D0 D1 B9 11 F0 12 [03:21:33]Write to MH i2c: E2 0E 00 2F 3B 80 0D 02 02 06 00 D0 D1 B9 11 F0 12 00 00 5D [03:21:33]Write i2c OK [03:21:33]MH_I2C_Read... [03:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:21:33]Read from MH i2c: E2 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 03 00 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 03 00 2F 3B 00 90 00 DE [03:21:33]RAPDU: 90 00 [03:21:33]wFMCommunicate OK [03:21:33]wFMCommunicate request_size=4 [03:21:33]MH_SAM_APDU [03:21:33]CAPDU: 80 0D 03 02 [03:21:33]Write to MH i2c: E2 08 00 30 3B 80 0D 03 02 00 00 00 00 E6 [03:21:33]Write i2c OK [03:21:33]MH_I2C_Read... [03:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:21:33]Read from MH i2c: E2 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 0B 00 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 0B 00 30 3B 00 5E A7 AC C9 3B 3B 4E F4 90 00 19 [03:21:33]RAPDU: 5E A7 AC C9 3B 3B 4E F4 90 00 [03:21:33]wFMCommunicate OK [03:21:33]SAM_PROTO_SignData done [03:21:33]FM_MakeSignedData done [03:21:33]CreateOFDProtocolMessage [03:21:33]wFMCommunicate request_size=4 [03:21:33]MH_SAM_APDU [03:21:33]CAPDU: 80 11 00 00 [03:21:33]Write to MH i2c: E2 08 00 31 3B 80 11 00 00 00 00 00 00 E6 [03:21:33]Write i2c OK [03:21:33]MH_I2C_Read... [03:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:21:33]Read from MH i2c: E2 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 17 00 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: E2 17 00 31 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 46 [03:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:21:33]wFMCommunicate OK [03:21:33]CreateOFDProtocolMessage done [03:21:33]OFDSenderStorePacket 162712 [03:21:33]StoreOFDPacket docnum=162712 [03:21:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A1 ED 08 01 ED 05 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 1F 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 1A D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3E 44 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7B 02 00 35 04 06 00 D0 D1 B9 11 F0 12 5E A7 AC C9 3B 3B 4E F4 [03:21:33]CheckFolder [03:21:33]dirname=/storage/ofd_packets [03:21:33]CheckFolder done [03:21:33]ProducePacketName [03:21:33]name=ofd_packets/00162712 [03:21:33]NVStorageSaveData ofd_packets/00162712 [03:21:33]File name is /storage/ofd_packets/00162712 [03:21:33]Write 302 bytes [03:21:33]NVStorageSaveData done [03:21:33]OFDSenderStorePacket done [03:21:33]KKMCreateOFDPacket done [03:21:33]NVStorageSaveData kkm_last_timestamp [03:21:33]File name is /storage/kkm_last_timestamp [03:21:33]Write 4 bytes [03:21:33]NVStorageSaveData done [03:21:33]OFD Sender: Processing packet 162712 [packets to send 106, broken 105] [03:21:33]ProducePacketName [03:21:33]name=ofd_packets/00162712 [03:21:33]OFD Sender: To server: pG, [03:21:33]CommunicateWithHost lk.salyk.kg:30040 [03:21:33]ConnectInit lk.salyk.kg [03:21:33]ExternCall_PrintAddStr [03:21:33]wPrintStart [03:21:33]Write to MH i2c: 01 00 00 32 3B 6D [03:21:33]Write i2c OK [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: 01 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: 01 07 00 [03:21:33]MH_I2C_Read... [03:21:33]Read from MH i2c: 01 07 00 32 3B 00 00 00 00 00 FF 0F 82 [03:21:33]RasterBufferAndPrint [03:21:33]line Счет N : (1)1319291 [03:21:33]line ИНН: 02508201610067 [03:21:33]line Контрольно-Кассовый Чек [03:21:33]line ПРОДАЖА [03:21:33]line ТРК (МРК, ГНК) : 52 [03:21:33]line Товар: 2710124130 [03:21:33]line Super-92-К-5 [03:21:33]line 8.030 * 67.30 [03:21:33]line = 540.42 [03:21:33]line НДС 12% НСП 1% [03:21:33]line > о реализуемом товаре [03:21:33]line ОКРУГЛЕНИЕ: -0.42 [03:21:33]line ИТОГО: 540.00 [03:21:33]line Внесено: 540.00 [03:21:33]line СДАЧА: 0.00 [03:21:33]line НСП 1% : 4.78 [03:21:33]line НДС 12% : 57.39 [03:21:33]line Наличными: 540.00 [03:21:33]line Безнал.: 0.00 [03:21:33]line Место: АЗС № 140 "Партнер Нефть" [03:21:33]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [03:21:33]line СНО: Общий режим [03:21:33]line Чек 24 14.07.2024 03:21 [03:21:33]line Смена: 463 ФФД: 1.0 [03:21:33]line ЗНМ: 0300000129 [03:21:33]line РНМ: 0000000000090858 [03:21:33]line Версия ККМ: 001 [03:21:33]line ФМ: 0000000000874899 [03:21:33]line ФД: 162712 [03:21:33]line ФПД: 229599171702802 [03:21:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T032134&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162712&fm=229599171702802&tin=02508201610067®Number=0000000000090858&sum=54000 [03:21:33]Connected sock=11 [03:21:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A1 ED 08 01 ED 05 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 1F 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 1A D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3E 44 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7B 02 00 35 04 06 00 D0 D1 B9 11 F0 12 5E A7 AC C9 3B 3B 4E F4 [03:21:33]written 0, free lines is 4095 [03:21:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CC CC 47 00 45 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7B 02 00 F4 03 04 00 4C F0 92 66 B6 04 01 00 00 62 42 41 A0 05 AB 79 30 [03:21:33]CommunicateWithHost err = 0 [03:21:33]CheckOFDResponse [03:21:33]1017 (14) - 77093643461234 [03:21:33]1041 (16) - 0000000000874899 [03:21:33]1040 (4) - 162712 [03:21:33]1012 (4) - 13.07.2024 21:23 [03:21:33]1206 (1) - 0 [03:21:33]OFD Sender: Remove packet 162712 [03:21:33]ProducePacketName [03:21:33]name=ofd_packets/00162712 [03:21:33]NVStorageDeleteData [03:21:34]Write to MH i2c: 01 00 00 5D 3B 98 [03:21:34]Write i2c OK [03:21:34]MH_I2C_Read... [03:21:34]Read from MH i2c: 01 [03:21:34]MH_I2C_Read... [03:21:34]Read from MH i2c: 01 07 00 [03:21:34]MH_I2C_Read... [03:21:34]Read from MH i2c: 01 07 00 5D 3B 00 00 00 00 00 D1 0C 7C [03:21:34]RasterBufferAndPrint [03:21:34]line [03:21:34]line [03:21:34]line [03:21:34]line [03:21:34]line [03:21:34]written 0, free lines is 3287 [03:21:34]MH_Cut [03:21:34]Write to MH i2c: D1 01 00 64 3B 01 71 [03:21:34]Write i2c OK [03:21:34]MH_I2C_Read... [03:21:34]Read from MH i2c: D1 [03:21:34]MH_I2C_Read... [03:21:34]Read from MH i2c: D1 01 00 [03:21:34]MH_I2C_Read... [03:21:34]Read from MH i2c: D1 01 00 64 3B 00 70 [03:21:34]Write to MH i2c: 01 00 00 65 3B A0 [03:21:34]Write i2c OK [03:21:34]MH_I2C_Read... [03:21:34]OFD Sender: No OFD packet to send [03:21:35]*** Cut start [03:21:35]*** Purtial cut [03:21:35]*** CUTSNS_PIN = 0 [03:21:35]*** Stage 1: CUTSNS_PIN = 1 [03:21:37]Read from MH i2c: 01 [03:21:37]MH_I2C_Read... [03:21:37]*** Stop cut motor [03:21:37]*** Cut end [03:21:37]Read from MH i2c: 01 07 00 [03:21:37]MH_I2C_Read... [03:21:37]Read from MH i2c: 01 07 00 65 3B 00 00 00 00 00 FF 0F B5 [03:21:37]process_action close_receipt done [03:21:37]requested_data is exist [03:21:37]produce_requested_data [03:21:37]requested_item fm.sn is exist - process it [03:21:37]wFMCommunicate request_size=4 [03:21:37]MH_SAM_APDU [03:21:37]CAPDU: 80 11 00 00 [03:21:37]Write to MH i2c: E2 08 00 66 3B 80 11 00 00 00 00 00 00 1B [03:21:37]Write i2c OK [03:21:37]MH_I2C_Read... [03:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:21:37]Read from MH i2c: E2 [03:21:37]MH_I2C_Read... [03:21:37]Read from MH i2c: E2 17 00 [03:21:37]MH_I2C_Read... [03:21:37]Read from MH i2c: E2 17 00 66 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7B [03:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:21:37]wFMCommunicate OK [03:21:37]requested_item fd.num is exist - process it [03:21:37]SAM_PROTO_GetFieldsCounters [03:21:37]wFMCommunicate request_size=4 [03:21:37]MH_SAM_APDU [03:21:37]CAPDU: 80 13 00 00 [03:21:37]Write to MH i2c: E2 08 00 67 3B 80 13 00 00 00 00 00 00 1E [03:21:37]Write i2c OK [03:21:37]MH_I2C_Read... [03:21:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:21:37]Read from MH i2c: E2 [03:21:37]MH_I2C_Read... [03:21:37]Read from MH i2c: E2 62 00 [03:21:37]MH_I2C_Read... [03:21:37]Read from MH i2c: E2 62 00 67 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 98 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [03:21:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 98 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:21:37]wFMCommunicate OK [03:21:37]SAM_PROTO_GetFieldsCounters done [03:21:37]requested_item shift.num is exist - process it [03:21:37]requested_item shift.opened is exist - process it [03:21:37]req_shift_opened [03:21:37]FM_GetShiftState [03:21:37]SAM_PROTO_GetShiftState [03:21:37]wFMCommunicate request_size=4 [03:21:37]MH_SAM_APDU [03:21:37]CAPDU: 80 13 01 00 [03:21:37]Write to MH i2c: E2 08 00 68 3B 80 13 01 00 00 00 00 00 20 [03:21:37]Write i2c OK [03:21:37]MH_I2C_Read... [03:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:21:37]Read from MH i2c: E2 [03:21:37]MH_I2C_Read... [03:21:37]Read from MH i2c: E2 0E 00 [03:21:37]MH_I2C_Read... [03:21:37]Read from MH i2c: E2 0E 00 68 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 56 [03:21:37]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [03:21:37]wFMCommunicate OK [03:21:37]SAM_PROTO_GetShiftState done [03:21:37]FM_GetShiftState done [03:21:37]req_shift_opened done [03:21:37]requested_item shift.open_date is exist - process it [03:21:37]req_shift_open_date [03:21:37]req_shift_open_date done [03:21:37]produce_requested_data done [03:21:37]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162712,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [03:21:37]process_action_free close_receipt [03:21:37]json_value_free [03:21:37]json_value_free done [03:21:37]process_json_proto returns [03:21:37]Send response to host [03:21:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162712,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [03:21:37]free response buf [03:21:37]execute_script done [03:21:37]execute_script returns [03:21:37]free content buf [03:21:37]Sock 7.Close socket [03:21:37]Sock 7.Thread stoped [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:20]accept exits with 9 [03:22:20]New connection [03:22:20]New thread 3067510116 created [03:22:20]Thread 3067366756 joined [03:22:20]Waiting for new connection... [03:22:20] Sock 9.Parse request [03:22:20]Sock 9.Check first char [03:22:20]Sock 9.First char is OK [03:22:20]request: POST /json_proto HTTP/1.0 [03:22:20]Method: POST [03:22:20]URL: /json_proto [03:22:20]Method is POST - this is cgi request [03:22:20]url: /json_proto [03:22:20]query_string will be loaded in cgi processing [03:22:20]execute_cgi json_proto POST (null) [03:22:20]execute_cgi path=json_proto method=POST [03:22:20]POST find Content-Length [03:22:20]Host: 172.17.39.67:8080 [03:22:20]Content-Length: 678 [03:22:20]Content-Type: application/json [03:22:20] [03:22:20]POST finish read [03:22:20]Found Content-Length = 678 [03:22:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.150, "sum" : 275.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 275.00, "total" : 275.00, "payments": [ { "type": 0, "sum" : 275.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:20]execute_script... [03:22: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)1319292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.150, "sum" : 275.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 275.00, "total" : 275.00, "payments": [ { "type": 0, "sum" : 275.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:20]POST & json_proto [03:22:20]process_json_proto [03:22:20]json parsed OK: [03:22:20]protocol is kg_v1.0 [03:22:20]action value=close_receipt [03:22:20]process_action close_receipt [03:22:20]cmd_close_receipt [03:22:20]MH_GetDate [03:22:20]Write to MH i2c: F0 00 00 69 3B 93 [03:22:20]Write i2c OK [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: F0 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: F0 09 00 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: F0 09 00 69 3B 00 70 44 93 66 86 7C 92 66 43 [03:22:20]GetLastDocTimeStamp 1720927294 [03:22:20]current date 1720927344 [03:22:20]FM_GetShiftState [03:22:20]SAM_PROTO_GetShiftState [03:22:20]wFMCommunicate request_size=4 [03:22:20]MH_SAM_APDU [03:22:20]CAPDU: 80 13 01 00 [03:22:20]Write to MH i2c: E2 08 00 6A 3B 80 13 01 00 00 00 00 00 22 [03:22:20]Write i2c OK [03:22:20]MH_I2C_Read... [03:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:20]Read from MH i2c: E2 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: E2 0E 00 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: E2 0E 00 6A 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 58 [03:22:20]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [03:22:20]wFMCommunicate OK [03:22:20]SAM_PROTO_GetShiftState done [03:22:20]FM_GetShiftState done [03:22:20]opened in 1720915483 [03:22:20]opened+sec_in_day 1721001883 [03:22:20]quantity*price = 27514 [03:22:20]sum+1 = 27516 [03:22:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 275.00 Внесено: 275.00 СДАЧА: 0.00 НСП 1% : 2.43 НДС 12% : 29.22 Наличными: 275.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 25 14.07.2024 03:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162713 ФПД: 93522814911242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T032224&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162713&fm=93522814911242&tin=02508201610067®Number=0000000000090858&sum=27500 [03:22:22]StoreToDocumentArchive [03:22:22]shift 463 fd 162713 [03:22:22]save to /storage/0463/doc_00162713 [03:22:22]save last doc name /storage/0463/doc_00162713 to /storage/kkm_last_doc_name [03:22:22]save OK [03:22:22]Clear old archive folders... [03:22:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:22:22]tlvbuf is 0063F630 [03:22:22]SAM_PROTO_ClearQueue [03:22:22]wFMCommunicate request_size=4 [03:22:22]MH_SAM_APDU [03:22:22]CAPDU: 80 09 00 00 [03:22:22]Write to MH i2c: E2 08 00 77 3B 80 09 00 00 00 00 00 00 24 [03:22:22]Write i2c OK [03:22:22]MH_I2C_Read... [03:22:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:22:22]Read from MH i2c: E2 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: E2 03 00 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: E2 03 00 77 3B 00 90 00 26 [03:22:22]RAPDU: 90 00 [03:22:22]wFMCommunicate OK [03:22:22]SAM_PROTO_ClearQueue done [03:22:22]KKMCreateOFDPacket [03:22:22]OFDProtocolAddRootSTLVToBuf [03:22:22]FM_MakeSignedData [03:22:22]FM_MakeSignedData [03:22:22]SAM_PROTO_SignData [03:22:22]wFMCommunicate request_size=4 [03:22:22]MH_SAM_APDU [03:22:22]CAPDU: 80 0D 01 02 [03:22:22]Write to MH i2c: E2 08 00 78 3B 80 0D 01 02 00 00 00 00 2C [03:22:22]Write i2c OK [03:22:22]MH_I2C_Read... [03:22:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:22:22]Read from MH i2c: E2 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: E2 03 00 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: E2 03 00 78 3B 00 90 00 27 [03:22:22]RAPDU: 90 00 [03:22:22]wFMCommunicate OK [03:22:22]wFMCommunicate request_size=255 [03:22:22]MH_SAM_APDU [03:22:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7B 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 70 44 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7B 02 00 35 04 06 00 55 [03:22:22]Write to MH i2c: E2 02 01 79 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7B 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 70 44 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7B 02 00 35 04 06 00 55 00 00 8A [03:22:22]Write i2c OK [03:22:22]MH_I2C_Read... [03:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:22]Read from MH i2c: E2 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: E2 03 00 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: E2 03 00 79 3B 00 90 00 28 [03:22:22]RAPDU: 90 00 [03:22:22]wFMCommunicate OK [03:22:22]wFMCommunicate request_size=10 [03:22:22]MH_SAM_APDU [03:22:22]CAPDU: 80 0D 02 02 05 0E FA 29 43 0A [03:22:22]Write to MH i2c: E2 0D 00 7A 3B 80 0D 02 02 05 00 0E FA 29 43 0A 00 00 B7 [03:22:22]Write i2c OK [03:22:22]MH_I2C_Read... [03:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:22]Read from MH i2c: E2 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: E2 03 00 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: E2 03 00 7A 3B 00 90 00 29 [03:22:22]RAPDU: 90 00 [03:22:22]wFMCommunicate OK [03:22:22]wFMCommunicate request_size=4 [03:22:22]MH_SAM_APDU [03:22:22]CAPDU: 80 0D 03 02 [03:22:22]Write to MH i2c: E2 08 00 7B 3B 80 0D 03 02 00 00 00 00 31 [03:22:22]Write i2c OK [03:22:22]MH_I2C_Read... [03:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:22:22]Read from MH i2c: E2 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: E2 0B 00 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: E2 0B 00 7B 3B 00 C3 03 D7 8F 43 04 B5 DE 90 00 38 [03:22:22]RAPDU: C3 03 D7 8F 43 04 B5 DE 90 00 [03:22:22]wFMCommunicate OK [03:22:22]SAM_PROTO_SignData done [03:22:22]FM_MakeSignedData done [03:22:22]CreateOFDProtocolMessage [03:22:22]wFMCommunicate request_size=4 [03:22:22]MH_SAM_APDU [03:22:22]CAPDU: 80 11 00 00 [03:22:22]Write to MH i2c: E2 08 00 7C 3B 80 11 00 00 00 00 00 00 31 [03:22:22]Write i2c OK [03:22:22]MH_I2C_Read... [03:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:22]Read from MH i2c: E2 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: E2 17 00 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: E2 17 00 7C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 91 [03:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:22:22]wFMCommunicate OK [03:22:22]CreateOFDProtocolMessage done [03:22:22]OFDSenderStorePacket 162713 [03:22:22]StoreOFDPacket docnum=162713 [03:22:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 89 EC 07 01 1C 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7B 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 70 44 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7B 02 00 35 04 06 00 55 0E FA 29 43 0A C3 03 D7 8F 43 04 B5 DE [03:22:22]CheckFolder [03:22:22]dirname=/storage/ofd_packets [03:22:22]CheckFolder done [03:22:22]ProducePacketName [03:22:22]name=ofd_packets/00162713 [03:22:22]NVStorageSaveData ofd_packets/00162713 [03:22:22]File name is /storage/ofd_packets/00162713 [03:22:22]Write 301 bytes [03:22:22]NVStorageSaveData done [03:22:22]OFDSenderStorePacket done [03:22:22]KKMCreateOFDPacket done [03:22:22]NVStorageSaveData kkm_last_timestamp [03:22:22]File name is /storage/kkm_last_timestamp [03:22:22]Write 4 bytes [03:22:22]NVStorageSaveData done [03:22:22]OFD Sender: Processing packet 162713 [packets to send 106, broken 105] [03:22:22]ProducePacketName [03:22:22]name=ofd_packets/00162713 [03:22:22]OFD Sender: To server: pG, [03:22:22]CommunicateWithHost lk.salyk.kg:30040 [03:22:22]ConnectInit lk.salyk.kg [03:22:22]ExternCall_PrintAddStr [03:22:22]wPrintStart [03:22:22]Write to MH i2c: 01 00 00 7D 3B B8 [03:22:22]Write i2c OK [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: 01 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: 01 07 00 [03:22:22]MH_I2C_Read... [03:22:22]Read from MH i2c: 01 07 00 7D 3B 00 00 00 00 00 FF 0F CD [03:22:22]RasterBufferAndPrint [03:22:22]line Счет N : (1)1319292 [03:22:22]line ИНН: 02508201610067 [03:22:22]line Контрольно-Кассовый Чек [03:22:22]line ПРОДАЖА [03:22:22]line ТРК (МРК, ГНК) : 43 [03:22:22]line Товар: 2710124130 [03:22:22]line Аи-92-К-5 [03:22:22]line 4.150 * 66.30 [03:22:22]line = 275.15 [03:22:22]line НДС 12% НСП 1% [03:22:22]line > о реализуемом товаре [03:22:22]line ОКРУГЛЕНИЕ: -0.15 [03:22:22]line ИТОГО: 275.00 [03:22:22]line Внесено: 275.00 [03:22:22]line СДАЧА: 0.00 [03:22:22]line НСП 1% : 2.43 [03:22:22]line НДС 12% : 29.22 [03:22:22]line Наличными: 275.00 [03:22:22]line Безнал.: 0.00 [03:22:22]line Место: АЗС № 140 "Партнер Нефть" [03:22:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [03:22:22]line СНО: Общий режим [03:22:22]line Чек 25 14.07.2024 03:22 [03:22:22]line Смена: 463 ФФД: 1.0 [03:22:22]line ЗНМ: 0300000129 [03:22:22]line РНМ: 0000000000090858 [03:22:22]line Версия ККМ: 001 [03:22:22]line ФМ: 0000000000874899 [03:22:22]line ФД: 162713 [03:22:22]line ФПД: 93522814911242 [03:22:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T032224&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162713&fm=93522814911242&tin=02508201610067®Number=0000000000090858&sum=27500 [03:22:22]Connected sock=11 [03:22:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 89 EC 07 01 1C 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7B 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 70 44 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7B 02 00 35 04 06 00 55 0E FA 29 43 0A C3 03 D7 8F 43 04 B5 DE [03:22:22]written 0, free lines is 4095 [03:22:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AE DC 47 00 7E 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7B 02 00 F4 03 04 00 7D F0 92 66 B6 04 01 00 00 07 33 AE D2 EA 27 3A 05 [03:22:23]CommunicateWithHost err = 0 [03:22:23]CheckOFDResponse [03:22:23]1017 (14) - 77093643461234 [03:22:23]1041 (16) - 0000000000874899 [03:22:23]1040 (4) - 162713 [03:22:23]1012 (4) - 13.07.2024 21:24 [03:22:23]1206 (1) - 0 [03:22:23]OFD Sender: Remove packet 162713 [03:22:23]ProducePacketName [03:22:23]name=ofd_packets/00162713 [03:22:23]NVStorageDeleteData [03:22:23]Write to MH i2c: 01 00 00 A8 3B E3 [03:22:23]Write i2c OK [03:22:23]MH_I2C_Read... [03:22:23]Read from MH i2c: 01 [03:22:23]MH_I2C_Read... [03:22:23]Read from MH i2c: 01 07 00 [03:22:23]MH_I2C_Read... [03:22:23]Read from MH i2c: 01 07 00 A8 3B 00 00 00 00 00 CE 0C C4 [03:22:23]RasterBufferAndPrint [03:22:23]line [03:22:23]line [03:22:23]line [03:22:23]line [03:22:23]line [03:22:23]written 0, free lines is 3284 [03:22:23]MH_Cut [03:22:23]Write to MH i2c: D1 01 00 AF 3B 01 BC [03:22:23]Write i2c OK [03:22:23]MH_I2C_Read... [03:22:23]Read from MH i2c: D1 [03:22:23]MH_I2C_Read... [03:22:23]Read from MH i2c: D1 01 00 [03:22:23]MH_I2C_Read... [03:22:23]Read from MH i2c: D1 01 00 AF 3B 00 BB [03:22:23]Write to MH i2c: 01 00 00 B0 3B EB [03:22:23]Write i2c OK [03:22:23]MH_I2C_Read... [03:22:23]OFD Sender: No OFD packet to send [03:22:24]*** Cut start [03:22:24]*** Purtial cut [03:22:24]*** Stage 1: CUTSNS_PIN = 1 [03:22:24]Read from MH i2c: 01 [03:22:24]MH_I2C_Read... [03:22:24]*** Stop cut motor [03:22:24]*** Cut end [03:22:24]Read from MH i2c: 01 07 00 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: 01 07 00 B0 3B 00 00 00 00 00 FF 0F 00 [03:22:24]process_action close_receipt done [03:22:24]requested_data is exist [03:22:24]produce_requested_data [03:22:24]requested_item fm.sn is exist - process it [03:22:24]wFMCommunicate request_size=4 [03:22:24]MH_SAM_APDU [03:22:24]CAPDU: 80 11 00 00 [03:22:24]Write to MH i2c: E2 08 00 B1 3B 80 11 00 00 00 00 00 00 66 [03:22:24]Write i2c OK [03:22:24]MH_I2C_Read... [03:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:24]Read from MH i2c: E2 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 17 00 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 17 00 B1 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C6 [03:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:22:24]wFMCommunicate OK [03:22:24]requested_item fd.num is exist - process it [03:22:24]SAM_PROTO_GetFieldsCounters [03:22:24]wFMCommunicate request_size=4 [03:22:24]MH_SAM_APDU [03:22:24]CAPDU: 80 13 00 00 [03:22:24]Write to MH i2c: E2 08 00 B2 3B 80 13 00 00 00 00 00 00 69 [03:22:24]Write i2c OK [03:22:24]MH_I2C_Read... [03:22:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:22:24]Read from MH i2c: E2 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 62 00 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 62 00 B2 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 99 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [03:22:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 99 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:22:24]wFMCommunicate OK [03:22:24]SAM_PROTO_GetFieldsCounters done [03:22:24]requested_item shift.num is exist - process it [03:22:24]requested_item shift.opened is exist - process it [03:22:24]req_shift_opened [03:22:24]FM_GetShiftState [03:22:24]SAM_PROTO_GetShiftState [03:22:24]wFMCommunicate request_size=4 [03:22:24]MH_SAM_APDU [03:22:24]CAPDU: 80 13 01 00 [03:22:24]Write to MH i2c: E2 08 00 B3 3B 80 13 01 00 00 00 00 00 6B [03:22:24]Write i2c OK [03:22:24]MH_I2C_Read... [03:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:24]Read from MH i2c: E2 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 0E 00 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 0E 00 B3 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A1 [03:22:24]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [03:22:24]wFMCommunicate OK [03:22:24]SAM_PROTO_GetShiftState done [03:22:24]FM_GetShiftState done [03:22:24]req_shift_opened done [03:22:24]requested_item shift.open_date is exist - process it [03:22:24]req_shift_open_date [03:22:24]req_shift_open_date done [03:22:24]produce_requested_data done [03:22:24]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162713,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [03:22:24]process_action_free close_receipt [03:22:24]json_value_free [03:22:24]json_value_free done [03:22:24]process_json_proto returns [03:22:24]Send response to host [03:22:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162713,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [03:22:24]free response buf [03:22:24]execute_script done [03:22:24]execute_script returns [03:22:24]free content buf [03:22:24]Sock 9.Close socket [03:22:24]Sock 9.Thread stoped [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:29]accept exits with 7 [03:49:29]New connection [03:49:29]New thread 3067366756 created [03:49:29]Thread 3067510116 joined [03:49:29]Waiting for new connection... [03:49:29] Sock 7.Parse request [03:49:29]Sock 7.Check first char [03:49:29]Sock 7.First char is OK [03:49:29]request: POST /json_proto HTTP/1.0 [03:49:29]Method: POST [03:49:29]URL: /json_proto [03:49:29]Method is POST - this is cgi request [03:49:29]url: /json_proto [03:49:29]query_string will be loaded in cgi processing [03:49:29]execute_cgi json_proto POST (null) [03:49:29]execute_cgi path=json_proto method=POST [03:49:29]POST find Content-Length [03:49:29]Host: 172.17.39.67:8080 [03:49:29]Content-Length: 676 [03:49:29]Content-Type: application/json [03:49:29] [03:49:29]POST finish read [03:49:29]Found Content-Length = 676 [03:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 16.050, "sum" : 1080.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1080.00, "total" : 1080.00, "payments": [ { "type": 0, "sum" : 1080.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:49:29]execute_script... [03:49:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 16.050, "sum" : 1080.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1080.00, "total" : 1080.00, "payments": [ { "type": 0, "sum" : 1080.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:49:29]POST & json_proto [03:49:29]process_json_proto [03:49:29]json parsed OK: [03:49:29]protocol is kg_v1.0 [03:49:29]action value=close_receipt [03:49:29]process_action close_receipt [03:49:29]cmd_close_receipt [03:49:29]MH_GetDate [03:49:29]Write to MH i2c: F0 00 00 B4 3B DE [03:49:29]Write i2c OK [03:49:29]MH_I2C_Read... [03:49:29]Read from MH i2c: F0 [03:49:29]MH_I2C_Read... [03:49:29]Read from MH i2c: F0 09 00 [03:49:29]MH_I2C_Read... [03:49:29]Read from MH i2c: F0 09 00 B4 3B 00 CD 4A 93 66 86 7C 92 66 F1 [03:49:29]GetLastDocTimeStamp 1720927344 [03:49:29]current date 1720928973 [03:49:29]FM_GetShiftState [03:49:29]SAM_PROTO_GetShiftState [03:49:29]wFMCommunicate request_size=4 [03:49:29]MH_SAM_APDU [03:49:29]CAPDU: 80 13 01 00 [03:49:29]Write to MH i2c: E2 08 00 B5 3B 80 13 01 00 00 00 00 00 6D [03:49:29]Write i2c OK [03:49:29]MH_I2C_Read... [03:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:49:29]Read from MH i2c: E2 [03:49:29]MH_I2C_Read... [03:49:29]Read from MH i2c: E2 0E 00 [03:49:29]MH_I2C_Read... [03:49:29]Read from MH i2c: E2 0E 00 B5 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A3 [03:49:29]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [03:49:29]wFMCommunicate OK [03:49:29]SAM_PROTO_GetShiftState done [03:49:29]FM_GetShiftState done [03:49:29]opened in 1720915483 [03:49:29]opened+sec_in_day 1721001883 [03:49:29]quantity*price = 108016 [03:49:29]sum+1 = 108018 [03:49:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1080.00 Внесено: 1080.00 СДАЧА: 0.00 НСП 1% : 9.56 НДС 12% : 114.71 Наличными: 1080.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 26 14.07.2024 03:49 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162714 ФПД: 97524883430160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T034933&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162714&fm=97524883430160&tin=02508201610067®Number=0000000000090858&sum=108000 [03:49:31]StoreToDocumentArchive [03:49:31]shift 463 fd 162714 [03:49:31]save to /storage/0463/doc_00162714 [03:49:31]save last doc name /storage/0463/doc_00162714 to /storage/kkm_last_doc_name [03:49:31]save OK [03:49:31]Clear old archive folders... [03:49:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:49:31]tlvbuf is 00738290 [03:49:31]SAM_PROTO_ClearQueue [03:49:31]wFMCommunicate request_size=4 [03:49:31]MH_SAM_APDU [03:49:31]CAPDU: 80 09 00 00 [03:49:31]Write to MH i2c: E2 08 00 C2 3B 80 09 00 00 00 00 00 00 6F [03:49:31]Write i2c OK [03:49:31]MH_I2C_Read... [03:49:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:49:31]Read from MH i2c: E2 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: E2 03 00 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: E2 03 00 C2 3B 00 90 00 71 [03:49:31]RAPDU: 90 00 [03:49:31]wFMCommunicate OK [03:49:31]SAM_PROTO_ClearQueue done [03:49:31]KKMCreateOFDPacket [03:49:31]OFDProtocolAddRootSTLVToBuf [03:49:31]FM_MakeSignedData [03:49:31]FM_MakeSignedData [03:49:31]SAM_PROTO_SignData [03:49:31]wFMCommunicate request_size=4 [03:49:31]MH_SAM_APDU [03:49:31]CAPDU: 80 0D 01 02 [03:49:31]Write to MH i2c: E2 08 00 C3 3B 80 0D 01 02 00 00 00 00 77 [03:49:31]Write i2c OK [03:49:31]MH_I2C_Read... [03:49:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:49:31]Read from MH i2c: E2 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: E2 03 00 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: E2 03 00 C3 3B 00 90 00 72 [03:49:31]RAPDU: 90 00 [03:49:31]wFMCommunicate OK [03:49:31]wFMCommunicate request_size=255 [03:49:31]MH_SAM_APDU [03:49:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 3E 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 F1 A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 2C 00 00 00 00 07 04 06 00 E0 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CD 4A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7B 02 00 35 04 06 00 [03:49:31]Write to MH i2c: E2 02 01 C4 3B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 3E 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 F1 A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 2C 00 00 00 00 07 04 06 00 E0 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CD 4A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7B 02 00 35 04 06 00 00 00 7F [03:49:31]Write i2c OK [03:49:31]MH_I2C_Read... [03:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:49:31]Read from MH i2c: E2 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: E2 03 00 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: E2 03 00 C4 3B 00 90 00 73 [03:49:31]RAPDU: 90 00 [03:49:31]wFMCommunicate OK [03:49:31]wFMCommunicate request_size=11 [03:49:31]MH_SAM_APDU [03:49:31]CAPDU: 80 0D 02 02 06 58 B2 C8 08 9B 10 [03:49:31]Write to MH i2c: E2 0E 00 C5 3B 80 0D 02 02 06 00 58 B2 C8 08 9B 10 00 00 0B [03:49:31]Write i2c OK [03:49:31]MH_I2C_Read... [03:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:49:31]Read from MH i2c: E2 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: E2 03 00 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: E2 03 00 C5 3B 00 90 00 74 [03:49:31]RAPDU: 90 00 [03:49:31]wFMCommunicate OK [03:49:31]wFMCommunicate request_size=4 [03:49:31]MH_SAM_APDU [03:49:31]CAPDU: 80 0D 03 02 [03:49:31]Write to MH i2c: E2 08 00 C6 3B 80 0D 03 02 00 00 00 00 7C [03:49:31]Write i2c OK [03:49:31]MH_I2C_Read... [03:49:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:49:31]Read from MH i2c: E2 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: E2 0B 00 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: E2 0B 00 C6 3B 00 C8 E9 87 79 91 7F 51 65 90 00 F4 [03:49:31]RAPDU: C8 E9 87 79 91 7F 51 65 90 00 [03:49:31]wFMCommunicate OK [03:49:31]SAM_PROTO_SignData done [03:49:31]FM_MakeSignedData done [03:49:31]CreateOFDProtocolMessage [03:49:31]wFMCommunicate request_size=4 [03:49:31]MH_SAM_APDU [03:49:31]CAPDU: 80 11 00 00 [03:49:31]Write to MH i2c: E2 08 00 C7 3B 80 11 00 00 00 00 00 00 7C [03:49:31]Write i2c OK [03:49:31]MH_I2C_Read... [03:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:49:31]Read from MH i2c: E2 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: E2 17 00 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: E2 17 00 C7 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DC [03:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:49:31]wFMCommunicate OK [03:49:31]CreateOFDProtocolMessage done [03:49:31]OFDSenderStorePacket 162714 [03:49:31]StoreOFDPacket docnum=162714 [03:49:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CF DC 08 01 76 95 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 3E 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 F1 A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 2C 00 00 00 00 07 04 06 00 E0 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CD 4A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7B 02 00 35 04 06 00 58 B2 C8 08 9B 10 C8 E9 87 79 91 7F 51 65 [03:49:31]CheckFolder [03:49:31]dirname=/storage/ofd_packets [03:49:31]CheckFolder done [03:49:31]ProducePacketName [03:49:31]name=ofd_packets/00162714 [03:49:31]NVStorageSaveData ofd_packets/00162714 [03:49:31]File name is /storage/ofd_packets/00162714 [03:49:31]Write 302 bytes [03:49:31]NVStorageSaveData done [03:49:31]OFDSenderStorePacket done [03:49:31]KKMCreateOFDPacket done [03:49:31]NVStorageSaveData kkm_last_timestamp [03:49:31]File name is /storage/kkm_last_timestamp [03:49:31]Write 4 bytes [03:49:31]NVStorageSaveData done [03:49:31]ExternCall_PrintAddStr [03:49:31]wPrintStart [03:49:31]Write to MH i2c: 01 00 00 C8 3B 03 [03:49:31]Write i2c OK [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: 01 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: 01 07 00 [03:49:31]MH_I2C_Read... [03:49:31]Read from MH i2c: 01 07 00 C8 3B 00 00 00 00 00 FF 0F 18 [03:49:31]RasterBufferAndPrint [03:49:31]line Счет N : (1)1319293 [03:49:31]line ИНН: 02508201610067 [03:49:31]line Контрольно-Кассовый Чек [03:49:31]line ПРОДАЖА [03:49:31]line ТРК (МРК, ГНК) : 42 [03:49:31]line Товар: 2710124130 [03:49:31]line Super-92-К-5 [03:49:31]line 16.050 * 67.30 [03:49:31]line = 1080.17 [03:49:31]line НДС 12% НСП 1% [03:49:31]line > о реализуемом товаре [03:49:31]line ОКРУГЛЕНИЕ: -0.17 [03:49:31]line ИТОГО: 1080.00 [03:49:31]line Внесено: 1080.00 [03:49:31]line СДАЧА: 0.00 [03:49:31]line НСП 1% : 9.56 [03:49:31]line НДС 12% : 114.71 [03:49:31]line Наличными: 1080.00 [03:49:31]line Безнал.: 0.00 [03:49:31]line Место: АЗС № 140 "Партнер Нефть" [03:49:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [03:49:31]line СНО: Общий режим [03:49:31]line Чек 26 14.07.2024 03:49 [03:49:31]line Смена: 463 ФФД: 1.0 [03:49:31]line ЗНМ: 0300000129 [03:49:31]line РНМ: 0000000000090858 [03:49:31]line Версия ККМ: 001 [03:49:31]line ФМ: 0000000000874899 [03:49:31]line ФД: 162714 [03:49:31]line ФПД: 97524883430160 [03:49:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T034933&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162714&fm=97524883430160&tin=02508201610067®Number=0000000000090858&sum=108000 [03:49:31]OFD Sender: Processing packet 162714 [packets to send 106, broken 105] [03:49:31]ProducePacketName [03:49:31]name=ofd_packets/00162714 [03:49:31]OFD Sender: To server: pG, [03:49:31]CommunicateWithHost lk.salyk.kg:30040 [03:49:31]ConnectInit lk.salyk.kg [03:49:31]written 0, free lines is 4095 [03:49:32]Connected sock=10 [03:49:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CF DC 08 01 76 95 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 3E 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 F1 A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 2C 00 00 00 00 07 04 06 00 E0 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CD 4A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7B 02 00 35 04 06 00 58 B2 C8 08 9B 10 C8 E9 87 79 91 7F 51 65 [03:49:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4B 00 47 00 EC E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7B 02 00 F4 03 04 00 DA F6 92 66 B6 04 01 00 00 CE EF B4 1B 16 34 E5 79 [03:49:32]CommunicateWithHost err = 0 [03:49:32]CheckOFDResponse [03:49:32]1017 (14) - 77093643461234 [03:49:32]1041 (16) - 0000000000874899 [03:49:32]1040 (4) - 162714 [03:49:32]1012 (4) - 13.07.2024 21:51 [03:49:32]1206 (1) - 0 [03:49:32]OFD Sender: Remove packet 162714 [03:49:32]ProducePacketName [03:49:32]name=ofd_packets/00162714 [03:49:32]NVStorageDeleteData [03:49:32]Write to MH i2c: 01 00 00 F3 3B 2E [03:49:32]Write i2c OK [03:49:32]MH_I2C_Read... [03:49:32]Read from MH i2c: 01 [03:49:32]MH_I2C_Read... [03:49:32]Read from MH i2c: 01 07 00 [03:49:32]MH_I2C_Read... [03:49:32]Read from MH i2c: 01 07 00 F3 3B 00 00 00 00 00 CE 0C 0F [03:49:32]RasterBufferAndPrint [03:49:32]line [03:49:32]line [03:49:32]line [03:49:32]line [03:49:32]line [03:49:32]written 0, free lines is 3285 [03:49:32]MH_Cut [03:49:32]Write to MH i2c: D1 01 00 FA 3B 01 07 [03:49:32]Write i2c OK [03:49:32]MH_I2C_Read... [03:49:32]Read from MH i2c: D1 [03:49:32]MH_I2C_Read... [03:49:32]Read from MH i2c: D1 01 00 [03:49:32]MH_I2C_Read... [03:49:32]Read from MH i2c: D1 01 00 FA 3B 00 06 [03:49:32]Write to MH i2c: 01 00 00 FB 3B 36 [03:49:32]Write i2c OK [03:49:32]MH_I2C_Read... [03:49:32]OFD Sender: No OFD packet to send [03:49:33]*** Cut start [03:49:33]*** Purtial cut [03:49:33]*** CUTSNS_PIN = 0 [03:49:33]*** Stage 1: CUTSNS_PIN = 1 [03:49:35]Read from MH i2c: 01 [03:49:35]MH_I2C_Read... [03:49:35]*** Stop cut motor [03:49:35]*** Cut end [03:49:35]Read from MH i2c: 01 07 00 [03:49:35]MH_I2C_Read... [03:49:35]Read from MH i2c: 01 07 00 FB 3B 00 00 00 00 00 FF 0F 4B [03:49:35]process_action close_receipt done [03:49:35]requested_data is exist [03:49:35]produce_requested_data [03:49:35]requested_item fm.sn is exist - process it [03:49:35]wFMCommunicate request_size=4 [03:49:35]MH_SAM_APDU [03:49:35]CAPDU: 80 11 00 00 [03:49:35]Write to MH i2c: E2 08 00 FC 3B 80 11 00 00 00 00 00 00 B1 [03:49:35]Write i2c OK [03:49:35]MH_I2C_Read... [03:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:49:35]Read from MH i2c: E2 [03:49:35]MH_I2C_Read... [03:49:35]Read from MH i2c: E2 17 00 [03:49:35]MH_I2C_Read... [03:49:35]Read from MH i2c: E2 17 00 FC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 11 [03:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:49:35]wFMCommunicate OK [03:49:35]requested_item fd.num is exist - process it [03:49:35]SAM_PROTO_GetFieldsCounters [03:49:35]wFMCommunicate request_size=4 [03:49:35]MH_SAM_APDU [03:49:35]CAPDU: 80 13 00 00 [03:49:35]Write to MH i2c: E2 08 00 FD 3B 80 13 00 00 00 00 00 00 B4 [03:49:35]Write i2c OK [03:49:35]MH_I2C_Read... [03:49:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:49:35]Read from MH i2c: E2 [03:49:35]MH_I2C_Read... [03:49:35]Read from MH i2c: E2 62 00 [03:49:35]MH_I2C_Read... [03:49:35]Read from MH i2c: E2 62 00 FD 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9A 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [03:49:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9A 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:49:35]wFMCommunicate OK [03:49:35]SAM_PROTO_GetFieldsCounters done [03:49:35]requested_item shift.num is exist - process it [03:49:35]requested_item shift.opened is exist - process it [03:49:35]req_shift_opened [03:49:35]FM_GetShiftState [03:49:35]SAM_PROTO_GetShiftState [03:49:35]wFMCommunicate request_size=4 [03:49:35]MH_SAM_APDU [03:49:35]CAPDU: 80 13 01 00 [03:49:35]Write to MH i2c: E2 08 00 FE 3B 80 13 01 00 00 00 00 00 B6 [03:49:35]Write i2c OK [03:49:35]MH_I2C_Read... [03:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:49:35]Read from MH i2c: E2 [03:49:35]MH_I2C_Read... [03:49:35]Read from MH i2c: E2 0E 00 [03:49:35]MH_I2C_Read... [03:49:35]Read from MH i2c: E2 0E 00 FE 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 EC [03:49:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [03:49:35]wFMCommunicate OK [03:49:35]SAM_PROTO_GetShiftState done [03:49:35]FM_GetShiftState done [03:49:35]req_shift_opened done [03:49:35]requested_item shift.open_date is exist - process it [03:49:35]req_shift_open_date [03:49:35]req_shift_open_date done [03:49:35]produce_requested_data done [03:49:35]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162714,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [03:49:35]process_action_free close_receipt [03:49:35]json_value_free [03:49:35]json_value_free done [03:49:35]process_json_proto returns [03:49:35]Send response to host [03:49:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162714,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [03:49:35]free response buf [03:49:35]execute_script done [03:49:35]execute_script returns [03:49:35]free content buf [03:49:35]Sock 7.Close socket [03:49:35]Sock 7.Thread stoped [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:36]accept exits with 9 [03:57:36]New connection [03:57:36]New thread 3067510116 created [03:57:36]Thread 3067366756 joined [03:57:36]Waiting for new connection... [03:57:36] Sock 9.Parse request [03:57:36]Sock 9.Check first char [03:57:36]Sock 9.First char is OK [03:57:36]request: POST /json_proto HTTP/1.0 [03:57:36]Method: POST [03:57:36]URL: /json_proto [03:57:36]Method is POST - this is cgi request [03:57:36]url: /json_proto [03:57:36]query_string will be loaded in cgi processing [03:57:36]execute_cgi json_proto POST (null) [03:57:36]execute_cgi path=json_proto method=POST [03:57:36]POST find Content-Length [03:57:36]Host: 172.17.39.67:8080 [03:57:36]Content-Length: 688 [03:57:36]Content-Type: application/json [03:57:36] [03:57:36]POST finish read [03:57:36]Found Content-Length = 688 [03:57:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 14.190, "sum" : 1030.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1030.00, "total" : 1030.00, "payments": [ { "type": 0, "sum" : 1030.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:57:36]execute_script... [03:57: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)1319294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 14.190, "sum" : 1030.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1030.00, "total" : 1030.00, "payments": [ { "type": 0, "sum" : 1030.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:57:36]POST & json_proto [03:57:36]process_json_proto [03:57:36]json parsed OK: [03:57:36]protocol is kg_v1.0 [03:57:36]action value=close_receipt [03:57:36]process_action close_receipt [03:57:36]cmd_close_receipt [03:57:36]MH_GetDate [03:57:36]Write to MH i2c: F0 00 00 FF 3B 29 [03:57:36]Write i2c OK [03:57:36]MH_I2C_Read... [03:57:36]Read from MH i2c: F0 [03:57:36]MH_I2C_Read... [03:57:36]Read from MH i2c: F0 09 00 [03:57:36]MH_I2C_Read... [03:57:36]Read from MH i2c: F0 09 00 FF 3B 00 B3 4C 93 66 86 7C 92 66 24 [03:57:36]GetLastDocTimeStamp 1720928973 [03:57:36]current date 1720929459 [03:57:36]FM_GetShiftState [03:57:36]SAM_PROTO_GetShiftState [03:57:36]wFMCommunicate request_size=4 [03:57:36]MH_SAM_APDU [03:57:36]CAPDU: 80 13 01 00 [03:57:36]Write to MH i2c: E2 08 00 00 3C 80 13 01 00 00 00 00 00 B9 [03:57:36]Write i2c OK [03:57:36]MH_I2C_Read... [03:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:57:36]Read from MH i2c: E2 [03:57:36]MH_I2C_Read... [03:57:36]Read from MH i2c: E2 0E 00 [03:57:36]MH_I2C_Read... [03:57:36]Read from MH i2c: E2 0E 00 00 3C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 EF [03:57:36]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [03:57:36]wFMCommunicate OK [03:57:36]SAM_PROTO_GetShiftState done [03:57:36]FM_GetShiftState done [03:57:36]opened in 1720915483 [03:57:36]opened+sec_in_day 1721001883 [03:57:36]quantity*price = 103019 [03:57:36]sum+1 = 103020 [03:57:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1030.00 Внесено: 1030.00 СДАЧА: 0.00 НСП 1% : 9.12 НДС 12% : 109.40 Наличными: 1030.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 27 14.07.2024 03:57 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162715 ФПД: 255660594118765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T035739&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162715&fm=255660594118765&tin=02508201610067®Number=0000000000090858&sum=103000 [03:57:37]StoreToDocumentArchive [03:57:37]shift 463 fd 162715 [03:57:37]save to /storage/0463/doc_00162715 [03:57:37]save last doc name /storage/0463/doc_00162715 to /storage/kkm_last_doc_name [03:57:37]save OK [03:57:37]Clear old archive folders... [03:57:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:57:37]tlvbuf is 0063F810 [03:57:37]SAM_PROTO_ClearQueue [03:57:37]wFMCommunicate request_size=4 [03:57:37]MH_SAM_APDU [03:57:37]CAPDU: 80 09 00 00 [03:57:37]Write to MH i2c: E2 08 00 0D 3C 80 09 00 00 00 00 00 00 BB [03:57:37]Write i2c OK [03:57:37]MH_I2C_Read... [03:57:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:57:37]Read from MH i2c: E2 [03:57:37]MH_I2C_Read... [03:57:37]Read from MH i2c: E2 03 00 [03:57:37]MH_I2C_Read... [03:57:37]Read from MH i2c: E2 03 00 0D 3C 00 90 00 BD [03:57:37]RAPDU: 90 00 [03:57:37]wFMCommunicate OK [03:57:37]SAM_PROTO_ClearQueue done [03:57:37]KKMCreateOFDPacket [03:57:37]OFDProtocolAddRootSTLVToBuf [03:57:37]FM_MakeSignedData [03:57:37]FM_MakeSignedData [03:57:37]SAM_PROTO_SignData [03:57:37]wFMCommunicate request_size=4 [03:57:37]MH_SAM_APDU [03:57:37]CAPDU: 80 0D 01 02 [03:57:37]Write to MH i2c: E2 08 00 0E 3C 80 0D 01 02 00 00 00 00 C3 [03:57:37]Write i2c OK [03:57:37]MH_I2C_Read... [03:57:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:57:37]Read from MH i2c: E2 [03:57:37]MH_I2C_Read... [03:57:37]Read from MH i2c: E2 03 00 [03:57:37]MH_I2C_Read... [03:57:37]Read from MH i2c: E2 03 00 0E 3C 00 90 00 BE [03:57:37]RAPDU: 90 00 [03:57:37]wFMCommunicate OK [03:57:37]wFMCommunicate request_size=255 [03:57:37]MH_SAM_APDU [03:57:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6B 92 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 2A 00 00 00 00 07 04 06 00 58 92 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B3 4C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7B 02 00 35 04 06 00 [03:57:37]Write to MH i2c: E2 02 01 0F 3C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6B 92 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 2A 00 00 00 00 07 04 06 00 58 92 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B3 4C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7B 02 00 35 04 06 00 00 00 7F [03:57:37]Write i2c OK [03:57:37]MH_I2C_Read... [03:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:57:37]Read from MH i2c: E2 [03:57:37]MH_I2C_Read... [03:57:37]Read from MH i2c: E2 03 00 [03:57:37]MH_I2C_Read... [03:57:37]Read from MH i2c: E2 03 00 0F 3C 00 90 00 BF [03:57:37]RAPDU: 90 00 [03:57:37]wFMCommunicate OK [03:57:37]wFMCommunicate request_size=11 [03:57:37]MH_SAM_APDU [03:57:37]CAPDU: 80 0D 02 02 06 E8 85 9E E5 40 6D [03:57:37]Write to MH i2c: E2 0E 00 10 3C 80 0D 02 02 06 00 E8 85 9E E5 40 6D 00 00 6F [03:57:37]Write i2c OK [03:57:37]MH_I2C_Read... [03:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:57:38]Read from MH i2c: E2 [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: E2 03 00 [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: E2 03 00 10 3C 00 90 00 C0 [03:57:38]RAPDU: 90 00 [03:57:38]wFMCommunicate OK [03:57:38]wFMCommunicate request_size=4 [03:57:38]MH_SAM_APDU [03:57:38]CAPDU: 80 0D 03 02 [03:57:38]Write to MH i2c: E2 08 00 11 3C 80 0D 03 02 00 00 00 00 C8 [03:57:38]Write i2c OK [03:57:38]MH_I2C_Read... [03:57:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:57:38]Read from MH i2c: E2 [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: E2 0B 00 [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: E2 0B 00 11 3C 00 82 67 80 9F CC 23 09 80 90 00 49 [03:57:38]RAPDU: 82 67 80 9F CC 23 09 80 90 00 [03:57:38]wFMCommunicate OK [03:57:38]SAM_PROTO_SignData done [03:57:38]FM_MakeSignedData done [03:57:38]CreateOFDProtocolMessage [03:57:38]wFMCommunicate request_size=4 [03:57:38]MH_SAM_APDU [03:57:38]CAPDU: 80 11 00 00 [03:57:38]Write to MH i2c: E2 08 00 12 3C 80 11 00 00 00 00 00 00 C8 [03:57:38]Write i2c OK [03:57:38]MH_I2C_Read... [03:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:57:38]Read from MH i2c: E2 [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: E2 17 00 [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: E2 17 00 12 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 28 [03:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:57:38]wFMCommunicate OK [03:57:38]CreateOFDProtocolMessage done [03:57:38]OFDSenderStorePacket 162715 [03:57:38]StoreOFDPacket docnum=162715 [03:57:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 B2 08 01 C0 B9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6B 92 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 2A 00 00 00 00 07 04 06 00 58 92 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B3 4C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7B 02 00 35 04 06 00 E8 85 9E E5 40 6D 82 67 80 9F CC 23 09 80 [03:57:38]CheckFolder [03:57:38]dirname=/storage/ofd_packets [03:57:38]CheckFolder done [03:57:38]ProducePacketName [03:57:38]name=ofd_packets/00162715 [03:57:38]NVStorageSaveData ofd_packets/00162715 [03:57:38]File name is /storage/ofd_packets/00162715 [03:57:38]Write 302 bytes [03:57:38]NVStorageSaveData done [03:57:38]OFDSenderStorePacket done [03:57:38]KKMCreateOFDPacket done [03:57:38]NVStorageSaveData kkm_last_timestamp [03:57:38]File name is /storage/kkm_last_timestamp [03:57:38]Write 4 bytes [03:57:38]NVStorageSaveData done [03:57:38]ExternCall_PrintAddStr [03:57:38]wPrintStart [03:57:38]Write to MH i2c: 01 00 00 13 3C 4F [03:57:38]Write i2c OK [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: 01 [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: 01 07 00 [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: 01 07 00 13 3C 00 00 00 00 00 FF 0F 64 [03:57:38]RasterBufferAndPrint [03:57:38]line Счет N : (1)1319294 [03:57:38]line ИНН: 02508201610067 [03:57:38]line Контрольно-Кассовый Чек [03:57:38]line ПРОДАЖА [03:57:38]line ТРК (МРК, ГНК) : 31 [03:57:38]line Товар: 2710194210 [03:57:38]line ДТ(л)-К-5 [03:57:38]line 14.190 * 72.60 [03:57:38]line = 1030.19 [03:57:38]line НДС 12% НСП 1% [03:57:38]line > о реализуемом товаре [03:57:38]line ОКРУГЛЕНИЕ: -0.19 [03:57:38]line ИТОГО: 1030.00 [03:57:38]line Внесено: 1030.00 [03:57:38]line СДАЧА: 0.00 [03:57:38]line НСП 1% : 9.12 [03:57:38]line НДС 12% : 109.40 [03:57:38]line Наличными: 1030.00 [03:57:38]line Безнал.: 0.00 [03:57:38]line Место: АЗС № 140 "Партнер Нефть" [03:57:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [03:57:38]line СНО: Общий режим [03:57:38]line Чек 27 14.07.2024 03:57 [03:57:38]line Смена: 463 ФФД: 1.0 [03:57:38]line ЗНМ: 0300000129 [03:57:38]line РНМ: 0000000000090858 [03:57:38]line Версия ККМ: 001 [03:57:38]line ФМ: 0000000000874899 [03:57:38]line ФД: 162715 [03:57:38]line ФПД: 255660594118765 [03:57:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T035739&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162715&fm=255660594118765&tin=02508201610067®Number=0000000000090858&sum=103000 [03:57:38]OFD Sender: Processing packet 162715 [packets to send 106, broken 105] [03:57:38]ProducePacketName [03:57:38]name=ofd_packets/00162715 [03:57:38]OFD Sender: To server: pG, [03:57:38]CommunicateWithHost lk.salyk.kg:30040 [03:57:38]ConnectInit lk.salyk.kg [03:57:38]written 0, free lines is 4095 [03:57:38]Connected sock=11 [03:57:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 B2 08 01 C0 B9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 6E 37 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6B 92 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 2A 00 00 00 00 07 04 06 00 58 92 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 B3 4C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7B 02 00 35 04 06 00 E8 85 9E E5 40 6D 82 67 80 9F CC 23 09 80 [03:57:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2E 6C 47 00 5D 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7B 02 00 F4 03 04 00 C1 F8 92 66 B6 04 01 00 00 95 2D DB 61 3A 13 AF BA [03:57:38]CommunicateWithHost err = 0 [03:57:38]CheckOFDResponse [03:57:38]1017 (14) - 77093643461234 [03:57:38]1041 (16) - 0000000000874899 [03:57:38]1040 (4) - 162715 [03:57:38]1012 (4) - 13.07.2024 21:59 [03:57:38]1206 (1) - 0 [03:57:38]OFD Sender: Remove packet 162715 [03:57:38]ProducePacketName [03:57:38]name=ofd_packets/00162715 [03:57:38]NVStorageDeleteData [03:57:38]Write to MH i2c: 01 00 00 3E 3C 7A [03:57:38]Write i2c OK [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: 01 [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: 01 07 00 [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: 01 07 00 3E 3C 00 00 00 00 00 D1 0C 5E [03:57:38]RasterBufferAndPrint [03:57:38]line [03:57:38]line [03:57:38]line [03:57:38]line [03:57:38]line [03:57:38]written 0, free lines is 3287 [03:57:38]MH_Cut [03:57:38]Write to MH i2c: D1 01 00 45 3C 01 53 [03:57:38]Write i2c OK [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: D1 [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: D1 01 00 [03:57:38]MH_I2C_Read... [03:57:38]Read from MH i2c: D1 01 00 45 3C 00 52 [03:57:38]Write to MH i2c: 01 00 00 46 3C 82 [03:57:38]Write i2c OK [03:57:38]MH_I2C_Read... [03:57:39]OFD Sender: No OFD packet to send [03:57:39]*** Cut start [03:57:39]*** Purtial cut [03:57:39]*** Stage 1: CUTSNS_PIN = 1 [03:57:39]Read from MH i2c: 01 [03:57:39]MH_I2C_Read... [03:57:39]*** Stop cut motor [03:57:39]*** Cut end [03:57:39]Read from MH i2c: 01 07 00 [03:57:39]MH_I2C_Read... [03:57:39]Read from MH i2c: 01 07 00 46 3C 00 00 00 00 00 FF 0F 97 [03:57:39]process_action close_receipt done [03:57:39]requested_data is exist [03:57:39]produce_requested_data [03:57:39]requested_item fm.sn is exist - process it [03:57:39]wFMCommunicate request_size=4 [03:57:39]MH_SAM_APDU [03:57:39]CAPDU: 80 11 00 00 [03:57:39]Write to MH i2c: E2 08 00 47 3C 80 11 00 00 00 00 00 00 FD [03:57:39]Write i2c OK [03:57:39]MH_I2C_Read... [03:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:57:40]Read from MH i2c: E2 [03:57:40]MH_I2C_Read... [03:57:40]Read from MH i2c: E2 17 00 [03:57:40]MH_I2C_Read... [03:57:40]Read from MH i2c: E2 17 00 47 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5D [03:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:57:40]wFMCommunicate OK [03:57:40]requested_item fd.num is exist - process it [03:57:40]SAM_PROTO_GetFieldsCounters [03:57:40]wFMCommunicate request_size=4 [03:57:40]MH_SAM_APDU [03:57:40]CAPDU: 80 13 00 00 [03:57:40]Write to MH i2c: E2 08 00 48 3C 80 13 00 00 00 00 00 00 00 [03:57:40]Write i2c OK [03:57:40]MH_I2C_Read... [03:57:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:57:40]Read from MH i2c: E2 [03:57:40]MH_I2C_Read... [03:57:40]Read from MH i2c: E2 62 00 [03:57:40]MH_I2C_Read... [03:57:40]Read from MH i2c: E2 62 00 48 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9B 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [03:57:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9B 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:57:40]wFMCommunicate OK [03:57:40]SAM_PROTO_GetFieldsCounters done [03:57:40]requested_item shift.num is exist - process it [03:57:40]requested_item shift.opened is exist - process it [03:57:40]req_shift_opened [03:57:40]FM_GetShiftState [03:57:40]SAM_PROTO_GetShiftState [03:57:40]wFMCommunicate request_size=4 [03:57:40]MH_SAM_APDU [03:57:40]CAPDU: 80 13 01 00 [03:57:40]Write to MH i2c: E2 08 00 49 3C 80 13 01 00 00 00 00 00 02 [03:57:40]Write i2c OK [03:57:40]MH_I2C_Read... [03:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:57:40]Read from MH i2c: E2 [03:57:40]MH_I2C_Read... [03:57:40]Read from MH i2c: E2 0E 00 [03:57:40]MH_I2C_Read... [03:57:40]Read from MH i2c: E2 0E 00 49 3C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 38 [03:57:40]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [03:57:40]wFMCommunicate OK [03:57:40]SAM_PROTO_GetShiftState done [03:57:40]FM_GetShiftState done [03:57:40]req_shift_opened done [03:57:40]requested_item shift.open_date is exist - process it [03:57:40]req_shift_open_date [03:57:40]req_shift_open_date done [03:57:40]produce_requested_data done [03:57:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162715,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [03:57:40]process_action_free close_receipt [03:57:40]json_value_free [03:57:40]json_value_free done [03:57:40]process_json_proto returns [03:57:40]Send response to host [03:57:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162715,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [03:57:40]free response buf [03:57:40]execute_script done [03:57:40]execute_script returns [03:57:40]free content buf [03:57:40]Sock 9.Close socket [03:57:40]Sock 9.Thread stoped [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:19]accept exits with 7 [04:16:19]New connection [04:16:19]New thread 3067366756 created [04:16:19]Thread 3067510116 joined [04:16:19]Waiting for new connection... [04:16:19] Sock 7.Parse request [04:16:19]Sock 7.Check first char [04:16:19]Sock 7.First char is OK [04:16:19]request: POST /json_proto HTTP/1.0 [04:16:19]Method: POST [04:16:19]URL: /json_proto [04:16:19]Method is POST - this is cgi request [04:16:19]url: /json_proto [04:16:19]query_string will be loaded in cgi processing [04:16:19]execute_cgi json_proto POST (null) [04:16:19]execute_cgi path=json_proto method=POST [04:16:19]POST find Content-Length [04:16:19]Host: 172.17.39.67:8080 [04:16:19]Content-Length: 688 [04:16:19]Content-Type: application/json [04:16:19] [04:16:19]POST finish read [04:16:19]Found Content-Length = 688 [04:16:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 17.910, "sum" : 1300.27, "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" ] } } [04:16:19]execute_script... [04:16: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)1319295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 17.910, "sum" : 1300.27, "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" ] } } [04:16:19]POST & json_proto [04:16:19]process_json_proto [04:16:19]json parsed OK: [04:16:19]protocol is kg_v1.0 [04:16:19]action value=close_receipt [04:16:19]process_action close_receipt [04:16:19]cmd_close_receipt [04:16:19]MH_GetDate [04:16:19]Write to MH i2c: F0 00 00 4A 3C 75 [04:16:19]Write i2c OK [04:16:19]MH_I2C_Read... [04:16:19]Read from MH i2c: F0 [04:16:19]MH_I2C_Read... [04:16:19]Read from MH i2c: F0 09 00 [04:16:19]MH_I2C_Read... [04:16:19]Read from MH i2c: F0 09 00 4A 3C 00 16 51 93 66 86 7C 92 66 D8 [04:16:19]GetLastDocTimeStamp 1720929459 [04:16:19]current date 1720930582 [04:16:19]FM_GetShiftState [04:16:19]SAM_PROTO_GetShiftState [04:16:19]wFMCommunicate request_size=4 [04:16:19]MH_SAM_APDU [04:16:19]CAPDU: 80 13 01 00 [04:16:19]Write to MH i2c: E2 08 00 4B 3C 80 13 01 00 00 00 00 00 04 [04:16:19]Write i2c OK [04:16:19]MH_I2C_Read... [04:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:19]Read from MH i2c: E2 [04:16:19]MH_I2C_Read... [04:16:19]Read from MH i2c: E2 0E 00 [04:16:19]MH_I2C_Read... [04:16:19]Read from MH i2c: E2 0E 00 4B 3C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3A [04:16:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [04:16:19]wFMCommunicate OK [04:16:19]SAM_PROTO_GetShiftState done [04:16:19]FM_GetShiftState done [04:16:19]opened in 1720915483 [04:16:19]opened+sec_in_day 1721001883 [04:16:19]quantity*price = 130026 [04:16:19]sum+1 = 130028 [04:16:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.08 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 28 14.07.2024 04:16 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162716 ФПД: 82914102181664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T041622&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162716&fm=82914102181664&tin=02508201610067®Number=0000000000090858&sum=130000 [04:16:20]StoreToDocumentArchive [04:16:20]shift 463 fd 162716 [04:16:20]save to /storage/0463/doc_00162716 [04:16:20]save last doc name /storage/0463/doc_00162716 to /storage/kkm_last_doc_name [04:16:20]save OK [04:16:20]Clear old archive folders... [04:16:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:16:20]tlvbuf is B6FE08F0 [04:16:20]SAM_PROTO_ClearQueue [04:16:20]wFMCommunicate request_size=4 [04:16:20]MH_SAM_APDU [04:16:20]CAPDU: 80 09 00 00 [04:16:20]Write to MH i2c: E2 08 00 58 3C 80 09 00 00 00 00 00 00 06 [04:16:20]Write i2c OK [04:16:20]MH_I2C_Read... [04:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:16:20]Read from MH i2c: E2 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: E2 03 00 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: E2 03 00 58 3C 00 90 00 08 [04:16:20]RAPDU: 90 00 [04:16:20]wFMCommunicate OK [04:16:20]SAM_PROTO_ClearQueue done [04:16:20]KKMCreateOFDPacket [04:16:20]OFDProtocolAddRootSTLVToBuf [04:16:20]FM_MakeSignedData [04:16:20]FM_MakeSignedData [04:16:20]SAM_PROTO_SignData [04:16:20]wFMCommunicate request_size=4 [04:16:20]MH_SAM_APDU [04:16:20]CAPDU: 80 0D 01 02 [04:16:20]Write to MH i2c: E2 08 00 59 3C 80 0D 01 02 00 00 00 00 0E [04:16:20]Write i2c OK [04:16:20]MH_I2C_Read... [04:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:16:20]Read from MH i2c: E2 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: E2 03 00 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: E2 03 00 59 3C 00 90 00 09 [04:16:20]RAPDU: 90 00 [04:16:20]wFMCommunicate OK [04:16:20]wFMCommunicate request_size=255 [04:16:20]MH_SAM_APDU [04:16:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F6 45 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EB FB 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 F0 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 1C 00 00 00 F4 03 04 00 16 51 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7B 02 00 35 04 06 00 [04:16:20]Write to MH i2c: E2 02 01 5A 3C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F6 45 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EB FB 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 F0 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 1C 00 00 00 F4 03 04 00 16 51 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7B 02 00 35 04 06 00 00 00 A4 [04:16:20]Write i2c OK [04:16:20]MH_I2C_Read... [04:16:20]OFD Sender: No OFD packet to send [04:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:20]Read from MH i2c: E2 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: E2 03 00 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: E2 03 00 5A 3C 00 90 00 0A [04:16:20]RAPDU: 90 00 [04:16:20]wFMCommunicate OK [04:16:20]wFMCommunicate request_size=11 [04:16:20]MH_SAM_APDU [04:16:20]CAPDU: 80 0D 02 02 06 4B 68 F1 9B 7F 20 [04:16:20]Write to MH i2c: E2 0E 00 5B 3C 80 0D 02 02 06 00 4B 68 F1 9B 7F 20 00 00 FB [04:16:20]Write i2c OK [04:16:20]MH_I2C_Read... [04:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:20]Read from MH i2c: E2 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: E2 03 00 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: E2 03 00 5B 3C 00 90 00 0B [04:16:20]RAPDU: 90 00 [04:16:20]wFMCommunicate OK [04:16:20]wFMCommunicate request_size=4 [04:16:20]MH_SAM_APDU [04:16:20]CAPDU: 80 0D 03 02 [04:16:20]Write to MH i2c: E2 08 00 5C 3C 80 0D 03 02 00 00 00 00 13 [04:16:20]Write i2c OK [04:16:20]MH_I2C_Read... [04:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:16:20]Read from MH i2c: E2 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: E2 0B 00 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: E2 0B 00 5C 3C 00 74 5F A4 86 66 EB 67 19 90 00 E2 [04:16:20]RAPDU: 74 5F A4 86 66 EB 67 19 90 00 [04:16:20]wFMCommunicate OK [04:16:20]SAM_PROTO_SignData done [04:16:20]FM_MakeSignedData done [04:16:20]CreateOFDProtocolMessage [04:16:20]wFMCommunicate request_size=4 [04:16:20]MH_SAM_APDU [04:16:20]CAPDU: 80 11 00 00 [04:16:20]Write to MH i2c: E2 08 00 5D 3C 80 11 00 00 00 00 00 00 13 [04:16:20]Write i2c OK [04:16:20]MH_I2C_Read... [04:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:20]Read from MH i2c: E2 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: E2 17 00 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: E2 17 00 5D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 73 [04:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:16:20]wFMCommunicate OK [04:16:20]CreateOFDProtocolMessage done [04:16:20]OFDSenderStorePacket 162716 [04:16:20]StoreOFDPacket docnum=162716 [04:16:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 72 5D 08 01 B0 8D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F6 45 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EB FB 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 F0 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 1C 00 00 00 F4 03 04 00 16 51 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7B 02 00 35 04 06 00 4B 68 F1 9B 7F 20 74 5F A4 86 66 EB 67 19 [04:16:20]CheckFolder [04:16:20]dirname=/storage/ofd_packets [04:16:20]CheckFolder done [04:16:20]ProducePacketName [04:16:20]name=ofd_packets/00162716 [04:16:20]NVStorageSaveData ofd_packets/00162716 [04:16:20]File name is /storage/ofd_packets/00162716 [04:16:20]Write 302 bytes [04:16:20]NVStorageSaveData done [04:16:20]OFDSenderStorePacket done [04:16:20]KKMCreateOFDPacket done [04:16:20]NVStorageSaveData kkm_last_timestamp [04:16:20]File name is /storage/kkm_last_timestamp [04:16:20]Write 4 bytes [04:16:20]NVStorageSaveData done [04:16:20]ExternCall_PrintAddStr [04:16:20]wPrintStart [04:16:20]Write to MH i2c: 01 00 00 5E 3C 9A [04:16:20]Write i2c OK [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: 01 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: 01 07 00 [04:16:20]MH_I2C_Read... [04:16:20]Read from MH i2c: 01 07 00 5E 3C 00 00 00 00 00 FF 0F AF [04:16:20]RasterBufferAndPrint [04:16:20]line Счет N : (1)1319295 [04:16:20]line ИНН: 02508201610067 [04:16:20]line Контрольно-Кассовый Чек [04:16:20]line ПРОДАЖА [04:16:20]line ТРК (МРК, ГНК) : 31 [04:16:20]line Товар: 2710194210 [04:16:20]line ДТ(л)-К-5 [04:16:20]line 17.910 * 72.60 [04:16:20]line = 1300.27 [04:16:20]line НДС 12% НСП 1% [04:16:20]line > о реализуемом товаре [04:16:20]line ОКРУГЛЕНИЕ: -0.27 [04:16:20]line ИТОГО: 1300.00 [04:16:20]line Внесено: 1300.00 [04:16:20]line СДАЧА: 0.00 [04:16:20]line НСП 1% : 11.51 [04:16:20]line НДС 12% : 138.08 [04:16:20]line Наличными: 1300.00 [04:16:20]line Безнал.: 0.00 [04:16:20]line Место: АЗС № 140 "Партнер Нефть" [04:16:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:16:20]line СНО: Общий режим [04:16:20]line Чек 28 14.07.2024 04:16 [04:16:20]line Смена: 463 ФФД: 1.0 [04:16:20]line ЗНМ: 0300000129 [04:16:20]line РНМ: 0000000000090858 [04:16:20]line Версия ККМ: 001 [04:16:20]line ФМ: 0000000000874899 [04:16:20]line ФД: 162716 [04:16:20]line ФПД: 82914102181664 [04:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T041622&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162716&fm=82914102181664&tin=02508201610067®Number=0000000000090858&sum=130000 [04:16:21]OFD Sender: Processing packet 162716 [packets to send 106, broken 105] [04:16:21]ProducePacketName [04:16:21]name=ofd_packets/00162716 [04:16:21]OFD Sender: To server: pG, [04:16:21]CommunicateWithHost lk.salyk.kg:30040 [04:16:21]ConnectInit lk.salyk.kg [04:16:21]written 0, free lines is 4095 [04:16:21]Connected sock=10 [04:16:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 72 5D 08 01 B0 8D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F6 45 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EB FB 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 F0 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 1C 00 00 00 F4 03 04 00 16 51 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7B 02 00 35 04 06 00 4B 68 F1 9B 7F 20 74 5F A4 86 66 EB 67 19 [04:16:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 41 E1 47 00 D8 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7B 02 00 F4 03 04 00 23 FD 92 66 B6 04 01 00 00 D7 76 D1 0D 9A 5F 28 E5 [04:16:21]CommunicateWithHost err = 0 [04:16:21]CheckOFDResponse [04:16:21]1017 (14) - 77093643461234 [04:16:21]1041 (16) - 0000000000874899 [04:16:21]1040 (4) - 162716 [04:16:21]1012 (4) - 13.07.2024 22:18 [04:16:21]1206 (1) - 0 [04:16:21]OFD Sender: Remove packet 162716 [04:16:21]ProducePacketName [04:16:21]name=ofd_packets/00162716 [04:16:21]NVStorageDeleteData [04:16:21]Write to MH i2c: 01 00 00 89 3C C5 [04:16:21]Write i2c OK [04:16:21]MH_I2C_Read... [04:16:21]Read from MH i2c: 01 [04:16:21]MH_I2C_Read... [04:16:21]Read from MH i2c: 01 07 00 [04:16:21]MH_I2C_Read... [04:16:21]Read from MH i2c: 01 07 00 89 3C 00 00 00 00 00 CD 0C A5 [04:16:21]RasterBufferAndPrint [04:16:21]line [04:16:21]line [04:16:21]line [04:16:21]line [04:16:21]line [04:16:21]written 0, free lines is 3284 [04:16:21]MH_Cut [04:16:21]Write to MH i2c: D1 01 00 90 3C 01 9E [04:16:21]Write i2c OK [04:16:21]MH_I2C_Read... [04:16:21]Read from MH i2c: D1 [04:16:21]MH_I2C_Read... [04:16:21]Read from MH i2c: D1 01 00 [04:16:21]MH_I2C_Read... [04:16:21]Read from MH i2c: D1 01 00 90 3C 00 9D [04:16:21]Write to MH i2c: 01 00 00 91 3C CD [04:16:21]Write i2c OK [04:16:21]MH_I2C_Read... [04:16:22]OFD Sender: No OFD packet to send [04:16:22]*** Cut start [04:16:22]*** Purtial cut [04:16:22]*** CUTSNS_PIN = 0 [04:16:22]*** Stage 1: CUTSNS_PIN = 1 [04:16:24]Read from MH i2c: 01 [04:16:24]MH_I2C_Read... [04:16:24]*** Stop cut motor [04:16:24]*** Cut end [04:16:24]Read from MH i2c: 01 07 00 [04:16:24]MH_I2C_Read... [04:16:24]Read from MH i2c: 01 07 00 91 3C 00 00 00 00 00 FF 0F E2 [04:16:24]process_action close_receipt done [04:16:24]requested_data is exist [04:16:24]produce_requested_data [04:16:24]requested_item fm.sn is exist - process it [04:16:24]wFMCommunicate request_size=4 [04:16:24]MH_SAM_APDU [04:16:24]CAPDU: 80 11 00 00 [04:16:24]Write to MH i2c: E2 08 00 92 3C 80 11 00 00 00 00 00 00 48 [04:16:24]Write i2c OK [04:16:24]MH_I2C_Read... [04:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:24]Read from MH i2c: E2 [04:16:24]MH_I2C_Read... [04:16:24]Read from MH i2c: E2 17 00 [04:16:24]MH_I2C_Read... [04:16:24]Read from MH i2c: E2 17 00 92 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A8 [04:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:16:24]wFMCommunicate OK [04:16:24]requested_item fd.num is exist - process it [04:16:24]SAM_PROTO_GetFieldsCounters [04:16:24]wFMCommunicate request_size=4 [04:16:24]MH_SAM_APDU [04:16:24]CAPDU: 80 13 00 00 [04:16:24]Write to MH i2c: E2 08 00 93 3C 80 13 00 00 00 00 00 00 4B [04:16:24]Write i2c OK [04:16:24]MH_I2C_Read... [04:16:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:16:24]Read from MH i2c: E2 [04:16:24]MH_I2C_Read... [04:16:24]Read from MH i2c: E2 62 00 [04:16:24]MH_I2C_Read... [04:16:24]Read from MH i2c: E2 62 00 93 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9C 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [04:16:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9C 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:16:24]wFMCommunicate OK [04:16:24]SAM_PROTO_GetFieldsCounters done [04:16:24]requested_item shift.num is exist - process it [04:16:24]requested_item shift.opened is exist - process it [04:16:24]req_shift_opened [04:16:24]FM_GetShiftState [04:16:24]SAM_PROTO_GetShiftState [04:16:24]wFMCommunicate request_size=4 [04:16:24]MH_SAM_APDU [04:16:24]CAPDU: 80 13 01 00 [04:16:24]Write to MH i2c: E2 08 00 94 3C 80 13 01 00 00 00 00 00 4D [04:16:24]Write i2c OK [04:16:24]MH_I2C_Read... [04:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:24]Read from MH i2c: E2 [04:16:24]MH_I2C_Read... [04:16:24]Read from MH i2c: E2 0E 00 [04:16:24]MH_I2C_Read... [04:16:24]Read from MH i2c: E2 0E 00 94 3C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 83 [04:16:24]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [04:16:24]wFMCommunicate OK [04:16:24]SAM_PROTO_GetShiftState done [04:16:24]FM_GetShiftState done [04:16:24]req_shift_opened done [04:16:24]requested_item shift.open_date is exist - process it [04:16:24]req_shift_open_date [04:16:24]req_shift_open_date done [04:16:24]produce_requested_data done [04:16:24]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162716,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [04:16:24]process_action_free close_receipt [04:16:24]json_value_free [04:16:24]json_value_free done [04:16:24]process_json_proto returns [04:16:24]Send response to host [04:16:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162716,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [04:16:24]free response buf [04:16:24]execute_script done [04:16:24]execute_script returns [04:16:24]free content buf [04:16:24]Sock 7.Close socket [04:16:24]Sock 7.Thread stoped [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:42]accept exits with 9 [04:19:42]New connection [04:19:42]New thread 3067510116 created [04:19:42]Thread 3067366756 joined [04:19:42]Waiting for new connection... [04:19:42] Sock 9.Parse request [04:19:42]Sock 9.Check first char [04:19:42]Sock 9.First char is OK [04:19:42]request: POST /json_proto HTTP/1.0 [04:19:42]Method: POST [04:19:42]URL: /json_proto [04:19:42]Method is POST - this is cgi request [04:19:42]url: /json_proto [04:19:42]query_string will be loaded in cgi processing [04:19:42]execute_cgi json_proto POST (null) [04:19:42]execute_cgi path=json_proto method=POST [04:19:42]POST find Content-Length [04:19:42]Host: 172.17.39.67:8080 [04:19:42]Content-Length: 688 [04:19:42]Content-Type: application/json [04:19:42] [04:19:42]POST finish read [04:19:42]Found Content-Length = 688 [04:19:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:19:42]execute_script... [04:19: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)1319296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:19:42]POST & json_proto [04:19:42]process_json_proto [04:19:42]json parsed OK: [04:19:42]protocol is kg_v1.0 [04:19:42]action value=close_receipt [04:19:42]process_action close_receipt [04:19:42]cmd_close_receipt [04:19:42]MH_GetDate [04:19:42]Write to MH i2c: F0 00 00 95 3C C0 [04:19:42]Write i2c OK [04:19:42]MH_I2C_Read... [04:19:42]Read from MH i2c: F0 [04:19:42]MH_I2C_Read... [04:19:42]Read from MH i2c: F0 09 00 [04:19:42]MH_I2C_Read... [04:19:42]Read from MH i2c: F0 09 00 95 3C 00 E2 51 93 66 86 7C 92 66 EF [04:19:42]GetLastDocTimeStamp 1720930582 [04:19:42]current date 1720930786 [04:19:42]FM_GetShiftState [04:19:42]SAM_PROTO_GetShiftState [04:19:42]wFMCommunicate request_size=4 [04:19:42]MH_SAM_APDU [04:19:42]CAPDU: 80 13 01 00 [04:19:42]Write to MH i2c: E2 08 00 96 3C 80 13 01 00 00 00 00 00 4F [04:19:42]Write i2c OK [04:19:42]MH_I2C_Read... [04:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:19:42]Read from MH i2c: E2 [04:19:42]MH_I2C_Read... [04:19:42]Read from MH i2c: E2 0E 00 [04:19:42]MH_I2C_Read... [04:19:42]Read from MH i2c: E2 0E 00 96 3C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 85 [04:19:42]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [04:19:42]wFMCommunicate OK [04:19:42]SAM_PROTO_GetShiftState done [04:19:42]FM_GetShiftState done [04:19:42]opened in 1720915483 [04:19:42]opened+sec_in_day 1721001883 [04:19:42]quantity*price = 100042 [04:19:42]sum+1 = 100044 [04:19:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 29 14.07.2024 04:19 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162717 ФПД: 109066660815970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T041946&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162717&fm=109066660815970&tin=02508201610067®Number=0000000000090858&sum=100000 [04:19:43]StoreToDocumentArchive [04:19:43]shift 463 fd 162717 [04:19:43]save to /storage/0463/doc_00162717 [04:19:43]save last doc name /storage/0463/doc_00162717 to /storage/kkm_last_doc_name [04:19:43]save OK [04:19:43]Clear old archive folders... [04:19:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:19:43]tlvbuf is 006D2A70 [04:19:43]SAM_PROTO_ClearQueue [04:19:43]wFMCommunicate request_size=4 [04:19:43]MH_SAM_APDU [04:19:43]CAPDU: 80 09 00 00 [04:19:43]Write to MH i2c: E2 08 00 A3 3C 80 09 00 00 00 00 00 00 51 [04:19:43]Write i2c OK [04:19:43]MH_I2C_Read... [04:19:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:19:43]Read from MH i2c: E2 [04:19:43]MH_I2C_Read... [04:19:43]Read from MH i2c: E2 03 00 [04:19:43]MH_I2C_Read... [04:19:43]Read from MH i2c: E2 03 00 A3 3C 00 90 00 53 [04:19:43]RAPDU: 90 00 [04:19:43]wFMCommunicate OK [04:19:43]SAM_PROTO_ClearQueue done [04:19:43]KKMCreateOFDPacket [04:19:43]OFDProtocolAddRootSTLVToBuf [04:19:43]FM_MakeSignedData [04:19:43]FM_MakeSignedData [04:19:43]SAM_PROTO_SignData [04:19:43]wFMCommunicate request_size=4 [04:19:43]MH_SAM_APDU [04:19:43]CAPDU: 80 0D 01 02 [04:19:43]Write to MH i2c: E2 08 00 A4 3C 80 0D 01 02 00 00 00 00 59 [04:19:43]Write i2c OK [04:19:43]MH_I2C_Read... [04:19:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:19:43]Read from MH i2c: E2 [04:19:43]MH_I2C_Read... [04:19:43]Read from MH i2c: E2 03 00 [04:19:43]MH_I2C_Read... [04:19:43]Read from MH i2c: E2 03 00 A4 3C 00 90 00 54 [04:19:43]RAPDU: 90 00 [04:19:43]wFMCommunicate OK [04:19:43]wFMCommunicate request_size=255 [04:19:43]MH_SAM_APDU [04:19:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 E2 51 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7B 02 00 35 04 06 00 [04:19:43]Write to MH i2c: E2 02 01 A5 3C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 E2 51 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7B 02 00 35 04 06 00 00 00 25 [04:19:43]Write i2c OK [04:19:43]MH_I2C_Read... [04:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:19:44]Read from MH i2c: E2 [04:19:44]MH_I2C_Read... [04:19:44]Read from MH i2c: E2 03 00 [04:19:44]MH_I2C_Read... [04:19:44]Read from MH i2c: E2 03 00 A5 3C 00 90 00 55 [04:19:44]RAPDU: 90 00 [04:19:44]wFMCommunicate OK [04:19:44]wFMCommunicate request_size=11 [04:19:44]MH_SAM_APDU [04:19:44]CAPDU: 80 0D 02 02 06 63 32 0F 93 24 62 [04:19:44]Write to MH i2c: E2 0E 00 A6 3C 80 0D 02 02 06 00 63 32 0F 93 24 62 00 00 25 [04:19:44]Write i2c OK [04:19:44]MH_I2C_Read... [04:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:19:44]Read from MH i2c: E2 [04:19:44]MH_I2C_Read... [04:19:44]Read from MH i2c: E2 03 00 [04:19:44]MH_I2C_Read... [04:19:44]Read from MH i2c: E2 03 00 A6 3C 00 90 00 56 [04:19:44]RAPDU: 90 00 [04:19:44]wFMCommunicate OK [04:19:44]wFMCommunicate request_size=4 [04:19:44]MH_SAM_APDU [04:19:44]CAPDU: 80 0D 03 02 [04:19:44]Write to MH i2c: E2 08 00 A7 3C 80 0D 03 02 00 00 00 00 5E [04:19:44]Write i2c OK [04:19:44]MH_I2C_Read... [04:19:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:19:44]Read from MH i2c: E2 [04:19:44]MH_I2C_Read... [04:19:44]Read from MH i2c: E2 0B 00 [04:19:44]MH_I2C_Read... [04:19:44]Read from MH i2c: E2 0B 00 A7 3C 00 E5 7B 29 C0 60 7B 4A 5D 90 00 2A [04:19:44]RAPDU: E5 7B 29 C0 60 7B 4A 5D 90 00 [04:19:44]wFMCommunicate OK [04:19:44]SAM_PROTO_SignData done [04:19:44]FM_MakeSignedData done [04:19:44]CreateOFDProtocolMessage [04:19:44]wFMCommunicate request_size=4 [04:19:44]MH_SAM_APDU [04:19:44]CAPDU: 80 11 00 00 [04:19:44]Write to MH i2c: E2 08 00 A8 3C 80 11 00 00 00 00 00 00 5E [04:19:44]Write i2c OK [04:19:44]MH_I2C_Read... [04:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:19:44]Read from MH i2c: E2 [04:19:44]MH_I2C_Read... [04:19:44]Read from MH i2c: E2 17 00 [04:19:44]MH_I2C_Read... [04:19:44]Read from MH i2c: E2 17 00 A8 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BE [04:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:19:44]wFMCommunicate OK [04:19:44]CreateOFDProtocolMessage done [04:19:44]OFDSenderStorePacket 162717 [04:19:44]StoreOFDPacket docnum=162717 [04:19:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 54 3A 08 01 5C 2E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 E2 51 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7B 02 00 35 04 06 00 63 32 0F 93 24 62 E5 7B 29 C0 60 7B 4A 5D [04:19:44]CheckFolder [04:19:44]dirname=/storage/ofd_packets [04:19:44]CheckFolder done [04:19:44]ProducePacketName [04:19:44]name=ofd_packets/00162717 [04:19:44]NVStorageSaveData ofd_packets/00162717 [04:19:44]File name is /storage/ofd_packets/00162717 [04:19:44]Write 302 bytes [04:19:44]NVStorageSaveData done [04:19:44]OFDSenderStorePacket done [04:19:44]KKMCreateOFDPacket done [04:19:44]NVStorageSaveData kkm_last_timestamp [04:19:44]File name is /storage/kkm_last_timestamp [04:19:44]Write 4 bytes [04:19:44]NVStorageSaveData done [04:19:44]ExternCall_PrintAddStr [04:19:44]wPrintStart [04:19:44]Write to MH i2c: 01 00 00 A9 3C E5 [04:19:44]Write i2c OK [04:19:44]MH_I2C_Read... [04:19:44]Read from MH i2c: 01 [04:19:44]MH_I2C_Read... [04:19:44]Read from MH i2c: 01 07 00 [04:19:44]MH_I2C_Read... [04:19:44]Read from MH i2c: 01 07 00 A9 3C 00 00 00 00 00 FF 0F FA [04:19:44]RasterBufferAndPrint [04:19:44]line Счет N : (1)1319296 [04:19:44]line ИНН: 02508201610067 [04:19:44]line Контрольно-Кассовый Чек [04:19:44]line ПРОДАЖА [04:19:44]line ТРК (МРК, ГНК) : 51 [04:19:44]line Товар: 2710194210 [04:19:44]line ДТ(л)-К-5 [04:19:44]line 13.780 * 72.60 [04:19:44]line = 1000.43 [04:19:44]line НДС 12% НСП 1% [04:19:44]line > о реализуемом товаре [04:19:44]line ОКРУГЛЕНИЕ: -0.43 [04:19:44]line ИТОГО: 1000.00 [04:19:44]line Внесено: 1000.00 [04:19:44]line СДАЧА: 0.00 [04:19:44]line НСП 1% : 8.85 [04:19:44]line НДС 12% : 106.24 [04:19:44]line Наличными: 1000.00 [04:19:44]line Безнал.: 0.00 [04:19:44]line Место: АЗС № 140 "Партнер Нефть" [04:19:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:19:44]line СНО: Общий режим [04:19:44]line Чек 29 14.07.2024 04:19 [04:19:44]line Смена: 463 ФФД: 1.0 [04:19:44]line ЗНМ: 0300000129 [04:19:44]line РНМ: 0000000000090858 [04:19:44]line Версия ККМ: 001 [04:19:44]line ФМ: 0000000000874899 [04:19:44]line ФД: 162717 [04:19:44]line ФПД: 109066660815970 [04:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T041946&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162717&fm=109066660815970&tin=02508201610067®Number=0000000000090858&sum=100000 [04:19:44]OFD Sender: Processing packet 162717 [packets to send 106, broken 105] [04:19:44]ProducePacketName [04:19:44]name=ofd_packets/00162717 [04:19:44]OFD Sender: To server: pG, [04:19:44]CommunicateWithHost lk.salyk.kg:30040 [04:19:44]ConnectInit lk.salyk.kg [04:19:44]written 0, free lines is 4095 [04:19:44]Connected sock=10 [04:19:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 54 3A 08 01 5C 2E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 E2 51 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7B 02 00 35 04 06 00 63 32 0F 93 24 62 E5 7B 29 C0 60 7B 4A 5D [04:19:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 38 34 47 00 21 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7B 02 00 F4 03 04 00 EF FD 92 66 B6 04 01 00 00 D7 D1 1B C9 D2 D2 41 12 [04:19:45]CommunicateWithHost err = 0 [04:19:45]CheckOFDResponse [04:19:45]1017 (14) - 77093643461234 [04:19:45]1041 (16) - 0000000000874899 [04:19:45]1040 (4) - 162717 [04:19:45]1012 (4) - 13.07.2024 22:21 [04:19:45]1206 (1) - 0 [04:19:45]OFD Sender: Remove packet 162717 [04:19:45]ProducePacketName [04:19:45]name=ofd_packets/00162717 [04:19:45]NVStorageDeleteData [04:19:45]Write to MH i2c: 01 00 00 D4 3C 10 [04:19:45]Write i2c OK [04:19:45]MH_I2C_Read... [04:19:45]Read from MH i2c: 01 [04:19:45]MH_I2C_Read... [04:19:45]Read from MH i2c: 01 07 00 [04:19:45]MH_I2C_Read... [04:19:45]Read from MH i2c: 01 07 00 D4 3C 00 00 00 00 00 CD 0C F0 [04:19:45]RasterBufferAndPrint [04:19:45]line [04:19:45]line [04:19:45]line [04:19:45]line [04:19:45]line [04:19:45]written 0, free lines is 3284 [04:19:45]MH_Cut [04:19:45]Write to MH i2c: D1 01 00 DB 3C 01 E9 [04:19:45]Write i2c OK [04:19:45]MH_I2C_Read... [04:19:45]Read from MH i2c: D1 [04:19:45]MH_I2C_Read... [04:19:45]Read from MH i2c: D1 01 00 [04:19:45]MH_I2C_Read... [04:19:45]Read from MH i2c: D1 01 00 DB 3C 00 E8 [04:19:45]Write to MH i2c: 01 00 00 DC 3C 18 [04:19:45]Write i2c OK [04:19:45]MH_I2C_Read... [04:19:45]OFD Sender: No OFD packet to send [04:19:45]*** Cut start [04:19:45]*** Purtial cut [04:19:45]*** Stage 1: CUTSNS_PIN = 1 [04:19:46]Read from MH i2c: 01 [04:19:46]MH_I2C_Read... [04:19:46]*** Stop cut motor [04:19:46]*** Cut end [04:19:46]Read from MH i2c: 01 07 00 [04:19:46]MH_I2C_Read... [04:19:46]Read from MH i2c: 01 07 00 DC 3C 00 00 00 00 00 FF 0F 2D [04:19:46]process_action close_receipt done [04:19:46]requested_data is exist [04:19:46]produce_requested_data [04:19:46]requested_item fm.sn is exist - process it [04:19:46]wFMCommunicate request_size=4 [04:19:46]MH_SAM_APDU [04:19:46]CAPDU: 80 11 00 00 [04:19:46]Write to MH i2c: E2 08 00 DD 3C 80 11 00 00 00 00 00 00 93 [04:19:46]Write i2c OK [04:19:46]MH_I2C_Read... [04:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:19:46]Read from MH i2c: E2 [04:19:46]MH_I2C_Read... [04:19:46]Read from MH i2c: E2 17 00 [04:19:46]MH_I2C_Read... [04:19:46]Read from MH i2c: E2 17 00 DD 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F3 [04:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:19:46]wFMCommunicate OK [04:19:46]requested_item fd.num is exist - process it [04:19:46]SAM_PROTO_GetFieldsCounters [04:19:46]wFMCommunicate request_size=4 [04:19:46]MH_SAM_APDU [04:19:46]CAPDU: 80 13 00 00 [04:19:46]Write to MH i2c: E2 08 00 DE 3C 80 13 00 00 00 00 00 00 96 [04:19:46]Write i2c OK [04:19:46]MH_I2C_Read... [04:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:19:46]Read from MH i2c: E2 [04:19:46]MH_I2C_Read... [04:19:46]Read from MH i2c: E2 62 00 [04:19:46]MH_I2C_Read... [04:19:46]Read from MH i2c: E2 62 00 DE 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9D 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [04:19:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9D 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:19:46]wFMCommunicate OK [04:19:46]SAM_PROTO_GetFieldsCounters done [04:19:46]requested_item shift.num is exist - process it [04:19:46]requested_item shift.opened is exist - process it [04:19:46]req_shift_opened [04:19:46]FM_GetShiftState [04:19:46]SAM_PROTO_GetShiftState [04:19:46]wFMCommunicate request_size=4 [04:19:46]MH_SAM_APDU [04:19:46]CAPDU: 80 13 01 00 [04:19:46]Write to MH i2c: E2 08 00 DF 3C 80 13 01 00 00 00 00 00 98 [04:19:46]Write i2c OK [04:19:46]MH_I2C_Read... [04:19:46]Read from MH i2c: E2 [04:19:46]MH_I2C_Read... [04:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:19:46]Read from MH i2c: E2 0E 00 [04:19:46]MH_I2C_Read... [04:19:46]Read from MH i2c: E2 0E 00 DF 3C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 CE [04:19:46]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [04:19:46]wFMCommunicate OK [04:19:46]SAM_PROTO_GetShiftState done [04:19:46]FM_GetShiftState done [04:19:46]req_shift_opened done [04:19:46]requested_item shift.open_date is exist - process it [04:19:46]req_shift_open_date [04:19:46]req_shift_open_date done [04:19:46]produce_requested_data done [04:19:46]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162717,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [04:19:46]process_action_free close_receipt [04:19:46]json_value_free [04:19:46]json_value_free done [04:19:46]process_json_proto returns [04:19:46]Send response to host [04:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162717,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [04:19:46]free response buf [04:19:46]execute_script done [04:19:46]execute_script returns [04:19:46]free content buf [04:19:46]Sock 9.Close socket [04:19:46]Sock 9.Thread stoped [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:50]accept exits with 7 [04:41:50]New connection [04:41:50]New thread 3067366756 created [04:41:50]Thread 3067510116 joined [04:41:50]Waiting for new connection... [04:41:50] Sock 7.Parse request [04:41:50]Sock 7.Check first char [04:41:50]Sock 7.First char is OK [04:41:50]request: POST /json_proto HTTP/1.0 [04:41:50]Method: POST [04:41:50]URL: /json_proto [04:41:50]Method is POST - this is cgi request [04:41:50]url: /json_proto [04:41:50]query_string will be loaded in cgi processing [04:41:50]execute_cgi json_proto POST (null) [04:41:50]execute_cgi path=json_proto method=POST [04:41:50]POST find Content-Length [04:41:50]Host: 172.17.39.67:8080 [04:41:50]Content-Length: 676 [04:41:50]Content-Type: application/json [04:41:50] [04:41:50]POST finish read [04:41:50]Found Content-Length = 676 [04:41:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 29.720, "sum" : 2000.16, "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" ] } } [04:41:50]execute_script... [04:41: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)1319297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 29.720, "sum" : 2000.16, "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" ] } } [04:41:50]POST & json_proto [04:41:50]process_json_proto [04:41:50]json parsed OK: [04:41:50]protocol is kg_v1.0 [04:41:50]action value=close_receipt [04:41:50]process_action close_receipt [04:41:50]cmd_close_receipt [04:41:50]MH_GetDate [04:41:50]Write to MH i2c: F0 00 00 E0 3C 0B [04:41:50]Write i2c OK [04:41:50]MH_I2C_Read... [04:41:50]Read from MH i2c: F0 [04:41:50]MH_I2C_Read... [04:41:50]Read from MH i2c: F0 09 00 [04:41:50]MH_I2C_Read... [04:41:50]Read from MH i2c: F0 09 00 E0 3C 00 11 57 93 66 86 7C 92 66 6F [04:41:50]GetLastDocTimeStamp 1720930786 [04:41:50]current date 1720932113 [04:41:50]FM_GetShiftState [04:41:50]SAM_PROTO_GetShiftState [04:41:50]wFMCommunicate request_size=4 [04:41:50]MH_SAM_APDU [04:41:50]CAPDU: 80 13 01 00 [04:41:50]Write to MH i2c: E2 08 00 E1 3C 80 13 01 00 00 00 00 00 9A [04:41:50]Write i2c OK [04:41:50]MH_I2C_Read... [04:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:50]Read from MH i2c: E2 [04:41:50]MH_I2C_Read... [04:41:50]Read from MH i2c: E2 0E 00 [04:41:50]MH_I2C_Read... [04:41:50]Read from MH i2c: E2 0E 00 E1 3C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D0 [04:41:50]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [04:41:50]wFMCommunicate OK [04:41:50]SAM_PROTO_GetShiftState done [04:41:50]FM_GetShiftState done [04:41:50]opened in 1720915483 [04:41:50]opened+sec_in_day 1721001883 [04:41:50]quantity*price = 200015 [04:41:50]sum+1 = 200017 [04:41:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 30 14.07.2024 04:41 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162718 ФПД: 36326300983218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T044153&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162718&fm=36326300983218&tin=02508201610067®Number=0000000000090858&sum=200000 [04:41:51]StoreToDocumentArchive [04:41:51]shift 463 fd 162718 [04:41:51]save to /storage/0463/doc_00162718 [04:41:51]save last doc name /storage/0463/doc_00162718 to /storage/kkm_last_doc_name [04:41:51]save OK [04:41:51]Clear old archive folders... [04:41:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:41:51]tlvbuf is 006B33F0 [04:41:51]SAM_PROTO_ClearQueue [04:41:51]wFMCommunicate request_size=4 [04:41:51]MH_SAM_APDU [04:41:51]CAPDU: 80 09 00 00 [04:41:51]Write to MH i2c: E2 08 00 EE 3C 80 09 00 00 00 00 00 00 9C [04:41:51]Write i2c OK [04:41:51]MH_I2C_Read... [04:41:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:41:51]Read from MH i2c: E2 [04:41:51]MH_I2C_Read... [04:41:51]Read from MH i2c: E2 03 00 [04:41:51]MH_I2C_Read... [04:41:51]Read from MH i2c: E2 03 00 EE 3C 00 90 00 9E [04:41:51]RAPDU: 90 00 [04:41:51]wFMCommunicate OK [04:41:51]SAM_PROTO_ClearQueue done [04:41:51]KKMCreateOFDPacket [04:41:51]OFDProtocolAddRootSTLVToBuf [04:41:51]FM_MakeSignedData [04:41:51]FM_MakeSignedData [04:41:51]SAM_PROTO_SignData [04:41:51]wFMCommunicate request_size=4 [04:41:51]MH_SAM_APDU [04:41:51]CAPDU: 80 0D 01 02 [04:41:51]Write to MH i2c: E2 08 00 EF 3C 80 0D 01 02 00 00 00 00 A4 [04:41:51]Write i2c OK [04:41:51]MH_I2C_Read... [04:41:51]Read from MH i2c: E2 [04:41:51]MH_I2C_Read... [04:41:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:41:51]Read from MH i2c: E2 03 00 [04:41:51]MH_I2C_Read... [04:41:51]Read from MH i2c: E2 03 00 EF 3C 00 90 00 9F [04:41:51]RAPDU: 90 00 [04:41:51]wFMCommunicate OK [04:41:51]wFMCommunicate request_size=255 [04:41:51]MH_SAM_APDU [04:41:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 11 57 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7B 02 00 35 04 06 00 [04:41:51]Write to MH i2c: E2 02 01 F0 3C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 11 57 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7B 02 00 35 04 06 00 00 00 7F [04:41:51]Write i2c OK [04:41:51]MH_I2C_Read... [04:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:51]Read from MH i2c: E2 [04:41:51]MH_I2C_Read... [04:41:51]Read from MH i2c: E2 03 00 [04:41:51]MH_I2C_Read... [04:41:51]Read from MH i2c: E2 03 00 F0 3C 00 90 00 A0 [04:41:51]RAPDU: 90 00 [04:41:51]wFMCommunicate OK [04:41:51]wFMCommunicate request_size=11 [04:41:51]MH_SAM_APDU [04:41:51]CAPDU: 80 0D 02 02 06 21 09 E0 44 1F B2 [04:41:51]Write to MH i2c: E2 0E 00 F1 3C 80 0D 02 02 06 00 21 09 E0 44 1F B2 00 00 D2 [04:41:51]Write i2c OK [04:41:51]MH_I2C_Read... [04:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:51]Read from MH i2c: E2 [04:41:51]MH_I2C_Read... [04:41:51]Read from MH i2c: E2 03 00 [04:41:51]MH_I2C_Read... [04:41:51]Read from MH i2c: E2 03 00 F1 3C 00 90 00 A1 [04:41:51]RAPDU: 90 00 [04:41:51]wFMCommunicate OK [04:41:51]wFMCommunicate request_size=4 [04:41:51]MH_SAM_APDU [04:41:51]CAPDU: 80 0D 03 02 [04:41:51]Write to MH i2c: E2 08 00 F2 3C 80 0D 03 02 00 00 00 00 A9 [04:41:51]Write i2c OK [04:41:51]MH_I2C_Read... [04:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:41:51]Read from MH i2c: E2 [04:41:51]MH_I2C_Read... [04:41:51]Read from MH i2c: E2 0B 00 [04:41:51]MH_I2C_Read... [04:41:51]Read from MH i2c: E2 0B 00 F2 3C 00 11 32 1C 4F 50 59 A0 67 90 00 08 [04:41:51]RAPDU: 11 32 1C 4F 50 59 A0 67 90 00 [04:41:51]wFMCommunicate OK [04:41:51]SAM_PROTO_SignData done [04:41:51]FM_MakeSignedData done [04:41:51]CreateOFDProtocolMessage [04:41:51]wFMCommunicate request_size=4 [04:41:51]MH_SAM_APDU [04:41:51]CAPDU: 80 11 00 00 [04:41:51]Write to MH i2c: E2 08 00 F3 3C 80 11 00 00 00 00 00 00 A9 [04:41:51]Write i2c OK [04:41:51]MH_I2C_Read... [04:41:52]OFD Sender: No OFD packet to send [04:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:52]Read from MH i2c: E2 [04:41:52]MH_I2C_Read... [04:41:52]Read from MH i2c: E2 17 00 [04:41:52]MH_I2C_Read... [04:41:52]Read from MH i2c: E2 17 00 F3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 09 [04:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:41:52]wFMCommunicate OK [04:41:52]CreateOFDProtocolMessage done [04:41:52]OFDSenderStorePacket 162718 [04:41:52]StoreOFDPacket docnum=162718 [04:41:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 85 65 08 01 79 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 11 57 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7B 02 00 35 04 06 00 21 09 E0 44 1F B2 11 32 1C 4F 50 59 A0 67 [04:41:52]CheckFolder [04:41:52]dirname=/storage/ofd_packets [04:41:52]CheckFolder done [04:41:52]ProducePacketName [04:41:52]name=ofd_packets/00162718 [04:41:52]NVStorageSaveData ofd_packets/00162718 [04:41:52]File name is /storage/ofd_packets/00162718 [04:41:52]Write 302 bytes [04:41:52]NVStorageSaveData done [04:41:52]OFDSenderStorePacket done [04:41:52]KKMCreateOFDPacket done [04:41:52]NVStorageSaveData kkm_last_timestamp [04:41:52]File name is /storage/kkm_last_timestamp [04:41:52]Write 4 bytes [04:41:52]NVStorageSaveData done [04:41:52]ExternCall_PrintAddStr [04:41:52]wPrintStart [04:41:52]Write to MH i2c: 01 00 00 F4 3C 30 [04:41:52]Write i2c OK [04:41:52]MH_I2C_Read... [04:41:52]Read from MH i2c: 01 [04:41:52]MH_I2C_Read... [04:41:52]Read from MH i2c: 01 07 00 [04:41:52]MH_I2C_Read... [04:41:52]Read from MH i2c: 01 07 00 F4 3C 00 00 00 00 00 FF 0F 45 [04:41:52]RasterBufferAndPrint [04:41:52]line Счет N : (1)1319297 [04:41:52]line ИНН: 02508201610067 [04:41:52]line Контрольно-Кассовый Чек [04:41:52]line ПРОДАЖА [04:41:52]line ТРК (МРК, ГНК) : 42 [04:41:52]line Товар: 2710124130 [04:41:52]line Super-92-К-5 [04:41:52]line 29.720 * 67.30 [04:41:52]line = 2000.16 [04:41:52]line НДС 12% НСП 1% [04:41:52]line > о реализуемом товаре [04:41:52]line ОКРУГЛЕНИЕ: -0.16 [04:41:52]line ИТОГО: 2000.00 [04:41:52]line Внесено: 2000.00 [04:41:52]line СДАЧА: 0.00 [04:41:52]line НСП 1% : 17.70 [04:41:52]line НДС 12% : 212.41 [04:41:52]line Наличными: 2000.00 [04:41:52]line Безнал.: 0.00 [04:41:52]line Место: АЗС № 140 "Партнер Нефть" [04:41:52]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:41:52]line СНО: Общий режим [04:41:52]line Чек 30 14.07.2024 04:41 [04:41:52]line Смена: 463 ФФД: 1.0 [04:41:52]line ЗНМ: 0300000129 [04:41:52]line РНМ: 0000000000090858 [04:41:52]line Версия ККМ: 001 [04:41:52]line ФМ: 0000000000874899 [04:41:52]line ФД: 162718 [04:41:52]line ФПД: 36326300983218 [04:41:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T044153&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162718&fm=36326300983218&tin=02508201610067®Number=0000000000090858&sum=200000 [04:41:52]OFD Sender: Processing packet 162718 [packets to send 106, broken 105] [04:41:52]ProducePacketName [04:41:52]name=ofd_packets/00162718 [04:41:52]OFD Sender: To server: pG, [04:41:52]CommunicateWithHost lk.salyk.kg:30040 [04:41:52]ConnectInit lk.salyk.kg [04:41:52]written 0, free lines is 4095 [04:41:52]Connected sock=10 [04:41:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 85 65 08 01 79 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 11 57 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7B 02 00 35 04 06 00 21 09 E0 44 1F B2 11 32 1C 4F 50 59 A0 67 [04:41:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E2 B4 47 00 54 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7B 02 00 F4 03 04 00 1F 03 93 66 B6 04 01 00 00 32 75 3E 43 A4 06 C3 4F [04:41:52]CommunicateWithHost err = 0 [04:41:52]CheckOFDResponse [04:41:52]1017 (14) - 77093643461234 [04:41:52]1041 (16) - 0000000000874899 [04:41:52]1040 (4) - 162718 [04:41:52]1012 (4) - 13.07.2024 22:43 [04:41:52]1206 (1) - 0 [04:41:52]OFD Sender: Remove packet 162718 [04:41:52]ProducePacketName [04:41:52]name=ofd_packets/00162718 [04:41:52]NVStorageDeleteData [04:41:52]Write to MH i2c: 01 00 00 1F 3D 5C [04:41:52]Write i2c OK [04:41:52]MH_I2C_Read... [04:41:52]Read from MH i2c: 01 [04:41:52]MH_I2C_Read... [04:41:52]Read from MH i2c: 01 07 00 [04:41:52]MH_I2C_Read... [04:41:52]Read from MH i2c: 01 07 00 1F 3D 00 00 00 00 00 D1 0C 40 [04:41:52]RasterBufferAndPrint [04:41:52]line [04:41:52]line [04:41:52]line [04:41:52]line [04:41:52]line [04:41:52]written 0, free lines is 3287 [04:41:52]MH_Cut [04:41:52]Write to MH i2c: D1 01 00 26 3D 01 35 [04:41:52]Write i2c OK [04:41:52]MH_I2C_Read... [04:41:52]Read from MH i2c: D1 [04:41:52]MH_I2C_Read... [04:41:52]Read from MH i2c: D1 01 00 [04:41:52]MH_I2C_Read... [04:41:52]Read from MH i2c: D1 01 00 26 3D 00 34 [04:41:52]Write to MH i2c: 01 00 00 27 3D 64 [04:41:52]Write i2c OK [04:41:52]MH_I2C_Read... [04:41:53]OFD Sender: No OFD packet to send [04:41:53]*** Cut start [04:41:53]*** Purtial cut [04:41:53]*** CUTSNS_PIN = 0 [04:41:53]*** Stage 1: CUTSNS_PIN = 1 [04:41:55]Read from MH i2c: 01 [04:41:55]MH_I2C_Read... [04:41:55]*** Stop cut motor [04:41:55]*** Cut end [04:41:55]Read from MH i2c: 01 07 00 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: 01 07 00 27 3D 00 00 00 00 00 FF 0F 79 [04:41:55]process_action close_receipt done [04:41:55]requested_data is exist [04:41:55]produce_requested_data [04:41:55]requested_item fm.sn is exist - process it [04:41:55]wFMCommunicate request_size=4 [04:41:55]MH_SAM_APDU [04:41:55]CAPDU: 80 11 00 00 [04:41:55]Write to MH i2c: E2 08 00 28 3D 80 11 00 00 00 00 00 00 DF [04:41:55]Write i2c OK [04:41:55]MH_I2C_Read... [04:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:55]Read from MH i2c: E2 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: E2 17 00 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: E2 17 00 28 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3F [04:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:41:55]wFMCommunicate OK [04:41:55]requested_item fd.num is exist - process it [04:41:55]SAM_PROTO_GetFieldsCounters [04:41:55]wFMCommunicate request_size=4 [04:41:55]MH_SAM_APDU [04:41:55]CAPDU: 80 13 00 00 [04:41:55]Write to MH i2c: E2 08 00 29 3D 80 13 00 00 00 00 00 00 E2 [04:41:55]Write i2c OK [04:41:55]MH_I2C_Read... [04:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:41:55]Read from MH i2c: E2 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: E2 62 00 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: E2 62 00 29 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [04:41:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:41:55]wFMCommunicate OK [04:41:55]SAM_PROTO_GetFieldsCounters done [04:41:55]requested_item shift.num is exist - process it [04:41:55]requested_item shift.opened is exist - process it [04:41:55]req_shift_opened [04:41:55]FM_GetShiftState [04:41:55]SAM_PROTO_GetShiftState [04:41:55]wFMCommunicate request_size=4 [04:41:55]MH_SAM_APDU [04:41:55]CAPDU: 80 13 01 00 [04:41:55]Write to MH i2c: E2 08 00 2A 3D 80 13 01 00 00 00 00 00 E4 [04:41:55]Write i2c OK [04:41:55]MH_I2C_Read... [04:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:55]Read from MH i2c: E2 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: E2 0E 00 [04:41:55]MH_I2C_Read... [04:41:55]Read from MH i2c: E2 0E 00 2A 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1A [04:41:55]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [04:41:55]wFMCommunicate OK [04:41:55]SAM_PROTO_GetShiftState done [04:41:55]FM_GetShiftState done [04:41:55]req_shift_opened done [04:41:55]requested_item shift.open_date is exist - process it [04:41:55]req_shift_open_date [04:41:55]req_shift_open_date done [04:41:55]produce_requested_data done [04:41:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162718,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [04:41:55]process_action_free close_receipt [04:41:55]json_value_free [04:41:55]json_value_free done [04:41:55]process_json_proto returns [04:41:55]Send response to host [04:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162718,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [04:41:55]free response buf [04:41:55]execute_script done [04:41:55]execute_script returns [04:41:55]free content buf [04:41:55]Sock 7.Close socket [04:41:55]Sock 7.Thread stoped [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]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]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: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: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: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: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:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]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:11]accept exits with 9 [04:54:11]New connection [04:54:11]New thread 3067510116 created [04:54:11]Thread 3067366756 joined [04:54:11]Waiting for new connection... [04:54:11] Sock 9.Parse request [04:54:11]Sock 9.Check first char [04:54:11]Sock 9.First char is OK [04:54:11]request: POST /json_proto HTTP/1.0 [04:54:11]Method: POST [04:54:11]URL: /json_proto [04:54:11]Method is POST - this is cgi request [04:54:11]url: /json_proto [04:54:11]query_string will be loaded in cgi processing [04:54:11]execute_cgi json_proto POST (null) [04:54:11]execute_cgi path=json_proto method=POST [04:54:11]POST find Content-Length [04:54:11]Host: 172.17.39.67:8080 [04:54:11]Content-Length: 1208 [04:54:11]Content-Type: application/json [04:54:11] [04:54:11]POST finish read [04:54:11]Found Content-Length = 1208 [04:54:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319298\u000A14.07.2024 04:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.170 x 66.30\u000A\u0418\u0422\u041E\u0413: 2000.27\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:11]execute_script... [04:54:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319298\u000A14.07.2024 04:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.170 x 66.30\u000A\u0418\u0422\u041E\u0413: 2000.27\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:11]POST & json_proto [04:54:11]process_json_proto [04:54:11]json parsed OK: [04:54:11]protocol is kg_v1.0 [04:54:11]action value=print_text [04:54:11]process_action print_text [04:54:11]cmd_print_text [04:54:11]ExternCall_PrintAddStr [04:54:11]wPrintStart [04:54:11]Write to MH i2c: 01 00 00 2B 3D 68 [04:54:11]Write i2c OK [04:54:11]MH_I2C_Read... [04:54:11]Read from MH i2c: 01 [04:54:11]MH_I2C_Read... [04:54:11]Read from MH i2c: 01 07 00 [04:54:11]MH_I2C_Read... [04:54:11]Read from MH i2c: 01 07 00 2B 3D 00 00 00 00 00 FF 0F 7D [04:54:11]RasterBufferAndPrint [04:54:11]line *****ТОВАРНЫЙ ЧЕК***** [04:54:11]line АЗС 140 [04:54:11]line Партнер нефть [04:54:11]line 02508201610067 [04:54:11]line Кассир : Дуйшенбек у Н. [04:54:11]line Счет N : (1)1319298 [04:54:11]line 14.07.2024 04:51 [04:54:11]line ПРОДАЖА [04:54:11]line ТРК (МРК, ГНК): 33 [04:54:11]line Вид ГСМ : 2710124130 [04:54:11]line Аи-92-К-5 [04:54:11]line 30.170 x 66.30 [04:54:11]line ИТОГ: 2000.27 [04:54:11]line Тип оплаты: Талоны: Топливная Карта [04:54:11]line 32788 [04:54:11]line ______________________ [04:54:11]line (подпись) [04:54:11]written 0, free lines is 4095 [04:54:11]Write to MH i2c: 01 00 00 3F 3D 7C [04:54:11]Write i2c OK [04:54:11]MH_I2C_Read... [04:54:11]Read from MH i2c: 01 [04:54:11]MH_I2C_Read... [04:54:11]Read from MH i2c: 01 07 00 [04:54:11]MH_I2C_Read... [04:54:11]Read from MH i2c: 01 07 00 3F 3D 00 00 00 00 00 12 0E A3 [04:54:11]RasterBufferAndPrint [04:54:11]line [04:54:11]line [04:54:11]line [04:54:11]line [04:54:11]line [04:54:11]written 0, free lines is 3603 [04:54:11]MH_Cut [04:54:11]Write to MH i2c: D1 01 00 46 3D 01 55 [04:54:11]Write i2c OK [04:54:11]MH_I2C_Read... [04:54:11]Read from MH i2c: D1 [04:54:11]MH_I2C_Read... [04:54:11]Read from MH i2c: D1 01 00 [04:54:11]MH_I2C_Read... [04:54:11]Read from MH i2c: D1 01 00 46 3D 00 54 [04:54:11]Write to MH i2c: 01 00 00 47 3D 84 [04:54:11]Write i2c OK [04:54:11]MH_I2C_Read... [04:54:12]*** Cut start [04:54:12]*** Purtial cut [04:54:12]*** Stage 1: CUTSNS_PIN = 1 [04:54:12]Read from MH i2c: 01 [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: 01 07 00 [04:54:12]MH_I2C_Read... [04:54:12]*** Stop cut motor [04:54:12]*** Cut end [04:54:12]Read from MH i2c: 01 07 00 47 3D 00 00 00 00 00 FF 0F 99 [04:54:12]process_action print_text done [04:54:12]requested_data is exist [04:54:12]produce_requested_data [04:54:12]requested_item fm.sn is exist - process it [04:54:12]wFMCommunicate request_size=4 [04:54:12]MH_SAM_APDU [04:54:12]CAPDU: 80 11 00 00 [04:54:12]Write to MH i2c: E2 08 00 48 3D 80 11 00 00 00 00 00 00 FF [04:54:12]Write i2c OK [04:54:12]MH_I2C_Read... [04:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:12]Read from MH i2c: E2 [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: E2 17 00 [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: E2 17 00 48 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5F [04:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:54:12]wFMCommunicate OK [04:54:12]requested_item fd.num is exist - process it [04:54:12]SAM_PROTO_GetFieldsCounters [04:54:12]wFMCommunicate request_size=4 [04:54:12]MH_SAM_APDU [04:54:12]CAPDU: 80 13 00 00 [04:54:12]Write to MH i2c: E2 08 00 49 3D 80 13 00 00 00 00 00 00 02 [04:54:12]Write i2c OK [04:54:12]MH_I2C_Read... [04:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:54:12]Read from MH i2c: E2 [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: E2 62 00 [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: E2 62 00 49 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [04:54:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:54:12]wFMCommunicate OK [04:54:12]SAM_PROTO_GetFieldsCounters done [04:54:12]requested_item shift.num is exist - process it [04:54:12]requested_item shift.opened is exist - process it [04:54:12]req_shift_opened [04:54:12]FM_GetShiftState [04:54:12]SAM_PROTO_GetShiftState [04:54:12]wFMCommunicate request_size=4 [04:54:12]MH_SAM_APDU [04:54:12]CAPDU: 80 13 01 00 [04:54:12]Write to MH i2c: E2 08 00 4A 3D 80 13 01 00 00 00 00 00 04 [04:54:12]Write i2c OK [04:54:12]MH_I2C_Read... [04:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:12]Read from MH i2c: E2 [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: E2 0E 00 [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: E2 0E 00 4A 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3A [04:54:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [04:54:12]wFMCommunicate OK [04:54:12]SAM_PROTO_GetShiftState done [04:54:12]FM_GetShiftState done [04:54:12]req_shift_opened done [04:54:12]requested_item shift.open_date is exist - process it [04:54:12]req_shift_open_date [04:54:12]req_shift_open_date done [04:54:12]produce_requested_data done [04:54:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162718,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [04:54:12]process_action_free print_text [04:54:12]json_value_free [04:54:12]json_value_free done [04:54:12]process_json_proto returns [04:54:12]Send response to host [04:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162718,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [04:54:12]free response buf [04:54:12]execute_script done [04:54:12]execute_script returns [04:54:12]free content buf [04:54:12]Sock 9.Close socket [04:54:12]Sock 9.Thread stoped [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:30]accept exits with 7 [05:03:30]New connection [05:03:30]New thread 3067366756 created [05:03:30]Thread 3067510116 joined [05:03:30]Waiting for new connection... [05:03:30] Sock 7.Parse request [05:03:30]Sock 7.Check first char [05:03:30]Sock 7.First char is OK [05:03:30]request: POST /json_proto HTTP/1.0 [05:03:30]Method: POST [05:03:30]URL: /json_proto [05:03:30]Method is POST - this is cgi request [05:03:30]url: /json_proto [05:03:30]query_string will be loaded in cgi processing [05:03:30]execute_cgi json_proto POST (null) [05:03:30]execute_cgi path=json_proto method=POST [05:03:30]POST find Content-Length [05:03:30]Host: 172.17.39.67:8080 [05:03:30]Content-Length: 688 [05:03:30]Content-Type: application/json [05:03:30] [05:03:30]POST finish read [05:03:30]Found Content-Length = 688 [05:03:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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" ] } } [05:03:30]execute_script... [05:03: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)1319299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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" ] } } [05:03:30]POST & json_proto [05:03:30]process_json_proto [05:03:30]json parsed OK: [05:03:30]protocol is kg_v1.0 [05:03:30]action value=close_receipt [05:03:30]process_action close_receipt [05:03:30]cmd_close_receipt [05:03:30]MH_GetDate [05:03:30]Write to MH i2c: F0 00 00 4B 3D 77 [05:03:30]Write i2c OK [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: F0 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: F0 09 00 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: F0 09 00 4B 3D 00 25 5C 93 66 86 7C 92 66 F4 [05:03:30]GetLastDocTimeStamp 1720932113 [05:03:30]current date 1720933413 [05:03:30]FM_GetShiftState [05:03:30]SAM_PROTO_GetShiftState [05:03:30]wFMCommunicate request_size=4 [05:03:30]MH_SAM_APDU [05:03:30]CAPDU: 80 13 01 00 [05:03:30]Write to MH i2c: E2 08 00 4C 3D 80 13 01 00 00 00 00 00 06 [05:03:30]Write i2c OK [05:03:30]MH_I2C_Read... [05:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:30]Read from MH i2c: E2 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 0E 00 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 0E 00 4C 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3C [05:03:30]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [05:03:30]wFMCommunicate OK [05:03:30]SAM_PROTO_GetShiftState done [05:03:30]FM_GetShiftState done [05:03:30]opened in 1720915483 [05:03:30]opened+sec_in_day 1721001883 [05:03:30]quantity*price = 100042 [05:03:30]sum+1 = 100044 [05:03:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 31 14.07.2024 05:03 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162719 ФПД: 233512370435111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T050333&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162719&fm=233512370435111&tin=02508201610067®Number=0000000000090858&sum=100000 [05:03:31]StoreToDocumentArchive [05:03:31]shift 463 fd 162719 [05:03:31]save to /storage/0463/doc_00162719 [05:03:31]save last doc name /storage/0463/doc_00162719 to /storage/kkm_last_doc_name [05:03:31]save OK [05:03:31]Clear old archive folders... [05:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:03:31]tlvbuf is B6E30AA0 [05:03:31]SAM_PROTO_ClearQueue [05:03:31]wFMCommunicate request_size=4 [05:03:31]MH_SAM_APDU [05:03:31]CAPDU: 80 09 00 00 [05:03:31]Write to MH i2c: E2 08 00 59 3D 80 09 00 00 00 00 00 00 08 [05:03:31]Write i2c OK [05:03:31]MH_I2C_Read... [05:03:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:03:31]Read from MH i2c: E2 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: E2 03 00 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: E2 03 00 59 3D 00 90 00 0A [05:03:31]RAPDU: 90 00 [05:03:31]wFMCommunicate OK [05:03:31]SAM_PROTO_ClearQueue done [05:03:31]KKMCreateOFDPacket [05:03:31]OFDProtocolAddRootSTLVToBuf [05:03:31]FM_MakeSignedData [05:03:31]FM_MakeSignedData [05:03:31]SAM_PROTO_SignData [05:03:31]wFMCommunicate request_size=4 [05:03:31]MH_SAM_APDU [05:03:31]CAPDU: 80 0D 01 02 [05:03:31]Write to MH i2c: E2 08 00 5A 3D 80 0D 01 02 00 00 00 00 10 [05:03:31]Write i2c OK [05:03:31]MH_I2C_Read... [05:03:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:03:31]Read from MH i2c: E2 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: E2 03 00 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: E2 03 00 5A 3D 00 90 00 0B [05:03:31]RAPDU: 90 00 [05:03:31]wFMCommunicate OK [05:03:31]wFMCommunicate request_size=255 [05:03:31]MH_SAM_APDU [05:03:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 25 5C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9F 7B 02 00 35 04 06 00 [05:03:31]Write to MH i2c: E2 02 01 5B 3D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 25 5C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9F 7B 02 00 35 04 06 00 00 00 2E [05:03:31]Write i2c OK [05:03:31]MH_I2C_Read... [05:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:31]Read from MH i2c: E2 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: E2 03 00 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: E2 03 00 5B 3D 00 90 00 0C [05:03:31]RAPDU: 90 00 [05:03:31]wFMCommunicate OK [05:03:31]wFMCommunicate request_size=11 [05:03:31]MH_SAM_APDU [05:03:31]CAPDU: 80 0D 02 02 06 D4 60 D5 E3 F4 27 [05:03:31]Write to MH i2c: E2 0E 00 5C 3D 80 0D 02 02 06 00 D4 60 D5 E3 F4 27 00 00 26 [05:03:31]Write i2c OK [05:03:31]MH_I2C_Read... [05:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:31]Read from MH i2c: E2 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: E2 03 00 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: E2 03 00 5C 3D 00 90 00 0D [05:03:31]RAPDU: 90 00 [05:03:31]wFMCommunicate OK [05:03:31]wFMCommunicate request_size=4 [05:03:31]MH_SAM_APDU [05:03:31]CAPDU: 80 0D 03 02 [05:03:31]Write to MH i2c: E2 08 00 5D 3D 80 0D 03 02 00 00 00 00 15 [05:03:31]Write i2c OK [05:03:31]MH_I2C_Read... [05:03:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:03:32]Read from MH i2c: E2 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: E2 0B 00 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: E2 0B 00 5D 3D 00 26 C7 C4 85 DD E4 1A 27 90 00 4E [05:03:32]RAPDU: 26 C7 C4 85 DD E4 1A 27 90 00 [05:03:32]wFMCommunicate OK [05:03:32]SAM_PROTO_SignData done [05:03:32]FM_MakeSignedData done [05:03:32]CreateOFDProtocolMessage [05:03:32]wFMCommunicate request_size=4 [05:03:32]MH_SAM_APDU [05:03:32]CAPDU: 80 11 00 00 [05:03:32]Write to MH i2c: E2 08 00 5E 3D 80 11 00 00 00 00 00 00 15 [05:03:32]Write i2c OK [05:03:32]MH_I2C_Read... [05:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:32]Read from MH i2c: E2 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: E2 17 00 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: E2 17 00 5E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 75 [05:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:03:32]wFMCommunicate OK [05:03:32]CreateOFDProtocolMessage done [05:03:32]OFDSenderStorePacket 162719 [05:03:32]StoreOFDPacket docnum=162719 [05:03:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 27 1F 08 01 E7 24 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 25 5C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9F 7B 02 00 35 04 06 00 D4 60 D5 E3 F4 27 26 C7 C4 85 DD E4 1A 27 [05:03:32]CheckFolder [05:03:32]dirname=/storage/ofd_packets [05:03:32]CheckFolder done [05:03:32]ProducePacketName [05:03:32]name=ofd_packets/00162719 [05:03:32]NVStorageSaveData ofd_packets/00162719 [05:03:32]File name is /storage/ofd_packets/00162719 [05:03:32]Write 302 bytes [05:03:32]NVStorageSaveData done [05:03:32]OFDSenderStorePacket done [05:03:32]KKMCreateOFDPacket done [05:03:32]NVStorageSaveData kkm_last_timestamp [05:03:32]File name is /storage/kkm_last_timestamp [05:03:32]Write 4 bytes [05:03:32]NVStorageSaveData done [05:03:32]ExternCall_PrintAddStr [05:03:32]wPrintStart [05:03:32]Write to MH i2c: 01 00 00 5F 3D 9C [05:03:32]OFD Sender: Processing packet 162719 [packets to send 106, broken 105] [05:03:32]ProducePacketName [05:03:32]name=ofd_packets/00162719 [05:03:32]OFD Sender: To server: pG, [05:03:32]CommunicateWithHost lk.salyk.kg:30040 [05:03:32]ConnectInit lk.salyk.kg [05:03:32]Write i2c OK [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: 01 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: 01 07 00 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: 01 07 00 5F 3D 00 00 00 00 00 FF 0F B1 [05:03:32]RasterBufferAndPrint [05:03:32]line Счет N : (1)1319299 [05:03:32]line ИНН: 02508201610067 [05:03:32]line Контрольно-Кассовый Чек [05:03:32]line ПРОДАЖА [05:03:32]line ТРК (МРК, ГНК) : 21 [05:03:32]line Товар: 2710194210 [05:03:32]line ДТ(л)-К-5 [05:03:32]line 13.780 * 72.60 [05:03:32]line = 1000.43 [05:03:32]line НДС 12% НСП 1% [05:03:32]line > о реализуемом товаре [05:03:32]line ОКРУГЛЕНИЕ: -0.43 [05:03:32]line ИТОГО: 1000.00 [05:03:32]line Внесено: 1000.00 [05:03:32]line СДАЧА: 0.00 [05:03:32]line НСП 1% : 8.85 [05:03:32]line НДС 12% : 106.24 [05:03:32]line Наличными: 1000.00 [05:03:32]line Безнал.: 0.00 [05:03:32]line Место: АЗС № 140 "Партнер Нефть" [05:03:32]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:03:32]line СНО: Общий режим [05:03:32]line Чек 31 14.07.2024 05:03 [05:03:32]line Смена: 463 ФФД: 1.0 [05:03:32]line ЗНМ: 0300000129 [05:03:32]line РНМ: 0000000000090858 [05:03:32]line Версия ККМ: 001 [05:03:32]line ФМ: 0000000000874899 [05:03:32]line ФД: 162719 [05:03:32]line ФПД: 233512370435111 [05:03:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T050333&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162719&fm=233512370435111&tin=02508201610067®Number=0000000000090858&sum=100000 [05:03:32]Connected sock=10 [05:03:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 27 1F 08 01 E7 24 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 25 5C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9F 7B 02 00 35 04 06 00 D4 60 D5 E3 F4 27 26 C7 C4 85 DD E4 1A 27 [05:03:32]written 0, free lines is 4095 [05:03:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AC C9 47 00 C7 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9F 7B 02 00 F4 03 04 00 33 08 93 66 B6 04 01 00 00 5C 15 AE 0C C9 29 BF A5 [05:03:32]CommunicateWithHost err = 0 [05:03:32]CheckOFDResponse [05:03:32]1017 (14) - 77093643461234 [05:03:32]1041 (16) - 0000000000874899 [05:03:32]1040 (4) - 162719 [05:03:32]1012 (4) - 13.07.2024 23:05 [05:03:32]1206 (1) - 0 [05:03:32]OFD Sender: Remove packet 162719 [05:03:32]ProducePacketName [05:03:32]name=ofd_packets/00162719 [05:03:32]NVStorageDeleteData [05:03:32]Write to MH i2c: 01 00 00 8A 3D C7 [05:03:32]Write i2c OK [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: 01 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: 01 07 00 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: 01 07 00 8A 3D 00 00 00 00 00 D5 0C AF [05:03:32]RasterBufferAndPrint [05:03:32]line [05:03:32]line [05:03:32]line [05:03:32]line [05:03:32]line [05:03:32]written 0, free lines is 3292 [05:03:32]MH_Cut [05:03:32]Write to MH i2c: D1 01 00 91 3D 01 A0 [05:03:32]Write i2c OK [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: D1 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: D1 01 00 [05:03:32]MH_I2C_Read... [05:03:32]Read from MH i2c: D1 01 00 91 3D 00 9F [05:03:32]Write to MH i2c: 01 00 00 92 3D CF [05:03:32]Write i2c OK [05:03:32]MH_I2C_Read... [05:03:33]OFD Sender: No OFD packet to send [05:03:33]*** Cut start [05:03:33]*** Purtial cut [05:03:33]*** CUTSNS_PIN = 0 [05:03:33]*** Stage 1: CUTSNS_PIN = 1 [05:03:35]Read from MH i2c: 01 [05:03:35]MH_I2C_Read... [05:03:35]*** Stop cut motor [05:03:35]*** Cut end [05:03:35]Read from MH i2c: 01 07 00 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: 01 07 00 92 3D 00 00 00 00 00 FF 0F E4 [05:03:35]process_action close_receipt done [05:03:35]requested_data is exist [05:03:35]produce_requested_data [05:03:35]requested_item fm.sn is exist - process it [05:03:35]wFMCommunicate request_size=4 [05:03:35]MH_SAM_APDU [05:03:35]CAPDU: 80 11 00 00 [05:03:35]Write to MH i2c: E2 08 00 93 3D 80 11 00 00 00 00 00 00 4A [05:03:35]Write i2c OK [05:03:35]MH_I2C_Read... [05:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:35]Read from MH i2c: E2 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: E2 17 00 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: E2 17 00 93 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AA [05:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:03:35]wFMCommunicate OK [05:03:35]requested_item fd.num is exist - process it [05:03:35]SAM_PROTO_GetFieldsCounters [05:03:35]wFMCommunicate request_size=4 [05:03:35]MH_SAM_APDU [05:03:35]CAPDU: 80 13 00 00 [05:03:35]Write to MH i2c: E2 08 00 94 3D 80 13 00 00 00 00 00 00 4D [05:03:35]Write i2c OK [05:03:35]MH_I2C_Read... [05:03:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:03:35]Read from MH i2c: E2 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: E2 62 00 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: E2 62 00 94 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9F 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [05:03:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9F 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:03:35]wFMCommunicate OK [05:03:35]SAM_PROTO_GetFieldsCounters done [05:03:35]requested_item shift.num is exist - process it [05:03:35]requested_item shift.opened is exist - process it [05:03:35]req_shift_opened [05:03:35]FM_GetShiftState [05:03:35]SAM_PROTO_GetShiftState [05:03:35]wFMCommunicate request_size=4 [05:03:35]MH_SAM_APDU [05:03:35]CAPDU: 80 13 01 00 [05:03:35]Write to MH i2c: E2 08 00 95 3D 80 13 01 00 00 00 00 00 4F [05:03:35]Write i2c OK [05:03:35]MH_I2C_Read... [05:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:35]Read from MH i2c: E2 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: E2 0E 00 [05:03:35]MH_I2C_Read... [05:03:35]Read from MH i2c: E2 0E 00 95 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 85 [05:03:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [05:03:35]wFMCommunicate OK [05:03:35]SAM_PROTO_GetShiftState done [05:03:35]FM_GetShiftState done [05:03:35]req_shift_opened done [05:03:35]requested_item shift.open_date is exist - process it [05:03:35]req_shift_open_date [05:03:35]req_shift_open_date done [05:03:35]produce_requested_data done [05:03:35]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162719,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [05:03:35]process_action_free close_receipt [05:03:35]json_value_free [05:03:35]json_value_free done [05:03:35]process_json_proto returns [05:03:35]Send response to host [05:03:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162719,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [05:03:35]free response buf [05:03:35]execute_script done [05:03:35]execute_script returns [05:03:35]free content buf [05:03:35]Sock 7.Close socket [05:03:35]Sock 7.Thread stoped [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:19]accept exits with 9 [05:45:19]New connection [05:45:19]New thread 3067510116 created [05:45:19]Thread 3067366756 joined [05:45:19]Waiting for new connection... [05:45:19] Sock 9.Parse request [05:45:19]Sock 9.Check first char [05:45:19]Sock 9.First char is OK [05:45:19]request: POST /json_proto HTTP/1.0 [05:45:19]Method: POST [05:45:19]URL: /json_proto [05:45:19]Method is POST - this is cgi request [05:45:19]url: /json_proto [05:45:19]query_string will be loaded in cgi processing [05:45:19]execute_cgi json_proto POST (null) [05:45:19]execute_cgi path=json_proto method=POST [05:45:19]POST find Content-Length [05:45:19]Host: 172.17.39.67:8080 [05:45:19]Content-Length: 683 [05:45:19]Content-Type: application/json [05:45:19] [05:45:19]POST finish read [05:45:19]Found Content-Length = 683 [05:45:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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" ] } } [05:45:19]execute_script... [05:45: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)1319301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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" ] } } [05:45:19]POST & json_proto [05:45:19]process_json_proto [05:45:19]json parsed OK: [05:45:19]protocol is kg_v1.0 [05:45:19]action value=close_receipt [05:45:19]process_action close_receipt [05:45:19]cmd_close_receipt [05:45:19]MH_GetDate [05:45:19]Write to MH i2c: F0 00 00 96 3D C2 [05:45:19]Write i2c OK [05:45:19]MH_I2C_Read... [05:45:19]Read from MH i2c: F0 [05:45:19]MH_I2C_Read... [05:45:19]Read from MH i2c: F0 09 00 [05:45:19]MH_I2C_Read... [05:45:19]Read from MH i2c: F0 09 00 96 3D 00 F3 65 93 66 86 7C 92 66 16 [05:45:19]GetLastDocTimeStamp 1720933413 [05:45:19]current date 1720935923 [05:45:19]FM_GetShiftState [05:45:19]SAM_PROTO_GetShiftState [05:45:19]wFMCommunicate request_size=4 [05:45:19]MH_SAM_APDU [05:45:19]CAPDU: 80 13 01 00 [05:45:19]Write to MH i2c: E2 08 00 97 3D 80 13 01 00 00 00 00 00 51 [05:45:19]Write i2c OK [05:45:19]MH_I2C_Read... [05:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:19]Read from MH i2c: E2 [05:45:19]MH_I2C_Read... [05:45:19]Read from MH i2c: E2 0E 00 [05:45:19]MH_I2C_Read... [05:45:19]Read from MH i2c: E2 0E 00 97 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 87 [05:45:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [05:45:19]wFMCommunicate OK [05:45:19]SAM_PROTO_GetShiftState done [05:45:19]FM_GetShiftState done [05:45:19]opened in 1720915483 [05:45:19]opened+sec_in_day 1721001883 [05:45:19]quantity*price = 100068 [05:45:19]sum+1 = 100069 [05:45:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 32 14.07.2024 05:45 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162720 ФПД: 116493978249059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T054523&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162720&fm=116493978249059&tin=02508201610067®Number=0000000000090858&sum=100000 [05:45:20]StoreToDocumentArchive [05:45:20]shift 463 fd 162720 [05:45:20]save to /storage/0463/doc_00162720 [05:45:20]save last doc name /storage/0463/doc_00162720 to /storage/kkm_last_doc_name [05:45:20]save OK [05:45:20]Clear old archive folders... [05:45:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:45:20]tlvbuf is 006B31A0 [05:45:20]SAM_PROTO_ClearQueue [05:45:20]wFMCommunicate request_size=4 [05:45:20]MH_SAM_APDU [05:45:20]CAPDU: 80 09 00 00 [05:45:20]Write to MH i2c: E2 08 00 A4 3D 80 09 00 00 00 00 00 00 53 [05:45:20]Write i2c OK [05:45:20]MH_I2C_Read... [05:45:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:45:20]Read from MH i2c: E2 [05:45:20]MH_I2C_Read... [05:45:20]Read from MH i2c: E2 03 00 [05:45:20]MH_I2C_Read... [05:45:20]Read from MH i2c: E2 03 00 A4 3D 00 90 00 55 [05:45:20]RAPDU: 90 00 [05:45:20]wFMCommunicate OK [05:45:20]SAM_PROTO_ClearQueue done [05:45:20]KKMCreateOFDPacket [05:45:20]OFDProtocolAddRootSTLVToBuf [05:45:20]FM_MakeSignedData [05:45:20]FM_MakeSignedData [05:45:20]SAM_PROTO_SignData [05:45:20]wFMCommunicate request_size=4 [05:45:20]MH_SAM_APDU [05:45:20]CAPDU: 80 0D 01 02 [05:45:20]Write to MH i2c: E2 08 00 A5 3D 80 0D 01 02 00 00 00 00 5B [05:45:20]Write i2c OK [05:45:20]MH_I2C_Read... [05:45:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:45:20]Read from MH i2c: E2 [05:45:20]MH_I2C_Read... [05:45:20]Read from MH i2c: E2 03 00 [05:45:20]MH_I2C_Read... [05:45:20]Read from MH i2c: E2 03 00 A5 3D 00 90 00 56 [05:45:20]RAPDU: 90 00 [05:45:20]wFMCommunicate OK [05:45:20]wFMCommunicate request_size=255 [05:45:20]MH_SAM_APDU [05:45:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F3 65 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A0 7B 02 00 35 04 06 00 69 [05:45:20]Write to MH i2c: E2 02 01 A6 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F3 65 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A0 7B 02 00 35 04 06 00 69 00 00 0B [05:45:20]Write i2c OK [05:45:20]MH_I2C_Read... [05:45:20]OFD Sender: No OFD packet to send [05:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:21]Read from MH i2c: E2 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 03 00 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 03 00 A6 3D 00 90 00 57 [05:45:21]RAPDU: 90 00 [05:45:21]wFMCommunicate OK [05:45:21]wFMCommunicate request_size=10 [05:45:21]MH_SAM_APDU [05:45:21]CAPDU: 80 0D 02 02 05 F3 5E 31 27 63 [05:45:21]Write to MH i2c: E2 0D 00 A7 3D 80 0D 02 02 05 00 F3 5E 31 27 63 00 00 74 [05:45:21]Write i2c OK [05:45:21]MH_I2C_Read... [05:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:21]Read from MH i2c: E2 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 03 00 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 03 00 A7 3D 00 90 00 58 [05:45:21]RAPDU: 90 00 [05:45:21]wFMCommunicate OK [05:45:21]wFMCommunicate request_size=4 [05:45:21]MH_SAM_APDU [05:45:21]CAPDU: 80 0D 03 02 [05:45:21]Write to MH i2c: E2 08 00 A8 3D 80 0D 03 02 00 00 00 00 60 [05:45:21]Write i2c OK [05:45:21]MH_I2C_Read... [05:45:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:45:21]Read from MH i2c: E2 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 0B 00 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 0B 00 A8 3D 00 10 02 32 1A EF 02 EF 3D 90 00 DC [05:45:21]RAPDU: 10 02 32 1A EF 02 EF 3D 90 00 [05:45:21]wFMCommunicate OK [05:45:21]SAM_PROTO_SignData done [05:45:21]FM_MakeSignedData done [05:45:21]CreateOFDProtocolMessage [05:45:21]wFMCommunicate request_size=4 [05:45:21]MH_SAM_APDU [05:45:21]CAPDU: 80 11 00 00 [05:45:21]Write to MH i2c: E2 08 00 A9 3D 80 11 00 00 00 00 00 00 60 [05:45:21]Write i2c OK [05:45:21]MH_I2C_Read... [05:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:21]Read from MH i2c: E2 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 17 00 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: E2 17 00 A9 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C0 [05:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:45:21]wFMCommunicate OK [05:45:21]CreateOFDProtocolMessage done [05:45:21]OFDSenderStorePacket 162720 [05:45:21]StoreOFDPacket docnum=162720 [05:45:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4A C8 07 01 BC 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F3 65 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A0 7B 02 00 35 04 06 00 69 F3 5E 31 27 63 10 02 32 1A EF 02 EF 3D [05:45:21]CheckFolder [05:45:21]dirname=/storage/ofd_packets [05:45:21]CheckFolder done [05:45:21]ProducePacketName [05:45:21]name=ofd_packets/00162720 [05:45:21]NVStorageSaveData ofd_packets/00162720 [05:45:21]File name is /storage/ofd_packets/00162720 [05:45:21]Write 301 bytes [05:45:21]NVStorageSaveData done [05:45:21]OFDSenderStorePacket done [05:45:21]KKMCreateOFDPacket done [05:45:21]NVStorageSaveData kkm_last_timestamp [05:45:21]File name is /storage/kkm_last_timestamp [05:45:21]Write 4 bytes [05:45:21]NVStorageSaveData done [05:45:21]ExternCall_PrintAddStr [05:45:21]wPrintStart [05:45:21]Write to MH i2c: 01 00 00 AA 3D E7 [05:45:21]Write i2c OK [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: 01 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: 01 07 00 [05:45:21]MH_I2C_Read... [05:45:21]Read from MH i2c: 01 07 00 AA 3D 00 00 00 00 00 FF 0F FC [05:45:21]RasterBufferAndPrint [05:45:21]line Счет N : (1)1319301 [05:45:21]line ИНН: 02508201610067 [05:45:21]line Контрольно-Кассовый Чек [05:45:21]line ПРОДАЖА [05:45:21]line ТРК (МРК, ГНК) : 64 [05:45:21]line Товар: 2710124500 [05:45:21]line Аи-95-К-5 [05:45:21]line 13.450 * 74.40 [05:45:21]line = 1000.68 [05:45:21]line НДС 12% НСП 1% [05:45:21]line > о реализуемом товаре [05:45:21]line ОКРУГЛЕНИЕ: -0.68 [05:45:21]line ИТОГО: 1000.00 [05:45:21]line Внесено: 1000.00 [05:45:21]line СДАЧА: 0.00 [05:45:21]line НСП 1% : 8.86 [05:45:21]line НДС 12% : 106.27 [05:45:21]line Наличными: 1000.00 [05:45:21]line Безнал.: 0.00 [05:45:21]line Место: АЗС № 140 "Партнер Нефть" [05:45:21]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:45:21]line СНО: Общий режим [05:45:21]line Чек 32 14.07.2024 05:45 [05:45:21]line Смена: 463 ФФД: 1.0 [05:45:21]line ЗНМ: 0300000129 [05:45:21]line РНМ: 0000000000090858 [05:45:21]line Версия ККМ: 001 [05:45:21]line ФМ: 0000000000874899 [05:45:21]line ФД: 162720 [05:45:21]line ФПД: 116493978249059 [05:45:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T054523&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162720&fm=116493978249059&tin=02508201610067®Number=0000000000090858&sum=100000 [05:45:21]OFD Sender: Processing packet 162720 [packets to send 106, broken 105] [05:45:21]ProducePacketName [05:45:21]name=ofd_packets/00162720 [05:45:21]OFD Sender: To server: pG, [05:45:21]CommunicateWithHost lk.salyk.kg:30040 [05:45:21]ConnectInit lk.salyk.kg [05:45:21]written 0, free lines is 4095 [05:45:21]Connected sock=10 [05: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 34 38 39 39 0F 01 00 00 4A C8 07 01 BC 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F3 65 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A0 7B 02 00 35 04 06 00 69 F3 5E 31 27 63 10 02 32 1A EF 02 EF 3D [05:45:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CE E5 47 00 EE 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A0 7B 02 00 F4 03 04 00 00 12 93 66 B6 04 01 00 00 52 27 EF 67 CA CB 1A 48 [05:45:22]CommunicateWithHost err = 0 [05:45:22]CheckOFDResponse [05:45:22]1017 (14) - 77093643461234 [05:45:22]1041 (16) - 0000000000874899 [05:45:22]1040 (4) - 162720 [05:45:22]1012 (4) - 13.07.2024 23:47 [05:45:22]1206 (1) - 0 [05:45:22]OFD Sender: Remove packet 162720 [05:45:22]ProducePacketName [05:45:22]name=ofd_packets/00162720 [05:45:22]NVStorageDeleteData [05:45:22]Write to MH i2c: 01 00 00 D5 3D 12 [05:45:22]Write i2c OK [05:45:22]MH_I2C_Read... [05:45:22]Read from MH i2c: 01 [05:45:22]MH_I2C_Read... [05:45:22]Read from MH i2c: 01 07 00 [05:45:22]MH_I2C_Read... [05:45:22]Read from MH i2c: 01 07 00 D5 3D 00 00 00 00 00 D8 0C FD [05:45:22]RasterBufferAndPrint [05:45:22]line [05:45:22]line [05:45:22]line [05:45:22]line [05:45:22]line [05:45:22]written 0, free lines is 3297 [05:45:22]MH_Cut [05:45:22]Write to MH i2c: D1 01 00 DC 3D 01 EB [05:45:22]Write i2c OK [05:45:22]MH_I2C_Read... [05:45:22]Read from MH i2c: D1 [05:45:22]MH_I2C_Read... [05:45:22]Read from MH i2c: D1 01 00 [05:45:22]MH_I2C_Read... [05:45:22]Read from MH i2c: D1 01 00 DC 3D 00 EA [05:45:22]Write to MH i2c: 01 00 00 DD 3D 1A [05:45:22]Write i2c OK [05:45:22]MH_I2C_Read... [05:45:22]OFD Sender: No OFD packet to send [05:45:22]*** Cut start [05:45:22]*** Purtial cut [05:45:22]*** Stage 1: CUTSNS_PIN = 1 [05:45:23]Read from MH i2c: 01 [05:45:23]MH_I2C_Read... [05:45:23]*** Stop cut motor [05:45:23]*** Cut end [05:45:23]Read from MH i2c: 01 07 00 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: 01 07 00 DD 3D 00 00 00 00 00 FF 0F 2F [05:45:23]process_action close_receipt done [05:45:23]requested_data is exist [05:45:23]produce_requested_data [05:45:23]requested_item fm.sn is exist - process it [05:45:23]wFMCommunicate request_size=4 [05:45:23]MH_SAM_APDU [05:45:23]CAPDU: 80 11 00 00 [05:45:23]Write to MH i2c: E2 08 00 DE 3D 80 11 00 00 00 00 00 00 95 [05:45:23]Write i2c OK [05:45:23]MH_I2C_Read... [05:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:23]Read from MH i2c: E2 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 17 00 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 17 00 DE 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F5 [05:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:45:23]wFMCommunicate OK [05:45:23]requested_item fd.num is exist - process it [05:45:23]SAM_PROTO_GetFieldsCounters [05:45:23]wFMCommunicate request_size=4 [05:45:23]MH_SAM_APDU [05:45:23]CAPDU: 80 13 00 00 [05:45:23]Write to MH i2c: E2 08 00 DF 3D 80 13 00 00 00 00 00 00 98 [05:45:23]Write i2c OK [05:45:23]MH_I2C_Read... [05:45:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:45:23]Read from MH i2c: E2 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 62 00 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 62 00 DF 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A0 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [05:45:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A0 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:45:23]wFMCommunicate OK [05:45:23]SAM_PROTO_GetFieldsCounters done [05:45:23]requested_item shift.num is exist - process it [05:45:23]requested_item shift.opened is exist - process it [05:45:23]req_shift_opened [05:45:23]FM_GetShiftState [05:45:23]SAM_PROTO_GetShiftState [05:45:23]wFMCommunicate request_size=4 [05:45:23]MH_SAM_APDU [05:45:23]CAPDU: 80 13 01 00 [05:45:23]Write to MH i2c: E2 08 00 E0 3D 80 13 01 00 00 00 00 00 9A [05:45:23]Write i2c OK [05:45:23]MH_I2C_Read... [05:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:23]Read from MH i2c: E2 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 0E 00 [05:45:23]MH_I2C_Read... [05:45:23]Read from MH i2c: E2 0E 00 E0 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D0 [05:45:23]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [05:45:23]wFMCommunicate OK [05:45:23]SAM_PROTO_GetShiftState done [05:45:23]FM_GetShiftState done [05:45:23]req_shift_opened done [05:45:23]requested_item shift.open_date is exist - process it [05:45:23]req_shift_open_date [05:45:23]req_shift_open_date done [05:45:23]produce_requested_data done [05:45:23]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162720,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [05:45:23]process_action_free close_receipt [05:45:23]json_value_free [05:45:23]json_value_free done [05:45:23]process_json_proto returns [05:45:23]Send response to host [05:45:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162720,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [05:45:23]free response buf [05:45:23]execute_script done [05:45:23]execute_script returns [05:45:23]free content buf [05:45:23]Sock 9.Close socket [05:45:23]Sock 9.Thread stoped [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:36]accept exits with 7 [05:46:36]New connection [05:46:36]New thread 3067366756 created [05:46:36]Thread 3067510116 joined [05:46:36]Waiting for new connection... [05:46:36] Sock 7.Parse request [05:46:36]Sock 7.Check first char [05:46:36]Sock 7.First char is OK [05:46:36]request: POST /json_proto HTTP/1.0 [05:46:36]Method: POST [05:46:36]URL: /json_proto [05:46:36]Method is POST - this is cgi request [05:46:36]url: /json_proto [05:46:36]query_string will be loaded in cgi processing [05:46:36]execute_cgi json_proto POST (null) [05:46:36]execute_cgi path=json_proto method=POST [05:46:36]POST find Content-Length [05:46:36]Host: 172.17.39.67:8080 [05:46:36]Content-Length: 809 [05:46:36]Content-Type: application/json [05:46:36] [05:46:36]POST finish read [05:46:36]Found Content-Length = 809 [05:46:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 61.970, "sum" : 4499.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" : 4499.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:36]execute_script... [05:46: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)1319300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 61.970, "sum" : 4499.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" : 4499.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:36]POST & json_proto [05:46:36]process_json_proto [05:46:36]json parsed OK: [05:46:36]protocol is kg_v1.0 [05:46:36]action value=close_receipt [05:46:36]process_action close_receipt [05:46:36]cmd_close_receipt [05:46:36]MH_GetDate [05:46:36]Write to MH i2c: F0 00 00 E1 3D 0D [05:46:36]Write i2c OK [05:46:36]MH_I2C_Read... [05:46:36]Read from MH i2c: F0 [05:46:36]MH_I2C_Read... [05:46:36]Read from MH i2c: F0 09 00 [05:46:36]MH_I2C_Read... [05:46:36]Read from MH i2c: F0 09 00 E1 3D 00 40 66 93 66 86 7C 92 66 AF [05:46:36]GetLastDocTimeStamp 1720935923 [05:46:36]current date 1720936000 [05:46:36]FM_GetShiftState [05:46:36]SAM_PROTO_GetShiftState [05:46:36]wFMCommunicate request_size=4 [05:46:36]MH_SAM_APDU [05:46:36]CAPDU: 80 13 01 00 [05:46:36]Write to MH i2c: E2 08 00 E2 3D 80 13 01 00 00 00 00 00 9C [05:46:36]Write i2c OK [05:46:36]MH_I2C_Read... [05:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:36]Read from MH i2c: E2 [05:46:36]MH_I2C_Read... [05:46:36]Read from MH i2c: E2 0E 00 [05:46:36]MH_I2C_Read... [05:46:36]Read from MH i2c: E2 0E 00 E2 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D2 [05:46:36]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [05:46:36]wFMCommunicate OK [05:46:36]SAM_PROTO_GetShiftState done [05:46:36]FM_GetShiftState done [05:46:36]opened in 1720915483 [05:46:36]opened+sec_in_day 1721001883 [05:46:36]quantity*price = 449902 [05:46:36]sum+1 = 449903 [05:46:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4499.02 НСП 1% : 39.81 НДС 12% : 477.77 Наличными: 0.00 Безнал.: 4499.02 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 33 14.07.2024 05:46 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162721 ФПД: 210525941605938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T054640&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162721&fm=210525941605938&tin=02508201610067®Number=0000000000090858&sum=449902 [05:46:37]StoreToDocumentArchive [05:46:37]shift 463 fd 162721 [05:46:37]save to /storage/0463/doc_00162721 [05:46:37]save last doc name /storage/0463/doc_00162721 to /storage/kkm_last_doc_name [05:46:37]save OK [05:46:37]Clear old archive folders... [05:46:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:46:37]tlvbuf is B6E30950 [05:46:37]SAM_PROTO_ClearQueue [05:46:37]wFMCommunicate request_size=4 [05:46:37]MH_SAM_APDU [05:46:37]CAPDU: 80 09 00 00 [05:46:37]Write to MH i2c: E2 08 00 EF 3D 80 09 00 00 00 00 00 00 9E [05:46:37]Write i2c OK [05:46:37]MH_I2C_Read... [05:46:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:46:37]Read from MH i2c: E2 [05:46:37]MH_I2C_Read... [05:46:37]Read from MH i2c: E2 03 00 [05:46:37]MH_I2C_Read... [05:46:37]Read from MH i2c: E2 03 00 EF 3D 00 90 00 A0 [05:46:37]RAPDU: 90 00 [05:46:37]wFMCommunicate OK [05:46:37]SAM_PROTO_ClearQueue done [05:46:37]KKMCreateOFDPacket [05:46:37]OFDProtocolAddRootSTLVToBuf [05:46:37]FM_MakeSignedData [05:46:37]FM_MakeSignedData [05:46:37]SAM_PROTO_SignData [05:46:37]wFMCommunicate request_size=4 [05:46:37]MH_SAM_APDU [05:46:37]CAPDU: 80 0D 01 02 [05:46:37]Write to MH i2c: E2 08 00 F0 3D 80 0D 01 02 00 00 00 00 A6 [05:46:37]Write i2c OK [05:46:37]MH_I2C_Read... [05:46:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:46:37]Read from MH i2c: E2 [05:46:37]MH_I2C_Read... [05:46:37]Read from MH i2c: E2 03 00 [05:46:37]MH_I2C_Read... [05:46:37]Read from MH i2c: E2 03 00 F0 3D 00 90 00 A1 [05:46:37]RAPDU: 90 00 [05:46:37]wFMCommunicate OK [05:46:37]wFMCommunicate request_size=255 [05:46:37]MH_SAM_APDU [05:46:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 12 F2 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6E DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 40 66 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7B 02 00 35 04 06 00 [05:46:37]Write to MH i2c: E2 02 01 F1 3D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 12 F2 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6E DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 40 66 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7B 02 00 35 04 06 00 00 00 11 [05:46:37]Write i2c OK [05:46:37]MH_I2C_Read... [05:46:37]OFD Sender: No OFD packet to send [05:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:37]Read from MH i2c: E2 [05:46:37]MH_I2C_Read... [05:46:37]Read from MH i2c: E2 03 00 [05:46:37]MH_I2C_Read... [05:46:37]Read from MH i2c: E2 03 00 F1 3D 00 90 00 A2 [05:46:37]RAPDU: 90 00 [05:46:37]wFMCommunicate OK [05:46:37]wFMCommunicate request_size=11 [05:46:37]MH_SAM_APDU [05:46:37]CAPDU: 80 0D 02 02 06 BF 78 E3 F7 26 32 [05:46:37]Write to MH i2c: E2 0E 00 F2 3D 80 0D 02 02 06 00 BF 78 E3 F7 26 32 00 00 1E [05:46:37]Write i2c OK [05:46:37]MH_I2C_Read... [05:46:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:37]Read from MH i2c: E2 [05:46:37]MH_I2C_Read... [05:46:37]Read from MH i2c: E2 03 00 [05:46:37]MH_I2C_Read... [05:46:37]Read from MH i2c: E2 03 00 F2 3D 00 90 00 A3 [05:46:37]RAPDU: 90 00 [05:46:37]wFMCommunicate OK [05:46:37]wFMCommunicate request_size=4 [05:46:37]MH_SAM_APDU [05:46:37]CAPDU: 80 0D 03 02 [05:46:37]Write to MH i2c: E2 08 00 F3 3D 80 0D 03 02 00 00 00 00 AB [05:46:37]Write i2c OK [05:46:37]MH_I2C_Read... [05:46:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:46:37]Read from MH i2c: E2 [05:46:37]MH_I2C_Read... [05:46:37]Read from MH i2c: E2 0B 00 [05:46:37]MH_I2C_Read... [05:46:37]Read from MH i2c: E2 0B 00 F3 3D 00 45 AB 8A A9 AB 4F 50 5E 90 00 77 [05:46:37]RAPDU: 45 AB 8A A9 AB 4F 50 5E 90 00 [05:46:37]wFMCommunicate OK [05:46:37]SAM_PROTO_SignData done [05:46:37]FM_MakeSignedData done [05:46:37]CreateOFDProtocolMessage [05:46:37]wFMCommunicate request_size=4 [05:46:37]MH_SAM_APDU [05:46:37]CAPDU: 80 11 00 00 [05:46:37]Write to MH i2c: E2 08 00 F4 3D 80 11 00 00 00 00 00 00 AB [05:46:37]Write i2c OK [05:46:37]MH_I2C_Read... [05:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:37]Read from MH i2c: E2 [05:46:37]MH_I2C_Read... [05:46:38]Read from MH i2c: E2 17 00 [05:46:38]MH_I2C_Read... [05:46:38]Read from MH i2c: E2 17 00 F4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0B [05:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:46:38]wFMCommunicate OK [05:46:38]CreateOFDProtocolMessage done [05:46:38]OFDSenderStorePacket 162721 [05:46:38]StoreOFDPacket docnum=162721 [05:46:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1C 7B 08 01 75 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 12 F2 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6E DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 40 66 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7B 02 00 35 04 06 00 BF 78 E3 F7 26 32 45 AB 8A A9 AB 4F 50 5E [05:46:38]CheckFolder [05:46:38]dirname=/storage/ofd_packets [05:46:38]CheckFolder done [05:46:38]ProducePacketName [05:46:38]name=ofd_packets/00162721 [05:46:38]NVStorageSaveData ofd_packets/00162721 [05:46:38]File name is /storage/ofd_packets/00162721 [05:46:38]Write 302 bytes [05:46:38]NVStorageSaveData done [05:46:38]OFDSenderStorePacket done [05:46:38]KKMCreateOFDPacket done [05:46:38]NVStorageSaveData kkm_last_timestamp [05:46:38]File name is /storage/kkm_last_timestamp [05:46:38]Write 4 bytes [05:46:38]NVStorageSaveData done [05:46:38]ExternCall_PrintAddStr [05:46:38]wPrintStart [05:46:38]Write to MH i2c: 01 00 00 F5 3D 32 [05:46:38]Write i2c OK [05:46:38]MH_I2C_Read... [05:46:38]Read from MH i2c: 01 [05:46:38]MH_I2C_Read... [05:46:38]Read from MH i2c: 01 07 00 [05:46:38]MH_I2C_Read... [05:46:38]Read from MH i2c: 01 07 00 F5 3D 00 00 00 00 00 FF 0F 47 [05:46:38]RasterBufferAndPrint [05:46:38]line Счет N : (1)1319300 [05:46:38]line ИНН: 02508201610067 [05:46:38]line Контрольно-Кассовый Чек [05:46:38]line ПРОДАЖА [05:46:38]line ТРК (МРК, ГНК) : 41 [05:46:38]line Товар: 2710194210 [05:46:38]line ДТ(л)-К-5 [05:46:38]line 61.970 * 72.60 [05:46:38]line = 4499.02 [05:46:38]line НДС 12% НСП 1% [05:46:38]line > о реализуемом товаре [05:46:38]line ИТОГО: 4499.02 [05:46:38]line НСП 1% : 39.81 [05:46:38]line НДС 12% : 477.77 [05:46:38]line Наличными: 0.00 [05:46:38]line Безнал.: 4499.02 [05:46:38]line Место: АЗС № 140 "Партнер Нефть" [05:46:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:46:38]line СНО: Общий режим [05:46:38]line Чек 33 14.07.2024 05:46 [05:46:38]line Смена: 463 ФФД: 1.0 [05:46:38]line ЗНМ: 0300000129 [05:46:38]line РНМ: 0000000000090858 [05:46:38]line Версия ККМ: 001 [05:46:38]line Платежная система: O! деньги [05:46:38]line ФМ: 0000000000874899 [05:46:38]line ФД: 162721 [05:46:38]line ФПД: 210525941605938 [05:46:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T054640&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162721&fm=210525941605938&tin=02508201610067®Number=0000000000090858&sum=449902 [05:46:38]OFD Sender: Processing packet 162721 [packets to send 106, broken 105] [05:46:38]ProducePacketName [05:46:38]name=ofd_packets/00162721 [05:46:38]OFD Sender: To server: pG, [05:46:38]CommunicateWithHost lk.salyk.kg:30040 [05:46:38]ConnectInit lk.salyk.kg [05:46:38]written 0, free lines is 4095 [05:46:38]Connected sock=11 [05:46:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1C 7B 08 01 75 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 12 F2 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6E DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 40 66 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7B 02 00 35 04 06 00 BF 78 E3 F7 26 32 45 AB 8A A9 AB 4F 50 5E [05:46:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 31 F1 47 00 D3 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7B 02 00 F4 03 04 00 4D 12 93 66 B6 04 01 00 00 D9 F6 86 97 81 70 30 DB [05:46:38]CommunicateWithHost err = 0 [05:46:38]CheckOFDResponse [05:46:38]1017 (14) - 77093643461234 [05:46:38]1041 (16) - 0000000000874899 [05:46:38]1040 (4) - 162721 [05:46:38]1012 (4) - 13.07.2024 23:48 [05:46:38]1206 (1) - 0 [05:46:38]OFD Sender: Remove packet 162721 [05:46:38]ProducePacketName [05:46:38]name=ofd_packets/00162721 [05:46:38]NVStorageDeleteData [05:46:38]Write to MH i2c: 01 00 00 1F 3E 5D [05:46:38]Write i2c OK [05:46:38]MH_I2C_Read... [05:46:38]Read from MH i2c: 01 [05:46:38]MH_I2C_Read... [05:46:38]Read from MH i2c: 01 07 00 [05:46:38]MH_I2C_Read... [05:46:38]Read from MH i2c: 01 07 00 1F 3E 00 00 00 00 00 ED 0C 5D [05:46:38]RasterBufferAndPrint [05:46:38]line [05:46:38]line [05:46:38]line [05:46:38]line [05:46:38]line [05:46:38]written 0, free lines is 3315 [05:46:38]MH_Cut [05:46:38]Write to MH i2c: D1 01 00 26 3E 01 36 [05:46:38]Write i2c OK [05:46:38]MH_I2C_Read... [05:46:38]Read from MH i2c: D1 [05:46:38]MH_I2C_Read... [05:46:38]Read from MH i2c: D1 01 00 [05:46:38]MH_I2C_Read... [05:46:38]Read from MH i2c: D1 01 00 26 3E 00 35 [05:46:38]Write to MH i2c: 01 00 00 27 3E 65 [05:46:38]Write i2c OK [05:46:38]MH_I2C_Read... [05:46:39]OFD Sender: No OFD packet to send [05:46:39]*** Cut start [05:46:39]*** Purtial cut [05:46:39]*** CUTSNS_PIN = 0 [05:46:39]*** Stage 1: CUTSNS_PIN = 1 [05:46:41]Read from MH i2c: 01 [05:46:41]MH_I2C_Read... [05:46:41]*** Stop cut motor [05:46:41]*** Cut end [05:46:41]Read from MH i2c: 01 07 00 [05:46:41]MH_I2C_Read... [05:46:41]Read from MH i2c: 01 07 00 27 3E 00 00 00 00 00 FF 0F 7A [05:46:41]process_action close_receipt done [05:46:41]requested_data is exist [05:46:41]produce_requested_data [05:46:41]requested_item fm.sn is exist - process it [05:46:41]wFMCommunicate request_size=4 [05:46:41]MH_SAM_APDU [05:46:41]CAPDU: 80 11 00 00 [05:46:41]Write to MH i2c: E2 08 00 28 3E 80 11 00 00 00 00 00 00 E0 [05:46:41]Write i2c OK [05:46:41]MH_I2C_Read... [05:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:41]Read from MH i2c: E2 [05:46:41]MH_I2C_Read... [05:46:41]Read from MH i2c: E2 17 00 [05:46:41]MH_I2C_Read... [05:46:41]Read from MH i2c: E2 17 00 28 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 40 [05:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:46:41]wFMCommunicate OK [05:46:41]requested_item fd.num is exist - process it [05:46:41]SAM_PROTO_GetFieldsCounters [05:46:41]wFMCommunicate request_size=4 [05:46:41]MH_SAM_APDU [05:46:41]CAPDU: 80 13 00 00 [05:46:41]Write to MH i2c: E2 08 00 29 3E 80 13 00 00 00 00 00 00 E3 [05:46:41]Write i2c OK [05:46:41]MH_I2C_Read... [05:46:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:46:41]Read from MH i2c: E2 [05:46:41]MH_I2C_Read... [05:46:41]Read from MH i2c: E2 62 00 [05:46:41]MH_I2C_Read... [05:46:41]Read from MH i2c: E2 62 00 29 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A1 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [05:46:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A1 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:46:41]wFMCommunicate OK [05:46:41]SAM_PROTO_GetFieldsCounters done [05:46:41]requested_item shift.num is exist - process it [05:46:41]requested_item shift.opened is exist - process it [05:46:41]req_shift_opened [05:46:41]FM_GetShiftState [05:46:41]SAM_PROTO_GetShiftState [05:46:41]wFMCommunicate request_size=4 [05:46:41]MH_SAM_APDU [05:46:41]CAPDU: 80 13 01 00 [05:46:41]Write to MH i2c: E2 08 00 2A 3E 80 13 01 00 00 00 00 00 E5 [05:46:41]Write i2c OK [05:46:41]MH_I2C_Read... [05:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:41]Read from MH i2c: E2 [05:46:41]MH_I2C_Read... [05:46:41]Read from MH i2c: E2 0E 00 [05:46:41]MH_I2C_Read... [05:46:41]Read from MH i2c: E2 0E 00 2A 3E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1B [05:46:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [05:46:41]wFMCommunicate OK [05:46:41]SAM_PROTO_GetShiftState done [05:46:41]FM_GetShiftState done [05:46:41]req_shift_opened done [05:46:41]requested_item shift.open_date is exist - process it [05:46:41]req_shift_open_date [05:46:41]req_shift_open_date done [05:46:41]produce_requested_data done [05:46:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162721,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [05:46:41]process_action_free close_receipt [05:46:41]json_value_free [05:46:41]json_value_free done [05:46:41]process_json_proto returns [05:46:41]Send response to host [05:46:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162721,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [05:46:41]free response buf [05:46:41]execute_script done [05:46:41]execute_script returns [05:46:41]free content buf [05:46:41]Sock 7.Close socket [05:46:41]Sock 7.Thread stoped [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]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:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [05:59:55]accept exits with 9 [05:59:55]New connection [05:59:55]New thread 3067510116 created [05:59:55]Thread 3067366756 joined [05:59:55]Waiting for new connection... [05:59:55] Sock 9.Parse request [05:59:55]Sock 9.Check first char [05:59:55]Sock 9.First char is OK [05:59:55]request: POST /json_proto HTTP/1.0 [05:59:55]Method: POST [05:59:55]URL: /json_proto [05:59:55]Method is POST - this is cgi request [05:59:55]url: /json_proto [05:59:55]query_string will be loaded in cgi processing [05:59:55]execute_cgi json_proto POST (null) [05:59:55]execute_cgi path=json_proto method=POST [05:59:55]POST find Content-Length [05:59:55]Host: 172.17.39.67:8080 [05:59:55]Content-Length: 688 [05:59:55]Content-Type: application/json [05:59:55] [05:59:55]POST finish read [05:59:55]Found Content-Length = 688 [05:59:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "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" ] } } [05:59:55]execute_script... [05:59: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)1319302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "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" ] } } [05:59:55]POST & json_proto [05:59:55]process_json_proto [05:59:55]json parsed OK: [05:59:55]protocol is kg_v1.0 [05:59:55]action value=close_receipt [05:59:55]process_action close_receipt [05:59:55]cmd_close_receipt [05:59:55]MH_GetDate [05:59:55]Write to MH i2c: F0 00 00 2B 3E 58 [05:59:55]Write i2c OK [05:59:55]MH_I2C_Read... [05:59:55]Read from MH i2c: F0 [05:59:55]MH_I2C_Read... [05:59:55]Read from MH i2c: F0 09 00 [05:59:55]MH_I2C_Read... [05:59:55]Read from MH i2c: F0 09 00 2B 3E 00 5F 69 93 66 86 7C 92 66 1C [05:59:55]GetLastDocTimeStamp 1720936000 [05:59:55]current date 1720936799 [05:59:55]FM_GetShiftState [05:59:55]SAM_PROTO_GetShiftState [05:59:55]wFMCommunicate request_size=4 [05:59:55]MH_SAM_APDU [05:59:55]CAPDU: 80 13 01 00 [05:59:55]Write to MH i2c: E2 08 00 2C 3E 80 13 01 00 00 00 00 00 E7 [05:59:55]Write i2c OK [05:59:55]MH_I2C_Read... [05:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:55]Read from MH i2c: E2 [05:59:55]MH_I2C_Read... [05:59:55]Read from MH i2c: E2 0E 00 [05:59:55]MH_I2C_Read... [05:59:55]Read from MH i2c: E2 0E 00 2C 3E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1D [05:59:55]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [05:59:55]wFMCommunicate OK [05:59:55]SAM_PROTO_GetShiftState done [05:59:55]FM_GetShiftState done [05:59:55]opened in 1720915483 [05:59:55]opened+sec_in_day 1721001883 [05:59:55]quantity*price = 250034 [05:59:55]sum+1 = 250035 [05:59:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 34 14.07.2024 05:59 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162722 ФПД: 120764962135002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T055959&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162722&fm=120764962135002&tin=02508201610067®Number=0000000000090858&sum=250000 [05:59:56]StoreToDocumentArchive [05:59:56]shift 463 fd 162722 [05:59:56]save to /storage/0463/doc_00162722 [05:59:56]save last doc name /storage/0463/doc_00162722 to /storage/kkm_last_doc_name [05:59:56]save OK [05:59:56]Clear old archive folders... [05:59:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:59:56]tlvbuf is 006E3500 [05:59:56]SAM_PROTO_ClearQueue [05:59:56]wFMCommunicate request_size=4 [05:59:56]MH_SAM_APDU [05:59:56]CAPDU: 80 09 00 00 [05:59:56]Write to MH i2c: E2 08 00 39 3E 80 09 00 00 00 00 00 00 E9 [05:59:56]Write i2c OK [05:59:56]MH_I2C_Read... [05:59:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:59:56]Read from MH i2c: E2 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: E2 03 00 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: E2 03 00 39 3E 00 90 00 EB [05:59:56]RAPDU: 90 00 [05:59:56]wFMCommunicate OK [05:59:56]SAM_PROTO_ClearQueue done [05:59:56]KKMCreateOFDPacket [05:59:56]OFDProtocolAddRootSTLVToBuf [05:59:56]FM_MakeSignedData [05:59:56]FM_MakeSignedData [05:59:56]SAM_PROTO_SignData [05:59:56]wFMCommunicate request_size=4 [05:59:56]MH_SAM_APDU [05:59:56]CAPDU: 80 0D 01 02 [05:59:56]Write to MH i2c: E2 08 00 3A 3E 80 0D 01 02 00 00 00 00 F1 [05:59:56]Write i2c OK [05:59:56]MH_I2C_Read... [05:59:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:59:56]Read from MH i2c: E2 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: E2 03 00 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: E2 03 00 3A 3E 00 90 00 EC [05:59:56]RAPDU: 90 00 [05:59:56]wFMCommunicate OK [05:59:56]wFMCommunicate request_size=255 [05:59:56]MH_SAM_APDU [05:59:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 22 00 00 00 F4 03 04 00 5F 69 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7B 02 00 35 04 06 00 [05:59:56]Write to MH i2c: E2 02 01 3B 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 22 00 00 00 F4 03 04 00 5F 69 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7B 02 00 35 04 06 00 00 00 B7 [05:59:56]Write i2c OK [05:59:56]MH_I2C_Read... [05:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:56]Read from MH i2c: E2 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: E2 03 00 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: E2 03 00 3B 3E 00 90 00 ED [05:59:56]RAPDU: 90 00 [05:59:56]wFMCommunicate OK [05:59:56]wFMCommunicate request_size=11 [05:59:56]MH_SAM_APDU [05:59:56]CAPDU: 80 0D 02 02 06 6D D5 C8 AB 5B DA [05:59:56]Write to MH i2c: E2 0E 00 3C 3E 80 0D 02 02 06 00 6D D5 C8 AB 5B DA 00 00 EA [05:59:56]Write i2c OK [05:59:56]MH_I2C_Read... [05:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:56]Read from MH i2c: E2 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: E2 03 00 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: E2 03 00 3C 3E 00 90 00 EE [05:59:56]RAPDU: 90 00 [05:59:56]wFMCommunicate OK [05:59:56]wFMCommunicate request_size=4 [05:59:56]MH_SAM_APDU [05:59:56]CAPDU: 80 0D 03 02 [05:59:56]Write to MH i2c: E2 08 00 3D 3E 80 0D 03 02 00 00 00 00 F6 [05:59:56]Write i2c OK [05:59:56]MH_I2C_Read... [05:59:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:59:56]Read from MH i2c: E2 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: E2 0B 00 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: E2 0B 00 3D 3E 00 F5 E5 02 31 03 2E 5E D6 90 00 69 [05:59:56]RAPDU: F5 E5 02 31 03 2E 5E D6 90 00 [05:59:56]wFMCommunicate OK [05:59:56]SAM_PROTO_SignData done [05:59:56]FM_MakeSignedData done [05:59:56]CreateOFDProtocolMessage [05:59:56]wFMCommunicate request_size=4 [05:59:56]MH_SAM_APDU [05:59:56]CAPDU: 80 11 00 00 [05:59:56]Write to MH i2c: E2 08 00 3E 3E 80 11 00 00 00 00 00 00 F6 [05:59:56]Write i2c OK [05:59:56]MH_I2C_Read... [05:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:56]Read from MH i2c: E2 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: E2 17 00 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: E2 17 00 3E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 56 [05:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:59:56]wFMCommunicate OK [05:59:56]CreateOFDProtocolMessage done [05:59:56]OFDSenderStorePacket 162722 [05:59:56]StoreOFDPacket docnum=162722 [05:59:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 5B C6 08 01 DE CA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 22 00 00 00 F4 03 04 00 5F 69 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7B 02 00 35 04 06 00 6D D5 C8 AB 5B DA F5 E5 02 31 03 2E 5E D6 [05:59:56]CheckFolder [05:59:56]dirname=/storage/ofd_packets [05:59:56]CheckFolder done [05:59:56]ProducePacketName [05:59:56]name=ofd_packets/00162722 [05:59:56]NVStorageSaveData ofd_packets/00162722 [05:59:56]File name is /storage/ofd_packets/00162722 [05:59:56]Write 302 bytes [05:59:56]NVStorageSaveData done [05:59:56]OFDSenderStorePacket done [05:59:56]KKMCreateOFDPacket done [05:59:56]NVStorageSaveData kkm_last_timestamp [05:59:56]File name is /storage/kkm_last_timestamp [05:59:56]Write 4 bytes [05:59:56]NVStorageSaveData done [05:59:56]ExternCall_PrintAddStr [05:59:56]wPrintStart [05:59:56]Write to MH i2c: 01 00 00 3F 3E 7D [05:59:56]Write i2c OK [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: 01 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: 01 07 00 [05:59:56]MH_I2C_Read... [05:59:56]Read from MH i2c: 01 07 00 3F 3E 00 00 00 00 00 FF 0F 92 [05:59:56]RasterBufferAndPrint [05:59:56]line Счет N : (1)1319302 [05:59:56]line ИНН: 02508201610067 [05:59:56]line Контрольно-Кассовый Чек [05:59:56]line ПРОДАЖА [05:59:56]line ТРК (МРК, ГНК) : 41 [05:59:56]line Товар: 2710194210 [05:59:56]line ДТ(л)-К-5 [05:59:56]line 34.440 * 72.60 [05:59:56]line = 2500.34 [05:59:56]line НДС 12% НСП 1% [05:59:57]line > о реализуемом товаре [05:59:57]line ОКРУГЛЕНИЕ: -0.34 [05:59:57]line ИТОГО: 2500.00 [05:59:57]line Внесено: 2500.00 [05:59:57]line СДАЧА: 0.00 [05:59:57]line НСП 1% : 22.13 [05:59:57]line НДС 12% : 265.52 [05:59:57]line Наличными: 2500.00 [05:59:57]line Безнал.: 0.00 [05:59:57]line Место: АЗС № 140 "Партнер Нефть" [05:59:57]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:59:57]line СНО: Общий режим [05:59:57]line Чек 34 14.07.2024 05:59 [05:59:57]line Смена: 463 ФФД: 1.0 [05:59:57]line ЗНМ: 0300000129 [05:59:57]line РНМ: 0000000000090858 [05:59:57]line Версия ККМ: 001 [05:59:57]line ФМ: 0000000000874899 [05:59:57]line ФД: 162722 [05:59:57]line ФПД: 120764962135002 [05:59:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T055959&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162722&fm=120764962135002&tin=02508201610067®Number=0000000000090858&sum=250000 [05:59:57]OFD Sender: Processing packet 162722 [packets to send 106, broken 105] [05:59:57]ProducePacketName [05:59:57]name=ofd_packets/00162722 [05:59:57]OFD Sender: To server: pG, [05:59:57]CommunicateWithHost lk.salyk.kg:30040 [05:59:57]ConnectInit lk.salyk.kg [05:59:57]written 0, free lines is 4095 [05:59:57]Connected sock=10 [05: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 34 38 39 39 10 01 00 00 5B C6 08 01 DE CA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 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 B8 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 22 00 00 00 F4 03 04 00 5F 69 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7B 02 00 35 04 06 00 6D D5 C8 AB 5B DA F5 E5 02 31 03 2E 5E D6 [05:59:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FF 0C 47 00 2C 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7B 02 00 F4 03 04 00 6C 15 93 66 B6 04 01 00 00 7D 41 DF 57 22 C0 14 AD [05:59:57]CommunicateWithHost err = 0 [05:59:57]CheckOFDResponse [05:59:57]1017 (14) - 77093643461234 [05:59:57]1041 (16) - 0000000000874899 [05:59:57]1040 (4) - 162722 [05:59:57]1012 (4) - 14.07.2024 00:01 [05:59:57]1206 (1) - 0 [05:59:57]OFD Sender: Remove packet 162722 [05:59:57]ProducePacketName [05:59:57]name=ofd_packets/00162722 [05:59:57]NVStorageDeleteData [05:59:57]Write to MH i2c: 01 00 00 6A 3E A8 [05:59:57]Write i2c OK [05:59:57]MH_I2C_Read... [05:59:57]Read from MH i2c: 01 [05:59:57]MH_I2C_Read... [05:59:57]Read from MH i2c: 01 07 00 [05:59:57]MH_I2C_Read... [05:59:57]Read from MH i2c: 01 07 00 6A 3E 00 00 00 00 00 E4 0C 9F [05:59:57]RasterBufferAndPrint [05:59:57]line [05:59:57]line [05:59:57]line [05:59:57]line [05:59:57]line [05:59:57]written 0, free lines is 3306 [05:59:57]MH_Cut [05:59:57]Write to MH i2c: D1 01 00 71 3E 01 81 [05:59:57]Write i2c OK [05:59:57]MH_I2C_Read... [05:59:57]Read from MH i2c: D1 [05:59:57]MH_I2C_Read... [05:59:57]Read from MH i2c: D1 01 00 [05:59:57]MH_I2C_Read... [05:59:57]Read from MH i2c: D1 01 00 71 3E 00 80 [05:59:57]Write to MH i2c: 01 00 00 72 3E B0 [05:59:57]Write i2c OK [05:59:57]MH_I2C_Read... [05:59:58]OFD Sender: No OFD packet to send [05:59:58]*** Cut start [05:59:58]*** Purtial cut [05:59:58]*** Stage 1: CUTSNS_PIN = 1 [05:59:58]Read from MH i2c: 01 [05:59:58]MH_I2C_Read... [05:59:58]*** Stop cut motor [05:59:58]*** Cut end [05:59:58]Read from MH i2c: 01 07 00 [05:59:58]MH_I2C_Read... [05:59:58]Read from MH i2c: 01 07 00 72 3E 00 00 00 00 00 FF 0F C5 [05:59:58]process_action close_receipt done [05:59:58]requested_data is exist [05:59:58]produce_requested_data [05:59:58]requested_item fm.sn is exist - process it [05:59:58]wFMCommunicate request_size=4 [05:59:58]MH_SAM_APDU [05:59:58]CAPDU: 80 11 00 00 [05:59:58]Write to MH i2c: E2 08 00 73 3E 80 11 00 00 00 00 00 00 2B [05:59:58]Write i2c OK [05:59:58]MH_I2C_Read... [05:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:58]Read from MH i2c: E2 [05:59:58]MH_I2C_Read... [05:59:58]Read from MH i2c: E2 17 00 [05:59:58]MH_I2C_Read... [05:59:58]Read from MH i2c: E2 17 00 73 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8B [05:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:59:58]wFMCommunicate OK [05:59:58]requested_item fd.num is exist - process it [05:59:58]SAM_PROTO_GetFieldsCounters [05:59:58]wFMCommunicate request_size=4 [05:59:58]MH_SAM_APDU [05:59:58]CAPDU: 80 13 00 00 [05:59:58]Write to MH i2c: E2 08 00 74 3E 80 13 00 00 00 00 00 00 2E [05:59:58]Write i2c OK [05:59:58]MH_I2C_Read... [05:59:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:59:58]Read from MH i2c: E2 [05:59:58]MH_I2C_Read... [05:59:58]Read from MH i2c: E2 62 00 [05:59:58]MH_I2C_Read... [05:59:58]Read from MH i2c: E2 62 00 74 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A2 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [05:59:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A2 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:59:59]wFMCommunicate OK [05:59:59]SAM_PROTO_GetFieldsCounters done [05:59:59]requested_item shift.num is exist - process it [05:59:59]requested_item shift.opened is exist - process it [05:59:59]req_shift_opened [05:59:59]FM_GetShiftState [05:59:59]SAM_PROTO_GetShiftState [05:59:59]wFMCommunicate request_size=4 [05:59:59]MH_SAM_APDU [05:59:59]CAPDU: 80 13 01 00 [05:59:59]Write to MH i2c: E2 08 00 75 3E 80 13 01 00 00 00 00 00 30 [05:59:59]Write i2c OK [05:59:59]MH_I2C_Read... [05:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:59]Read from MH i2c: E2 [05:59:59]MH_I2C_Read... [05:59:59]Read from MH i2c: E2 0E 00 [05:59:59]MH_I2C_Read... [05:59:59]Read from MH i2c: E2 0E 00 75 3E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 66 [05:59:59]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [05:59:59]wFMCommunicate OK [05:59:59]SAM_PROTO_GetShiftState done [05:59:59]FM_GetShiftState done [05:59:59]req_shift_opened done [05:59:59]requested_item shift.open_date is exist - process it [05:59:59]req_shift_open_date [05:59:59]req_shift_open_date done [05:59:59]produce_requested_data done [05:59:59]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162722,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [05:59:59]process_action_free close_receipt [05:59:59]json_value_free [05:59:59]json_value_free done [05:59:59]process_json_proto returns [05:59:59]Send response to host [05:59:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162722,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [05:59:59]free response buf [05:59:59]execute_script done [05:59:59]execute_script returns [05:59:59]free content buf [05:59:59]Sock 9.Close socket [05:59:59]Sock 9.Thread stoped [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:15]accept exits with 7 [06:29:15]New connection [06:29:15]New thread 3067366756 created [06:29:15]Thread 3067510116 joined [06:29:15]Waiting for new connection... [06:29:15] Sock 7.Parse request [06:29:15]Sock 7.Check first char [06:29:15]Sock 7.First char is OK [06:29:15]request: POST /json_proto HTTP/1.0 [06:29:15]Method: POST [06:29:15]URL: /json_proto [06:29:15]Method is POST - this is cgi request [06:29:15]url: /json_proto [06:29:15]query_string will be loaded in cgi processing [06:29:15]execute_cgi json_proto POST (null) [06:29:15]execute_cgi path=json_proto method=POST [06:29:15]POST find Content-Length [06:29:15]Host: 172.17.39.67:8080 [06:29:15]Content-Length: 688 [06:29:15]Content-Type: application/json [06:29:15] [06:29:15]POST finish read [06:29:15]Found Content-Length = 688 [06:29:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 18.880, "sum" : 1370.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1370.00, "total" : 1370.00, "payments": [ { "type": 0, "sum" : 1370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:29:15]execute_script... [06:29: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)1319303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 18.880, "sum" : 1370.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1370.00, "total" : 1370.00, "payments": [ { "type": 0, "sum" : 1370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:29:15]POST & json_proto [06:29:15]process_json_proto [06:29:15]json parsed OK: [06:29:15]protocol is kg_v1.0 [06:29:15]action value=close_receipt [06:29:15]process_action close_receipt [06:29:15]cmd_close_receipt [06:29:15]MH_GetDate [06:29:15]Write to MH i2c: F0 00 00 76 3E A3 [06:29:15]Write i2c OK [06:29:15]MH_I2C_Read... [06:29:15]Read from MH i2c: F0 [06:29:15]MH_I2C_Read... [06:29:15]Read from MH i2c: F0 09 00 [06:29:15]MH_I2C_Read... [06:29:15]Read from MH i2c: F0 09 00 76 3E 00 3F 70 93 66 86 7C 92 66 4E [06:29:15]GetLastDocTimeStamp 1720936799 [06:29:15]current date 1720938559 [06:29:15]FM_GetShiftState [06:29:15]SAM_PROTO_GetShiftState [06:29:15]wFMCommunicate request_size=4 [06:29:15]MH_SAM_APDU [06:29:15]CAPDU: 80 13 01 00 [06:29:15]Write to MH i2c: E2 08 00 77 3E 80 13 01 00 00 00 00 00 32 [06:29:15]Write i2c OK [06:29:15]MH_I2C_Read... [06:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:29:15]Read from MH i2c: E2 [06:29:15]MH_I2C_Read... [06:29:15]Read from MH i2c: E2 0E 00 [06:29:15]MH_I2C_Read... [06:29:15]Read from MH i2c: E2 0E 00 77 3E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 68 [06:29:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [06:29:15]wFMCommunicate OK [06:29:15]SAM_PROTO_GetShiftState done [06:29:15]FM_GetShiftState done [06:29:15]opened in 1720915483 [06:29:15]opened+sec_in_day 1721001883 [06:29:15]quantity*price = 137068 [06:29:15]sum+1 = 137070 [06:29:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 1370.00 Внесено: 1370.00 СДАЧА: 0.00 НСП 1% : 12.13 НДС 12% : 145.56 Наличными: 1370.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 35 14.07.2024 06:29 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162723 ФПД: 201094094741544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T062919&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162723&fm=201094094741544&tin=02508201610067®Number=0000000000090858&sum=137000 [06:29:16]StoreToDocumentArchive [06:29:16]shift 463 fd 162723 [06:29:16]save to /storage/0463/doc_00162723 [06:29:16]save last doc name /storage/0463/doc_00162723 to /storage/kkm_last_doc_name [06:29:16]save OK [06:29:16]Clear old archive folders... [06:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:29:16]tlvbuf is 00762820 [06:29:16]SAM_PROTO_ClearQueue [06:29:16]wFMCommunicate request_size=4 [06:29:16]MH_SAM_APDU [06:29:16]CAPDU: 80 09 00 00 [06:29:16]Write to MH i2c: E2 08 00 84 3E 80 09 00 00 00 00 00 00 34 [06:29:16]Write i2c OK [06:29:16]MH_I2C_Read... [06:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:29:17]Read from MH i2c: E2 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: E2 03 00 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: E2 03 00 84 3E 00 90 00 36 [06:29:17]RAPDU: 90 00 [06:29:17]wFMCommunicate OK [06:29:17]SAM_PROTO_ClearQueue done [06:29:17]KKMCreateOFDPacket [06:29:17]OFDProtocolAddRootSTLVToBuf [06:29:17]FM_MakeSignedData [06:29:17]FM_MakeSignedData [06:29:17]SAM_PROTO_SignData [06:29:17]wFMCommunicate request_size=4 [06:29:17]MH_SAM_APDU [06:29:17]CAPDU: 80 0D 01 02 [06:29:17]Write to MH i2c: E2 08 00 85 3E 80 0D 01 02 00 00 00 00 3C [06:29:17]Write i2c OK [06:29:17]MH_I2C_Read... [06:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:29:17]Read from MH i2c: E2 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: E2 03 00 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: E2 03 00 85 3E 00 90 00 37 [06:29:17]RAPDU: 90 00 [06:29:17]wFMCommunicate OK [06:29:17]wFMCommunicate request_size=255 [06:29:17]MH_SAM_APDU [06:29:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 49 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6D 17 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 17 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 38 00 00 00 00 07 04 06 00 28 17 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3F 70 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7B 02 00 35 04 06 00 [06:29:17]Write to MH i2c: E2 02 01 86 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 49 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6D 17 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 17 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 38 00 00 00 00 07 04 06 00 28 17 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3F 70 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7B 02 00 35 04 06 00 00 00 AC [06:29:17]Write i2c OK [06:29:17]MH_I2C_Read... [06:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:29:17]Read from MH i2c: E2 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: E2 03 00 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: E2 03 00 86 3E 00 90 00 38 [06:29:17]RAPDU: 90 00 [06:29:17]wFMCommunicate OK [06:29:17]wFMCommunicate request_size=11 [06:29:17]MH_SAM_APDU [06:29:17]CAPDU: 80 0D 02 02 06 B6 E4 DE 15 60 28 [06:29:17]Write to MH i2c: E2 0E 00 87 3E 80 0D 02 02 06 00 B6 E4 DE 15 60 28 00 00 60 [06:29:17]Write i2c OK [06:29:17]MH_I2C_Read... [06:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:29:17]Read from MH i2c: E2 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: E2 03 00 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: E2 03 00 87 3E 00 90 00 39 [06:29:17]RAPDU: 90 00 [06:29:17]wFMCommunicate OK [06:29:17]wFMCommunicate request_size=4 [06:29:17]MH_SAM_APDU [06:29:17]CAPDU: 80 0D 03 02 [06:29:17]Write to MH i2c: E2 08 00 88 3E 80 0D 03 02 00 00 00 00 41 [06:29:17]Write i2c OK [06:29:17]MH_I2C_Read... [06:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:29:17]Read from MH i2c: E2 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: E2 0B 00 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: E2 0B 00 88 3E 00 ED 27 4B CC 52 E6 01 98 90 00 3E [06:29:17]RAPDU: ED 27 4B CC 52 E6 01 98 90 00 [06:29:17]wFMCommunicate OK [06:29:17]SAM_PROTO_SignData done [06:29:17]FM_MakeSignedData done [06:29:17]CreateOFDProtocolMessage [06:29:17]wFMCommunicate request_size=4 [06:29:17]MH_SAM_APDU [06:29:17]CAPDU: 80 11 00 00 [06:29:17]Write to MH i2c: E2 08 00 89 3E 80 11 00 00 00 00 00 00 41 [06:29:17]Write i2c OK [06:29:17]MH_I2C_Read... [06:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:29:17]Read from MH i2c: E2 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: E2 17 00 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: E2 17 00 89 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A1 [06:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:29:17]wFMCommunicate OK [06:29:17]CreateOFDProtocolMessage done [06:29:17]OFDSenderStorePacket 162723 [06:29:17]StoreOFDPacket docnum=162723 [06:29:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 05 26 08 01 42 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 49 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6D 17 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 17 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 38 00 00 00 00 07 04 06 00 28 17 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3F 70 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7B 02 00 35 04 06 00 B6 E4 DE 15 60 28 ED 27 4B CC 52 E6 01 98 [06:29:17]CheckFolder [06:29:17]dirname=/storage/ofd_packets [06:29:17]CheckFolder done [06:29:17]ProducePacketName [06:29:17]name=ofd_packets/00162723 [06:29:17]NVStorageSaveData ofd_packets/00162723 [06:29:17]File name is /storage/ofd_packets/00162723 [06:29:17]Write 302 bytes [06:29:17]NVStorageSaveData done [06:29:17]OFDSenderStorePacket done [06:29:17]KKMCreateOFDPacket done [06:29:17]NVStorageSaveData kkm_last_timestamp [06:29:17]File name is /storage/kkm_last_timestamp [06:29:17]Write 4 bytes [06:29:17]NVStorageSaveData done [06:29:17]ExternCall_PrintAddStr [06:29:17]wPrintStart [06:29:17]Write to MH i2c: 01 00 00 8A 3E C8 [06:29:17]Write i2c OK [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: 01 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: 01 07 00 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: 01 07 00 8A 3E 00 00 00 00 00 FF 0F DD [06:29:17]RasterBufferAndPrint [06:29:17]line Счет N : (1)1319303 [06:29:17]line ИНН: 02508201610067 [06:29:17]line Контрольно-Кассовый Чек [06:29:17]line ПРОДАЖА [06:29:17]line ТРК (МРК, ГНК) : 21 [06:29:17]line Товар: 2710194210 [06:29:17]line ДТ(л)-К-5 [06:29:17]line 18.880 * 72.60 [06:29:17]line = 1370.69 [06:29:17]line НДС 12% НСП 1% [06:29:17]line > о реализуемом товаре [06:29:17]line ОКРУГЛЕНИЕ: -0.69 [06:29:17]line ИТОГО: 1370.00 [06:29:17]line Внесено: 1370.00 [06:29:17]line СДАЧА: 0.00 [06:29:17]line НСП 1% : 12.13 [06:29:17]line НДС 12% : 145.56 [06:29:17]line Наличными: 1370.00 [06:29:17]line Безнал.: 0.00 [06:29:17]line Место: АЗС № 140 "Партнер Нефть" [06:29:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:29:17]line СНО: Общий режим [06:29:17]line Чек 35 14.07.2024 06:29 [06:29:17]line Смена: 463 ФФД: 1.0 [06:29:17]line ЗНМ: 0300000129 [06:29:17]line РНМ: 0000000000090858 [06:29:17]line Версия ККМ: 001 [06:29:17]line ФМ: 0000000000874899 [06:29:17]line ФД: 162723 [06:29:17]line ФПД: 201094094741544 [06:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T062919&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162723&fm=201094094741544&tin=02508201610067®Number=0000000000090858&sum=137000 [06:29:17]written 0, free lines is 4095 [06:29:17]OFD Sender: Processing packet 162723 [packets to send 106, broken 105] [06:29:17]ProducePacketName [06:29:17]name=ofd_packets/00162723 [06:29:17]OFD Sender: To server: pG, [06:29:17]CommunicateWithHost lk.salyk.kg:30040 [06:29:17]ConnectInit lk.salyk.kg [06:29:17]Connected sock=10 [06:29:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 05 26 08 01 42 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 49 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6D 17 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 17 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 38 00 00 00 00 07 04 06 00 28 17 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3F 70 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7B 02 00 35 04 06 00 B6 E4 DE 15 60 28 ED 27 4B CC 52 E6 01 98 [06:29:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 45 B5 47 00 EA 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7B 02 00 F4 03 04 00 4C 1C 93 66 B6 04 01 00 00 D4 84 2A F4 08 31 F5 A1 [06:29:17]CommunicateWithHost err = 0 [06:29:17]CheckOFDResponse [06:29:17]1017 (14) - 77093643461234 [06:29:17]1041 (16) - 0000000000874899 [06:29:17]1040 (4) - 162723 [06:29:17]1012 (4) - 14.07.2024 00:31 [06:29:17]1206 (1) - 0 [06:29:17]OFD Sender: Remove packet 162723 [06:29:17]ProducePacketName [06:29:17]name=ofd_packets/00162723 [06:29:17]NVStorageDeleteData [06:29:17]Write to MH i2c: 01 00 00 B5 3E F3 [06:29:17]Write i2c OK [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: 01 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: 01 07 00 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: 01 07 00 B5 3E 00 00 00 00 00 D1 0C D7 [06:29:17]RasterBufferAndPrint [06:29:17]line [06:29:17]line [06:29:17]line [06:29:17]line [06:29:17]line [06:29:17]written 0, free lines is 3287 [06:29:17]MH_Cut [06:29:17]Write to MH i2c: D1 01 00 BC 3E 01 CC [06:29:17]Write i2c OK [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: D1 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: D1 01 00 [06:29:17]MH_I2C_Read... [06:29:17]Read from MH i2c: D1 01 00 BC 3E 00 CB [06:29:17]Write to MH i2c: 01 00 00 BD 3E FB [06:29:17]Write i2c OK [06:29:17]MH_I2C_Read... [06:29:18]OFD Sender: No OFD packet to send [06:29:18]*** Cut start [06:29:18]*** Purtial cut [06:29:18]*** CUTSNS_PIN = 0 [06:29:18]*** Stage 1: CUTSNS_PIN = 1 [06:29:20]Read from MH i2c: 01 [06:29:20]MH_I2C_Read... [06:29:20]*** Stop cut motor [06:29:20]*** Cut end [06:29:20]Read from MH i2c: 01 07 00 [06:29:20]MH_I2C_Read... [06:29:20]Read from MH i2c: 01 07 00 BD 3E 00 00 00 00 00 FF 0F 10 [06:29:20]process_action close_receipt done [06:29:20]requested_data is exist [06:29:20]produce_requested_data [06:29:20]requested_item fm.sn is exist - process it [06:29:20]wFMCommunicate request_size=4 [06:29:20]MH_SAM_APDU [06:29:20]CAPDU: 80 11 00 00 [06:29:20]Write to MH i2c: E2 08 00 BE 3E 80 11 00 00 00 00 00 00 76 [06:29:20]Write i2c OK [06:29:20]MH_I2C_Read... [06:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:29:20]Read from MH i2c: E2 [06:29:20]MH_I2C_Read... [06:29:20]Read from MH i2c: E2 17 00 [06:29:20]MH_I2C_Read... [06:29:20]Read from MH i2c: E2 17 00 BE 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D6 [06:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:29:20]wFMCommunicate OK [06:29:20]requested_item fd.num is exist - process it [06:29:20]SAM_PROTO_GetFieldsCounters [06:29:20]wFMCommunicate request_size=4 [06:29:20]MH_SAM_APDU [06:29:20]CAPDU: 80 13 00 00 [06:29:20]Write to MH i2c: E2 08 00 BF 3E 80 13 00 00 00 00 00 00 79 [06:29:20]Write i2c OK [06:29:20]MH_I2C_Read... [06:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:29:20]Read from MH i2c: E2 [06:29:20]MH_I2C_Read... [06:29:20]Read from MH i2c: E2 62 00 [06:29:20]MH_I2C_Read... [06:29:20]Read from MH i2c: E2 62 00 BF 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A3 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [06:29:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A3 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:29:20]wFMCommunicate OK [06:29:20]SAM_PROTO_GetFieldsCounters done [06:29:20]requested_item shift.num is exist - process it [06:29:20]requested_item shift.opened is exist - process it [06:29:20]req_shift_opened [06:29:20]FM_GetShiftState [06:29:20]SAM_PROTO_GetShiftState [06:29:20]wFMCommunicate request_size=4 [06:29:20]MH_SAM_APDU [06:29:20]CAPDU: 80 13 01 00 [06:29:20]Write to MH i2c: E2 08 00 C0 3E 80 13 01 00 00 00 00 00 7B [06:29:20]Write i2c OK [06:29:20]MH_I2C_Read... [06:29:21]Read from MH i2c: E2 [06:29:21]MH_I2C_Read... [06:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:29:21]Read from MH i2c: E2 0E 00 [06:29:21]MH_I2C_Read... [06:29:21]Read from MH i2c: E2 0E 00 C0 3E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B1 [06:29:21]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [06:29:21]wFMCommunicate OK [06:29:21]SAM_PROTO_GetShiftState done [06:29:21]FM_GetShiftState done [06:29:21]req_shift_opened done [06:29:21]requested_item shift.open_date is exist - process it [06:29:21]req_shift_open_date [06:29:21]req_shift_open_date done [06:29:21]produce_requested_data done [06:29:21]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162723,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [06:29:21]process_action_free close_receipt [06:29:21]json_value_free [06:29:21]json_value_free done [06:29:21]process_json_proto returns [06:29:21]Send response to host [06:29:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162723,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [06:29:21]free response buf [06:29:21]execute_script done [06:29:21]execute_script returns [06:29:21]free content buf [06:29:21]Sock 7.Close socket [06:29:21]Sock 7.Thread stoped [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:18]accept exits with 9 [06:30:18]New connection [06:30:18]New thread 3067510116 created [06:30:18]Thread 3067366756 joined [06:30:18]Waiting for new connection... [06:30:18] Sock 9.Parse request [06:30:18]Sock 9.Check first char [06:30:18]Sock 9.First char is OK [06:30:18]request: POST /json_proto HTTP/1.0 [06:30:18]Method: POST [06:30:18]URL: /json_proto [06:30:18]Method is POST - this is cgi request [06:30:18]url: /json_proto [06:30:18]query_string will be loaded in cgi processing [06:30:18]execute_cgi json_proto POST (null) [06:30:18]execute_cgi path=json_proto method=POST [06:30:18]POST find Content-Length [06:30:18]Host: 172.17.39.67:8080 [06:30:18]Content-Length: 683 [06:30:18]Content-Type: application/json [06:30:18] [06:30:18]POST finish read [06:30:18]Found Content-Length = 683 [06:30:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:30:18]execute_script... [06:30: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)1319304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:30:18]POST & json_proto [06:30:18]process_json_proto [06:30:18]json parsed OK: [06:30:18]protocol is kg_v1.0 [06:30:18]action value=close_receipt [06:30:18]process_action close_receipt [06:30:18]cmd_close_receipt [06:30:18]MH_GetDate [06:30:18]Write to MH i2c: F0 00 00 C1 3E EE [06:30:18]Write i2c OK [06:30:18]MH_I2C_Read... [06:30:18]Read from MH i2c: F0 [06:30:18]MH_I2C_Read... [06:30:18]Read from MH i2c: F0 09 00 [06:30:18]MH_I2C_Read... [06:30:18]Read from MH i2c: F0 09 00 C1 3E 00 7E 70 93 66 86 7C 92 66 D8 [06:30:18]GetLastDocTimeStamp 1720938559 [06:30:18]current date 1720938622 [06:30:18]FM_GetShiftState [06:30:18]SAM_PROTO_GetShiftState [06:30:18]wFMCommunicate request_size=4 [06:30:18]MH_SAM_APDU [06:30:18]CAPDU: 80 13 01 00 [06:30:18]Write to MH i2c: E2 08 00 C2 3E 80 13 01 00 00 00 00 00 7D [06:30:18]Write i2c OK [06:30:18]MH_I2C_Read... [06:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:30:18]Read from MH i2c: E2 [06:30:18]MH_I2C_Read... [06:30:18]Read from MH i2c: E2 0E 00 [06:30:18]MH_I2C_Read... [06:30:18]Read from MH i2c: E2 0E 00 C2 3E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B3 [06:30:18]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [06:30:18]wFMCommunicate OK [06:30:18]SAM_PROTO_GetShiftState done [06:30:18]FM_GetShiftState done [06:30:18]opened in 1720915483 [06:30:18]opened+sec_in_day 1721001883 [06:30:18]quantity*price = 50021 [06:30:18]sum+1 = 50022 [06:30:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 36 14.07.2024 06:30 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162724 ФПД: 88810258685552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T063022&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162724&fm=88810258685552&tin=02508201610067®Number=0000000000090858&sum=50000 [06:30:19]StoreToDocumentArchive [06:30:19]shift 463 fd 162724 [06:30:19]save to /storage/0463/doc_00162724 [06:30:19]save last doc name /storage/0463/doc_00162724 to /storage/kkm_last_doc_name [06:30:19]save OK [06:30:19]Clear old archive folders... [06:30:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:30:19]tlvbuf is 006B5520 [06:30:19]SAM_PROTO_ClearQueue [06:30:19]wFMCommunicate request_size=4 [06:30:19]MH_SAM_APDU [06:30:19]CAPDU: 80 09 00 00 [06:30:19]Write to MH i2c: E2 08 00 CF 3E 80 09 00 00 00 00 00 00 7F [06:30:19]Write i2c OK [06:30:19]MH_I2C_Read... [06:30:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:30:19]Read from MH i2c: E2 [06:30:19]MH_I2C_Read... [06:30:19]Read from MH i2c: E2 03 00 [06:30:19]MH_I2C_Read... [06:30:19]Read from MH i2c: E2 03 00 CF 3E 00 90 00 81 [06:30:19]RAPDU: 90 00 [06:30:19]wFMCommunicate OK [06:30:19]SAM_PROTO_ClearQueue done [06:30:19]KKMCreateOFDPacket [06:30:19]OFDProtocolAddRootSTLVToBuf [06:30:19]FM_MakeSignedData [06:30:19]FM_MakeSignedData [06:30:19]SAM_PROTO_SignData [06:30:19]wFMCommunicate request_size=4 [06:30:19]MH_SAM_APDU [06:30:19]CAPDU: 80 0D 01 02 [06:30:19]Write to MH i2c: E2 08 00 D0 3E 80 0D 01 02 00 00 00 00 87 [06:30:19]Write i2c OK [06:30:19]MH_I2C_Read... [06:30:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:30:19]Read from MH i2c: E2 [06:30:19]MH_I2C_Read... [06:30:19]Read from MH i2c: E2 03 00 [06:30:19]MH_I2C_Read... [06:30:19]Read from MH i2c: E2 03 00 D0 3E 00 90 00 82 [06:30:19]RAPDU: 90 00 [06:30:19]wFMCommunicate OK [06:30:19]wFMCommunicate request_size=255 [06:30:19]MH_SAM_APDU [06:30:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 24 00 00 00 F4 03 04 00 7E 70 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7B 02 00 35 04 06 00 [06:30:19]Write to MH i2c: E2 02 01 D1 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 24 00 00 00 F4 03 04 00 7E 70 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7B 02 00 35 04 06 00 00 00 34 [06:30:19]Write i2c OK [06:30:19]MH_I2C_Read... [06:30:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:30:20]Read from MH i2c: E2 [06:30:20]MH_I2C_Read... [06:30:20]Read from MH i2c: E2 03 00 [06:30:20]MH_I2C_Read... [06:30:20]Read from MH i2c: E2 03 00 D1 3E 00 90 00 83 [06:30:20]RAPDU: 90 00 [06:30:20]wFMCommunicate OK [06:30:20]wFMCommunicate request_size=11 [06:30:20]MH_SAM_APDU [06:30:20]CAPDU: 80 0D 02 02 06 50 C5 BF EB DE 70 [06:30:20]Write to MH i2c: E2 0E 00 D2 3E 80 0D 02 02 06 00 50 C5 BF EB DE 70 00 00 A3 [06:30:20]Write i2c OK [06:30:20]MH_I2C_Read... [06:30:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:30:20]Read from MH i2c: E2 [06:30:20]MH_I2C_Read... [06:30:20]Read from MH i2c: E2 03 00 [06:30:20]MH_I2C_Read... [06:30:20]Read from MH i2c: E2 03 00 D2 3E 00 90 00 84 [06:30:20]RAPDU: 90 00 [06:30:20]wFMCommunicate OK [06:30:20]wFMCommunicate request_size=4 [06:30:20]MH_SAM_APDU [06:30:20]CAPDU: 80 0D 03 02 [06:30:20]Write to MH i2c: E2 08 00 D3 3E 80 0D 03 02 00 00 00 00 8C [06:30:20]Write i2c OK [06:30:20]MH_I2C_Read... [06:30:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:30:20]Read from MH i2c: E2 [06:30:20]MH_I2C_Read... [06:30:20]Read from MH i2c: E2 0B 00 [06:30:20]MH_I2C_Read... [06:30:20]Read from MH i2c: E2 0B 00 D3 3E 00 81 77 4C 6A 9D 6A F6 80 90 00 B8 [06:30:20]RAPDU: 81 77 4C 6A 9D 6A F6 80 90 00 [06:30:20]wFMCommunicate OK [06:30:20]SAM_PROTO_SignData done [06:30:20]FM_MakeSignedData done [06:30:20]CreateOFDProtocolMessage [06:30:20]wFMCommunicate request_size=4 [06:30:20]MH_SAM_APDU [06:30:20]CAPDU: 80 11 00 00 [06:30:20]Write to MH i2c: E2 08 00 D4 3E 80 11 00 00 00 00 00 00 8C [06:30:20]Write i2c OK [06:30:20]MH_I2C_Read... [06:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:30:20]Read from MH i2c: E2 [06:30:20]MH_I2C_Read... [06:30:20]Read from MH i2c: E2 17 00 [06:30:20]MH_I2C_Read... [06:30:20]Read from MH i2c: E2 17 00 D4 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EC [06:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:30:20]wFMCommunicate OK [06:30:20]CreateOFDProtocolMessage done [06:30:20]OFDSenderStorePacket 162724 [06:30:20]StoreOFDPacket docnum=162724 [06:30:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D4 29 08 01 5D 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 24 00 00 00 F4 03 04 00 7E 70 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7B 02 00 35 04 06 00 50 C5 BF EB DE 70 81 77 4C 6A 9D 6A F6 80 [06:30:20]CheckFolder [06:30:20]dirname=/storage/ofd_packets [06:30:20]CheckFolder done [06:30:20]ProducePacketName [06:30:20]name=ofd_packets/00162724 [06:30:20]NVStorageSaveData ofd_packets/00162724 [06:30:20]File name is /storage/ofd_packets/00162724 [06:30:20]Write 302 bytes [06:30:20]NVStorageSaveData done [06:30:20]OFDSenderStorePacket done [06:30:20]KKMCreateOFDPacket done [06:30:20]NVStorageSaveData kkm_last_timestamp [06:30:20]File name is /storage/kkm_last_timestamp [06:30:20]Write 4 bytes [06:30:20]NVStorageSaveData done [06:30:20]ExternCall_PrintAddStr [06:30:20]wPrintStart [06:30:20]Write to MH i2c: 01 00 00 D5 3E 13 [06:30:20]Write i2c OK [06:30:20]MH_I2C_Read... [06:30:20]Read from MH i2c: 01 [06:30:20]MH_I2C_Read... [06:30:20]Read from MH i2c: 01 07 00 [06:30:20]MH_I2C_Read... [06:30:20]Read from MH i2c: 01 07 00 D5 3E 00 00 00 00 00 FF 0F 28 [06:30:20]RasterBufferAndPrint [06:30:20]line Счет N : (1)1319304 [06:30:20]line ИНН: 02508201610067 [06:30:20]line Контрольно-Кассовый Чек [06:30:20]line ПРОДАЖА [06:30:20]line ТРК (МРК, ГНК) : 41 [06:30:20]line Товар: 2710194210 [06:30:20]line ДТ(л)-К-5 [06:30:20]line 6.890 * 72.60 [06:30:20]line = 500.21 [06:30:20]line НДС 12% НСП 1% [06:30:20]line > о реализуемом товаре [06:30:20]line ОКРУГЛЕНИЕ: -0.21 [06:30:20]line ИТОГО: 500.00 [06:30:20]line Внесено: 500.00 [06:30:20]line СДАЧА: 0.00 [06:30:20]line НСП 1% : 4.43 [06:30:20]line НДС 12% : 53.12 [06:30:20]line Наличными: 500.00 [06:30:20]line Безнал.: 0.00 [06:30:20]line Место: АЗС № 140 "Партнер Нефть" [06:30:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:30:20]line СНО: Общий режим [06:30:20]line Чек 36 14.07.2024 06:30 [06:30:20]line Смена: 463 ФФД: 1.0 [06:30:20]line ЗНМ: 0300000129 [06:30:20]line РНМ: 0000000000090858 [06:30:20]line Версия ККМ: 001 [06:30:20]line ФМ: 0000000000874899 [06:30:20]line ФД: 162724 [06:30:20]line ФПД: 88810258685552 [06:30:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T063022&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162724&fm=88810258685552&tin=02508201610067®Number=0000000000090858&sum=50000 [06:30:20]OFD Sender: Processing packet 162724 [packets to send 106, broken 105] [06:30:20]ProducePacketName [06:30:20]name=ofd_packets/00162724 [06:30:20]OFD Sender: To server: pG, [06:30:20]CommunicateWithHost lk.salyk.kg:30040 [06:30:20]ConnectInit lk.salyk.kg [06:30:20]written 0, free lines is 4095 [06:30:20]Connected sock=10 [06:30:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D4 29 08 01 5D 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 24 00 00 00 F4 03 04 00 7E 70 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7B 02 00 35 04 06 00 50 C5 BF EB DE 70 81 77 4C 6A 9D 6A F6 80 [06:30:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 79 89 47 00 37 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7B 02 00 F4 03 04 00 8B 1C 93 66 B6 04 01 00 00 89 FF 37 ED E2 BB 8B F5 [06:30:20]CommunicateWithHost err = 0 [06:30:20]CheckOFDResponse [06:30:20]1017 (14) - 77093643461234 [06:30:20]1041 (16) - 0000000000874899 [06:30:20]1040 (4) - 162724 [06:30:20]1012 (4) - 14.07.2024 00:32 [06:30:20]1206 (1) - 0 [06:30:20]OFD Sender: Remove packet 162724 [06:30:20]ProducePacketName [06:30:20]name=ofd_packets/00162724 [06:30:20]NVStorageDeleteData [06:30:21]Write to MH i2c: 01 00 00 00 3F 3F [06:30:21]Write i2c OK [06:30:21]MH_I2C_Read... [06:30:21]Read from MH i2c: 01 [06:30:21]MH_I2C_Read... [06:30:21]Read from MH i2c: 01 07 00 [06:30:21]MH_I2C_Read... [06:30:21]Read from MH i2c: 01 07 00 00 3F 00 00 00 00 00 C2 0C 14 [06:30:21]RasterBufferAndPrint [06:30:21]line [06:30:21]line [06:30:21]line [06:30:21]line [06:30:21]line [06:30:21]written 0, free lines is 3272 [06:30:21]MH_Cut [06:30:21]Write to MH i2c: D1 01 00 07 3F 01 18 [06:30:21]Write i2c OK [06:30:21]MH_I2C_Read... [06:30:21]Read from MH i2c: D1 [06:30:21]MH_I2C_Read... [06:30:21]Read from MH i2c: D1 01 00 [06:30:21]MH_I2C_Read... [06:30:21]Read from MH i2c: D1 01 00 07 3F 00 17 [06:30:21]Write to MH i2c: 01 00 00 08 3F 47 [06:30:21]Write i2c OK [06:30:21]MH_I2C_Read... [06:30:21]OFD Sender: No OFD packet to send [06:30:21]*** Cut start [06:30:21]*** Purtial cut [06:30:21]*** Stage 1: CUTSNS_PIN = 1 [06:30:22]Read from MH i2c: 01 [06:30:22]MH_I2C_Read... [06:30:22]*** Stop cut motor [06:30:22]*** Cut end [06:30:22]Read from MH i2c: 01 07 00 [06:30:22]MH_I2C_Read... [06:30:22]Read from MH i2c: 01 07 00 08 3F 00 00 00 00 00 FF 0F 5C [06:30:22]process_action close_receipt done [06:30:22]requested_data is exist [06:30:22]produce_requested_data [06:30:22]requested_item fm.sn is exist - process it [06:30:22]wFMCommunicate request_size=4 [06:30:22]MH_SAM_APDU [06:30:22]CAPDU: 80 11 00 00 [06:30:22]Write to MH i2c: E2 08 00 09 3F 80 11 00 00 00 00 00 00 C2 [06:30:22]Write i2c OK [06:30:22]MH_I2C_Read... [06:30:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:30:22]Read from MH i2c: E2 [06:30:22]MH_I2C_Read... [06:30:22]Read from MH i2c: E2 17 00 [06:30:22]MH_I2C_Read... [06:30:22]Read from MH i2c: E2 17 00 09 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 22 [06:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:30:22]wFMCommunicate OK [06:30:22]requested_item fd.num is exist - process it [06:30:22]SAM_PROTO_GetFieldsCounters [06:30:22]wFMCommunicate request_size=4 [06:30:22]MH_SAM_APDU [06:30:22]CAPDU: 80 13 00 00 [06:30:22]Write to MH i2c: E2 08 00 0A 3F 80 13 00 00 00 00 00 00 C5 [06:30:22]Write i2c OK [06:30:22]MH_I2C_Read... [06:30:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:30:22]Read from MH i2c: E2 [06:30:22]MH_I2C_Read... [06:30:22]Read from MH i2c: E2 62 00 [06:30:22]MH_I2C_Read... [06:30:22]Read from MH i2c: E2 62 00 0A 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A4 7B 02 00 0E 04 04 00 CF 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 55 [06:30:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A4 7B 02 00 0E 04 04 00 CF 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 [06:30:22]wFMCommunicate OK [06:30:22]SAM_PROTO_GetFieldsCounters done [06:30:22]requested_item shift.num is exist - process it [06:30:22]requested_item shift.opened is exist - process it [06:30:22]req_shift_opened [06:30:22]FM_GetShiftState [06:30:22]SAM_PROTO_GetShiftState [06:30:22]wFMCommunicate request_size=4 [06:30:22]MH_SAM_APDU [06:30:22]CAPDU: 80 13 01 00 [06:30:22]Write to MH i2c: E2 08 00 0B 3F 80 13 01 00 00 00 00 00 C7 [06:30:22]Write i2c OK [06:30:22]MH_I2C_Read... [06:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:30:22]Read from MH i2c: E2 [06:30:22]MH_I2C_Read... [06:30:22]Read from MH i2c: E2 0E 00 [06:30:22]MH_I2C_Read... [06:30:22]Read from MH i2c: E2 0E 00 0B 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 FD [06:30:22]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [06:30:22]wFMCommunicate OK [06:30:22]SAM_PROTO_GetShiftState done [06:30:22]FM_GetShiftState done [06:30:22]req_shift_opened done [06:30:22]requested_item shift.open_date is exist - process it [06:30:22]req_shift_open_date [06:30:22]req_shift_open_date done [06:30:22]produce_requested_data done [06:30:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162724,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [06:30:22]process_action_free close_receipt [06:30:22]json_value_free [06:30:22]json_value_free done [06:30:22]process_json_proto returns [06:30:22]Send response to host [06:30:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162724,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [06:30:22]free response buf [06:30:22]execute_script done [06:30:22]execute_script returns [06:30:22]free content buf [06:30:22]Sock 9.Close socket [06:30:22]Sock 9.Thread stoped [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:48]accept exits with 7 [06:41:48]New connection [06:41:48]New thread 3067366756 created [06:41:48]Thread 3067510116 joined [06:41:48]Waiting for new connection... [06:41:48] Sock 7.Parse request [06:41:48]Sock 7.Check first char [06:41:48]Sock 7.First char is OK [06:41:48]request: POST /json_proto HTTP/1.0 [06:41:48]Method: POST [06:41:48]URL: /json_proto [06:41:48]Method is POST - this is cgi request [06:41:48]url: /json_proto [06:41:48]query_string will be loaded in cgi processing [06:41:48]execute_cgi json_proto POST (null) [06:41:48]execute_cgi path=json_proto method=POST [06:41:48]POST find Content-Length [06:41:48]Host: 172.17.39.67:8080 [06:41:48]Content-Length: 678 [06:41:48]Content-Type: application/json [06:41:48] [06:41:48]POST finish read [06:41:48]Found Content-Length = 678 [06:41:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:41:48]execute_script... [06:41: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)1319305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:41:48]POST & json_proto [06:41:48]process_json_proto [06:41:48]json parsed OK: [06:41:48]protocol is kg_v1.0 [06:41:48]action value=close_receipt [06:41:48]process_action close_receipt [06:41:48]cmd_close_receipt [06:41:48]MH_GetDate [06:41:48]Write to MH i2c: F0 00 00 0C 3F 3A [06:41:48]Write i2c OK [06:41:48]MH_I2C_Read... [06:41:48]Read from MH i2c: F0 [06:41:48]MH_I2C_Read... [06:41:48]Read from MH i2c: F0 09 00 [06:41:48]MH_I2C_Read... [06:41:48]Read from MH i2c: F0 09 00 0C 3F 00 30 73 93 66 86 7C 92 66 D9 [06:41:48]GetLastDocTimeStamp 1720938622 [06:41:48]current date 1720939312 [06:41:48]FM_GetShiftState [06:41:48]SAM_PROTO_GetShiftState [06:41:48]wFMCommunicate request_size=4 [06:41:48]MH_SAM_APDU [06:41:48]CAPDU: 80 13 01 00 [06:41:48]Write to MH i2c: E2 08 00 0D 3F 80 13 01 00 00 00 00 00 C9 [06:41:48]Write i2c OK [06:41:48]MH_I2C_Read... [06:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:49]Read from MH i2c: E2 [06:41:49]MH_I2C_Read... [06:41:49]Read from MH i2c: E2 0E 00 [06:41:49]MH_I2C_Read... [06:41:49]Read from MH i2c: E2 0E 00 0D 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 FF [06:41:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [06:41:49]wFMCommunicate OK [06:41:49]SAM_PROTO_GetShiftState done [06:41:49]FM_GetShiftState done [06:41:49]opened in 1720915483 [06:41:49]opened+sec_in_day 1721001883 [06:41:49]quantity*price = 50056 [06:41:49]sum+1 = 50058 [06:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 37 14.07.2024 06:41 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162725 ФПД: 33574292777811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T064152&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162725&fm=33574292777811&tin=02508201610067®Number=0000000000090858&sum=50000 [06:41:50]StoreToDocumentArchive [06:41:50]shift 463 fd 162725 [06:41:50]save to /storage/0463/doc_00162725 [06:41:50]save last doc name /storage/0463/doc_00162725 to /storage/kkm_last_doc_name [06:41:50]save OK [06:41:50]Clear old archive folders... [06:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:41:50]tlvbuf is 00762AB0 [06:41:50]SAM_PROTO_ClearQueue [06:41:50]wFMCommunicate request_size=4 [06:41:50]MH_SAM_APDU [06:41:50]CAPDU: 80 09 00 00 [06:41:50]Write to MH i2c: E2 08 00 1A 3F 80 09 00 00 00 00 00 00 CB [06:41:50]Write i2c OK [06:41:50]MH_I2C_Read... [06:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:41:50]Read from MH i2c: E2 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: E2 03 00 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: E2 03 00 1A 3F 00 90 00 CD [06:41:50]RAPDU: 90 00 [06:41:50]wFMCommunicate OK [06:41:50]SAM_PROTO_ClearQueue done [06:41:50]KKMCreateOFDPacket [06:41:50]OFDProtocolAddRootSTLVToBuf [06:41:50]FM_MakeSignedData [06:41:50]FM_MakeSignedData [06:41:50]SAM_PROTO_SignData [06:41:50]wFMCommunicate request_size=4 [06:41:50]MH_SAM_APDU [06:41:50]CAPDU: 80 0D 01 02 [06:41:50]Write to MH i2c: E2 08 00 1B 3F 80 0D 01 02 00 00 00 00 D3 [06:41:50]Write i2c OK [06:41:50]MH_I2C_Read... [06:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:41:50]Read from MH i2c: E2 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: E2 03 00 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: E2 03 00 1B 3F 00 90 00 CE [06:41:50]RAPDU: 90 00 [06:41:50]wFMCommunicate OK [06:41:50]wFMCommunicate request_size=255 [06:41:50]MH_SAM_APDU [06:41:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 25 00 00 00 F4 03 04 00 30 73 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7B 02 00 35 04 06 00 1E [06:41:50]Write to MH i2c: E2 02 01 1C 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 25 00 00 00 F4 03 04 00 30 73 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7B 02 00 35 04 06 00 1E 00 00 60 [06:41:50]Write i2c OK [06:41:50]MH_I2C_Read... [06:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:50]Read from MH i2c: E2 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: E2 03 00 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: E2 03 00 1C 3F 00 90 00 CF [06:41:50]RAPDU: 90 00 [06:41:50]wFMCommunicate OK [06:41:50]wFMCommunicate request_size=10 [06:41:50]MH_SAM_APDU [06:41:50]CAPDU: 80 0D 02 02 05 89 1F CB 6B 53 [06:41:50]Write to MH i2c: E2 0D 00 1D 3F 80 0D 02 02 05 00 89 1F CB 6B 53 00 00 11 [06:41:50]Write i2c OK [06:41:50]MH_I2C_Read... [06:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:50]Read from MH i2c: E2 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: E2 03 00 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: E2 03 00 1D 3F 00 90 00 D0 [06:41:50]RAPDU: 90 00 [06:41:50]wFMCommunicate OK [06:41:50]wFMCommunicate request_size=4 [06:41:50]MH_SAM_APDU [06:41:50]CAPDU: 80 0D 03 02 [06:41:50]Write to MH i2c: E2 08 00 1E 3F 80 0D 03 02 00 00 00 00 D8 [06:41:50]Write i2c OK [06:41:50]MH_I2C_Read... [06:41:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:41:50]Read from MH i2c: E2 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: E2 0B 00 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: E2 0B 00 1E 3F 00 54 A8 13 2B D8 11 2C CC 90 00 F4 [06:41:50]RAPDU: 54 A8 13 2B D8 11 2C CC 90 00 [06:41:50]wFMCommunicate OK [06:41:50]SAM_PROTO_SignData done [06:41:50]FM_MakeSignedData done [06:41:50]CreateOFDProtocolMessage [06:41:50]wFMCommunicate request_size=4 [06:41:50]MH_SAM_APDU [06:41:50]CAPDU: 80 11 00 00 [06:41:50]Write to MH i2c: E2 08 00 1F 3F 80 11 00 00 00 00 00 00 D8 [06:41:50]Write i2c OK [06:41:50]MH_I2C_Read... [06:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:50]Read from MH i2c: E2 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: E2 17 00 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: E2 17 00 1F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 38 [06:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:41:50]wFMCommunicate OK [06:41:50]CreateOFDProtocolMessage done [06:41:50]OFDSenderStorePacket 162725 [06:41:50]StoreOFDPacket docnum=162725 [06:41:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 5E E5 07 01 48 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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 25 00 00 00 F4 03 04 00 30 73 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7B 02 00 35 04 06 00 1E 89 1F CB 6B 53 54 A8 13 2B D8 11 2C CC [06:41:50]CheckFolder [06:41:50]dirname=/storage/ofd_packets [06:41:50]CheckFolder done [06:41:50]ProducePacketName [06:41:50]name=ofd_packets/00162725 [06:41:50]NVStorageSaveData ofd_packets/00162725 [06:41:50]File name is /storage/ofd_packets/00162725 [06:41:50]Write 301 bytes [06:41:50]NVStorageSaveData done [06:41:50]OFDSenderStorePacket done [06:41:50]KKMCreateOFDPacket done [06:41:50]NVStorageSaveData kkm_last_timestamp [06:41:50]File name is /storage/kkm_last_timestamp [06:41:50]Write 4 bytes [06:41:50]NVStorageSaveData done [06:41:50]ExternCall_PrintAddStr [06:41:50]wPrintStart [06:41:50]Write to MH i2c: 01 00 00 20 3F 5F [06:41:50]Write i2c OK [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: 01 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: 01 07 00 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: 01 07 00 20 3F 00 00 00 00 00 FF 0F 74 [06:41:50]RasterBufferAndPrint [06:41:50]line Счет N : (1)1319305 [06:41:50]line ИНН: 02508201610067 [06:41:50]line Контрольно-Кассовый Чек [06:41:50]line ПРОДАЖА [06:41:50]line ТРК (МРК, ГНК) : 53 [06:41:50]line Товар: 2710124130 [06:41:50]line Аи-92-К-5 [06:41:50]line 7.550 * 66.30 [06:41:50]line = 500.57 [06:41:50]line НДС 12% НСП 1% [06:41:50]line > о реализуемом товаре [06:41:50]line ОКРУГЛЕНИЕ: -0.57 [06:41:50]line ИТОГО: 500.00 [06:41:50]line Внесено: 500.00 [06:41:50]line СДАЧА: 0.00 [06:41:50]line НСП 1% : 4.43 [06:41:50]line НДС 12% : 53.16 [06:41:50]line Наличными: 500.00 [06:41:50]line Безнал.: 0.00 [06:41:50]line Место: АЗС № 140 "Партнер Нефть" [06:41:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:41:50]line СНО: Общий режим [06:41:50]line Чек 37 14.07.2024 06:41 [06:41:50]line Смена: 463 ФФД: 1.0 [06:41:50]line ЗНМ: 0300000129 [06:41:50]line РНМ: 0000000000090858 [06:41:50]line Версия ККМ: 001 [06:41:50]line ФМ: 0000000000874899 [06:41:50]line ФД: 162725 [06:41:50]line ФПД: 33574292777811 [06:41:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T064152&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162725&fm=33574292777811&tin=02508201610067®Number=0000000000090858&sum=50000 [06:41:50]written 0, free lines is 4095 [06:41:50]OFD Sender: Processing packet 162725 [packets to send 106, broken 105] [06:41:50]ProducePacketName [06:41:50]name=ofd_packets/00162725 [06:41:50]OFD Sender: To server: pG, [06:41:50]CommunicateWithHost lk.salyk.kg:30040 [06:41:50]ConnectInit lk.salyk.kg [06:41:50]Connected sock=10 [06:41:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 5E E5 07 01 48 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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 25 00 00 00 F4 03 04 00 30 73 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7B 02 00 35 04 06 00 1E 89 1F CB 6B 53 54 A8 13 2B D8 11 2C CC [06:41:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BC EF 47 00 F5 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7B 02 00 F4 03 04 00 3D 1F 93 66 B6 04 01 00 00 A4 73 74 F5 C7 8D 3E 09 [06:41:51]CommunicateWithHost err = 0 [06:41:51]CheckOFDResponse [06:41:51]1017 (14) - 77093643461234 [06:41:51]1041 (16) - 0000000000874899 [06:41:51]1040 (4) - 162725 [06:41:51]1012 (4) - 14.07.2024 00:43 [06:41:51]1206 (1) - 0 [06:41:51]OFD Sender: Remove packet 162725 [06:41:51]ProducePacketName [06:41:51]name=ofd_packets/00162725 [06:41:51]NVStorageDeleteData [06:41:51]Write to MH i2c: 01 00 00 4B 3F 8A [06:41:51]Write i2c OK [06:41:51]MH_I2C_Read... [06:41:51]Read from MH i2c: 01 [06:41:51]MH_I2C_Read... [06:41:51]Read from MH i2c: 01 07 00 [06:41:51]MH_I2C_Read... [06:41:51]Read from MH i2c: 01 07 00 4B 3F 00 00 00 00 00 D6 0C 73 [06:41:51]RasterBufferAndPrint [06:41:51]line [06:41:51]line [06:41:51]line [06:41:51]line [06:41:51]line [06:41:51]written 0, free lines is 3294 [06:41:51]MH_Cut [06:41:51]Write to MH i2c: D1 01 00 52 3F 01 63 [06:41:51]Write i2c OK [06:41:51]MH_I2C_Read... [06:41:51]Read from MH i2c: D1 [06:41:51]MH_I2C_Read... [06:41:51]Read from MH i2c: D1 01 00 [06:41:51]MH_I2C_Read... [06:41:51]Read from MH i2c: D1 01 00 52 3F 00 62 [06:41:51]Write to MH i2c: 01 00 00 53 3F 92 [06:41:51]Write i2c OK [06:41:51]MH_I2C_Read... [06:41:51]OFD Sender: No OFD packet to send [06:41:51]*** Cut start [06:41:51]*** Purtial cut [06:41:51]*** CUTSNS_PIN = 0 [06:41:52]*** Stage 1: CUTSNS_PIN = 1 [06:41:53]Read from MH i2c: 01 [06:41:53]MH_I2C_Read... [06:41:53]*** Stop cut motor [06:41:53]*** Cut end [06:41:53]Read from MH i2c: 01 07 00 [06:41:53]MH_I2C_Read... [06:41:53]Read from MH i2c: 01 07 00 53 3F 00 00 00 00 00 FF 0F A7 [06:41:53]process_action close_receipt done [06:41:53]requested_data is exist [06:41:53]produce_requested_data [06:41:53]requested_item fm.sn is exist - process it [06:41:53]wFMCommunicate request_size=4 [06:41:53]MH_SAM_APDU [06:41:53]CAPDU: 80 11 00 00 [06:41:53]Write to MH i2c: E2 08 00 54 3F 80 11 00 00 00 00 00 00 0D [06:41:53]Write i2c OK [06:41:53]MH_I2C_Read... [06:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:54]Read from MH i2c: E2 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 17 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 17 00 54 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6D [06:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:41:54]wFMCommunicate OK [06:41:54]requested_item fd.num is exist - process it [06:41:54]SAM_PROTO_GetFieldsCounters [06:41:54]wFMCommunicate request_size=4 [06:41:54]MH_SAM_APDU [06:41:54]CAPDU: 80 13 00 00 [06:41:54]Write to MH i2c: E2 08 00 55 3F 80 13 00 00 00 00 00 00 10 [06:41:54]Write i2c OK [06:41:54]MH_I2C_Read... [06:41:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:54]Read from MH i2c: E2 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 62 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 62 00 55 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A5 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [06:41:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A5 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:41:54]wFMCommunicate OK [06:41:54]SAM_PROTO_GetFieldsCounters done [06:41:54]requested_item shift.num is exist - process it [06:41:54]requested_item shift.opened is exist - process it [06:41:54]req_shift_opened [06:41:54]FM_GetShiftState [06:41:54]SAM_PROTO_GetShiftState [06:41:54]wFMCommunicate request_size=4 [06:41:54]MH_SAM_APDU [06:41:54]CAPDU: 80 13 01 00 [06:41:54]Write to MH i2c: E2 08 00 56 3F 80 13 01 00 00 00 00 00 12 [06:41:54]Write i2c OK [06:41:54]MH_I2C_Read... [06:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:54]Read from MH i2c: E2 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 0E 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 0E 00 56 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 48 [06:41:54]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [06:41:54]wFMCommunicate OK [06:41:54]SAM_PROTO_GetShiftState done [06:41:54]FM_GetShiftState done [06:41:54]req_shift_opened done [06:41:54]requested_item shift.open_date is exist - process it [06:41:54]req_shift_open_date [06:41:54]req_shift_open_date done [06:41:54]produce_requested_data done [06:41:54]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162725,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [06:41:54]process_action_free close_receipt [06:41:54]json_value_free [06:41:54]json_value_free done [06:41:54]process_json_proto returns [06:41:54]Send response to host [06:41:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162725,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [06:41:54]free response buf [06:41:54]execute_script done [06:41:54]execute_script returns [06:41:54]free content buf [06:41:54]Sock 7.Close socket [06:41:54]Sock 7.Thread stoped [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:19]accept exits with 9 [06:42:19]New connection [06:42:19]New thread 3067510116 created [06:42:19]Thread 3067366756 joined [06:42:19]Waiting for new connection... [06:42:19] Sock 9.Parse request [06:42:19]Sock 9.Check first char [06:42:19]Sock 9.First char is OK [06:42:19]request: POST /json_proto HTTP/1.0 [06:42:19]Method: POST [06:42:19]URL: /json_proto [06:42:19]Method is POST - this is cgi request [06:42:19]url: /json_proto [06:42:19]query_string will be loaded in cgi processing [06:42:19]execute_cgi json_proto POST (null) [06:42:19]execute_cgi path=json_proto method=POST [06:42:19]POST find Content-Length [06:42:19]Host: 172.17.39.67:8080 [06:42:19]Content-Length: 688 [06:42:19]Content-Type: application/json [06:42:19] [06:42:19]POST finish read [06:42:19]Found Content-Length = 688 [06:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:42:19]execute_script... [06:42:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:42:19]POST & json_proto [06:42:19]process_json_proto [06:42:19]json parsed OK: [06:42:19]protocol is kg_v1.0 [06:42:19]action value=close_receipt [06:42:19]process_action close_receipt [06:42:19]cmd_close_receipt [06:42:19]MH_GetDate [06:42:19]Write to MH i2c: F0 00 00 57 3F 85 [06:42:19]Write i2c OK [06:42:19]MH_I2C_Read... [06:42:19]Read from MH i2c: F0 [06:42:19]MH_I2C_Read... [06:42:19]Read from MH i2c: F0 09 00 [06:42:19]MH_I2C_Read... [06:42:19]Read from MH i2c: F0 09 00 57 3F 00 4F 73 93 66 86 7C 92 66 43 [06:42:19]GetLastDocTimeStamp 1720939312 [06:42:19]current date 1720939343 [06:42:19]FM_GetShiftState [06:42:19]SAM_PROTO_GetShiftState [06:42:19]wFMCommunicate request_size=4 [06:42:19]MH_SAM_APDU [06:42:19]CAPDU: 80 13 01 00 [06:42:19]Write to MH i2c: E2 08 00 58 3F 80 13 01 00 00 00 00 00 14 [06:42:19]Write i2c OK [06:42:19]MH_I2C_Read... [06:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:19]Read from MH i2c: E2 [06:42:19]MH_I2C_Read... [06:42:19]Read from MH i2c: E2 0E 00 [06:42:19]MH_I2C_Read... [06:42:19]Read from MH i2c: E2 0E 00 58 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4A [06:42:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [06:42:19]wFMCommunicate OK [06:42:19]SAM_PROTO_GetShiftState done [06:42:19]FM_GetShiftState done [06:42:19]opened in 1720915483 [06:42:19]opened+sec_in_day 1721001883 [06:42:19]quantity*price = 100042 [06:42:19]sum+1 = 100044 [06:42:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 38 14.07.2024 06:42 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162726 ФПД: 214729054830325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T064223&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162726&fm=214729054830325&tin=02508201610067®Number=0000000000090858&sum=100000 [06:42:20]StoreToDocumentArchive [06:42:20]shift 463 fd 162726 [06:42:20]save to /storage/0463/doc_00162726 [06:42:20]save last doc name /storage/0463/doc_00162726 to /storage/kkm_last_doc_name [06:42:20]save OK [06:42:20]Clear old archive folders... [06:42:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:42:20]tlvbuf is 006420D0 [06:42:20]SAM_PROTO_ClearQueue [06:42:20]wFMCommunicate request_size=4 [06:42:20]MH_SAM_APDU [06:42:20]CAPDU: 80 09 00 00 [06:42:20]Write to MH i2c: E2 08 00 65 3F 80 09 00 00 00 00 00 00 16 [06:42:20]Write i2c OK [06:42:20]MH_I2C_Read... [06:42:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:42:20]Read from MH i2c: E2 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: E2 03 00 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: E2 03 00 65 3F 00 90 00 18 [06:42:20]RAPDU: 90 00 [06:42:20]wFMCommunicate OK [06:42:20]SAM_PROTO_ClearQueue done [06:42:20]KKMCreateOFDPacket [06:42:20]OFDProtocolAddRootSTLVToBuf [06:42:20]FM_MakeSignedData [06:42:20]FM_MakeSignedData [06:42:20]SAM_PROTO_SignData [06:42:20]wFMCommunicate request_size=4 [06:42:20]MH_SAM_APDU [06:42:20]CAPDU: 80 0D 01 02 [06:42:20]Write to MH i2c: E2 08 00 66 3F 80 0D 01 02 00 00 00 00 1E [06:42:20]Write i2c OK [06:42:20]MH_I2C_Read... [06:42:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:42:20]Read from MH i2c: E2 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: E2 03 00 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: E2 03 00 66 3F 00 90 00 19 [06:42:20]RAPDU: 90 00 [06:42:20]wFMCommunicate OK [06:42:20]wFMCommunicate request_size=255 [06:42:20]MH_SAM_APDU [06:42:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 4F 73 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7B 02 00 35 04 06 00 [06:42:20]Write to MH i2c: E2 02 01 67 3F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 4F 73 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7B 02 00 35 04 06 00 00 00 8B [06:42:20]Write i2c OK [06:42:20]MH_I2C_Read... [06:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:20]Read from MH i2c: E2 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: E2 03 00 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: E2 03 00 67 3F 00 90 00 1A [06:42:20]RAPDU: 90 00 [06:42:20]wFMCommunicate OK [06:42:20]wFMCommunicate request_size=11 [06:42:20]MH_SAM_APDU [06:42:20]CAPDU: 80 0D 02 02 06 C3 4B 81 09 3E F5 [06:42:20]Write to MH i2c: E2 0E 00 68 3F 80 0D 02 02 06 00 C3 4B 81 09 3E F5 00 00 F8 [06:42:20]Write i2c OK [06:42:20]MH_I2C_Read... [06:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:20]Read from MH i2c: E2 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: E2 03 00 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: E2 03 00 68 3F 00 90 00 1B [06:42:20]RAPDU: 90 00 [06:42:20]wFMCommunicate OK [06:42:20]wFMCommunicate request_size=4 [06:42:20]MH_SAM_APDU [06:42:20]CAPDU: 80 0D 03 02 [06:42:20]Write to MH i2c: E2 08 00 69 3F 80 0D 03 02 00 00 00 00 23 [06:42:20]Write i2c OK [06:42:20]MH_I2C_Read... [06:42:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:42:20]Read from MH i2c: E2 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: E2 0B 00 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: E2 0B 00 69 3F 00 32 27 1D 99 EC B8 FA 25 90 00 F6 [06:42:20]RAPDU: 32 27 1D 99 EC B8 FA 25 90 00 [06:42:20]wFMCommunicate OK [06:42:20]SAM_PROTO_SignData done [06:42:20]FM_MakeSignedData done [06:42:20]CreateOFDProtocolMessage [06:42:20]wFMCommunicate request_size=4 [06:42:20]MH_SAM_APDU [06:42:20]CAPDU: 80 11 00 00 [06:42:20]Write to MH i2c: E2 08 00 6A 3F 80 11 00 00 00 00 00 00 23 [06:42:20]Write i2c OK [06:42:20]MH_I2C_Read... [06:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:20]Read from MH i2c: E2 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: E2 17 00 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: E2 17 00 6A 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 83 [06:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:42:20]wFMCommunicate OK [06:42:20]CreateOFDProtocolMessage done [06:42:20]OFDSenderStorePacket 162726 [06:42:20]StoreOFDPacket docnum=162726 [06:42:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D2 83 08 01 B8 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 4F 73 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7B 02 00 35 04 06 00 C3 4B 81 09 3E F5 32 27 1D 99 EC B8 FA 25 [06:42:20]CheckFolder [06:42:20]dirname=/storage/ofd_packets [06:42:20]CheckFolder done [06:42:20]ProducePacketName [06:42:20]name=ofd_packets/00162726 [06:42:20]NVStorageSaveData ofd_packets/00162726 [06:42:20]File name is /storage/ofd_packets/00162726 [06:42:20]Write 302 bytes [06:42:20]NVStorageSaveData done [06:42:20]OFDSenderStorePacket done [06:42:20]KKMCreateOFDPacket done [06:42:20]NVStorageSaveData kkm_last_timestamp [06:42:20]File name is /storage/kkm_last_timestamp [06:42:20]Write 4 bytes [06:42:20]NVStorageSaveData done [06:42:20]ExternCall_PrintAddStr [06:42:20]wPrintStart [06:42:20]Write to MH i2c: 01 00 00 6B 3F AA [06:42:20]Write i2c OK [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: 01 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: 01 07 00 [06:42:20]MH_I2C_Read... [06:42:20]Read from MH i2c: 01 07 00 6B 3F 00 00 00 00 00 FF 0F BF [06:42:20]RasterBufferAndPrint [06:42:20]line Счет N : (1)1319306 [06:42:20]line ИНН: 02508201610067 [06:42:20]line Контрольно-Кассовый Чек [06:42:20]line ПРОДАЖА [06:42:20]line ТРК (МРК, ГНК) : 11 [06:42:20]line Товар: 2710194210 [06:42:20]line ДТ(л)-К-5 [06:42:20]line 13.780 * 72.60 [06:42:20]line = 1000.43 [06:42:20]line НДС 12% НСП 1% [06:42:20]line > о реализуемом товаре [06:42:20]line ОКРУГЛЕНИЕ: -0.43 [06:42:20]line ИТОГО: 1000.00 [06:42:20]line Внесено: 1000.00 [06:42:20]line СДАЧА: 0.00 [06:42:20]line НСП 1% : 8.85 [06:42:20]line НДС 12% : 106.24 [06:42:20]line Наличными: 1000.00 [06:42:20]line Безнал.: 0.00 [06:42:20]line Место: АЗС № 140 "Партнер Нефть" [06:42:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:42:20]line СНО: Общий режим [06:42:20]line Чек 38 14.07.2024 06:42 [06:42:20]line Смена: 463 ФФД: 1.0 [06:42:20]line ЗНМ: 0300000129 [06:42:20]line РНМ: 0000000000090858 [06:42:20]line Версия ККМ: 001 [06:42:20]line ФМ: 0000000000874899 [06:42:20]line ФД: 162726 [06:42:20]line ФПД: 214729054830325 [06:42:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T064223&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162726&fm=214729054830325&tin=02508201610067®Number=0000000000090858&sum=100000 [06:42:21]OFD Sender: Processing packet 162726 [packets to send 106, broken 105] [06:42:21]ProducePacketName [06:42:21]name=ofd_packets/00162726 [06:42:21]OFD Sender: To server: pG, [06:42:21]CommunicateWithHost lk.salyk.kg:30040 [06:42:21]ConnectInit lk.salyk.kg [06:42:21]written 0, free lines is 4095 [06:42:21]Connected sock=10 [06:42:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D2 83 08 01 B8 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 4F 73 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7B 02 00 35 04 06 00 C3 4B 81 09 3E F5 32 27 1D 99 EC B8 FA 25 [06:42:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FB 38 47 00 80 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7B 02 00 F4 03 04 00 5C 1F 93 66 B6 04 01 00 00 61 12 86 3E 17 8C CD A0 [06:42:21]CommunicateWithHost err = 0 [06:42:21]CheckOFDResponse [06:42:21]1017 (14) - 77093643461234 [06:42:21]1041 (16) - 0000000000874899 [06:42:21]1040 (4) - 162726 [06:42:21]1012 (4) - 14.07.2024 00:44 [06:42:21]1206 (1) - 0 [06:42:21]OFD Sender: Remove packet 162726 [06:42:21]ProducePacketName [06:42:21]name=ofd_packets/00162726 [06:42:21]NVStorageDeleteData [06:42:21]Write to MH i2c: 01 00 00 96 3F D5 [06:42:21]Write i2c OK [06:42:21]MH_I2C_Read... [06:42:21]Read from MH i2c: 01 [06:42:21]MH_I2C_Read... [06:42:21]Read from MH i2c: 01 07 00 [06:42:21]MH_I2C_Read... [06:42:21]Read from MH i2c: 01 07 00 96 3F 00 00 00 00 00 CE 0C B6 [06:42:21]RasterBufferAndPrint [06:42:21]line [06:42:21]line [06:42:21]line [06:42:21]line [06:42:21]line [06:42:21]written 0, free lines is 3285 [06:42:21]MH_Cut [06:42:21]Write to MH i2c: D1 01 00 9D 3F 01 AE [06:42:21]Write i2c OK [06:42:21]MH_I2C_Read... [06:42:21]Read from MH i2c: D1 [06:42:21]MH_I2C_Read... [06:42:21]Read from MH i2c: D1 01 00 [06:42:21]MH_I2C_Read... [06:42:21]Read from MH i2c: D1 01 00 9D 3F 00 AD [06:42:21]Write to MH i2c: 01 00 00 9E 3F DD [06:42:21]Write i2c OK [06:42:21]MH_I2C_Read... [06:42:22]OFD Sender: No OFD packet to send [06:42:22]*** Cut start [06:42:22]*** Purtial cut [06:42:22]*** Stage 1: CUTSNS_PIN = 1 [06:42:22]Read from MH i2c: 01 [06:42:22]MH_I2C_Read... [06:42:22]*** Stop cut motor [06:42:22]*** Cut end [06:42:22]Read from MH i2c: 01 07 00 [06:42:22]MH_I2C_Read... [06:42:22]Read from MH i2c: 01 07 00 9E 3F 00 00 00 00 00 FF 0F F2 [06:42:22]process_action close_receipt done [06:42:22]requested_data is exist [06:42:22]produce_requested_data [06:42:22]requested_item fm.sn is exist - process it [06:42:22]wFMCommunicate request_size=4 [06:42:22]MH_SAM_APDU [06:42:22]CAPDU: 80 11 00 00 [06:42:22]Write to MH i2c: E2 08 00 9F 3F 80 11 00 00 00 00 00 00 58 [06:42:22]Write i2c OK [06:42:22]MH_I2C_Read... [06:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:22]Read from MH i2c: E2 [06:42:22]MH_I2C_Read... [06:42:22]Read from MH i2c: E2 17 00 [06:42:22]MH_I2C_Read... [06:42:22]Read from MH i2c: E2 17 00 9F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B8 [06:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:42:22]wFMCommunicate OK [06:42:22]requested_item fd.num is exist - process it [06:42:22]SAM_PROTO_GetFieldsCounters [06:42:22]wFMCommunicate request_size=4 [06:42:22]MH_SAM_APDU [06:42:22]CAPDU: 80 13 00 00 [06:42:22]Write to MH i2c: E2 08 00 A0 3F 80 13 00 00 00 00 00 00 5B [06:42:22]Write i2c OK [06:42:22]MH_I2C_Read... [06:42:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:42:22]Read from MH i2c: E2 [06:42:22]MH_I2C_Read... [06:42:22]Read from MH i2c: E2 62 00 [06:42:22]MH_I2C_Read... [06:42:22]Read from MH i2c: E2 62 00 A0 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A6 7B 02 00 0E 04 04 00 CF 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 F3 [06:42:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A6 7B 02 00 0E 04 04 00 CF 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 [06:42:22]wFMCommunicate OK [06:42:22]SAM_PROTO_GetFieldsCounters done [06:42:22]requested_item shift.num is exist - process it [06:42:22]requested_item shift.opened is exist - process it [06:42:22]req_shift_opened [06:42:22]FM_GetShiftState [06:42:22]SAM_PROTO_GetShiftState [06:42:22]wFMCommunicate request_size=4 [06:42:22]MH_SAM_APDU [06:42:22]CAPDU: 80 13 01 00 [06:42:22]Write to MH i2c: E2 08 00 A1 3F 80 13 01 00 00 00 00 00 5D [06:42:22]Write i2c OK [06:42:22]MH_I2C_Read... [06:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:23]Read from MH i2c: E2 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: E2 0E 00 [06:42:23]MH_I2C_Read... [06:42:23]Read from MH i2c: E2 0E 00 A1 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 93 [06:42:23]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [06:42:23]wFMCommunicate OK [06:42:23]SAM_PROTO_GetShiftState done [06:42:23]FM_GetShiftState done [06:42:23]req_shift_opened done [06:42:23]requested_item shift.open_date is exist - process it [06:42:23]req_shift_open_date [06:42:23]req_shift_open_date done [06:42:23]produce_requested_data done [06:42:23]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162726,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [06:42:23]process_action_free close_receipt [06:42:23]json_value_free [06:42:23]json_value_free done [06:42:23]process_json_proto returns [06:42:23]Send response to host [06:42:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162726,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [06:42:23]free response buf [06:42:23]execute_script done [06:42:23]execute_script returns [06:42:23]free content buf [06:42:23]Sock 9.Close socket [06:42:23]Sock 9.Thread stoped [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:28]accept exits with 7 [06:57:28]New connection [06:57:28]New thread 3067366756 created [06:57:28]Thread 3067510116 joined [06:57:28]Waiting for new connection... [06:57:28] Sock 7.Parse request [06:57:28]Sock 7.Check first char [06:57:28]Sock 7.First char is OK [06:57:28]request: POST /json_proto HTTP/1.0 [06:57:28]Method: POST [06:57:28]URL: /json_proto [06:57:28]Method is POST - this is cgi request [06:57:28]url: /json_proto [06:57:28]query_string will be loaded in cgi processing [06:57:28]execute_cgi json_proto POST (null) [06:57:28]execute_cgi path=json_proto method=POST [06:57:28]POST find Content-Length [06:57:28]Host: 172.17.39.67:8080 [06:57:28]Content-Length: 678 [06:57:28]Content-Type: application/json [06:57:28] [06:57:28]POST finish read [06:57:28]Found Content-Length = 678 [06:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.030, "sum" : 333.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 333.00, "total" : 333.00, "payments": [ { "type": 0, "sum" : 333.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:28]execute_script... [06:57:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.030, "sum" : 333.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 333.00, "total" : 333.00, "payments": [ { "type": 0, "sum" : 333.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:28]POST & json_proto [06:57:28]process_json_proto [06:57:28]json parsed OK: [06:57:28]protocol is kg_v1.0 [06:57:28]action value=close_receipt [06:57:28]process_action close_receipt [06:57:28]cmd_close_receipt [06:57:28]MH_GetDate [06:57:28]Write to MH i2c: F0 00 00 A2 3F D0 [06:57:28]Write i2c OK [06:57:28]MH_I2C_Read... [06:57:28]Read from MH i2c: F0 [06:57:28]MH_I2C_Read... [06:57:28]Read from MH i2c: F0 09 00 [06:57:28]MH_I2C_Read... [06:57:28]Read from MH i2c: F0 09 00 A2 3F 00 DC 76 93 66 86 7C 92 66 1E [06:57:28]GetLastDocTimeStamp 1720939343 [06:57:28]current date 1720940252 [06:57:28]FM_GetShiftState [06:57:28]SAM_PROTO_GetShiftState [06:57:28]wFMCommunicate request_size=4 [06:57:28]MH_SAM_APDU [06:57:28]CAPDU: 80 13 01 00 [06:57:28]Write to MH i2c: E2 08 00 A3 3F 80 13 01 00 00 00 00 00 5F [06:57:28]Write i2c OK [06:57:28]MH_I2C_Read... [06:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:28]Read from MH i2c: E2 [06:57:28]MH_I2C_Read... [06:57:28]Read from MH i2c: E2 0E 00 [06:57:28]MH_I2C_Read... [06:57:28]Read from MH i2c: E2 0E 00 A3 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 95 [06:57:28]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [06:57:28]wFMCommunicate OK [06:57:28]SAM_PROTO_GetShiftState done [06:57:28]FM_GetShiftState done [06:57:28]opened in 1720915483 [06:57:28]opened+sec_in_day 1721001883 [06:57:28]quantity*price = 33348 [06:57:28]sum+1 = 33350 [06:57:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 333.00 Внесено: 333.00 СДАЧА: 0.00 НСП 1% : 2.95 НДС 12% : 35.41 Наличными: 333.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 39 14.07.2024 06:57 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162727 ФПД: 167763144120871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T065732&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162727&fm=167763144120871&tin=02508201610067®Number=0000000000090858&sum=33300 [06:57:30]StoreToDocumentArchive [06:57:30]shift 463 fd 162727 [06:57:30]save to /storage/0463/doc_00162727 [06:57:30]save last doc name /storage/0463/doc_00162727 to /storage/kkm_last_doc_name [06:57:30]save OK [06:57:30]Clear old archive folders... [06:57:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:57:30]tlvbuf is 00638140 [06:57:30]SAM_PROTO_ClearQueue [06:57:30]wFMCommunicate request_size=4 [06:57:30]MH_SAM_APDU [06:57:30]CAPDU: 80 09 00 00 [06:57:30]Write to MH i2c: E2 08 00 B0 3F 80 09 00 00 00 00 00 00 61 [06:57:30]Write i2c OK [06:57:30]MH_I2C_Read... [06:57:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:57:30]Read from MH i2c: E2 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 03 00 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 03 00 B0 3F 00 90 00 63 [06:57:30]RAPDU: 90 00 [06:57:30]wFMCommunicate OK [06:57:30]SAM_PROTO_ClearQueue done [06:57:30]KKMCreateOFDPacket [06:57:30]OFDProtocolAddRootSTLVToBuf [06:57:30]FM_MakeSignedData [06:57:30]FM_MakeSignedData [06:57:30]SAM_PROTO_SignData [06:57:30]wFMCommunicate request_size=4 [06:57:30]MH_SAM_APDU [06:57:30]CAPDU: 80 0D 01 02 [06:57:30]Write to MH i2c: E2 08 00 B1 3F 80 0D 01 02 00 00 00 00 69 [06:57:30]Write i2c OK [06:57:30]MH_I2C_Read... [06:57:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:57:30]Read from MH i2c: E2 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 03 00 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 03 00 B1 3F 00 90 00 64 [06:57:30]RAPDU: 90 00 [06:57:30]wFMCommunicate OK [06:57:30]wFMCommunicate request_size=255 [06:57:30]MH_SAM_APDU [06:57:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 45 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 0D 00 00 00 00 07 04 06 00 14 82 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 DC 76 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7B 02 00 35 04 06 00 98 [06:57:30]Write to MH i2c: E2 02 01 B2 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 45 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 0D 00 00 00 00 07 04 06 00 14 82 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 DC 76 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7B 02 00 35 04 06 00 98 00 00 38 [06:57:30]Write i2c OK [06:57:30]MH_I2C_Read... [06:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:30]Read from MH i2c: E2 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 03 00 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 03 00 B2 3F 00 90 00 65 [06:57:30]RAPDU: 90 00 [06:57:30]wFMCommunicate OK [06:57:30]wFMCommunicate request_size=10 [06:57:30]MH_SAM_APDU [06:57:30]CAPDU: 80 0D 02 02 05 94 66 9C 9A 27 [06:57:30]Write to MH i2c: E2 0D 00 B3 3F 80 0D 02 02 05 00 94 66 9C 9A 27 00 00 CD [06:57:30]Write i2c OK [06:57:30]MH_I2C_Read... [06:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:30]Read from MH i2c: E2 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 03 00 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 03 00 B3 3F 00 90 00 66 [06:57:30]RAPDU: 90 00 [06:57:30]wFMCommunicate OK [06:57:30]wFMCommunicate request_size=4 [06:57:30]MH_SAM_APDU [06:57:30]CAPDU: 80 0D 03 02 [06:57:30]Write to MH i2c: E2 08 00 B4 3F 80 0D 03 02 00 00 00 00 6E [06:57:30]Write i2c OK [06:57:30]MH_I2C_Read... [06:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:57:30]Read from MH i2c: E2 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 0B 00 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 0B 00 B4 3F 00 E8 88 DD DE 23 C2 05 A9 90 00 2D [06:57:30]RAPDU: E8 88 DD DE 23 C2 05 A9 90 00 [06:57:30]wFMCommunicate OK [06:57:30]SAM_PROTO_SignData done [06:57:30]FM_MakeSignedData done [06:57:30]CreateOFDProtocolMessage [06:57:30]wFMCommunicate request_size=4 [06:57:30]MH_SAM_APDU [06:57:30]CAPDU: 80 11 00 00 [06:57:30]Write to MH i2c: E2 08 00 B5 3F 80 11 00 00 00 00 00 00 6E [06:57:30]Write i2c OK [06:57:30]MH_I2C_Read... [06:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:30]Read from MH i2c: E2 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 17 00 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 17 00 B5 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CE [06:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:57:30]wFMCommunicate OK [06:57:30]CreateOFDProtocolMessage done [06:57:30]OFDSenderStorePacket 162727 [06:57:30]StoreOFDPacket docnum=162727 [06:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BD 71 07 01 38 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 45 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 0D 00 00 00 00 07 04 06 00 14 82 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 DC 76 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7B 02 00 35 04 06 00 98 94 66 9C 9A 27 E8 88 DD DE 23 C2 05 A9 [06:57:30]CheckFolder [06:57:30]dirname=/storage/ofd_packets [06:57:30]CheckFolder done [06:57:30]ProducePacketName [06:57:30]name=ofd_packets/00162727 [06:57:30]NVStorageSaveData ofd_packets/00162727 [06:57:30]File name is /storage/ofd_packets/00162727 [06:57:30]Write 301 bytes [06:57:30]NVStorageSaveData done [06:57:30]OFDSenderStorePacket done [06:57:30]KKMCreateOFDPacket done [06:57:30]NVStorageSaveData kkm_last_timestamp [06:57:30]File name is /storage/kkm_last_timestamp [06:57:30]Write 4 bytes [06:57:30]NVStorageSaveData done [06:57:30]ExternCall_PrintAddStr [06:57:30]wPrintStart [06:57:30]Write to MH i2c: 01 00 00 B6 3F F5 [06:57:30]Write i2c OK [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: 01 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: 01 07 00 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: 01 07 00 B6 3F 00 00 00 00 00 FF 0F 0A [06:57:30]RasterBufferAndPrint [06:57:30]line Счет N : (1)1319307 [06:57:30]line ИНН: 02508201610067 [06:57:30]line Контрольно-Кассовый Чек [06:57:30]line ПРОДАЖА [06:57:30]line ТРК (МРК, ГНК) : 63 [06:57:30]line Товар: 2710124130 [06:57:30]line Аи-92-К-5 [06:57:30]line 5.030 * 66.30 [06:57:30]line = 333.49 [06:57:30]line НДС 12% НСП 1% [06:57:30]line > о реализуемом товаре [06:57:30]line ОКРУГЛЕНИЕ: -0.49 [06:57:30]line ИТОГО: 333.00 [06:57:30]line Внесено: 333.00 [06:57:30]line СДАЧА: 0.00 [06:57:30]line НСП 1% : 2.95 [06:57:30]line НДС 12% : 35.41 [06:57:30]line Наличными: 333.00 [06:57:30]line Безнал.: 0.00 [06:57:30]line Место: АЗС № 140 "Партнер Нефть" [06:57:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:57:30]line СНО: Общий режим [06:57:30]line Чек 39 14.07.2024 06:57 [06:57:30]line Смена: 463 ФФД: 1.0 [06:57:30]line ЗНМ: 0300000129 [06:57:30]line РНМ: 0000000000090858 [06:57:30]line Версия ККМ: 001 [06:57:30]line ФМ: 0000000000874899 [06:57:30]line ФД: 162727 [06:57:30]line ФПД: 167763144120871 [06:57:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T065732&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162727&fm=167763144120871&tin=02508201610067®Number=0000000000090858&sum=33300 [06:57:30]OFD Sender: Processing packet 162727 [packets to send 106, broken 105] [06:57:30]ProducePacketName [06:57:30]name=ofd_packets/00162727 [06:57:30]OFD Sender: To server: pG, [06:57:30]CommunicateWithHost lk.salyk.kg:30040 [06:57:30]ConnectInit lk.salyk.kg [06:57:30]written 0, free lines is 4095 [06:57:30]Connected sock=10 [06:57:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BD 71 07 01 38 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 45 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 0D 00 00 00 00 07 04 06 00 14 82 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 DC 76 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7B 02 00 35 04 06 00 98 94 66 9C 9A 27 E8 88 DD DE 23 C2 05 A9 [06:57:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 18 14 47 00 E3 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7B 02 00 F4 03 04 00 E9 22 93 66 B6 04 01 00 00 3E A4 BB 74 6F 5D 06 12 [06:57:31]CommunicateWithHost err = 0 [06:57:31]CheckOFDResponse [06:57:31]1017 (14) - 77093643461234 [06:57:31]1041 (16) - 0000000000874899 [06:57:31]1040 (4) - 162727 [06:57:31]1012 (4) - 14.07.2024 00:59 [06:57:31]1206 (1) - 0 [06:57:31]OFD Sender: Remove packet 162727 [06:57:31]ProducePacketName [06:57:31]name=ofd_packets/00162727 [06:57:31]NVStorageDeleteData [06:57:31]Write to MH i2c: 01 00 00 E1 3F 20 [06:57:31]Write i2c OK [06:57:31]MH_I2C_Read... [06:57:31]Read from MH i2c: 01 [06:57:31]MH_I2C_Read... [06:57:31]Read from MH i2c: 01 07 00 [06:57:31]MH_I2C_Read... [06:57:31]Read from MH i2c: 01 07 00 E1 3F 00 00 00 00 00 CB 0C FE [06:57:31]RasterBufferAndPrint [06:57:31]line [06:57:31]line [06:57:31]line [06:57:31]line [06:57:31]line [06:57:31]written 0, free lines is 3281 [06:57:31]MH_Cut [06:57:31]Write to MH i2c: D1 01 00 E8 3F 01 F9 [06:57:31]Write i2c OK [06:57:31]MH_I2C_Read... [06:57:31]Read from MH i2c: D1 [06:57:31]MH_I2C_Read... [06:57:31]Read from MH i2c: D1 01 00 [06:57:31]MH_I2C_Read... [06:57:31]Read from MH i2c: D1 01 00 E8 3F 00 F8 [06:57:31]Write to MH i2c: 01 00 00 E9 3F 28 [06:57:31]Write i2c OK [06:57:31]MH_I2C_Read... [06:57:31]OFD Sender: No OFD packet to send [06:57:32]*** Cut start [06:57:32]*** Purtial cut [06:57:32]*** CUTSNS_PIN = 0 [06:57:32]*** Stage 1: CUTSNS_PIN = 1 [06:57:34]Read from MH i2c: 01 [06:57:34]MH_I2C_Read... [06:57:34]*** Stop cut motor [06:57:34]*** Cut end [06:57:34]Read from MH i2c: 01 07 00 [06:57:34]MH_I2C_Read... [06:57:34]Read from MH i2c: 01 07 00 E9 3F 00 00 00 00 00 FF 0F 3D [06:57:34]process_action close_receipt done [06:57:34]requested_data is exist [06:57:34]produce_requested_data [06:57:34]requested_item fm.sn is exist - process it [06:57:34]wFMCommunicate request_size=4 [06:57:34]MH_SAM_APDU [06:57:34]CAPDU: 80 11 00 00 [06:57:34]Write to MH i2c: E2 08 00 EA 3F 80 11 00 00 00 00 00 00 A3 [06:57:34]Write i2c OK [06:57:34]MH_I2C_Read... [06:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:34]Read from MH i2c: E2 [06:57:34]MH_I2C_Read... [06:57:34]Read from MH i2c: E2 17 00 [06:57:34]MH_I2C_Read... [06:57:34]Read from MH i2c: E2 17 00 EA 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 03 [06:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:57:34]wFMCommunicate OK [06:57:34]requested_item fd.num is exist - process it [06:57:34]SAM_PROTO_GetFieldsCounters [06:57:34]wFMCommunicate request_size=4 [06:57:34]MH_SAM_APDU [06:57:34]CAPDU: 80 13 00 00 [06:57:34]Write to MH i2c: E2 08 00 EB 3F 80 13 00 00 00 00 00 00 A6 [06:57:34]Write i2c OK [06:57:34]MH_I2C_Read... [06:57:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:34]Read from MH i2c: E2 [06:57:34]MH_I2C_Read... [06:57:34]Read from MH i2c: E2 62 00 [06:57:34]MH_I2C_Read... [06:57:34]Read from MH i2c: E2 62 00 EB 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A7 7B 02 00 0E 04 04 00 CF 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 42 [06:57:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A7 7B 02 00 0E 04 04 00 CF 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 [06:57:34]wFMCommunicate OK [06:57:34]SAM_PROTO_GetFieldsCounters done [06:57:34]requested_item shift.num is exist - process it [06:57:34]requested_item shift.opened is exist - process it [06:57:34]req_shift_opened [06:57:34]FM_GetShiftState [06:57:34]SAM_PROTO_GetShiftState [06:57:34]wFMCommunicate request_size=4 [06:57:34]MH_SAM_APDU [06:57:34]CAPDU: 80 13 01 00 [06:57:34]Write to MH i2c: E2 08 00 EC 3F 80 13 01 00 00 00 00 00 A8 [06:57:34]Write i2c OK [06:57:34]MH_I2C_Read... [06:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:34]Read from MH i2c: E2 [06:57:34]MH_I2C_Read... [06:57:34]Read from MH i2c: E2 0E 00 [06:57:34]MH_I2C_Read... [06:57:34]Read from MH i2c: E2 0E 00 EC 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 DE [06:57:34]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [06:57:34]wFMCommunicate OK [06:57:34]SAM_PROTO_GetShiftState done [06:57:34]FM_GetShiftState done [06:57:34]req_shift_opened done [06:57:34]requested_item shift.open_date is exist - process it [06:57:34]req_shift_open_date [06:57:34]req_shift_open_date done [06:57:34]produce_requested_data done [06:57:34]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162727,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [06:57:34]process_action_free close_receipt [06:57:34]json_value_free [06:57:34]json_value_free done [06:57:34]process_json_proto returns [06:57:34]Send response to host [06:57:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162727,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [06:57:34]free response buf [06:57:34]execute_script done [06:57:34]execute_script returns [06:57:34]free content buf [06:57:34]Sock 7.Close socket [06:57:34]Sock 7.Thread stoped [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:17]accept exits with 9 [07:02:17]New connection [07:02:17]New thread 3067510116 created [07:02:17]Thread 3067366756 joined [07:02:17]Waiting for new connection... [07:02:17] Sock 9.Parse request [07:02:17]Sock 9.Check first char [07:02:17]Sock 9.First char is OK [07:02:17]request: POST /json_proto HTTP/1.0 [07:02:17]Method: POST [07:02:17]URL: /json_proto [07:02:17]Method is POST - this is cgi request [07:02:17]url: /json_proto [07:02:17]query_string will be loaded in cgi processing [07:02:17]execute_cgi json_proto POST (null) [07:02:17]execute_cgi path=json_proto method=POST [07:02:17]POST find Content-Length [07:02:17]Host: 172.17.39.67:8080 [07:02:17]Content-Length: 679 [07:02:17]Content-Type: application/json [07:02:17] [07:02:17]POST finish read [07:02:17]Found Content-Length = 679 [07:02:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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:02:17]execute_script... [07:02: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)1319308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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:02:17]POST & json_proto [07:02:17]process_json_proto [07:02:17]json parsed OK: [07:02:17]protocol is kg_v1.0 [07:02:17]action value=close_receipt [07:02:17]process_action close_receipt [07:02:17]cmd_close_receipt [07:02:17]MH_GetDate [07:02:17]Write to MH i2c: F0 00 00 ED 3F 1B [07:02:17]Write i2c OK [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: F0 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: F0 09 00 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: F0 09 00 ED 3F 00 FD 77 93 66 86 7C 92 66 8B [07:02:17]GetLastDocTimeStamp 1720940252 [07:02:17]current date 1720940541 [07:02:17]FM_GetShiftState [07:02:17]SAM_PROTO_GetShiftState [07:02:17]wFMCommunicate request_size=4 [07:02:17]MH_SAM_APDU [07:02:17]CAPDU: 80 13 01 00 [07:02:17]Write to MH i2c: E2 08 00 EE 3F 80 13 01 00 00 00 00 00 AA [07:02:17]Write i2c OK [07:02:17]MH_I2C_Read... [07:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:17]Read from MH i2c: E2 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: E2 0E 00 [07:02:17]MH_I2C_Read... [07:02:17]Read from MH i2c: E2 0E 00 EE 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E0 [07:02:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:02:17]wFMCommunicate OK [07:02:17]SAM_PROTO_GetShiftState done [07:02:17]FM_GetShiftState done [07:02:17]opened in 1720915483 [07:02:17]opened+sec_in_day 1721001883 [07:02:17]quantity*price = 70012 [07:02:17]sum+1 = 70014 [07:02:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 40 14.07.2024 07:02 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162728 ФПД: 3910542897145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T070221&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162728&fm=3910542897145&tin=02508201610067®Number=0000000000090858&sum=70000 [07:02:18]StoreToDocumentArchive [07:02:18]shift 463 fd 162728 [07:02:18]save to /storage/0463/doc_00162728 [07:02:18]save last doc name /storage/0463/doc_00162728 to /storage/kkm_last_doc_name [07:02:18]save OK [07:02:18]Clear old archive folders... [07:02:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:02:18]tlvbuf is 00637C20 [07:02:18]SAM_PROTO_ClearQueue [07:02:18]wFMCommunicate request_size=4 [07:02:18]MH_SAM_APDU [07:02:18]CAPDU: 80 09 00 00 [07:02:18]Write to MH i2c: E2 08 00 FB 3F 80 09 00 00 00 00 00 00 AC [07:02:18]Write i2c OK [07:02:18]MH_I2C_Read... [07:02:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:02:18]Read from MH i2c: E2 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 03 00 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 03 00 FB 3F 00 90 00 AE [07:02:18]RAPDU: 90 00 [07:02:18]wFMCommunicate OK [07:02:18]SAM_PROTO_ClearQueue done [07:02:18]KKMCreateOFDPacket [07:02:18]OFDProtocolAddRootSTLVToBuf [07:02:18]FM_MakeSignedData [07:02:18]FM_MakeSignedData [07:02:18]SAM_PROTO_SignData [07:02:18]wFMCommunicate request_size=4 [07:02:18]MH_SAM_APDU [07:02:18]CAPDU: 80 0D 01 02 [07:02:18]Write to MH i2c: E2 08 00 FC 3F 80 0D 01 02 00 00 00 00 B4 [07:02:18]Write i2c OK [07:02:18]MH_I2C_Read... [07:02:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:02:18]Read from MH i2c: E2 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 03 00 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 03 00 FC 3F 00 90 00 AF [07:02:18]RAPDU: 90 00 [07:02:18]wFMCommunicate OK [07:02:18]wFMCommunicate request_size=255 [07:02:18]MH_SAM_APDU [07:02:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 FD 77 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7B 02 00 35 04 06 00 03 [07:02:18]Write to MH i2c: E2 02 01 FD 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 FD 77 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7B 02 00 35 04 06 00 03 00 00 EE [07:02:18]Write i2c OK [07:02:18]MH_I2C_Read... [07:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:18]Read from MH i2c: E2 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 03 00 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 03 00 FD 3F 00 90 00 B0 [07:02:18]RAPDU: 90 00 [07:02:18]wFMCommunicate OK [07:02:18]wFMCommunicate request_size=10 [07:02:18]MH_SAM_APDU [07:02:18]CAPDU: 80 0D 02 02 05 8E 7E 85 2F F9 [07:02:18]Write to MH i2c: E2 0D 00 FE 3F 80 0D 02 02 05 00 8E 7E 85 2F F9 00 00 7A [07:02:18]Write i2c OK [07:02:18]MH_I2C_Read... [07:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:18]Read from MH i2c: E2 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 03 00 [07:02:18]MH_I2C_Read... [07:02:18]Read from MH i2c: E2 03 00 FE 3F 00 90 00 B1 [07:02:18]RAPDU: 90 00 [07:02:18]wFMCommunicate OK [07:02:18]wFMCommunicate request_size=4 [07:02:18]MH_SAM_APDU [07:02:18]CAPDU: 80 0D 03 02 [07:02:18]Write to MH i2c: E2 08 00 FF 3F 80 0D 03 02 00 00 00 00 B9 [07:02:18]Write i2c OK [07:02:18]MH_I2C_Read... [07:02:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:02:19]Read from MH i2c: E2 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: E2 0B 00 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: E2 0B 00 FF 3F 00 34 8F 1E 0A 60 1E 60 AA 90 00 2D [07:02:19]RAPDU: 34 8F 1E 0A 60 1E 60 AA 90 00 [07:02:19]wFMCommunicate OK [07:02:19]SAM_PROTO_SignData done [07:02:19]FM_MakeSignedData done [07:02:19]CreateOFDProtocolMessage [07:02:19]wFMCommunicate request_size=4 [07:02:19]MH_SAM_APDU [07:02:19]CAPDU: 80 11 00 00 [07:02:19]Write to MH i2c: E2 08 00 00 40 80 11 00 00 00 00 00 00 BA [07:02:19]Write i2c OK [07:02:19]MH_I2C_Read... [07:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:19]Read from MH i2c: E2 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: E2 17 00 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: E2 17 00 00 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1A [07:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:02:19]wFMCommunicate OK [07:02:19]CreateOFDProtocolMessage done [07:02:19]OFDSenderStorePacket 162728 [07:02:19]StoreOFDPacket docnum=162728 [07:02:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 13 CE 07 01 92 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 FD 77 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7B 02 00 35 04 06 00 03 8E 7E 85 2F F9 34 8F 1E 0A 60 1E 60 AA [07:02:19]CheckFolder [07:02:19]dirname=/storage/ofd_packets [07:02:19]CheckFolder done [07:02:19]ProducePacketName [07:02:19]name=ofd_packets/00162728 [07:02:19]NVStorageSaveData ofd_packets/00162728 [07:02:19]File name is /storage/ofd_packets/00162728 [07:02:19]Write 301 bytes [07:02:19]NVStorageSaveData done [07:02:19]OFDSenderStorePacket done [07:02:19]KKMCreateOFDPacket done [07:02:19]NVStorageSaveData kkm_last_timestamp [07:02:19]File name is /storage/kkm_last_timestamp [07:02:19]Write 4 bytes [07:02:19]NVStorageSaveData done [07:02:19]ExternCall_PrintAddStr [07:02:19]wPrintStart [07:02:19]Write to MH i2c: 01 00 00 01 40 41 [07:02:19]Write i2c OK [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: 01 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: 01 07 00 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: 01 07 00 01 40 00 00 00 00 00 FF 0F 56 [07:02:19]RasterBufferAndPrint [07:02:19]line Счет N : (1)1319308 [07:02:19]line ИНН: 02508201610067 [07:02:19]line Контрольно-Кассовый Чек [07:02:19]line ПРОДАЖА [07:02:19]line ТРК (МРК, ГНК) : 33 [07:02:19]line Товар: 2710124130 [07:02:19]line Аи-92-К-5 [07:02:19]line 10.560 * 66.30 [07:02:19]line = 700.13 [07:02:19]line НДС 12% НСП 1% [07:02:19]line > о реализуемом товаре [07:02:19]line ОКРУГЛЕНИЕ: -0.13 [07:02:19]line ИТОГО: 700.00 [07:02:19]line Внесено: 700.00 [07:02:19]line СДАЧА: 0.00 [07:02:19]line НСП 1% : 6.20 [07:02:19]line НДС 12% : 74.35 [07:02:19]line Наличными: 700.00 [07:02:19]line Безнал.: 0.00 [07:02:19]line Место: АЗС № 140 "Партнер Нефть" [07:02:19]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:02:19]line СНО: Общий режим [07:02:19]line Чек 40 14.07.2024 07:02 [07:02:19]line Смена: 463 ФФД: 1.0 [07:02:19]line ЗНМ: 0300000129 [07:02:19]line РНМ: 0000000000090858 [07:02:19]line Версия ККМ: 001 [07:02:19]line ФМ: 0000000000874899 [07:02:19]line ФД: 162728 [07:02:19]line ФПД: 3910542897145 [07:02:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T070221&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162728&fm=3910542897145&tin=02508201610067®Number=0000000000090858&sum=70000 [07:02:19]OFD Sender: Processing packet 162728 [packets to send 106, broken 105] [07:02:19]ProducePacketName [07:02:19]name=ofd_packets/00162728 [07:02:19]OFD Sender: To server: pG, [07:02:19]CommunicateWithHost lk.salyk.kg:30040 [07:02:19]ConnectInit lk.salyk.kg [07:02:19]written 0, free lines is 4095 [07:02:19]Connected sock=11 [07:02:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 13 CE 07 01 92 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 FD 77 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7B 02 00 35 04 06 00 03 8E 7E 85 2F F9 34 8F 1E 0A 60 1E 60 AA [07:02:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C8 6E 47 00 60 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7B 02 00 F4 03 04 00 0A 24 93 66 B6 04 01 00 00 F1 42 E2 8B 0C 01 39 6C [07:02:19]CommunicateWithHost err = 0 [07:02:19]CheckOFDResponse [07:02:19]1017 (14) - 77093643461234 [07:02:19]1041 (16) - 0000000000874899 [07:02:19]1040 (4) - 162728 [07:02:19]1012 (4) - 14.07.2024 01:04 [07:02:19]1206 (1) - 0 [07:02:19]OFD Sender: Remove packet 162728 [07:02:19]ProducePacketName [07:02:19]name=ofd_packets/00162728 [07:02:19]NVStorageDeleteData [07:02:19]Write to MH i2c: 01 00 00 2C 40 6C [07:02:19]Write i2c OK [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: 01 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: 01 07 00 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: 01 07 00 2C 40 00 00 00 00 00 C8 0C 47 [07:02:19]RasterBufferAndPrint [07:02:19]line [07:02:19]line [07:02:19]line [07:02:19]line [07:02:19]line [07:02:19]written 0, free lines is 3277 [07:02:19]MH_Cut [07:02:19]Write to MH i2c: D1 01 00 33 40 01 45 [07:02:19]Write i2c OK [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: D1 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: D1 01 00 [07:02:19]MH_I2C_Read... [07:02:19]Read from MH i2c: D1 01 00 33 40 00 44 [07:02:19]Write to MH i2c: 01 00 00 34 40 74 [07:02:19]Write i2c OK [07:02:19]MH_I2C_Read... [07:02:20]OFD Sender: No OFD packet to send [07:02:20]*** Cut start [07:02:20]*** Purtial cut [07:02:20]*** Stage 1: CUTSNS_PIN = 1 [07:02:20]Read from MH i2c: 01 [07:02:20]MH_I2C_Read... [07:02:20]*** Stop cut motor [07:02:20]*** Cut end [07:02:20]Read from MH i2c: 01 07 00 [07:02:20]MH_I2C_Read... [07:02:20]Read from MH i2c: 01 07 00 34 40 00 00 00 00 00 FF 0F 89 [07:02:20]process_action close_receipt done [07:02:20]requested_data is exist [07:02:20]produce_requested_data [07:02:20]requested_item fm.sn is exist - process it [07:02:20]wFMCommunicate request_size=4 [07:02:20]MH_SAM_APDU [07:02:20]CAPDU: 80 11 00 00 [07:02:20]Write to MH i2c: E2 08 00 35 40 80 11 00 00 00 00 00 00 EF [07:02:20]Write i2c OK [07:02:20]MH_I2C_Read... [07:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:20]Read from MH i2c: E2 [07:02:20]MH_I2C_Read... [07:02:20]Read from MH i2c: E2 17 00 [07:02:20]MH_I2C_Read... [07:02:20]Read from MH i2c: E2 17 00 35 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4F [07:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:02:20]wFMCommunicate OK [07:02:20]requested_item fd.num is exist - process it [07:02:20]SAM_PROTO_GetFieldsCounters [07:02:20]wFMCommunicate request_size=4 [07:02:20]MH_SAM_APDU [07:02:20]CAPDU: 80 13 00 00 [07:02:20]Write to MH i2c: E2 08 00 36 40 80 13 00 00 00 00 00 00 F2 [07:02:20]Write i2c OK [07:02:20]MH_I2C_Read... [07:02:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:02:21]Read from MH i2c: E2 [07:02:21]MH_I2C_Read... [07:02:21]Read from MH i2c: E2 62 00 [07:02:21]MH_I2C_Read... [07:02:21]Read from MH i2c: E2 62 00 36 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A8 7B 02 00 0E 04 04 00 CF 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 92 [07:02:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A8 7B 02 00 0E 04 04 00 CF 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 [07:02:21]wFMCommunicate OK [07:02:21]SAM_PROTO_GetFieldsCounters done [07:02:21]requested_item shift.num is exist - process it [07:02:21]requested_item shift.opened is exist - process it [07:02:21]req_shift_opened [07:02:21]FM_GetShiftState [07:02:21]SAM_PROTO_GetShiftState [07:02:21]wFMCommunicate request_size=4 [07:02:21]MH_SAM_APDU [07:02:21]CAPDU: 80 13 01 00 [07:02:21]Write to MH i2c: E2 08 00 37 40 80 13 01 00 00 00 00 00 F4 [07:02:21]Write i2c OK [07:02:21]MH_I2C_Read... [07:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:21]Read from MH i2c: E2 [07:02:21]MH_I2C_Read... [07:02:21]Read from MH i2c: E2 0E 00 [07:02:21]MH_I2C_Read... [07:02:21]Read from MH i2c: E2 0E 00 37 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2A [07:02:21]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:02:21]wFMCommunicate OK [07:02:21]SAM_PROTO_GetShiftState done [07:02:21]FM_GetShiftState done [07:02:21]req_shift_opened done [07:02:21]requested_item shift.open_date is exist - process it [07:02:21]req_shift_open_date [07:02:21]req_shift_open_date done [07:02:21]produce_requested_data done [07:02:21]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162728,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [07:02:21]process_action_free close_receipt [07:02:21]json_value_free [07:02:21]json_value_free done [07:02:21]process_json_proto returns [07:02:21]Send response to host [07:02:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162728,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [07:02:21]free response buf [07:02:21]execute_script done [07:02:21]execute_script returns [07:02:21]free content buf [07:02:21]Sock 9.Close socket [07:02:21]Sock 9.Thread stoped [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:24]accept exits with 7 [07:06:24]New connection [07:06:24]New thread 3067366756 created [07:06:24]Thread 3067510116 joined [07:06:24]Waiting for new connection... [07:06:24] Sock 7.Parse request [07:06:24]Sock 7.Check first char [07:06:24]Sock 7.First char is OK [07:06:24]request: POST /json_proto HTTP/1.0 [07:06:24]Method: POST [07:06:24]URL: /json_proto [07:06:24]Method is POST - this is cgi request [07:06:24]url: /json_proto [07:06:24]query_string will be loaded in cgi processing [07:06:24]execute_cgi json_proto POST (null) [07:06:24]execute_cgi path=json_proto method=POST [07:06:24]POST find Content-Length [07:06:24]Host: 172.17.39.67:8080 [07:06:24]Content-Length: 1204 [07:06:24]Content-Type: application/json [07:06:24] [07:06:24]POST finish read [07:06:24]Found Content-Length = 1204 [07:06:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319309\u000A14.07.2024 07:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 7260.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3606398\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:24]execute_script... [07:06:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319309\u000A14.07.2024 07:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 7260.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3606398\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:24]POST & json_proto [07:06:24]process_json_proto [07:06:24]json parsed OK: [07:06:24]protocol is kg_v1.0 [07:06:24]action value=print_text [07:06:24]process_action print_text [07:06:24]cmd_print_text [07:06:24]ExternCall_PrintAddStr [07:06:24]wPrintStart [07:06:24]Write to MH i2c: 01 00 00 38 40 78 [07:06:24]Write i2c OK [07:06:24]MH_I2C_Read... [07:06:24]Read from MH i2c: 01 [07:06:24]MH_I2C_Read... [07:06:24]Read from MH i2c: 01 07 00 [07:06:24]MH_I2C_Read... [07:06:24]Read from MH i2c: 01 07 00 38 40 00 00 00 00 00 FF 0F 8D [07:06:24]RasterBufferAndPrint [07:06:24]line *****ТОВАРНЫЙ ЧЕК***** [07:06:24]line АЗС 140 [07:06:24]line Партнер нефть [07:06:24]line 02508201610067 [07:06:24]line Кассир : Дуйшенбек у Н. [07:06:24]line Счет N : (1)1319309 [07:06:24]line 14.07.2024 07:03 [07:06:24]line ПРОДАЖА [07:06:24]line ТРК (МРК, ГНК): 11 [07:06:24]line Вид ГСМ : 2710194210 [07:06:24]line ДТ(л)-К-5 [07:06:24]line 100.000 x 72.60 [07:06:24]line ИТОГ: 7260.00 [07:06:24]line Тип оплаты: Талоны: Партнер нефть [07:06:24]line 3606398 [07:06:24]line ______________________ [07:06:24]line (подпись) [07:06:24]written 0, free lines is 4095 [07:06:24]Write to MH i2c: 01 00 00 4C 40 8C [07:06:24]Write i2c OK [07:06:24]MH_I2C_Read... [07:06:24]Read from MH i2c: 01 [07:06:24]MH_I2C_Read... [07:06:24]Read from MH i2c: 01 07 00 [07:06:24]MH_I2C_Read... [07:06:24]Read from MH i2c: 01 07 00 4C 40 00 00 00 00 00 13 0E B4 [07:06:24]RasterBufferAndPrint [07:06:24]line [07:06:24]line [07:06:24]line [07:06:24]line [07:06:24]line [07:06:24]written 0, free lines is 3604 [07:06:24]MH_Cut [07:06:24]Write to MH i2c: D1 01 00 53 40 01 65 [07:06:24]Write i2c OK [07:06:24]MH_I2C_Read... [07:06:24]Read from MH i2c: D1 [07:06:24]MH_I2C_Read... [07:06:24]Read from MH i2c: D1 01 00 [07:06:24]MH_I2C_Read... [07:06:24]Read from MH i2c: D1 01 00 53 40 00 64 [07:06:24]Write to MH i2c: 01 00 00 54 40 94 [07:06:24]Write i2c OK [07:06:24]MH_I2C_Read... [07:06:24]*** Cut start [07:06:24]*** Purtial cut [07:06:24]*** CUTSNS_PIN = 0 [07:06:25]*** Stage 1: CUTSNS_PIN = 1 [07:06:25]OFD Sender: No OFD packet to send [07:06:26]Read from MH i2c: 01 [07:06:26]MH_I2C_Read... [07:06:26]Read from MH i2c: 01 07 00 [07:06:26]MH_I2C_Read... [07:06:26]*** Stop cut motor [07:06:26]*** Cut end [07:06:26]Read from MH i2c: 01 07 00 54 40 00 00 00 00 00 FF 0F A9 [07:06:26]process_action print_text done [07:06:26]requested_data is exist [07:06:26]produce_requested_data [07:06:26]requested_item fm.sn is exist - process it [07:06:26]wFMCommunicate request_size=4 [07:06:26]MH_SAM_APDU [07:06:26]CAPDU: 80 11 00 00 [07:06:26]Write to MH i2c: E2 08 00 55 40 80 11 00 00 00 00 00 00 0F [07:06:26]Write i2c OK [07:06:26]MH_I2C_Read... [07:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:26]Read from MH i2c: E2 [07:06:26]MH_I2C_Read... [07:06:26]Read from MH i2c: E2 17 00 [07:06:26]MH_I2C_Read... [07:06:26]Read from MH i2c: E2 17 00 55 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6F [07:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:06:26]wFMCommunicate OK [07:06:26]requested_item fd.num is exist - process it [07:06:26]SAM_PROTO_GetFieldsCounters [07:06:26]wFMCommunicate request_size=4 [07:06:26]MH_SAM_APDU [07:06:26]CAPDU: 80 13 00 00 [07:06:26]Write to MH i2c: E2 08 00 56 40 80 13 00 00 00 00 00 00 12 [07:06:26]Write i2c OK [07:06:26]MH_I2C_Read... [07:06:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:27]Read from MH i2c: E2 [07:06:27]MH_I2C_Read... [07:06:27]Read from MH i2c: E2 62 00 [07:06:27]MH_I2C_Read... [07:06:27]Read from MH i2c: E2 62 00 56 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A8 7B 02 00 0E 04 04 00 CF 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 B2 [07:06:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A8 7B 02 00 0E 04 04 00 CF 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 [07:06:27]wFMCommunicate OK [07:06:27]SAM_PROTO_GetFieldsCounters done [07:06:27]requested_item shift.num is exist - process it [07:06:27]requested_item shift.opened is exist - process it [07:06:27]req_shift_opened [07:06:27]FM_GetShiftState [07:06:27]SAM_PROTO_GetShiftState [07:06:27]wFMCommunicate request_size=4 [07:06:27]MH_SAM_APDU [07:06:27]CAPDU: 80 13 01 00 [07:06:27]Write to MH i2c: E2 08 00 57 40 80 13 01 00 00 00 00 00 14 [07:06:27]Write i2c OK [07:06:27]MH_I2C_Read... [07:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:27]Read from MH i2c: E2 [07:06:27]MH_I2C_Read... [07:06:27]Read from MH i2c: E2 0E 00 [07:06:27]MH_I2C_Read... [07:06:27]Read from MH i2c: E2 0E 00 57 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4A [07:06:27]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:06:27]wFMCommunicate OK [07:06:27]SAM_PROTO_GetShiftState done [07:06:27]FM_GetShiftState done [07:06:27]req_shift_opened done [07:06:27]requested_item shift.open_date is exist - process it [07:06:27]req_shift_open_date [07:06:27]req_shift_open_date done [07:06:27]produce_requested_data done [07:06:27]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162728,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [07:06:27]process_action_free print_text [07:06:27]json_value_free [07:06:27]json_value_free done [07:06:27]process_json_proto returns [07:06:27]Send response to host [07:06:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162728,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [07:06:27]free response buf [07:06:27]execute_script done [07:06:27]execute_script returns [07:06:27]free content buf [07:06:27]Sock 7.Close socket [07:06:27]Sock 7.Thread stoped [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:41]accept exits with 9 [07:10:41]New connection [07:10:41]New thread 3067510116 created [07:10:41]Thread 3067366756 joined [07:10:41]Waiting for new connection... [07:10:41] Sock 9.Parse request [07:10:41]Sock 9.Check first char [07:10:41]Sock 9.First char is OK [07:10:41]request: POST /json_proto HTTP/1.0 [07:10:41]Method: POST [07:10:41]URL: /json_proto [07:10:41]Method is POST - this is cgi request [07:10:41]url: /json_proto [07:10:41]query_string will be loaded in cgi processing [07:10:41]execute_cgi json_proto POST (null) [07:10:41]execute_cgi path=json_proto method=POST [07:10:41]POST find Content-Length [07:10:41]Host: 172.17.39.67:8080 [07:10:41]Content-Length: 1211 [07:10:41]Content-Type: application/json [07:10:41] [07:10:41]POST finish read [07:10:41]Found Content-Length = 1211 [07:10:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319310\u000A14.07.2024 07:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092721/4092722\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:41]execute_script... [07:10:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319310\u000A14.07.2024 07:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092721/4092722\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:41]POST & json_proto [07:10:41]process_json_proto [07:10:41]json parsed OK: [07:10:41]protocol is kg_v1.0 [07:10:41]action value=print_text [07:10:41]process_action print_text [07:10:41]cmd_print_text [07:10:41]ExternCall_PrintAddStr [07:10:41]wPrintStart [07:10:41]Write to MH i2c: 01 00 00 58 40 98 [07:10:41]Write i2c OK [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: 01 [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: 01 07 00 [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: 01 07 00 58 40 00 00 00 00 00 FF 0F AD [07:10:41]RasterBufferAndPrint [07:10:41]line *****ТОВАРНЫЙ ЧЕК***** [07:10:41]line АЗС 140 [07:10:41]line Партнер нефть [07:10:41]line 02508201610067 [07:10:41]line Кассир : Дуйшенбек у Н. [07:10:41]line Счет N : (1)1319310 [07:10:41]line 14.07.2024 07:08 [07:10:41]line ПРОДАЖА [07:10:41]line ТРК (МРК, ГНК): 21 [07:10:41]line Вид ГСМ : 2710194210 [07:10:41]line ДТ(л)-К-5 [07:10:41]line 40.000 x 72.60 [07:10:41]line ИТОГ: 2904.00 [07:10:41]line Тип оплаты: Талоны: Партнер нефть [07:10:41]line 4092721/4092722 [07:10:41]line ______________________ [07:10:41]line (подпись) [07:10:41]written 0, free lines is 4095 [07:10:41]Write to MH i2c: 01 00 00 6C 40 AC [07:10:41]Write i2c OK [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: 01 [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: 01 07 00 [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: 01 07 00 6C 40 00 00 00 00 00 16 0E D7 [07:10:41]RasterBufferAndPrint [07:10:41]line [07:10:41]line [07:10:41]line [07:10:41]line [07:10:41]line [07:10:41]written 0, free lines is 3608 [07:10:41]MH_Cut [07:10:41]Write to MH i2c: D1 01 00 73 40 01 85 [07:10:41]Write i2c OK [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: D1 [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: D1 01 00 [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: D1 01 00 73 40 00 84 [07:10:41]Write to MH i2c: 01 00 00 74 40 B4 [07:10:41]Write i2c OK [07:10:41]MH_I2C_Read... [07:10:42]*** Cut start [07:10:42]*** Purtial cut [07:10:42]*** Stage 1: CUTSNS_PIN = 1 [07:10:42]Read from MH i2c: 01 [07:10:42]MH_I2C_Read... [07:10:42]Read from MH i2c: 01 07 00 [07:10:42]MH_I2C_Read... [07:10:42]*** Stop cut motor [07:10:42]*** Cut end [07:10:42]Read from MH i2c: 01 07 00 74 40 00 00 00 00 00 FF 0F C9 [07:10:42]process_action print_text done [07:10:42]requested_data is exist [07:10:42]produce_requested_data [07:10:42]requested_item fm.sn is exist - process it [07:10:42]wFMCommunicate request_size=4 [07:10:42]MH_SAM_APDU [07:10:42]CAPDU: 80 11 00 00 [07:10:42]Write to MH i2c: E2 08 00 75 40 80 11 00 00 00 00 00 00 2F [07:10:42]Write i2c OK [07:10:42]MH_I2C_Read... [07:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:42]Read from MH i2c: E2 [07:10:42]MH_I2C_Read... [07:10:42]Read from MH i2c: E2 17 00 [07:10:42]MH_I2C_Read... [07:10:42]Read from MH i2c: E2 17 00 75 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8F [07:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:10:42]wFMCommunicate OK [07:10:42]requested_item fd.num is exist - process it [07:10:42]SAM_PROTO_GetFieldsCounters [07:10:42]wFMCommunicate request_size=4 [07:10:42]MH_SAM_APDU [07:10:42]CAPDU: 80 13 00 00 [07:10:42]Write to MH i2c: E2 08 00 76 40 80 13 00 00 00 00 00 00 32 [07:10:42]Write i2c OK [07:10:42]MH_I2C_Read... [07:10:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:42]Read from MH i2c: E2 [07:10:42]MH_I2C_Read... [07:10:42]Read from MH i2c: E2 62 00 [07:10:42]MH_I2C_Read... [07:10:42]Read from MH i2c: E2 62 00 76 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A8 7B 02 00 0E 04 04 00 CF 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 D2 [07:10:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A8 7B 02 00 0E 04 04 00 CF 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 [07:10:42]wFMCommunicate OK [07:10:42]SAM_PROTO_GetFieldsCounters done [07:10:42]requested_item shift.num is exist - process it [07:10:42]requested_item shift.opened is exist - process it [07:10:42]req_shift_opened [07:10:42]FM_GetShiftState [07:10:42]SAM_PROTO_GetShiftState [07:10:42]wFMCommunicate request_size=4 [07:10:42]MH_SAM_APDU [07:10:42]CAPDU: 80 13 01 00 [07:10:42]Write to MH i2c: E2 08 00 77 40 80 13 01 00 00 00 00 00 34 [07:10:42]Write i2c OK [07:10:42]MH_I2C_Read... [07:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:42]Read from MH i2c: E2 [07:10:42]MH_I2C_Read... [07:10:42]Read from MH i2c: E2 0E 00 [07:10:42]MH_I2C_Read... [07:10:42]Read from MH i2c: E2 0E 00 77 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6A [07:10:42]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:10:42]wFMCommunicate OK [07:10:42]SAM_PROTO_GetShiftState done [07:10:42]FM_GetShiftState done [07:10:42]req_shift_opened done [07:10:42]requested_item shift.open_date is exist - process it [07:10:42]req_shift_open_date [07:10:42]req_shift_open_date done [07:10:42]produce_requested_data done [07:10:42]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162728,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [07:10:42]process_action_free print_text [07:10:42]json_value_free [07:10:42]json_value_free done [07:10:42]process_json_proto returns [07:10:42]Send response to host [07:10:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162728,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [07:10:42]free response buf [07:10:42]execute_script done [07:10:42]execute_script returns [07:10:42]free content buf [07:10:42]Sock 9.Close socket [07:10:42]Sock 9.Thread stoped [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:09]accept exits with 7 [07:12:09]New connection [07:12:09]New thread 3067366756 created [07:12:09]Thread 3067510116 joined [07:12:09]Waiting for new connection... [07:12:09] Sock 7.Parse request [07:12:09]Sock 7.Check first char [07:12:09]Sock 7.First char is OK [07:12:09]request: POST /json_proto HTTP/1.0 [07:12:09]Method: POST [07:12:09]URL: /json_proto [07:12:09]Method is POST - this is cgi request [07:12:09]url: /json_proto [07:12:09]query_string will be loaded in cgi processing [07:12:09]execute_cgi json_proto POST (null) [07:12:09]execute_cgi path=json_proto method=POST [07:12:09]POST find Content-Length [07:12:09]Host: 172.17.39.67:8080 [07:12:09]Content-Length: 646 [07:12:09]Content-Type: application/json [07:12:09] [07:12:09]POST finish read [07:12:09]Found Content-Length = 646 [07:12:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.000, "sum" : 726.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 726.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:09]execute_script... [07:12: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)1319311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.000, "sum" : 726.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 726.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:09]POST & json_proto [07:12:09]process_json_proto [07:12:09]json parsed OK: [07:12:09]protocol is kg_v1.0 [07:12:09]action value=close_receipt [07:12:09]process_action close_receipt [07:12:09]cmd_close_receipt [07:12:09]MH_GetDate [07:12:09]Write to MH i2c: F0 00 00 78 40 A7 [07:12:09]Write i2c OK [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: F0 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: F0 09 00 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: F0 09 00 78 40 00 4D 7A 93 66 86 7C 92 66 6A [07:12:09]GetLastDocTimeStamp 1720940541 [07:12:09]current date 1720941133 [07:12:09]FM_GetShiftState [07:12:09]SAM_PROTO_GetShiftState [07:12:09]wFMCommunicate request_size=4 [07:12:09]MH_SAM_APDU [07:12:09]CAPDU: 80 13 01 00 [07:12:09]Write to MH i2c: E2 08 00 79 40 80 13 01 00 00 00 00 00 36 [07:12:09]Write i2c OK [07:12:09]MH_I2C_Read... [07:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:09]Read from MH i2c: E2 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: E2 0E 00 [07:12:09]MH_I2C_Read... [07:12:09]Read from MH i2c: E2 0E 00 79 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6C [07:12:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:12:09]wFMCommunicate OK [07:12:09]SAM_PROTO_GetShiftState done [07:12:09]FM_GetShiftState done [07:12:09]opened in 1720915483 [07:12:09]opened+sec_in_day 1721001883 [07:12:09]quantity*price = 72600 [07:12:09]sum+1 = 72601 [07:12:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 726.00 НСП 1% : 6.42 НДС 12% : 77.10 Наличными: 726.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 41 14.07.2024 07:12 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162729 ФПД: 103111347508074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T071213&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162729&fm=103111347508074&tin=02508201610067®Number=0000000000090858&sum=72600 [07:12:10]StoreToDocumentArchive [07:12:10]shift 463 fd 162729 [07:12:10]save to /storage/0463/doc_00162729 [07:12:10]save last doc name /storage/0463/doc_00162729 to /storage/kkm_last_doc_name [07:12:10]save OK [07:12:10]Clear old archive folders... [07:12:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:12:10]tlvbuf is 006B2F90 [07:12:10]SAM_PROTO_ClearQueue [07:12:10]wFMCommunicate request_size=4 [07:12:10]MH_SAM_APDU [07:12:10]CAPDU: 80 09 00 00 [07:12:10]Write to MH i2c: E2 08 00 86 40 80 09 00 00 00 00 00 00 38 [07:12:10]Write i2c OK [07:12:10]MH_I2C_Read... [07:12:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:10]Read from MH i2c: E2 [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: E2 03 00 [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: E2 03 00 86 40 00 90 00 3A [07:12:10]RAPDU: 90 00 [07:12:10]wFMCommunicate OK [07:12:10]SAM_PROTO_ClearQueue done [07:12:10]KKMCreateOFDPacket [07:12:10]OFDProtocolAddRootSTLVToBuf [07:12:10]FM_MakeSignedData [07:12:10]FM_MakeSignedData [07:12:10]SAM_PROTO_SignData [07:12:10]wFMCommunicate request_size=4 [07:12:10]MH_SAM_APDU [07:12:10]CAPDU: 80 0D 01 02 [07:12:10]Write to MH i2c: E2 08 00 87 40 80 0D 01 02 00 00 00 00 40 [07:12:10]Write i2c OK [07:12:10]MH_I2C_Read... [07:12:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:10]Read from MH i2c: E2 [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: E2 03 00 [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: E2 03 00 87 40 00 90 00 3B [07:12:10]RAPDU: 90 00 [07:12:10]wFMCommunicate OK [07:12:10]wFMCommunicate request_size=255 [07:12:10]MH_SAM_APDU [07:12:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 98 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4D 7A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7B 02 00 35 04 06 00 [07:12:10]Write to MH i2c: E2 02 01 88 40 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 98 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4D 7A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7B 02 00 35 04 06 00 00 00 01 [07:12:10]Write i2c OK [07:12:10]MH_I2C_Read... [07:12:10]OFD Sender: No OFD packet to send [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:11]Read from MH i2c: E2 03 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 88 40 00 90 00 3C [07:12:11]RAPDU: 90 00 [07:12:11]wFMCommunicate OK [07:12:11]wFMCommunicate request_size=11 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 0D 02 02 06 5D C7 7B 3D 93 6A [07:12:11]Write to MH i2c: E2 0E 00 89 40 80 0D 02 02 06 00 5D C7 7B 3D 93 6A 00 00 28 [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 89 40 00 90 00 3D [07:12:11]RAPDU: 90 00 [07:12:11]wFMCommunicate OK [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 0D 03 02 [07:12:11]Write to MH i2c: E2 08 00 8A 40 80 0D 03 02 00 00 00 00 45 [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 0B 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 0B 00 8A 40 00 96 AA B4 C4 4E AE A2 78 90 00 14 [07:12:11]RAPDU: 96 AA B4 C4 4E AE A2 78 90 00 [07:12:11]wFMCommunicate OK [07:12:11]SAM_PROTO_SignData done [07:12:11]FM_MakeSignedData done [07:12:11]CreateOFDProtocolMessage [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 11 00 00 [07:12:11]Write to MH i2c: E2 08 00 8B 40 80 11 00 00 00 00 00 00 45 [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 17 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 17 00 8B 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A5 [07:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:12:11]wFMCommunicate OK [07:12:11]CreateOFDProtocolMessage done [07:12:11]OFDSenderStorePacket 162729 [07:12:11]StoreOFDPacket docnum=162729 [07:12:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 38 A9 08 01 6D 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 98 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4D 7A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7B 02 00 35 04 06 00 5D C7 7B 3D 93 6A 96 AA B4 C4 4E AE A2 78 [07:12:11]CheckFolder [07:12:11]dirname=/storage/ofd_packets [07:12:11]CheckFolder done [07:12:11]ProducePacketName [07:12:11]name=ofd_packets/00162729 [07:12:11]NVStorageSaveData ofd_packets/00162729 [07:12:11]File name is /storage/ofd_packets/00162729 [07:12:11]Write 302 bytes [07:12:11]NVStorageSaveData done [07:12:11]OFDSenderStorePacket done [07:12:11]KKMCreateOFDPacket done [07:12:11]NVStorageSaveData kkm_last_timestamp [07:12:11]File name is /storage/kkm_last_timestamp [07:12:11]Write 4 bytes [07:12:11]NVStorageSaveData done [07:12:11]ExternCall_PrintAddStr [07:12:11]wPrintStart [07:12:11]Write to MH i2c: 01 00 00 8C 40 CC [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: 01 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: 01 07 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: 01 07 00 8C 40 00 00 00 00 00 FF 0F E1 [07:12:11]RasterBufferAndPrint [07:12:11]line Счет N : (1)1319311 [07:12:11]line ИНН: 02508201610067 [07:12:11]line Контрольно-Кассовый Чек [07:12:11]line ПРОДАЖА [07:12:11]line ТРК (МРК, ГНК) : 21 [07:12:11]line Товар: 2710194210 [07:12:11]line ДТ(л)-К-5 [07:12:11]line 10.000 * 72.60 [07:12:11]line = 726.00 [07:12:11]line НДС 12% НСП 1% [07:12:11]line > о реализуемом товаре [07:12:11]line ИТОГО: 726.00 [07:12:11]line НСП 1% : 6.42 [07:12:11]line НДС 12% : 77.10 [07:12:11]line Наличными: 726.00 [07:12:11]line Безнал.: 0.00 [07:12:11]line Место: АЗС № 140 "Партнер Нефть" [07:12:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:12:11]line СНО: Общий режим [07:12:11]line Чек 41 14.07.2024 07:12 [07:12:11]line Смена: 463 ФФД: 1.0 [07:12:11]line ЗНМ: 0300000129 [07:12:11]line РНМ: 0000000000090858 [07:12:11]line Версия ККМ: 001 [07:12:11]line ФМ: 0000000000874899 [07:12:11]line ФД: 162729 [07:12:11]line ФПД: 103111347508074 [07:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T071213&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162729&fm=103111347508074&tin=02508201610067®Number=0000000000090858&sum=72600 [07:12:11]OFD Sender: Processing packet 162729 [packets to send 106, broken 105] [07:12:11]ProducePacketName [07:12:11]name=ofd_packets/00162729 [07:12:11]OFD Sender: To server: pG, [07:12:11]CommunicateWithHost lk.salyk.kg:30040 [07:12:11]ConnectInit lk.salyk.kg [07:12:11]written 0, free lines is 4095 [07:12:11]Connected sock=10 [07:12:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 38 A9 08 01 6D 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 98 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4D 7A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7B 02 00 35 04 06 00 5D C7 7B 3D 93 6A 96 AA B4 C4 4E AE A2 78 [07:12:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B5 D3 47 00 FF 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7B 02 00 F4 03 04 00 5A 26 93 66 B6 04 01 00 00 FD 1B 3D 24 F8 3E 46 62 [07:12:11]CommunicateWithHost err = 0 [07:12:11]CheckOFDResponse [07:12:11]1017 (14) - 77093643461234 [07:12:11]1041 (16) - 0000000000874899 [07:12:11]1040 (4) - 162729 [07:12:11]1012 (4) - 14.07.2024 01:14 [07:12:11]1206 (1) - 0 [07:12:11]OFD Sender: Remove packet 162729 [07:12:11]ProducePacketName [07:12:11]name=ofd_packets/00162729 [07:12:11]NVStorageDeleteData [07:12:11]Write to MH i2c: 01 00 00 B4 40 F4 [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: 01 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: 01 07 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: 01 07 00 B4 40 00 00 00 00 00 04 0D 0C [07:12:11]RasterBufferAndPrint [07:12:11]line [07:12:11]line [07:12:11]line [07:12:11]line [07:12:11]line [07:12:11]written 0, free lines is 3338 [07:12:12]MH_Cut [07:12:12]Write to MH i2c: D1 01 00 BB 40 01 CD [07:12:12]Write i2c OK [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: D1 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: D1 01 00 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: D1 01 00 BB 40 00 CC [07:12:12]Write to MH i2c: 01 00 00 BC 40 FC [07:12:12]Write i2c OK [07:12:12]MH_I2C_Read... [07:12:12]OFD Sender: No OFD packet to send [07:12:12]*** Cut start [07:12:12]*** Purtial cut [07:12:12]*** CUTSNS_PIN = 0 [07:12:12]*** Stage 1: CUTSNS_PIN = 1 [07:12:14]Read from MH i2c: 01 [07:12:14]MH_I2C_Read... [07:12:14]*** Stop cut motor [07:12:14]*** Cut end [07:12:14]Read from MH i2c: 01 07 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: 01 07 00 BC 40 00 00 00 00 00 FF 0F 11 [07:12:14]process_action close_receipt done [07:12:14]requested_data is exist [07:12:14]produce_requested_data [07:12:14]requested_item fm.sn is exist - process it [07:12:14]wFMCommunicate request_size=4 [07:12:14]MH_SAM_APDU [07:12:14]CAPDU: 80 11 00 00 [07:12:14]Write to MH i2c: E2 08 00 BD 40 80 11 00 00 00 00 00 00 77 [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:14]Read from MH i2c: E2 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 17 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 17 00 BD 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D7 [07:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:12:14]wFMCommunicate OK [07:12:14]requested_item fd.num is exist - process it [07:12:14]SAM_PROTO_GetFieldsCounters [07:12:14]wFMCommunicate request_size=4 [07:12:14]MH_SAM_APDU [07:12:14]CAPDU: 80 13 00 00 [07:12:14]Write to MH i2c: E2 08 00 BE 40 80 13 00 00 00 00 00 00 7A [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:14]Read from MH i2c: E2 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 62 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 62 00 BE 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A9 7B 02 00 0E 04 04 00 CF 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 1E [07:12:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A9 7B 02 00 0E 04 04 00 CF 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 [07:12:14]wFMCommunicate OK [07:12:14]SAM_PROTO_GetFieldsCounters done [07:12:14]requested_item shift.num is exist - process it [07:12:14]requested_item shift.opened is exist - process it [07:12:14]req_shift_opened [07:12:14]FM_GetShiftState [07:12:14]SAM_PROTO_GetShiftState [07:12:14]wFMCommunicate request_size=4 [07:12:14]MH_SAM_APDU [07:12:14]CAPDU: 80 13 01 00 [07:12:14]Write to MH i2c: E2 08 00 BF 40 80 13 01 00 00 00 00 00 7C [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:15]Read from MH i2c: E2 [07:12:15]MH_I2C_Read... [07:12:15]Read from MH i2c: E2 0E 00 [07:12:15]MH_I2C_Read... [07:12:15]Read from MH i2c: E2 0E 00 BF 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B2 [07:12:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:12:15]wFMCommunicate OK [07:12:15]SAM_PROTO_GetShiftState done [07:12:15]FM_GetShiftState done [07:12:15]req_shift_opened done [07:12:15]requested_item shift.open_date is exist - process it [07:12:15]req_shift_open_date [07:12:15]req_shift_open_date done [07:12:15]produce_requested_data done [07:12:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162729,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [07:12:15]process_action_free close_receipt [07:12:15]json_value_free [07:12:15]json_value_free done [07:12:15]process_json_proto returns [07:12:15]Send response to host [07:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162729,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [07:12:15]free response buf [07:12:15]execute_script done [07:12:15]execute_script returns [07:12:15]free content buf [07:12:15]Sock 7.Close socket [07:12:15]Sock 7.Thread stoped [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21: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:13]accept exits with 9 [07:22:13]New connection [07:22:13]New thread 3067510116 created [07:22:13]Thread 3067366756 joined [07:22:13]Waiting for new connection... [07:22:13] Sock 9.Parse request [07:22:13]Sock 9.Check first char [07:22:13]Sock 9.First char is OK [07:22:13]request: POST /json_proto HTTP/1.0 [07:22:13]Method: POST [07:22:13]URL: /json_proto [07:22:13]Method is POST - this is cgi request [07:22:13]url: /json_proto [07:22:13]query_string will be loaded in cgi processing [07:22:13]execute_cgi json_proto POST (null) [07:22:13]execute_cgi path=json_proto method=POST [07:22:13]POST find Content-Length [07:22:13]Host: 172.17.39.67:8080 [07:22:13]Content-Length: 683 [07:22:13]Content-Type: application/json [07:22:13] [07:22:13]POST finish read [07:22:13]Found Content-Length = 683 [07:22:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:22:13]execute_script... [07:22: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)1319312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:22:13]POST & json_proto [07:22:13]process_json_proto [07:22:13]json parsed OK: [07:22:13]protocol is kg_v1.0 [07:22:13]action value=close_receipt [07:22:13]process_action close_receipt [07:22:13]cmd_close_receipt [07:22:13]MH_GetDate [07:22:13]Write to MH i2c: F0 00 00 C0 40 EF [07:22:13]Write i2c OK [07:22:13]MH_I2C_Read... [07:22:13]Read from MH i2c: F0 [07:22:13]MH_I2C_Read... [07:22:13]Read from MH i2c: F0 09 00 [07:22:13]MH_I2C_Read... [07:22:13]Read from MH i2c: F0 09 00 C0 40 00 A9 7C 93 66 86 7C 92 66 10 [07:22:13]GetLastDocTimeStamp 1720941133 [07:22:13]current date 1720941737 [07:22:13]FM_GetShiftState [07:22:13]SAM_PROTO_GetShiftState [07:22:13]wFMCommunicate request_size=4 [07:22:13]MH_SAM_APDU [07:22:13]CAPDU: 80 13 01 00 [07:22:13]Write to MH i2c: E2 08 00 C1 40 80 13 01 00 00 00 00 00 7E [07:22:13]Write i2c OK [07:22:13]MH_I2C_Read... [07:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:13]Read from MH i2c: E2 [07:22:13]MH_I2C_Read... [07:22:13]Read from MH i2c: E2 0E 00 [07:22:13]MH_I2C_Read... [07:22:13]Read from MH i2c: E2 0E 00 C1 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B4 [07:22:13]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:22:13]wFMCommunicate OK [07:22:13]SAM_PROTO_GetShiftState done [07:22:13]FM_GetShiftState done [07:22:13]opened in 1720915483 [07:22:13]opened+sec_in_day 1721001883 [07:22:13]quantity*price = 100046 [07:22:13]sum+1 = 100048 [07:22:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 42 14.07.2024 07:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162730 ФПД: 253889802010313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T072217&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162730&fm=253889802010313&tin=02508201610067®Number=0000000000090858&sum=100000 [07:22:14]StoreToDocumentArchive [07:22:14]shift 463 fd 162730 [07:22:14]save to /storage/0463/doc_00162730 [07:22:14]save last doc name /storage/0463/doc_00162730 to /storage/kkm_last_doc_name [07:22:14]save OK [07:22:14]Clear old archive folders... [07:22:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:22:14]tlvbuf is 00638400 [07:22:14]SAM_PROTO_ClearQueue [07:22:14]wFMCommunicate request_size=4 [07:22:14]MH_SAM_APDU [07:22:14]CAPDU: 80 09 00 00 [07:22:14]Write to MH i2c: E2 08 00 CE 40 80 09 00 00 00 00 00 00 80 [07:22:14]Write i2c OK [07:22:14]MH_I2C_Read... [07:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:22:14]Read from MH i2c: E2 [07:22:14]MH_I2C_Read... [07:22:14]Read from MH i2c: E2 03 00 [07:22:14]MH_I2C_Read... [07:22:14]Read from MH i2c: E2 03 00 CE 40 00 90 00 82 [07:22:14]RAPDU: 90 00 [07:22:14]wFMCommunicate OK [07:22:14]SAM_PROTO_ClearQueue done [07:22:14]KKMCreateOFDPacket [07:22:14]OFDProtocolAddRootSTLVToBuf [07:22:14]FM_MakeSignedData [07:22:14]FM_MakeSignedData [07:22:14]SAM_PROTO_SignData [07:22:14]wFMCommunicate request_size=4 [07:22:14]MH_SAM_APDU [07:22:14]CAPDU: 80 0D 01 02 [07:22:14]Write to MH i2c: E2 08 00 CF 40 80 0D 01 02 00 00 00 00 88 [07:22:14]Write i2c OK [07:22:14]MH_I2C_Read... [07:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:22:14]Read from MH i2c: E2 [07:22:14]MH_I2C_Read... [07:22:14]Read from MH i2c: E2 03 00 [07:22:14]MH_I2C_Read... [07:22:14]Read from MH i2c: E2 03 00 CF 40 00 90 00 83 [07:22:14]RAPDU: 90 00 [07:22:14]wFMCommunicate OK [07:22:14]wFMCommunicate request_size=255 [07:22:14]MH_SAM_APDU [07:22: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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A9 7C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7B 02 00 35 04 06 00 E6 [07:22:14]Write to MH i2c: E2 02 01 D0 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A9 7C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7B 02 00 35 04 06 00 E6 00 00 B9 [07:22:14]Write i2c OK [07:22:14]MH_I2C_Read... [07:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:15]Read from MH i2c: E2 [07:22:15]MH_I2C_Read... [07:22:15]Read from MH i2c: E2 03 00 [07:22:15]MH_I2C_Read... [07:22:15]Read from MH i2c: E2 03 00 D0 40 00 90 00 84 [07:22:15]RAPDU: 90 00 [07:22:15]wFMCommunicate OK [07:22:15]wFMCommunicate request_size=10 [07:22:15]MH_SAM_APDU [07:22:15]CAPDU: 80 0D 02 02 05 E9 53 75 FE C9 [07:22:15]Write to MH i2c: E2 0D 00 D1 40 80 0D 02 02 05 00 E9 53 75 FE C9 00 00 0D [07:22:15]Write i2c OK [07:22:15]MH_I2C_Read... [07:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:15]Read from MH i2c: E2 [07:22:15]MH_I2C_Read... [07:22:15]Read from MH i2c: E2 03 00 [07:22:15]MH_I2C_Read... [07:22:15]Read from MH i2c: E2 03 00 D1 40 00 90 00 85 [07:22:15]RAPDU: 90 00 [07:22:15]wFMCommunicate OK [07:22:15]wFMCommunicate request_size=4 [07:22:15]MH_SAM_APDU [07:22:15]CAPDU: 80 0D 03 02 [07:22:15]Write to MH i2c: E2 08 00 D2 40 80 0D 03 02 00 00 00 00 8D [07:22:15]Write i2c OK [07:22:15]MH_I2C_Read... [07:22:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:22:15]Read from MH i2c: E2 [07:22:15]MH_I2C_Read... [07:22:15]Read from MH i2c: E2 0B 00 [07:22:15]MH_I2C_Read... [07:22:15]Read from MH i2c: E2 0B 00 D2 40 00 46 56 46 CA 4F 28 78 5E 90 00 87 [07:22:15]RAPDU: 46 56 46 CA 4F 28 78 5E 90 00 [07:22:15]wFMCommunicate OK [07:22:15]SAM_PROTO_SignData done [07:22:15]FM_MakeSignedData done [07:22:15]CreateOFDProtocolMessage [07:22:15]wFMCommunicate request_size=4 [07:22:15]MH_SAM_APDU [07:22:15]CAPDU: 80 11 00 00 [07:22:15]Write to MH i2c: E2 08 00 D3 40 80 11 00 00 00 00 00 00 8D [07:22:15]Write i2c OK [07:22:15]MH_I2C_Read... [07:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:15]Read from MH i2c: E2 [07:22:15]MH_I2C_Read... [07:22:15]Read from MH i2c: E2 17 00 [07:22:15]MH_I2C_Read... [07:22:15]Read from MH i2c: E2 17 00 D3 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 ED [07:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:22:15]wFMCommunicate OK [07:22:15]CreateOFDProtocolMessage done [07:22:15]OFDSenderStorePacket 162730 [07:22:15]StoreOFDPacket docnum=162730 [07:22:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D3 16 07 01 5D 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A9 7C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7B 02 00 35 04 06 00 E6 E9 53 75 FE C9 46 56 46 CA 4F 28 78 5E [07:22:15]CheckFolder [07:22:15]dirname=/storage/ofd_packets [07:22:15]CheckFolder done [07:22:15]ProducePacketName [07:22:15]name=ofd_packets/00162730 [07:22:15]NVStorageSaveData ofd_packets/00162730 [07:22:15]File name is /storage/ofd_packets/00162730 [07:22:15]Write 301 bytes [07:22:15]NVStorageSaveData done [07:22:15]OFDSenderStorePacket done [07:22:15]KKMCreateOFDPacket done [07:22:15]NVStorageSaveData kkm_last_timestamp [07:22:15]File name is /storage/kkm_last_timestamp [07:22:15]Write 4 bytes [07:22:15]NVStorageSaveData done [07:22:15]ExternCall_PrintAddStr [07:22:15]wPrintStart [07:22:15]Write to MH i2c: 01 00 00 D4 40 14 [07:22:15]Write i2c OK [07:22:15]MH_I2C_Read... [07:22:15]Read from MH i2c: 01 [07:22:15]MH_I2C_Read... [07:22:15]Read from MH i2c: 01 07 00 [07:22:15]MH_I2C_Read... [07:22:15]Read from MH i2c: 01 07 00 D4 40 00 00 00 00 00 FF 0F 29 [07:22:15]RasterBufferAndPrint [07:22:15]line Счет N : (1)1319312 [07:22:15]line ИНН: 02508201610067 [07:22:15]line Контрольно-Кассовый Чек [07:22:15]line ПРОДАЖА [07:22:15]line ТРК (МРК, ГНК) : 63 [07:22:15]line Товар: 2710124130 [07:22:15]line Аи-92-К-5 [07:22:15]line 15.090 * 66.30 [07:22:15]line = 1000.47 [07:22:15]line НДС 12% НСП 1% [07:22:15]line > о реализуемом товаре [07:22:15]line ОКРУГЛЕНИЕ: -0.47 [07:22:15]line ИТОГО: 1000.00 [07:22:15]line Внесено: 1000.00 [07:22:15]line СДАЧА: 0.00 [07:22:15]line НСП 1% : 8.85 [07:22:15]line НДС 12% : 106.24 [07:22:15]line Наличными: 1000.00 [07:22:15]line Безнал.: 0.00 [07:22:15]line Место: АЗС № 140 "Партнер Нефть" [07:22:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:22:15]line СНО: Общий режим [07:22:15]line Чек 42 14.07.2024 07:22 [07:22:15]line Смена: 463 ФФД: 1.0 [07:22:15]line ЗНМ: 0300000129 [07:22:15]line РНМ: 0000000000090858 [07:22:15]line Версия ККМ: 001 [07:22:15]line ФМ: 0000000000874899 [07:22:15]line ФД: 162730 [07:22:15]line ФПД: 253889802010313 [07:22:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T072217&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162730&fm=253889802010313&tin=02508201610067®Number=0000000000090858&sum=100000 [07:22:15]OFD Sender: Processing packet 162730 [packets to send 106, broken 105] [07:22:15]ProducePacketName [07:22:15]name=ofd_packets/00162730 [07:22:15]OFD Sender: To server: pG, [07:22:15]CommunicateWithHost lk.salyk.kg:30040 [07:22:15]ConnectInit lk.salyk.kg [07:22:15]written 0, free lines is 4095 [07:22:15]Connected sock=10 [07:22:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D3 16 07 01 5D 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A9 7C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7B 02 00 35 04 06 00 E6 E9 53 75 FE C9 46 56 46 CA 4F 28 78 5E [07:22:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B5 8F 47 00 50 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7B 02 00 F4 03 04 00 B6 28 93 66 B6 04 01 00 00 DA 58 2F 1D C0 61 D7 7F [07:22:16]CommunicateWithHost err = 0 [07:22:16]CheckOFDResponse [07:22:16]1017 (14) - 77093643461234 [07:22:16]1041 (16) - 0000000000874899 [07:22:16]1040 (4) - 162730 [07:22:16]1012 (4) - 14.07.2024 01:24 [07:22:16]1206 (1) - 0 [07:22:16]OFD Sender: Remove packet 162730 [07:22:16]ProducePacketName [07:22:16]name=ofd_packets/00162730 [07:22:16]NVStorageDeleteData [07:22:16]Write to MH i2c: 01 00 00 FF 40 3F [07:22:16]Write i2c OK [07:22:16]MH_I2C_Read... [07:22:16]Read from MH i2c: 01 [07:22:16]MH_I2C_Read... [07:22:16]Read from MH i2c: 01 07 00 [07:22:16]MH_I2C_Read... [07:22:16]Read from MH i2c: 01 07 00 FF 40 00 00 00 00 00 CB 0C 1D [07:22:16]RasterBufferAndPrint [07:22:16]line [07:22:16]line [07:22:16]line [07:22:16]line [07:22:16]line [07:22:16]written 0, free lines is 3283 [07:22:16]MH_Cut [07:22:16]Write to MH i2c: D1 01 00 06 41 01 19 [07:22:16]Write i2c OK [07:22:16]MH_I2C_Read... [07:22:16]Read from MH i2c: D1 [07:22:16]MH_I2C_Read... [07:22:16]Read from MH i2c: D1 01 00 [07:22:16]MH_I2C_Read... [07:22:16]Read from MH i2c: D1 01 00 06 41 00 18 [07:22:16]Write to MH i2c: 01 00 00 07 41 48 [07:22:16]Write i2c OK [07:22:16]MH_I2C_Read... [07:22:16]OFD Sender: No OFD packet to send [07:22:16]*** Cut start [07:22:16]*** Purtial cut [07:22:16]*** Stage 1: CUTSNS_PIN = 1 [07:22:17]Read from MH i2c: 01 [07:22:17]MH_I2C_Read... [07:22:17]*** Stop cut motor [07:22:17]*** Cut end [07:22:17]Read from MH i2c: 01 07 00 [07:22:17]MH_I2C_Read... [07:22:17]Read from MH i2c: 01 07 00 07 41 00 00 00 00 00 FF 0F 5D [07:22:17]process_action close_receipt done [07:22:17]requested_data is exist [07:22:17]produce_requested_data [07:22:17]requested_item fm.sn is exist - process it [07:22:17]wFMCommunicate request_size=4 [07:22:17]MH_SAM_APDU [07:22:17]CAPDU: 80 11 00 00 [07:22:17]Write to MH i2c: E2 08 00 08 41 80 11 00 00 00 00 00 00 C3 [07:22:17]Write i2c OK [07:22:17]MH_I2C_Read... [07:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:17]Read from MH i2c: E2 [07:22:17]MH_I2C_Read... [07:22:17]Read from MH i2c: E2 17 00 [07:22:17]MH_I2C_Read... [07:22:17]Read from MH i2c: E2 17 00 08 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 23 [07:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:22:17]wFMCommunicate OK [07:22:17]requested_item fd.num is exist - process it [07:22:17]SAM_PROTO_GetFieldsCounters [07:22:17]wFMCommunicate request_size=4 [07:22:17]MH_SAM_APDU [07:22:17]CAPDU: 80 13 00 00 [07:22:17]Write to MH i2c: E2 08 00 09 41 80 13 00 00 00 00 00 00 C6 [07:22:17]Write i2c OK [07:22:17]MH_I2C_Read... [07:22:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:17]Read from MH i2c: E2 [07:22:17]MH_I2C_Read... [07:22:17]Read from MH i2c: E2 62 00 [07:22:17]MH_I2C_Read... [07:22:17]Read from MH i2c: E2 62 00 09 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AA 7B 02 00 0E 04 04 00 CF 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 6E [07:22:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AA 7B 02 00 0E 04 04 00 CF 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 [07:22:17]wFMCommunicate OK [07:22:17]SAM_PROTO_GetFieldsCounters done [07:22:17]requested_item shift.num is exist - process it [07:22:17]requested_item shift.opened is exist - process it [07:22:17]req_shift_opened [07:22:17]FM_GetShiftState [07:22:17]SAM_PROTO_GetShiftState [07:22:17]wFMCommunicate request_size=4 [07:22:17]MH_SAM_APDU [07:22:17]CAPDU: 80 13 01 00 [07:22:17]Write to MH i2c: E2 08 00 0A 41 80 13 01 00 00 00 00 00 C8 [07:22:17]Write i2c OK [07:22:17]MH_I2C_Read... [07:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:17]Read from MH i2c: E2 [07:22:17]MH_I2C_Read... [07:22:17]Read from MH i2c: E2 0E 00 [07:22:17]MH_I2C_Read... [07:22:17]Read from MH i2c: E2 0E 00 0A 41 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 FE [07:22:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:22:17]wFMCommunicate OK [07:22:17]SAM_PROTO_GetShiftState done [07:22:17]FM_GetShiftState done [07:22:17]req_shift_opened done [07:22:17]requested_item shift.open_date is exist - process it [07:22:17]req_shift_open_date [07:22:17]req_shift_open_date done [07:22:17]produce_requested_data done [07:22:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162730,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [07:22:17]process_action_free close_receipt [07:22:17]json_value_free [07:22:17]json_value_free done [07:22:17]process_json_proto returns [07:22:17]Send response to host [07:22:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162730,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [07:22:17]free response buf [07:22:17]execute_script done [07:22:17]execute_script returns [07:22:17]free content buf [07:22:17]Sock 9.Close socket [07:22:17]Sock 9.Thread stoped [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:26]accept exits with 7 [07:30:26]New connection [07:30:26]New thread 3067366756 created [07:30:26]Thread 3067510116 joined [07:30:26]Waiting for new connection... [07:30:26] Sock 7.Parse request [07:30:26]Sock 7.Check first char [07:30:26]Sock 7.First char is OK [07:30:26]request: POST /json_proto HTTP/1.0 [07:30:26]Method: POST [07:30:26]URL: /json_proto [07:30:26]Method is POST - this is cgi request [07:30:26]url: /json_proto [07:30:26]query_string will be loaded in cgi processing [07:30:26]execute_cgi json_proto POST (null) [07:30:26]execute_cgi path=json_proto method=POST [07:30:26]POST find Content-Length [07:30:26]Host: 172.17.39.67:8080 [07:30:26]Content-Length: 683 [07:30:26]Content-Type: application/json [07:30:26] [07:30:26]POST finish read [07:30:26]Found Content-Length = 683 [07:30:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 30.170, "sum" : 2000.27, "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:30:26]execute_script... [07:30:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 30.170, "sum" : 2000.27, "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:30:26]POST & json_proto [07:30:26]process_json_proto [07:30:26]json parsed OK: [07:30:26]protocol is kg_v1.0 [07:30:26]action value=close_receipt [07:30:26]process_action close_receipt [07:30:26]cmd_close_receipt [07:30:26]MH_GetDate [07:30:26]Write to MH i2c: F0 00 00 0B 41 3B [07:30:26]Write i2c OK [07:30:26]MH_I2C_Read... [07:30:26]Read from MH i2c: F0 [07:30:26]MH_I2C_Read... [07:30:26]Read from MH i2c: F0 09 00 [07:30:26]MH_I2C_Read... [07:30:26]Read from MH i2c: F0 09 00 0B 41 00 96 7E 93 66 86 7C 92 66 4B [07:30:26]GetLastDocTimeStamp 1720941737 [07:30:26]current date 1720942230 [07:30:26]FM_GetShiftState [07:30:26]SAM_PROTO_GetShiftState [07:30:26]wFMCommunicate request_size=4 [07:30:26]MH_SAM_APDU [07:30:26]CAPDU: 80 13 01 00 [07:30:26]Write to MH i2c: E2 08 00 0C 41 80 13 01 00 00 00 00 00 CA [07:30:26]Write i2c OK [07:30:26]MH_I2C_Read... [07:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:26]Read from MH i2c: E2 [07:30:26]MH_I2C_Read... [07:30:26]Read from MH i2c: E2 0E 00 [07:30:26]MH_I2C_Read... [07:30:26]Read from MH i2c: E2 0E 00 0C 41 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 00 [07:30:26]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:30:26]wFMCommunicate OK [07:30:26]SAM_PROTO_GetShiftState done [07:30:26]FM_GetShiftState done [07:30:26]opened in 1720915483 [07:30:26]opened+sec_in_day 1721001883 [07:30:26]quantity*price = 200027 [07:30:26]sum+1 = 200028 [07:30:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 43 14.07.2024 07:30 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162731 ФПД: 216833690567596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T073030&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162731&fm=216833690567596&tin=02508201610067®Number=0000000000090858&sum=200000 [07:30:27]StoreToDocumentArchive [07:30:27]shift 463 fd 162731 [07:30:27]save to /storage/0463/doc_00162731 [07:30:27]save last doc name /storage/0463/doc_00162731 to /storage/kkm_last_doc_name [07:30:27]save OK [07:30:27]Clear old archive folders... [07:30:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:30:27]tlvbuf is 0060C280 [07:30:27]SAM_PROTO_ClearQueue [07:30:27]wFMCommunicate request_size=4 [07:30:27]MH_SAM_APDU [07:30:27]CAPDU: 80 09 00 00 [07:30:27]Write to MH i2c: E2 08 00 19 41 80 09 00 00 00 00 00 00 CC [07:30:27]Write i2c OK [07:30:27]MH_I2C_Read... [07:30:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:30:27]Read from MH i2c: E2 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 03 00 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 03 00 19 41 00 90 00 CE [07:30:27]RAPDU: 90 00 [07:30:27]wFMCommunicate OK [07:30:27]SAM_PROTO_ClearQueue done [07:30:27]KKMCreateOFDPacket [07:30:27]OFDProtocolAddRootSTLVToBuf [07:30:27]FM_MakeSignedData [07:30:27]FM_MakeSignedData [07:30:27]SAM_PROTO_SignData [07:30:27]wFMCommunicate request_size=4 [07:30:27]MH_SAM_APDU [07:30:27]CAPDU: 80 0D 01 02 [07:30:27]Write to MH i2c: E2 08 00 1A 41 80 0D 01 02 00 00 00 00 D4 [07:30:27]Write i2c OK [07:30:27]MH_I2C_Read... [07:30:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:30:27]Read from MH i2c: E2 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 03 00 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 03 00 1A 41 00 90 00 CF [07:30:27]RAPDU: 90 00 [07:30:27]wFMCommunicate OK [07:30:27]wFMCommunicate request_size=255 [07:30:27]MH_SAM_APDU [07:30:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 5B 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 2B 00 00 00 F4 03 04 00 96 7E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7B 02 00 35 04 06 00 C5 [07:30:27]Write to MH i2c: E2 02 01 1B 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 5B 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 2B 00 00 00 F4 03 04 00 96 7E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7B 02 00 35 04 06 00 C5 00 00 7A [07:30:27]Write i2c OK [07:30:27]MH_I2C_Read... [07:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:28]Read from MH i2c: E2 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 03 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 03 00 1B 41 00 90 00 D0 [07:30:28]RAPDU: 90 00 [07:30:28]wFMCommunicate OK [07:30:28]wFMCommunicate request_size=10 [07:30:28]MH_SAM_APDU [07:30:28]CAPDU: 80 0D 02 02 05 35 87 1A 03 AC [07:30:28]Write to MH i2c: E2 0D 00 1C 41 80 0D 02 02 05 00 35 87 1A 03 AC 00 00 66 [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:28]Read from MH i2c: E2 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 03 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 03 00 1C 41 00 90 00 D1 [07:30:28]RAPDU: 90 00 [07:30:28]wFMCommunicate OK [07:30:28]wFMCommunicate request_size=4 [07:30:28]MH_SAM_APDU [07:30:28]CAPDU: 80 0D 03 02 [07:30:28]Write to MH i2c: E2 08 00 1D 41 80 0D 03 02 00 00 00 00 D9 [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:30:28]Read from MH i2c: E2 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 0B 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 0B 00 1D 41 00 68 E1 7E F8 E7 52 CC D6 90 00 74 [07:30:28]RAPDU: 68 E1 7E F8 E7 52 CC D6 90 00 [07:30:28]wFMCommunicate OK [07:30:28]SAM_PROTO_SignData done [07:30:28]FM_MakeSignedData done [07:30:28]CreateOFDProtocolMessage [07:30:28]wFMCommunicate request_size=4 [07:30:28]MH_SAM_APDU [07:30:28]CAPDU: 80 11 00 00 [07:30:28]Write to MH i2c: E2 08 00 1E 41 80 11 00 00 00 00 00 00 D9 [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:28]Read from MH i2c: E2 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 17 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 17 00 1E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 39 [07:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:30:28]wFMCommunicate OK [07:30:28]CreateOFDProtocolMessage done [07:30:28]OFDSenderStorePacket 162731 [07:30:28]StoreOFDPacket docnum=162731 [07:30:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DE 14 07 01 00 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 5B 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 2B 00 00 00 F4 03 04 00 96 7E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7B 02 00 35 04 06 00 C5 35 87 1A 03 AC 68 E1 7E F8 E7 52 CC D6 [07:30:28]CheckFolder [07:30:28]dirname=/storage/ofd_packets [07:30:28]CheckFolder done [07:30:28]ProducePacketName [07:30:28]name=ofd_packets/00162731 [07:30:28]NVStorageSaveData ofd_packets/00162731 [07:30:28]File name is /storage/ofd_packets/00162731 [07:30:28]Write 301 bytes [07:30:28]NVStorageSaveData done [07:30:28]OFDSenderStorePacket done [07:30:28]KKMCreateOFDPacket done [07:30:28]NVStorageSaveData kkm_last_timestamp [07:30:28]File name is /storage/kkm_last_timestamp [07:30:28]Write 4 bytes [07:30:28]NVStorageSaveData done [07:30:28]ExternCall_PrintAddStr [07:30:28]wPrintStart [07:30:28]Write to MH i2c: 01 00 00 1F 41 60 [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: 01 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: 01 07 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: 01 07 00 1F 41 00 00 00 00 00 FF 0F 75 [07:30:28]RasterBufferAndPrint [07:30:28]line Счет N : (1)1319313 [07:30:28]line ИНН: 02508201610067 [07:30:28]line Контрольно-Кассовый Чек [07:30:28]line ПРОДАЖА [07:30:28]line ТРК (МРК, ГНК) : 43 [07:30:28]line Товар: 2710124130 [07:30:28]line Аи-92-К-5 [07:30:28]line 30.170 * 66.30 [07:30:28]line = 2000.27 [07:30:28]line НДС 12% НСП 1% [07:30:28]line > о реализуемом товаре [07:30:28]line ОКРУГЛЕНИЕ: -0.27 [07:30:28]line ИТОГО: 2000.00 [07:30:28]line Внесено: 2000.00 [07:30:28]line СДАЧА: 0.00 [07:30:28]line НСП 1% : 17.70 [07:30:28]line НДС 12% : 212.42 [07:30:28]line Наличными: 2000.00 [07:30:28]line Безнал.: 0.00 [07:30:28]line Место: АЗС № 140 "Партнер Нефть" [07:30:28]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:30:28]line СНО: Общий режим [07:30:28]line Чек 43 14.07.2024 07:30 [07:30:28]line Смена: 463 ФФД: 1.0 [07:30:28]line ЗНМ: 0300000129 [07:30:28]line РНМ: 0000000000090858 [07:30:28]line Версия ККМ: 001 [07:30:28]line ФМ: 0000000000874899 [07:30:28]line ФД: 162731 [07:30:28]line ФПД: 216833690567596 [07:30:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T073030&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162731&fm=216833690567596&tin=02508201610067®Number=0000000000090858&sum=200000 [07:30:28]OFD Sender: Processing packet 162731 [packets to send 106, broken 105] [07:30:28]ProducePacketName [07:30:28]name=ofd_packets/00162731 [07:30:28]OFD Sender: To server: pG, [07:30:28]CommunicateWithHost lk.salyk.kg:30040 [07:30:28]ConnectInit lk.salyk.kg [07:30:28]written 0, free lines is 4095 [07:30:28]Connected sock=10 [07:30:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DE 14 07 01 00 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 5B 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 2B 00 00 00 F4 03 04 00 96 7E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7B 02 00 35 04 06 00 C5 35 87 1A 03 AC 68 E1 7E F8 E7 52 CC D6 [07:30:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7A F2 47 00 EC EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7B 02 00 F4 03 04 00 A3 2A 93 66 B6 04 01 00 00 98 28 23 B6 03 DE C9 34 [07:30:29]CommunicateWithHost err = 0 [07:30:29]CheckOFDResponse [07:30:29]1017 (14) - 77093643461234 [07:30:29]1041 (16) - 0000000000874899 [07:30:29]1040 (4) - 162731 [07:30:29]1012 (4) - 14.07.2024 01:32 [07:30:29]1206 (1) - 0 [07:30:29]OFD Sender: Remove packet 162731 [07:30:29]ProducePacketName [07:30:29]name=ofd_packets/00162731 [07:30:29]NVStorageDeleteData [07:30:29]Write to MH i2c: 01 00 00 4A 41 8B [07:30:29]Write i2c OK [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: 01 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: 01 07 00 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: 01 07 00 4A 41 00 00 00 00 00 D1 0C 6F [07:30:29]RasterBufferAndPrint [07:30:29]line [07:30:29]line [07:30:29]line [07:30:29]line [07:30:29]line [07:30:29]written 0, free lines is 3287 [07:30:29]MH_Cut [07:30:29]Write to MH i2c: D1 01 00 51 41 01 64 [07:30:29]Write i2c OK [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: D1 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: D1 01 00 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: D1 01 00 51 41 00 63 [07:30:29]Write to MH i2c: 01 00 00 52 41 93 [07:30:29]Write i2c OK [07:30:29]MH_I2C_Read... [07:30:29]OFD Sender: No OFD packet to send [07:30:29]*** Cut start [07:30:29]*** Purtial cut [07:30:29]*** CUTSNS_PIN = 0 [07:30:30]*** Stage 1: CUTSNS_PIN = 1 [07:30:31]Read from MH i2c: 01 [07:30:31]MH_I2C_Read... [07:30:31]*** Stop cut motor [07:30:31]*** Cut end [07:30:31]Read from MH i2c: 01 07 00 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: 01 07 00 52 41 00 00 00 00 00 FF 0F A8 [07:30:31]process_action close_receipt done [07:30:31]requested_data is exist [07:30:31]produce_requested_data [07:30:31]requested_item fm.sn is exist - process it [07:30:31]wFMCommunicate request_size=4 [07:30:31]MH_SAM_APDU [07:30:31]CAPDU: 80 11 00 00 [07:30:31]Write to MH i2c: E2 08 00 53 41 80 11 00 00 00 00 00 00 0E [07:30:31]Write i2c OK [07:30:31]MH_I2C_Read... [07:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:32]Read from MH i2c: E2 [07:30:32]MH_I2C_Read... [07:30:32]Read from MH i2c: E2 17 00 [07:30:32]MH_I2C_Read... [07:30:32]Read from MH i2c: E2 17 00 53 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6E [07:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:30:32]wFMCommunicate OK [07:30:32]requested_item fd.num is exist - process it [07:30:32]SAM_PROTO_GetFieldsCounters [07:30:32]wFMCommunicate request_size=4 [07:30:32]MH_SAM_APDU [07:30:32]CAPDU: 80 13 00 00 [07:30:32]Write to MH i2c: E2 08 00 54 41 80 13 00 00 00 00 00 00 11 [07:30:32]Write i2c OK [07:30:32]MH_I2C_Read... [07:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:30:32]Read from MH i2c: E2 [07:30:32]MH_I2C_Read... [07:30:32]Read from MH i2c: E2 62 00 [07:30:32]MH_I2C_Read... [07:30:32]Read from MH i2c: E2 62 00 54 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AB 7B 02 00 0E 04 04 00 CF 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 BD [07:30:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AB 7B 02 00 0E 04 04 00 CF 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 [07:30:32]wFMCommunicate OK [07:30:32]SAM_PROTO_GetFieldsCounters done [07:30:32]requested_item shift.num is exist - process it [07:30:32]requested_item shift.opened is exist - process it [07:30:32]req_shift_opened [07:30:32]FM_GetShiftState [07:30:32]SAM_PROTO_GetShiftState [07:30:32]wFMCommunicate request_size=4 [07:30:32]MH_SAM_APDU [07:30:32]CAPDU: 80 13 01 00 [07:30:32]Write to MH i2c: E2 08 00 55 41 80 13 01 00 00 00 00 00 13 [07:30:32]Write i2c OK [07:30:32]MH_I2C_Read... [07:30:32]Read from MH i2c: E2 [07:30:32]MH_I2C_Read... [07:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:32]Read from MH i2c: E2 0E 00 [07:30:32]MH_I2C_Read... [07:30:32]Read from MH i2c: E2 0E 00 55 41 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 49 [07:30:32]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:30:32]wFMCommunicate OK [07:30:32]SAM_PROTO_GetShiftState done [07:30:32]FM_GetShiftState done [07:30:32]req_shift_opened done [07:30:32]requested_item shift.open_date is exist - process it [07:30:32]req_shift_open_date [07:30:32]req_shift_open_date done [07:30:32]produce_requested_data done [07:30:32]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162731,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [07:30:32]process_action_free close_receipt [07:30:32]json_value_free [07:30:32]json_value_free done [07:30:32]process_json_proto returns [07:30:32]Send response to host [07:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162731,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [07:30:32]free response buf [07:30:32]execute_script done [07:30:32]execute_script returns [07:30:32]free content buf [07:30:32]Sock 7.Close socket [07:30:32]Sock 7.Thread stoped [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:02]accept exits with 9 [07:34:02]New connection [07:34:02]New thread 3067510116 created [07:34:02]Thread 3067366756 joined [07:34:02]Waiting for new connection... [07:34:02] Sock 9.Parse request [07:34:02]Sock 9.Check first char [07:34:02]Sock 9.First char is OK [07:34:02]request: POST /json_proto HTTP/1.0 [07:34:02]Method: POST [07:34:02]URL: /json_proto [07:34:02]Method is POST - this is cgi request [07:34:02]url: /json_proto [07:34:02]query_string will be loaded in cgi processing [07:34:02]execute_cgi json_proto POST (null) [07:34:02]execute_cgi path=json_proto method=POST [07:34:02]POST find Content-Length [07:34:02]Host: 172.17.39.67:8080 [07:34:02]Content-Length: 678 [07:34:02]Content-Type: application/json [07:34:02] [07:34:02]POST finish read [07:34:02]Found Content-Length = 678 [07:34:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:34:02]execute_script... [07:34: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)1319314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:34:02]POST & json_proto [07:34:02]process_json_proto [07:34:02]json parsed OK: [07:34:02]protocol is kg_v1.0 [07:34:02]action value=close_receipt [07:34:02]process_action close_receipt [07:34:02]cmd_close_receipt [07:34:02]MH_GetDate [07:34:02]Write to MH i2c: F0 00 00 56 41 86 [07:34:02]Write i2c OK [07:34:02]MH_I2C_Read... [07:34:02]Read from MH i2c: F0 [07:34:02]MH_I2C_Read... [07:34:02]Read from MH i2c: F0 09 00 [07:34:02]MH_I2C_Read... [07:34:02]Read from MH i2c: F0 09 00 56 41 00 6F 7F 93 66 86 7C 92 66 70 [07:34:02]GetLastDocTimeStamp 1720942230 [07:34:02]current date 1720942447 [07:34:02]FM_GetShiftState [07:34:02]SAM_PROTO_GetShiftState [07:34:02]wFMCommunicate request_size=4 [07:34:02]MH_SAM_APDU [07:34:02]CAPDU: 80 13 01 00 [07:34:02]Write to MH i2c: E2 08 00 57 41 80 13 01 00 00 00 00 00 15 [07:34:02]Write i2c OK [07:34:02]MH_I2C_Read... [07:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:03]Read from MH i2c: E2 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: E2 0E 00 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: E2 0E 00 57 41 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4B [07:34:03]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:34:03]wFMCommunicate OK [07:34:03]SAM_PROTO_GetShiftState done [07:34:03]FM_GetShiftState done [07:34:03]opened in 1720915483 [07:34:03]opened+sec_in_day 1721001883 [07:34:03]quantity*price = 50056 [07:34:03]sum+1 = 50058 [07:34:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 44 14.07.2024 07:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162732 ФПД: 218170407695626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T073407&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162732&fm=218170407695626&tin=02508201610067®Number=0000000000090858&sum=50000 [07:34:04]StoreToDocumentArchive [07:34:04]shift 463 fd 162732 [07:34:04]save to /storage/0463/doc_00162732 [07:34:04]save last doc name /storage/0463/doc_00162732 to /storage/kkm_last_doc_name [07:34:04]save OK [07:34:04]Clear old archive folders... [07:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:34:04]tlvbuf is B6E306F0 [07:34:04]SAM_PROTO_ClearQueue [07:34:04]wFMCommunicate request_size=4 [07:34:04]MH_SAM_APDU [07:34:04]CAPDU: 80 09 00 00 [07:34:04]Write to MH i2c: E2 08 00 64 41 80 09 00 00 00 00 00 00 17 [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:04]Read from MH i2c: E2 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 64 41 00 90 00 19 [07:34:04]RAPDU: 90 00 [07:34:04]wFMCommunicate OK [07:34:04]SAM_PROTO_ClearQueue done [07:34:04]KKMCreateOFDPacket [07:34:04]OFDProtocolAddRootSTLVToBuf [07:34:04]FM_MakeSignedData [07:34:04]FM_MakeSignedData [07:34:04]SAM_PROTO_SignData [07:34:04]wFMCommunicate request_size=4 [07:34:04]MH_SAM_APDU [07:34:04]CAPDU: 80 0D 01 02 [07:34:04]Write to MH i2c: E2 08 00 65 41 80 0D 01 02 00 00 00 00 1F [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:04]Read from MH i2c: E2 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 65 41 00 90 00 1A [07:34:04]RAPDU: 90 00 [07:34:04]wFMCommunicate OK [07:34:04]wFMCommunicate request_size=255 [07:34:04]MH_SAM_APDU [07:34: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 2C 00 00 00 F4 03 04 00 6F 7F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7B 02 00 35 04 06 00 C6 [07:34:04]Write to MH i2c: E2 02 01 66 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 2C 00 00 00 F4 03 04 00 6F 7F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7B 02 00 35 04 06 00 C6 00 00 AD [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:04]Read from MH i2c: E2 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 66 41 00 90 00 1B [07:34:04]RAPDU: 90 00 [07:34:04]wFMCommunicate OK [07:34:04]wFMCommunicate request_size=10 [07:34:04]MH_SAM_APDU [07:34:04]CAPDU: 80 0D 02 02 05 6C C1 A6 B5 0A [07:34:04]Write to MH i2c: E2 0D 00 67 41 80 0D 02 02 05 00 6C C1 A6 B5 0A 00 00 BE [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:04]Read from MH i2c: E2 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 67 41 00 90 00 1C [07:34:04]RAPDU: 90 00 [07:34:04]wFMCommunicate OK [07:34:04]wFMCommunicate request_size=4 [07:34:04]MH_SAM_APDU [07:34:04]CAPDU: 80 0D 03 02 [07:34:04]Write to MH i2c: E2 08 00 68 41 80 0D 03 02 00 00 00 00 24 [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:04]Read from MH i2c: E2 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 0B 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 0B 00 68 41 00 FD EA 23 7F 44 F0 62 CD 90 00 11 [07:34:04]RAPDU: FD EA 23 7F 44 F0 62 CD 90 00 [07:34:04]wFMCommunicate OK [07:34:04]SAM_PROTO_SignData done [07:34:04]FM_MakeSignedData done [07:34:04]CreateOFDProtocolMessage [07:34:04]wFMCommunicate request_size=4 [07:34:04]MH_SAM_APDU [07:34:04]CAPDU: 80 11 00 00 [07:34:04]Write to MH i2c: E2 08 00 69 41 80 11 00 00 00 00 00 00 24 [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:04]Read from MH i2c: E2 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 17 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 17 00 69 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 84 [07:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:34:04]wFMCommunicate OK [07:34:04]CreateOFDProtocolMessage done [07:34:04]OFDSenderStorePacket 162732 [07:34:04]StoreOFDPacket docnum=162732 [07:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2F F1 07 01 92 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 2C 00 00 00 F4 03 04 00 6F 7F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7B 02 00 35 04 06 00 C6 6C C1 A6 B5 0A FD EA 23 7F 44 F0 62 CD [07:34:04]CheckFolder [07:34:04]dirname=/storage/ofd_packets [07:34:04]CheckFolder done [07:34:04]ProducePacketName [07:34:04]name=ofd_packets/00162732 [07:34:04]NVStorageSaveData ofd_packets/00162732 [07:34:04]File name is /storage/ofd_packets/00162732 [07:34:04]Write 301 bytes [07:34:04]NVStorageSaveData done [07:34:04]OFDSenderStorePacket done [07:34:04]KKMCreateOFDPacket done [07:34:04]NVStorageSaveData kkm_last_timestamp [07:34:04]File name is /storage/kkm_last_timestamp [07:34:04]Write 4 bytes [07:34:04]NVStorageSaveData done [07:34:04]ExternCall_PrintAddStr [07:34:04]wPrintStart [07:34:04]Write to MH i2c: 01 00 00 6A 41 AB [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: 01 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: 01 07 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: 01 07 00 6A 41 00 00 00 00 00 FF 0F C0 [07:34:04]RasterBufferAndPrint [07:34:04]line Счет N : (1)1319314 [07:34:04]line ИНН: 02508201610067 [07:34:04]line Контрольно-Кассовый Чек [07:34:04]line ПРОДАЖА [07:34:04]line ТРК (МРК, ГНК) : 43 [07:34:04]line Товар: 2710124130 [07:34:04]line Аи-92-К-5 [07:34:04]line 7.550 * 66.30 [07:34:04]line = 500.57 [07:34:04]line НДС 12% НСП 1% [07:34:04]line > о реализуемом товаре [07:34:04]line ОКРУГЛЕНИЕ: -0.57 [07:34:04]line ИТОГО: 500.00 [07:34:04]line Внесено: 500.00 [07:34:04]line СДАЧА: 0.00 [07:34:04]line НСП 1% : 4.43 [07:34:04]line НДС 12% : 53.16 [07:34:04]line Наличными: 500.00 [07:34:04]line Безнал.: 0.00 [07:34:04]line Место: АЗС № 140 "Партнер Нефть" [07:34:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:34:04]line СНО: Общий режим [07:34:04]line Чек 44 14.07.2024 07:34 [07:34:04]line Смена: 463 ФФД: 1.0 [07:34:04]line ЗНМ: 0300000129 [07:34:04]line РНМ: 0000000000090858 [07:34:04]line Версия ККМ: 001 [07:34:04]line ФМ: 0000000000874899 [07:34:04]line ФД: 162732 [07:34:04]line ФПД: 218170407695626 [07:34:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T073407&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162732&fm=218170407695626&tin=02508201610067®Number=0000000000090858&sum=50000 [07:34:05]OFD Sender: Processing packet 162732 [packets to send 106, broken 105] [07:34:05]ProducePacketName [07:34:05]name=ofd_packets/00162732 [07:34:05]OFD Sender: To server: pG, [07:34:05]CommunicateWithHost lk.salyk.kg:30040 [07:34:05]ConnectInit lk.salyk.kg [07:34:05]written 0, free lines is 4095 [07:34:05]Connected sock=10 [07:34:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2F F1 07 01 92 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 2C 00 00 00 F4 03 04 00 6F 7F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7B 02 00 35 04 06 00 C6 6C C1 A6 B5 0A FD EA 23 7F 44 F0 62 CD [07:34:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 93 78 47 00 F5 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7B 02 00 F4 03 04 00 7C 2B 93 66 B6 04 01 00 00 DA 6F F8 F5 45 8F 44 18 [07:34:05]CommunicateWithHost err = 0 [07:34:05]CheckOFDResponse [07:34:05]1017 (14) - 77093643461234 [07:34:05]1041 (16) - 0000000000874899 [07:34:05]1040 (4) - 162732 [07:34:05]1012 (4) - 14.07.2024 01:35 [07:34:05]1206 (1) - 0 [07:34:05]OFD Sender: Remove packet 162732 [07:34:05]ProducePacketName [07:34:05]name=ofd_packets/00162732 [07:34:05]NVStorageDeleteData [07:34:05]Write to MH i2c: 01 00 00 95 41 D6 [07:34:05]Write i2c OK [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: 01 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: 01 07 00 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: 01 07 00 95 41 00 00 00 00 00 C7 0C B0 [07:34:05]RasterBufferAndPrint [07:34:05]line [07:34:05]line [07:34:05]line [07:34:05]line [07:34:05]line [07:34:05]written 0, free lines is 3277 [07:34:05]MH_Cut [07:34:05]Write to MH i2c: D1 01 00 9C 41 01 AF [07:34:05]Write i2c OK [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: D1 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: D1 01 00 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: D1 01 00 9C 41 00 AE [07:34:05]Write to MH i2c: 01 00 00 9D 41 DE [07:34:05]Write i2c OK [07:34:05]MH_I2C_Read... [07:34:05]OFD Sender: No OFD packet to send [07:34:06]*** Cut start [07:34:06]*** Purtial cut [07:34:06]*** Stage 1: CUTSNS_PIN = 1 [07:34:06]Read from MH i2c: 01 [07:34:06]MH_I2C_Read... [07:34:06]*** Stop cut motor [07:34:06]*** Cut end [07:34:06]Read from MH i2c: 01 07 00 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: 01 07 00 9D 41 00 00 00 00 00 FF 0F F3 [07:34:06]process_action close_receipt done [07:34:06]requested_data is exist [07:34:06]produce_requested_data [07:34:06]requested_item fm.sn is exist - process it [07:34:06]wFMCommunicate request_size=4 [07:34:06]MH_SAM_APDU [07:34:06]CAPDU: 80 11 00 00 [07:34:06]Write to MH i2c: E2 08 00 9E 41 80 11 00 00 00 00 00 00 59 [07:34:06]Write i2c OK [07:34:06]MH_I2C_Read... [07:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:06]Read from MH i2c: E2 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 17 00 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 17 00 9E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B9 [07:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:34:06]wFMCommunicate OK [07:34:06]requested_item fd.num is exist - process it [07:34:06]SAM_PROTO_GetFieldsCounters [07:34:06]wFMCommunicate request_size=4 [07:34:06]MH_SAM_APDU [07:34:06]CAPDU: 80 13 00 00 [07:34:06]Write to MH i2c: E2 08 00 9F 41 80 13 00 00 00 00 00 00 5C [07:34:06]Write i2c OK [07:34:06]MH_I2C_Read... [07:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:06]Read from MH i2c: E2 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 62 00 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 62 00 9F 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AC 7B 02 00 0E 04 04 00 CF 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 0C [07:34:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AC 7B 02 00 0E 04 04 00 CF 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 [07:34:06]wFMCommunicate OK [07:34:06]SAM_PROTO_GetFieldsCounters done [07:34:06]requested_item shift.num is exist - process it [07:34:06]requested_item shift.opened is exist - process it [07:34:06]req_shift_opened [07:34:06]FM_GetShiftState [07:34:06]SAM_PROTO_GetShiftState [07:34:06]wFMCommunicate request_size=4 [07:34:06]MH_SAM_APDU [07:34:06]CAPDU: 80 13 01 00 [07:34:06]Write to MH i2c: E2 08 00 A0 41 80 13 01 00 00 00 00 00 5E [07:34:06]Write i2c OK [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 [07:34:06]MH_I2C_Read... [07:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:06]Read from MH i2c: E2 0E 00 [07:34:06]MH_I2C_Read... [07:34:06]Read from MH i2c: E2 0E 00 A0 41 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 94 [07:34:06]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:34:06]wFMCommunicate OK [07:34:06]SAM_PROTO_GetShiftState done [07:34:06]FM_GetShiftState done [07:34:06]req_shift_opened done [07:34:06]requested_item shift.open_date is exist - process it [07:34:06]req_shift_open_date [07:34:06]req_shift_open_date done [07:34:06]produce_requested_data done [07:34:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162732,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [07:34:06]process_action_free close_receipt [07:34:06]json_value_free [07:34:06]json_value_free done [07:34:06]process_json_proto returns [07:34:06]Send response to host [07:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162732,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [07:34:06]free response buf [07:34:06]execute_script done [07:34:06]execute_script returns [07:34:06]free content buf [07:34:06]Sock 9.Close socket [07:34:06]Sock 9.Thread stoped [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:37:56]accept exits with 7 [07:37:56]New connection [07:37:56]New thread 3067366756 created [07:37:56]Thread 3067510116 joined [07:37:56]Waiting for new connection... [07:37:56] Sock 7.Parse request [07:37:56]Sock 7.Check first char [07:37:56]Sock 7.First char is OK [07:37:56]request: POST /json_proto HTTP/1.0 [07:37:56]Method: POST [07:37:56]URL: /json_proto [07:37:56]Method is POST - this is cgi request [07:37:56]url: /json_proto [07:37:56]query_string will be loaded in cgi processing [07:37:56]execute_cgi json_proto POST (null) [07:37:56]execute_cgi path=json_proto method=POST [07:37:56]POST find Content-Length [07:37:56]Host: 172.17.39.67:8080 [07:37:56]Content-Length: 676 [07:37:56]Content-Type: application/json [07:37:56] [07:37:56]POST finish read [07:37:56]Found Content-Length = 676 [07:37:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "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" ] } } [07:37:56]execute_script... [07:37:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "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" ] } } [07:37:56]POST & json_proto [07:37:56]process_json_proto [07:37:56]json parsed OK: [07:37:56]protocol is kg_v1.0 [07:37:56]action value=close_receipt [07:37:56]process_action close_receipt [07:37:56]cmd_close_receipt [07:37:56]MH_GetDate [07:37:56]Write to MH i2c: F0 00 00 A1 41 D1 [07:37:56]Write i2c OK [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: F0 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: F0 09 00 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: F0 09 00 A1 41 00 58 80 93 66 86 7C 92 66 A5 [07:37:56]GetLastDocTimeStamp 1720942447 [07:37:56]current date 1720942680 [07:37:56]FM_GetShiftState [07:37:56]SAM_PROTO_GetShiftState [07:37:56]wFMCommunicate request_size=4 [07:37:56]MH_SAM_APDU [07:37:56]CAPDU: 80 13 01 00 [07:37:56]Write to MH i2c: E2 08 00 A2 41 80 13 01 00 00 00 00 00 60 [07:37:56]Write i2c OK [07:37:56]MH_I2C_Read... [07:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:56]Read from MH i2c: E2 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 0E 00 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 0E 00 A2 41 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 96 [07:37:56]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:37:56]wFMCommunicate OK [07:37:56]SAM_PROTO_GetShiftState done [07:37:56]FM_GetShiftState done [07:37:56]opened in 1720915483 [07:37:56]opened+sec_in_day 1721001883 [07:37:56]quantity*price = 100007 [07:37:56]sum+1 = 100009 [07:37:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 45 14.07.2024 07:38 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162733 ФПД: 65291328387108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T073800&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162733&fm=65291328387108&tin=02508201610067®Number=0000000000090858&sum=100000 [07:37:57]StoreToDocumentArchive [07:37:57]shift 463 fd 162733 [07:37:57]save to /storage/0463/doc_00162733 [07:37:57]save last doc name /storage/0463/doc_00162733 to /storage/kkm_last_doc_name [07:37:57]save OK [07:37:57]Clear old archive folders... [07:37:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:37:57]tlvbuf is 00745C40 [07:37:57]SAM_PROTO_ClearQueue [07:37:57]wFMCommunicate request_size=4 [07:37:57]MH_SAM_APDU [07:37:57]CAPDU: 80 09 00 00 [07:37:57]Write to MH i2c: E2 08 00 AF 41 80 09 00 00 00 00 00 00 62 [07:37:57]Write i2c OK [07:37:57]MH_I2C_Read... [07:37:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:57]Read from MH i2c: E2 [07:37:57]MH_I2C_Read... [07:37:57]Read from MH i2c: E2 03 00 [07:37:57]MH_I2C_Read... [07:37:57]Read from MH i2c: E2 03 00 AF 41 00 90 00 64 [07:37:57]RAPDU: 90 00 [07:37:57]wFMCommunicate OK [07:37:57]SAM_PROTO_ClearQueue done [07:37:57]KKMCreateOFDPacket [07:37:57]OFDProtocolAddRootSTLVToBuf [07:37:57]FM_MakeSignedData [07:37:57]FM_MakeSignedData [07:37:57]SAM_PROTO_SignData [07:37:57]wFMCommunicate request_size=4 [07:37:57]MH_SAM_APDU [07:37:57]CAPDU: 80 0D 01 02 [07:37:57]Write to MH i2c: E2 08 00 B0 41 80 0D 01 02 00 00 00 00 6A [07:37:57]Write i2c OK [07:37:57]MH_I2C_Read... [07:37:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:57]Read from MH i2c: E2 [07:37:57]MH_I2C_Read... [07:37:57]Read from MH i2c: E2 03 00 [07:37:57]MH_I2C_Read... [07:37:57]Read from MH i2c: E2 03 00 B0 41 00 90 00 65 [07:37:57]RAPDU: 90 00 [07:37:57]wFMCommunicate OK [07:37:57]wFMCommunicate request_size=255 [07:37:57]MH_SAM_APDU [07:37:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 2D 00 00 00 F4 03 04 00 58 80 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7B 02 00 35 04 06 00 [07:37:57]Write to MH i2c: E2 02 01 B1 41 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 2D 00 00 00 F4 03 04 00 58 80 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7B 02 00 35 04 06 00 00 00 EC [07:37:57]Write i2c OK [07:37:57]MH_I2C_Read... [07:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:58]Read from MH i2c: E2 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 03 00 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 03 00 B1 41 00 90 00 66 [07:37:58]RAPDU: 90 00 [07:37:58]wFMCommunicate OK [07:37:58]wFMCommunicate request_size=11 [07:37:58]MH_SAM_APDU [07:37:58]CAPDU: 80 0D 02 02 06 3B 61 D2 6F 78 24 [07:37:58]Write to MH i2c: E2 0E 00 B2 41 80 0D 02 02 06 00 3B 61 D2 6F 78 24 00 00 F2 [07:37:58]Write i2c OK [07:37:58]MH_I2C_Read... [07:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:58]Read from MH i2c: E2 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 03 00 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 03 00 B2 41 00 90 00 67 [07:37:58]RAPDU: 90 00 [07:37:58]wFMCommunicate OK [07:37:58]wFMCommunicate request_size=4 [07:37:58]MH_SAM_APDU [07:37:58]CAPDU: 80 0D 03 02 [07:37:58]Write to MH i2c: E2 08 00 B3 41 80 0D 03 02 00 00 00 00 6F [07:37:58]Write i2c OK [07:37:58]MH_I2C_Read... [07:37:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:58]Read from MH i2c: E2 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 0B 00 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 0B 00 B3 41 00 86 86 E9 CF A8 41 B6 77 90 00 4A [07:37:58]RAPDU: 86 86 E9 CF A8 41 B6 77 90 00 [07:37:58]wFMCommunicate OK [07:37:58]SAM_PROTO_SignData done [07:37:58]FM_MakeSignedData done [07:37:58]CreateOFDProtocolMessage [07:37:58]wFMCommunicate request_size=4 [07:37:58]MH_SAM_APDU [07:37:58]CAPDU: 80 11 00 00 [07:37:58]Write to MH i2c: E2 08 00 B4 41 80 11 00 00 00 00 00 00 6F [07:37:58]Write i2c OK [07:37:58]MH_I2C_Read... [07:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:58]Read from MH i2c: E2 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 17 00 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: E2 17 00 B4 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CF [07:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:37:58]wFMCommunicate OK [07:37:58]CreateOFDProtocolMessage done [07:37:58]OFDSenderStorePacket 162733 [07:37:58]StoreOFDPacket docnum=162733 [07:37:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8F 3C 08 01 D7 77 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 2D 00 00 00 F4 03 04 00 58 80 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7B 02 00 35 04 06 00 3B 61 D2 6F 78 24 86 86 E9 CF A8 41 B6 77 [07:37:58]CheckFolder [07:37:58]dirname=/storage/ofd_packets [07:37:58]CheckFolder done [07:37:58]ProducePacketName [07:37:58]name=ofd_packets/00162733 [07:37:58]NVStorageSaveData ofd_packets/00162733 [07:37:58]File name is /storage/ofd_packets/00162733 [07:37:58]Write 302 bytes [07:37:58]NVStorageSaveData done [07:37:58]OFDSenderStorePacket done [07:37:58]KKMCreateOFDPacket done [07:37:58]NVStorageSaveData kkm_last_timestamp [07:37:58]File name is /storage/kkm_last_timestamp [07:37:58]Write 4 bytes [07:37:58]NVStorageSaveData done [07:37:58]ExternCall_PrintAddStr [07:37:58]wPrintStart [07:37:58]Write to MH i2c: 01 00 00 B5 41 F6 [07:37:58]Write i2c OK [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: 01 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: 01 07 00 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: 01 07 00 B5 41 00 00 00 00 00 FF 0F 0B [07:37:58]RasterBufferAndPrint [07:37:58]line Счет N : (1)1319315 [07:37:58]line ИНН: 02508201610067 [07:37:58]line Контрольно-Кассовый Чек [07:37:58]line ПРОДАЖА [07:37:58]line ТРК (МРК, ГНК) : 42 [07:37:58]line Товар: 2710124130 [07:37:58]line Super-92-К-5 [07:37:58]line 14.860 * 67.30 [07:37:58]line = 1000.08 [07:37:58]line НДС 12% НСП 1% [07:37:58]line > о реализуемом товаре [07:37:58]line ОКРУГЛЕНИЕ: -0.08 [07:37:58]line ИТОГО: 1000.00 [07:37:58]line Внесено: 1000.00 [07:37:58]line СДАЧА: 0.00 [07:37:58]line НСП 1% : 8.85 [07:37:58]line НДС 12% : 106.20 [07:37:58]line Наличными: 1000.00 [07:37:58]line Безнал.: 0.00 [07:37:58]line Место: АЗС № 140 "Партнер Нефть" [07:37:58]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:37:58]line СНО: Общий режим [07:37:58]line Чек 45 14.07.2024 07:38 [07:37:58]line Смена: 463 ФФД: 1.0 [07:37:58]line ЗНМ: 0300000129 [07:37:58]line РНМ: 0000000000090858 [07:37:58]line Версия ККМ: 001 [07:37:58]line ФМ: 0000000000874899 [07:37:58]line ФД: 162733 [07:37:58]line ФПД: 65291328387108 [07:37:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T073800&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162733&fm=65291328387108&tin=02508201610067®Number=0000000000090858&sum=100000 [07:37:58]OFD Sender: Processing packet 162733 [packets to send 106, broken 105] [07:37:58]ProducePacketName [07:37:58]name=ofd_packets/00162733 [07:37:58]OFD Sender: To server: pG, [07:37:58]CommunicateWithHost lk.salyk.kg:30040 [07:37:58]ConnectInit lk.salyk.kg [07:37:58]written 0, free lines is 4095 [07:37:58]Connected sock=10 [07: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 34 38 39 39 10 01 00 00 8F 3C 08 01 D7 77 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 2D 00 00 00 F4 03 04 00 58 80 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7B 02 00 35 04 06 00 3B 61 D2 6F 78 24 86 86 E9 CF A8 41 B6 77 [07:37:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BC 5E 47 00 8F A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7B 02 00 F4 03 04 00 65 2C 93 66 B6 04 01 00 00 D9 E3 C3 88 5A 0D 9D 20 [07:37:58]CommunicateWithHost err = 0 [07:37:58]CheckOFDResponse [07:37:58]1017 (14) - 77093643461234 [07:37:58]1041 (16) - 0000000000874899 [07:37:58]1040 (4) - 162733 [07:37:58]1012 (4) - 14.07.2024 01:39 [07:37:58]1206 (1) - 0 [07:37:58]OFD Sender: Remove packet 162733 [07:37:58]ProducePacketName [07:37:58]name=ofd_packets/00162733 [07:37:58]NVStorageDeleteData [07:37:58]Write to MH i2c: 01 00 00 E0 41 21 [07:37:58]Write i2c OK [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: 01 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: 01 07 00 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: 01 07 00 E0 41 00 00 00 00 00 D3 0C 07 [07:37:58]RasterBufferAndPrint [07:37:58]line [07:37:58]line [07:37:58]line [07:37:58]line [07:37:58]line [07:37:58]written 0, free lines is 3293 [07:37:58]MH_Cut [07:37:58]Write to MH i2c: D1 01 00 E7 41 01 FA [07:37:58]Write i2c OK [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: D1 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: D1 01 00 [07:37:58]MH_I2C_Read... [07:37:58]Read from MH i2c: D1 01 00 E7 41 00 F9 [07:37:58]Write to MH i2c: 01 00 00 E8 41 29 [07:37:58]Write i2c OK [07:37:58]MH_I2C_Read... [07:37:59]OFD Sender: No OFD packet to send [07:37:59]*** Cut start [07:37:59]*** Purtial cut [07:37:59]*** CUTSNS_PIN = 0 [07:37:59]*** Stage 1: CUTSNS_PIN = 1 [07:38:01]Read from MH i2c: 01 [07:38:01]MH_I2C_Read... [07:38:01]*** Stop cut motor [07:38:01]*** Cut end [07:38:01]Read from MH i2c: 01 07 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: 01 07 00 E8 41 00 00 00 00 00 FF 0F 3E [07:38:01]process_action close_receipt done [07:38:01]requested_data is exist [07:38:01]produce_requested_data [07:38:01]requested_item fm.sn is exist - process it [07:38:01]wFMCommunicate request_size=4 [07:38:01]MH_SAM_APDU [07:38:01]CAPDU: 80 11 00 00 [07:38:01]Write to MH i2c: E2 08 00 E9 41 80 11 00 00 00 00 00 00 A4 [07:38:01]Write i2c OK [07:38:01]MH_I2C_Read... [07:38:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:01]Read from MH i2c: E2 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 17 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 17 00 E9 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 04 [07:38:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:38:01]wFMCommunicate OK [07:38:01]requested_item fd.num is exist - process it [07:38:01]SAM_PROTO_GetFieldsCounters [07:38:01]wFMCommunicate request_size=4 [07:38:01]MH_SAM_APDU [07:38:01]CAPDU: 80 13 00 00 [07:38:01]Write to MH i2c: E2 08 00 EA 41 80 13 00 00 00 00 00 00 A7 [07:38:01]Write i2c OK [07:38:01]MH_I2C_Read... [07:38:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:01]Read from MH i2c: E2 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 62 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 62 00 EA 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AD 7B 02 00 0E 04 04 00 CF 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 5B [07:38:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AD 7B 02 00 0E 04 04 00 CF 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 [07:38:01]wFMCommunicate OK [07:38:01]SAM_PROTO_GetFieldsCounters done [07:38:01]requested_item shift.num is exist - process it [07:38:01]requested_item shift.opened is exist - process it [07:38:01]req_shift_opened [07:38:01]FM_GetShiftState [07:38:01]SAM_PROTO_GetShiftState [07:38:01]wFMCommunicate request_size=4 [07:38:01]MH_SAM_APDU [07:38:01]CAPDU: 80 13 01 00 [07:38:01]Write to MH i2c: E2 08 00 EB 41 80 13 01 00 00 00 00 00 A9 [07:38:01]Write i2c OK [07:38:01]MH_I2C_Read... [07:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:02]Read from MH i2c: E2 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: E2 0E 00 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: E2 0E 00 EB 41 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 DF [07:38:02]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:38:02]wFMCommunicate OK [07:38:02]SAM_PROTO_GetShiftState done [07:38:02]FM_GetShiftState done [07:38:02]req_shift_opened done [07:38:02]requested_item shift.open_date is exist - process it [07:38:02]req_shift_open_date [07:38:02]req_shift_open_date done [07:38:02]produce_requested_data done [07:38:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162733,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [07:38:02]process_action_free close_receipt [07:38:02]json_value_free [07:38:02]json_value_free done [07:38:02]process_json_proto returns [07:38:02]Send response to host [07:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162733,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [07:38:02]free response buf [07:38:02]execute_script done [07:38:02]execute_script returns [07:38:02]free content buf [07:38:02]Sock 7.Close socket [07:38:02]Sock 7.Thread stoped [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:52]accept exits with 9 [07:41:52]New connection [07:41:52]New thread 3067510116 created [07:41:52]Thread 3067366756 joined [07:41:52]Waiting for new connection... [07:41:52] Sock 9.Parse request [07:41:52]Sock 9.Check first char [07:41:52]Sock 9.First char is OK [07:41:52]request: POST /json_proto HTTP/1.0 [07:41:52]Method: POST [07:41:52]URL: /json_proto [07:41:52]Method is POST - this is cgi request [07:41:52]url: /json_proto [07:41:52]query_string will be loaded in cgi processing [07:41:52]execute_cgi json_proto POST (null) [07:41:52]execute_cgi path=json_proto method=POST [07:41:52]POST find Content-Length [07:41:52]Host: 172.17.39.67:8080 [07:41:52]Content-Length: 1203 [07:41:52]Content-Type: application/json [07:41:52] [07:41:52]POST finish read [07:41:52]Found Content-Length = 1203 [07:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319316\u000A14.07.2024 07:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 3630.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474982\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:52]execute_script... [07:41:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319316\u000A14.07.2024 07:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 3630.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474982\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:52]POST & json_proto [07:41:52]process_json_proto [07:41:52]json parsed OK: [07:41:52]protocol is kg_v1.0 [07:41:52]action value=print_text [07:41:52]process_action print_text [07:41:52]cmd_print_text [07:41:52]ExternCall_PrintAddStr [07:41:52]wPrintStart [07:41:52]Write to MH i2c: 01 00 00 EC 41 2D [07:41:52]Write i2c OK [07:41:52]MH_I2C_Read... [07:41:52]Read from MH i2c: 01 [07:41:52]MH_I2C_Read... [07:41:52]Read from MH i2c: 01 07 00 [07:41:52]MH_I2C_Read... [07:41:52]Read from MH i2c: 01 07 00 EC 41 00 00 00 00 00 FF 0F 42 [07:41:52]RasterBufferAndPrint [07:41:52]line *****ТОВАРНЫЙ ЧЕК***** [07:41:52]line АЗС 140 [07:41:52]line Партнер нефть [07:41:52]line 02508201610067 [07:41:52]line Кассир : Дуйшенбек у Н. [07:41:52]line Счет N : (1)1319316 [07:41:52]line 14.07.2024 07:39 [07:41:52]line ПРОДАЖА [07:41:52]line ТРК (МРК, ГНК): 21 [07:41:52]line Вид ГСМ : 2710194210 [07:41:52]line ДТ(л)-К-5 [07:41:52]line 50.000 x 72.60 [07:41:52]line ИТОГ: 3630.00 [07:41:52]line Тип оплаты: Талоны: Партнер нефть [07:41:52]line 3474982 [07:41:52]line ______________________ [07:41:52]line (подпись) [07:41:52]written 0, free lines is 4095 [07:41:53]Write to MH i2c: 01 00 00 00 42 42 [07:41:53]Write i2c OK [07:41:53]MH_I2C_Read... [07:41:53]Read from MH i2c: 01 [07:41:53]MH_I2C_Read... [07:41:53]Read from MH i2c: 01 07 00 [07:41:53]MH_I2C_Read... [07:41:53]Read from MH i2c: 01 07 00 00 42 00 00 00 00 00 13 0E 6A [07:41:53]RasterBufferAndPrint [07:41:53]line [07:41:53]line [07:41:53]line [07:41:53]line [07:41:53]line [07:41:53]written 0, free lines is 3604 [07:41:53]MH_Cut [07:41:53]Write to MH i2c: D1 01 00 07 42 01 1B [07:41:53]Write i2c OK [07:41:53]MH_I2C_Read... [07:41:53]Read from MH i2c: D1 [07:41:53]MH_I2C_Read... [07:41:53]Read from MH i2c: D1 01 00 [07:41:53]MH_I2C_Read... [07:41:53]Read from MH i2c: D1 01 00 07 42 00 1A [07:41:53]Write to MH i2c: 01 00 00 08 42 4A [07:41:53]Write i2c OK [07:41:53]MH_I2C_Read... [07:41:53]*** Cut start [07:41:53]*** Purtial cut [07:41:53]*** Stage 1: CUTSNS_PIN = 1 [07:41:53]Read from MH i2c: 01 [07:41:53]MH_I2C_Read... [07:41:53]Read from MH i2c: 01 07 00 [07:41:53]MH_I2C_Read... [07:41:53]*** Stop cut motor [07:41:53]*** Cut end [07:41:53]Read from MH i2c: 01 07 00 08 42 00 00 00 00 00 FF 0F 5F [07:41:53]process_action print_text done [07:41:53]requested_data is exist [07:41:53]produce_requested_data [07:41:53]requested_item fm.sn is exist - process it [07:41:53]wFMCommunicate request_size=4 [07:41:53]MH_SAM_APDU [07:41:53]CAPDU: 80 11 00 00 [07:41:53]Write to MH i2c: E2 08 00 09 42 80 11 00 00 00 00 00 00 C5 [07:41:53]Write i2c OK [07:41:53]MH_I2C_Read... [07:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:53]Read from MH i2c: E2 [07:41:53]MH_I2C_Read... [07:41:53]Read from MH i2c: E2 17 00 [07:41:53]MH_I2C_Read... [07:41:53]Read from MH i2c: E2 17 00 09 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 25 [07:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:41:53]wFMCommunicate OK [07:41:53]requested_item fd.num is exist - process it [07:41:53]SAM_PROTO_GetFieldsCounters [07:41:53]wFMCommunicate request_size=4 [07:41:53]MH_SAM_APDU [07:41:53]CAPDU: 80 13 00 00 [07:41:53]Write to MH i2c: E2 08 00 0A 42 80 13 00 00 00 00 00 00 C8 [07:41:53]Write i2c OK [07:41:53]MH_I2C_Read... [07:41:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:54]Read from MH i2c: E2 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 62 00 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 62 00 0A 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AD 7B 02 00 0E 04 04 00 CF 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 7C [07:41:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AD 7B 02 00 0E 04 04 00 CF 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 [07:41:54]wFMCommunicate OK [07:41:54]SAM_PROTO_GetFieldsCounters done [07:41:54]requested_item shift.num is exist - process it [07:41:54]requested_item shift.opened is exist - process it [07:41:54]req_shift_opened [07:41:54]FM_GetShiftState [07:41:54]SAM_PROTO_GetShiftState [07:41:54]wFMCommunicate request_size=4 [07:41:54]MH_SAM_APDU [07:41:54]CAPDU: 80 13 01 00 [07:41:54]Write to MH i2c: E2 08 00 0B 42 80 13 01 00 00 00 00 00 CA [07:41:54]Write i2c OK [07:41:54]MH_I2C_Read... [07:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:54]Read from MH i2c: E2 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 0E 00 [07:41:54]MH_I2C_Read... [07:41:54]Read from MH i2c: E2 0E 00 0B 42 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 00 [07:41:54]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:41:54]wFMCommunicate OK [07:41:54]SAM_PROTO_GetShiftState done [07:41:54]FM_GetShiftState done [07:41:54]req_shift_opened done [07:41:54]requested_item shift.open_date is exist - process it [07:41:54]req_shift_open_date [07:41:54]req_shift_open_date done [07:41:54]produce_requested_data done [07:41:54]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162733,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [07:41:54]process_action_free print_text [07:41:54]json_value_free [07:41:54]json_value_free done [07:41:54]process_json_proto returns [07:41:54]Send response to host [07:41:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162733,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [07:41:54]free response buf [07:41:54]execute_script done [07:41:54]execute_script returns [07:41:54]free content buf [07:41:54]Sock 9.Close socket [07:41:54]Sock 9.Thread stoped [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:11]accept exits with 7 [07:42:11]New connection [07:42:11]New thread 3067366756 created [07:42:11]Thread 3067510116 joined [07:42:11]Waiting for new connection... [07:42:11] Sock 7.Parse request [07:42:11]Sock 7.Check first char [07:42:11]Sock 7.First char is OK [07:42:11]request: POST /json_proto HTTP/1.0 [07:42:11]Method: POST [07:42:11]URL: /json_proto [07:42:11]Method is POST - this is cgi request [07:42:11]url: /json_proto [07:42:11]query_string will be loaded in cgi processing [07:42:11]execute_cgi json_proto POST (null) [07:42:11]execute_cgi path=json_proto method=POST [07:42:11]POST find Content-Length [07:42:11]Host: 172.17.39.67:8080 [07:42:11]Content-Length: 683 [07:42:11]Content-Type: application/json [07:42:11] [07:42:11]POST finish read [07:42:11]Found Content-Length = 683 [07:42:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:42:11]execute_script... [07:42: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)1319317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:42:11]POST & json_proto [07:42:11]process_json_proto [07:42:11]json parsed OK: [07:42:11]protocol is kg_v1.0 [07:42:11]action value=close_receipt [07:42:11]process_action close_receipt [07:42:11]cmd_close_receipt [07:42:11]MH_GetDate [07:42:11]Write to MH i2c: F0 00 00 0C 42 3D [07:42:11]Write i2c OK [07:42:11]MH_I2C_Read... [07:42:11]Read from MH i2c: F0 [07:42:11]MH_I2C_Read... [07:42:11]Read from MH i2c: F0 09 00 [07:42:11]MH_I2C_Read... [07:42:11]Read from MH i2c: F0 09 00 0C 42 00 57 81 93 66 86 7C 92 66 11 [07:42:11]GetLastDocTimeStamp 1720942680 [07:42:11]current date 1720942935 [07:42:11]FM_GetShiftState [07:42:11]SAM_PROTO_GetShiftState [07:42:11]wFMCommunicate request_size=4 [07:42:11]MH_SAM_APDU [07:42:11]CAPDU: 80 13 01 00 [07:42:11]Write to MH i2c: E2 08 00 0D 42 80 13 01 00 00 00 00 00 CC [07:42:11]Write i2c OK [07:42:11]MH_I2C_Read... [07:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:11]Read from MH i2c: E2 [07:42:11]MH_I2C_Read... [07:42:11]Read from MH i2c: E2 0E 00 [07:42:11]MH_I2C_Read... [07:42:11]Read from MH i2c: E2 0E 00 0D 42 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 02 [07:42:11]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:42:11]wFMCommunicate OK [07:42:11]SAM_PROTO_GetShiftState done [07:42:11]FM_GetShiftState done [07:42:11]opened in 1720915483 [07:42:11]opened+sec_in_day 1721001883 [07:42:11]quantity*price = 100046 [07:42:11]sum+1 = 100048 [07:42:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 46 14.07.2024 07:42 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162734 ФПД: 73936231876346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T074215&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162734&fm=73936231876346&tin=02508201610067®Number=0000000000090858&sum=100000 [07:42:12]StoreToDocumentArchive [07:42:12]shift 463 fd 162734 [07:42:12]save to /storage/0463/doc_00162734 [07:42:12]save last doc name /storage/0463/doc_00162734 to /storage/kkm_last_doc_name [07:42:12]save OK [07:42:12]Clear old archive folders... [07:42:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:42:12]tlvbuf is 00738500 [07:42:12]SAM_PROTO_ClearQueue [07:42:12]wFMCommunicate request_size=4 [07:42:12]MH_SAM_APDU [07:42:12]CAPDU: 80 09 00 00 [07:42:12]Write to MH i2c: E2 08 00 1A 42 80 09 00 00 00 00 00 00 CE [07:42:12]Write i2c OK [07:42:12]MH_I2C_Read... [07:42:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:12]Read from MH i2c: E2 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: E2 03 00 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: E2 03 00 1A 42 00 90 00 D0 [07:42:12]RAPDU: 90 00 [07:42:12]wFMCommunicate OK [07:42:12]SAM_PROTO_ClearQueue done [07:42:12]KKMCreateOFDPacket [07:42:12]OFDProtocolAddRootSTLVToBuf [07:42:12]FM_MakeSignedData [07:42:12]FM_MakeSignedData [07:42:12]SAM_PROTO_SignData [07:42:12]wFMCommunicate request_size=4 [07:42:12]MH_SAM_APDU [07:42:12]CAPDU: 80 0D 01 02 [07:42:12]Write to MH i2c: E2 08 00 1B 42 80 0D 01 02 00 00 00 00 D6 [07:42:12]Write i2c OK [07:42:12]MH_I2C_Read... [07:42:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:12]Read from MH i2c: E2 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: E2 03 00 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: E2 03 00 1B 42 00 90 00 D1 [07:42:12]RAPDU: 90 00 [07:42:12]wFMCommunicate OK [07:42:12]wFMCommunicate request_size=255 [07:42:12]MH_SAM_APDU [07:42:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 57 81 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7B 02 00 35 04 06 00 43 [07:42:12]Write to MH i2c: E2 02 01 1C 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 57 81 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7B 02 00 35 04 06 00 43 00 00 1F [07:42:12]Write i2c OK [07:42:12]MH_I2C_Read... [07:42:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:12]Read from MH i2c: E2 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: E2 03 00 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: E2 03 00 1C 42 00 90 00 D2 [07:42:12]RAPDU: 90 00 [07:42:12]wFMCommunicate OK [07:42:12]wFMCommunicate request_size=10 [07:42:12]MH_SAM_APDU [07:42:12]CAPDU: 80 0D 02 02 05 3E 9E D6 46 FA [07:42:12]Write to MH i2c: E2 0D 00 1D 42 80 0D 02 02 05 00 3E 9E D6 46 FA 00 00 D5 [07:42:12]Write i2c OK [07:42:12]MH_I2C_Read... [07:42:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:12]Read from MH i2c: E2 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: E2 03 00 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: E2 03 00 1D 42 00 90 00 D3 [07:42:12]RAPDU: 90 00 [07:42:12]wFMCommunicate OK [07:42:12]wFMCommunicate request_size=4 [07:42:12]MH_SAM_APDU [07:42:12]CAPDU: 80 0D 03 02 [07:42:12]Write to MH i2c: E2 08 00 1E 42 80 0D 03 02 00 00 00 00 DB [07:42:12]Write i2c OK [07:42:12]MH_I2C_Read... [07:42:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:12]Read from MH i2c: E2 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: E2 0B 00 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: E2 0B 00 1E 42 00 B6 76 7B 16 92 E4 11 29 90 00 49 [07:42:12]RAPDU: B6 76 7B 16 92 E4 11 29 90 00 [07:42:12]wFMCommunicate OK [07:42:12]SAM_PROTO_SignData done [07:42:12]FM_MakeSignedData done [07:42:12]CreateOFDProtocolMessage [07:42:12]wFMCommunicate request_size=4 [07:42:12]MH_SAM_APDU [07:42:12]CAPDU: 80 11 00 00 [07:42:12]Write to MH i2c: E2 08 00 1F 42 80 11 00 00 00 00 00 00 DB [07:42:12]Write i2c OK [07:42:12]MH_I2C_Read... [07:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:12]Read from MH i2c: E2 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: E2 17 00 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: E2 17 00 1F 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3B [07:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:42:12]wFMCommunicate OK [07:42:12]CreateOFDProtocolMessage done [07:42:12]OFDSenderStorePacket 162734 [07:42:12]StoreOFDPacket docnum=162734 [07:42:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D7 53 07 01 A5 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 57 81 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7B 02 00 35 04 06 00 43 3E 9E D6 46 FA B6 76 7B 16 92 E4 11 29 [07:42:12]CheckFolder [07:42:12]dirname=/storage/ofd_packets [07:42:12]CheckFolder done [07:42:12]ProducePacketName [07:42:12]name=ofd_packets/00162734 [07:42:12]NVStorageSaveData ofd_packets/00162734 [07:42:12]File name is /storage/ofd_packets/00162734 [07:42:12]Write 301 bytes [07:42:12]NVStorageSaveData done [07:42:12]OFDSenderStorePacket done [07:42:12]KKMCreateOFDPacket done [07:42:12]NVStorageSaveData kkm_last_timestamp [07:42:12]File name is /storage/kkm_last_timestamp [07:42:12]Write 4 bytes [07:42:12]NVStorageSaveData done [07:42:12]ExternCall_PrintAddStr [07:42:12]wPrintStart [07:42:12]Write to MH i2c: 01 00 00 20 42 62 [07:42:12]Write i2c OK [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: 01 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: 01 07 00 [07:42:12]MH_I2C_Read... [07:42:12]Read from MH i2c: 01 07 00 20 42 00 00 00 00 00 FF 0F 77 [07:42:12]RasterBufferAndPrint [07:42:12]line Счет N : (1)1319317 [07:42:12]line ИНН: 02508201610067 [07:42:12]line Контрольно-Кассовый Чек [07:42:12]line ПРОДАЖА [07:42:12]line ТРК (МРК, ГНК) : 63 [07:42:12]line Товар: 2710124130 [07:42:12]line Аи-92-К-5 [07:42:12]line 15.090 * 66.30 [07:42:12]line = 1000.47 [07:42:12]line НДС 12% НСП 1% [07:42:12]line > о реализуемом товаре [07:42:12]line ОКРУГЛЕНИЕ: -0.47 [07:42:12]line ИТОГО: 1000.00 [07:42:12]line Внесено: 1000.00 [07:42:12]line СДАЧА: 0.00 [07:42:12]line НСП 1% : 8.85 [07:42:12]line НДС 12% : 106.24 [07:42:12]line Наличными: 1000.00 [07:42:12]line Безнал.: 0.00 [07:42:12]line Место: АЗС № 140 "Партнер Нефть" [07:42:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:42:12]line СНО: Общий режим [07:42:12]line Чек 46 14.07.2024 07:42 [07:42:12]line Смена: 463 ФФД: 1.0 [07:42:12]line ЗНМ: 0300000129 [07:42:12]line РНМ: 0000000000090858 [07:42:12]line Версия ККМ: 001 [07:42:12]line ФМ: 0000000000874899 [07:42:12]line ФД: 162734 [07:42:12]line ФПД: 73936231876346 [07:42:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T074215&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162734&fm=73936231876346&tin=02508201610067®Number=0000000000090858&sum=100000 [07:42:13]OFD Sender: Processing packet 162734 [packets to send 106, broken 105] [07:42:13]ProducePacketName [07:42:13]name=ofd_packets/00162734 [07:42:13]OFD Sender: To server: pG, [07:42:13]CommunicateWithHost lk.salyk.kg:30040 [07:42:13]ConnectInit lk.salyk.kg [07:42:13]written 0, free lines is 4095 [07:42:13]Connected sock=10 [07:42:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D7 53 07 01 A5 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 57 81 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7B 02 00 35 04 06 00 43 3E 9E D6 46 FA B6 76 7B 16 92 E4 11 29 [07:42:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 08 C8 47 00 9B AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7B 02 00 F4 03 04 00 64 2D 93 66 B6 04 01 00 00 A3 04 39 EB AF A8 5F 7E [07:42:13]CommunicateWithHost err = 0 [07:42:13]CheckOFDResponse [07:42:13]1017 (14) - 77093643461234 [07:42:13]1041 (16) - 0000000000874899 [07:42:13]1040 (4) - 162734 [07:42:13]1012 (4) - 14.07.2024 01:44 [07:42:13]1206 (1) - 0 [07:42:13]OFD Sender: Remove packet 162734 [07:42:13]ProducePacketName [07:42:13]name=ofd_packets/00162734 [07:42:13]NVStorageDeleteData [07:42:13]Write to MH i2c: 01 00 00 4B 42 8D [07:42:13]Write i2c OK [07:42:13]MH_I2C_Read... [07:42:13]Read from MH i2c: 01 [07:42:13]MH_I2C_Read... [07:42:13]Read from MH i2c: 01 07 00 [07:42:13]MH_I2C_Read... [07:42:13]Read from MH i2c: 01 07 00 4B 42 00 00 00 00 00 CE 0C 6E [07:42:13]RasterBufferAndPrint [07:42:13]line [07:42:13]line [07:42:13]line [07:42:13]line [07:42:13]line [07:42:13]written 0, free lines is 3285 [07:42:13]MH_Cut [07:42:13]Write to MH i2c: D1 01 00 52 42 01 66 [07:42:13]Write i2c OK [07:42:13]MH_I2C_Read... [07:42:13]Read from MH i2c: D1 [07:42:13]MH_I2C_Read... [07:42:13]Read from MH i2c: D1 01 00 [07:42:13]MH_I2C_Read... [07:42:13]Read from MH i2c: D1 01 00 52 42 00 65 [07:42:13]Write to MH i2c: 01 00 00 53 42 95 [07:42:13]Write i2c OK [07:42:13]MH_I2C_Read... [07:42:14]OFD Sender: No OFD packet to send [07:42:14]*** Cut start [07:42:14]*** Purtial cut [07:42:14]*** CUTSNS_PIN = 0 [07:42:14]*** Stage 1: CUTSNS_PIN = 1 [07:42:16]Read from MH i2c: 01 [07:42:16]MH_I2C_Read... [07:42:16]*** Stop cut motor [07:42:16]*** Cut end [07:42:16]Read from MH i2c: 01 07 00 [07:42:16]MH_I2C_Read... [07:42:16]Read from MH i2c: 01 07 00 53 42 00 00 00 00 00 FF 0F AA [07:42:16]process_action close_receipt done [07:42:16]requested_data is exist [07:42:16]produce_requested_data [07:42:16]requested_item fm.sn is exist - process it [07:42:16]wFMCommunicate request_size=4 [07:42:16]MH_SAM_APDU [07:42:16]CAPDU: 80 11 00 00 [07:42:16]Write to MH i2c: E2 08 00 54 42 80 11 00 00 00 00 00 00 10 [07:42:16]Write i2c OK [07:42:16]MH_I2C_Read... [07:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:16]Read from MH i2c: E2 [07:42:16]MH_I2C_Read... [07:42:16]Read from MH i2c: E2 17 00 [07:42:16]MH_I2C_Read... [07:42:16]Read from MH i2c: E2 17 00 54 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 70 [07:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:42:16]wFMCommunicate OK [07:42:16]requested_item fd.num is exist - process it [07:42:16]SAM_PROTO_GetFieldsCounters [07:42:16]wFMCommunicate request_size=4 [07:42:16]MH_SAM_APDU [07:42:16]CAPDU: 80 13 00 00 [07:42:16]Write to MH i2c: E2 08 00 55 42 80 13 00 00 00 00 00 00 13 [07:42:16]Write i2c OK [07:42:16]MH_I2C_Read... [07:42:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:16]Read from MH i2c: E2 [07:42:16]MH_I2C_Read... [07:42:16]Read from MH i2c: E2 62 00 [07:42:16]MH_I2C_Read... [07:42:16]Read from MH i2c: E2 62 00 55 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AE 7B 02 00 0E 04 04 00 CF 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 CB [07:42:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AE 7B 02 00 0E 04 04 00 CF 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 [07:42:16]wFMCommunicate OK [07:42:16]SAM_PROTO_GetFieldsCounters done [07:42:16]requested_item shift.num is exist - process it [07:42:16]requested_item shift.opened is exist - process it [07:42:16]req_shift_opened [07:42:16]FM_GetShiftState [07:42:16]SAM_PROTO_GetShiftState [07:42:16]wFMCommunicate request_size=4 [07:42:16]MH_SAM_APDU [07:42:16]CAPDU: 80 13 01 00 [07:42:16]Write to MH i2c: E2 08 00 56 42 80 13 01 00 00 00 00 00 15 [07:42:16]Write i2c OK [07:42:16]MH_I2C_Read... [07:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:16]Read from MH i2c: E2 [07:42:16]MH_I2C_Read... [07:42:16]Read from MH i2c: E2 0E 00 [07:42:16]MH_I2C_Read... [07:42:16]Read from MH i2c: E2 0E 00 56 42 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4B [07:42:16]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:42:16]wFMCommunicate OK [07:42:16]SAM_PROTO_GetShiftState done [07:42:16]FM_GetShiftState done [07:42:16]req_shift_opened done [07:42:16]requested_item shift.open_date is exist - process it [07:42:16]req_shift_open_date [07:42:16]req_shift_open_date done [07:42:16]produce_requested_data done [07:42:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162734,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [07:42:16]process_action_free close_receipt [07:42:16]json_value_free [07:42:16]json_value_free done [07:42:16]process_json_proto returns [07:42:16]Send response to host [07:42:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162734,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [07:42:16]free response buf [07:42:16]execute_script done [07:42:16]execute_script returns [07:42:16]free content buf [07:42:16]Sock 7.Close socket [07:42:16]Sock 7.Thread stoped [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43: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: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]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:57]accept exits with 9 [07:51:57]New connection [07:51:57]New thread 3067510116 created [07:51:57]Thread 3067366756 joined [07:51:57]Waiting for new connection... [07:51:57] Sock 9.Parse request [07:51:57]Sock 9.Check first char [07:51:57]Sock 9.First char is OK [07:51:57]request: POST /json_proto HTTP/1.0 [07:51:57]Method: POST [07:51:57]URL: /json_proto [07:51:57]Method is POST - this is cgi request [07:51:57]url: /json_proto [07:51:57]query_string will be loaded in cgi processing [07:51:57]execute_cgi json_proto POST (null) [07:51:57]execute_cgi path=json_proto method=POST [07:51:57]POST find Content-Length [07:51:57]Host: 172.17.39.67:8080 [07:51:57]Content-Length: 688 [07:51:57]Content-Type: application/json [07:51:57] [07:51:57]POST finish read [07:51:57]Found Content-Length = 688 [07:51:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:51:57]execute_script... [07:51: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)1319318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:51:57]POST & json_proto [07:51:57]process_json_proto [07:51:57]json parsed OK: [07:51:57]protocol is kg_v1.0 [07:51:57]action value=close_receipt [07:51:57]process_action close_receipt [07:51:57]cmd_close_receipt [07:51:57]MH_GetDate [07:51:57]Write to MH i2c: F0 00 00 57 42 88 [07:51:57]Write i2c OK [07:51:57]MH_I2C_Read... [07:51:57]Read from MH i2c: F0 [07:51:57]MH_I2C_Read... [07:51:57]Read from MH i2c: F0 09 00 [07:51:57]MH_I2C_Read... [07:51:57]Read from MH i2c: F0 09 00 57 42 00 A1 83 93 66 86 7C 92 66 A8 [07:51:57]GetLastDocTimeStamp 1720942935 [07:51:57]current date 1720943521 [07:51:57]FM_GetShiftState [07:51:57]SAM_PROTO_GetShiftState [07:51:57]wFMCommunicate request_size=4 [07:51:57]MH_SAM_APDU [07:51:57]CAPDU: 80 13 01 00 [07:51:57]Write to MH i2c: E2 08 00 58 42 80 13 01 00 00 00 00 00 17 [07:51:57]Write i2c OK [07:51:57]MH_I2C_Read... [07:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:57]Read from MH i2c: E2 [07:51:57]MH_I2C_Read... [07:51:57]Read from MH i2c: E2 0E 00 [07:51:57]MH_I2C_Read... [07:51:57]Read from MH i2c: E2 0E 00 58 42 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4D [07:51:57]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [07:51:57]wFMCommunicate OK [07:51:57]SAM_PROTO_GetShiftState done [07:51:57]FM_GetShiftState done [07:51:57]opened in 1720915483 [07:51:57]opened+sec_in_day 1721001883 [07:51:57]quantity*price = 100042 [07:51:57]sum+1 = 100044 [07:51:57]Check (price>sum+1) || (price+1 о реализуемом товаре [00:00:18]line ОКРУГЛЕНИЕ: -0.43 [00:00:18]line ИТОГО: 1000.00 [00:00:18]line Внесено: 1000.00 [00:00:18]line СДАЧА: 0.00 [00:00:18]line НСП 1% : 8.85 [00:00:18]line НДС 12% : 106.24 [00:00:18]line Наличными: 1000.00 [00:00:18]line Безнал.: 0.00 [00:00:18]line Место: АЗС № 140 "Партнер Нефть" [00:00:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:00:18]line СНО: Общий режим [00:00:18]line Чек 47 14.07.2024 07:52 [00:00:18]line Смена: 463 ФФД: 1.0 [00:00:18]line ЗНМ: 0300000129 [00:00:18]line РНМ: 0000000000090858 [00:00:18]line Версия ККМ: 001 [00:00:18]line ФМ: 0000000000874899 [00:00:18]line ФД: 162735 [00:00:18]line ФПД: 158223078099753 [00:00:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T075201&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162735&fm=158223078099753&tin=02508201610067®Number=0000000000090858&sum=100000 [00:00:18]written 0, free lines is 4095 [00:00:18]Write to MH i2c: 01 00 00 48 00 48 [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: 01 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: 01 07 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D5 0C 30 [00:00:18]RasterBufferAndPrint [00:00:18]line [00:00:18]line [00:00:18]line [00:00:18]line [00:00:18]line [00:00:18]written 0, free lines is 3303 [00:00:18]MH_Cut [00:00:18]Write to MH i2c: D1 01 00 4F 00 01 21 [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: D1 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: D1 01 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: D1 01 00 4F 00 00 20 [00:00:18]Write to MH i2c: 01 00 00 50 00 50 [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:19]*** Cut start [00:00:19]*** Purtial cut [00:00:19]*** CUTSNS_PIN = 0 [00:00:19]*** Stage 1: CUTSNS_PIN = 1 [00:00:21]Read from MH i2c: 01 [00:00:21]MH_I2C_Read... [00:00:21]*** Stop cut motor [00:00:21]*** Cut end [00:00:21]Read from MH i2c: 01 07 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [00:00:21]process_action print_doc done [00:00:21]requested_data is exist [00:00:21]produce_requested_data [00:00:21]produce_requested_data return (null) [00:00:21]process_action_free print_doc [00:00:21]json_value_free [00:00:21]json_value_free done [00:00:21]process_json_proto returns [00:00:21]Send response to host [00:00:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [00:00:21]free response buf [00:00:21]execute_script done [00:00:21]execute_script returns [00:00:21]free content buf [00:00:21]Sock 7.Close socket [00:00:21]Sock 7.Thread stoped [00:00:21]accept exits with 8 [00:00:21]New connection [00:00:21]New thread 3066862948 created [00:00:21]Thread 3067006308 joined [00:00:21]Waiting for new connection... [00:00:21] Sock 8.Parse request [00:00:21]Sock 8.Check first char [00:00:21]Sock 8.First char is OK [00:00:21]request: POST /json_proto HTTP/1.0 [00:00:21]Method: POST [00:00:21]URL: /json_proto [00:00:21]Method is POST - this is cgi request [00:00:21]url: /json_proto [00:00:21]query_string will be loaded in cgi processing [00:00:21]execute_cgi json_proto POST (null) [00:00:21]execute_cgi path=json_proto method=POST [00:00:21]POST find Content-Length [00:00:21]Host: 172.17.39.67:8080 [00:00:21]Content-Length: 1213 [00:00:21]Content-Type: application/json [00:00:21] [00:00:21]POST finish read [00:00:21]Found Content-Length = 1213 [00:00:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319319\u000A14.07.2024 07:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A76684\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:21]execute_script... [00:00:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319319\u000A14.07.2024 07:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A76684\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:21]POST & json_proto [00:00:21]process_json_proto [00:00:21]json parsed OK: [00:00:21]protocol is kg_v1.0 [00:00:21]action value=print_text [00:00:21]process_action print_text [00:00:21]cmd_print_text [00:00:21]ExternCall_PrintAddStr [00:00:21]wPrintStart [00:00:21]Write to MH i2c: 01 00 00 51 00 51 [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: 01 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: 01 07 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: 01 07 00 51 00 00 00 00 00 00 FF 0F 66 [00:00:21]RasterBufferAndPrint [00:00:21]line *****ТОВАРНЫЙ ЧЕК***** [00:00:21]line АЗС 140 [00:00:21]line Партнер нефть [00:00:21]line 02508201610067 [00:00:21]line Кассир : Дуйшенбек у Н. [00:00:21]line Счет N : (1)1319319 [00:00:21]line 14.07.2024 07:51 [00:00:21]line ПРОДАЖА [00:00:21]line ТРК (МРК, ГНК): 11 [00:00:21]line Вид ГСМ : 2710194210 [00:00:21]line ДТ(л)-К-5 [00:00:21]line 40.000 x 72.60 [00:00:21]line ИТОГ: 2904.00 [00:00:21]line Тип оплаты: Талоны: Топливная Карта [00:00:21]line 76684 [00:00:21]line ______________________ [00:00:21]line (подпись) [00:00:21]written 0, free lines is 4095 [00:00:21]Write to MH i2c: 01 00 00 65 00 65 [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: 01 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: 01 07 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 12 0E 8C [00:00:21]RasterBufferAndPrint [00:00:21]line [00:00:21]line [00:00:21]line [00:00:21]line [00:00:21]line [00:00:21]written 0, free lines is 3609 [00:00:21]MH_Cut [00:00:21]Write to MH i2c: D1 01 00 6C 00 01 3E [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: D1 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: D1 01 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: D1 01 00 6C 00 00 3D [00:00:21]Write to MH i2c: 01 00 00 6D 00 6D [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:22]*** Cut start [00:00:22]*** Purtial cut [00:00:22]*** Stage 1: CUTSNS_PIN = 1 [00:00:22]OFD Sender: No OFD packet to send [00:00:22]Read from MH i2c: 01 [00:00:22]MH_I2C_Read... [00:00:22]*** Stop cut motor [00:00:22]*** Cut end [00:00:22]Read from MH i2c: 01 07 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: 01 07 00 6D 00 00 00 00 00 00 FF 0F 82 [00:00:22]process_action print_text done [00:00:22]requested_data is exist [00:00:22]produce_requested_data [00:00:22]requested_item fm.sn is exist - process it [00:00:22]wFMCommunicate request_size=4 [00:00:22]MH_SAM_APDU [00:00:22]CAPDU: 80 11 00 00 [00:00:22]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [00:00:22]Write i2c OK [00:00:22]MH_I2C_Read... [00:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:22]Read from MH i2c: E2 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 17 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 48 [00:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:00:22]wFMCommunicate OK [00:00:22]requested_item fd.num is exist - process it [00:00:22]SAM_PROTO_GetFieldsCounters [00:00:22]wFMCommunicate request_size=4 [00:00:22]MH_SAM_APDU [00:00:22]CAPDU: 80 13 00 00 [00:00:22]Write to MH i2c: E2 08 00 6F 00 80 13 00 00 00 00 00 00 EB [00:00:22]Write i2c OK [00:00:22]MH_I2C_Read... [00:00:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:22]Read from MH i2c: E2 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 62 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 62 00 6F 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AF 7B 02 00 0E 04 04 00 CF 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 A7 [00:00:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AF 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:22]wFMCommunicate OK [00:00:22]SAM_PROTO_GetFieldsCounters done [00:00:22]requested_item shift.num is exist - process it [00:00:22]requested_item shift.opened is exist - process it [00:00:22]req_shift_opened [00:00:22]FM_GetShiftState [00:00:22]SAM_PROTO_GetShiftState [00:00:22]wFMCommunicate request_size=4 [00:00:22]MH_SAM_APDU [00:00:22]CAPDU: 80 13 01 00 [00:00:22]Write to MH i2c: E2 08 00 70 00 80 13 01 00 00 00 00 00 ED [00:00:22]Write i2c OK [00:00:22]MH_I2C_Read... [00:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:22]Read from MH i2c: E2 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 0E 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 0E 00 70 00 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 23 [00:00:22]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:00:22]wFMCommunicate OK [00:00:22]SAM_PROTO_GetShiftState done [00:00:22]FM_GetShiftState done [00:00:22]req_shift_opened done [00:00:22]requested_item shift.open_date is exist - process it [00:00:22]req_shift_open_date [00:00:22]req_shift_open_date done [00:00:22]produce_requested_data done [00:00:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162735,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:00:22]process_action_free print_text [00:00:22]json_value_free [00:00:22]json_value_free done [00:00:22]process_json_proto returns [00:00:22]Send response to host [00:00:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162735,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:00:22]free response buf [00:00:22]execute_script done [00:00:22]execute_script returns [00:00:22]free content buf [00:00:22]Sock 8.Close socket [00:00:22]Sock 8.Thread stoped [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:00]accept exits with 9 [00:02:00]New connection [00:02:00]New thread 3067006308 created [00:02:00]Thread 3066862948 joined [00:02:00]Waiting for new connection... [00:02:00] Sock 9.Parse request [00:02:00]Sock 9.Check first char [00:02:00]Sock 9.First char is OK [00:02:00]request: POST /json_proto HTTP/1.0 [00:02:00]Method: POST [00:02:00]URL: /json_proto [00:02:00]Method is POST - this is cgi request [00:02:00]url: /json_proto [00:02:00]query_string will be loaded in cgi processing [00:02:00]execute_cgi json_proto POST (null) [00:02:00]execute_cgi path=json_proto method=POST [00:02:00]POST find Content-Length [00:02:00]Host: 172.17.39.67:8080 [00:02:00]Content-Length: 1208 [00:02:00]Content-Type: application/json [00:02:00] [00:02:00]POST finish read [00:02:00]Found Content-Length = 1208 [00:02:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319321\u000A14.07.2024 07:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 2976.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:00]execute_script... [00:02:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319321\u000A14.07.2024 07:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 2976.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:00]POST & json_proto [00:02:00]process_json_proto [00:02:00]json parsed OK: [00:02:00]protocol is kg_v1.0 [00:02:00]action value=print_text [00:02:00]process_action print_text [00:02:00]cmd_print_text [00:02:00]ExternCall_PrintAddStr [00:02:00]wPrintStart [00:02:00]Write to MH i2c: 01 00 00 71 00 71 [00:02:00]Write i2c OK [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: 01 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: 01 07 00 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: 01 07 00 71 00 00 00 00 00 00 FF 0F 86 [00:02:00]RasterBufferAndPrint [00:02:00]line *****ТОВАРНЫЙ ЧЕК***** [00:02:00]line АЗС 140 [00:02:00]line Партнер нефть [00:02:00]line 02508201610067 [00:02:00]line Кассир : Дуйшенбек у Н. [00:02:00]line Счет N : (1)1319321 [00:02:00]line 14.07.2024 07:52 [00:02:00]line ПРОДАЖА [00:02:00]line ТРК (МРК, ГНК): 54 [00:02:00]line Вид ГСМ : 2710124500 [00:02:00]line Аи-95-К-5 [00:02:00]line 40.000 x 74.40 [00:02:00]line ИТОГ: 2976.00 [00:02:00]line Тип оплаты: Талоны: Топливная Карта [00:02:00]line 01860 [00:02:00]line ______________________ [00:02:00]line (подпись) [00:02:00]written 0, free lines is 4095 [00:02:00]Write to MH i2c: 01 00 00 85 00 85 [00:02:00]Write i2c OK [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: 01 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: 01 07 00 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: 01 07 00 85 00 00 00 00 00 00 11 0E AB [00:02:00]RasterBufferAndPrint [00:02:00]line [00:02:00]line [00:02:00]line [00:02:00]line [00:02:00]line [00:02:00]written 0, free lines is 3602 [00:02:00]MH_Cut [00:02:00]Write to MH i2c: D1 01 00 8C 00 01 5E [00:02:00]Write i2c OK [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: D1 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: D1 01 00 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: D1 01 00 8C 00 00 5D [00:02:00]Write to MH i2c: 01 00 00 8D 00 8D [00:02:00]Write i2c OK [00:02:00]MH_I2C_Read... [00:02:00]*** Cut start [00:02:00]*** Purtial cut [00:02:00]*** CUTSNS_PIN = 0 [00:02:01]*** Stage 1: CUTSNS_PIN = 1 [00:02:02]OFD Sender: No OFD packet to send [00:02:02]Read from MH i2c: 01 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: 01 07 00 [00:02:02]MH_I2C_Read... [00:02:02]*** Stop cut motor [00:02:02]*** Cut end [00:02:02]Read from MH i2c: 01 07 00 8D 00 00 00 00 00 00 FF 0F A2 [00:02:02]process_action print_text done [00:02:02]requested_data is exist [00:02:02]produce_requested_data [00:02:02]requested_item fm.sn is exist - process it [00:02:02]wFMCommunicate request_size=4 [00:02:02]MH_SAM_APDU [00:02:02]CAPDU: 80 11 00 00 [00:02:02]Write to MH i2c: E2 08 00 8E 00 80 11 00 00 00 00 00 00 08 [00:02:02]Write i2c OK [00:02:02]MH_I2C_Read... [00:02:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:02]Read from MH i2c: E2 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: E2 17 00 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: E2 17 00 8E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 68 [00:02:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:02:02]wFMCommunicate OK [00:02:02]requested_item fd.num is exist - process it [00:02:02]SAM_PROTO_GetFieldsCounters [00:02:02]wFMCommunicate request_size=4 [00:02:02]MH_SAM_APDU [00:02:02]CAPDU: 80 13 00 00 [00:02:02]Write to MH i2c: E2 08 00 8F 00 80 13 00 00 00 00 00 00 0B [00:02:02]Write i2c OK [00:02:02]MH_I2C_Read... [00:02:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:03]Read from MH i2c: E2 [00:02:03]MH_I2C_Read... [00:02:03]Read from MH i2c: E2 62 00 [00:02:03]MH_I2C_Read... [00:02:03]Read from MH i2c: E2 62 00 8F 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AF 7B 02 00 0E 04 04 00 CF 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 C7 [00:02:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AF 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:03]wFMCommunicate OK [00:02:03]SAM_PROTO_GetFieldsCounters done [00:02:03]requested_item shift.num is exist - process it [00:02:03]requested_item shift.opened is exist - process it [00:02:03]req_shift_opened [00:02:03]FM_GetShiftState [00:02:03]SAM_PROTO_GetShiftState [00:02:03]wFMCommunicate request_size=4 [00:02:03]MH_SAM_APDU [00:02:03]CAPDU: 80 13 01 00 [00:02:03]Write to MH i2c: E2 08 00 90 00 80 13 01 00 00 00 00 00 0D [00:02:03]Write i2c OK [00:02:03]MH_I2C_Read... [00:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:03]Read from MH i2c: E2 [00:02:03]MH_I2C_Read... [00:02:03]Read from MH i2c: E2 0E 00 [00:02:03]MH_I2C_Read... [00:02:03]Read from MH i2c: E2 0E 00 90 00 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 43 [00:02:03]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:02:03]wFMCommunicate OK [00:02:03]SAM_PROTO_GetShiftState done [00:02:03]FM_GetShiftState done [00:02:03]req_shift_opened done [00:02:03]requested_item shift.open_date is exist - process it [00:02:03]req_shift_open_date [00:02:03]req_shift_open_date done [00:02:03]produce_requested_data done [00:02:03]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162735,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:02:03]process_action_free print_text [00:02:03]json_value_free [00:02:03]json_value_free done [00:02:03]process_json_proto returns [00:02:03]Send response to host [00:02:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162735,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:02:03]free response buf [00:02:03]execute_script done [00:02:03]execute_script returns [00:02:03]free content buf [00:02:03]Sock 9.Close socket [00:02:03]Sock 9.Thread stoped [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:36]accept exits with 8 [00:06:36]New connection [00:06:36]New thread 3066862948 created [00:06:36]Thread 3067006308 joined [00:06:36]Waiting for new connection... [00:06:36] Sock 8.Parse request [00:06:36]Sock 8.Check first char [00:06:36]Sock 8.First char is OK [00:06:36]request: POST /json_proto HTTP/1.0 [00:06:36]Method: POST [00:06:36]URL: /json_proto [00:06:36]Method is POST - this is cgi request [00:06:36]url: /json_proto [00:06:36]query_string will be loaded in cgi processing [00:06:36]execute_cgi json_proto POST (null) [00:06:36]execute_cgi path=json_proto method=POST [00:06:36]POST find Content-Length [00:06:36]Host: 172.17.39.67:8080 [00:06:36]Content-Length: 688 [00:06:36]Content-Type: application/json [00:06:36] [00:06:36]POST finish read [00:06:36]Found Content-Length = 688 [00:06:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:06:36]execute_script... [00:06: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)1319323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:06:36]POST & json_proto [00:06:36]process_json_proto [00:06:36]json parsed OK: [00:06:36]protocol is kg_v1.0 [00:06:36]action value=close_receipt [00:06:36]process_action close_receipt [00:06:36]cmd_close_receipt [00:06:36]MH_GetDate [00:06:36]Write to MH i2c: F0 00 00 91 00 80 [00:06:36]Write i2c OK [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: F0 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: F0 09 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: F0 09 00 91 00 00 8C 01 00 00 00 00 00 00 16 [00:06:36]GetLastDocTimeStamp 1720943521 [00:06:36]current date 396 [00:06:36]curdatesum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 48 14.07.2024 08:01 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162736 ФПД: 168774218585788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T080110&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162736&fm=168774218585788&tin=02508201610067®Number=0000000000090858&sum=200013 [08:01:12]StoreToDocumentArchive [08:01:12]shift 463 fd 162736 [08:01:12]save to /storage/0463/doc_00162736 [08:01:12]save last doc name /storage/0463/doc_00162736 to /storage/kkm_last_doc_name [08:01:12]save OK [08:01:12]Clear old archive folders... [08:01:12]Remove dir /storage/0266 [08:01:12]opendir ok [08:01:12]file . [08:01:12]file .. [08:01:12]file doc_1720944061 [08:01:12]remove file /storage/0266/doc_1720944061 [08:01:12]remove dir /storage/0266 [08:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:01:12]tlvbuf is 012D9250 [08:01:12]SAM_PROTO_ClearQueue [08:01:12]wFMCommunicate request_size=4 [08:01:12]MH_SAM_APDU [08:01:12]CAPDU: 80 09 00 00 [08:01:12]Write to MH i2c: E2 08 00 9D 00 80 09 00 00 00 00 00 00 0F [08:01:12]Write i2c OK [08:01:12]MH_I2C_Read... [08:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:12]Read from MH i2c: E2 [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: E2 03 00 [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: E2 03 00 9D 00 00 90 00 11 [08:01:12]RAPDU: 90 00 [08:01:12]wFMCommunicate OK [08:01:12]SAM_PROTO_ClearQueue done [08:01:12]KKMCreateOFDPacket [08:01:12]OFDProtocolAddRootSTLVToBuf [08:01:12]FM_MakeSignedData [08:01:12]FM_MakeSignedData [08:01:12]SAM_PROTO_SignData [08:01:12]wFMCommunicate request_size=4 [08:01:12]MH_SAM_APDU [08:01:12]CAPDU: 80 0D 01 02 [08:01:12]Write to MH i2c: E2 08 00 9E 00 80 0D 01 02 00 00 00 00 17 [08:01:12]Write i2c OK [08:01:12]MH_I2C_Read... [08:01:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:12]Read from MH i2c: E2 [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: E2 03 00 [08:01:12]MH_I2C_Read... [08:01:12]Read from MH i2c: E2 03 00 9E 00 00 90 00 12 [08:01:12]RAPDU: 90 00 [08:01:12]wFMCommunicate OK [08:01:12]wFMCommunicate request_size=255 [08:01:12]MH_SAM_APDU [08:01:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C6 85 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7B 02 00 35 04 06 00 [08:01:12]Write to MH i2c: E2 02 01 9F 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C6 85 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7B 02 00 35 04 06 00 00 00 B1 [08:01:12]Write i2c OK [08:01:12]MH_I2C_Read... [08:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:13]Read from MH i2c: E2 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 03 00 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 03 00 9F 00 00 90 00 13 [08:01:13]RAPDU: 90 00 [08:01:13]wFMCommunicate OK [08:01:13]wFMCommunicate request_size=11 [08:01:13]MH_SAM_APDU [08:01:13]CAPDU: 80 0D 02 02 06 99 7F CF 58 96 BC [08:01:13]Write to MH i2c: E2 0E 00 A0 00 80 0D 02 02 06 00 99 7F CF 58 96 BC 00 00 B7 [08:01:13]Write i2c OK [08:01:13]MH_I2C_Read... [08:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:13]Read from MH i2c: E2 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 03 00 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 03 00 A0 00 00 90 00 14 [08:01:13]RAPDU: 90 00 [08:01:13]wFMCommunicate OK [08:01:13]wFMCommunicate request_size=4 [08:01:13]MH_SAM_APDU [08:01:13]CAPDU: 80 0D 03 02 [08:01:13]Write to MH i2c: E2 08 00 A1 00 80 0D 03 02 00 00 00 00 1C [08:01:13]Write i2c OK [08:01:13]MH_I2C_Read... [08:01:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:13]Read from MH i2c: E2 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 0B 00 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 0B 00 A1 00 00 E9 18 99 93 56 F7 25 89 90 00 45 [08:01:13]RAPDU: E9 18 99 93 56 F7 25 89 90 00 [08:01:13]wFMCommunicate OK [08:01:13]SAM_PROTO_SignData done [08:01:13]FM_MakeSignedData done [08:01:13]CreateOFDProtocolMessage [08:01:13]wFMCommunicate request_size=4 [08:01:13]MH_SAM_APDU [08:01:13]CAPDU: 80 11 00 00 [08:01:13]Write to MH i2c: E2 08 00 A2 00 80 11 00 00 00 00 00 00 1C [08:01:13]Write i2c OK [08:01:13]MH_I2C_Read... [08:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:13]Read from MH i2c: E2 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 17 00 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 17 00 A2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7C [08:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:01:13]wFMCommunicate OK [08:01:13]CreateOFDProtocolMessage done [08:01:13]OFDSenderStorePacket 162736 [08:01:13]StoreOFDPacket docnum=162736 [08:01:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F6 70 08 01 F1 BE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C6 85 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7B 02 00 35 04 06 00 99 7F CF 58 96 BC E9 18 99 93 56 F7 25 89 [08:01:13]CheckFolder [08:01:13]dirname=/storage/ofd_packets [08:01:13]CheckFolder done [08:01:13]ProducePacketName [08:01:13]name=ofd_packets/00162736 [08:01:13]NVStorageSaveData ofd_packets/00162736 [08:01:13]File name is /storage/ofd_packets/00162736 [08:01:13]Write 302 bytes [08:01:13]NVStorageSaveData done [08:01:13]OFDSenderStorePacket done [08:01:13]KKMCreateOFDPacket done [08:01:13]NVStorageSaveData kkm_last_timestamp [08:01:13]File name is /storage/kkm_last_timestamp [08:01:13]Write 4 bytes [08:01:13]NVStorageSaveData done [08:01:13]ExternCall_PrintAddStr [08:01:13]wPrintStart [08:01:13]Write to MH i2c: 01 00 00 A3 00 A3 [08:01:13]Write i2c OK [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: 01 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: 01 07 00 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: 01 07 00 A3 00 00 00 00 00 00 FF 0F B8 [08:01:13]RasterBufferAndPrint [08:01:13]line Счет N : (1)1319322 [08:01:13]line ИНН: 02508201610067 [08:01:13]line Контрольно-Кассовый Чек [08:01:13]line ПРОДАЖА [08:01:13]line ТРК (МРК, ГНК) : 31 [08:01:13]line Товар: 2710194210 [08:01:13]line ДТ(л)-К-5 [08:01:13]line 27.550 * 72.60 [08:01:13]line = 2000.13 [08:01:13]line НДС 12% НСП 1% [08:01:13]line > о реализуемом товаре [08:01:13]line ИТОГО: 2000.13 [08:01:13]line НСП 1% : 17.70 [08:01:13]line НДС 12% : 212.40 [08:01:13]line Наличными: 0.00 [08:01:13]line Безнал.: 2000.13 [08:01:13]line Место: АЗС № 140 "Партнер Нефть" [08:01:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:01:13]line СНО: Общий режим [08:01:13]line Чек 48 14.07.2024 08:01 [08:01:13]line Смена: 463 ФФД: 1.0 [08:01:13]line ЗНМ: 0300000129 [08:01:13]line РНМ: 0000000000090858 [08:01:13]line Версия ККМ: 001 [08:01:13]line Платежная система: Бакай Банк [08:01:13]line ФМ: 0000000000874899 [08:01:13]line ФД: 162736 [08:01:13]line ФПД: 168774218585788 [08:01:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T080110&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162736&fm=168774218585788&tin=02508201610067®Number=0000000000090858&sum=200013 [08:01:13]written 0, free lines is 4095 [08:01:13]OFD Sender: Processing packet 162736 [packets to send 106, broken 105] [08:01:13]ProducePacketName [08:01:13]name=ofd_packets/00162736 [08:01:13]OFD Sender: To server: pG, [08:01:13]CommunicateWithHost lk.salyk.kg:30040 [08:01:13]ConnectInit lk.salyk.kg [08:01:13]Connected sock=10 [08:01:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F6 70 08 01 F1 BE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C6 85 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7B 02 00 35 04 06 00 99 7F CF 58 96 BC E9 18 99 93 56 F7 25 89 [08:01:13]Write to MH i2c: 01 00 00 CD 00 CD [08:01:13]Write i2c OK [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: 01 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: 01 07 00 [08:01:13]MH_I2C_Read... [08:01:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 17 EB 47 00 A3 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7B 02 00 F4 03 04 00 D5 31 93 66 B6 04 01 00 00 A7 CD 76 68 5C AC BC 96 [08:01:14]CommunicateWithHost err = 0 [08:01:14]CheckOFDResponse [08:01:14]1017 (14) - 77093643461234 [08:01:14]1041 (16) - 0000000000874899 [08:01:14]1040 (4) - 162736 [08:01:14]1012 (4) - 14.07.2024 02:03 [08:01:14]1206 (1) - 0 [08:01:14]OFD Sender: Remove packet 162736 [08:01:14]ProducePacketName [08:01:14]name=ofd_packets/00162736 [08:01:14]NVStorageDeleteData [08:01:14]Read from MH i2c: 01 07 00 CD 00 00 00 00 00 00 F8 0C D8 [08:01:14]RasterBufferAndPrint [08:01:14]line [08:01:14]line [08:01:14]line [08:01:14]line [08:01:14]line [08:01:14]written 0, free lines is 3556 [08:01:14]MH_Cut [08:01:14]Write to MH i2c: D1 01 00 D4 00 01 A6 [08:01:14]Write i2c OK [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: D1 [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: D1 01 00 [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: D1 01 00 D4 00 00 A5 [08:01:14]Write to MH i2c: 01 00 00 D5 00 D5 [08:01:14]Write i2c OK [08:01:14]MH_I2C_Read... [08:01:14]OFD Sender: No OFD packet to send [08:01:14]*** Cut start [08:01:14]*** Purtial cut [08:01:14]*** CUTSNS_PIN = 0 [08:01:14]*** Stage 1: CUTSNS_PIN = 1 [08:01:16]Read from MH i2c: 01 [08:01:16]MH_I2C_Read... [08:01:16]*** Stop cut motor [08:01:16]*** Cut end [08:01:16]Read from MH i2c: 01 07 00 [08:01:16]MH_I2C_Read... [08:01:16]Read from MH i2c: 01 07 00 D5 00 00 00 00 00 00 FF 0F EA [08:01:16]process_action close_receipt done [08:01:16]requested_data is exist [08:01:16]produce_requested_data [08:01:16]requested_item fm.sn is exist - process it [08:01:16]wFMCommunicate request_size=4 [08:01:16]MH_SAM_APDU [08:01:16]CAPDU: 80 11 00 00 [08:01:16]Write to MH i2c: E2 08 00 D6 00 80 11 00 00 00 00 00 00 50 [08:01:16]Write i2c OK [08:01:16]MH_I2C_Read... [08:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:16]Read from MH i2c: E2 [08:01:16]MH_I2C_Read... [08:01:16]Read from MH i2c: E2 17 00 [08:01:16]MH_I2C_Read... [08:01:16]Read from MH i2c: E2 17 00 D6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B0 [08:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:01:16]wFMCommunicate OK [08:01:16]requested_item fd.num is exist - process it [08:01:16]SAM_PROTO_GetFieldsCounters [08:01:16]wFMCommunicate request_size=4 [08:01:16]MH_SAM_APDU [08:01:16]CAPDU: 80 13 00 00 [08:01:16]Write to MH i2c: E2 08 00 D7 00 80 13 00 00 00 00 00 00 53 [08:01:16]Write i2c OK [08:01:16]MH_I2C_Read... [08:01:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:17]Read from MH i2c: E2 [08:01:17]MH_I2C_Read... [08:01:17]Read from MH i2c: E2 62 00 [08:01:17]MH_I2C_Read... [08:01:17]Read from MH i2c: E2 62 00 D7 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B0 7B 02 00 0E 04 04 00 CF 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 13 [08:01:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B0 7B 02 00 0E 04 04 00 CF 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 [08:01:17]wFMCommunicate OK [08:01:17]SAM_PROTO_GetFieldsCounters done [08:01:17]requested_item shift.num is exist - process it [08:01:17]requested_item shift.opened is exist - process it [08:01:17]req_shift_opened [08:01:17]FM_GetShiftState [08:01:17]SAM_PROTO_GetShiftState [08:01:17]wFMCommunicate request_size=4 [08:01:17]MH_SAM_APDU [08:01:17]CAPDU: 80 13 01 00 [08:01:17]Write to MH i2c: E2 08 00 D8 00 80 13 01 00 00 00 00 00 55 [08:01:17]Write i2c OK [08:01:17]MH_I2C_Read... [08:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:17]Read from MH i2c: E2 [08:01:17]MH_I2C_Read... [08:01:17]Read from MH i2c: E2 0E 00 [08:01:17]MH_I2C_Read... [08:01:17]Read from MH i2c: E2 0E 00 D8 00 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8B [08:01:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:01:17]wFMCommunicate OK [08:01:17]SAM_PROTO_GetShiftState done [08:01:17]FM_GetShiftState done [08:01:17]req_shift_opened done [08:01:17]requested_item shift.open_date is exist - process it [08:01:17]req_shift_open_date [08:01:17]req_shift_open_date done [08:01:17]produce_requested_data done [08:01:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162736,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:01:17]process_action_free close_receipt [08:01:17]json_value_free [08:01:17]json_value_free done [08:01:17]process_json_proto returns [08:01:17]Send response to host [08:01:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162736,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:01:17]free response buf [08:01:17]execute_script done [08:01:17]execute_script returns [08:01:17]free content buf [08:01:17]Sock 7.Close socket [08:01:17]Sock 7.Thread stoped [08:01:17]accept exits with 9 [08:01:17]New connection [08:01:17]New thread 3066735972 created [08:01:17]Thread 3066879332 joined [08:01:17]Waiting for new connection... [08:01:17] Sock 9.Parse request [08:01:17]Sock 9.Check first char [08:01:17]Sock 9.First char is OK [08:01:17]request: POST /json_proto HTTP/1.0 [08:01:17]Method: POST [08:01:17]URL: /json_proto [08:01:17]Method is POST - this is cgi request [08:01:17]url: /json_proto [08:01:17]query_string will be loaded in cgi processing [08:01:17]execute_cgi json_proto POST (null) [08:01:17]execute_cgi path=json_proto method=POST [08:01:17]POST find Content-Length [08:01:17]Host: 172.17.39.67:8080 [08:01:17]Content-Length: 688 [08:01:17]Content-Type: application/json [08:01:17] [08:01:17]POST finish read [08:01:17]Found Content-Length = 688 [08:01:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:17]execute_script... [08:01: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)1319323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:17]POST & json_proto [08:01:17]process_json_proto [08:01:17]json parsed OK: [08:01:17]protocol is kg_v1.0 [08:01:17]action value=close_receipt [08:01:17]process_action close_receipt [08:01:17]cmd_close_receipt [08:01:17]MH_GetDate [08:01:17]Write to MH i2c: F0 00 00 D9 00 C8 [08:01:17]Write i2c OK [08:01:17]MH_I2C_Read... [08:01:17]Read from MH i2c: F0 [08:01:17]MH_I2C_Read... [08:01:17]Read from MH i2c: F0 09 00 [08:01:17]MH_I2C_Read... [08:01:17]Read from MH i2c: F0 09 00 D9 00 00 CD 85 93 66 B6 85 93 66 50 [08:01:17]GetLastDocTimeStamp 1720944070 [08:01:17]current date 1720944077 [08:01:17]FM_GetShiftState [08:01:17]SAM_PROTO_GetShiftState [08:01:17]wFMCommunicate request_size=4 [08:01:17]MH_SAM_APDU [08:01:17]CAPDU: 80 13 01 00 [08:01:17]Write to MH i2c: E2 08 00 DA 00 80 13 01 00 00 00 00 00 57 [08:01:17]Write i2c OK [08:01:17]MH_I2C_Read... [08:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:17]Read from MH i2c: E2 [08:01:17]MH_I2C_Read... [08:01:17]Read from MH i2c: E2 0E 00 [08:01:17]MH_I2C_Read... [08:01:17]Read from MH i2c: E2 0E 00 DA 00 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8D [08:01:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:01:17]wFMCommunicate OK [08:01:17]SAM_PROTO_GetShiftState done [08:01:17]FM_GetShiftState done [08:01:17]opened in 1720915483 [08:01:17]opened+sec_in_day 1721001883 [08:01:17]quantity*price = 100042 [08:01:17]sum+1 = 100044 [08:01:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 49 14.07.2024 08:01 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162737 ФПД: 106500941659660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T080117&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162737&fm=106500941659660&tin=02508201610067®Number=0000000000090858&sum=100000 [08:01:19]StoreToDocumentArchive [08:01:19]shift 463 fd 162737 [08:01:19]save to /storage/0463/doc_00162737 [08:01:19]save last doc name /storage/0463/doc_00162737 to /storage/kkm_last_doc_name [08:01:19]save OK [08:01:19]Clear old archive folders... [08:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:01:19]tlvbuf is 012EB720 [08:01:19]SAM_PROTO_ClearQueue [08:01:19]wFMCommunicate request_size=4 [08:01:19]MH_SAM_APDU [08:01:19]CAPDU: 80 09 00 00 [08:01:19]Write to MH i2c: E2 08 00 E7 00 80 09 00 00 00 00 00 00 59 [08:01:19]Write i2c OK [08:01:19]MH_I2C_Read... [08:01:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:19]Read from MH i2c: E2 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 03 00 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 03 00 E7 00 00 90 00 5B [08:01:19]RAPDU: 90 00 [08:01:19]wFMCommunicate OK [08:01:19]SAM_PROTO_ClearQueue done [08:01:19]KKMCreateOFDPacket [08:01:19]OFDProtocolAddRootSTLVToBuf [08:01:19]FM_MakeSignedData [08:01:19]FM_MakeSignedData [08:01:19]SAM_PROTO_SignData [08:01:19]wFMCommunicate request_size=4 [08:01:19]MH_SAM_APDU [08:01:19]CAPDU: 80 0D 01 02 [08:01:19]Write to MH i2c: E2 08 00 E8 00 80 0D 01 02 00 00 00 00 61 [08:01:19]OFD Sender: No OFD packet to send [08:01:19]Write i2c OK [08:01:19]MH_I2C_Read... [08:01:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:19]Read from MH i2c: E2 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 03 00 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 03 00 E8 00 00 90 00 5C [08:01:19]RAPDU: 90 00 [08:01:19]wFMCommunicate OK [08:01:19]wFMCommunicate request_size=255 [08:01:19]MH_SAM_APDU [08:01:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 CD 85 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7B 02 00 35 04 06 00 [08:01:19]Write to MH i2c: E2 02 01 E9 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 CD 85 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7B 02 00 35 04 06 00 00 00 74 [08:01:20]Write i2c OK [08:01:20]MH_I2C_Read... [08:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:20]Read from MH i2c: E2 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: E2 03 00 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: E2 03 00 E9 00 00 90 00 5D [08:01:20]RAPDU: 90 00 [08:01:20]wFMCommunicate OK [08:01:20]wFMCommunicate request_size=11 [08:01:20]MH_SAM_APDU [08:01:20]CAPDU: 80 0D 02 02 06 60 DC AE CB BE 0C [08:01:20]Write to MH i2c: E2 0E 00 EA 00 80 0D 02 02 06 00 60 DC AE CB BE 0C 00 00 EF [08:01:20]Write i2c OK [08:01:20]MH_I2C_Read... [08:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:20]Read from MH i2c: E2 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: E2 03 00 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: E2 03 00 EA 00 00 90 00 5E [08:01:20]RAPDU: 90 00 [08:01:20]wFMCommunicate OK [08:01:20]wFMCommunicate request_size=4 [08:01:20]MH_SAM_APDU [08:01:20]CAPDU: 80 0D 03 02 [08:01:20]Write to MH i2c: E2 08 00 EB 00 80 0D 03 02 00 00 00 00 66 [08:01:20]Write i2c OK [08:01:20]MH_I2C_Read... [08:01:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:20]Read from MH i2c: E2 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: E2 0B 00 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: E2 0B 00 EB 00 00 87 81 38 D1 BB B2 A0 F4 90 00 79 [08:01:20]RAPDU: 87 81 38 D1 BB B2 A0 F4 90 00 [08:01:20]wFMCommunicate OK [08:01:20]SAM_PROTO_SignData done [08:01:20]FM_MakeSignedData done [08:01:20]CreateOFDProtocolMessage [08:01:20]wFMCommunicate request_size=4 [08:01:20]MH_SAM_APDU [08:01:20]CAPDU: 80 11 00 00 [08:01:20]Write to MH i2c: E2 08 00 EC 00 80 11 00 00 00 00 00 00 66 [08:01:20]Write i2c OK [08:01:20]MH_I2C_Read... [08:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:20]Read from MH i2c: E2 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: E2 17 00 [08:01:20]MH_I2C_Read... [08:01:20]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 34 38 39 39 90 00 C6 [08:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:01:20]wFMCommunicate OK [08:01:20]CreateOFDProtocolMessage done [08:01:20]OFDSenderStorePacket 162737 [08:01:20]StoreOFDPacket docnum=162737 [08:01:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 6F 08 01 3A C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 CD 85 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7B 02 00 35 04 06 00 60 DC AE CB BE 0C 87 81 38 D1 BB B2 A0 F4 [08:01:20]CheckFolder [08:01:20]dirname=/storage/ofd_packets [08:01:20]CheckFolder done [08:01:20]ProducePacketName [08:01:20]name=ofd_packets/00162737 [08:01:20]NVStorageSaveData ofd_packets/00162737 [08:01:20]File name is /storage/ofd_packets/00162737 [08:01:20]Write 302 bytes [08:01:20]NVStorageSaveData done [08:01:20]OFDSenderStorePacket done [08:01:20]KKMCreateOFDPacket done [08:01:20]NVStorageSaveData kkm_last_timestamp [08:01:20]File name is /storage/kkm_last_timestamp [08:01:20]Write 4 bytes [08:01:20]NVStorageSaveData done [08:01:20]ExternCall_PrintAddStr [08:01:20]wPrintStart [08:01:20]Write to MH i2c: 01 00 00 ED 00 ED [08:01:20]Write i2c OK [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: 01 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: 01 07 00 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 FF 0F 02 [08:01:20]RasterBufferAndPrint [08:01:20]line Счет N : (1)1319323 [08:01:20]line ИНН: 02508201610067 [08:01:20]OFD Sender: Processing packet 162737 [packets to send 106, broken 105] [08:01:20]ProducePacketName [08:01:20]name=ofd_packets/00162737 [08:01:20]OFD Sender: To server: pG, [08:01:20]CommunicateWithHost lk.salyk.kg:30040 [08:01:20]ConnectInit lk.salyk.kg [08:01:20]line Контрольно-Кассовый Чек [08:01:20]line ПРОДАЖА [08:01:20]line ТРК (МРК, ГНК) : 21 [08:01:20]line Товар: 2710194210 [08:01:20]line ДТ(л)-К-5 [08:01:20]line 13.780 * 72.60 [08:01:20]line = 1000.43 [08:01:20]line НДС 12% НСП 1% [08:01:20]line > о реализуемом товаре [08:01:20]line ОКРУГЛЕНИЕ: -0.43 [08:01:20]line ИТОГО: 1000.00 [08:01:20]line Внесено: 1000.00 [08:01:20]line СДАЧА: 0.00 [08:01:20]line НСП 1% : 8.85 [08:01:20]line НДС 12% : 106.24 [08:01:20]line Наличными: 1000.00 [08:01:20]line Безнал.: 0.00 [08:01:20]line Место: АЗС № 140 "Партнер Нефть" [08:01:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:01:20]line СНО: Общий режим [08:01:20]line Чек 49 14.07.2024 08:01 [08:01:20]line Смена: 463 ФФД: 1.0 [08:01:20]line ЗНМ: 0300000129 [08:01:20]line РНМ: 0000000000090858 [08:01:20]line Версия ККМ: 001 [08:01:20]line ФМ: 0000000000874899 [08:01:20]line ФД: 162737 [08:01:20]line ФПД: 106500941659660 [08:01:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T080117&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162737&fm=106500941659660&tin=02508201610067®Number=0000000000090858&sum=100000 [08:01:20]written 0, free lines is 4095 [08:01:20]Connected sock=11 [08:01:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 6F 08 01 3A C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 CD 85 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7B 02 00 35 04 06 00 60 DC AE CB BE 0C 87 81 38 D1 BB B2 A0 F4 [08:01:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D8 48 47 00 14 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7B 02 00 F4 03 04 00 DD 31 93 66 B6 04 01 00 00 C6 B5 23 8D 48 77 CA E7 [08:01:21]CommunicateWithHost err = 0 [08:01:21]CheckOFDResponse [08:01:21]1017 (14) - 77093643461234 [08:01:21]1041 (16) - 0000000000874899 [08:01:21]1040 (4) - 162737 [08:01:21]1012 (4) - 14.07.2024 02:03 [08:01:21]1206 (1) - 0 [08:01:21]OFD Sender: Remove packet 162737 [08:01:21]ProducePacketName [08:01:21]name=ofd_packets/00162737 [08:01:21]NVStorageDeleteData [08:01:21]Write to MH i2c: 01 00 00 18 01 19 [08:01:21]Write i2c OK [08:01:21]MH_I2C_Read... [08:01:21]Read from MH i2c: 01 [08:01:21]MH_I2C_Read... [08:01:21]Read from MH i2c: 01 07 00 [08:01:21]MH_I2C_Read... [08:01:21]Read from MH i2c: 01 07 00 18 01 00 00 00 00 00 C4 0D F1 [08:01:21]RasterBufferAndPrint [08:01:21]line [08:01:21]line [08:01:21]line [08:01:21]line [08:01:21]line [08:01:21]written 0, free lines is 3555 [08:01:21]MH_Cut [08:01:21]Write to MH i2c: D1 01 00 1F 01 01 F2 [08:01:21]Write i2c OK [08:01:21]MH_I2C_Read... [08:01:21]Read from MH i2c: D1 [08:01:21]MH_I2C_Read... [08:01:21]Read from MH i2c: D1 01 00 [08:01:21]MH_I2C_Read... [08:01:21]Read from MH i2c: D1 01 00 1F 01 00 F1 [08:01:21]Write to MH i2c: 01 00 00 20 01 21 [08:01:21]Write i2c OK [08:01:21]MH_I2C_Read... [08:01:21]OFD Sender: No OFD packet to send [08:01:21]*** Cut start [08:01:21]*** Purtial cut [08:01:21]*** Stage 1: CUTSNS_PIN = 1 [08:01:22]Read from MH i2c: 01 [08:01:22]MH_I2C_Read... [08:01:22]*** Stop cut motor [08:01:22]*** Cut end [08:01:22]Read from MH i2c: 01 07 00 [08:01:22]MH_I2C_Read... [08:01:22]Read from MH i2c: 01 07 00 20 01 00 00 00 00 00 FF 0F 36 [08:01:22]process_action close_receipt done [08:01:22]requested_data is exist [08:01:22]produce_requested_data [08:01:22]requested_item fm.sn is exist - process it [08:01:22]wFMCommunicate request_size=4 [08:01:22]MH_SAM_APDU [08:01:22]CAPDU: 80 11 00 00 [08:01:22]Write to MH i2c: E2 08 00 21 01 80 11 00 00 00 00 00 00 9C [08:01:22]Write i2c OK [08:01:22]MH_I2C_Read... [08:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:22]Read from MH i2c: E2 [08:01:22]MH_I2C_Read... [08:01:22]Read from MH i2c: E2 17 00 [08:01:22]MH_I2C_Read... [08:01:22]Read from MH i2c: E2 17 00 21 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FC [08:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:01:22]wFMCommunicate OK [08:01:22]requested_item fd.num is exist - process it [08:01:22]SAM_PROTO_GetFieldsCounters [08:01:22]wFMCommunicate request_size=4 [08:01:22]MH_SAM_APDU [08:01:22]CAPDU: 80 13 00 00 [08:01:22]Write to MH i2c: E2 08 00 22 01 80 13 00 00 00 00 00 00 9F [08:01:22]Write i2c OK [08:01:22]MH_I2C_Read... [08:01:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:22]Read from MH i2c: E2 [08:01:22]MH_I2C_Read... [08:01:22]Read from MH i2c: E2 62 00 [08:01:22]MH_I2C_Read... [08:01:22]Read from MH i2c: E2 62 00 22 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B1 7B 02 00 0E 04 04 00 CF 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 63 [08:01:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B1 7B 02 00 0E 04 04 00 CF 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 [08:01:22]wFMCommunicate OK [08:01:22]SAM_PROTO_GetFieldsCounters done [08:01:22]requested_item shift.num is exist - process it [08:01:22]requested_item shift.opened is exist - process it [08:01:22]req_shift_opened [08:01:22]FM_GetShiftState [08:01:22]SAM_PROTO_GetShiftState [08:01:22]wFMCommunicate request_size=4 [08:01:22]MH_SAM_APDU [08:01:22]CAPDU: 80 13 01 00 [08:01:22]Write to MH i2c: E2 08 00 23 01 80 13 01 00 00 00 00 00 A1 [08:01:22]Write i2c OK [08:01:22]MH_I2C_Read... [08:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:22]Read from MH i2c: E2 [08:01:22]MH_I2C_Read... [08:01:22]Read from MH i2c: E2 0E 00 [08:01:22]MH_I2C_Read... [08:01:22]Read from MH i2c: E2 0E 00 23 01 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D7 [08:01:22]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:01:22]wFMCommunicate OK [08:01:22]SAM_PROTO_GetShiftState done [08:01:22]FM_GetShiftState done [08:01:22]req_shift_opened done [08:01:22]requested_item shift.open_date is exist - process it [08:01:22]req_shift_open_date [08:01:22]req_shift_open_date done [08:01:22]produce_requested_data done [08:01:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162737,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:01:22]process_action_free close_receipt [08:01:22]json_value_free [08:01:22]json_value_free done [08:01:22]process_json_proto returns [08:01:22]Send response to host [08:01:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162737,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:01:22]free response buf [08:01:22]execute_script done [08:01:22]execute_script returns [08:01:22]free content buf [08:01:22]Sock 9.Close socket [08:01:22]Sock 9.Thread stoped [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:04]accept exits with 7 [08:07:04]New connection [08:07:04]New thread 3066879332 created [08:07:04]Thread 3066735972 joined [08:07:04]Waiting for new connection... [08:07:04] Sock 7.Parse request [08:07:04]Sock 7.Check first char [08:07:04]Sock 7.First char is OK [08:07:04]request: POST /json_proto HTTP/1.0 [08:07:04]Method: POST [08:07:04]URL: /json_proto [08:07:04]Method is POST - this is cgi request [08:07:04]url: /json_proto [08:07:04]query_string will be loaded in cgi processing [08:07:04]execute_cgi json_proto POST (null) [08:07:04]execute_cgi path=json_proto method=POST [08:07:04]POST find Content-Length [08:07:04]Host: 172.17.39.67:8080 [08:07:04]Content-Length: 683 [08:07:04]Content-Type: application/json [08:07:04] [08:07:04]POST finish read [08:07:04]Found Content-Length = 683 [08:07:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:07:04]execute_script... [08:07: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)1319324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:07:04]POST & json_proto [08:07:04]process_json_proto [08:07:04]json parsed OK: [08:07:04]protocol is kg_v1.0 [08:07:04]action value=close_receipt [08:07:04]process_action close_receipt [08:07:04]cmd_close_receipt [08:07:04]MH_GetDate [08:07:04]Write to MH i2c: F0 00 00 24 01 14 [08:07:04]Write i2c OK [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: F0 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: F0 09 00 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: F0 09 00 24 01 00 28 87 93 66 B6 85 93 66 F9 [08:07:04]GetLastDocTimeStamp 1720944077 [08:07:04]current date 1720944424 [08:07:04]FM_GetShiftState [08:07:04]SAM_PROTO_GetShiftState [08:07:04]wFMCommunicate request_size=4 [08:07:04]MH_SAM_APDU [08:07:04]CAPDU: 80 13 01 00 [08:07:04]Write to MH i2c: E2 08 00 25 01 80 13 01 00 00 00 00 00 A3 [08:07:04]Write i2c OK [08:07:04]MH_I2C_Read... [08:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:04]Read from MH i2c: E2 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: E2 0E 00 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: E2 0E 00 25 01 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D9 [08:07:04]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:07:04]wFMCommunicate OK [08:07:04]SAM_PROTO_GetShiftState done [08:07:04]FM_GetShiftState done [08:07:04]opened in 1720915483 [08:07:04]opened+sec_in_day 1721001883 [08:07:04]quantity*price = 100046 [08:07:04]sum+1 = 100048 [08:07:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 50 14.07.2024 08:07 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162738 ФПД: 196726141335448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T080704&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162738&fm=196726141335448&tin=02508201610067®Number=0000000000090858&sum=100000 [08:07:05]StoreToDocumentArchive [08:07:05]shift 463 fd 162738 [08:07:05]save to /storage/0463/doc_00162738 [08:07:05]save last doc name /storage/0463/doc_00162738 to /storage/kkm_last_doc_name [08:07:05]save OK [08:07:05]Clear old archive folders... [08:07:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:05]tlvbuf is 012249A0 [08:07:05]SAM_PROTO_ClearQueue [08:07:05]wFMCommunicate request_size=4 [08:07:05]MH_SAM_APDU [08:07:05]CAPDU: 80 09 00 00 [08:07:05]Write to MH i2c: E2 08 00 32 01 80 09 00 00 00 00 00 00 A5 [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:05]Read from MH i2c: E2 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 03 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 03 00 32 01 00 90 00 A7 [08:07:05]RAPDU: 90 00 [08:07:05]wFMCommunicate OK [08:07:05]SAM_PROTO_ClearQueue done [08:07:05]KKMCreateOFDPacket [08:07:05]OFDProtocolAddRootSTLVToBuf [08:07:05]FM_MakeSignedData [08:07:05]FM_MakeSignedData [08:07:05]SAM_PROTO_SignData [08:07:05]wFMCommunicate request_size=4 [08:07:05]MH_SAM_APDU [08:07:05]CAPDU: 80 0D 01 02 [08:07:05]Write to MH i2c: E2 08 00 33 01 80 0D 01 02 00 00 00 00 AD [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:05]Read from MH i2c: E2 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 03 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 03 00 33 01 00 90 00 A8 [08:07:05]RAPDU: 90 00 [08:07:05]wFMCommunicate OK [08:07:05]wFMCommunicate request_size=255 [08:07:05]MH_SAM_APDU [08:07:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 28 87 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7B 02 00 35 04 06 00 B2 [08:07:05]Write to MH i2c: E2 02 01 34 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 28 87 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7B 02 00 35 04 06 00 B2 00 00 44 [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:05]Read from MH i2c: E2 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 03 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 03 00 34 01 00 90 00 A9 [08:07:05]RAPDU: 90 00 [08:07:05]wFMCommunicate OK [08:07:05]wFMCommunicate request_size=10 [08:07:05]MH_SAM_APDU [08:07:05]CAPDU: 80 0D 02 02 05 EB DF C5 B7 98 [08:07:05]Write to MH i2c: E2 0D 00 35 01 80 0D 02 02 05 00 EB DF C5 B7 98 00 00 98 [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:05]Read from MH i2c: E2 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 03 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 03 00 35 01 00 90 00 AA [08:07:05]RAPDU: 90 00 [08:07:05]wFMCommunicate OK [08:07:05]wFMCommunicate request_size=4 [08:07:05]MH_SAM_APDU [08:07:05]CAPDU: 80 0D 03 02 [08:07:05]Write to MH i2c: E2 08 00 36 01 80 0D 03 02 00 00 00 00 B2 [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:05]Read from MH i2c: E2 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 0B 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 0B 00 36 01 00 3E 80 6D E6 9F E6 EA 3A 90 00 6D [08:07:05]RAPDU: 3E 80 6D E6 9F E6 EA 3A 90 00 [08:07:05]wFMCommunicate OK [08:07:05]SAM_PROTO_SignData done [08:07:05]FM_MakeSignedData done [08:07:05]CreateOFDProtocolMessage [08:07:05]wFMCommunicate request_size=4 [08:07:05]MH_SAM_APDU [08:07:05]CAPDU: 80 11 00 00 [08:07:05]Write to MH i2c: E2 08 00 37 01 80 11 00 00 00 00 00 00 B2 [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:06]Read from MH i2c: E2 [08:07:06]MH_I2C_Read... [08:07:06]Read from MH i2c: E2 17 00 [08:07:06]MH_I2C_Read... [08:07:06]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 34 38 39 39 90 00 12 [08:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:07:06]wFMCommunicate OK [08:07:06]CreateOFDProtocolMessage done [08:07:06]OFDSenderStorePacket 162738 [08:07:06]StoreOFDPacket docnum=162738 [08:07:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 46 73 07 01 09 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 28 87 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7B 02 00 35 04 06 00 B2 EB DF C5 B7 98 3E 80 6D E6 9F E6 EA 3A [08:07:06]CheckFolder [08:07:06]dirname=/storage/ofd_packets [08:07:06]CheckFolder done [08:07:06]ProducePacketName [08:07:06]name=ofd_packets/00162738 [08:07:06]NVStorageSaveData ofd_packets/00162738 [08:07:06]File name is /storage/ofd_packets/00162738 [08:07:06]Write 301 bytes [08:07:06]NVStorageSaveData done [08:07:06]OFDSenderStorePacket done [08:07:06]KKMCreateOFDPacket done [08:07:06]NVStorageSaveData kkm_last_timestamp [08:07:06]File name is /storage/kkm_last_timestamp [08:07:06]Write 4 bytes [08:07:06]NVStorageSaveData done [08:07:06]ExternCall_PrintAddStr [08:07:06]wPrintStart [08:07:06]Write to MH i2c: 01 00 00 38 01 39 [08:07:06]Write i2c OK [08:07:06]MH_I2C_Read... [08:07:06]Read from MH i2c: 01 [08:07:06]MH_I2C_Read... [08:07:06]Read from MH i2c: 01 07 00 [08:07:06]MH_I2C_Read... [08:07:06]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 FF 0F 4E [08:07:06]RasterBufferAndPrint [08:07:06]line Счет N : (1)1319324 [08:07:06]line ИНН: 02508201610067 [08:07:06]line Контрольно-Кассовый Чек [08:07:06]line ПРОДАЖА [08:07:06]line ТРК (МРК, ГНК) : 43 [08:07:06]line Товар: 2710124130 [08:07:06]line Аи-92-К-5 [08:07:06]line 15.090 * 66.30 [08:07:06]line = 1000.47 [08:07:06]line НДС 12% НСП 1% [08:07:06]line > о реализуемом товаре [08:07:06]line ОКРУГЛЕНИЕ: -0.47 [08:07:06]line ИТОГО: 1000.00 [08:07:06]line Внесено: 1000.00 [08:07:06]line СДАЧА: 0.00 [08:07:06]line НСП 1% : 8.85 [08:07:06]line НДС 12% : 106.24 [08:07:06]line Наличными: 1000.00 [08:07:06]line Безнал.: 0.00 [08:07:06]line Место: АЗС № 140 "Партнер Нефть" [08:07:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:07:06]line СНО: Общий режим [08:07:06]line Чек 50 14.07.2024 08:07 [08:07:06]line Смена: 463 ФФД: 1.0 [08:07:06]line ЗНМ: 0300000129 [08:07:06]line РНМ: 0000000000090858 [08:07:06]line Версия ККМ: 001 [08:07:06]line ФМ: 0000000000874899 [08:07:06]line ФД: 162738 [08:07:06]line ФПД: 196726141335448 [08:07:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T080704&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162738&fm=196726141335448&tin=02508201610067®Number=0000000000090858&sum=100000 [08:07:06]OFD Sender: Processing packet 162738 [packets to send 106, broken 105] [08:07:06]ProducePacketName [08:07:06]name=ofd_packets/00162738 [08:07:06]OFD Sender: To server: pG, [08:07:06]CommunicateWithHost lk.salyk.kg:30040 [08:07:06]ConnectInit lk.salyk.kg [08:07:06]written 0, free lines is 4095 [08:07:06]Connected sock=10 [08:07:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 46 73 07 01 09 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 28 87 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7B 02 00 35 04 06 00 B2 EB DF C5 B7 98 3E 80 6D E6 9F E6 EA 3A [08:07:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0D 23 47 00 4A DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7B 02 00 F4 03 04 00 36 33 93 66 B6 04 01 00 00 72 A3 79 68 BC 6A 46 8A [08:07:06]CommunicateWithHost err = 0 [08:07:06]CheckOFDResponse [08:07:06]1017 (14) - 77093643461234 [08:07:06]1041 (16) - 0000000000874899 [08:07:06]1040 (4) - 162738 [08:07:06]1012 (4) - 14.07.2024 02:08 [08:07:06]1206 (1) - 0 [08:07:06]OFD Sender: Remove packet 162738 [08:07:06]ProducePacketName [08:07:06]name=ofd_packets/00162738 [08:07:06]NVStorageDeleteData [08:07:06]Write to MH i2c: 01 00 00 63 01 64 [08:07:06]Write i2c OK [08:07:06]MH_I2C_Read... [08:07:06]Read from MH i2c: 01 [08:07:06]MH_I2C_Read... [08:07:06]Read from MH i2c: 01 07 00 [08:07:06]MH_I2C_Read... [08:07:06]Read from MH i2c: 01 07 00 63 01 00 00 00 00 00 D8 0C 4F [08:07:06]RasterBufferAndPrint [08:07:06]line [08:07:06]line [08:07:06]line [08:07:06]line [08:07:06]line [08:07:06]written 0, free lines is 3295 [08:07:06]MH_Cut [08:07:06]Write to MH i2c: D1 01 00 6A 01 01 3D [08:07:06]Write i2c OK [08:07:06]MH_I2C_Read... [08:07:06]Read from MH i2c: D1 [08:07:06]MH_I2C_Read... [08:07:06]Read from MH i2c: D1 01 00 [08:07:06]MH_I2C_Read... [08:07:06]Read from MH i2c: D1 01 00 6A 01 00 3C [08:07:06]Write to MH i2c: 01 00 00 6B 01 6C [08:07:06]Write i2c OK [08:07:06]MH_I2C_Read... [08:07:07]OFD Sender: No OFD packet to send [08:07:07]*** Cut start [08:07:07]*** Purtial cut [08:07:07]*** CUTSNS_PIN = 0 [08:07:07]*** Stage 1: CUTSNS_PIN = 1 [08:07:09]Read from MH i2c: 01 [08:07:09]MH_I2C_Read... [08:07:09]*** Stop cut motor [08:07:09]*** Cut end [08:07:09]Read from MH i2c: 01 07 00 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: 01 07 00 6B 01 00 00 00 00 00 FF 0F 81 [08:07:09]process_action close_receipt done [08:07:09]requested_data is exist [08:07:09]produce_requested_data [08:07:09]requested_item fm.sn is exist - process it [08:07:09]wFMCommunicate request_size=4 [08:07:09]MH_SAM_APDU [08:07:09]CAPDU: 80 11 00 00 [08:07:09]Write to MH i2c: E2 08 00 6C 01 80 11 00 00 00 00 00 00 E7 [08:07:09]Write i2c OK [08:07:09]MH_I2C_Read... [08:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:09]Read from MH i2c: E2 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 17 00 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 17 00 6C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 47 [08:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:07:09]wFMCommunicate OK [08:07:09]requested_item fd.num is exist - process it [08:07:09]SAM_PROTO_GetFieldsCounters [08:07:09]wFMCommunicate request_size=4 [08:07:09]MH_SAM_APDU [08:07:09]CAPDU: 80 13 00 00 [08:07:09]Write to MH i2c: E2 08 00 6D 01 80 13 00 00 00 00 00 00 EA [08:07:09]Write i2c OK [08:07:09]MH_I2C_Read... [08:07:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:09]Read from MH i2c: E2 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 62 00 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 62 00 6D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B2 7B 02 00 0E 04 04 00 CF 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 B2 [08:07:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B2 7B 02 00 0E 04 04 00 CF 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 [08:07:09]wFMCommunicate OK [08:07:09]SAM_PROTO_GetFieldsCounters done [08:07:09]requested_item shift.num is exist - process it [08:07:09]requested_item shift.opened is exist - process it [08:07:09]req_shift_opened [08:07:09]FM_GetShiftState [08:07:09]SAM_PROTO_GetShiftState [08:07:09]wFMCommunicate request_size=4 [08:07:09]MH_SAM_APDU [08:07:09]CAPDU: 80 13 01 00 [08:07:09]Write to MH i2c: E2 08 00 6E 01 80 13 01 00 00 00 00 00 EC [08:07:09]Write i2c OK [08:07:09]MH_I2C_Read... [08:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:09]Read from MH i2c: E2 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 0E 00 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 0E 00 6E 01 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 22 [08:07:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:07:09]wFMCommunicate OK [08:07:09]SAM_PROTO_GetShiftState done [08:07:09]FM_GetShiftState done [08:07:09]req_shift_opened done [08:07:09]requested_item shift.open_date is exist - process it [08:07:09]req_shift_open_date [08:07:09]req_shift_open_date done [08:07:09]produce_requested_data done [08:07:09]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162738,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:07:09]process_action_free close_receipt [08:07:09]json_value_free [08:07:09]json_value_free done [08:07:09]process_json_proto returns [08:07:09]Send response to host [08:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162738,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:07:09]free response buf [08:07:09]execute_script done [08:07:09]execute_script returns [08:07:09]free content buf [08:07:09]Sock 7.Close socket [08:07:09]Sock 7.Thread stoped [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:10]accept exits with 9 [08:12:10]New connection [08:12:10]New thread 3066735972 created [08:12:10]Thread 3066879332 joined [08:12:10]Waiting for new connection... [08:12:10] Sock 9.Parse request [08:12:10]Sock 9.Check first char [08:12:10]Sock 9.First char is OK [08:12:10]request: POST /json_proto HTTP/1.0 [08:12:10]Method: POST [08:12:10]URL: /json_proto [08:12:10]Method is POST - this is cgi request [08:12:10]url: /json_proto [08:12:10]query_string will be loaded in cgi processing [08:12:10]execute_cgi json_proto POST (null) [08:12:10]execute_cgi path=json_proto method=POST [08:12:10]POST find Content-Length [08:12:10]Host: 172.17.39.67:8080 [08:12:10]Content-Length: 688 [08:12:10]Content-Type: application/json [08:12:10] [08:12:10]POST finish read [08:12:10]Found Content-Length = 688 [08:12:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 33.060, "sum" : 2400.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:10]execute_script... [08:12: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)1319325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 33.060, "sum" : 2400.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:10]POST & json_proto [08:12:10]process_json_proto [08:12:10]json parsed OK: [08:12:10]protocol is kg_v1.0 [08:12:10]action value=close_receipt [08:12:10]process_action close_receipt [08:12:10]cmd_close_receipt [08:12:10]MH_GetDate [08:12:10]Write to MH i2c: F0 00 00 6F 01 5F [08:12:10]Write i2c OK [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: F0 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: F0 09 00 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: F0 09 00 6F 01 00 5A 88 93 66 B6 85 93 66 77 [08:12:10]GetLastDocTimeStamp 1720944424 [08:12:10]current date 1720944730 [08:12:10]FM_GetShiftState [08:12:10]SAM_PROTO_GetShiftState [08:12:10]wFMCommunicate request_size=4 [08:12:10]MH_SAM_APDU [08:12:10]CAPDU: 80 13 01 00 [08:12:10]Write to MH i2c: E2 08 00 70 01 80 13 01 00 00 00 00 00 EE [08:12:10]Write i2c OK [08:12:10]MH_I2C_Read... [08:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:10]Read from MH i2c: E2 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: E2 0E 00 [08:12:10]MH_I2C_Read... [08:12:10]Read from MH i2c: E2 0E 00 70 01 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 24 [08:12:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:12:10]wFMCommunicate OK [08:12:10]SAM_PROTO_GetShiftState done [08:12:10]FM_GetShiftState done [08:12:10]opened in 1720915483 [08:12:10]opened+sec_in_day 1721001883 [08:12:10]quantity*price = 240015 [08:12:10]sum+1 = 240017 [08:12:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.88 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 51 14.07.2024 08:12 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162739 ФПД: 216956469997894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T081210&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162739&fm=216956469997894&tin=02508201610067®Number=0000000000090858&sum=240000 [08:12:11]StoreToDocumentArchive [08:12:11]shift 463 fd 162739 [08:12:11]save to /storage/0463/doc_00162739 [08:12:11]save last doc name /storage/0463/doc_00162739 to /storage/kkm_last_doc_name [08:12:11]save OK [08:12:11]Clear old archive folders... [08:12:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:12:11]tlvbuf is 012EB1B0 [08:12:11]SAM_PROTO_ClearQueue [08:12:11]wFMCommunicate request_size=4 [08:12:11]MH_SAM_APDU [08:12:11]CAPDU: 80 09 00 00 [08:12:11]Write to MH i2c: E2 08 00 7D 01 80 09 00 00 00 00 00 00 F0 [08:12:11]Write i2c OK [08:12:11]MH_I2C_Read... [08:12:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:11]Read from MH i2c: E2 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 03 00 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 03 00 7D 01 00 90 00 F2 [08:12:11]RAPDU: 90 00 [08:12:11]wFMCommunicate OK [08:12:11]SAM_PROTO_ClearQueue done [08:12:11]KKMCreateOFDPacket [08:12:11]OFDProtocolAddRootSTLVToBuf [08:12:11]FM_MakeSignedData [08:12:11]FM_MakeSignedData [08:12:11]SAM_PROTO_SignData [08:12:11]wFMCommunicate request_size=4 [08:12:11]MH_SAM_APDU [08:12:11]CAPDU: 80 0D 01 02 [08:12:11]Write to MH i2c: E2 08 00 7E 01 80 0D 01 02 00 00 00 00 F8 [08:12:11]Write i2c OK [08:12:11]MH_I2C_Read... [08:12:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:11]Read from MH i2c: E2 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 03 00 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 03 00 7E 01 00 90 00 F3 [08:12:11]RAPDU: 90 00 [08:12:11]wFMCommunicate OK [08:12:11]wFMCommunicate request_size=255 [08:12:11]MH_SAM_APDU [08:12:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 24 81 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 5A 88 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7B 02 00 35 04 06 00 [08:12:11]Write to MH i2c: E2 02 01 7F 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 24 81 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 5A 88 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7B 02 00 35 04 06 00 00 00 55 [08:12:11]Write i2c OK [08:12:11]MH_I2C_Read... [08:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:11]Read from MH i2c: E2 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 03 00 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 03 00 7F 01 00 90 00 F4 [08:12:11]RAPDU: 90 00 [08:12:11]wFMCommunicate OK [08:12:11]wFMCommunicate request_size=11 [08:12:11]MH_SAM_APDU [08:12:11]CAPDU: 80 0D 02 02 06 C5 52 1D 53 71 46 [08:12:11]Write to MH i2c: E2 0E 00 80 01 80 0D 02 02 06 00 C5 52 1D 53 71 46 00 00 45 [08:12:11]Write i2c OK [08:12:11]MH_I2C_Read... [08:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:11]Read from MH i2c: E2 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 03 00 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 03 00 80 01 00 90 00 F5 [08:12:11]RAPDU: 90 00 [08:12:11]wFMCommunicate OK [08:12:11]wFMCommunicate request_size=4 [08:12:11]MH_SAM_APDU [08:12:11]CAPDU: 80 0D 03 02 [08:12:11]Write to MH i2c: E2 08 00 81 01 80 0D 03 02 00 00 00 00 FD [08:12:11]Write i2c OK [08:12:11]MH_I2C_Read... [08:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:11]Read from MH i2c: E2 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 0B 00 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 0B 00 81 01 00 DF F4 9F A6 58 83 52 E1 90 00 24 [08:12:11]RAPDU: DF F4 9F A6 58 83 52 E1 90 00 [08:12:11]wFMCommunicate OK [08:12:11]SAM_PROTO_SignData done [08:12:11]FM_MakeSignedData done [08:12:11]CreateOFDProtocolMessage [08:12:11]wFMCommunicate request_size=4 [08:12:11]MH_SAM_APDU [08:12:11]CAPDU: 80 11 00 00 [08:12:11]Write to MH i2c: E2 08 00 82 01 80 11 00 00 00 00 00 00 FD [08:12:11]Write i2c OK [08:12:11]MH_I2C_Read... [08:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:11]Read from MH i2c: E2 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 17 00 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: E2 17 00 82 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5D [08:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:12:11]wFMCommunicate OK [08:12:11]CreateOFDProtocolMessage done [08:12:11]OFDSenderStorePacket 162739 [08:12:11]StoreOFDPacket docnum=162739 [08:12:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D8 FE 08 01 81 9C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 24 81 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 5A 88 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7B 02 00 35 04 06 00 C5 52 1D 53 71 46 DF F4 9F A6 58 83 52 E1 [08:12:11]CheckFolder [08:12:11]dirname=/storage/ofd_packets [08:12:11]CheckFolder done [08:12:11]ProducePacketName [08:12:11]name=ofd_packets/00162739 [08:12:11]NVStorageSaveData ofd_packets/00162739 [08:12:11]File name is /storage/ofd_packets/00162739 [08:12:11]Write 302 bytes [08:12:11]NVStorageSaveData done [08:12:11]OFDSenderStorePacket done [08:12:11]KKMCreateOFDPacket done [08:12:11]NVStorageSaveData kkm_last_timestamp [08:12:11]File name is /storage/kkm_last_timestamp [08:12:11]Write 4 bytes [08:12:11]NVStorageSaveData done [08:12:11]ExternCall_PrintAddStr [08:12:11]wPrintStart [08:12:11]Write to MH i2c: 01 00 00 83 01 84 [08:12:11]Write i2c OK [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: 01 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: 01 07 00 [08:12:11]MH_I2C_Read... [08:12:11]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 FF 0F 99 [08:12:11]RasterBufferAndPrint [08:12:11]line Счет N : (1)1319325 [08:12:11]line ИНН: 02508201610067 [08:12:11]line Контрольно-Кассовый Чек [08:12:11]line ПРОДАЖА [08:12:11]line ТРК (МРК, ГНК) : 31 [08:12:11]line Товар: 2710194210 [08:12:11]line ДТ(л)-К-5 [08:12:11]line 33.060 * 72.60 [08:12:11]line = 2400.16 [08:12:11]line НДС 12% НСП 1% [08:12:11]line > о реализуемом товаре [08:12:11]line ОКРУГЛЕНИЕ: -0.16 [08:12:11]line ИТОГО: 2400.00 [08:12:11]line Внесено: 2400.00 [08:12:11]line СДАЧА: 0.00 [08:12:11]line НСП 1% : 21.24 [08:12:11]line НДС 12% : 254.88 [08:12:11]line Наличными: 2400.00 [08:12:11]line Безнал.: 0.00 [08:12:11]line Место: АЗС № 140 "Партнер Нефть" [08:12:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:12:11]line СНО: Общий режим [08:12:11]line Чек 51 14.07.2024 08:12 [08:12:11]line Смена: 463 ФФД: 1.0 [08:12:11]line ЗНМ: 0300000129 [08:12:11]line РНМ: 0000000000090858 [08:12:11]line Версия ККМ: 001 [08:12:11]line ФМ: 0000000000874899 [08:12:11]line ФД: 162739 [08:12:11]line ФПД: 216956469997894 [08:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T081210&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162739&fm=216956469997894&tin=02508201610067®Number=0000000000090858&sum=240000 [08:12:12]OFD Sender: Processing packet 162739 [packets to send 106, broken 105] [08:12:12]ProducePacketName [08:12:12]name=ofd_packets/00162739 [08:12:12]OFD Sender: To server: pG, [08:12:12]CommunicateWithHost lk.salyk.kg:30040 [08:12:12]ConnectInit lk.salyk.kg [08:12:12]written 0, free lines is 4095 [08:12:12]Connected sock=10 [08:12:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D8 FE 08 01 81 9C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 24 81 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 5A 88 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7B 02 00 35 04 06 00 C5 52 1D 53 71 46 DF F4 9F A6 58 83 52 E1 [08:12:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 09 74 47 00 AF 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7B 02 00 F4 03 04 00 68 34 93 66 B6 04 01 00 00 30 4D 48 40 DF 05 91 3A [08:12:12]CommunicateWithHost err = 0 [08:12:12]CheckOFDResponse [08:12:12]1017 (14) - 77093643461234 [08:12:12]1041 (16) - 0000000000874899 [08:12:12]1040 (4) - 162739 [08:12:12]1012 (4) - 14.07.2024 02:14 [08:12:12]1206 (1) - 0 [08:12:12]OFD Sender: Remove packet 162739 [08:12:12]ProducePacketName [08:12:12]name=ofd_packets/00162739 [08:12:12]NVStorageDeleteData [08:12:12]Write to MH i2c: 01 00 00 AE 01 AF [08:12:12]Write i2c OK [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: 01 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: 01 07 00 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: 01 07 00 AE 01 00 00 00 00 00 D3 0C 95 [08:12:12]RasterBufferAndPrint [08:12:12]line [08:12:12]line [08:12:12]line [08:12:12]line [08:12:12]line [08:12:12]written 0, free lines is 3289 [08:12:12]MH_Cut [08:12:12]Write to MH i2c: D1 01 00 B5 01 01 88 [08:12:12]Write i2c OK [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: D1 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: D1 01 00 [08:12:12]MH_I2C_Read... [08:12:12]Read from MH i2c: D1 01 00 B5 01 00 87 [08:12:12]Write to MH i2c: 01 00 00 B6 01 B7 [08:12:12]Write i2c OK [08:12:12]MH_I2C_Read... [08:12:13]OFD Sender: No OFD packet to send [08:12:13]*** Cut start [08:12:13]*** Purtial cut [08:12:13]*** Stage 1: CUTSNS_PIN = 1 [08:12:13]Read from MH i2c: 01 [08:12:13]MH_I2C_Read... [08:12:13]*** Stop cut motor [08:12:13]*** Cut end [08:12:13]Read from MH i2c: 01 07 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 FF 0F CC [08:12:13]process_action close_receipt done [08:12:13]requested_data is exist [08:12:13]produce_requested_data [08:12:13]requested_item fm.sn is exist - process it [08:12:13]wFMCommunicate request_size=4 [08:12:13]MH_SAM_APDU [08:12:13]CAPDU: 80 11 00 00 [08:12:13]Write to MH i2c: E2 08 00 B7 01 80 11 00 00 00 00 00 00 32 [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:13]Read from MH i2c: E2 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: E2 17 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: E2 17 00 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 92 [08:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:12:13]wFMCommunicate OK [08:12:13]requested_item fd.num is exist - process it [08:12:13]SAM_PROTO_GetFieldsCounters [08:12:13]wFMCommunicate request_size=4 [08:12:13]MH_SAM_APDU [08:12:13]CAPDU: 80 13 00 00 [08:12:13]Write to MH i2c: E2 08 00 B8 01 80 13 00 00 00 00 00 00 35 [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:14]Read from MH i2c: E2 [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: E2 62 00 [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: E2 62 00 B8 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B3 7B 02 00 0E 04 04 00 CF 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 01 [08:12:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B3 7B 02 00 0E 04 04 00 CF 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 [08:12:14]wFMCommunicate OK [08:12:14]SAM_PROTO_GetFieldsCounters done [08:12:14]requested_item shift.num is exist - process it [08:12:14]requested_item shift.opened is exist - process it [08:12:14]req_shift_opened [08:12:14]FM_GetShiftState [08:12:14]SAM_PROTO_GetShiftState [08:12:14]wFMCommunicate request_size=4 [08:12:14]MH_SAM_APDU [08:12:14]CAPDU: 80 13 01 00 [08:12:14]Write to MH i2c: E2 08 00 B9 01 80 13 01 00 00 00 00 00 37 [08:12:14]Write i2c OK [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: E2 [08:12:14]MH_I2C_Read... [08:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:14]Read from MH i2c: E2 0E 00 [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: E2 0E 00 B9 01 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6D [08:12:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:12:14]wFMCommunicate OK [08:12:14]SAM_PROTO_GetShiftState done [08:12:14]FM_GetShiftState done [08:12:14]req_shift_opened done [08:12:14]requested_item shift.open_date is exist - process it [08:12:14]req_shift_open_date [08:12:14]req_shift_open_date done [08:12:14]produce_requested_data done [08:12:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162739,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:12:14]process_action_free close_receipt [08:12:14]json_value_free [08:12:14]json_value_free done [08:12:14]process_json_proto returns [08:12:14]Send response to host [08:12:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162739,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:12:14]free response buf [08:12:14]execute_script done [08:12:14]execute_script returns [08:12:14]free content buf [08:12:14]Sock 9.Close socket [08:12:14]Sock 9.Thread stoped [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:14]accept exits with 7 [08:13:14]New connection [08:13:14]New thread 3066879332 created [08:13:14]Thread 3066735972 joined [08:13:14]Waiting for new connection... [08:13:14] Sock 7.Parse request [08:13:14]Sock 7.Check first char [08:13:14]Sock 7.First char is OK [08:13:14]request: POST /json_proto HTTP/1.0 [08:13:14]Method: POST [08:13:14]URL: /json_proto [08:13:14]Method is POST - this is cgi request [08:13:14]url: /json_proto [08:13:14]query_string will be loaded in cgi processing [08:13:14]execute_cgi json_proto POST (null) [08:13:14]execute_cgi path=json_proto method=POST [08:13:14]POST find Content-Length [08:13:14]Host: 172.17.39.67:8080 [08:13:14]Content-Length: 671 [08:13:14]Content-Type: application/json [08:13:14] [08:13:14]POST finish read [08:13:14]Found Content-Length = 671 [08:13:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.430, "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" ] } } [08:13:14]execute_script... [08:13:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.430, "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" ] } } [08:13:14]POST & json_proto [08:13:14]process_json_proto [08:13:14]json parsed OK: [08:13:14]protocol is kg_v1.0 [08:13:14]action value=close_receipt [08:13:14]process_action close_receipt [08:13:14]cmd_close_receipt [08:13:14]MH_GetDate [08:13:14]Write to MH i2c: F0 00 00 BA 01 AA [08:13:14]Write i2c OK [08:13:14]MH_I2C_Read... [08:13:14]Read from MH i2c: F0 [08:13:14]MH_I2C_Read... [08:13:14]Read from MH i2c: F0 09 00 [08:13:14]MH_I2C_Read... [08:13:14]Read from MH i2c: F0 09 00 BA 01 00 9A 88 93 66 B6 85 93 66 02 [08:13:14]GetLastDocTimeStamp 1720944730 [08:13:14]current date 1720944794 [08:13:14]FM_GetShiftState [08:13:14]SAM_PROTO_GetShiftState [08:13:14]wFMCommunicate request_size=4 [08:13:14]MH_SAM_APDU [08:13:14]CAPDU: 80 13 01 00 [08:13:14]Write to MH i2c: E2 08 00 BB 01 80 13 01 00 00 00 00 00 39 [08:13:14]Write i2c OK [08:13:14]MH_I2C_Read... [08:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:14]Read from MH i2c: E2 [08:13:14]MH_I2C_Read... [08:13:14]Read from MH i2c: E2 0E 00 [08:13:14]MH_I2C_Read... [08:13:14]Read from MH i2c: E2 0E 00 BB 01 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6F [08:13:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:13:14]wFMCommunicate OK [08:13:14]SAM_PROTO_GetShiftState done [08:13:14]FM_GetShiftState done [08:13:14]opened in 1720915483 [08:13:14]opened+sec_in_day 1721001883 [08:13:14]quantity*price = 50003 [08:13:14]sum+1 = 50005 [08:13:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 52 14.07.2024 08:13 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162740 ФПД: 271877341714785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T081314&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162740&fm=271877341714785&tin=02508201610067®Number=0000000000090858&sum=50000 [08:13:15]StoreToDocumentArchive [08:13:15]shift 463 fd 162740 [08:13:15]save to /storage/0463/doc_00162740 [08:13:15]save last doc name /storage/0463/doc_00162740 to /storage/kkm_last_doc_name [08:13:15]save OK [08:13:15]Clear old archive folders... [08:13:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:13:15]tlvbuf is 012E88F0 [08:13:15]SAM_PROTO_ClearQueue [08:13:15]wFMCommunicate request_size=4 [08:13:15]MH_SAM_APDU [08:13:15]CAPDU: 80 09 00 00 [08:13:15]Write to MH i2c: E2 08 00 C8 01 80 09 00 00 00 00 00 00 3B [08:13:15]Write i2c OK [08:13:15]MH_I2C_Read... [08:13:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:15]Read from MH i2c: E2 [08:13:15]MH_I2C_Read... [08:13:15]Read from MH i2c: E2 03 00 [08:13:15]MH_I2C_Read... [08:13:15]Read from MH i2c: E2 03 00 C8 01 00 90 00 3D [08:13:15]RAPDU: 90 00 [08:13:15]wFMCommunicate OK [08:13:15]SAM_PROTO_ClearQueue done [08:13:15]KKMCreateOFDPacket [08:13:15]OFDProtocolAddRootSTLVToBuf [08:13:15]FM_MakeSignedData [08:13:15]FM_MakeSignedData [08:13:15]SAM_PROTO_SignData [08:13:15]wFMCommunicate request_size=4 [08:13:15]MH_SAM_APDU [08:13:15]CAPDU: 80 0D 01 02 [08:13:15]Write to MH i2c: E2 08 00 C9 01 80 0D 01 02 00 00 00 00 43 [08:13:15]Write i2c OK [08:13:15]MH_I2C_Read... [08:13:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:15]Read from MH i2c: E2 [08:13:15]MH_I2C_Read... [08:13:15]Read from MH i2c: E2 03 00 [08:13:15]MH_I2C_Read... [08:13:15]Read from MH i2c: E2 03 00 C9 01 00 90 00 3E [08:13:15]RAPDU: 90 00 [08:13:15]wFMCommunicate OK [08:13:15]wFMCommunicate request_size=255 [08:13:15]MH_SAM_APDU [08:13:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 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 34 00 00 00 F4 03 04 00 9A 88 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B4 7B 02 00 35 04 06 00 [08:13:15]Write to MH i2c: E2 02 01 CA 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 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 34 00 00 00 F4 03 04 00 9A 88 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B4 7B 02 00 35 04 06 00 00 00 2A [08:13:15]Write i2c OK [08:13:15]MH_I2C_Read... [08:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:15]Read from MH i2c: E2 [08:13:15]MH_I2C_Read... [08:13:15]Read from MH i2c: E2 03 00 [08:13:15]MH_I2C_Read... [08:13:15]Read from MH i2c: E2 03 00 CA 01 00 90 00 3F [08:13:15]RAPDU: 90 00 [08:13:15]wFMCommunicate OK [08:13:15]wFMCommunicate request_size=11 [08:13:15]MH_SAM_APDU [08:13:15]CAPDU: 80 0D 02 02 06 F7 45 60 60 19 61 [08:13:15]Write to MH i2c: E2 0E 00 CB 01 80 0D 02 02 06 00 F7 45 60 60 19 61 00 00 C8 [08:13:15]Write i2c OK [08:13:15]MH_I2C_Read... [08:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:15]Read from MH i2c: E2 [08:13:15]MH_I2C_Read... [08:13:15]Read from MH i2c: E2 03 00 [08:13:15]MH_I2C_Read... [08:13:15]Read from MH i2c: E2 03 00 CB 01 00 90 00 40 [08:13:15]RAPDU: 90 00 [08:13:15]wFMCommunicate OK [08:13:15]wFMCommunicate request_size=4 [08:13:15]MH_SAM_APDU [08:13:15]CAPDU: 80 0D 03 02 [08:13:15]Write to MH i2c: E2 08 00 CC 01 80 0D 03 02 00 00 00 00 48 [08:13:15]Write i2c OK [08:13:15]MH_I2C_Read... [08:13:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:15]Read from MH i2c: E2 [08:13:15]MH_I2C_Read... [08:13:15]Read from MH i2c: E2 0B 00 [08:13:15]MH_I2C_Read... [08:13:15]Read from MH i2c: E2 0B 00 CC 01 00 56 92 C6 8B DF AB 81 F4 90 00 81 [08:13:15]RAPDU: 56 92 C6 8B DF AB 81 F4 90 00 [08:13:15]wFMCommunicate OK [08:13:15]SAM_PROTO_SignData done [08:13:15]FM_MakeSignedData done [08:13:15]CreateOFDProtocolMessage [08:13:15]wFMCommunicate request_size=4 [08:13:15]MH_SAM_APDU [08:13:15]CAPDU: 80 11 00 00 [08:13:15]Write to MH i2c: E2 08 00 CD 01 80 11 00 00 00 00 00 00 48 [08:13:15]Write i2c OK [08:13:15]MH_I2C_Read... [08:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:16]Read from MH i2c: E2 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 17 00 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 17 00 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A8 [08:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:13:16]wFMCommunicate OK [08:13:16]CreateOFDProtocolMessage done [08:13:16]OFDSenderStorePacket 162740 [08:13:16]StoreOFDPacket docnum=162740 [08:13:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 07 6F 08 01 1D B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 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 34 00 00 00 F4 03 04 00 9A 88 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B4 7B 02 00 35 04 06 00 F7 45 60 60 19 61 56 92 C6 8B DF AB 81 F4 [08:13:16]CheckFolder [08:13:16]dirname=/storage/ofd_packets [08:13:16]CheckFolder done [08:13:16]ProducePacketName [08:13:16]name=ofd_packets/00162740 [08:13:16]NVStorageSaveData ofd_packets/00162740 [08:13:16]File name is /storage/ofd_packets/00162740 [08:13:16]Write 302 bytes [08:13:16]NVStorageSaveData done [08:13:16]OFDSenderStorePacket done [08:13:16]KKMCreateOFDPacket done [08:13:16]NVStorageSaveData kkm_last_timestamp [08:13:16]File name is /storage/kkm_last_timestamp [08:13:16]Write 4 bytes [08:13:16]NVStorageSaveData done [08:13:16]ExternCall_PrintAddStr [08:13:16]wPrintStart [08:13:16]Write to MH i2c: 01 00 00 CE 01 CF [08:13:16]Write i2c OK [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: 01 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: 01 07 00 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 FF 0F E4 [08:13:16]RasterBufferAndPrint [08:13:16]line Счет N : (1)1319326 [08:13:16]line ИНН: 02508201610067 [08:13:16]line Контрольно-Кассовый Чек [08:13:16]line ПРОДАЖА [08:13:16]line ТРК (МРК, ГНК) : 62 [08:13:16]line Товар: 2710124130 [08:13:16]line Super-92-К-5 [08:13:16]line 7.430 * 67.30 [08:13:16]line = 500.04 [08:13:16]line НДС 12% НСП 1% [08:13:16]line > о реализуемом товаре [08:13:16]line ОКРУГЛЕНИЕ: -0.04 [08:13:16]line ИТОГО: 500.00 [08:13:16]line Внесено: 500.00 [08:13:16]line СДАЧА: 0.00 [08:13:16]line НСП 1% : 4.42 [08:13:16]line НДС 12% : 53.10 [08:13:16]line Наличными: 500.00 [08:13:16]line Безнал.: 0.00 [08:13:16]line Место: АЗС № 140 "Партнер Нефть" [08:13:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:13:16]line СНО: Общий режим [08:13:16]line Чек 52 14.07.2024 08:13 [08:13:16]line Смена: 463 ФФД: 1.0 [08:13:16]line ЗНМ: 0300000129 [08:13:16]line РНМ: 0000000000090858 [08:13:16]line Версия ККМ: 001 [08:13:16]line ФМ: 0000000000874899 [08:13:16]line ФД: 162740 [08:13:16]line ФПД: 271877341714785 [08:13:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T081314&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162740&fm=271877341714785&tin=02508201610067®Number=0000000000090858&sum=50000 [08:13:16]OFD Sender: Processing packet 162740 [packets to send 106, broken 105] [08:13:16]ProducePacketName [08:13:16]name=ofd_packets/00162740 [08:13:16]OFD Sender: To server: pG, [08:13:16]CommunicateWithHost lk.salyk.kg:30040 [08:13:16]ConnectInit lk.salyk.kg [08:13:16]written 0, free lines is 4095 [08:13:16]Connected sock=10 [08:13:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 07 6F 08 01 1D B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 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 34 00 00 00 F4 03 04 00 9A 88 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B4 7B 02 00 35 04 06 00 F7 45 60 60 19 61 56 92 C6 8B DF AB 81 F4 [08:13:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 50 3F 47 00 01 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B4 7B 02 00 F4 03 04 00 A8 34 93 66 B6 04 01 00 00 15 5E C3 42 6B 32 72 C0 [08:13:16]CommunicateWithHost err = 0 [08:13:16]CheckOFDResponse [08:13:16]1017 (14) - 77093643461234 [08:13:16]1041 (16) - 0000000000874899 [08:13:16]1040 (4) - 162740 [08:13:16]1012 (4) - 14.07.2024 02:15 [08:13:16]1206 (1) - 0 [08:13:16]OFD Sender: Remove packet 162740 [08:13:16]ProducePacketName [08:13:16]name=ofd_packets/00162740 [08:13:16]NVStorageDeleteData [08:13:16]Write to MH i2c: 01 00 00 F9 01 FA [08:13:16]Write i2c OK [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: 01 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: 01 07 00 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: 01 07 00 F9 01 00 00 00 00 00 CD 0C DA [08:13:16]RasterBufferAndPrint [08:13:16]line [08:13:16]line [08:13:16]line [08:13:16]line [08:13:16]line [08:13:16]written 0, free lines is 3284 [08:13:16]MH_Cut [08:13:16]Write to MH i2c: D1 01 00 00 02 01 D4 [08:13:16]Write i2c OK [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: D1 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: D1 01 00 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: D1 01 00 00 02 00 D3 [08:13:16]Write to MH i2c: 01 00 00 01 02 03 [08:13:16]Write i2c OK [08:13:16]MH_I2C_Read... [08:13:17]OFD Sender: No OFD packet to send [08:13:17]*** Cut start [08:13:17]*** Purtial cut [08:13:17]*** CUTSNS_PIN = 0 [08:13:17]*** Stage 1: CUTSNS_PIN = 1 [08:13:19]Read from MH i2c: 01 [08:13:19]MH_I2C_Read... [08:13:19]*** Stop cut motor [08:13:19]*** Cut end [08:13:19]Read from MH i2c: 01 07 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: 01 07 00 01 02 00 00 00 00 00 FF 0F 18 [08:13:19]process_action close_receipt done [08:13:19]requested_data is exist [08:13:19]produce_requested_data [08:13:19]requested_item fm.sn is exist - process it [08:13:19]wFMCommunicate request_size=4 [08:13:19]MH_SAM_APDU [08:13:19]CAPDU: 80 11 00 00 [08:13:19]Write to MH i2c: E2 08 00 02 02 80 11 00 00 00 00 00 00 7E [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:19]Read from MH i2c: E2 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 17 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 17 00 02 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DE [08:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:13:19]wFMCommunicate OK [08:13:19]requested_item fd.num is exist - process it [08:13:19]SAM_PROTO_GetFieldsCounters [08:13:19]wFMCommunicate request_size=4 [08:13:19]MH_SAM_APDU [08:13:19]CAPDU: 80 13 00 00 [08:13:19]Write to MH i2c: E2 08 00 03 02 80 13 00 00 00 00 00 00 81 [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:19]Read from MH i2c: E2 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 62 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 62 00 03 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B4 7B 02 00 0E 04 04 00 CF 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 51 [08:13:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B4 7B 02 00 0E 04 04 00 CF 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 [08:13:19]wFMCommunicate OK [08:13:19]SAM_PROTO_GetFieldsCounters done [08:13:19]requested_item shift.num is exist - process it [08:13:19]requested_item shift.opened is exist - process it [08:13:19]req_shift_opened [08:13:19]FM_GetShiftState [08:13:19]SAM_PROTO_GetShiftState [08:13:19]wFMCommunicate request_size=4 [08:13:19]MH_SAM_APDU [08:13:19]CAPDU: 80 13 01 00 [08:13:19]Write to MH i2c: E2 08 00 04 02 80 13 01 00 00 00 00 00 83 [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:19]Read from MH i2c: E2 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 0E 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 0E 00 04 02 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B9 [08:13:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:13:19]wFMCommunicate OK [08:13:19]SAM_PROTO_GetShiftState done [08:13:19]FM_GetShiftState done [08:13:19]req_shift_opened done [08:13:19]requested_item shift.open_date is exist - process it [08:13:19]req_shift_open_date [08:13:19]req_shift_open_date done [08:13:19]produce_requested_data done [08:13:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162740,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:13:19]process_action_free close_receipt [08:13:19]json_value_free [08:13:19]json_value_free done [08:13:19]process_json_proto returns [08:13:19]Send response to host [08:13:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162740,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:13:19]free response buf [08:13:19]execute_script done [08:13:19]execute_script returns [08:13:19]free content buf [08:13:19]Sock 7.Close socket [08:13:19]Sock 7.Thread stoped [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]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: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:08]accept exits with 9 [08:20:08]New connection [08:20:08]New thread 3066735972 created [08:20:08]Thread 3066879332 joined [08:20:08]Waiting for new connection... [08:20:08] Sock 9.Parse request [08:20:08]Sock 9.Check first char [08:20:08]Sock 9.First char is OK [08:20:08]request: POST /json_proto HTTP/1.0 [08:20:08]Method: POST [08:20:08]URL: /json_proto [08:20:08]Method is POST - this is cgi request [08:20:08]url: /json_proto [08:20:08]query_string will be loaded in cgi processing [08:20:08]execute_cgi json_proto POST (null) [08:20:08]execute_cgi path=json_proto method=POST [08:20:08]POST find Content-Length [08:20:08]Host: 172.17.39.67:8080 [08:20:08]Content-Length: 804 [08:20:08]Content-Type: application/json [08:20:08] [08:20:08]POST finish read [08:20:08]Found Content-Length = 804 [08:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 26.870, "sum" : 1999.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1999.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:08]execute_script... [08:20:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 26.870, "sum" : 1999.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1999.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:08]POST & json_proto [08:20:08]process_json_proto [08:20:08]json parsed OK: [08:20:08]protocol is kg_v1.0 [08:20:08]action value=close_receipt [08:20:08]process_action close_receipt [08:20:08]cmd_close_receipt [08:20:08]MH_GetDate [08:20:08]Write to MH i2c: F0 00 00 05 02 F6 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: F0 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: F0 09 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: F0 09 00 05 02 00 38 8A 93 66 B6 85 93 66 EE [08:20:08]GetLastDocTimeStamp 1720944794 [08:20:08]current date 1720945208 [08:20:08]FM_GetShiftState [08:20:08]SAM_PROTO_GetShiftState [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 13 01 00 [08:20:08]Write to MH i2c: E2 08 00 06 02 80 13 01 00 00 00 00 00 85 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 0E 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 0E 00 06 02 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BB [08:20:08]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:20:08]wFMCommunicate OK [08:20:08]SAM_PROTO_GetShiftState done [08:20:08]FM_GetShiftState done [08:20:08]opened in 1720915483 [08:20:08]opened+sec_in_day 1721001883 [08:20:08]quantity*price = 199912 [08:20:08]sum+1 = 199914 [08:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1999.13 НСП 1% : 17.69 НДС 12% : 212.30 Наличными: 0.00 Безнал.: 1999.13 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 53 14.07.2024 08:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162741 ФПД: 269236033291712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T082008&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162741&fm=269236033291712&tin=02508201610067®Number=0000000000090858&sum=199913 [08:20:09]StoreToDocumentArchive [08:20:09]shift 463 fd 162741 [08:20:09]save to /storage/0463/doc_00162741 [08:20:09]save last doc name /storage/0463/doc_00162741 to /storage/kkm_last_doc_name [08:20:09]save OK [08:20:09]Clear old archive folders... [08:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:09]tlvbuf is 0121F550 [08:20:09]SAM_PROTO_ClearQueue [08:20:09]wFMCommunicate request_size=4 [08:20:09]MH_SAM_APDU [08:20:09]CAPDU: 80 09 00 00 [08:20:09]Write to MH i2c: E2 08 00 13 02 80 09 00 00 00 00 00 00 87 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 13 02 00 90 00 89 [08:20:10]RAPDU: 90 00 [08:20:10]wFMCommunicate OK [08:20:10]SAM_PROTO_ClearQueue done [08:20:10]KKMCreateOFDPacket [08:20:10]OFDProtocolAddRootSTLVToBuf [08:20:10]FM_MakeSignedData [08:20:10]FM_MakeSignedData [08:20:10]SAM_PROTO_SignData [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 0D 01 02 [08:20:10]Write to MH i2c: E2 08 00 14 02 80 0D 01 02 00 00 00 00 8F [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [08:20:10]RAPDU: 90 00 [08:20:10]wFMCommunicate OK [08:20:10]wFMCommunicate request_size=255 [08:20:10]MH_SAM_APDU [08:20: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 F6 68 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E9 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 0C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 38 8A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B5 7B 02 00 35 04 06 00 F4 [08:20:10]Write to MH i2c: E2 02 01 15 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 F6 68 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E9 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 0C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 38 8A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B5 7B 02 00 35 04 06 00 F4 00 00 37 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:10]Read from MH i2c: E2 03 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 15 02 00 90 00 8B [08:20:10]RAPDU: 90 00 [08:20:10]wFMCommunicate OK [08:20:10]wFMCommunicate request_size=10 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 0D 02 02 05 DE 66 20 05 C0 [08:20:10]Write to MH i2c: E2 0D 00 16 02 80 0D 02 02 05 00 DE 66 20 05 C0 00 00 C5 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 03 00 16 02 00 90 00 8C [08:20:10]RAPDU: 90 00 [08:20:10]wFMCommunicate OK [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 0D 03 02 [08:20:10]Write to MH i2c: E2 08 00 17 02 80 0D 03 02 00 00 00 00 94 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 0B 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 0B 00 17 02 00 67 AB 60 8C ED B3 97 BB 90 00 85 [08:20:10]RAPDU: 67 AB 60 8C ED B3 97 BB 90 00 [08:20:10]wFMCommunicate OK [08:20:10]SAM_PROTO_SignData done [08:20:10]FM_MakeSignedData done [08:20:10]CreateOFDProtocolMessage [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 11 00 00 [08:20:10]Write to MH i2c: E2 08 00 18 02 80 11 00 00 00 00 00 00 94 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 17 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 17 00 18 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F4 [08:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:20:10]wFMCommunicate OK [08:20:10]CreateOFDProtocolMessage done [08:20:10]OFDSenderStorePacket 162741 [08:20:10]StoreOFDPacket docnum=162741 [08:20:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 1B 65 07 01 47 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F6 68 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E9 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 0C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 38 8A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B5 7B 02 00 35 04 06 00 F4 DE 66 20 05 C0 67 AB 60 8C ED B3 97 BB [08:20:10]CheckFolder [08:20:10]dirname=/storage/ofd_packets [08:20:10]CheckFolder done [08:20:10]ProducePacketName [08:20:10]name=ofd_packets/00162741 [08:20:10]NVStorageSaveData ofd_packets/00162741 [08:20:10]File name is /storage/ofd_packets/00162741 [08:20:10]Write 301 bytes [08:20:10]NVStorageSaveData done [08:20:10]OFDSenderStorePacket done [08:20:10]KKMCreateOFDPacket done [08:20:10]NVStorageSaveData kkm_last_timestamp [08:20:10]File name is /storage/kkm_last_timestamp [08:20:10]Write 4 bytes [08:20:10]NVStorageSaveData done [08:20:10]ExternCall_PrintAddStr [08:20:10]wPrintStart [08:20:10]Write to MH i2c: 01 00 00 19 02 1B [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: 01 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: 01 07 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 FF 0F 30 [08:20:10]RasterBufferAndPrint [08:20:10]line Счет N : (1)1319327 [08:20:10]line ИНН: 02508201610067 [08:20:10]line Контрольно-Кассовый Чек [08:20:10]line ПРОДАЖА [08:20:10]line ТРК (МРК, ГНК) : 44 [08:20:10]line Товар: 2710124500 [08:20:10]line Аи-95-К-5 [08:20:10]line 26.870 * 74.40 [08:20:10]line = 1999.13 [08:20:10]line НДС 12% НСП 1% [08:20:10]line > о реализуемом товаре [08:20:10]line ИТОГО: 1999.13 [08:20:10]line НСП 1% : 17.69 [08:20:10]line НДС 12% : 212.30 [08:20:10]line Наличными: 0.00 [08:20:10]line Безнал.: 1999.13 [08:20:10]line Место: АЗС № 140 "Партнер Нефть" [08:20:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:20:10]line СНО: Общий режим [08:20:10]line Чек 53 14.07.2024 08:20 [08:20:10]line Смена: 463 ФФД: 1.0 [08:20:10]line ЗНМ: 0300000129 [08:20:10]line РНМ: 0000000000090858 [08:20:10]line Версия ККМ: 001 [08:20:10]line Платежная система: O! деньги [08:20:10]line ФМ: 0000000000874899 [08:20:10]line ФД: 162741 [08:20:10]line ФПД: 269236033291712 [08:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T082008&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162741&fm=269236033291712&tin=02508201610067®Number=0000000000090858&sum=199913 [08:20:10]OFD Sender: Processing packet 162741 [packets to send 106, broken 105] [08:20:10]ProducePacketName [08:20:10]name=ofd_packets/00162741 [08:20:10]OFD Sender: To server: pG, [08:20:10]CommunicateWithHost lk.salyk.kg:30040 [08:20:10]ConnectInit lk.salyk.kg [08:20:10]written 0, free lines is 4095 [08:20:10]Connected sock=10 [08:20:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 1B 65 07 01 47 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F6 68 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E9 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 0C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 38 8A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B5 7B 02 00 35 04 06 00 F4 DE 66 20 05 C0 67 AB 60 8C ED B3 97 BB [08:20:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C0 24 47 00 1D B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B5 7B 02 00 F4 03 04 00 47 36 93 66 B6 04 01 00 00 06 E5 32 C0 A8 5E F6 06 [08:20:11]CommunicateWithHost err = 0 [08:20:11]CheckOFDResponse [08:20:11]1017 (14) - 77093643461234 [08:20:11]1041 (16) - 0000000000874899 [08:20:11]1040 (4) - 162741 [08:20:11]1012 (4) - 14.07.2024 02:21 [08:20:11]1206 (1) - 0 [08:20:11]OFD Sender: Remove packet 162741 [08:20:11]ProducePacketName [08:20:11]name=ofd_packets/00162741 [08:20:11]NVStorageDeleteData [08:20:11]Write to MH i2c: 01 00 00 43 02 45 [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: 01 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: 01 07 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: 01 07 00 43 02 00 00 00 00 00 EA 0C 42 [08:20:11]RasterBufferAndPrint [08:20:11]line [08:20:11]line [08:20:11]line [08:20:11]line [08:20:11]line [08:20:11]written 0, free lines is 3311 [08:20:11]MH_Cut [08:20:11]Write to MH i2c: D1 01 00 4A 02 01 1E [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: D1 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: D1 01 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: D1 01 00 4A 02 00 1D [08:20:11]Write to MH i2c: 01 00 00 4B 02 4D [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]OFD Sender: No OFD packet to send [08:20:12]*** Cut start [08:20:12]*** Purtial cut [08:20:12]*** Stage 1: CUTSNS_PIN = 1 [08:20:12]Read from MH i2c: 01 [08:20:12]MH_I2C_Read... [08:20:12]*** Stop cut motor [08:20:12]*** Cut end [08:20:12]Read from MH i2c: 01 07 00 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: 01 07 00 4B 02 00 00 00 00 00 FF 0F 62 [08:20:12]process_action close_receipt done [08:20:12]requested_data is exist [08:20:12]produce_requested_data [08:20:12]requested_item fm.sn is exist - process it [08:20:12]wFMCommunicate request_size=4 [08:20:12]MH_SAM_APDU [08:20:12]CAPDU: 80 11 00 00 [08:20:12]Write to MH i2c: E2 08 00 4C 02 80 11 00 00 00 00 00 00 C8 [08:20:12]Write i2c OK [08:20:12]MH_I2C_Read... [08:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:12]Read from MH i2c: E2 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 17 00 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 17 00 4C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 28 [08:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:20:12]wFMCommunicate OK [08:20:12]requested_item fd.num is exist - process it [08:20:12]SAM_PROTO_GetFieldsCounters [08:20:12]wFMCommunicate request_size=4 [08:20:12]MH_SAM_APDU [08:20:12]CAPDU: 80 13 00 00 [08:20:12]Write to MH i2c: E2 08 00 4D 02 80 13 00 00 00 00 00 00 CB [08:20:12]Write i2c OK [08:20:12]MH_I2C_Read... [08:20:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:12]Read from MH i2c: E2 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 62 00 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 62 00 4D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B5 7B 02 00 0E 04 04 00 CF 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 9F [08:20:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B5 7B 02 00 0E 04 04 00 CF 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 [08:20:12]wFMCommunicate OK [08:20:12]SAM_PROTO_GetFieldsCounters done [08:20:12]requested_item shift.num is exist - process it [08:20:12]requested_item shift.opened is exist - process it [08:20:12]req_shift_opened [08:20:12]FM_GetShiftState [08:20:12]SAM_PROTO_GetShiftState [08:20:12]wFMCommunicate request_size=4 [08:20:12]MH_SAM_APDU [08:20:12]CAPDU: 80 13 01 00 [08:20:12]Write to MH i2c: E2 08 00 4E 02 80 13 01 00 00 00 00 00 CD [08:20:12]Write i2c OK [08:20:12]MH_I2C_Read... [08:20:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:12]Read from MH i2c: E2 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 0E 00 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 0E 00 4E 02 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 03 [08:20:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:20:12]wFMCommunicate OK [08:20:12]SAM_PROTO_GetShiftState done [08:20:12]FM_GetShiftState done [08:20:12]req_shift_opened done [08:20:12]requested_item shift.open_date is exist - process it [08:20:12]req_shift_open_date [08:20:12]req_shift_open_date done [08:20:12]produce_requested_data done [08:20:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162741,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:20:12]process_action_free close_receipt [08:20:12]json_value_free [08:20:12]json_value_free done [08:20:12]process_json_proto returns [08:20:12]Send response to host [08:20:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162741,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:20:12]free response buf [08:20:12]execute_script done [08:20:12]execute_script returns [08:20:12]free content buf [08:20:12]Sock 9.Close socket [08:20:12]Sock 9.Thread stoped [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]accept exits with 7 [08:23:11]New connection [08:23:11]New thread 3066879332 created [08:23:11]Thread 3066735972 joined [08:23:11]Waiting for new connection... [08:23:11] Sock 7.Parse request [08:23:11]Sock 7.Check first char [08:23:11]Sock 7.First char is OK [08:23:11]request: POST /json_proto HTTP/1.0 [08:23:11]Method: POST [08:23:11]URL: /json_proto [08:23:11]Method is POST - this is cgi request [08:23:11]url: /json_proto [08:23:11]query_string will be loaded in cgi processing [08:23:11]execute_cgi json_proto POST (null) [08:23:11]execute_cgi path=json_proto method=POST [08:23:11]POST find Content-Length [08:23:11]Host: 172.17.39.67:8080 [08:23:11]Content-Length: 678 [08:23:11]Content-Type: application/json [08:23:11] [08:23:11]POST finish read [08:23:11]Found Content-Length = 678 [08:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:11]execute_script... [08:23: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)1319328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:11]POST & json_proto [08:23:11]process_json_proto [08:23:11]json parsed OK: [08:23:11]protocol is kg_v1.0 [08:23:11]action value=close_receipt [08:23:11]process_action close_receipt [08:23:11]cmd_close_receipt [08:23:11]MH_GetDate [08:23:11]Write to MH i2c: F0 00 00 4F 02 40 [08:23:11]Write i2c OK [08:23:11]MH_I2C_Read... [08:23:11]Read from MH i2c: F0 [08:23:11]MH_I2C_Read... [08:23:11]Read from MH i2c: F0 09 00 [08:23:11]MH_I2C_Read... [08:23:11]Read from MH i2c: F0 09 00 4F 02 00 EF 8A 93 66 B6 85 93 66 EF [08:23:11]GetLastDocTimeStamp 1720945208 [08:23:11]current date 1720945391 [08:23:11]FM_GetShiftState [08:23:11]SAM_PROTO_GetShiftState [08:23:11]wFMCommunicate request_size=4 [08:23:11]MH_SAM_APDU [08:23:11]CAPDU: 80 13 01 00 [08:23:11]Write to MH i2c: E2 08 00 50 02 80 13 01 00 00 00 00 00 CF [08:23:11]Write i2c OK [08:23:11]MH_I2C_Read... [08:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:11]Read from MH i2c: E2 [08:23:11]MH_I2C_Read... [08:23:11]Read from MH i2c: E2 0E 00 [08:23:11]MH_I2C_Read... [08:23:11]Read from MH i2c: E2 0E 00 50 02 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 05 [08:23:11]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:23:11]wFMCommunicate OK [08:23:11]SAM_PROTO_GetShiftState done [08:23:11]FM_GetShiftState done [08:23:11]opened in 1720915483 [08:23:11]opened+sec_in_day 1721001883 [08:23:11]quantity*price = 60001 [08:23:11]sum+1 = 60003 [08:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 54 14.07.2024 08:23 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162742 ФПД: 142350311601748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T082311&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162742&fm=142350311601748&tin=02508201610067®Number=0000000000090858&sum=60000 [08:23:12]StoreToDocumentArchive [08:23:12]shift 463 fd 162742 [08:23:12]save to /storage/0463/doc_00162742 [08:23:12]save last doc name /storage/0463/doc_00162742 to /storage/kkm_last_doc_name [08:23:12]save OK [08:23:12]Clear old archive folders... [08:23:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:12]tlvbuf is 012E6DE0 [08:23:12]SAM_PROTO_ClearQueue [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 09 00 00 [08:23:12]Write to MH i2c: E2 08 00 5D 02 80 09 00 00 00 00 00 00 D1 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 5D 02 00 90 00 D3 [08:23:12]RAPDU: 90 00 [08:23:12]wFMCommunicate OK [08:23:12]SAM_PROTO_ClearQueue done [08:23:12]KKMCreateOFDPacket [08:23:12]OFDProtocolAddRootSTLVToBuf [08:23:12]FM_MakeSignedData [08:23:12]FM_MakeSignedData [08:23:12]SAM_PROTO_SignData [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 0D 01 02 [08:23:12]Write to MH i2c: E2 08 00 5E 02 80 0D 01 02 00 00 00 00 D9 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 5E 02 00 90 00 D4 [08:23:12]RAPDU: 90 00 [08:23:12]wFMCommunicate OK [08:23:12]wFMCommunicate request_size=255 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 36 00 00 00 F4 03 04 00 EF 8A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B6 7B 02 00 35 04 06 00 81 [08:23:12]Write to MH i2c: E2 02 01 5F 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 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 36 00 00 00 F4 03 04 00 EF 8A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B6 7B 02 00 35 04 06 00 81 00 00 8E [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [08:23:12]RAPDU: 90 00 [08:23:12]wFMCommunicate OK [08:23:12]wFMCommunicate request_size=10 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 0D 02 02 05 77 83 C1 B6 54 [08:23:12]Write to MH i2c: E2 0D 00 60 02 80 0D 02 02 05 00 77 83 C1 B6 54 00 00 AB [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 03 00 60 02 00 90 00 D6 [08:23:12]RAPDU: 90 00 [08:23:12]wFMCommunicate OK [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 0D 03 02 [08:23:12]Write to MH i2c: E2 08 00 61 02 80 0D 03 02 00 00 00 00 DE [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 0B 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 0B 00 61 02 00 77 C4 E4 05 CC 64 3C 88 90 00 F7 [08:23:12]RAPDU: 77 C4 E4 05 CC 64 3C 88 90 00 [08:23:12]wFMCommunicate OK [08:23:12]SAM_PROTO_SignData done [08:23:12]FM_MakeSignedData done [08:23:12]CreateOFDProtocolMessage [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 11 00 00 [08:23:12]Write to MH i2c: E2 08 00 62 02 80 11 00 00 00 00 00 00 DE [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 17 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 17 00 62 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3E [08:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:23:12]wFMCommunicate OK [08:23:12]CreateOFDProtocolMessage done [08:23:12]OFDSenderStorePacket 162742 [08:23:12]StoreOFDPacket docnum=162742 [08:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 62 AD 07 01 62 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 36 00 00 00 F4 03 04 00 EF 8A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B6 7B 02 00 35 04 06 00 81 77 83 C1 B6 54 77 C4 E4 05 CC 64 3C 88 [08:23:12]CheckFolder [08:23:12]dirname=/storage/ofd_packets [08:23:12]CheckFolder done [08:23:12]ProducePacketName [08:23:12]name=ofd_packets/00162742 [08:23:12]NVStorageSaveData ofd_packets/00162742 [08:23:12]File name is /storage/ofd_packets/00162742 [08:23:12]Write 301 bytes [08:23:12]NVStorageSaveData done [08:23:12]OFDSenderStorePacket done [08:23:12]KKMCreateOFDPacket done [08:23:12]NVStorageSaveData kkm_last_timestamp [08:23:12]File name is /storage/kkm_last_timestamp [08:23:12]Write 4 bytes [08:23:12]NVStorageSaveData done [08:23:12]ExternCall_PrintAddStr [08:23:12]wPrintStart [08:23:12]Write to MH i2c: 01 00 00 63 02 65 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: 01 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: 01 07 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 FF 0F 7A [08:23:12]RasterBufferAndPrint [08:23:12]line Счет N : (1)1319328 [08:23:12]line ИНН: 02508201610067 [08:23:12]line Контрольно-Кассовый Чек [08:23:12]line ПРОДАЖА [08:23:12]line ТРК (МРК, ГНК) : 43 [08:23:12]line Товар: 2710124130 [08:23:12]line Аи-92-К-5 [08:23:12]line 9.050 * 66.30 [08:23:12]line = 600.02 [08:23:12]line НДС 12% НСП 1% [08:23:12]line > о реализуемом товаре [08:23:12]line ОКРУГЛЕНИЕ: -0.02 [08:23:12]line ИТОГО: 600.00 [08:23:12]line Внесено: 600.00 [08:23:12]line СДАЧА: 0.00 [08:23:12]line НСП 1% : 5.31 [08:23:12]line НДС 12% : 63.72 [08:23:12]line Наличными: 600.00 [08:23:12]line Безнал.: 0.00 [08:23:12]line Место: АЗС № 140 "Партнер Нефть" [08:23:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:23:12]line СНО: Общий режим [08:23:12]line Чек 54 14.07.2024 08:23 [08:23:12]line Смена: 463 ФФД: 1.0 [08:23:12]line ЗНМ: 0300000129 [08:23:12]line РНМ: 0000000000090858 [08:23:12]line Версия ККМ: 001 [08:23:12]line ФМ: 0000000000874899 [08:23:12]line ФД: 162742 [08:23:12]line ФПД: 142350311601748 [08:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T082311&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162742&fm=142350311601748&tin=02508201610067®Number=0000000000090858&sum=60000 [08:23:13]OFD Sender: Processing packet 162742 [packets to send 106, broken 105] [08:23:13]ProducePacketName [08:23:13]name=ofd_packets/00162742 [08:23:13]OFD Sender: To server: pG, [08:23:13]CommunicateWithHost lk.salyk.kg:30040 [08:23:13]ConnectInit lk.salyk.kg [08:23:13]written 0, free lines is 4095 [08:23:13]Connected sock=10 [08:23:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 62 AD 07 01 62 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 36 00 00 00 F4 03 04 00 EF 8A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B6 7B 02 00 35 04 06 00 81 77 83 C1 B6 54 77 C4 E4 05 CC 64 3C 88 [08:23:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2C 01 47 00 29 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B6 7B 02 00 F4 03 04 00 FD 36 93 66 B6 04 01 00 00 CA 3B 43 1D 9A 1B AD 48 [08:23:13]CommunicateWithHost err = 0 [08:23:13]CheckOFDResponse [08:23:13]1017 (14) - 77093643461234 [08:23:13]1041 (16) - 0000000000874899 [08:23:13]1040 (4) - 162742 [08:23:13]1012 (4) - 14.07.2024 02:25 [08:23:13]1206 (1) - 0 [08:23:13]OFD Sender: Remove packet 162742 [08:23:13]ProducePacketName [08:23:13]name=ofd_packets/00162742 [08:23:13]NVStorageDeleteData [08:23:13]Write to MH i2c: 01 00 00 8E 02 90 [08:23:13]Write i2c OK [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: 01 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: 01 07 00 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: 01 07 00 8E 02 00 00 00 00 00 CD 0C 70 [08:23:13]RasterBufferAndPrint [08:23:13]line [08:23:13]line [08:23:13]line [08:23:13]line [08:23:13]line [08:23:13]written 0, free lines is 3284 [08:23:13]MH_Cut [08:23:13]Write to MH i2c: D1 01 00 95 02 01 69 [08:23:13]Write i2c OK [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: D1 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: D1 01 00 [08:23:13]MH_I2C_Read... [08:23:13]Read from MH i2c: D1 01 00 95 02 00 68 [08:23:13]Write to MH i2c: 01 00 00 96 02 98 [08:23:13]Write i2c OK [08:23:13]MH_I2C_Read... [08:23:13]OFD Sender: No OFD packet to send [08:23:14]*** Cut start [08:23:14]*** Purtial cut [08:23:14]*** CUTSNS_PIN = 0 [08:23:14]*** Stage 1: CUTSNS_PIN = 1 [08:23:16]Read from MH i2c: 01 [08:23:16]MH_I2C_Read... [08:23:16]*** Stop cut motor [08:23:16]*** Cut end [08:23:16]Read from MH i2c: 01 07 00 [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: 01 07 00 96 02 00 00 00 00 00 FF 0F AD [08:23:16]process_action close_receipt done [08:23:16]requested_data is exist [08:23:16]produce_requested_data [08:23:16]requested_item fm.sn is exist - process it [08:23:16]wFMCommunicate request_size=4 [08:23:16]MH_SAM_APDU [08:23:16]CAPDU: 80 11 00 00 [08:23:16]Write to MH i2c: E2 08 00 97 02 80 11 00 00 00 00 00 00 13 [08:23:16]Write i2c OK [08:23:16]MH_I2C_Read... [08:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:16]Read from MH i2c: E2 [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: E2 17 00 [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: E2 17 00 97 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 73 [08:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:23:16]wFMCommunicate OK [08:23:16]requested_item fd.num is exist - process it [08:23:16]SAM_PROTO_GetFieldsCounters [08:23:16]wFMCommunicate request_size=4 [08:23:16]MH_SAM_APDU [08:23:16]CAPDU: 80 13 00 00 [08:23:16]Write to MH i2c: E2 08 00 98 02 80 13 00 00 00 00 00 00 16 [08:23:16]Write i2c OK [08:23:16]MH_I2C_Read... [08:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:16]Read from MH i2c: E2 [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: E2 62 00 [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: E2 62 00 98 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B6 7B 02 00 0E 04 04 00 CF 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 EE [08:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B6 7B 02 00 0E 04 04 00 CF 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 [08:23:16]wFMCommunicate OK [08:23:16]SAM_PROTO_GetFieldsCounters done [08:23:16]requested_item shift.num is exist - process it [08:23:16]requested_item shift.opened is exist - process it [08:23:16]req_shift_opened [08:23:16]FM_GetShiftState [08:23:16]SAM_PROTO_GetShiftState [08:23:16]wFMCommunicate request_size=4 [08:23:16]MH_SAM_APDU [08:23:16]CAPDU: 80 13 01 00 [08:23:16]Write to MH i2c: E2 08 00 99 02 80 13 01 00 00 00 00 00 18 [08:23:16]Write i2c OK [08:23:16]MH_I2C_Read... [08:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:16]Read from MH i2c: E2 [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: E2 0E 00 [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: E2 0E 00 99 02 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4E [08:23:16]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:23:16]wFMCommunicate OK [08:23:16]SAM_PROTO_GetShiftState done [08:23:16]FM_GetShiftState done [08:23:16]req_shift_opened done [08:23:16]requested_item shift.open_date is exist - process it [08:23:16]req_shift_open_date [08:23:16]req_shift_open_date done [08:23:16]produce_requested_data done [08:23:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162742,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:23:16]process_action_free close_receipt [08:23:16]json_value_free [08:23:16]json_value_free done [08:23:16]process_json_proto returns [08:23:16]Send response to host [08:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162742,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:23:16]free response buf [08:23:16]execute_script done [08:23:16]execute_script returns [08:23:16]free content buf [08:23:16]Sock 7.Close socket [08:23:16]Sock 7.Thread stoped [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:00]accept exits with 9 [08:24:00]New connection [08:24:00]New thread 3066735972 created [08:24:00]Thread 3066879332 joined [08:24:00]Waiting for new connection... [08:24:00] Sock 9.Parse request [08:24:00]Sock 9.Check first char [08:24:00]Sock 9.First char is OK [08:24:00]request: POST /json_proto HTTP/1.0 [08:24:00]Method: POST [08:24:00]URL: /json_proto [08:24:00]Method is POST - this is cgi request [08:24:00]url: /json_proto [08:24:00]query_string will be loaded in cgi processing [08:24:00]execute_cgi json_proto POST (null) [08:24:00]execute_cgi path=json_proto method=POST [08:24:00]POST find Content-Length [08:24:00]Host: 172.17.39.67:8080 [08:24:00]Content-Length: 684 [08:24:00]Content-Type: application/json [08:24:00] [08:24:00]POST finish read [08:24:00]Found Content-Length = 684 [08:24:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 11.380, "sum" : 826.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 826.00, "total" : 826.00, "payments": [ { "type": 0, "sum" : 826.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:00]execute_script... [08:24: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)1319329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 11.380, "sum" : 826.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 826.00, "total" : 826.00, "payments": [ { "type": 0, "sum" : 826.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:00]POST & json_proto [08:24:00]process_json_proto [08:24:00]json parsed OK: [08:24:00]protocol is kg_v1.0 [08:24:00]action value=close_receipt [08:24:00]process_action close_receipt [08:24:00]cmd_close_receipt [08:24:00]MH_GetDate [08:24:00]Write to MH i2c: F0 00 00 9A 02 8B [08:24:00]Write i2c OK [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: F0 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: F0 09 00 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: F0 09 00 9A 02 00 20 8B 93 66 B6 85 93 66 6C [08:24:00]GetLastDocTimeStamp 1720945391 [08:24:00]current date 1720945440 [08:24:00]FM_GetShiftState [08:24:00]SAM_PROTO_GetShiftState [08:24:00]wFMCommunicate request_size=4 [08:24:00]MH_SAM_APDU [08:24:00]CAPDU: 80 13 01 00 [08:24:00]Write to MH i2c: E2 08 00 9B 02 80 13 01 00 00 00 00 00 1A [08:24:00]Write i2c OK [08:24:00]MH_I2C_Read... [08:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:00]Read from MH i2c: E2 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 0E 00 [08:24:00]MH_I2C_Read... [08:24:00]Read from MH i2c: E2 0E 00 9B 02 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 50 [08:24:00]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:24:00]wFMCommunicate OK [08:24:00]SAM_PROTO_GetShiftState done [08:24:00]FM_GetShiftState done [08:24:00]opened in 1720915483 [08:24:00]opened+sec_in_day 1721001883 [08:24:00]quantity*price = 82618 [08:24:00]sum+1 = 82620 [08:24:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 826.00 Внесено: 826.00 СДАЧА: 0.00 НСП 1% : 7.31 НДС 12% : 87.74 Наличными: 826.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 55 14.07.2024 08:24 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162743 ФПД: 60692610501962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T082400&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162743&fm=60692610501962&tin=02508201610067®Number=0000000000090858&sum=82600 [08:24:01]StoreToDocumentArchive [08:24:01]shift 463 fd 162743 [08:24:01]save to /storage/0463/doc_00162743 [08:24:01]save last doc name /storage/0463/doc_00162743 to /storage/kkm_last_doc_name [08:24:01]save OK [08:24:01]Clear old archive folders... [08:24:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:24:01]tlvbuf is 012E81B0 [08:24:01]SAM_PROTO_ClearQueue [08:24:01]wFMCommunicate request_size=4 [08:24:01]MH_SAM_APDU [08:24:01]CAPDU: 80 09 00 00 [08:24:01]Write to MH i2c: E2 08 00 A8 02 80 09 00 00 00 00 00 00 1C [08:24:01]Write i2c OK [08:24:01]MH_I2C_Read... [08:24:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:01]Read from MH i2c: E2 [08:24:01]MH_I2C_Read... [08:24:01]Read from MH i2c: E2 03 00 [08:24:01]MH_I2C_Read... [08:24:01]Read from MH i2c: E2 03 00 A8 02 00 90 00 1E [08:24:01]RAPDU: 90 00 [08:24:01]wFMCommunicate OK [08:24:01]SAM_PROTO_ClearQueue done [08:24:01]KKMCreateOFDPacket [08:24:01]OFDProtocolAddRootSTLVToBuf [08:24:01]FM_MakeSignedData [08:24:01]FM_MakeSignedData [08:24:01]SAM_PROTO_SignData [08:24:01]wFMCommunicate request_size=4 [08:24:01]MH_SAM_APDU [08:24:01]CAPDU: 80 0D 01 02 [08:24:01]Write to MH i2c: E2 08 00 A9 02 80 0D 01 02 00 00 00 00 24 [08:24:01]Write i2c OK [08:24:01]MH_I2C_Read... [08:24:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:01]Read from MH i2c: E2 [08:24:01]MH_I2C_Read... [08:24:01]Read from MH i2c: E2 03 00 [08:24:01]MH_I2C_Read... [08:24:01]Read from MH i2c: E2 03 00 A9 02 00 90 00 1F [08:24:01]RAPDU: 90 00 [08:24:01]wFMCommunicate OK [08:24:01]wFMCommunicate request_size=255 [08:24:01]MH_SAM_APDU [08:24:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 BB 42 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 22 00 00 00 00 07 04 06 00 A8 42 01 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 20 8B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B7 7B 02 00 35 04 06 00 [08:24:01]Write to MH i2c: E2 02 01 AA 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 BB 42 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 22 00 00 00 00 07 04 06 00 A8 42 01 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 20 8B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B7 7B 02 00 35 04 06 00 00 00 8B [08:24:01]Write i2c OK [08:24:01]MH_I2C_Read... [08:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:02]Read from MH i2c: E2 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 03 00 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 03 00 AA 02 00 90 00 20 [08:24:02]RAPDU: 90 00 [08:24:02]wFMCommunicate OK [08:24:02]wFMCommunicate request_size=11 [08:24:02]MH_SAM_APDU [08:24:02]CAPDU: 80 0D 02 02 06 37 33 19 7D 4D 4A [08:24:02]Write to MH i2c: E2 0E 00 AB 02 80 0D 02 02 06 00 37 33 19 7D 4D 4A 00 00 CA [08:24:02]Write i2c OK [08:24:02]MH_I2C_Read... [08:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:02]Read from MH i2c: E2 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 03 00 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 03 00 AB 02 00 90 00 21 [08:24:02]RAPDU: 90 00 [08:24:02]wFMCommunicate OK [08:24:02]wFMCommunicate request_size=4 [08:24:02]MH_SAM_APDU [08:24:02]CAPDU: 80 0D 03 02 [08:24:02]Write to MH i2c: E2 08 00 AC 02 80 0D 03 02 00 00 00 00 29 [08:24:02]Write i2c OK [08:24:02]MH_I2C_Read... [08:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:02]Read from MH i2c: E2 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 0B 00 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 0B 00 AC 02 00 D1 2F AA 72 4F 8D 0B 05 90 00 32 [08:24:02]RAPDU: D1 2F AA 72 4F 8D 0B 05 90 00 [08:24:02]wFMCommunicate OK [08:24:02]SAM_PROTO_SignData done [08:24:02]FM_MakeSignedData done [08:24:02]CreateOFDProtocolMessage [08:24:02]wFMCommunicate request_size=4 [08:24:02]MH_SAM_APDU [08:24:02]CAPDU: 80 11 00 00 [08:24:02]Write to MH i2c: E2 08 00 AD 02 80 11 00 00 00 00 00 00 29 [08:24:02]Write i2c OK [08:24:02]MH_I2C_Read... [08:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:02]Read from MH i2c: E2 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 17 00 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 17 00 AD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 89 [08:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:24:02]wFMCommunicate OK [08:24:02]CreateOFDProtocolMessage done [08:24:02]OFDSenderStorePacket 162743 [08:24:02]StoreOFDPacket docnum=162743 [08:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 27 5E 08 01 BF 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 BB 42 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 22 00 00 00 00 07 04 06 00 A8 42 01 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 20 8B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B7 7B 02 00 35 04 06 00 37 33 19 7D 4D 4A D1 2F AA 72 4F 8D 0B 05 [08:24:02]CheckFolder [08:24:02]dirname=/storage/ofd_packets [08:24:02]CheckFolder done [08:24:02]ProducePacketName [08:24:02]name=ofd_packets/00162743 [08:24:02]NVStorageSaveData ofd_packets/00162743 [08:24:02]File name is /storage/ofd_packets/00162743 [08:24:02]Write 302 bytes [08:24:02]NVStorageSaveData done [08:24:02]OFDSenderStorePacket done [08:24:02]KKMCreateOFDPacket done [08:24:02]NVStorageSaveData kkm_last_timestamp [08:24:02]File name is /storage/kkm_last_timestamp [08:24:02]Write 4 bytes [08:24:02]NVStorageSaveData done [08:24:02]ExternCall_PrintAddStr [08:24:02]wPrintStart [08:24:02]Write to MH i2c: 01 00 00 AE 02 B0 [08:24:02]Write i2c OK [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: 01 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: 01 07 00 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 FF 0F C5 [08:24:02]RasterBufferAndPrint [08:24:02]line Счет N : (1)1319329 [08:24:02]line ИНН: 02508201610067 [08:24:02]line Контрольно-Кассовый Чек [08:24:02]line ПРОДАЖА [08:24:02]line ТРК (МРК, ГНК) : 11 [08:24:02]line Товар: 2710194210 [08:24:02]line ДТ(л)-К-5 [08:24:02]line 11.380 * 72.60 [08:24:02]line = 826.19 [08:24:02]line НДС 12% НСП 1% [08:24:02]line > о реализуемом товаре [08:24:02]line ОКРУГЛЕНИЕ: -0.19 [08:24:02]line ИТОГО: 826.00 [08:24:02]line Внесено: 826.00 [08:24:02]line СДАЧА: 0.00 [08:24:02]line НСП 1% : 7.31 [08:24:02]line НДС 12% : 87.74 [08:24:02]line Наличными: 826.00 [08:24:02]line Безнал.: 0.00 [08:24:02]line Место: АЗС № 140 "Партнер Нефть" [08:24:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:24:02]line СНО: Общий режим [08:24:02]line Чек 55 14.07.2024 08:24 [08:24:02]line Смена: 463 ФФД: 1.0 [08:24:02]line ЗНМ: 0300000129 [08:24:02]line РНМ: 0000000000090858 [08:24:02]line Версия ККМ: 001 [08:24:02]line ФМ: 0000000000874899 [08:24:02]line ФД: 162743 [08:24:02]line ФПД: 60692610501962 [08:24:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T082400&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162743&fm=60692610501962&tin=02508201610067®Number=0000000000090858&sum=82600 [08:24:02]OFD Sender: Processing packet 162743 [packets to send 106, broken 105] [08:24:02]ProducePacketName [08:24:02]name=ofd_packets/00162743 [08:24:02]OFD Sender: To server: pG, [08:24:02]CommunicateWithHost lk.salyk.kg:30040 [08:24:02]ConnectInit lk.salyk.kg [08:24:02]written 0, free lines is 4095 [08:24:02]Connected sock=10 [08:24:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 27 5E 08 01 BF 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 BB 42 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 22 00 00 00 00 07 04 06 00 A8 42 01 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 20 8B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B7 7B 02 00 35 04 06 00 37 33 19 7D 4D 4A D1 2F AA 72 4F 8D 0B 05 [08:24:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C5 42 47 00 87 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B7 7B 02 00 F4 03 04 00 2E 37 93 66 B6 04 01 00 00 0E 60 A5 74 74 53 81 74 [08:24:02]CommunicateWithHost err = 0 [08:24:02]CheckOFDResponse [08:24:02]1017 (14) - 77093643461234 [08:24:02]1041 (16) - 0000000000874899 [08:24:02]1040 (4) - 162743 [08:24:02]1012 (4) - 14.07.2024 02:25 [08:24:02]1206 (1) - 0 [08:24:02]OFD Sender: Remove packet 162743 [08:24:02]ProducePacketName [08:24:02]name=ofd_packets/00162743 [08:24:02]NVStorageDeleteData [08:24:03]Write to MH i2c: 01 00 00 D9 02 DB [08:24:03]Write i2c OK [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: 01 [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: 01 07 00 [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: 01 07 00 D9 02 00 00 00 00 00 CE 0C BC [08:24:03]RasterBufferAndPrint [08:24:03]line [08:24:03]line [08:24:03]line [08:24:03]line [08:24:03]line [08:24:03]written 0, free lines is 3284 [08:24:03]MH_Cut [08:24:03]Write to MH i2c: D1 01 00 E0 02 01 B4 [08:24:03]Write i2c OK [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: D1 [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: D1 01 00 [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: D1 01 00 E0 02 00 B3 [08:24:03]Write to MH i2c: 01 00 00 E1 02 E3 [08:24:03]Write i2c OK [08:24:03]MH_I2C_Read... [08:24:03]OFD Sender: No OFD packet to send [08:24:03]*** Cut start [08:24:03]*** Purtial cut [08:24:03]*** Stage 1: CUTSNS_PIN = 1 [08:24:04]Read from MH i2c: 01 [08:24:04]MH_I2C_Read... [08:24:04]*** Stop cut motor [08:24:04]*** Cut end [08:24:04]Read from MH i2c: 01 07 00 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: 01 07 00 E1 02 00 00 00 00 00 FF 0F F8 [08:24:04]process_action close_receipt done [08:24:04]requested_data is exist [08:24:04]produce_requested_data [08:24:04]requested_item fm.sn is exist - process it [08:24:04]wFMCommunicate request_size=4 [08:24:04]MH_SAM_APDU [08:24:04]CAPDU: 80 11 00 00 [08:24:04]Write to MH i2c: E2 08 00 E2 02 80 11 00 00 00 00 00 00 5E [08:24:04]Write i2c OK [08:24:04]MH_I2C_Read... [08:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:04]Read from MH i2c: E2 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 17 00 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 17 00 E2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BE [08:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:24:04]wFMCommunicate OK [08:24:04]requested_item fd.num is exist - process it [08:24:04]SAM_PROTO_GetFieldsCounters [08:24:04]wFMCommunicate request_size=4 [08:24:04]MH_SAM_APDU [08:24:04]CAPDU: 80 13 00 00 [08:24:04]Write to MH i2c: E2 08 00 E3 02 80 13 00 00 00 00 00 00 61 [08:24:04]Write i2c OK [08:24:04]MH_I2C_Read... [08:24:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:04]Read from MH i2c: E2 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 62 00 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 62 00 E3 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B7 7B 02 00 0E 04 04 00 CF 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 3D [08:24:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B7 7B 02 00 0E 04 04 00 CF 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 [08:24:04]wFMCommunicate OK [08:24:04]SAM_PROTO_GetFieldsCounters done [08:24:04]requested_item shift.num is exist - process it [08:24:04]requested_item shift.opened is exist - process it [08:24:04]req_shift_opened [08:24:04]FM_GetShiftState [08:24:04]SAM_PROTO_GetShiftState [08:24:04]wFMCommunicate request_size=4 [08:24:04]MH_SAM_APDU [08:24:04]CAPDU: 80 13 01 00 [08:24:04]Write to MH i2c: E2 08 00 E4 02 80 13 01 00 00 00 00 00 63 [08:24:04]Write i2c OK [08:24:04]MH_I2C_Read... [08:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:04]Read from MH i2c: E2 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 0E 00 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 0E 00 E4 02 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 99 [08:24:04]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:24:04]wFMCommunicate OK [08:24:04]SAM_PROTO_GetShiftState done [08:24:04]FM_GetShiftState done [08:24:04]req_shift_opened done [08:24:04]requested_item shift.open_date is exist - process it [08:24:04]req_shift_open_date [08:24:04]req_shift_open_date done [08:24:04]produce_requested_data done [08:24:04]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162743,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:24:04]process_action_free close_receipt [08:24:04]json_value_free [08:24:04]json_value_free done [08:24:04]process_json_proto returns [08:24:04]Send response to host [08:24:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162743,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:24:04]free response buf [08:24:04]execute_script done [08:24:04]execute_script returns [08:24:04]free content buf [08:24:04]Sock 9.Close socket [08:24:04]Sock 9.Thread stoped [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]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:04]accept exits with 7 [08:25:04]New connection [08:25:04]New thread 3066879332 created [08:25:04]Thread 3066735972 joined [08:25:04]Waiting for new connection... [08:25:04] Sock 7.Parse request [08:25:04]Sock 7.Check first char [08:25:04]Sock 7.First char is OK [08:25:04]request: POST /json_proto HTTP/1.0 [08:25:04]Method: POST [08:25:04]URL: /json_proto [08:25:04]Method is POST - this is cgi request [08:25:04]url: /json_proto [08:25:04]query_string will be loaded in cgi processing [08:25:04]execute_cgi json_proto POST (null) [08:25:04]execute_cgi path=json_proto method=POST [08:25:04]POST find Content-Length [08:25:04]Host: 172.17.39.67:8080 [08:25:04]Content-Length: 1203 [08:25:04]Content-Type: application/json [08:25:04] [08:25:04]POST finish read [08:25:04]Found Content-Length = 1203 [08:25:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319330\u000A14.07.2024 08:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 3630.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474981\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:04]execute_script... [08:25:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319330\u000A14.07.2024 08:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 3630.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474981\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:04]POST & json_proto [08:25:04]process_json_proto [08:25:04]json parsed OK: [08:25:04]protocol is kg_v1.0 [08:25:04]action value=print_text [08:25:04]process_action print_text [08:25:04]cmd_print_text [08:25:04]ExternCall_PrintAddStr [08:25:04]wPrintStart [08:25:04]Write to MH i2c: 01 00 00 E5 02 E7 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 07 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 07 00 E5 02 00 00 00 00 00 FF 0F FC [08:25:04]RasterBufferAndPrint [08:25:04]line *****ТОВАРНЫЙ ЧЕК***** [08:25:04]line АЗС 140 [08:25:04]line Партнер нефть [08:25:04]line 02508201610067 [08:25:04]line Кассир : Дуйшенбек у Н. [08:25:04]line Счет N : (1)1319330 [08:25:04]line 14.07.2024 08:22 [08:25:04]line ПРОДАЖА [08:25:04]line ТРК (МРК, ГНК): 21 [08:25:04]line Вид ГСМ : 2710194210 [08:25:04]line ДТ(л)-К-5 [08:25:04]line 50.000 x 72.60 [08:25:04]line ИТОГ: 3630.00 [08:25:04]line Тип оплаты: Талоны: Партнер нефть [08:25:04]line 3474981 [08:25:04]line ______________________ [08:25:04]line (подпись) [08:25:04]written 0, free lines is 4095 [08:25:04]Write to MH i2c: 01 00 00 F9 02 FB [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 07 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 14 0E 24 [08:25:04]RasterBufferAndPrint [08:25:04]line [08:25:04]line [08:25:04]line [08:25:04]line [08:25:04]line [08:25:04]written 0, free lines is 3606 [08:25:04]MH_Cut [08:25:04]Write to MH i2c: D1 01 00 00 03 01 D5 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: D1 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: D1 01 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: D1 01 00 00 03 00 D4 [08:25:04]Write to MH i2c: 01 00 00 01 03 04 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:05]*** Cut start [08:25:05]*** Purtial cut [08:25:05]*** CUTSNS_PIN = 0 [08:25:05]*** Stage 1: CUTSNS_PIN = 1 [08:25:07]Read from MH i2c: 01 [08:25:07]MH_I2C_Read... [08:25:07]*** Stop cut motor [08:25:07]*** Cut end [08:25:07]Read from MH i2c: 01 07 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [08:25:07]process_action print_text done [08:25:07]requested_data is exist [08:25:07]produce_requested_data [08:25:07]requested_item fm.sn is exist - process it [08:25:07]wFMCommunicate request_size=4 [08:25:07]MH_SAM_APDU [08:25:07]CAPDU: 80 11 00 00 [08:25:07]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:07]Read from MH i2c: E2 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 17 00 [08:25:07]MH_I2C_Read... [08:25:07]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 34 38 39 39 90 00 DF [08:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:25:07]wFMCommunicate OK [08:25:07]requested_item fd.num is exist - process it [08:25:07]SAM_PROTO_GetFieldsCounters [08:25:07]wFMCommunicate request_size=4 [08:25:07]MH_SAM_APDU [08:25:07]CAPDU: 80 13 00 00 [08:25:07]Write to MH i2c: E2 08 00 03 03 80 13 00 00 00 00 00 00 82 [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:07]Read from MH i2c: E2 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 62 00 [08:25:07]MH_I2C_Read... [08:25:07]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B7 7B 02 00 0E 04 04 00 CF 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 5E [08:25:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B7 7B 02 00 0E 04 04 00 CF 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 [08:25:07]wFMCommunicate OK [08:25:07]SAM_PROTO_GetFieldsCounters done [08:25:07]requested_item shift.num is exist - process it [08:25:07]requested_item shift.opened is exist - process it [08:25:07]req_shift_opened [08:25:07]FM_GetShiftState [08:25:07]SAM_PROTO_GetShiftState [08:25:07]wFMCommunicate request_size=4 [08:25:07]MH_SAM_APDU [08:25:07]CAPDU: 80 13 01 00 [08:25:07]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:07]Read from MH i2c: E2 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 0E 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BA [08:25:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:25:07]wFMCommunicate OK [08:25:07]SAM_PROTO_GetShiftState done [08:25:07]FM_GetShiftState done [08:25:07]req_shift_opened done [08:25:07]requested_item shift.open_date is exist - process it [08:25:07]req_shift_open_date [08:25:07]req_shift_open_date done [08:25:07]produce_requested_data done [08:25:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162743,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:25:07]process_action_free print_text [08:25:07]json_value_free [08:25:07]json_value_free done [08:25:07]process_json_proto returns [08:25:07]Send response to host [08:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162743,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:25:07]free response buf [08:25:07]execute_script done [08:25:07]execute_script returns [08:25:07]free content buf [08:25:07]Sock 7.Close socket [08:25:07]Sock 7.Thread stoped [08:25:07]accept exits with 10 [08:25:07]New connection [08:25:07]New thread 3066735972 created [08:25:07]Thread 3066879332 joined [08:25:07]Waiting for new connection... [08:25:07] Sock 10.Parse request [08:25:07]Sock 10.Check first char [08:25:07]Sock 10.First char is OK [08:25:07]request: POST /json_proto HTTP/1.0 [08:25:07]Method: POST [08:25:07]URL: /json_proto [08:25:07]Method is POST - this is cgi request [08:25:07]url: /json_proto [08:25:07]query_string will be loaded in cgi processing [08:25:07]execute_cgi json_proto POST (null) [08:25:07]execute_cgi path=json_proto method=POST [08:25:07]POST find Content-Length [08:25:07]Host: 172.17.39.67:8080 [08:25:07]Content-Length: 678 [08:25:07]Content-Type: application/json [08:25:07] [08:25:07]POST finish read [08:25:07]Found Content-Length = 678 [08:25:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:07]execute_script... [08:25: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)1319331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:07]POST & json_proto [08:25:07]process_json_proto [08:25:07]json parsed OK: [08:25:07]protocol is kg_v1.0 [08:25:07]action value=close_receipt [08:25:07]process_action close_receipt [08:25:07]cmd_close_receipt [08:25:07]MH_GetDate [08:25:07]Write to MH i2c: F0 00 00 05 03 F7 [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: F0 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: F0 09 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: F0 09 00 05 03 00 63 8B 93 66 B6 85 93 66 1B [08:25:07]GetLastDocTimeStamp 1720945440 [08:25:07]current date 1720945507 [08:25:07]FM_GetShiftState [08:25:07]SAM_PROTO_GetShiftState [08:25:07]wFMCommunicate request_size=4 [08:25:07]MH_SAM_APDU [08:25:07]CAPDU: 80 13 01 00 [08:25:07]Write to MH i2c: E2 08 00 06 03 80 13 01 00 00 00 00 00 86 [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:07]Read from MH i2c: E2 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 0E 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 0E 00 06 03 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BC [08:25:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:25:07]wFMCommunicate OK [08:25:07]SAM_PROTO_GetShiftState done [08:25:07]FM_GetShiftState done [08:25:07]opened in 1720915483 [08:25:07]opened+sec_in_day 1721001883 [08:25:07]quantity*price = 50056 [08:25:07]sum+1 = 50058 [08:25:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 56 14.07.2024 08:25 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162744 ФПД: 75684390284730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T082507&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162744&fm=75684390284730&tin=02508201610067®Number=0000000000090858&sum=50000 [08:25:09]StoreToDocumentArchive [08:25:09]shift 463 fd 162744 [08:25:09]save to /storage/0463/doc_00162744 [08:25:09]save last doc name /storage/0463/doc_00162744 to /storage/kkm_last_doc_name [08:25:09]save OK [08:25:09]Clear old archive folders... [08:25:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:09]tlvbuf is 012272F0 [08:25:09]SAM_PROTO_ClearQueue [08:25:09]wFMCommunicate request_size=4 [08:25:09]MH_SAM_APDU [08:25:09]CAPDU: 80 09 00 00 [08:25:09]Write to MH i2c: E2 08 00 13 03 80 09 00 00 00 00 00 00 88 [08:25:09]Write i2c OK [08:25:09]MH_I2C_Read... [08:25:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:09]Read from MH i2c: E2 [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: E2 03 00 [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [08:25:09]RAPDU: 90 00 [08:25:09]wFMCommunicate OK [08:25:09]SAM_PROTO_ClearQueue done [08:25:09]KKMCreateOFDPacket [08:25:09]OFDProtocolAddRootSTLVToBuf [08:25:09]FM_MakeSignedData [08:25:09]FM_MakeSignedData [08:25:09]SAM_PROTO_SignData [08:25:09]wFMCommunicate request_size=4 [08:25:09]MH_SAM_APDU [08:25:09]CAPDU: 80 0D 01 02 [08:25:09]Write to MH i2c: E2 08 00 14 03 80 0D 01 02 00 00 00 00 90 [08:25:09]Write i2c OK [08:25:09]MH_I2C_Read... [08:25:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:09]Read from MH i2c: E2 [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: E2 03 00 [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [08:25:09]RAPDU: 90 00 [08:25:09]wFMCommunicate OK [08:25:09]wFMCommunicate request_size=255 [08:25:09]MH_SAM_APDU [08:25: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 38 00 00 00 F4 03 04 00 63 8B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B8 7B 02 00 35 04 06 00 44 [08:25:09]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 38 00 00 00 F4 03 04 00 63 8B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B8 7B 02 00 35 04 06 00 44 00 00 B4 [08:25:09]Write i2c OK [08:25:09]MH_I2C_Read... [08:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:10]Read from MH i2c: E2 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 03 00 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [08:25:10]RAPDU: 90 00 [08:25:10]wFMCommunicate OK [08:25:10]wFMCommunicate request_size=10 [08:25:10]MH_SAM_APDU [08:25:10]CAPDU: 80 0D 02 02 05 D5 A5 32 AD BA [08:25:10]Write to MH i2c: E2 0D 00 16 03 80 0D 02 02 05 00 D5 A5 32 AD BA 00 00 B0 [08:25:10]Write i2c OK [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 [08:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 03 00 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [08:25:10]RAPDU: 90 00 [08:25:10]wFMCommunicate OK [08:25:10]wFMCommunicate request_size=4 [08:25:10]MH_SAM_APDU [08:25:10]CAPDU: 80 0D 03 02 [08:25:10]Write to MH i2c: E2 08 00 17 03 80 0D 03 02 00 00 00 00 95 [08:25:10]Write i2c OK [08:25:10]MH_I2C_Read... [08:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:10]Read from MH i2c: E2 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 0B 00 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 0B 00 17 03 00 A0 E6 08 87 DF C3 84 C7 90 00 98 [08:25:10]RAPDU: A0 E6 08 87 DF C3 84 C7 90 00 [08:25:10]wFMCommunicate OK [08:25:10]SAM_PROTO_SignData done [08:25:10]FM_MakeSignedData done [08:25:10]CreateOFDProtocolMessage [08:25:10]wFMCommunicate request_size=4 [08:25:10]MH_SAM_APDU [08:25:10]CAPDU: 80 11 00 00 [08:25:10]Write to MH i2c: E2 08 00 18 03 80 11 00 00 00 00 00 00 95 [08:25:10]Write i2c OK [08:25:10]MH_I2C_Read... [08:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:10]Read from MH i2c: E2 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: E2 17 00 [08:25:10]MH_I2C_Read... [08:25:10]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 34 38 39 39 90 00 F5 [08:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:25:10]wFMCommunicate OK [08:25:10]CreateOFDProtocolMessage done [08:25:10]OFDSenderStorePacket 162744 [08:25:10]StoreOFDPacket docnum=162744 [08:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 88 55 07 01 F4 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 38 00 00 00 F4 03 04 00 63 8B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B8 7B 02 00 35 04 06 00 44 D5 A5 32 AD BA A0 E6 08 87 DF C3 84 C7 [08:25:10]CheckFolder [08:25:10]dirname=/storage/ofd_packets [08:25:10]CheckFolder done [08:25:10]ProducePacketName [08:25:10]name=ofd_packets/00162744 [08:25:10]NVStorageSaveData ofd_packets/00162744 [08:25:10]File name is /storage/ofd_packets/00162744 [08:25:10]Write 301 bytes [08:25:10]NVStorageSaveData done [08:25:10]OFDSenderStorePacket done [08:25:10]KKMCreateOFDPacket done [08:25:10]NVStorageSaveData kkm_last_timestamp [08:25:10]File name is /storage/kkm_last_timestamp [08:25:10]Write 4 bytes [08:25:10]NVStorageSaveData done [08:25:10]ExternCall_PrintAddStr [08:25:10]wPrintStart [08:25:10]Write to MH i2c: 01 00 00 19 03 1C [08:25:10]Write i2c OK [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: 01 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: 01 07 00 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 FF 0F 31 [08:25:10]RasterBufferAndPrint [08:25:10]line Счет N : (1)1319331 [08:25:10]line ИНН: 02508201610067 [08:25:10]line Контрольно-Кассовый Чек [08:25:10]line ПРОДАЖА [08:25:10]line ТРК (МРК, ГНК) : 63 [08:25:10]line Товар: 2710124130 [08:25:10]line Аи-92-К-5 [08:25:10]line 7.550 * 66.30 [08:25:10]line = 500.57 [08:25:10]line НДС 12% НСП 1% [08:25:10]line > о реализуемом товаре [08:25:10]line ОКРУГЛЕНИЕ: -0.57 [08:25:10]line ИТОГО: 500.00 [08:25:10]line Внесено: 500.00 [08:25:10]line СДАЧА: 0.00 [08:25:10]line НСП 1% : 4.43 [08:25:10]line НДС 12% : 53.16 [08:25:10]line Наличными: 500.00 [08:25:10]line Безнал.: 0.00 [08:25:10]line Место: АЗС № 140 "Партнер Нефть" [08:25:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:25:10]line СНО: Общий режим [08:25:10]line Чек 56 14.07.2024 08:25 [08:25:10]line Смена: 463 ФФД: 1.0 [08:25:10]line ЗНМ: 0300000129 [08:25:10]line РНМ: 0000000000090858 [08:25:10]line Версия ККМ: 001 [08:25:10]line ФМ: 0000000000874899 [08:25:10]line ФД: 162744 [08:25:10]line ФПД: 75684390284730 [08:25:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T082507&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162744&fm=75684390284730&tin=02508201610067®Number=0000000000090858&sum=50000 [08:25:10]written 0, free lines is 4095 [08:25:10]OFD Sender: Processing packet 162744 [packets to send 106, broken 105] [08:25:10]ProducePacketName [08:25:10]name=ofd_packets/00162744 [08:25:10]OFD Sender: To server: pG, [08:25:10]CommunicateWithHost lk.salyk.kg:30040 [08:25:10]ConnectInit lk.salyk.kg [08:25:10]Connected sock=9 [08:25:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 88 55 07 01 F4 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 38 00 00 00 F4 03 04 00 63 8B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B8 7B 02 00 35 04 06 00 44 D5 A5 32 AD BA A0 E6 08 87 DF C3 84 C7 [08:25:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 78 35 47 00 45 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B8 7B 02 00 F4 03 04 00 72 37 93 66 B6 04 01 00 00 37 53 46 4C 69 5D 41 F9 [08:25:10]CommunicateWithHost err = 0 [08:25:10]CheckOFDResponse [08:25:10]1017 (14) - 77093643461234 [08:25:10]1041 (16) - 0000000000874899 [08:25:10]1040 (4) - 162744 [08:25:10]1012 (4) - 14.07.2024 02:26 [08:25:10]1206 (1) - 0 [08:25:10]OFD Sender: Remove packet 162744 [08:25:10]ProducePacketName [08:25:10]name=ofd_packets/00162744 [08:25:10]NVStorageDeleteData [08:25:10]Write to MH i2c: 01 00 00 44 03 47 [08:25:10]Write i2c OK [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: 01 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: 01 07 00 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 EA 0C 44 [08:25:10]RasterBufferAndPrint [08:25:10]line [08:25:10]line [08:25:10]line [08:25:10]line [08:25:10]line [08:25:10]written 0, free lines is 3315 [08:25:10]MH_Cut [08:25:10]Write to MH i2c: D1 01 00 4B 03 01 20 [08:25:10]Write i2c OK [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: D1 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: D1 01 00 [08:25:10]MH_I2C_Read... [08:25:10]Read from MH i2c: D1 01 00 4B 03 00 1F [08:25:10]Write to MH i2c: 01 00 00 4C 03 4F [08:25:10]Write i2c OK [08:25:10]MH_I2C_Read... [08:25:10]OFD Sender: No OFD packet to send [08:25:11]*** Cut start [08:25:11]*** Purtial cut [08:25:11]*** Stage 1: CUTSNS_PIN = 1 [08:25:11]Read from MH i2c: 01 [08:25:11]MH_I2C_Read... [08:25:11]*** Stop cut motor [08:25:11]*** Cut end [08:25:11]Read from MH i2c: 01 07 00 [08:25:11]MH_I2C_Read... [08:25:11]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 FF 0F 64 [08:25:11]process_action close_receipt done [08:25:11]requested_data is exist [08:25:11]produce_requested_data [08:25:11]requested_item fm.sn is exist - process it [08:25:11]wFMCommunicate request_size=4 [08:25:11]MH_SAM_APDU [08:25:11]CAPDU: 80 11 00 00 [08:25:11]Write to MH i2c: E2 08 00 4D 03 80 11 00 00 00 00 00 00 CA [08:25:11]Write i2c OK [08:25:11]MH_I2C_Read... [08:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:11]Read from MH i2c: E2 [08:25:11]MH_I2C_Read... [08:25:11]Read from MH i2c: E2 17 00 [08:25:11]MH_I2C_Read... [08:25:11]Read from MH i2c: E2 17 00 4D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2A [08:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:25:11]wFMCommunicate OK [08:25:11]requested_item fd.num is exist - process it [08:25:11]SAM_PROTO_GetFieldsCounters [08:25:11]wFMCommunicate request_size=4 [08:25:11]MH_SAM_APDU [08:25:11]CAPDU: 80 13 00 00 [08:25:11]Write to MH i2c: E2 08 00 4E 03 80 13 00 00 00 00 00 00 CD [08:25:11]Write i2c OK [08:25:11]MH_I2C_Read... [08:25:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:11]Read from MH i2c: E2 [08:25:11]MH_I2C_Read... [08:25:11]Read from MH i2c: E2 62 00 [08:25:11]MH_I2C_Read... [08:25:11]Read from MH i2c: E2 62 00 4E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B8 7B 02 00 0E 04 04 00 CF 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 AD [08:25:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B8 7B 02 00 0E 04 04 00 CF 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 [08:25:11]wFMCommunicate OK [08:25:11]SAM_PROTO_GetFieldsCounters done [08:25:11]requested_item shift.num is exist - process it [08:25:11]requested_item shift.opened is exist - process it [08:25:11]req_shift_opened [08:25:11]FM_GetShiftState [08:25:11]SAM_PROTO_GetShiftState [08:25:11]wFMCommunicate request_size=4 [08:25:11]MH_SAM_APDU [08:25:11]CAPDU: 80 13 01 00 [08:25:11]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [08:25:11]Write i2c OK [08:25:11]MH_I2C_Read... [08:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:11]Read from MH i2c: E2 [08:25:11]MH_I2C_Read... [08:25:11]Read from MH i2c: E2 0E 00 [08:25:11]MH_I2C_Read... [08:25:11]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 05 [08:25:11]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:25:11]wFMCommunicate OK [08:25:11]SAM_PROTO_GetShiftState done [08:25:11]FM_GetShiftState done [08:25:11]req_shift_opened done [08:25:11]requested_item shift.open_date is exist - process it [08:25:11]req_shift_open_date [08:25:11]req_shift_open_date done [08:25:11]produce_requested_data done [08:25:11]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162744,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:25:11]process_action_free close_receipt [08:25:11]json_value_free [08:25:11]json_value_free done [08:25:11]process_json_proto returns [08:25:11]Send response to host [08:25:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162744,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:25:11]free response buf [08:25:11]execute_script done [08:25:11]execute_script returns [08:25:11]free content buf [08:25:11]Sock 10.Close socket [08:25:11]Sock 10.Thread stoped [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:30:58]accept exits with 7 [08:30:58]New connection [08:30:58]New thread 3066879332 created [08:30:58]Thread 3066735972 joined [08:30:58]Waiting for new connection... [08:30:58] Sock 7.Parse request [08:30:58]Sock 7.Check first char [08:30:58]Sock 7.First char is OK [08:30:58]request: POST /json_proto HTTP/1.0 [08:30:58]Method: POST [08:30:58]URL: /json_proto [08:30:58]Method is POST - this is cgi request [08:30:58]url: /json_proto [08:30:58]query_string will be loaded in cgi processing [08:30:58]execute_cgi json_proto POST (null) [08:30:58]execute_cgi path=json_proto method=POST [08:30:58]POST find Content-Length [08:30:58]Host: 172.17.39.67:8080 [08:30:58]Content-Length: 1208 [08:30:58]Content-Type: application/json [08:30:58] [08:30:58]POST finish read [08:30:58]Found Content-Length = 1208 [08:30:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319332\u000A14.07.2024 08:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 34\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 1488.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:58]execute_script... [08:30:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319332\u000A14.07.2024 08:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 34\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 1488.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:58]POST & json_proto [08:30:58]process_json_proto [08:30:58]json parsed OK: [08:30:58]protocol is kg_v1.0 [08:30:58]action value=print_text [08:30:58]process_action print_text [08:30:58]cmd_print_text [08:30:58]ExternCall_PrintAddStr [08:30:58]wPrintStart [08:30:58]Write to MH i2c: 01 00 00 50 03 53 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 07 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 07 00 50 03 00 00 00 00 00 FF 0F 68 [08:30:58]RasterBufferAndPrint [08:30:58]line *****ТОВАРНЫЙ ЧЕК***** [08:30:58]line АЗС 140 [08:30:58]line Партнер нефть [08:30:58]line 02508201610067 [08:30:58]line Кассир : Дуйшенбек у Н. [08:30:58]line Счет N : (1)1319332 [08:30:58]line 14.07.2024 08:28 [08:30:58]line ПРОДАЖА [08:30:58]line ТРК (МРК, ГНК): 34 [08:30:58]line Вид ГСМ : 2710124500 [08:30:58]line Аи-95-К-5 [08:30:58]line 20.000 x 74.40 [08:30:58]line ИТОГ: 1488.00 [08:30:58]line Тип оплаты: Талоны: Топливная Карта [08:30:58]line 01860 [08:30:58]line ______________________ [08:30:58]line (подпись) [08:30:58]written 0, free lines is 4095 [08:30:58]Write to MH i2c: 01 00 00 64 03 67 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 07 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 14 0E 90 [08:30:58]RasterBufferAndPrint [08:30:58]line [08:30:58]line [08:30:58]line [08:30:58]line [08:30:58]line [08:30:58]written 0, free lines is 3606 [08:30:58]MH_Cut [08:30:58]Write to MH i2c: D1 01 00 6B 03 01 40 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: D1 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: D1 01 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: D1 01 00 6B 03 00 3F [08:30:58]Write to MH i2c: 01 00 00 6C 03 6F [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:59]*** Cut start [08:30:59]*** Purtial cut [08:30:59]*** CUTSNS_PIN = 0 [08:30:59]*** Stage 1: CUTSNS_PIN = 1 [08:31:01]OFD Sender: No OFD packet to send [08:31:01]Read from MH i2c: 01 [08:31:01]MH_I2C_Read... [08:31:01]*** Stop cut motor [08:31:01]*** Cut end [08:31:01]Read from MH i2c: 01 07 00 [08:31:01]MH_I2C_Read... [08:31:01]Read from MH i2c: 01 07 00 6C 03 00 00 00 00 00 FF 0F 84 [08:31:01]process_action print_text done [08:31:01]requested_data is exist [08:31:01]produce_requested_data [08:31:01]requested_item fm.sn is exist - process it [08:31:01]wFMCommunicate request_size=4 [08:31:01]MH_SAM_APDU [08:31:01]CAPDU: 80 11 00 00 [08:31:01]Write to MH i2c: E2 08 00 6D 03 80 11 00 00 00 00 00 00 EA [08:31:01]Write i2c OK [08:31:01]MH_I2C_Read... [08:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:01]Read from MH i2c: E2 [08:31:01]MH_I2C_Read... [08:31:01]Read from MH i2c: E2 17 00 [08:31:01]MH_I2C_Read... [08:31:01]Read from MH i2c: E2 17 00 6D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4A [08:31:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:31:01]wFMCommunicate OK [08:31:01]requested_item fd.num is exist - process it [08:31:01]SAM_PROTO_GetFieldsCounters [08:31:01]wFMCommunicate request_size=4 [08:31:01]MH_SAM_APDU [08:31:01]CAPDU: 80 13 00 00 [08:31:01]Write to MH i2c: E2 08 00 6E 03 80 13 00 00 00 00 00 00 ED [08:31:01]Write i2c OK [08:31:01]MH_I2C_Read... [08:31:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:01]Read from MH i2c: E2 [08:31:01]MH_I2C_Read... [08:31:01]Read from MH i2c: E2 62 00 [08:31:01]MH_I2C_Read... [08:31:01]Read from MH i2c: E2 62 00 6E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B8 7B 02 00 0E 04 04 00 CF 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 CD [08:31:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B8 7B 02 00 0E 04 04 00 CF 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 [08:31:01]wFMCommunicate OK [08:31:01]SAM_PROTO_GetFieldsCounters done [08:31:01]requested_item shift.num is exist - process it [08:31:01]requested_item shift.opened is exist - process it [08:31:01]req_shift_opened [08:31:01]FM_GetShiftState [08:31:01]SAM_PROTO_GetShiftState [08:31:01]wFMCommunicate request_size=4 [08:31:01]MH_SAM_APDU [08:31:01]CAPDU: 80 13 01 00 [08:31:01]Write to MH i2c: E2 08 00 6F 03 80 13 01 00 00 00 00 00 EF [08:31:01]Write i2c OK [08:31:01]MH_I2C_Read... [08:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:01]Read from MH i2c: E2 [08:31:01]MH_I2C_Read... [08:31:01]Read from MH i2c: E2 0E 00 [08:31:01]MH_I2C_Read... [08:31:01]Read from MH i2c: E2 0E 00 6F 03 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 25 [08:31:01]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:31:01]wFMCommunicate OK [08:31:01]SAM_PROTO_GetShiftState done [08:31:01]FM_GetShiftState done [08:31:01]req_shift_opened done [08:31:01]requested_item shift.open_date is exist - process it [08:31:01]req_shift_open_date [08:31:01]req_shift_open_date done [08:31:01]produce_requested_data done [08:31:01]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162744,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:31:01]process_action_free print_text [08:31:01]json_value_free [08:31:01]json_value_free done [08:31:01]process_json_proto returns [08:31:01]Send response to host [08:31:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162744,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:31:01]free response buf [08:31:01]execute_script done [08:31:01]execute_script returns [08:31:01]free content buf [08:31:01]Sock 7.Close socket [08:31:01]Sock 7.Thread stoped [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]accept exits with 9 [08:34:01]New connection [08:34:01]New thread 3066735972 created [08:34:01]Thread 3066879332 joined [08:34:01]Waiting for new connection... [08:34:01] Sock 9.Parse request [08:34:01]Sock 9.Check first char [08:34:01]Sock 9.First char is OK [08:34:01]request: POST /json_proto HTTP/1.0 [08:34:01]Method: POST [08:34:01]URL: /json_proto [08:34:01]Method is POST - this is cgi request [08:34:01]url: /json_proto [08:34:01]query_string will be loaded in cgi processing [08:34:01]execute_cgi json_proto POST (null) [08:34:01]execute_cgi path=json_proto method=POST [08:34:01]POST find Content-Length [08:34:01]Host: 172.17.39.67:8080 [08:34:01]Content-Length: 688 [08:34:01]Content-Type: application/json [08:34:01] [08:34:01]POST finish read [08:34:01]Found Content-Length = 688 [08:34:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 15.160, "sum" : 1100.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:01]execute_script... [08:34: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)1319333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 15.160, "sum" : 1100.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:01]POST & json_proto [08:34:01]process_json_proto [08:34:01]json parsed OK: [08:34:01]protocol is kg_v1.0 [08:34:01]action value=close_receipt [08:34:01]process_action close_receipt [08:34:01]cmd_close_receipt [08:34:01]MH_GetDate [08:34:01]Write to MH i2c: F0 00 00 70 03 62 [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: F0 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: F0 09 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: F0 09 00 70 03 00 79 8D 93 66 B6 85 93 66 9E [08:34:01]GetLastDocTimeStamp 1720945507 [08:34:01]current date 1720946041 [08:34:01]FM_GetShiftState [08:34:01]SAM_PROTO_GetShiftState [08:34:01]wFMCommunicate request_size=4 [08:34:01]MH_SAM_APDU [08:34:01]CAPDU: 80 13 01 00 [08:34:01]Write to MH i2c: E2 08 00 71 03 80 13 01 00 00 00 00 00 F1 [08:34:01]Write i2c OK [08:34:01]MH_I2C_Read... [08:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:01]Read from MH i2c: E2 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 0E 00 [08:34:01]MH_I2C_Read... [08:34:01]Read from MH i2c: E2 0E 00 71 03 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 27 [08:34:01]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:34:01]wFMCommunicate OK [08:34:01]SAM_PROTO_GetShiftState done [08:34:01]FM_GetShiftState done [08:34:01]opened in 1720915483 [08:34:01]opened+sec_in_day 1721001883 [08:34:01]quantity*price = 110061 [08:34:01]sum+1 = 110063 [08:34:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.88 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 57 14.07.2024 08:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162745 ФПД: 149097808378609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083401&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162745&fm=149097808378609&tin=02508201610067®Number=0000000000090858&sum=110000 [08:34:02]StoreToDocumentArchive [08:34:02]shift 463 fd 162745 [08:34:02]save to /storage/0463/doc_00162745 [08:34:02]save last doc name /storage/0463/doc_00162745 to /storage/kkm_last_doc_name [08:34:02]save OK [08:34:02]Clear old archive folders... [08:34:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:34:02]tlvbuf is 0122B5E0 [08:34:02]SAM_PROTO_ClearQueue [08:34:02]wFMCommunicate request_size=4 [08:34:02]MH_SAM_APDU [08:34:02]CAPDU: 80 09 00 00 [08:34:02]Write to MH i2c: E2 08 00 7E 03 80 09 00 00 00 00 00 00 F3 [08:34:02]Write i2c OK [08:34:02]MH_I2C_Read... [08:34:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:02]Read from MH i2c: E2 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: E2 03 00 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: E2 03 00 7E 03 00 90 00 F5 [08:34:02]RAPDU: 90 00 [08:34:02]wFMCommunicate OK [08:34:02]SAM_PROTO_ClearQueue done [08:34:02]KKMCreateOFDPacket [08:34:02]OFDProtocolAddRootSTLVToBuf [08:34:02]FM_MakeSignedData [08:34:02]FM_MakeSignedData [08:34:02]SAM_PROTO_SignData [08:34:02]wFMCommunicate request_size=4 [08:34:02]MH_SAM_APDU [08:34:02]CAPDU: 80 0D 01 02 [08:34:02]Write to MH i2c: E2 08 00 7F 03 80 0D 01 02 00 00 00 00 FB [08:34:02]Write i2c OK [08:34:02]MH_I2C_Read... [08:34:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:02]Read from MH i2c: E2 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: E2 03 00 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: E2 03 00 7F 03 00 90 00 F6 [08:34:02]RAPDU: 90 00 [08:34:02]wFMCommunicate OK [08:34:02]wFMCommunicate request_size=255 [08:34:02]MH_SAM_APDU [08:34:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 38 3B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EE AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 79 8D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B9 7B 02 00 35 04 06 00 [08:34:02]Write to MH i2c: E2 02 01 80 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 38 3B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EE AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 79 8D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B9 7B 02 00 35 04 06 00 00 00 79 [08:34:02]Write i2c OK [08:34:02]MH_I2C_Read... [08:34:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:02]Read from MH i2c: E2 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: E2 03 00 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: E2 03 00 80 03 00 90 00 F7 [08:34:02]RAPDU: 90 00 [08:34:02]wFMCommunicate OK [08:34:02]wFMCommunicate request_size=11 [08:34:02]MH_SAM_APDU [08:34:02]CAPDU: 80 0D 02 02 06 87 9A 89 E7 BA F1 [08:34:02]Write to MH i2c: E2 0E 00 81 03 80 0D 02 02 06 00 87 9A 89 E7 BA F1 00 00 46 [08:34:02]Write i2c OK [08:34:02]MH_I2C_Read... [08:34:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:02]Read from MH i2c: E2 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: E2 03 00 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: E2 03 00 81 03 00 90 00 F8 [08:34:02]RAPDU: 90 00 [08:34:02]wFMCommunicate OK [08:34:02]wFMCommunicate request_size=4 [08:34:02]MH_SAM_APDU [08:34:02]CAPDU: 80 0D 03 02 [08:34:02]Write to MH i2c: E2 08 00 82 03 80 0D 03 02 00 00 00 00 00 [08:34:02]Write i2c OK [08:34:02]MH_I2C_Read... [08:34:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:02]Read from MH i2c: E2 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: E2 0B 00 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: E2 0B 00 82 03 00 85 C8 EA 00 75 8C 20 CE 90 00 27 [08:34:02]RAPDU: 85 C8 EA 00 75 8C 20 CE 90 00 [08:34:02]wFMCommunicate OK [08:34:02]SAM_PROTO_SignData done [08:34:02]FM_MakeSignedData done [08:34:02]CreateOFDProtocolMessage [08:34:02]wFMCommunicate request_size=4 [08:34:02]MH_SAM_APDU [08:34:02]CAPDU: 80 11 00 00 [08:34:02]Write to MH i2c: E2 08 00 83 03 80 11 00 00 00 00 00 00 00 [08:34:02]Write i2c OK [08:34:02]MH_I2C_Read... [08:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:02]Read from MH i2c: E2 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: E2 17 00 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: E2 17 00 83 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 60 [08:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:34:02]wFMCommunicate OK [08:34:02]CreateOFDProtocolMessage done [08:34:02]OFDSenderStorePacket 162745 [08:34:02]StoreOFDPacket docnum=162745 [08:34:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CB 5A 08 01 9E 61 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 38 3B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EE AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 79 8D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B9 7B 02 00 35 04 06 00 87 9A 89 E7 BA F1 85 C8 EA 00 75 8C 20 CE [08:34:02]CheckFolder [08:34:02]dirname=/storage/ofd_packets [08:34:02]CheckFolder done [08:34:02]ProducePacketName [08:34:02]name=ofd_packets/00162745 [08:34:02]NVStorageSaveData ofd_packets/00162745 [08:34:02]File name is /storage/ofd_packets/00162745 [08:34:02]Write 302 bytes [08:34:02]NVStorageSaveData done [08:34:02]OFDSenderStorePacket done [08:34:02]KKMCreateOFDPacket done [08:34:02]NVStorageSaveData kkm_last_timestamp [08:34:02]File name is /storage/kkm_last_timestamp [08:34:02]Write 4 bytes [08:34:02]NVStorageSaveData done [08:34:02]ExternCall_PrintAddStr [08:34:02]wPrintStart [08:34:02]Write to MH i2c: 01 00 00 84 03 87 [08:34:02]Write i2c OK [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: 01 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: 01 07 00 [08:34:02]MH_I2C_Read... [08:34:02]Read from MH i2c: 01 07 00 84 03 00 00 00 00 00 FF 0F 9C [08:34:02]RasterBufferAndPrint [08:34:02]line Счет N : (1)1319333 [08:34:02]line ИНН: 02508201610067 [08:34:02]line Контрольно-Кассовый Чек [08:34:02]line ПРОДАЖА [08:34:02]line ТРК (МРК, ГНК) : 41 [08:34:02]line Товар: 2710194210 [08:34:02]line ДТ(л)-К-5 [08:34:02]line 15.160 * 72.60 [08:34:02]line = 1100.62 [08:34:02]line НДС 12% НСП 1% [08:34:02]line > о реализуемом товаре [08:34:02]line ОКРУГЛЕНИЕ: -0.62 [08:34:02]line ИТОГО: 1100.00 [08:34:02]line Внесено: 1100.00 [08:34:02]line СДАЧА: 0.00 [08:34:02]line НСП 1% : 9.74 [08:34:02]line НДС 12% : 116.88 [08:34:02]line Наличными: 1100.00 [08:34:02]line Безнал.: 0.00 [08:34:02]line Место: АЗС № 140 "Партнер Нефть" [08:34:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:34:02]line СНО: Общий режим [08:34:02]line Чек 57 14.07.2024 08:34 [08:34:02]line Смена: 463 ФФД: 1.0 [08:34:02]line ЗНМ: 0300000129 [08:34:02]line РНМ: 0000000000090858 [08:34:02]line Версия ККМ: 001 [08:34:02]line ФМ: 0000000000874899 [08:34:02]line ФД: 162745 [08:34:02]line ФПД: 149097808378609 [08:34:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083401&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162745&fm=149097808378609&tin=02508201610067®Number=0000000000090858&sum=110000 [08:34:03]OFD Sender: Processing packet 162745 [packets to send 106, broken 105] [08:34:03]ProducePacketName [08:34:03]name=ofd_packets/00162745 [08:34:03]OFD Sender: To server: pG, [08:34:03]CommunicateWithHost lk.salyk.kg:30040 [08:34:03]ConnectInit lk.salyk.kg [08:34:03]written 0, free lines is 4095 [08:34:03]Connected sock=10 [08:34:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CB 5A 08 01 9E 61 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 38 3B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EE AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 79 8D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B9 7B 02 00 35 04 06 00 87 9A 89 E7 BA F1 85 C8 EA 00 75 8C 20 CE [08:34:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F6 95 47 00 71 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B9 7B 02 00 F4 03 04 00 87 39 93 66 B6 04 01 00 00 09 D7 1A 0E 52 7B D2 C7 [08:34:03]CommunicateWithHost err = 0 [08:34:03]CheckOFDResponse [08:34:03]1017 (14) - 77093643461234 [08:34:03]1041 (16) - 0000000000874899 [08:34:03]1040 (4) - 162745 [08:34:03]1012 (4) - 14.07.2024 02:35 [08:34:03]1206 (1) - 0 [08:34:03]OFD Sender: Remove packet 162745 [08:34:03]ProducePacketName [08:34:03]name=ofd_packets/00162745 [08:34:03]NVStorageDeleteData [08:34:03]Write to MH i2c: 01 00 00 AF 03 B2 [08:34:03]Write i2c OK [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: 01 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: 01 07 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: 01 07 00 AF 03 00 00 00 00 00 D7 0C 9C [08:34:03]RasterBufferAndPrint [08:34:03]line [08:34:03]line [08:34:03]line [08:34:03]line [08:34:03]line [08:34:03]written 0, free lines is 3292 [08:34:03]MH_Cut [08:34:03]Write to MH i2c: D1 01 00 B6 03 01 8B [08:34:03]Write i2c OK [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: D1 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: D1 01 00 [08:34:03]MH_I2C_Read... [08:34:03]Read from MH i2c: D1 01 00 B6 03 00 8A [08:34:03]Write to MH i2c: 01 00 00 B7 03 BA [08:34:03]Write i2c OK [08:34:03]MH_I2C_Read... [08:34:04]OFD Sender: No OFD packet to send [08:34:04]*** Cut start [08:34:04]*** Purtial cut [08:34:04]*** Stage 1: CUTSNS_PIN = 1 [08:34:04]Read from MH i2c: 01 [08:34:04]MH_I2C_Read... [08:34:04]*** Stop cut motor [08:34:04]*** Cut end [08:34:04]Read from MH i2c: 01 07 00 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: 01 07 00 B7 03 00 00 00 00 00 FF 0F CF [08:34:04]process_action close_receipt done [08:34:04]requested_data is exist [08:34:04]produce_requested_data [08:34:04]requested_item fm.sn is exist - process it [08:34:04]wFMCommunicate request_size=4 [08:34:04]MH_SAM_APDU [08:34:04]CAPDU: 80 11 00 00 [08:34:04]Write to MH i2c: E2 08 00 B8 03 80 11 00 00 00 00 00 00 35 [08:34:04]Write i2c OK [08:34:04]MH_I2C_Read... [08:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:04]Read from MH i2c: E2 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 17 00 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 17 00 B8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 95 [08:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:34:04]wFMCommunicate OK [08:34:04]requested_item fd.num is exist - process it [08:34:04]SAM_PROTO_GetFieldsCounters [08:34:04]wFMCommunicate request_size=4 [08:34:04]MH_SAM_APDU [08:34:04]CAPDU: 80 13 00 00 [08:34:04]Write to MH i2c: E2 08 00 B9 03 80 13 00 00 00 00 00 00 38 [08:34:04]Write i2c OK [08:34:04]MH_I2C_Read... [08:34:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:04]Read from MH i2c: E2 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 62 00 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 62 00 B9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B9 7B 02 00 0E 04 04 00 CF 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 1C [08:34:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B9 7B 02 00 0E 04 04 00 CF 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 [08:34:04]wFMCommunicate OK [08:34:04]SAM_PROTO_GetFieldsCounters done [08:34:04]requested_item shift.num is exist - process it [08:34:04]requested_item shift.opened is exist - process it [08:34:04]req_shift_opened [08:34:04]FM_GetShiftState [08:34:04]SAM_PROTO_GetShiftState [08:34:04]wFMCommunicate request_size=4 [08:34:04]MH_SAM_APDU [08:34:04]CAPDU: 80 13 01 00 [08:34:04]Write to MH i2c: E2 08 00 BA 03 80 13 01 00 00 00 00 00 3A [08:34:04]Write i2c OK [08:34:04]MH_I2C_Read... [08:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:04]Read from MH i2c: E2 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 0E 00 [08:34:04]MH_I2C_Read... [08:34:04]Read from MH i2c: E2 0E 00 BA 03 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 70 [08:34:04]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:34:04]wFMCommunicate OK [08:34:04]SAM_PROTO_GetShiftState done [08:34:04]FM_GetShiftState done [08:34:04]req_shift_opened done [08:34:04]requested_item shift.open_date is exist - process it [08:34:04]req_shift_open_date [08:34:04]req_shift_open_date done [08:34:04]produce_requested_data done [08:34:04]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162745,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:34:04]process_action_free close_receipt [08:34:04]json_value_free [08:34:04]json_value_free done [08:34:04]process_json_proto returns [08:34:04]Send response to host [08:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162745,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:34:04]free response buf [08:34:04]execute_script done [08:34:04]execute_script returns [08:34:04]free content buf [08:34:04]Sock 9.Close socket [08:34:04]Sock 9.Thread stoped [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:57]accept exits with 7 [08:34:57]New connection [08:34:57]New thread 3066879332 created [08:34:57]Thread 3066735972 joined [08:34:57]Waiting for new connection... [08:34:57] Sock 7.Parse request [08:34:57]Sock 7.Check first char [08:34:57]Sock 7.First char is OK [08:34:57]request: POST /json_proto HTTP/1.0 [08:34:57]Method: POST [08:34:57]URL: /json_proto [08:34:57]Method is POST - this is cgi request [08:34:57]url: /json_proto [08:34:57]query_string will be loaded in cgi processing [08:34:57]execute_cgi json_proto POST (null) [08:34:57]execute_cgi path=json_proto method=POST [08:34:57]POST find Content-Length [08:34:57]Host: 172.17.39.67:8080 [08:34:57]Content-Length: 683 [08:34:57]Content-Type: application/json [08:34:57] [08:34:57]POST finish read [08:34:57]Found Content-Length = 683 [08:34:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 37.710, "sum" : 2500.17, "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" ] } } [08:34:57]execute_script... [08:34: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)1319334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 37.710, "sum" : 2500.17, "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" ] } } [08:34:57]POST & json_proto [08:34:57]process_json_proto [08:34:57]json parsed OK: [08:34:57]protocol is kg_v1.0 [08:34:57]action value=close_receipt [08:34:57]process_action close_receipt [08:34:57]cmd_close_receipt [08:34:57]MH_GetDate [08:34:57]Write to MH i2c: F0 00 00 BB 03 AD [08:34:57]Write i2c OK [08:34:57]MH_I2C_Read... [08:34:57]Read from MH i2c: F0 [08:34:57]MH_I2C_Read... [08:34:57]Read from MH i2c: F0 09 00 [08:34:57]MH_I2C_Read... [08:34:57]Read from MH i2c: F0 09 00 BB 03 00 B1 8D 93 66 B6 85 93 66 21 [08:34:57]GetLastDocTimeStamp 1720946041 [08:34:57]current date 1720946097 [08:34:57]FM_GetShiftState [08:34:57]SAM_PROTO_GetShiftState [08:34:57]wFMCommunicate request_size=4 [08:34:57]MH_SAM_APDU [08:34:57]CAPDU: 80 13 01 00 [08:34:57]Write to MH i2c: E2 08 00 BC 03 80 13 01 00 00 00 00 00 3C [08:34:57]Write i2c OK [08:34:57]MH_I2C_Read... [08:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:57]Read from MH i2c: E2 [08:34:57]MH_I2C_Read... [08:34:57]Read from MH i2c: E2 0E 00 [08:34:57]MH_I2C_Read... [08:34:57]Read from MH i2c: E2 0E 00 BC 03 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 72 [08:34:57]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:34:57]wFMCommunicate OK [08:34:57]SAM_PROTO_GetShiftState done [08:34:57]FM_GetShiftState done [08:34:57]opened in 1720915483 [08:34:57]opened+sec_in_day 1721001883 [08:34:57]quantity*price = 250017 [08:34:57]sum+1 = 250018 [08:34:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 58 14.07.2024 08:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162746 ФПД: 216127575162101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083457&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162746&fm=216127575162101&tin=02508201610067®Number=0000000000090858&sum=250000 [08:34:58]StoreToDocumentArchive [08:34:58]shift 463 fd 162746 [08:34:58]save to /storage/0463/doc_00162746 [08:34:58]save last doc name /storage/0463/doc_00162746 to /storage/kkm_last_doc_name [08:34:58]save OK [08:34:58]Clear old archive folders... [08:34:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:58]tlvbuf is 012F2DD0 [08:34:58]SAM_PROTO_ClearQueue [08:34:58]wFMCommunicate request_size=4 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 09 00 00 [08:34:58]Write to MH i2c: E2 08 00 C9 03 80 09 00 00 00 00 00 00 3E [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 C9 03 00 90 00 40 [08:34:58]RAPDU: 90 00 [08:34:58]wFMCommunicate OK [08:34:58]SAM_PROTO_ClearQueue done [08:34:58]KKMCreateOFDPacket [08:34:58]OFDProtocolAddRootSTLVToBuf [08:34:58]FM_MakeSignedData [08:34:58]FM_MakeSignedData [08:34:58]SAM_PROTO_SignData [08:34:58]wFMCommunicate request_size=4 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 0D 01 02 [08:34:58]Write to MH i2c: E2 08 00 CA 03 80 0D 01 02 00 00 00 00 46 [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 CA 03 00 90 00 41 [08:34:58]RAPDU: 90 00 [08:34:58]wFMCommunicate OK [08:34:58]wFMCommunicate request_size=255 [08:34:58]MH_SAM_APDU [08:34: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 4E 93 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 A1 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 3A 00 00 00 F4 03 04 00 B1 8D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BA 7B 02 00 35 04 06 00 C4 [08:34:58]Write to MH i2c: E2 02 01 CB 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 93 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 A1 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 3A 00 00 00 F4 03 04 00 B1 8D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BA 7B 02 00 35 04 06 00 C4 00 00 81 [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 CB 03 00 90 00 42 [08:34:58]RAPDU: 90 00 [08:34:58]wFMCommunicate OK [08:34:58]wFMCommunicate request_size=10 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 0D 02 02 05 91 1F 57 FC F5 [08:34:58]Write to MH i2c: E2 0D 00 CC 03 80 0D 02 02 05 00 91 1F 57 FC F5 00 00 4B [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 03 00 CC 03 00 90 00 43 [08:34:58]RAPDU: 90 00 [08:34:58]wFMCommunicate OK [08:34:58]wFMCommunicate request_size=4 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 0D 03 02 [08:34:58]Write to MH i2c: E2 08 00 CD 03 80 0D 03 02 00 00 00 00 4B [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 0B 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 0B 00 CD 03 00 AE 9B DA 67 C5 88 9F 63 90 00 25 [08:34:58]RAPDU: AE 9B DA 67 C5 88 9F 63 90 00 [08:34:58]wFMCommunicate OK [08:34:58]SAM_PROTO_SignData done [08:34:58]FM_MakeSignedData done [08:34:58]CreateOFDProtocolMessage [08:34:58]wFMCommunicate request_size=4 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 11 00 00 [08:34:58]Write to MH i2c: E2 08 00 CE 03 80 11 00 00 00 00 00 00 4B [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 17 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 17 00 CE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AB [08:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:34:58]wFMCommunicate OK [08:34:58]CreateOFDProtocolMessage done [08:34:58]OFDSenderStorePacket 162746 [08:34:58]StoreOFDPacket docnum=162746 [08:34:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 10 FE 07 01 1B 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 93 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 A1 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 3A 00 00 00 F4 03 04 00 B1 8D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BA 7B 02 00 35 04 06 00 C4 91 1F 57 FC F5 AE 9B DA 67 C5 88 9F 63 [08:34:58]CheckFolder [08:34:58]dirname=/storage/ofd_packets [08:34:58]CheckFolder done [08:34:58]ProducePacketName [08:34:58]name=ofd_packets/00162746 [08:34:58]NVStorageSaveData ofd_packets/00162746 [08:34:58]File name is /storage/ofd_packets/00162746 [08:34:58]Write 301 bytes [08:34:58]NVStorageSaveData done [08:34:58]OFDSenderStorePacket done [08:34:58]KKMCreateOFDPacket done [08:34:58]NVStorageSaveData kkm_last_timestamp [08:34:58]File name is /storage/kkm_last_timestamp [08:34:58]Write 4 bytes [08:34:58]NVStorageSaveData done [08:34:58]ExternCall_PrintAddStr [08:34:58]wPrintStart [08:34:58]Write to MH i2c: 01 00 00 CF 03 D2 [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: 01 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: 01 07 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: 01 07 00 CF 03 00 00 00 00 00 FF 0F E7 [08:34:58]RasterBufferAndPrint [08:34:58]line Счет N : (1)1319334 [08:34:58]line ИНН: 02508201610067 [08:34:58]line Контрольно-Кассовый Чек [08:34:58]line ПРОДАЖА [08:34:58]line ТРК (МРК, ГНК) : 63 [08:34:58]line Товар: 2710124130 [08:34:58]line Аи-92-К-5 [08:34:58]line 37.710 * 66.30 [08:34:58]line = 2500.17 [08:34:58]line НДС 12% НСП 1% [08:34:58]line > о реализуемом товаре [08:34:58]line ОКРУГЛЕНИЕ: -0.17 [08:34:58]line ИТОГО: 2500.00 [08:34:58]line Внесено: 2500.00 [08:34:58]line СДАЧА: 0.00 [08:34:58]line НСП 1% : 22.12 [08:34:58]line НДС 12% : 265.50 [08:34:58]line Наличными: 2500.00 [08:34:58]line Безнал.: 0.00 [08:34:58]line Место: АЗС № 140 "Партнер Нефть" [08:34:58]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:34:58]line СНО: Общий режим [08:34:58]line Чек 58 14.07.2024 08:34 [08:34:58]line Смена: 463 ФФД: 1.0 [08:34:58]line ЗНМ: 0300000129 [08:34:58]line РНМ: 0000000000090858 [08:34:58]line Версия ККМ: 001 [08:34:58]line ФМ: 0000000000874899 [08:34:58]line ФД: 162746 [08:34:58]line ФПД: 216127575162101 [08:34:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083457&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162746&fm=216127575162101&tin=02508201610067®Number=0000000000090858&sum=250000 [08:34:59]OFD Sender: Processing packet 162746 [packets to send 106, broken 105] [08:34:59]ProducePacketName [08:34:59]name=ofd_packets/00162746 [08:34:59]OFD Sender: To server: pG, [08:34:59]CommunicateWithHost lk.salyk.kg:30040 [08:34:59]ConnectInit lk.salyk.kg [08:34:59]written 0, free lines is 4095 [08:34:59]Connected sock=10 [08:34:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 10 FE 07 01 1B 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 93 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 A1 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 3A 00 00 00 F4 03 04 00 B1 8D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BA 7B 02 00 35 04 06 00 C4 91 1F 57 FC F5 AE 9B DA 67 C5 88 9F 63 [08:34:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 25 75 47 00 82 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BA 7B 02 00 F4 03 04 00 BF 39 93 66 B6 04 01 00 00 F7 BA 07 EF 6A E0 F0 07 [08:34:59]CommunicateWithHost err = 0 [08:34:59]CheckOFDResponse [08:34:59]1017 (14) - 77093643461234 [08:34:59]1041 (16) - 0000000000874899 [08:34:59]1040 (4) - 162746 [08:34:59]1012 (4) - 14.07.2024 02:36 [08:34:59]1206 (1) - 0 [08:34:59]OFD Sender: Remove packet 162746 [08:34:59]ProducePacketName [08:34:59]name=ofd_packets/00162746 [08:34:59]NVStorageDeleteData [08:34:59]Write to MH i2c: 01 00 00 FA 03 FD [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: 01 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: 01 07 00 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: 01 07 00 FA 03 00 00 00 00 00 E7 0C F7 [08:34:59]RasterBufferAndPrint [08:34:59]line [08:34:59]line [08:34:59]line [08:34:59]line [08:34:59]line [08:34:59]written 0, free lines is 3309 [08:34:59]MH_Cut [08:34:59]Write to MH i2c: D1 01 00 01 04 01 D7 [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: D1 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: D1 01 00 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: D1 01 00 01 04 00 D6 [08:34:59]Write to MH i2c: 01 00 00 02 04 06 [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:35:00]OFD Sender: No OFD packet to send [08:35:00]*** Cut start [08:35:00]*** Purtial cut [08:35:00]*** CUTSNS_PIN = 0 [08:35:00]*** Stage 1: CUTSNS_PIN = 1 [08:35:02]Read from MH i2c: 01 [08:35:02]MH_I2C_Read... [08:35:02]*** Stop cut motor [08:35:02]*** Cut end [08:35:02]Read from MH i2c: 01 07 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: 01 07 00 02 04 00 00 00 00 00 FF 0F 1B [08:35:02]process_action close_receipt done [08:35:02]requested_data is exist [08:35:02]produce_requested_data [08:35:02]requested_item fm.sn is exist - process it [08:35:02]wFMCommunicate request_size=4 [08:35:02]MH_SAM_APDU [08:35:02]CAPDU: 80 11 00 00 [08:35:02]Write to MH i2c: E2 08 00 03 04 80 11 00 00 00 00 00 00 81 [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:02]Read from MH i2c: E2 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 17 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 17 00 03 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E1 [08:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:35:02]wFMCommunicate OK [08:35:02]requested_item fd.num is exist - process it [08:35:02]SAM_PROTO_GetFieldsCounters [08:35:02]wFMCommunicate request_size=4 [08:35:02]MH_SAM_APDU [08:35:02]CAPDU: 80 13 00 00 [08:35:02]Write to MH i2c: E2 08 00 04 04 80 13 00 00 00 00 00 00 84 [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:02]Read from MH i2c: E2 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 62 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 62 00 04 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BA 7B 02 00 0E 04 04 00 CF 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 6C [08:35:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BA 7B 02 00 0E 04 04 00 CF 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 [08:35:02]wFMCommunicate OK [08:35:02]SAM_PROTO_GetFieldsCounters done [08:35:02]requested_item shift.num is exist - process it [08:35:02]requested_item shift.opened is exist - process it [08:35:02]req_shift_opened [08:35:02]FM_GetShiftState [08:35:02]SAM_PROTO_GetShiftState [08:35:02]wFMCommunicate request_size=4 [08:35:02]MH_SAM_APDU [08:35:02]CAPDU: 80 13 01 00 [08:35:02]Write to MH i2c: E2 08 00 05 04 80 13 01 00 00 00 00 00 86 [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:02]Read from MH i2c: E2 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 0E 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 0E 00 05 04 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BC [08:35:02]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:35:02]wFMCommunicate OK [08:35:02]SAM_PROTO_GetShiftState done [08:35:02]FM_GetShiftState done [08:35:02]req_shift_opened done [08:35:02]requested_item shift.open_date is exist - process it [08:35:02]req_shift_open_date [08:35:02]req_shift_open_date done [08:35:02]produce_requested_data done [08:35:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162746,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:35:02]process_action_free close_receipt [08:35:02]json_value_free [08:35:02]json_value_free done [08:35:02]process_json_proto returns [08:35:02]Send response to host [08:35:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162746,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:35:02]free response buf [08:35:02]execute_script done [08:35:02]execute_script returns [08:35:02]free content buf [08:35:02]Sock 7.Close socket [08:35:02]Sock 7.Thread stoped [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:13]accept exits with 9 [08:39:13]New connection [08:39:13]New thread 3066735972 created [08:39:13]Thread 3066879332 joined [08:39:13]Waiting for new connection... [08:39:13] Sock 9.Parse request [08:39:13]Sock 9.Check first char [08:39:13]Sock 9.First char is OK [08:39:13]request: POST /json_proto HTTP/1.0 [08:39:13]Method: POST [08:39:13]URL: /json_proto [08:39:13]Method is POST - this is cgi request [08:39:13]url: /json_proto [08:39:13]query_string will be loaded in cgi processing [08:39:13]execute_cgi json_proto POST (null) [08:39:13]execute_cgi path=json_proto method=POST [08:39:13]POST find Content-Length [08:39:13]Host: 172.17.39.67:8080 [08:39:13]Content-Length: 683 [08:39:13]Content-Type: application/json [08:39:13] [08:39:13]POST finish read [08:39:13]Found Content-Length = 683 [08:39:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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" ] } } [08:39:13]execute_script... [08:39:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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" ] } } [08:39:13]POST & json_proto [08:39:13]process_json_proto [08:39:13]json parsed OK: [08:39:13]protocol is kg_v1.0 [08:39:13]action value=close_receipt [08:39:13]process_action close_receipt [08:39:13]cmd_close_receipt [08:39:13]MH_GetDate [08:39:13]Write to MH i2c: F0 00 00 06 04 F9 [08:39:13]Write i2c OK [08:39:13]MH_I2C_Read... [08:39:13]Read from MH i2c: F0 [08:39:13]MH_I2C_Read... [08:39:13]Read from MH i2c: F0 09 00 [08:39:13]MH_I2C_Read... [08:39:13]Read from MH i2c: F0 09 00 06 04 00 B1 8E 93 66 B6 85 93 66 6E [08:39:13]GetLastDocTimeStamp 1720946097 [08:39:13]current date 1720946353 [08:39:13]FM_GetShiftState [08:39:13]SAM_PROTO_GetShiftState [08:39:13]wFMCommunicate request_size=4 [08:39:13]MH_SAM_APDU [08:39:13]CAPDU: 80 13 01 00 [08:39:13]Write to MH i2c: E2 08 00 07 04 80 13 01 00 00 00 00 00 88 [08:39:13]Write i2c OK [08:39:13]MH_I2C_Read... [08:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:13]Read from MH i2c: E2 [08:39:13]MH_I2C_Read... [08:39:13]Read from MH i2c: E2 0E 00 [08:39:13]MH_I2C_Read... [08:39:13]Read from MH i2c: E2 0E 00 07 04 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BE [08:39:13]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:39:13]wFMCommunicate OK [08:39:13]SAM_PROTO_GetShiftState done [08:39:13]FM_GetShiftState done [08:39:13]opened in 1720915483 [08:39:13]opened+sec_in_day 1721001883 [08:39:13]quantity*price = 150064 [08:39:13]sum+1 = 150066 [08:39:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 59 14.07.2024 08:39 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162747 ФПД: 191564669292129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083913&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162747&fm=191564669292129&tin=02508201610067®Number=0000000000090858&sum=150000 [08:39:14]StoreToDocumentArchive [08:39:14]shift 463 fd 162747 [08:39:14]save to /storage/0463/doc_00162747 [08:39:14]save last doc name /storage/0463/doc_00162747 to /storage/kkm_last_doc_name [08:39:14]save OK [08:39:14]Clear old archive folders... [08:39:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:39:14]tlvbuf is 012E9290 [08:39:14]SAM_PROTO_ClearQueue [08:39:14]wFMCommunicate request_size=4 [08:39:14]MH_SAM_APDU [08:39:14]CAPDU: 80 09 00 00 [08:39:14]Write to MH i2c: E2 08 00 14 04 80 09 00 00 00 00 00 00 8A [08:39:14]Write i2c OK [08:39:14]MH_I2C_Read... [08:39:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:14]Read from MH i2c: E2 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: E2 03 00 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: E2 03 00 14 04 00 90 00 8C [08:39:14]RAPDU: 90 00 [08:39:14]wFMCommunicate OK [08:39:14]SAM_PROTO_ClearQueue done [08:39:14]KKMCreateOFDPacket [08:39:14]OFDProtocolAddRootSTLVToBuf [08:39:14]FM_MakeSignedData [08:39:14]FM_MakeSignedData [08:39:14]SAM_PROTO_SignData [08:39:14]wFMCommunicate request_size=4 [08:39:14]MH_SAM_APDU [08:39:14]CAPDU: 80 0D 01 02 [08:39:14]Write to MH i2c: E2 08 00 15 04 80 0D 01 02 00 00 00 00 92 [08:39:14]Write i2c OK [08:39:14]MH_I2C_Read... [08:39:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:14]Read from MH i2c: E2 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: E2 03 00 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: E2 03 00 15 04 00 90 00 8D [08:39:14]RAPDU: 90 00 [08:39:14]wFMCommunicate OK [08:39:14]wFMCommunicate request_size=255 [08:39:14]MH_SAM_APDU [08:39: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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 40 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 3B 00 00 00 F4 03 04 00 B1 8E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BB 7B 02 00 35 04 06 00 AE [08:39:14]Write to MH i2c: E2 02 01 16 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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 40 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 3B 00 00 00 F4 03 04 00 B1 8E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BB 7B 02 00 35 04 06 00 AE 00 00 C6 [08:39:14]Write i2c OK [08:39:14]MH_I2C_Read... [08:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:14]Read from MH i2c: E2 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: E2 03 00 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: E2 03 00 16 04 00 90 00 8E [08:39:14]RAPDU: 90 00 [08:39:14]wFMCommunicate OK [08:39:14]wFMCommunicate request_size=10 [08:39:14]MH_SAM_APDU [08:39:14]CAPDU: 80 0D 02 02 05 3A 20 10 8E 61 [08:39:14]Write to MH i2c: E2 0D 00 17 04 80 0D 02 02 05 00 3A 20 10 8E 61 00 00 F8 [08:39:14]Write i2c OK [08:39:14]MH_I2C_Read... [08:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:14]Read from MH i2c: E2 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: E2 03 00 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: E2 03 00 17 04 00 90 00 8F [08:39:14]RAPDU: 90 00 [08:39:14]wFMCommunicate OK [08:39:14]wFMCommunicate request_size=4 [08:39:14]MH_SAM_APDU [08:39:14]CAPDU: 80 0D 03 02 [08:39:14]Write to MH i2c: E2 08 00 18 04 80 0D 03 02 00 00 00 00 97 [08:39:14]Write i2c OK [08:39:14]MH_I2C_Read... [08:39:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:14]Read from MH i2c: E2 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: E2 0B 00 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: E2 0B 00 18 04 00 B4 7C 7C 5B C3 7F DA 06 90 00 C1 [08:39:14]RAPDU: B4 7C 7C 5B C3 7F DA 06 90 00 [08:39:14]wFMCommunicate OK [08:39:14]SAM_PROTO_SignData done [08:39:14]FM_MakeSignedData done [08:39:14]CreateOFDProtocolMessage [08:39:14]wFMCommunicate request_size=4 [08:39:14]MH_SAM_APDU [08:39:14]CAPDU: 80 11 00 00 [08:39:14]Write to MH i2c: E2 08 00 19 04 80 11 00 00 00 00 00 00 97 [08:39:14]Write i2c OK [08:39:14]MH_I2C_Read... [08:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:14]Read from MH i2c: E2 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: E2 17 00 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: E2 17 00 19 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F7 [08:39:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:39:14]wFMCommunicate OK [08:39:14]CreateOFDProtocolMessage done [08:39:14]OFDSenderStorePacket 162747 [08:39:14]StoreOFDPacket docnum=162747 [08:39:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 68 C4 07 01 DA C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 40 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 3B 00 00 00 F4 03 04 00 B1 8E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BB 7B 02 00 35 04 06 00 AE 3A 20 10 8E 61 B4 7C 7C 5B C3 7F DA 06 [08:39:14]CheckFolder [08:39:14]dirname=/storage/ofd_packets [08:39:14]CheckFolder done [08:39:14]ProducePacketName [08:39:14]name=ofd_packets/00162747 [08:39:14]NVStorageSaveData ofd_packets/00162747 [08:39:14]File name is /storage/ofd_packets/00162747 [08:39:14]Write 301 bytes [08:39:14]NVStorageSaveData done [08:39:14]OFDSenderStorePacket done [08:39:14]KKMCreateOFDPacket done [08:39:14]NVStorageSaveData kkm_last_timestamp [08:39:14]File name is /storage/kkm_last_timestamp [08:39:14]Write 4 bytes [08:39:14]NVStorageSaveData done [08:39:14]ExternCall_PrintAddStr [08:39:14]wPrintStart [08:39:14]Write to MH i2c: 01 00 00 1A 04 1E [08:39:14]Write i2c OK [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: 01 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: 01 07 00 [08:39:14]MH_I2C_Read... [08:39:14]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 FF 0F 33 [08:39:14]RasterBufferAndPrint [08:39:14]line Счет N : (1)1319336 [08:39:14]line ИНН: 02508201610067 [08:39:14]line Контрольно-Кассовый Чек [08:39:14]line ПРОДАЖА [08:39:14]line ТРК (МРК, ГНК) : 44 [08:39:14]line Товар: 2710124500 [08:39:14]line Аи-95-К-5 [08:39:14]line 20.170 * 74.40 [08:39:14]line = 1500.65 [08:39:14]line НДС 12% НСП 1% [08:39:14]line > о реализуемом товаре [08:39:14]line ОКРУГЛЕНИЕ: -0.65 [08:39:14]line ИТОГО: 1500.00 [08:39:14]line Внесено: 1500.00 [08:39:14]line СДАЧА: 0.00 [08:39:14]line НСП 1% : 13.28 [08:39:14]line НДС 12% : 159.36 [08:39:14]line Наличными: 1500.00 [08:39:14]line Безнал.: 0.00 [08:39:14]line Место: АЗС № 140 "Партнер Нефть" [08:39:14]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:39:14]line СНО: Общий режим [08:39:14]line Чек 59 14.07.2024 08:39 [08:39:14]line Смена: 463 ФФД: 1.0 [08:39:14]line ЗНМ: 0300000129 [08:39:14]line РНМ: 0000000000090858 [08:39:14]line Версия ККМ: 001 [08:39:14]line ФМ: 0000000000874899 [08:39:14]line ФД: 162747 [08:39:14]line ФПД: 191564669292129 [08:39:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083913&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162747&fm=191564669292129&tin=02508201610067®Number=0000000000090858&sum=150000 [08:39:15]OFD Sender: Processing packet 162747 [packets to send 106, broken 105] [08:39:15]ProducePacketName [08:39:15]name=ofd_packets/00162747 [08:39:15]OFD Sender: To server: pG, [08:39:15]CommunicateWithHost lk.salyk.kg:30040 [08:39:15]ConnectInit lk.salyk.kg [08:39:15]written 0, free lines is 4095 [08:39:15]Connected sock=10 [08:39:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 68 C4 07 01 DA C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 40 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 3B 00 00 00 F4 03 04 00 B1 8E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BB 7B 02 00 35 04 06 00 AE 3A 20 10 8E 61 B4 7C 7C 5B C3 7F DA 06 [08:39:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 48 FA 47 00 67 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BB 7B 02 00 F4 03 04 00 BF 3A 93 66 B6 04 01 00 00 52 DF 90 2B AE F5 28 46 [08:39:15]CommunicateWithHost err = 0 [08:39:15]CheckOFDResponse [08:39:15]1017 (14) - 77093643461234 [08:39:15]1041 (16) - 0000000000874899 [08:39:15]1040 (4) - 162747 [08:39:15]1012 (4) - 14.07.2024 02:41 [08:39:15]1206 (1) - 0 [08:39:15]OFD Sender: Remove packet 162747 [08:39:15]ProducePacketName [08:39:15]name=ofd_packets/00162747 [08:39:15]NVStorageDeleteData [08:39:15]Write to MH i2c: 01 00 00 45 04 49 [08:39:15]Write i2c OK [08:39:15]MH_I2C_Read... [08:39:15]Read from MH i2c: 01 [08:39:15]MH_I2C_Read... [08:39:15]Read from MH i2c: 01 07 00 [08:39:15]MH_I2C_Read... [08:39:15]Read from MH i2c: 01 07 00 45 04 00 00 00 00 00 E0 0C 3C [08:39:15]RasterBufferAndPrint [08:39:15]line [08:39:15]line [08:39:15]line [08:39:15]line [08:39:15]line [08:39:15]written 0, free lines is 3302 [08:39:15]MH_Cut [08:39:15]Write to MH i2c: D1 01 00 4C 04 01 22 [08:39:15]Write i2c OK [08:39:15]MH_I2C_Read... [08:39:15]Read from MH i2c: D1 [08:39:15]MH_I2C_Read... [08:39:15]Read from MH i2c: D1 01 00 [08:39:15]MH_I2C_Read... [08:39:15]Read from MH i2c: D1 01 00 4C 04 00 21 [08:39:15]Write to MH i2c: 01 00 00 4D 04 51 [08:39:15]Write i2c OK [08:39:15]MH_I2C_Read... [08:39:16]OFD Sender: No OFD packet to send [08:39:16]*** Cut start [08:39:16]*** Purtial cut [08:39:16]*** Stage 1: CUTSNS_PIN = 1 [08:39:16]Read from MH i2c: 01 [08:39:16]MH_I2C_Read... [08:39:16]*** Stop cut motor [08:39:16]*** Cut end [08:39:16]Read from MH i2c: 01 07 00 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: 01 07 00 4D 04 00 00 00 00 00 FF 0F 66 [08:39:16]process_action close_receipt done [08:39:16]requested_data is exist [08:39:16]produce_requested_data [08:39:16]requested_item fm.sn is exist - process it [08:39:16]wFMCommunicate request_size=4 [08:39:16]MH_SAM_APDU [08:39:16]CAPDU: 80 11 00 00 [08:39:16]Write to MH i2c: E2 08 00 4E 04 80 11 00 00 00 00 00 00 CC [08:39:16]Write i2c OK [08:39:16]MH_I2C_Read... [08:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:16]Read from MH i2c: E2 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 17 00 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 17 00 4E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2C [08:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:39:16]wFMCommunicate OK [08:39:16]requested_item fd.num is exist - process it [08:39:16]SAM_PROTO_GetFieldsCounters [08:39:16]wFMCommunicate request_size=4 [08:39:16]MH_SAM_APDU [08:39:16]CAPDU: 80 13 00 00 [08:39:16]Write to MH i2c: E2 08 00 4F 04 80 13 00 00 00 00 00 00 CF [08:39:16]Write i2c OK [08:39:16]MH_I2C_Read... [08:39:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:16]Read from MH i2c: E2 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 62 00 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 62 00 4F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BB 7B 02 00 0E 04 04 00 CF 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 BB [08:39:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BB 7B 02 00 0E 04 04 00 CF 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 [08:39:16]wFMCommunicate OK [08:39:16]SAM_PROTO_GetFieldsCounters done [08:39:16]requested_item shift.num is exist - process it [08:39:16]requested_item shift.opened is exist - process it [08:39:16]req_shift_opened [08:39:16]FM_GetShiftState [08:39:16]SAM_PROTO_GetShiftState [08:39:16]wFMCommunicate request_size=4 [08:39:16]MH_SAM_APDU [08:39:16]CAPDU: 80 13 01 00 [08:39:16]Write to MH i2c: E2 08 00 50 04 80 13 01 00 00 00 00 00 D1 [08:39:16]Write i2c OK [08:39:16]MH_I2C_Read... [08:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:16]Read from MH i2c: E2 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 0E 00 [08:39:16]MH_I2C_Read... [08:39:16]Read from MH i2c: E2 0E 00 50 04 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 07 [08:39:16]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:39:16]wFMCommunicate OK [08:39:16]SAM_PROTO_GetShiftState done [08:39:16]FM_GetShiftState done [08:39:16]req_shift_opened done [08:39:16]requested_item shift.open_date is exist - process it [08:39:16]req_shift_open_date [08:39:16]req_shift_open_date done [08:39:16]produce_requested_data done [08:39:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162747,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:39:16]process_action_free close_receipt [08:39:16]json_value_free [08:39:16]json_value_free done [08:39:16]process_json_proto returns [08:39:16]Send response to host [08:39:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162747,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:39:16]free response buf [08:39:16]execute_script done [08:39:16]execute_script returns [08:39:16]free content buf [08:39:16]Sock 9.Close socket [08:39:16]Sock 9.Thread stoped [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:35]accept exits with 7 [08:39:35]New connection [08:39:35]New thread 3066879332 created [08:39:35]Thread 3066735972 joined [08:39:35]Waiting for new connection... [08:39:35] Sock 7.Parse request [08:39:35]Sock 7.Check first char [08:39:35]Sock 7.First char is OK [08:39:35]request: POST /json_proto HTTP/1.0 [08:39:35]Method: POST [08:39:35]URL: /json_proto [08:39:35]Method is POST - this is cgi request [08:39:35]url: /json_proto [08:39:35]query_string will be loaded in cgi processing [08:39:35]execute_cgi json_proto POST (null) [08:39:35]execute_cgi path=json_proto method=POST [08:39:35]POST find Content-Length [08:39:35]Host: 172.17.39.67:8080 [08:39:35]Content-Length: 849 [08:39:35]Content-Type: application/json [08:39:35] [08:39:35]POST finish read [08:39:35]Found Content-Length = 849 [08:39:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:35]execute_script... [08:39: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)1319335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:35]POST & json_proto [08:39:35]process_json_proto [08:39:35]json parsed OK: [08:39:35]protocol is kg_v1.0 [08:39:35]action value=close_receipt [08:39:35]process_action close_receipt [08:39:35]cmd_close_receipt [08:39:35]MH_GetDate [08:39:35]Write to MH i2c: F0 00 00 51 04 44 [08:39:35]Write i2c OK [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: F0 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: F0 09 00 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: F0 09 00 51 04 00 C8 8E 93 66 B6 85 93 66 D0 [08:39:35]GetLastDocTimeStamp 1720946353 [08:39:35]current date 1720946376 [08:39:35]FM_GetShiftState [08:39:35]SAM_PROTO_GetShiftState [08:39:35]wFMCommunicate request_size=4 [08:39:35]MH_SAM_APDU [08:39:35]CAPDU: 80 13 01 00 [08:39:35]Write to MH i2c: E2 08 00 52 04 80 13 01 00 00 00 00 00 D3 [08:39:35]Write i2c OK [08:39:35]MH_I2C_Read... [08:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:35]Read from MH i2c: E2 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 0E 00 [08:39:35]MH_I2C_Read... [08:39:35]Read from MH i2c: E2 0E 00 52 04 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 09 [08:39:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:39:35]wFMCommunicate OK [08:39:35]SAM_PROTO_GetShiftState done [08:39:35]FM_GetShiftState done [08:39:35]opened in 1720915483 [08:39:35]opened+sec_in_day 1721001883 [08:39:35]quantity*price = 300055 [08:39:35]sum+1 = 300057 [08:39:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 60 14.07.2024 08:39 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162748 ФПД: 19694520136653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083936&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162748&fm=19694520136653&tin=02508201610067®Number=0000000000090858&sum=300056 [08:39:37]StoreToDocumentArchive [08:39:37]shift 463 fd 162748 [08:39:37]save to /storage/0463/doc_00162748 [08:39:37]save last doc name /storage/0463/doc_00162748 to /storage/kkm_last_doc_name [08:39:37]save OK [08:39:37]Clear old archive folders... [08:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:39:37]tlvbuf is 01344140 [08:39:37]SAM_PROTO_ClearQueue [08:39:37]wFMCommunicate request_size=4 [08:39:37]MH_SAM_APDU [08:39:37]CAPDU: 80 09 00 00 [08:39:37]Write to MH i2c: E2 08 00 5F 04 80 09 00 00 00 00 00 00 D5 [08:39:37]Write i2c OK [08:39:37]MH_I2C_Read... [08:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:37]Read from MH i2c: E2 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: E2 03 00 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: E2 03 00 5F 04 00 90 00 D7 [08:39:37]RAPDU: 90 00 [08:39:37]wFMCommunicate OK [08:39:37]SAM_PROTO_ClearQueue done [08:39:37]KKMCreateOFDPacket [08:39:37]OFDProtocolAddRootSTLVToBuf [08:39:37]FM_MakeSignedData [08:39:37]FM_MakeSignedData [08:39:37]SAM_PROTO_SignData [08:39:37]wFMCommunicate request_size=4 [08:39:37]MH_SAM_APDU [08:39:37]CAPDU: 80 0D 01 02 [08:39:37]Write to MH i2c: E2 08 00 60 04 80 0D 01 02 00 00 00 00 DD [08:39:37]Write i2c OK [08:39:37]MH_I2C_Read... [08:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:37]Read from MH i2c: E2 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: E2 03 00 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: E2 03 00 60 04 00 90 00 D8 [08:39:37]RAPDU: 90 00 [08:39:37]wFMCommunicate OK [08:39:37]wFMCommunicate request_size=255 [08:39:37]MH_SAM_APDU [08:39:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C8 8E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BC 7B 02 00 35 04 06 00 [08:39:37]Write to MH i2c: E2 02 01 61 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C8 8E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BC 7B 02 00 35 04 06 00 00 00 C0 [08:39:37]Write i2c OK [08:39:37]MH_I2C_Read... [08:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:37]Read from MH i2c: E2 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: E2 03 00 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: E2 03 00 61 04 00 90 00 D9 [08:39:37]RAPDU: 90 00 [08:39:37]wFMCommunicate OK [08:39:37]wFMCommunicate request_size=11 [08:39:37]MH_SAM_APDU [08:39:37]CAPDU: 80 0D 02 02 06 11 E9 7C E0 73 CD [08:39:37]Write to MH i2c: E2 0E 00 62 04 80 0D 02 02 06 00 11 E9 7C E0 73 CD 00 00 82 [08:39:37]Write i2c OK [08:39:37]MH_I2C_Read... [08:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:37]Read from MH i2c: E2 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: E2 03 00 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: E2 03 00 62 04 00 90 00 DA [08:39:37]RAPDU: 90 00 [08:39:37]wFMCommunicate OK [08:39:37]wFMCommunicate request_size=4 [08:39:37]MH_SAM_APDU [08:39:37]CAPDU: 80 0D 03 02 [08:39:37]Write to MH i2c: E2 08 00 63 04 80 0D 03 02 00 00 00 00 E2 [08:39:37]Write i2c OK [08:39:37]MH_I2C_Read... [08:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:37]Read from MH i2c: E2 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: E2 0B 00 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: E2 0B 00 63 04 00 ED 65 83 3E BF DA 47 9F 90 00 75 [08:39:37]RAPDU: ED 65 83 3E BF DA 47 9F 90 00 [08:39:37]wFMCommunicate OK [08:39:37]SAM_PROTO_SignData done [08:39:37]FM_MakeSignedData done [08:39:37]CreateOFDProtocolMessage [08:39:37]wFMCommunicate request_size=4 [08:39:37]MH_SAM_APDU [08:39:37]CAPDU: 80 11 00 00 [08:39:37]Write to MH i2c: E2 08 00 64 04 80 11 00 00 00 00 00 00 E2 [08:39:37]Write i2c OK [08:39:37]MH_I2C_Read... [08:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:37]Read from MH i2c: E2 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: E2 17 00 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: E2 17 00 64 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 42 [08:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:39:37]wFMCommunicate OK [08:39:37]CreateOFDProtocolMessage done [08:39:37]OFDSenderStorePacket 162748 [08:39:37]StoreOFDPacket docnum=162748 [08:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E0 60 08 01 A0 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C8 8E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BC 7B 02 00 35 04 06 00 11 E9 7C E0 73 CD ED 65 83 3E BF DA 47 9F [08:39:37]CheckFolder [08:39:37]dirname=/storage/ofd_packets [08:39:37]CheckFolder done [08:39:37]ProducePacketName [08:39:37]name=ofd_packets/00162748 [08:39:37]NVStorageSaveData ofd_packets/00162748 [08:39:37]File name is /storage/ofd_packets/00162748 [08:39:37]Write 302 bytes [08:39:37]NVStorageSaveData done [08:39:37]OFDSenderStorePacket done [08:39:37]KKMCreateOFDPacket done [08:39:37]NVStorageSaveData kkm_last_timestamp [08:39:37]File name is /storage/kkm_last_timestamp [08:39:37]Write 4 bytes [08:39:37]NVStorageSaveData done [08:39:37]ExternCall_PrintAddStr [08:39:37]wPrintStart [08:39:37]Write to MH i2c: 01 00 00 65 04 69 [08:39:37]Write i2c OK [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: 01 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: 01 07 00 [08:39:37]MH_I2C_Read... [08:39:37]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 FF 0F 7E [08:39:37]RasterBufferAndPrint [08:39:37]line Счет N : (1)1319335 [08:39:37]line ИНН: 02508201610067 [08:39:37]line Контрольно-Кассовый Чек [08:39:37]line ПРОДАЖА [08:39:37]line ТРК (МРК, ГНК) : 11 [08:39:37]line Товар: 2710194210 [08:39:37]line ДТ(л)-К-5 [08:39:37]line 41.330 * 72.60 [08:39:37]line = 3000.56 [08:39:37]line НДС 12% НСП 1% [08:39:37]line > о реализуемом товаре [08:39:37]line ИТОГО: 3000.56 [08:39:37]line НСП 1% : 26.55 [08:39:37]line НДС 12% : 318.64 [08:39:37]line Наличными: 0.00 [08:39:37]line Безнал.: 3000.56 [08:39:37]line Место: АЗС № 140 "Партнер Нефть" [08:39:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:39:37]line СНО: Общий режим [08:39:37]line Чек 60 14.07.2024 08:39 [08:39:37]line Смена: 463 ФФД: 1.0 [08:39:37]line ЗНМ: 0300000129 [08:39:37]line РНМ: 0000000000090858 [08:39:37]line Версия ККМ: 001 [08:39:37]line Платежная система: АКБ Кыргызстан [08:39:37]line ФМ: 0000000000874899 [08:39:37]line ФД: 162748 [08:39:37]line ФПД: 19694520136653 [08:39:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T083936&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162748&fm=19694520136653&tin=02508201610067®Number=0000000000090858&sum=300056 [08:39:37]OFD Sender: Processing packet 162748 [packets to send 106, broken 105] [08:39:37]ProducePacketName [08:39:37]name=ofd_packets/00162748 [08:39:37]OFD Sender: To server: pG, [08:39:37]CommunicateWithHost lk.salyk.kg:30040 [08:39:37]ConnectInit lk.salyk.kg [08:39:37]written 0, free lines is 4095 [08:39:38]Connected sock=10 [08:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E0 60 08 01 A0 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C8 8E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BC 7B 02 00 35 04 06 00 11 E9 7C E0 73 CD ED 65 83 3E BF DA 47 9F [08:39:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AA AC 47 00 0D 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BC 7B 02 00 F4 03 04 00 D6 3A 93 66 B6 04 01 00 00 E4 EB 39 3D 00 8D C3 37 [08:39:38]CommunicateWithHost err = 0 [08:39:38]CheckOFDResponse [08:39:38]1017 (14) - 77093643461234 [08:39:38]1041 (16) - 0000000000874899 [08:39:38]1040 (4) - 162748 [08:39:38]1012 (4) - 14.07.2024 02:41 [08:39:38]1206 (1) - 0 [08:39:38]OFD Sender: Remove packet 162748 [08:39:38]ProducePacketName [08:39:38]name=ofd_packets/00162748 [08:39:38]NVStorageDeleteData [08:39:38]Write to MH i2c: 01 00 00 8F 04 93 [08:39:38]Write i2c OK [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: 01 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: 01 07 00 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: 01 07 00 8F 04 00 00 00 00 00 F3 0C 99 [08:39:38]RasterBufferAndPrint [08:39:38]line [08:39:38]line [08:39:38]line [08:39:38]line [08:39:38]line [08:39:38]written 0, free lines is 3324 [08:39:38]MH_Cut [08:39:38]Write to MH i2c: D1 01 00 96 04 01 6C [08:39:38]Write i2c OK [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: D1 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: D1 01 00 [08:39:38]MH_I2C_Read... [08:39:38]Read from MH i2c: D1 01 00 96 04 00 6B [08:39:38]Write to MH i2c: 01 00 00 97 04 9B [08:39:38]Write i2c OK [08:39:38]MH_I2C_Read... [08:39:38]OFD Sender: No OFD packet to send [08:39:39]*** Cut start [08:39:39]*** Purtial cut [08:39:39]*** CUTSNS_PIN = 0 [08:39:39]*** Stage 1: CUTSNS_PIN = 1 [08:39:41]Read from MH i2c: 01 [08:39:41]MH_I2C_Read... [08:39:41]*** Stop cut motor [08:39:41]*** Cut end [08:39:41]Read from MH i2c: 01 07 00 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: 01 07 00 97 04 00 00 00 00 00 FF 0F B0 [08:39:41]process_action close_receipt done [08:39:41]requested_data is exist [08:39:41]produce_requested_data [08:39:41]requested_item fm.sn is exist - process it [08:39:41]wFMCommunicate request_size=4 [08:39:41]MH_SAM_APDU [08:39:41]CAPDU: 80 11 00 00 [08:39:41]Write to MH i2c: E2 08 00 98 04 80 11 00 00 00 00 00 00 16 [08:39:41]Write i2c OK [08:39:41]MH_I2C_Read... [08:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:41]Read from MH i2c: E2 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: E2 17 00 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: E2 17 00 98 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 76 [08:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:39:41]wFMCommunicate OK [08:39:41]requested_item fd.num is exist - process it [08:39:41]SAM_PROTO_GetFieldsCounters [08:39:41]wFMCommunicate request_size=4 [08:39:41]MH_SAM_APDU [08:39:41]CAPDU: 80 13 00 00 [08:39:41]Write to MH i2c: E2 08 00 99 04 80 13 00 00 00 00 00 00 19 [08:39:41]Write i2c OK [08:39:41]MH_I2C_Read... [08:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:41]Read from MH i2c: E2 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: E2 62 00 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: E2 62 00 99 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BC 7B 02 00 0E 04 04 00 CF 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 09 [08:39:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BC 7B 02 00 0E 04 04 00 CF 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 [08:39:41]wFMCommunicate OK [08:39:41]SAM_PROTO_GetFieldsCounters done [08:39:41]requested_item shift.num is exist - process it [08:39:41]requested_item shift.opened is exist - process it [08:39:41]req_shift_opened [08:39:41]FM_GetShiftState [08:39:41]SAM_PROTO_GetShiftState [08:39:41]wFMCommunicate request_size=4 [08:39:41]MH_SAM_APDU [08:39:41]CAPDU: 80 13 01 00 [08:39:41]Write to MH i2c: E2 08 00 9A 04 80 13 01 00 00 00 00 00 1B [08:39:41]Write i2c OK [08:39:41]MH_I2C_Read... [08:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:41]Read from MH i2c: E2 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: E2 0E 00 [08:39:41]MH_I2C_Read... [08:39:41]Read from MH i2c: E2 0E 00 9A 04 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 51 [08:39:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:39:41]wFMCommunicate OK [08:39:41]SAM_PROTO_GetShiftState done [08:39:41]FM_GetShiftState done [08:39:41]req_shift_opened done [08:39:41]requested_item shift.open_date is exist - process it [08:39:41]req_shift_open_date [08:39:41]req_shift_open_date done [08:39:41]produce_requested_data done [08:39:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162748,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:39:41]process_action_free close_receipt [08:39:41]json_value_free [08:39:41]json_value_free done [08:39:41]process_json_proto returns [08:39:41]Send response to host [08:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162748,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:39:41]free response buf [08:39:41]execute_script done [08:39:41]execute_script returns [08:39:41]free content buf [08:39:41]Sock 7.Close socket [08:39:41]Sock 7.Thread stoped [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:22]accept exits with 9 [08:47:22]New connection [08:47:22]New thread 3066735972 created [08:47:22]Thread 3066879332 joined [08:47:22]Waiting for new connection... [08:47:22] Sock 9.Parse request [08:47:22]Sock 9.Check first char [08:47:22]Sock 9.First char is OK [08:47:22]request: POST /json_proto HTTP/1.0 [08:47:22]Method: POST [08:47:22]URL: /json_proto [08:47:22]Method is POST - this is cgi request [08:47:22]url: /json_proto [08:47:22]query_string will be loaded in cgi processing [08:47:22]execute_cgi json_proto POST (null) [08:47:22]execute_cgi path=json_proto method=POST [08:47:22]POST find Content-Length [08:47:22]Host: 172.17.39.67:8080 [08:47:22]Content-Length: 678 [08:47:22]Content-Type: application/json [08:47:22] [08:47:22]POST finish read [08:47:22]Found Content-Length = 678 [08:47:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.020, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:22]execute_script... [08:47: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)1319337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.020, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:22]POST & json_proto [08:47:22]process_json_proto [08:47:22]json parsed OK: [08:47:22]protocol is kg_v1.0 [08:47:22]action value=close_receipt [08:47:22]process_action close_receipt [08:47:22]cmd_close_receipt [08:47:22]MH_GetDate [08:47:22]Write to MH i2c: F0 00 00 9B 04 8E [08:47:22]Write i2c OK [08:47:22]MH_I2C_Read... [08:47:22]Read from MH i2c: F0 [08:47:22]MH_I2C_Read... [08:47:22]Read from MH i2c: F0 09 00 [08:47:22]MH_I2C_Read... [08:47:22]Read from MH i2c: F0 09 00 9B 04 00 9A 90 93 66 B6 85 93 66 EE [08:47:22]GetLastDocTimeStamp 1720946376 [08:47:22]current date 1720946842 [08:47:22]FM_GetShiftState [08:47:22]SAM_PROTO_GetShiftState [08:47:22]wFMCommunicate request_size=4 [08:47:22]MH_SAM_APDU [08:47:22]CAPDU: 80 13 01 00 [08:47:22]Write to MH i2c: E2 08 00 9C 04 80 13 01 00 00 00 00 00 1D [08:47:22]Write i2c OK [08:47:22]MH_I2C_Read... [08:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:22]Read from MH i2c: E2 [08:47:22]MH_I2C_Read... [08:47:22]Read from MH i2c: E2 0E 00 [08:47:22]MH_I2C_Read... [08:47:22]Read from MH i2c: E2 0E 00 9C 04 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 53 [08:47:22]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:47:22]wFMCommunicate OK [08:47:22]SAM_PROTO_GetShiftState done [08:47:22]FM_GetShiftState done [08:47:22]opened in 1720915483 [08:47:22]opened+sec_in_day 1721001883 [08:47:22]quantity*price = 20022 [08:47:22]sum+1 = 20024 [08:47:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 61 14.07.2024 08:47 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162749 ФПД: 96545451252156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T084722&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162749&fm=96545451252156&tin=02508201610067®Number=0000000000090858&sum=20000 [08:47:23]StoreToDocumentArchive [08:47:23]shift 463 fd 162749 [08:47:23]save to /storage/0463/doc_00162749 [08:47:23]save last doc name /storage/0463/doc_00162749 to /storage/kkm_last_doc_name [08:47:23]save OK [08:47:23]Clear old archive folders... [08:47:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:47:23]tlvbuf is 01345AB0 [08:47:23]SAM_PROTO_ClearQueue [08:47:23]wFMCommunicate request_size=4 [08:47:23]MH_SAM_APDU [08:47:23]CAPDU: 80 09 00 00 [08:47:23]Write to MH i2c: E2 08 00 A9 04 80 09 00 00 00 00 00 00 1F [08:47:23]Write i2c OK [08:47:23]MH_I2C_Read... [08:47:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:23]Read from MH i2c: E2 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 03 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 03 00 A9 04 00 90 00 21 [08:47:23]RAPDU: 90 00 [08:47:23]wFMCommunicate OK [08:47:23]SAM_PROTO_ClearQueue done [08:47:23]KKMCreateOFDPacket [08:47:23]OFDProtocolAddRootSTLVToBuf [08:47:23]FM_MakeSignedData [08:47:23]FM_MakeSignedData [08:47:23]SAM_PROTO_SignData [08:47:23]wFMCommunicate request_size=4 [08:47:23]MH_SAM_APDU [08:47:23]CAPDU: 80 0D 01 02 [08:47:23]Write to MH i2c: E2 08 00 AA 04 80 0D 01 02 00 00 00 00 27 [08:47:23]Write i2c OK [08:47:23]MH_I2C_Read... [08:47:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:23]Read from MH i2c: E2 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 03 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 03 00 AA 04 00 90 00 22 [08:47:23]RAPDU: 90 00 [08:47:23]wFMCommunicate OK [08:47:23]wFMCommunicate request_size=255 [08:47:23]MH_SAM_APDU [08:47: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 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9A 90 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BD 7B 02 00 35 04 06 00 57 [08:47:23]Write to MH i2c: E2 02 01 AB 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 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9A 90 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BD 7B 02 00 35 04 06 00 57 00 00 42 [08:47:23]Write i2c OK [08:47:23]MH_I2C_Read... [08:47:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:23]Read from MH i2c: E2 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 03 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 03 00 AB 04 00 90 00 23 [08:47:23]RAPDU: 90 00 [08:47:23]wFMCommunicate OK [08:47:23]wFMCommunicate request_size=10 [08:47:23]MH_SAM_APDU [08:47:23]CAPDU: 80 0D 02 02 05 CE BD 53 99 BC [08:47:23]Write to MH i2c: E2 0D 00 AC 04 80 0D 02 02 05 00 CE BD 53 99 BC 00 00 67 [08:47:23]Write i2c OK [08:47:23]MH_I2C_Read... [08:47:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:23]Read from MH i2c: E2 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 03 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 03 00 AC 04 00 90 00 24 [08:47:23]RAPDU: 90 00 [08:47:23]wFMCommunicate OK [08:47:23]wFMCommunicate request_size=4 [08:47:23]MH_SAM_APDU [08:47:23]CAPDU: 80 0D 03 02 [08:47:23]Write to MH i2c: E2 08 00 AD 04 80 0D 03 02 00 00 00 00 2C [08:47:23]Write i2c OK [08:47:23]MH_I2C_Read... [08:47:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:23]Read from MH i2c: E2 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 0B 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 0B 00 AD 04 00 1D 2B CE 1E C1 B0 B1 F2 90 00 75 [08:47:23]RAPDU: 1D 2B CE 1E C1 B0 B1 F2 90 00 [08:47:23]wFMCommunicate OK [08:47:23]SAM_PROTO_SignData done [08:47:23]FM_MakeSignedData done [08:47:23]CreateOFDProtocolMessage [08:47:23]wFMCommunicate request_size=4 [08:47:23]MH_SAM_APDU [08:47:23]CAPDU: 80 11 00 00 [08:47:23]Write to MH i2c: E2 08 00 AE 04 80 11 00 00 00 00 00 00 2C [08:47:23]Write i2c OK [08:47:23]MH_I2C_Read... [08:47:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:23]Read from MH i2c: E2 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 17 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 17 00 AE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8C [08:47:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:47:23]wFMCommunicate OK [08:47:23]CreateOFDProtocolMessage done [08:47:23]OFDSenderStorePacket 162749 [08:47:23]StoreOFDPacket docnum=162749 [08:47:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 5C AC 07 01 1C 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9A 90 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BD 7B 02 00 35 04 06 00 57 CE BD 53 99 BC 1D 2B CE 1E C1 B0 B1 F2 [08:47:23]CheckFolder [08:47:23]dirname=/storage/ofd_packets [08:47:23]CheckFolder done [08:47:23]ProducePacketName [08:47:23]name=ofd_packets/00162749 [08:47:23]NVStorageSaveData ofd_packets/00162749 [08:47:23]File name is /storage/ofd_packets/00162749 [08:47:23]Write 301 bytes [08:47:23]NVStorageSaveData done [08:47:23]OFDSenderStorePacket done [08:47:23]KKMCreateOFDPacket done [08:47:23]NVStorageSaveData kkm_last_timestamp [08:47:23]File name is /storage/kkm_last_timestamp [08:47:23]Write 4 bytes [08:47:23]NVStorageSaveData done [08:47:23]ExternCall_PrintAddStr [08:47:23]wPrintStart [08:47:23]Write to MH i2c: 01 00 00 AF 04 B3 [08:47:23]Write i2c OK [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: 01 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: 01 07 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 FF 0F C8 [08:47:23]RasterBufferAndPrint [08:47:23]line Счет N : (1)1319337 [08:47:23]line ИНН: 02508201610067 [08:47:23]line Контрольно-Кассовый Чек [08:47:23]line ПРОДАЖА [08:47:23]line ТРК (МРК, ГНК) : 33 [08:47:23]line Товар: 2710124130 [08:47:23]line Аи-92-К-5 [08:47:23]line 3.020 * 66.30 [08:47:23]line = 200.23 [08:47:23]line НДС 12% НСП 1% [08:47:23]line > о реализуемом товаре [08:47:23]line ОКРУГЛЕНИЕ: -0.23 [08:47:23]line ИТОГО: 200.00 [08:47:23]line Внесено: 200.00 [08:47:23]line СДАЧА: 0.00 [08:47:23]line НСП 1% : 1.77 [08:47:23]line НДС 12% : 21.26 [08:47:23]line Наличными: 200.00 [08:47:23]line Безнал.: 0.00 [08:47:23]line Место: АЗС № 140 "Партнер Нефть" [08:47:23]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:47:23]line СНО: Общий режим [08:47:23]line Чек 61 14.07.2024 08:47 [08:47:23]line Смена: 463 ФФД: 1.0 [08:47:23]line ЗНМ: 0300000129 [08:47:23]line РНМ: 0000000000090858 [08:47:23]line Версия ККМ: 001 [08:47:23]line ФМ: 0000000000874899 [08:47:23]line ФД: 162749 [08:47:23]line ФПД: 96545451252156 [08:47:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T084722&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162749&fm=96545451252156&tin=02508201610067®Number=0000000000090858&sum=20000 [08:47:24]OFD Sender: Processing packet 162749 [packets to send 106, broken 105] [08:47:24]ProducePacketName [08:47:24]name=ofd_packets/00162749 [08:47:24]OFD Sender: To server: pG, [08:47:24]CommunicateWithHost lk.salyk.kg:30040 [08:47:24]ConnectInit lk.salyk.kg [08:47:24]written 0, free lines is 4095 [08:47:24]Connected sock=10 [08: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 34 38 39 39 0F 01 00 00 5C AC 07 01 1C 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9A 90 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BD 7B 02 00 35 04 06 00 57 CE BD 53 99 BC 1D 2B CE 1E C1 B0 B1 F2 [08:47:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E9 8A 47 00 5B 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BD 7B 02 00 F4 03 04 00 A8 3C 93 66 B6 04 01 00 00 B7 AA 78 3F A9 AD 10 E4 [08:47:24]CommunicateWithHost err = 0 [08:47:24]CheckOFDResponse [08:47:24]1017 (14) - 77093643461234 [08:47:24]1041 (16) - 0000000000874899 [08:47:24]1040 (4) - 162749 [08:47:24]1012 (4) - 14.07.2024 02:49 [08:47:24]1206 (1) - 0 [08:47:24]OFD Sender: Remove packet 162749 [08:47:24]ProducePacketName [08:47:24]name=ofd_packets/00162749 [08:47:24]NVStorageDeleteData [08:47:24]Write to MH i2c: 01 00 00 DA 04 DE [08:47:24]Write i2c OK [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: 01 [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: 01 07 00 [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: 01 07 00 DA 04 00 00 00 00 00 CD 0C BE [08:47:24]RasterBufferAndPrint [08:47:24]line [08:47:24]line [08:47:24]line [08:47:24]line [08:47:24]line [08:47:24]written 0, free lines is 3284 [08:47:24]MH_Cut [08:47:24]Write to MH i2c: D1 01 00 E1 04 01 B7 [08:47:24]Write i2c OK [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: D1 [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: D1 01 00 [08:47:24]MH_I2C_Read... [08:47:24]Read from MH i2c: D1 01 00 E1 04 00 B6 [08:47:24]Write to MH i2c: 01 00 00 E2 04 E6 [08:47:24]Write i2c OK [08:47:24]MH_I2C_Read... [08:47:25]OFD Sender: No OFD packet to send [08:47:25]*** Cut start [08:47:25]*** Purtial cut [08:47:25]*** Stage 1: CUTSNS_PIN = 1 [08:47:25]Read from MH i2c: 01 [08:47:25]MH_I2C_Read... [08:47:25]*** Stop cut motor [08:47:25]*** Cut end [08:47:25]Read from MH i2c: 01 07 00 [08:47:25]MH_I2C_Read... [08:47:25]Read from MH i2c: 01 07 00 E2 04 00 00 00 00 00 FF 0F FB [08:47:25]process_action close_receipt done [08:47:25]requested_data is exist [08:47:25]produce_requested_data [08:47:25]requested_item fm.sn is exist - process it [08:47:25]wFMCommunicate request_size=4 [08:47:25]MH_SAM_APDU [08:47:25]CAPDU: 80 11 00 00 [08:47:25]Write to MH i2c: E2 08 00 E3 04 80 11 00 00 00 00 00 00 61 [08:47:25]Write i2c OK [08:47:25]MH_I2C_Read... [08:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:25]Read from MH i2c: E2 [08:47:25]MH_I2C_Read... [08:47:25]Read from MH i2c: E2 17 00 [08:47:25]MH_I2C_Read... [08:47:25]Read from MH i2c: E2 17 00 E3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C1 [08:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:47:25]wFMCommunicate OK [08:47:25]requested_item fd.num is exist - process it [08:47:25]SAM_PROTO_GetFieldsCounters [08:47:25]wFMCommunicate request_size=4 [08:47:25]MH_SAM_APDU [08:47:25]CAPDU: 80 13 00 00 [08:47:25]Write to MH i2c: E2 08 00 E4 04 80 13 00 00 00 00 00 00 64 [08:47:25]Write i2c OK [08:47:25]MH_I2C_Read... [08:47:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:25]Read from MH i2c: E2 [08:47:25]MH_I2C_Read... [08:47:25]Read from MH i2c: E2 62 00 [08:47:25]MH_I2C_Read... [08:47:25]Read from MH i2c: E2 62 00 E4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BD 7B 02 00 0E 04 04 00 CF 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 58 [08:47:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BD 7B 02 00 0E 04 04 00 CF 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 [08:47:25]wFMCommunicate OK [08:47:25]SAM_PROTO_GetFieldsCounters done [08:47:25]requested_item shift.num is exist - process it [08:47:25]requested_item shift.opened is exist - process it [08:47:25]req_shift_opened [08:47:25]FM_GetShiftState [08:47:25]SAM_PROTO_GetShiftState [08:47:25]wFMCommunicate request_size=4 [08:47:25]MH_SAM_APDU [08:47:25]CAPDU: 80 13 01 00 [08:47:25]Write to MH i2c: E2 08 00 E5 04 80 13 01 00 00 00 00 00 66 [08:47:26]Write i2c OK [08:47:26]MH_I2C_Read... [08:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:26]Read from MH i2c: E2 [08:47:26]MH_I2C_Read... [08:47:26]Read from MH i2c: E2 0E 00 [08:47:26]MH_I2C_Read... [08:47:26]Read from MH i2c: E2 0E 00 E5 04 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9C [08:47:26]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:47:26]wFMCommunicate OK [08:47:26]SAM_PROTO_GetShiftState done [08:47:26]FM_GetShiftState done [08:47:26]req_shift_opened done [08:47:26]requested_item shift.open_date is exist - process it [08:47:26]req_shift_open_date [08:47:26]req_shift_open_date done [08:47:26]produce_requested_data done [08:47:26]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162749,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:47:26]process_action_free close_receipt [08:47:26]json_value_free [08:47:26]json_value_free done [08:47:26]process_json_proto returns [08:47:26]Send response to host [08:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162749,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:47:26]free response buf [08:47:26]execute_script done [08:47:26]execute_script returns [08:47:26]free content buf [08:47:26]Sock 9.Close socket [08:47:26]Sock 9.Thread stoped [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:16]accept exits with 7 [08:48:16]New connection [08:48:16]New thread 3066879332 created [08:48:16]Thread 3066735972 joined [08:48:16]Waiting for new connection... [08:48:16] Sock 7.Parse request [08:48:16]Sock 7.Check first char [08:48:16]Sock 7.First char is OK [08:48:16]request: POST /json_proto HTTP/1.0 [08:48:16]Method: POST [08:48:16]URL: /json_proto [08:48:16]Method is POST - this is cgi request [08:48:16]url: /json_proto [08:48:16]query_string will be loaded in cgi processing [08:48:16]execute_cgi json_proto POST (null) [08:48:16]execute_cgi path=json_proto method=POST [08:48:16]POST find Content-Length [08:48:16]Host: 172.17.39.67:8080 [08:48:16]Content-Length: 641 [08:48:16]Content-Type: application/json [08:48:16] [08:48:16]POST finish read [08:48:16]Found Content-Length = 641 [08:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:16]execute_script... [08:48: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)1319339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:16]POST & json_proto [08:48:16]process_json_proto [08:48:16]json parsed OK: [08:48:16]protocol is kg_v1.0 [08:48:16]action value=close_receipt [08:48:16]process_action close_receipt [08:48:16]cmd_close_receipt [08:48:16]MH_GetDate [08:48:16]Write to MH i2c: F0 00 00 E6 04 D9 [08:48:16]Write i2c OK [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: F0 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: F0 09 00 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: F0 09 00 E6 04 00 D0 90 93 66 B6 85 93 66 6F [08:48:16]GetLastDocTimeStamp 1720946842 [08:48:16]current date 1720946896 [08:48:16]FM_GetShiftState [08:48:16]SAM_PROTO_GetShiftState [08:48:16]wFMCommunicate request_size=4 [08:48:16]MH_SAM_APDU [08:48:16]CAPDU: 80 13 01 00 [08:48:16]Write to MH i2c: E2 08 00 E7 04 80 13 01 00 00 00 00 00 68 [08:48:16]Write i2c OK [08:48:16]MH_I2C_Read... [08:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:16]Read from MH i2c: E2 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 0E 00 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 0E 00 E7 04 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9E [08:48:16]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:48:16]wFMCommunicate OK [08:48:16]SAM_PROTO_GetShiftState done [08:48:16]FM_GetShiftState done [08:48:16]opened in 1720915483 [08:48:16]opened+sec_in_day 1721001883 [08:48:16]quantity*price = 66300 [08:48:16]sum+1 = 66301 [08:48:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 663.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 62 14.07.2024 08:48 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162750 ФПД: 88368171258085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T084816&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162750&fm=88368171258085&tin=02508201610067®Number=0000000000090858&sum=66300 [08:48:17]StoreToDocumentArchive [08:48:17]shift 463 fd 162750 [08:48:17]save to /storage/0463/doc_00162750 [08:48:17]save last doc name /storage/0463/doc_00162750 to /storage/kkm_last_doc_name [08:48:17]save OK [08:48:17]Clear old archive folders... [08:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:17]tlvbuf is B6F46D30 [08:48:17]SAM_PROTO_ClearQueue [08:48:17]wFMCommunicate request_size=4 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 09 00 00 [08:48:17]Write to MH i2c: E2 08 00 F4 04 80 09 00 00 00 00 00 00 6A [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 F4 04 00 90 00 6C [08:48:17]RAPDU: 90 00 [08:48:17]wFMCommunicate OK [08:48:17]SAM_PROTO_ClearQueue done [08:48:17]KKMCreateOFDPacket [08:48:17]OFDProtocolAddRootSTLVToBuf [08:48:17]FM_MakeSignedData [08:48:17]FM_MakeSignedData [08:48:17]SAM_PROTO_SignData [08:48:17]wFMCommunicate request_size=4 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 0D 01 02 [08:48:17]Write to MH i2c: E2 08 00 F5 04 80 0D 01 02 00 00 00 00 72 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 F5 04 00 90 00 6D [08:48:17]RAPDU: 90 00 [08:48:17]wFMCommunicate OK [08:48:17]wFMCommunicate request_size=255 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 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 D0 90 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BE 7B 02 00 35 04 06 00 50 [08:48:17]Write to MH i2c: E2 02 01 F6 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 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 D0 90 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BE 7B 02 00 35 04 06 00 50 00 00 9C [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 F6 04 00 90 00 6E [08:48:17]RAPDU: 90 00 [08:48:17]wFMCommunicate OK [08:48:17]wFMCommunicate request_size=10 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 0D 02 02 05 5E D1 75 10 E5 [08:48:17]Write to MH i2c: E2 0D 00 F7 04 80 0D 02 02 05 00 5E D1 75 10 E5 00 00 18 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 F7 04 00 90 00 6F [08:48:17]RAPDU: 90 00 [08:48:17]wFMCommunicate OK [08:48:17]wFMCommunicate request_size=4 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 0D 03 02 [08:48:17]Write to MH i2c: E2 08 00 F8 04 80 0D 03 02 00 00 00 00 77 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 0B 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 0B 00 F8 04 00 9F 30 0F EF CD C8 E0 49 90 00 03 [08:48:17]RAPDU: 9F 30 0F EF CD C8 E0 49 90 00 [08:48:17]wFMCommunicate OK [08:48:17]SAM_PROTO_SignData done [08:48:17]FM_MakeSignedData done [08:48:17]CreateOFDProtocolMessage [08:48:17]wFMCommunicate request_size=4 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 11 00 00 [08:48:17]Write to MH i2c: E2 08 00 F9 04 80 11 00 00 00 00 00 00 77 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 17 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 17 00 F9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D7 [08:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:48:17]wFMCommunicate OK [08:48:17]CreateOFDProtocolMessage done [08:48:17]OFDSenderStorePacket 162750 [08:48:17]StoreOFDPacket docnum=162750 [08:48:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 25 64 07 01 BE F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 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 D0 90 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BE 7B 02 00 35 04 06 00 50 5E D1 75 10 E5 9F 30 0F EF CD C8 E0 49 [08:48:17]CheckFolder [08:48:17]dirname=/storage/ofd_packets [08:48:17]CheckFolder done [08:48:17]ProducePacketName [08:48:17]name=ofd_packets/00162750 [08:48:17]NVStorageSaveData ofd_packets/00162750 [08:48:17]File name is /storage/ofd_packets/00162750 [08:48:17]Write 301 bytes [08:48:17]NVStorageSaveData done [08:48:17]OFDSenderStorePacket done [08:48:17]KKMCreateOFDPacket done [08:48:17]NVStorageSaveData kkm_last_timestamp [08:48:17]File name is /storage/kkm_last_timestamp [08:48:17]Write 4 bytes [08:48:17]NVStorageSaveData done [08:48:17]ExternCall_PrintAddStr [08:48:17]wPrintStart [08:48:17]Write to MH i2c: 01 00 00 FA 04 FE [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: 01 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: 01 07 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: 01 07 00 FA 04 00 00 00 00 00 FF 0F 13 [08:48:17]RasterBufferAndPrint [08:48:17]line Счет N : (1)1319339 [08:48:17]line ИНН: 02508201610067 [08:48:17]line Контрольно-Кассовый Чек [08:48:17]line ПРОДАЖА [08:48:17]line ТРК (МРК, ГНК) : 43 [08:48:17]line Товар: 2710124130 [08:48:17]line Аи-92-К-5 [08:48:17]line 10.000 * 66.30 [08:48:17]line = 663.00 [08:48:17]line НДС 12% НСП 1% [08:48:17]line > о реализуемом товаре [08:48:17]line ИТОГО: 663.00 [08:48:17]line НСП 1% : 5.87 [08:48:17]line НДС 12% : 70.41 [08:48:17]line Наличными: 663.00 [08:48:17]line Безнал.: 0.00 [08:48:17]line Место: АЗС № 140 "Партнер Нефть" [08:48:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:48:17]line СНО: Общий режим [08:48:17]line Чек 62 14.07.2024 08:48 [08:48:17]line Смена: 463 ФФД: 1.0 [08:48:17]line ЗНМ: 0300000129 [08:48:17]line РНМ: 0000000000090858 [08:48:17]line Версия ККМ: 001 [08:48:17]line ФМ: 0000000000874899 [08:48:17]line ФД: 162750 [08:48:17]line ФПД: 88368171258085 [08:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T084816&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162750&fm=88368171258085&tin=02508201610067®Number=0000000000090858&sum=66300 [08:48:18]OFD Sender: Processing packet 162750 [packets to send 106, broken 105] [08:48:18]ProducePacketName [08:48:18]name=ofd_packets/00162750 [08:48:18]OFD Sender: To server: pG, [08:48:18]CommunicateWithHost lk.salyk.kg:30040 [08:48:18]ConnectInit lk.salyk.kg [08:48:18]written 0, free lines is 4095 [08:48:18]Connected sock=10 [08:48:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 25 64 07 01 BE F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 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 D0 90 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BE 7B 02 00 35 04 06 00 50 5E D1 75 10 E5 9F 30 0F EF CD C8 E0 49 [08:48:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6C 5F 47 00 16 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BE 7B 02 00 F4 03 04 00 DE 3C 93 66 B6 04 01 00 00 71 62 A9 D6 55 BE D1 F0 [08:48:18]CommunicateWithHost err = 0 [08:48:18]CheckOFDResponse [08:48:18]1017 (14) - 77093643461234 [08:48:18]1041 (16) - 0000000000874899 [08:48:18]1040 (4) - 162750 [08:48:18]1012 (4) - 14.07.2024 02:50 [08:48:18]1206 (1) - 0 [08:48:18]OFD Sender: Remove packet 162750 [08:48:18]ProducePacketName [08:48:18]name=ofd_packets/00162750 [08:48:18]NVStorageDeleteData [08:48:18]Write to MH i2c: 01 00 00 22 05 27 [08:48:18]Write i2c OK [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: 01 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: 01 07 00 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: 01 07 00 22 05 00 00 00 00 00 08 0D 43 [08:48:18]RasterBufferAndPrint [08:48:18]line [08:48:18]line [08:48:18]line [08:48:18]line [08:48:18]line [08:48:18]written 0, free lines is 3343 [08:48:18]MH_Cut [08:48:18]Write to MH i2c: D1 01 00 29 05 01 00 [08:48:18]Write i2c OK [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: D1 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: D1 01 00 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: D1 01 00 29 05 00 FF [08:48:18]Write to MH i2c: 01 00 00 2A 05 2F [08:48:18]Write i2c OK [08:48:18]MH_I2C_Read... [08:48:19]OFD Sender: No OFD packet to send [08:48:19]*** Cut start [08:48:19]*** Purtial cut [08:48:19]*** CUTSNS_PIN = 0 [08:48:19]*** Stage 1: CUTSNS_PIN = 1 [08:48:21]Read from MH i2c: 01 [08:48:21]MH_I2C_Read... [08:48:21]*** Stop cut motor [08:48:21]*** Cut end [08:48:21]Read from MH i2c: 01 07 00 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 FF 0F 44 [08:48:21]process_action close_receipt done [08:48:21]requested_data is exist [08:48:21]produce_requested_data [08:48:21]requested_item fm.sn is exist - process it [08:48:21]wFMCommunicate request_size=4 [08:48:21]MH_SAM_APDU [08:48:21]CAPDU: 80 11 00 00 [08:48:21]Write to MH i2c: E2 08 00 2B 05 80 11 00 00 00 00 00 00 AA [08:48:21]Write i2c OK [08:48:21]MH_I2C_Read... [08:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:21]Read from MH i2c: E2 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: E2 17 00 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: E2 17 00 2B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0A [08:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:48:21]wFMCommunicate OK [08:48:21]requested_item fd.num is exist - process it [08:48:21]SAM_PROTO_GetFieldsCounters [08:48:21]wFMCommunicate request_size=4 [08:48:21]MH_SAM_APDU [08:48:21]CAPDU: 80 13 00 00 [08:48:21]Write to MH i2c: E2 08 00 2C 05 80 13 00 00 00 00 00 00 AD [08:48:21]Write i2c OK [08:48:21]MH_I2C_Read... [08:48:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:21]Read from MH i2c: E2 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: E2 62 00 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: E2 62 00 2C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BE 7B 02 00 0E 04 04 00 CF 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 A5 [08:48:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BE 7B 02 00 0E 04 04 00 CF 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 [08:48:21]wFMCommunicate OK [08:48:21]SAM_PROTO_GetFieldsCounters done [08:48:21]requested_item shift.num is exist - process it [08:48:21]requested_item shift.opened is exist - process it [08:48:21]req_shift_opened [08:48:21]FM_GetShiftState [08:48:21]SAM_PROTO_GetShiftState [08:48:21]wFMCommunicate request_size=4 [08:48:21]MH_SAM_APDU [08:48:21]CAPDU: 80 13 01 00 [08:48:21]Write to MH i2c: E2 08 00 2D 05 80 13 01 00 00 00 00 00 AF [08:48:21]Write i2c OK [08:48:21]MH_I2C_Read... [08:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:21]Read from MH i2c: E2 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: E2 0E 00 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: E2 0E 00 2D 05 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E5 [08:48:21]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:48:21]wFMCommunicate OK [08:48:21]SAM_PROTO_GetShiftState done [08:48:21]FM_GetShiftState done [08:48:21]req_shift_opened done [08:48:21]requested_item shift.open_date is exist - process it [08:48:21]req_shift_open_date [08:48:21]req_shift_open_date done [08:48:21]produce_requested_data done [08:48:21]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162750,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:48:21]process_action_free close_receipt [08:48:21]json_value_free [08:48:21]json_value_free done [08:48:21]process_json_proto returns [08:48:21]Send response to host [08:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162750,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:48:21]free response buf [08:48:21]execute_script done [08:48:21]execute_script returns [08:48:21]free content buf [08:48:21]Sock 7.Close socket [08:48:21]Sock 7.Thread stoped [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:46]accept exits with 9 [08:48:46]New connection [08:48:46]New thread 3066735972 created [08:48:46]Thread 3066879332 joined [08:48:46]Waiting for new connection... [08:48:46] Sock 9.Parse request [08:48:46]Sock 9.Check first char [08:48:46]Sock 9.First char is OK [08:48:46]request: POST /json_proto HTTP/1.0 [08:48:46]Method: POST [08:48:46]URL: /json_proto [08:48:46]Method is POST - this is cgi request [08:48:46]url: /json_proto [08:48:46]query_string will be loaded in cgi processing [08:48:46]execute_cgi json_proto POST (null) [08:48:46]execute_cgi path=json_proto method=POST [08:48:46]POST find Content-Length [08:48:46]Host: 172.17.39.67:8080 [08:48:46]Content-Length: 683 [08:48:46]Content-Type: application/json [08:48:46] [08:48:46]POST finish read [08:48:46]Found Content-Length = 683 [08:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 25.830, "sum" : 1712.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 1712.00, "payments": [ { "type": 0, "sum" : 1712.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:46]execute_script... [08:48: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)1319338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 25.830, "sum" : 1712.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 1712.00, "payments": [ { "type": 0, "sum" : 1712.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:46]POST & json_proto [08:48:46]process_json_proto [08:48:46]json parsed OK: [08:48:46]protocol is kg_v1.0 [08:48:46]action value=close_receipt [08:48:46]process_action close_receipt [08:48:46]cmd_close_receipt [08:48:46]MH_GetDate [08:48:46]Write to MH i2c: F0 00 00 2E 05 22 [08:48:46]Write i2c OK [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: F0 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: F0 09 00 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: F0 09 00 2E 05 00 EE 90 93 66 B6 85 93 66 D6 [08:48:46]GetLastDocTimeStamp 1720946896 [08:48:46]current date 1720946926 [08:48:46]FM_GetShiftState [08:48:46]SAM_PROTO_GetShiftState [08:48:46]wFMCommunicate request_size=4 [08:48:46]MH_SAM_APDU [08:48:46]CAPDU: 80 13 01 00 [08:48:46]Write to MH i2c: E2 08 00 2F 05 80 13 01 00 00 00 00 00 B1 [08:48:46]Write i2c OK [08:48:46]MH_I2C_Read... [08:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:46]Read from MH i2c: E2 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: E2 0E 00 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: E2 0E 00 2F 05 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E7 [08:48:46]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:48:46]wFMCommunicate OK [08:48:46]SAM_PROTO_GetShiftState done [08:48:46]FM_GetShiftState done [08:48:46]opened in 1720915483 [08:48:46]opened+sec_in_day 1721001883 [08:48:46]quantity*price = 171252 [08:48:46]sum+1 = 171254 [08:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 1712.00 Внесено: 9000.00 СДАЧА: 7288.00 НСП 1% : 15.15 НДС 12% : 181.86 Наличными: 1712.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 63 14.07.2024 08:48 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162751 ФПД: 81875466664605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T084846&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162751&fm=81875466664605&tin=02508201610067®Number=0000000000090858&sum=171200 [08:48:47]StoreToDocumentArchive [08:48:47]shift 463 fd 162751 [08:48:47]save to /storage/0463/doc_00162751 [08:48:47]save last doc name /storage/0463/doc_00162751 to /storage/kkm_last_doc_name [08:48:47]save OK [08:48:47]Clear old archive folders... [08:48:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:47]tlvbuf is B6EC8B50 [08:48:47]SAM_PROTO_ClearQueue [08:48:47]wFMCommunicate request_size=4 [08:48:47]MH_SAM_APDU [08:48:47]CAPDU: 80 09 00 00 [08:48:47]Write to MH i2c: E2 08 00 3C 05 80 09 00 00 00 00 00 00 B3 [08:48:47]Write i2c OK [08:48:47]MH_I2C_Read... [08:48:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:47]Read from MH i2c: E2 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: E2 03 00 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: E2 03 00 3C 05 00 90 00 B5 [08:48:47]RAPDU: 90 00 [08:48:47]wFMCommunicate OK [08:48:47]SAM_PROTO_ClearQueue done [08:48:47]KKMCreateOFDPacket [08:48:47]OFDProtocolAddRootSTLVToBuf [08:48:47]FM_MakeSignedData [08:48:47]FM_MakeSignedData [08:48:47]SAM_PROTO_SignData [08:48:47]wFMCommunicate request_size=4 [08:48:47]MH_SAM_APDU [08:48:47]CAPDU: 80 0D 01 02 [08:48:47]Write to MH i2c: E2 08 00 3D 05 80 0D 01 02 00 00 00 00 BB [08:48:47]Write i2c OK [08:48:47]MH_I2C_Read... [08:48:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:47]Read from MH i2c: E2 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: E2 03 00 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: E2 03 00 3D 05 00 90 00 B6 [08:48:47]RAPDU: 90 00 [08:48:47]wFMCommunicate OK [08:48:47]wFMCommunicate request_size=255 [08:48:47]MH_SAM_APDU [08:48: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 E6 64 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F5 9C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 9C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 47 00 00 00 00 07 04 06 00 C0 9C 02 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 EE 90 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BF 7B 02 00 35 04 06 00 4A [08:48:47]Write to MH i2c: E2 02 01 3E 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 E6 64 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F5 9C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 9C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 47 00 00 00 00 07 04 06 00 C0 9C 02 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 EE 90 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BF 7B 02 00 35 04 06 00 4A 00 00 BC [08:48:47]Write i2c OK [08:48:47]MH_I2C_Read... [08:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:48]Read from MH i2c: E2 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 03 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 03 00 3E 05 00 90 00 B7 [08:48:48]RAPDU: 90 00 [08:48:48]wFMCommunicate OK [08:48:48]wFMCommunicate request_size=10 [08:48:48]MH_SAM_APDU [08:48:48]CAPDU: 80 0D 02 02 05 77 1E 1B 3A 9D [08:48:48]Write to MH i2c: E2 0D 00 3F 05 80 0D 02 02 05 00 77 1E 1B 3A 9D 00 00 4F [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:48]Read from MH i2c: E2 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 03 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 03 00 3F 05 00 90 00 B8 [08:48:48]RAPDU: 90 00 [08:48:48]wFMCommunicate OK [08:48:48]wFMCommunicate request_size=4 [08:48:48]MH_SAM_APDU [08:48:48]CAPDU: 80 0D 03 02 [08:48:48]Write to MH i2c: E2 08 00 40 05 80 0D 03 02 00 00 00 00 C0 [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:48]Read from MH i2c: E2 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 0B 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 0B 00 40 05 00 78 55 22 AB 3C DA 3E BC 90 00 6B [08:48:48]RAPDU: 78 55 22 AB 3C DA 3E BC 90 00 [08:48:48]wFMCommunicate OK [08:48:48]SAM_PROTO_SignData done [08:48:48]FM_MakeSignedData done [08:48:48]CreateOFDProtocolMessage [08:48:48]wFMCommunicate request_size=4 [08:48:48]MH_SAM_APDU [08:48:48]CAPDU: 80 11 00 00 [08:48:48]Write to MH i2c: E2 08 00 41 05 80 11 00 00 00 00 00 00 C0 [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:48]Read from MH i2c: E2 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 17 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 17 00 41 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 20 [08:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:48:48]wFMCommunicate OK [08:48:48]CreateOFDProtocolMessage done [08:48:48]OFDSenderStorePacket 162751 [08:48:48]StoreOFDPacket docnum=162751 [08:48:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 71 EB 07 01 73 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 E6 64 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F5 9C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 9C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 47 00 00 00 00 07 04 06 00 C0 9C 02 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 EE 90 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BF 7B 02 00 35 04 06 00 4A 77 1E 1B 3A 9D 78 55 22 AB 3C DA 3E BC [08:48:48]CheckFolder [08:48:48]dirname=/storage/ofd_packets [08:48:48]CheckFolder done [08:48:48]ProducePacketName [08:48:48]name=ofd_packets/00162751 [08:48:48]NVStorageSaveData ofd_packets/00162751 [08:48:48]File name is /storage/ofd_packets/00162751 [08:48:48]Write 301 bytes [08:48:48]NVStorageSaveData done [08:48:48]OFDSenderStorePacket done [08:48:48]KKMCreateOFDPacket done [08:48:48]NVStorageSaveData kkm_last_timestamp [08:48:48]File name is /storage/kkm_last_timestamp [08:48:48]Write 4 bytes [08:48:48]NVStorageSaveData done [08:48:48]ExternCall_PrintAddStr [08:48:48]wPrintStart [08:48:48]Write to MH i2c: 01 00 00 42 05 47 [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: 01 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: 01 07 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: 01 07 00 42 05 00 00 00 00 00 FF 0F 5C [08:48:48]RasterBufferAndPrint [08:48:48]line Счет N : (1)1319338 [08:48:48]line ИНН: 02508201610067 [08:48:48]line Контрольно-Кассовый Чек [08:48:48]line ПРОДАЖА [08:48:48]line ТРК (МРК, ГНК) : 53 [08:48:48]line Товар: 2710124130 [08:48:48]line Аи-92-К-5 [08:48:48]line 25.830 * 66.30 [08:48:48]line = 1712.53 [08:48:48]line НДС 12% НСП 1% [08:48:48]line > о реализуемом товаре [08:48:48]line ОКРУГЛЕНИЕ: -0.53 [08:48:48]line ИТОГО: 1712.00 [08:48:48]line Внесено: 9000.00 [08:48:48]line СДАЧА: 7288.00 [08:48:48]line НСП 1% : 15.15 [08:48:48]line НДС 12% : 181.86 [08:48:48]line Наличными: 1712.00 [08:48:48]line Безнал.: 0.00 [08:48:48]line Место: АЗС № 140 "Партнер Нефть" [08:48:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:48:48]line СНО: Общий режим [08:48:48]line Чек 63 14.07.2024 08:48 [08:48:48]line Смена: 463 ФФД: 1.0 [08:48:48]line ЗНМ: 0300000129 [08:48:48]line РНМ: 0000000000090858 [08:48:48]line Версия ККМ: 001 [08:48:48]line ФМ: 0000000000874899 [08:48:48]line ФД: 162751 [08:48:48]line ФПД: 81875466664605 [08:48:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T084846&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162751&fm=81875466664605&tin=02508201610067®Number=0000000000090858&sum=171200 [08:48:48]OFD Sender: Processing packet 162751 [packets to send 106, broken 105] [08:48:48]ProducePacketName [08:48:48]name=ofd_packets/00162751 [08:48:48]OFD Sender: To server: pG, [08:48:48]CommunicateWithHost lk.salyk.kg:30040 [08:48:48]ConnectInit lk.salyk.kg [08:48:48]written 0, free lines is 4095 [08:48:48]Connected sock=10 [08:48:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 71 EB 07 01 73 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 E6 64 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F5 9C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 9C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 47 00 00 00 00 07 04 06 00 C0 9C 02 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 EE 90 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BF 7B 02 00 35 04 06 00 4A 77 1E 1B 3A 9D 78 55 22 AB 3C DA 3E BC [08:48:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F2 BA 47 00 3C 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BF 7B 02 00 F4 03 04 00 FD 3C 93 66 B6 04 01 00 00 A9 D8 2E 23 FB 40 D6 2A [08:48:48]CommunicateWithHost err = 0 [08:48:48]CheckOFDResponse [08:48:48]1017 (14) - 77093643461234 [08:48:48]1041 (16) - 0000000000874899 [08:48:48]1040 (4) - 162751 [08:48:48]1012 (4) - 14.07.2024 02:50 [08:48:48]1206 (1) - 0 [08:48:48]OFD Sender: Remove packet 162751 [08:48:48]ProducePacketName [08:48:48]name=ofd_packets/00162751 [08:48:48]NVStorageDeleteData [08:48:49]Write to MH i2c: 01 00 00 6D 05 72 [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: 01 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: 01 07 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: 01 07 00 6D 05 00 00 00 00 00 D7 0C 5C [08:48:49]RasterBufferAndPrint [08:48:49]line [08:48:49]line [08:48:49]line [08:48:49]line [08:48:49]line [08:48:49]written 0, free lines is 3293 [08:48:49]MH_Cut [08:48:49]Write to MH i2c: D1 01 00 74 05 01 4B [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: D1 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: D1 01 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: D1 01 00 74 05 00 4A [08:48:49]Write to MH i2c: 01 00 00 75 05 7A [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]OFD Sender: No OFD packet to send [08:48:49]*** Cut start [08:48:49]*** Purtial cut [08:48:49]*** Stage 1: CUTSNS_PIN = 1 [08:48:50]Read from MH i2c: 01 [08:48:50]MH_I2C_Read... [08:48:50]*** Stop cut motor [08:48:50]*** Cut end [08:48:50]Read from MH i2c: 01 07 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 FF 0F 8F [08:48:50]process_action close_receipt done [08:48:50]requested_data is exist [08:48:50]produce_requested_data [08:48:50]requested_item fm.sn is exist - process it [08:48:50]wFMCommunicate request_size=4 [08:48:50]MH_SAM_APDU [08:48:50]CAPDU: 80 11 00 00 [08:48:50]Write to MH i2c: E2 08 00 76 05 80 11 00 00 00 00 00 00 F5 [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:50]Read from MH i2c: E2 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 17 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 17 00 76 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 55 [08:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:48:50]wFMCommunicate OK [08:48:50]requested_item fd.num is exist - process it [08:48:50]SAM_PROTO_GetFieldsCounters [08:48:50]wFMCommunicate request_size=4 [08:48:50]MH_SAM_APDU [08:48:50]CAPDU: 80 13 00 00 [08:48:50]Write to MH i2c: E2 08 00 77 05 80 13 00 00 00 00 00 00 F8 [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:50]Read from MH i2c: E2 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 62 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 62 00 77 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BF 7B 02 00 0E 04 04 00 CF 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 F4 [08:48:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BF 7B 02 00 0E 04 04 00 CF 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 [08:48:50]wFMCommunicate OK [08:48:50]SAM_PROTO_GetFieldsCounters done [08:48:50]requested_item shift.num is exist - process it [08:48:50]requested_item shift.opened is exist - process it [08:48:50]req_shift_opened [08:48:50]FM_GetShiftState [08:48:50]SAM_PROTO_GetShiftState [08:48:50]wFMCommunicate request_size=4 [08:48:50]MH_SAM_APDU [08:48:50]CAPDU: 80 13 01 00 [08:48:50]Write to MH i2c: E2 08 00 78 05 80 13 01 00 00 00 00 00 FA [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:50]Read from MH i2c: E2 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 0E 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: E2 0E 00 78 05 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 30 [08:48:50]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:48:50]wFMCommunicate OK [08:48:50]SAM_PROTO_GetShiftState done [08:48:50]FM_GetShiftState done [08:48:50]req_shift_opened done [08:48:50]requested_item shift.open_date is exist - process it [08:48:50]req_shift_open_date [08:48:50]req_shift_open_date done [08:48:50]produce_requested_data done [08:48:50]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162751,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:48:50]process_action_free close_receipt [08:48:50]json_value_free [08:48:50]json_value_free done [08:48:50]process_json_proto returns [08:48:50]Send response to host [08:48:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162751,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:48:50]free response buf [08:48:50]execute_script done [08:48:50]execute_script returns [08:48:50]free content buf [08:48:50]Sock 9.Close socket [08:48:50]Sock 9.Thread stoped [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:35]accept exits with 7 [08:49:35]New connection [08:49:35]New thread 3066879332 created [08:49:35]Thread 3066735972 joined [08:49:35]Waiting for new connection... [08:49:35] Sock 7.Parse request [08:49:35]Sock 7.Check first char [08:49:35]Sock 7.First char is OK [08:49:35]request: POST /json_proto HTTP/1.0 [08:49:35]Method: POST [08:49:35]URL: /json_proto [08:49:35]Method is POST - this is cgi request [08:49:35]url: /json_proto [08:49:35]query_string will be loaded in cgi processing [08:49:35]execute_cgi json_proto POST (null) [08:49:35]execute_cgi path=json_proto method=POST [08:49:35]POST find Content-Length [08:49:35]Host: 172.17.39.67:8080 [08:49:35]Content-Length: 676 [08:49:35]Content-Type: application/json [08:49:35] [08:49:35]POST finish read [08:49:35]Found Content-Length = 676 [08:49:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "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" ] } } [08:49:35]execute_script... [08:49: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)1319340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "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" ] } } [08:49:35]POST & json_proto [08:49:35]process_json_proto [08:49:35]json parsed OK: [08:49:35]protocol is kg_v1.0 [08:49:35]action value=close_receipt [08:49:35]process_action close_receipt [08:49:35]cmd_close_receipt [08:49:35]MH_GetDate [08:49:35]Write to MH i2c: F0 00 00 79 05 6D [08:49:35]Write i2c OK [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: F0 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: F0 09 00 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: F0 09 00 79 05 00 1F 91 93 66 B6 85 93 66 53 [08:49:35]GetLastDocTimeStamp 1720946926 [08:49:35]current date 1720946975 [08:49:35]FM_GetShiftState [08:49:35]SAM_PROTO_GetShiftState [08:49:35]wFMCommunicate request_size=4 [08:49:35]MH_SAM_APDU [08:49:35]CAPDU: 80 13 01 00 [08:49:35]Write to MH i2c: E2 08 00 7A 05 80 13 01 00 00 00 00 00 FC [08:49:35]Write i2c OK [08:49:35]MH_I2C_Read... [08:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:35]Read from MH i2c: E2 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 0E 00 [08:49:35]MH_I2C_Read... [08:49:35]Read from MH i2c: E2 0E 00 7A 05 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 32 [08:49:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:49:35]wFMCommunicate OK [08:49:35]SAM_PROTO_GetShiftState done [08:49:35]FM_GetShiftState done [08:49:35]opened in 1720915483 [08:49:35]opened+sec_in_day 1721001883 [08:49:35]quantity*price = 100007 [08:49:35]sum+1 = 100009 [08:49:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 64 14.07.2024 08:49 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162752 ФПД: 193252500051680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T084935&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162752&fm=193252500051680&tin=02508201610067®Number=0000000000090858&sum=100000 [08:49:36]StoreToDocumentArchive [08:49:36]shift 463 fd 162752 [08:49:36]save to /storage/0463/doc_00162752 [08:49:36]save last doc name /storage/0463/doc_00162752 to /storage/kkm_last_doc_name [08:49:36]save OK [08:49:36]Clear old archive folders... [08:49:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:49:36]tlvbuf is B6F46E70 [08:49:36]SAM_PROTO_ClearQueue [08:49:36]wFMCommunicate request_size=4 [08:49:36]MH_SAM_APDU [08:49:36]CAPDU: 80 09 00 00 [08:49:36]Write to MH i2c: E2 08 00 87 05 80 09 00 00 00 00 00 00 FE [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:36]Read from MH i2c: E2 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 03 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 03 00 87 05 00 90 00 00 [08:49:36]RAPDU: 90 00 [08:49:36]wFMCommunicate OK [08:49:36]SAM_PROTO_ClearQueue done [08:49:36]KKMCreateOFDPacket [08:49:36]OFDProtocolAddRootSTLVToBuf [08:49:36]FM_MakeSignedData [08:49:36]FM_MakeSignedData [08:49:36]SAM_PROTO_SignData [08:49:36]wFMCommunicate request_size=4 [08:49:36]MH_SAM_APDU [08:49:36]CAPDU: 80 0D 01 02 [08:49:36]Write to MH i2c: E2 08 00 88 05 80 0D 01 02 00 00 00 00 06 [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:36]Read from MH i2c: E2 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 03 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 03 00 88 05 00 90 00 01 [08:49:36]RAPDU: 90 00 [08:49:36]wFMCommunicate OK [08:49:36]wFMCommunicate request_size=255 [08:49:36]MH_SAM_APDU [08:49:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 40 00 00 00 F4 03 04 00 1F 91 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C0 7B 02 00 35 04 06 00 [08:49:36]Write to MH i2c: E2 02 01 89 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 40 00 00 00 F4 03 04 00 1F 91 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C0 7B 02 00 35 04 06 00 00 00 86 [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:36]Read from MH i2c: E2 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 03 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 03 00 89 05 00 90 00 02 [08:49:36]RAPDU: 90 00 [08:49:36]wFMCommunicate OK [08:49:36]wFMCommunicate request_size=11 [08:49:36]MH_SAM_APDU [08:49:36]CAPDU: 80 0D 02 02 06 AF C3 1A 9E 16 E0 [08:49:36]Write to MH i2c: E2 0E 00 8A 05 80 0D 02 02 06 00 AF C3 1A 9E 16 E0 00 00 35 [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:36]Read from MH i2c: E2 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 03 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 03 00 8A 05 00 90 00 03 [08:49:36]RAPDU: 90 00 [08:49:36]wFMCommunicate OK [08:49:36]wFMCommunicate request_size=4 [08:49:36]MH_SAM_APDU [08:49:36]CAPDU: 80 0D 03 02 [08:49:36]Write to MH i2c: E2 08 00 8B 05 80 0D 03 02 00 00 00 00 0B [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:36]Read from MH i2c: E2 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 0B 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 0B 00 8B 05 00 D8 45 C9 A8 31 7E 21 9E 90 00 08 [08:49:36]RAPDU: D8 45 C9 A8 31 7E 21 9E 90 00 [08:49:36]wFMCommunicate OK [08:49:36]SAM_PROTO_SignData done [08:49:36]FM_MakeSignedData done [08:49:36]CreateOFDProtocolMessage [08:49:36]wFMCommunicate request_size=4 [08:49:36]MH_SAM_APDU [08:49:36]CAPDU: 80 11 00 00 [08:49:36]Write to MH i2c: E2 08 00 8C 05 80 11 00 00 00 00 00 00 0B [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:36]Read from MH i2c: E2 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 17 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: E2 17 00 8C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6B [08:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:49:36]wFMCommunicate OK [08:49:36]CreateOFDProtocolMessage done [08:49:36]OFDSenderStorePacket 162752 [08:49:36]StoreOFDPacket docnum=162752 [08:49:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F8 F3 08 01 07 90 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 40 00 00 00 F4 03 04 00 1F 91 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C0 7B 02 00 35 04 06 00 AF C3 1A 9E 16 E0 D8 45 C9 A8 31 7E 21 9E [08:49:36]CheckFolder [08:49:36]dirname=/storage/ofd_packets [08:49:36]CheckFolder done [08:49:36]ProducePacketName [08:49:36]name=ofd_packets/00162752 [08:49:36]NVStorageSaveData ofd_packets/00162752 [08:49:36]File name is /storage/ofd_packets/00162752 [08:49:36]Write 302 bytes [08:49:36]NVStorageSaveData done [08:49:36]OFDSenderStorePacket done [08:49:36]KKMCreateOFDPacket done [08:49:36]NVStorageSaveData kkm_last_timestamp [08:49:36]File name is /storage/kkm_last_timestamp [08:49:36]Write 4 bytes [08:49:36]NVStorageSaveData done [08:49:36]ExternCall_PrintAddStr [08:49:36]wPrintStart [08:49:36]Write to MH i2c: 01 00 00 8D 05 92 [08:49:36]Write i2c OK [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: 01 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: 01 07 00 [08:49:36]MH_I2C_Read... [08:49:36]Read from MH i2c: 01 07 00 8D 05 00 00 00 00 00 FF 0F A7 [08:49:36]RasterBufferAndPrint [08:49:36]line Счет N : (1)1319340 [08:49:36]line ИНН: 02508201610067 [08:49:36]line Контрольно-Кассовый Чек [08:49:36]line ПРОДАЖА [08:49:36]line ТРК (МРК, ГНК) : 32 [08:49:36]line Товар: 2710124130 [08:49:36]line Super-92-К-5 [08:49:36]line 14.860 * 67.30 [08:49:36]line = 1000.08 [08:49:36]line НДС 12% НСП 1% [08:49:36]line > о реализуемом товаре [08:49:36]line ОКРУГЛЕНИЕ: -0.08 [08:49:36]line ИТОГО: 1000.00 [08:49:36]line Внесено: 1000.00 [08:49:36]line СДАЧА: 0.00 [08:49:36]line НСП 1% : 8.85 [08:49:36]line НДС 12% : 106.20 [08:49:36]line Наличными: 1000.00 [08:49:36]line Безнал.: 0.00 [08:49:36]line Место: АЗС № 140 "Партнер Нефть" [08:49:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:49:36]line СНО: Общий режим [08:49:36]line Чек 64 14.07.2024 08:49 [08:49:36]line Смена: 463 ФФД: 1.0 [08:49:36]line ЗНМ: 0300000129 [08:49:36]line РНМ: 0000000000090858 [08:49:36]line Версия ККМ: 001 [08:49:36]line ФМ: 0000000000874899 [08:49:36]line ФД: 162752 [08:49:36]line ФПД: 193252500051680 [08:49:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T084935&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162752&fm=193252500051680&tin=02508201610067®Number=0000000000090858&sum=100000 [08:49:36]written 0, free lines is 4095 [08:49:36]OFD Sender: Processing packet 162752 [packets to send 106, broken 105] [08:49:36]ProducePacketName [08:49:36]name=ofd_packets/00162752 [08:49:36]OFD Sender: To server: pG, [08:49:36]CommunicateWithHost lk.salyk.kg:30040 [08:49:36]ConnectInit lk.salyk.kg [08:49:37]Connected sock=10 [08:49:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F8 F3 08 01 07 90 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 40 00 00 00 F4 03 04 00 1F 91 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C0 7B 02 00 35 04 06 00 AF C3 1A 9E 16 E0 D8 45 C9 A8 31 7E 21 9E [08:49:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 27 3C 47 00 F1 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C0 7B 02 00 F4 03 04 00 2D 3D 93 66 B6 04 01 00 00 44 AB B1 6F 9B 40 FD A1 [08:49:37]CommunicateWithHost err = 0 [08:49:37]CheckOFDResponse [08:49:37]1017 (14) - 77093643461234 [08:49:37]1041 (16) - 0000000000874899 [08:49:37]1040 (4) - 162752 [08:49:37]1012 (4) - 14.07.2024 02:51 [08:49:37]1206 (1) - 0 [08:49:37]OFD Sender: Remove packet 162752 [08:49:37]ProducePacketName [08:49:37]name=ofd_packets/00162752 [08:49:37]NVStorageDeleteData [08:49:37]Write to MH i2c: 01 00 00 B8 05 BD [08:49:37]Write i2c OK [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: 01 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: 01 07 00 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: 01 07 00 B8 05 00 00 00 00 00 E8 0C B8 [08:49:37]RasterBufferAndPrint [08:49:37]line [08:49:37]line [08:49:37]line [08:49:37]line [08:49:37]line [08:49:37]written 0, free lines is 3310 [08:49:37]MH_Cut [08:49:37]Write to MH i2c: D1 01 00 BF 05 01 96 [08:49:37]Write i2c OK [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: D1 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: D1 01 00 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: D1 01 00 BF 05 00 95 [08:49:37]Write to MH i2c: 01 00 00 C0 05 C5 [08:49:37]Write i2c OK [08:49:37]MH_I2C_Read... [08:49:37]OFD Sender: No OFD packet to send [08:49:38]*** Cut start [08:49:38]*** Purtial cut [08:49:38]*** CUTSNS_PIN = 0 [08:49:38]*** Stage 1: CUTSNS_PIN = 1 [08:49:40]Read from MH i2c: 01 [08:49:40]MH_I2C_Read... [08:49:40]*** Stop cut motor [08:49:40]*** Cut end [08:49:40]Read from MH i2c: 01 07 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 FF 0F DA [08:49:40]process_action close_receipt done [08:49:40]requested_data is exist [08:49:40]produce_requested_data [08:49:40]requested_item fm.sn is exist - process it [08:49:40]wFMCommunicate request_size=4 [08:49:40]MH_SAM_APDU [08:49:40]CAPDU: 80 11 00 00 [08:49:40]Write to MH i2c: E2 08 00 C1 05 80 11 00 00 00 00 00 00 40 [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:40]Read from MH i2c: E2 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 17 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 17 00 C1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A0 [08:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:49:40]wFMCommunicate OK [08:49:40]requested_item fd.num is exist - process it [08:49:40]SAM_PROTO_GetFieldsCounters [08:49:40]wFMCommunicate request_size=4 [08:49:40]MH_SAM_APDU [08:49:40]CAPDU: 80 13 00 00 [08:49:40]Write to MH i2c: E2 08 00 C2 05 80 13 00 00 00 00 00 00 43 [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:40]Read from MH i2c: E2 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 62 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 62 00 C2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C0 7B 02 00 0E 04 04 00 CF 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 43 [08:49:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C0 7B 02 00 0E 04 04 00 CF 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 [08:49:40]wFMCommunicate OK [08:49:40]SAM_PROTO_GetFieldsCounters done [08:49:40]requested_item shift.num is exist - process it [08:49:40]requested_item shift.opened is exist - process it [08:49:40]req_shift_opened [08:49:40]FM_GetShiftState [08:49:40]SAM_PROTO_GetShiftState [08:49:40]wFMCommunicate request_size=4 [08:49:40]MH_SAM_APDU [08:49:40]CAPDU: 80 13 01 00 [08:49:40]Write to MH i2c: E2 08 00 C3 05 80 13 01 00 00 00 00 00 45 [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:40]Read from MH i2c: E2 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 0E 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 0E 00 C3 05 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7B [08:49:40]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:49:40]wFMCommunicate OK [08:49:40]SAM_PROTO_GetShiftState done [08:49:40]FM_GetShiftState done [08:49:40]req_shift_opened done [08:49:40]requested_item shift.open_date is exist - process it [08:49:40]req_shift_open_date [08:49:40]req_shift_open_date done [08:49:40]produce_requested_data done [08:49:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162752,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:49:40]process_action_free close_receipt [08:49:40]json_value_free [08:49:40]json_value_free done [08:49:40]process_json_proto returns [08:49:40]Send response to host [08:49:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162752,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:49:40]free response buf [08:49:40]execute_script done [08:49:40]execute_script returns [08:49:40]free content buf [08:49:40]Sock 7.Close socket [08:49:40]Sock 7.Thread stoped [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:10]accept exits with 9 [08:52:10]New connection [08:52:10]New thread 3066735972 created [08:52:10]Thread 3066879332 joined [08:52:10]Waiting for new connection... [08:52:10] Sock 9.Parse request [08:52:10]Sock 9.Check first char [08:52:10]Sock 9.First char is OK [08:52:10]request: POST /json_proto HTTP/1.0 [08:52:10]Method: POST [08:52:10]URL: /json_proto [08:52:10]Method is POST - this is cgi request [08:52:10]url: /json_proto [08:52:10]query_string will be loaded in cgi processing [08:52:10]execute_cgi json_proto POST (null) [08:52:10]execute_cgi path=json_proto method=POST [08:52:10]POST find Content-Length [08:52:10]Host: 172.17.39.67:8080 [08:52:10]Content-Length: 683 [08:52:10]Content-Type: application/json [08:52:10] [08:52:10]POST finish read [08:52:10]Found Content-Length = 683 [08:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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:52:10]execute_script... [08:52: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)1319341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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:52:10]POST & json_proto [08:52:10]process_json_proto [08:52:10]json parsed OK: [08:52:10]protocol is kg_v1.0 [08:52:10]action value=close_receipt [08:52:10]process_action close_receipt [08:52:10]cmd_close_receipt [08:52:10]MH_GetDate [08:52:10]Write to MH i2c: F0 00 00 C4 05 B8 [08:52:10]Write i2c OK [08:52:10]MH_I2C_Read... [08:52:10]Read from MH i2c: F0 [08:52:10]MH_I2C_Read... [08:52:10]Read from MH i2c: F0 09 00 [08:52:10]MH_I2C_Read... [08:52:10]Read from MH i2c: F0 09 00 C4 05 00 BB 91 93 66 B6 85 93 66 3A [08:52:10]GetLastDocTimeStamp 1720946975 [08:52:10]current date 1720947131 [08:52:10]FM_GetShiftState [08:52:10]SAM_PROTO_GetShiftState [08:52:10]wFMCommunicate request_size=4 [08:52:10]MH_SAM_APDU [08:52:10]CAPDU: 80 13 01 00 [08:52:10]Write to MH i2c: E2 08 00 C5 05 80 13 01 00 00 00 00 00 47 [08:52:10]Write i2c OK [08:52:10]MH_I2C_Read... [08:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:11]Read from MH i2c: E2 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: E2 0E 00 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: E2 0E 00 C5 05 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7D [08:52:11]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:52:11]wFMCommunicate OK [08:52:11]SAM_PROTO_GetShiftState done [08:52:11]FM_GetShiftState done [08:52:11]opened in 1720915483 [08:52:11]opened+sec_in_day 1721001883 [08:52:11]quantity*price = 100068 [08:52:11]sum+1 = 100069 [08:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 65 14.07.2024 08:52 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162753 ФПД: 164524448079840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T085211&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162753&fm=164524448079840&tin=02508201610067®Number=0000000000090858&sum=100000 [08:52:12]StoreToDocumentArchive [08:52:12]shift 463 fd 162753 [08:52:12]save to /storage/0463/doc_00162753 [08:52:12]save last doc name /storage/0463/doc_00162753 to /storage/kkm_last_doc_name [08:52:12]save OK [08:52:12]Clear old archive folders... [08:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:12]tlvbuf is 0122BAD0 [08:52:12]SAM_PROTO_ClearQueue [08:52:12]wFMCommunicate request_size=4 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 09 00 00 [08:52:12]Write to MH i2c: E2 08 00 D2 05 80 09 00 00 00 00 00 00 49 [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 D2 05 00 90 00 4B [08:52:12]RAPDU: 90 00 [08:52:12]wFMCommunicate OK [08:52:12]SAM_PROTO_ClearQueue done [08:52:12]KKMCreateOFDPacket [08:52:12]OFDProtocolAddRootSTLVToBuf [08:52:12]FM_MakeSignedData [08:52:12]FM_MakeSignedData [08:52:12]SAM_PROTO_SignData [08:52:12]wFMCommunicate request_size=4 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 0D 01 02 [08:52:12]Write to MH i2c: E2 08 00 D3 05 80 0D 01 02 00 00 00 00 51 [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 D3 05 00 90 00 4C [08:52:12]RAPDU: 90 00 [08:52:12]wFMCommunicate OK [08:52:12]wFMCommunicate request_size=255 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 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 BB 91 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C1 7B 02 00 35 04 06 00 95 [08:52:12]Write to MH i2c: E2 02 01 D4 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 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 BB 91 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C1 7B 02 00 35 04 06 00 95 00 00 63 [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 D4 05 00 90 00 4D [08:52:12]RAPDU: 90 00 [08:52:12]wFMCommunicate OK [08:52:12]wFMCommunicate request_size=10 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 0D 02 02 05 A2 55 48 DF E0 [08:52:12]Write to MH i2c: E2 0D 00 D5 05 80 0D 02 02 05 00 A2 55 48 DF E0 00 00 5C [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 03 00 D5 05 00 90 00 4E [08:52:12]RAPDU: 90 00 [08:52:12]wFMCommunicate OK [08:52:12]wFMCommunicate request_size=4 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 0D 03 02 [08:52:12]Write to MH i2c: E2 08 00 D6 05 80 0D 03 02 00 00 00 00 56 [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 0B 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 0B 00 D6 05 00 73 2E 88 AF 0E 46 EF 74 90 00 E6 [08:52:12]RAPDU: 73 2E 88 AF 0E 46 EF 74 90 00 [08:52:12]wFMCommunicate OK [08:52:12]SAM_PROTO_SignData done [08:52:12]FM_MakeSignedData done [08:52:12]CreateOFDProtocolMessage [08:52:12]wFMCommunicate request_size=4 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 11 00 00 [08:52:12]Write to MH i2c: E2 08 00 D7 05 80 11 00 00 00 00 00 00 56 [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 17 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 17 00 D7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B6 [08:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:52:12]wFMCommunicate OK [08:52:12]CreateOFDProtocolMessage done [08:52:12]OFDSenderStorePacket 162753 [08:52:12]StoreOFDPacket docnum=162753 [08:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 74 09 07 01 70 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 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 BB 91 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C1 7B 02 00 35 04 06 00 95 A2 55 48 DF E0 73 2E 88 AF 0E 46 EF 74 [08:52:12]CheckFolder [08:52:12]dirname=/storage/ofd_packets [08:52:12]CheckFolder done [08:52:12]ProducePacketName [08:52:12]name=ofd_packets/00162753 [08:52:12]NVStorageSaveData ofd_packets/00162753 [08:52:12]File name is /storage/ofd_packets/00162753 [08:52:12]Write 301 bytes [08:52:12]NVStorageSaveData done [08:52:12]OFDSenderStorePacket done [08:52:12]KKMCreateOFDPacket done [08:52:12]NVStorageSaveData kkm_last_timestamp [08:52:12]File name is /storage/kkm_last_timestamp [08:52:12]Write 4 bytes [08:52:12]NVStorageSaveData done [08:52:12]ExternCall_PrintAddStr [08:52:12]wPrintStart [08:52:12]Write to MH i2c: 01 00 00 D8 05 DD [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: 01 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: 01 07 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: 01 07 00 D8 05 00 00 00 00 00 FF 0F F2 [08:52:12]RasterBufferAndPrint [08:52:12]line Счет N : (1)1319341 [08:52:12]line ИНН: 02508201610067 [08:52:12]line Контрольно-Кассовый Чек [08:52:12]line ПРОДАЖА [08:52:12]line ТРК (МРК, ГНК) : 44 [08:52:12]line Товар: 2710124500 [08:52:12]line Аи-95-К-5 [08:52:12]line 13.450 * 74.40 [08:52:12]line = 1000.68 [08:52:12]line НДС 12% НСП 1% [08:52:12]line > о реализуемом товаре [08:52:12]line ОКРУГЛЕНИЕ: -0.68 [08:52:12]line ИТОГО: 1000.00 [08:52:12]line Внесено: 1000.00 [08:52:12]line СДАЧА: 0.00 [08:52:12]line НСП 1% : 8.86 [08:52:12]line НДС 12% : 106.27 [08:52:12]line Наличными: 1000.00 [08:52:12]line Безнал.: 0.00 [08:52:12]line Место: АЗС № 140 "Партнер Нефть" [08:52:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:52:12]line СНО: Общий режим [08:52:12]line Чек 65 14.07.2024 08:52 [08:52:12]line Смена: 463 ФФД: 1.0 [08:52:12]line ЗНМ: 0300000129 [08:52:12]line РНМ: 0000000000090858 [08:52:12]line Версия ККМ: 001 [08:52:12]line ФМ: 0000000000874899 [08:52:12]line ФД: 162753 [08:52:12]line ФПД: 164524448079840 [08:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T085211&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162753&fm=164524448079840&tin=02508201610067®Number=0000000000090858&sum=100000 [08:52:13]OFD Sender: Processing packet 162753 [packets to send 106, broken 105] [08:52:13]ProducePacketName [08:52:13]name=ofd_packets/00162753 [08:52:13]OFD Sender: To server: pG, [08:52:13]CommunicateWithHost lk.salyk.kg:30040 [08:52:13]ConnectInit lk.salyk.kg [08:52:13]written 0, free lines is 4095 [08:52:13]Connected sock=10 [08:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 74 09 07 01 70 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 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 BB 91 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C1 7B 02 00 35 04 06 00 95 A2 55 48 DF E0 73 2E 88 AF 0E 46 EF 74 [08:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D9 80 47 00 F6 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C1 7B 02 00 F4 03 04 00 C9 3D 93 66 B6 04 01 00 00 4E F7 09 77 CA 6F 8B 66 [08:52:13]CommunicateWithHost err = 0 [08:52:13]CheckOFDResponse [08:52:13]1017 (14) - 77093643461234 [08:52:13]1041 (16) - 0000000000874899 [08:52:13]1040 (4) - 162753 [08:52:13]1012 (4) - 14.07.2024 02:54 [08:52:13]1206 (1) - 0 [08:52:13]OFD Sender: Remove packet 162753 [08:52:13]ProducePacketName [08:52:13]name=ofd_packets/00162753 [08:52:13]NVStorageDeleteData [08:52:13]Write to MH i2c: 01 00 00 03 06 09 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: 01 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: 01 07 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: 01 07 00 03 06 00 00 00 00 00 D4 0C F0 [08:52:13]RasterBufferAndPrint [08:52:13]line [08:52:13]line [08:52:13]line [08:52:13]line [08:52:13]line [08:52:13]written 0, free lines is 3290 [08:52:13]MH_Cut [08:52:13]Write to MH i2c: D1 01 00 0A 06 01 E2 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: D1 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: D1 01 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: D1 01 00 0A 06 00 E1 [08:52:13]Write to MH i2c: 01 00 00 0B 06 11 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]OFD Sender: No OFD packet to send [08:52:14]*** Cut start [08:52:14]*** Purtial cut [08:52:14]*** Stage 1: CUTSNS_PIN = 1 [08:52:14]Read from MH i2c: 01 [08:52:14]MH_I2C_Read... [08:52:14]*** Stop cut motor [08:52:14]*** Cut end [08:52:14]Read from MH i2c: 01 07 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: 01 07 00 0B 06 00 00 00 00 00 FF 0F 26 [08:52:14]process_action close_receipt done [08:52:14]requested_data is exist [08:52:14]produce_requested_data [08:52:14]requested_item fm.sn is exist - process it [08:52:14]wFMCommunicate request_size=4 [08:52:14]MH_SAM_APDU [08:52:14]CAPDU: 80 11 00 00 [08:52:14]Write to MH i2c: E2 08 00 0C 06 80 11 00 00 00 00 00 00 8C [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:14]Read from MH i2c: E2 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 17 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 17 00 0C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EC [08:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:52:14]wFMCommunicate OK [08:52:14]requested_item fd.num is exist - process it [08:52:14]SAM_PROTO_GetFieldsCounters [08:52:14]wFMCommunicate request_size=4 [08:52:14]MH_SAM_APDU [08:52:14]CAPDU: 80 13 00 00 [08:52:14]Write to MH i2c: E2 08 00 0D 06 80 13 00 00 00 00 00 00 8F [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:14]Read from MH i2c: E2 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 62 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 62 00 0D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C1 7B 02 00 0E 04 04 00 CF 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 93 [08:52:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C1 7B 02 00 0E 04 04 00 CF 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 [08:52:14]wFMCommunicate OK [08:52:14]SAM_PROTO_GetFieldsCounters done [08:52:14]requested_item shift.num is exist - process it [08:52:14]requested_item shift.opened is exist - process it [08:52:14]req_shift_opened [08:52:14]FM_GetShiftState [08:52:14]SAM_PROTO_GetShiftState [08:52:14]wFMCommunicate request_size=4 [08:52:14]MH_SAM_APDU [08:52:14]CAPDU: 80 13 01 00 [08:52:14]Write to MH i2c: E2 08 00 0E 06 80 13 01 00 00 00 00 00 91 [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:14]Read from MH i2c: E2 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 0E 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 0E 00 0E 06 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C7 [08:52:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:52:14]wFMCommunicate OK [08:52:14]SAM_PROTO_GetShiftState done [08:52:14]FM_GetShiftState done [08:52:14]req_shift_opened done [08:52:14]requested_item shift.open_date is exist - process it [08:52:14]req_shift_open_date [08:52:14]req_shift_open_date done [08:52:14]produce_requested_data done [08:52:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162753,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:52:14]process_action_free close_receipt [08:52:14]json_value_free [08:52:14]json_value_free done [08:52:14]process_json_proto returns [08:52:14]Send response to host [08:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162753,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:52:14]free response buf [08:52:14]execute_script done [08:52:14]execute_script returns [08:52:14]free content buf [08:52:14]Sock 9.Close socket [08:52:14]Sock 9.Thread stoped [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]accept exits with 7 [08:53:58]New connection [08:53:58]New thread 3066879332 created [08:53:58]Thread 3066735972 joined [08:53:58]Waiting for new connection... [08:53:58] Sock 7.Parse request [08:53:58]Sock 7.Check first char [08:53:58]Sock 7.First char is OK [08:53:58]request: POST /json_proto HTTP/1.0 [08:53:58]Method: POST [08:53:58]URL: /json_proto [08:53:58]Method is POST - this is cgi request [08:53:58]url: /json_proto [08:53:58]query_string will be loaded in cgi processing [08:53:58]execute_cgi json_proto POST (null) [08:53:58]execute_cgi path=json_proto method=POST [08:53:58]POST find Content-Length [08:53:58]Host: 172.17.39.67:8080 [08:53:58]Content-Length: 688 [08:53:58]Content-Type: application/json [08:53:58] [08:53:58]POST finish read [08:53:58]Found Content-Length = 688 [08:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:53:58]execute_script... [08:53: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)1319342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:53:58]POST & json_proto [08:53:58]process_json_proto [08:53:58]json parsed OK: [08:53:58]protocol is kg_v1.0 [08:53:58]action value=close_receipt [08:53:58]process_action close_receipt [08:53:58]cmd_close_receipt [08:53:58]MH_GetDate [08:53:58]Write to MH i2c: F0 00 00 0F 06 04 [08:53:58]Write i2c OK [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: F0 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: F0 09 00 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: F0 09 00 0F 06 00 26 92 93 66 B6 85 93 66 F2 [08:53:58]GetLastDocTimeStamp 1720947131 [08:53:58]current date 1720947238 [08:53:58]FM_GetShiftState [08:53:58]SAM_PROTO_GetShiftState [08:53:58]wFMCommunicate request_size=4 [08:53:58]MH_SAM_APDU [08:53:58]CAPDU: 80 13 01 00 [08:53:58]Write to MH i2c: E2 08 00 10 06 80 13 01 00 00 00 00 00 93 [08:53:58]Write i2c OK [08:53:58]MH_I2C_Read... [08:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:58]Read from MH i2c: E2 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: E2 0E 00 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: E2 0E 00 10 06 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C9 [08:53:58]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:53:58]wFMCommunicate OK [08:53:58]SAM_PROTO_GetShiftState done [08:53:58]FM_GetShiftState done [08:53:58]opened in 1720915483 [08:53:58]opened+sec_in_day 1721001883 [08:53:58]quantity*price = 100042 [08:53:58]sum+1 = 100044 [08:53:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 66 14.07.2024 08:53 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162754 ФПД: 111414284736247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T085358&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162754&fm=111414284736247&tin=02508201610067®Number=0000000000090858&sum=100000 [08:53:59]StoreToDocumentArchive [08:53:59]shift 463 fd 162754 [08:53:59]save to /storage/0463/doc_00162754 [08:53:59]save last doc name /storage/0463/doc_00162754 to /storage/kkm_last_doc_name [08:53:59]save OK [08:53:59]Clear old archive folders... [08:53:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:53:59]tlvbuf is 0121FB40 [08:53:59]SAM_PROTO_ClearQueue [08:53:59]wFMCommunicate request_size=4 [08:53:59]MH_SAM_APDU [08:53:59]CAPDU: 80 09 00 00 [08:53:59]Write to MH i2c: E2 08 00 1D 06 80 09 00 00 00 00 00 00 95 [08:53:59]Write i2c OK [08:53:59]MH_I2C_Read... [08:53:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:59]Read from MH i2c: E2 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 03 00 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 03 00 1D 06 00 90 00 97 [08:53:59]RAPDU: 90 00 [08:53:59]wFMCommunicate OK [08:53:59]SAM_PROTO_ClearQueue done [08:53:59]KKMCreateOFDPacket [08:53:59]OFDProtocolAddRootSTLVToBuf [08:53:59]FM_MakeSignedData [08:53:59]FM_MakeSignedData [08:53:59]SAM_PROTO_SignData [08:53:59]wFMCommunicate request_size=4 [08:53:59]MH_SAM_APDU [08:53:59]CAPDU: 80 0D 01 02 [08:53:59]Write to MH i2c: E2 08 00 1E 06 80 0D 01 02 00 00 00 00 9D [08:53:59]Write i2c OK [08:53:59]MH_I2C_Read... [08:53:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:59]Read from MH i2c: E2 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 03 00 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 03 00 1E 06 00 90 00 98 [08:53:59]RAPDU: 90 00 [08:53:59]wFMCommunicate OK [08:53:59]wFMCommunicate request_size=255 [08:53:59]MH_SAM_APDU [08:53:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 26 92 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C2 7B 02 00 35 04 06 00 [08:53:59]Write to MH i2c: E2 02 01 1F 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 26 92 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C2 7B 02 00 35 04 06 00 00 00 38 [08:53:59]Write i2c OK [08:53:59]MH_I2C_Read... [08:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:59]Read from MH i2c: E2 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 03 00 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 03 00 1F 06 00 90 00 99 [08:53:59]RAPDU: 90 00 [08:53:59]wFMCommunicate OK [08:53:59]wFMCommunicate request_size=11 [08:53:59]MH_SAM_APDU [08:53:59]CAPDU: 80 0D 02 02 06 65 54 A8 DD 56 F7 [08:53:59]Write to MH i2c: E2 0E 00 20 06 80 0D 02 02 06 00 65 54 A8 DD 56 F7 00 00 37 [08:53:59]Write i2c OK [08:53:59]MH_I2C_Read... [08:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:59]Read from MH i2c: E2 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 03 00 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 03 00 20 06 00 90 00 9A [08:53:59]RAPDU: 90 00 [08:53:59]wFMCommunicate OK [08:53:59]wFMCommunicate request_size=4 [08:53:59]MH_SAM_APDU [08:53:59]CAPDU: 80 0D 03 02 [08:53:59]Write to MH i2c: E2 08 00 21 06 80 0D 03 02 00 00 00 00 A2 [08:53:59]Write i2c OK [08:53:59]MH_I2C_Read... [08:53:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:59]Read from MH i2c: E2 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 0B 00 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 0B 00 21 06 00 A6 35 FA 22 5A 3E BF DB 90 00 CC [08:53:59]RAPDU: A6 35 FA 22 5A 3E BF DB 90 00 [08:53:59]wFMCommunicate OK [08:53:59]SAM_PROTO_SignData done [08:53:59]FM_MakeSignedData done [08:53:59]CreateOFDProtocolMessage [08:53:59]wFMCommunicate request_size=4 [08:53:59]MH_SAM_APDU [08:53:59]CAPDU: 80 11 00 00 [08:53:59]Write to MH i2c: E2 08 00 22 06 80 11 00 00 00 00 00 00 A2 [08:53:59]Write i2c OK [08:53:59]MH_I2C_Read... [08:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:59]Read from MH i2c: E2 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 17 00 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 17 00 22 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 02 [08:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:53:59]wFMCommunicate OK [08:53:59]CreateOFDProtocolMessage done [08:53:59]OFDSenderStorePacket 162754 [08:53:59]StoreOFDPacket docnum=162754 [08:53:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 12 F4 08 01 09 30 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 26 92 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C2 7B 02 00 35 04 06 00 65 54 A8 DD 56 F7 A6 35 FA 22 5A 3E BF DB [08:53:59]CheckFolder [08:53:59]dirname=/storage/ofd_packets [08:53:59]CheckFolder done [08:53:59]ProducePacketName [08:53:59]name=ofd_packets/00162754 [08:53:59]NVStorageSaveData ofd_packets/00162754 [08:53:59]File name is /storage/ofd_packets/00162754 [08:53:59]Write 302 bytes [08:53:59]NVStorageSaveData done [08:53:59]OFDSenderStorePacket done [08:53:59]KKMCreateOFDPacket done [08:53:59]NVStorageSaveData kkm_last_timestamp [08:53:59]File name is /storage/kkm_last_timestamp [08:53:59]Write 4 bytes [08:53:59]NVStorageSaveData done [08:53:59]ExternCall_PrintAddStr [08:53:59]wPrintStart [08:53:59]Write to MH i2c: 01 00 00 23 06 29 [08:53:59]Write i2c OK [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: 01 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: 01 07 00 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: 01 07 00 23 06 00 00 00 00 00 FF 0F 3E [08:53:59]RasterBufferAndPrint [08:53:59]line Счет N : (1)1319342 [08:53:59]line ИНН: 02508201610067 [08:53:59]line Контрольно-Кассовый Чек [08:53:59]line ПРОДАЖА [08:53:59]line ТРК (МРК, ГНК) : 21 [08:53:59]line Товар: 2710194210 [08:53:59]line ДТ(л)-К-5 [08:53:59]line 13.780 * 72.60 [08:53:59]line = 1000.43 [08:53:59]line НДС 12% НСП 1% [08:53:59]line > о реализуемом товаре [08:53:59]line ОКРУГЛЕНИЕ: -0.43 [08:53:59]line ИТОГО: 1000.00 [08:53:59]line Внесено: 1000.00 [08:53:59]line СДАЧА: 0.00 [08:53:59]line НСП 1% : 8.85 [08:53:59]line НДС 12% : 106.24 [08:53:59]line Наличными: 1000.00 [08:53:59]line Безнал.: 0.00 [08:53:59]line Место: АЗС № 140 "Партнер Нефть" [08:53:59]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:53:59]line СНО: Общий режим [08:53:59]line Чек 66 14.07.2024 08:53 [08:53:59]line Смена: 463 ФФД: 1.0 [08:53:59]line ЗНМ: 0300000129 [08:53:59]line РНМ: 0000000000090858 [08:53:59]line Версия ККМ: 001 [08:53:59]line ФМ: 0000000000874899 [08:53:59]line ФД: 162754 [08:53:59]line ФПД: 111414284736247 [08:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T085358&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162754&fm=111414284736247&tin=02508201610067®Number=0000000000090858&sum=100000 [08:54:00]OFD Sender: Processing packet 162754 [packets to send 106, broken 105] [08:54:00]ProducePacketName [08:54:00]name=ofd_packets/00162754 [08:54:00]OFD Sender: To server: pG, [08:54:00]CommunicateWithHost lk.salyk.kg:30040 [08:54:00]ConnectInit lk.salyk.kg [08:54:00]written 0, free lines is 4095 [08:54:00]Connected sock=11 [08:54:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 12 F4 08 01 09 30 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 26 92 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C2 7B 02 00 35 04 06 00 65 54 A8 DD 56 F7 A6 35 FA 22 5A 3E BF DB [08:54:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 30 CC 47 00 94 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C2 7B 02 00 F4 03 04 00 34 3E 93 66 B6 04 01 00 00 45 DF DA 77 9E 16 B1 29 [08:54:00]CommunicateWithHost err = 0 [08:54:00]CheckOFDResponse [08:54:00]1017 (14) - 77093643461234 [08:54:00]1041 (16) - 0000000000874899 [08:54:00]1040 (4) - 162754 [08:54:00]1012 (4) - 14.07.2024 02:55 [08:54:00]1206 (1) - 0 [08:54:00]OFD Sender: Remove packet 162754 [08:54:00]ProducePacketName [08:54:00]name=ofd_packets/00162754 [08:54:00]NVStorageDeleteData [08:54:00]Write to MH i2c: 01 00 00 4E 06 54 [08:54:00]Write i2c OK [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: 01 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: 01 07 00 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: 01 07 00 4E 06 00 00 00 00 00 D4 0C 3B [08:54:00]RasterBufferAndPrint [08:54:00]line [08:54:00]line [08:54:00]line [08:54:00]line [08:54:00]line [08:54:00]written 0, free lines is 3290 [08:54:00]MH_Cut [08:54:00]Write to MH i2c: D1 01 00 55 06 01 2D [08:54:00]Write i2c OK [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: D1 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: D1 01 00 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: D1 01 00 55 06 00 2C [08:54:00]Write to MH i2c: 01 00 00 56 06 5C [08:54:00]Write i2c OK [08:54:00]MH_I2C_Read... [08:54:01]OFD Sender: No OFD packet to send [08:54:01]*** Cut start [08:54:01]*** Purtial cut [08:54:01]*** CUTSNS_PIN = 0 [08:54:01]*** Stage 1: CUTSNS_PIN = 1 [08:54:03]Read from MH i2c: 01 [08:54:03]MH_I2C_Read... [08:54:03]*** Stop cut motor [08:54:03]*** Cut end [08:54:03]Read from MH i2c: 01 07 00 [08:54:03]MH_I2C_Read... [08:54:03]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 FF 0F 71 [08:54:03]process_action close_receipt done [08:54:03]requested_data is exist [08:54:03]produce_requested_data [08:54:03]requested_item fm.sn is exist - process it [08:54:03]wFMCommunicate request_size=4 [08:54:03]MH_SAM_APDU [08:54:03]CAPDU: 80 11 00 00 [08:54:03]Write to MH i2c: E2 08 00 57 06 80 11 00 00 00 00 00 00 D7 [08:54:03]Write i2c OK [08:54:03]MH_I2C_Read... [08:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:03]Read from MH i2c: E2 [08:54:03]MH_I2C_Read... [08:54:03]Read from MH i2c: E2 17 00 [08:54:03]MH_I2C_Read... [08:54:03]Read from MH i2c: E2 17 00 57 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 37 [08:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:54:03]wFMCommunicate OK [08:54:03]requested_item fd.num is exist - process it [08:54:03]SAM_PROTO_GetFieldsCounters [08:54:03]wFMCommunicate request_size=4 [08:54:03]MH_SAM_APDU [08:54:03]CAPDU: 80 13 00 00 [08:54:03]Write to MH i2c: E2 08 00 58 06 80 13 00 00 00 00 00 00 DA [08:54:03]Write i2c OK [08:54:03]MH_I2C_Read... [08:54:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:03]Read from MH i2c: E2 [08:54:03]MH_I2C_Read... [08:54:03]Read from MH i2c: E2 62 00 [08:54:03]MH_I2C_Read... [08:54:03]Read from MH i2c: E2 62 00 58 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C2 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [08:54:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C2 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:03]wFMCommunicate OK [08:54:03]SAM_PROTO_GetFieldsCounters done [08:54:03]requested_item shift.num is exist - process it [08:54:03]requested_item shift.opened is exist - process it [08:54:03]req_shift_opened [08:54:03]FM_GetShiftState [08:54:03]SAM_PROTO_GetShiftState [08:54:03]wFMCommunicate request_size=4 [08:54:03]MH_SAM_APDU [08:54:03]CAPDU: 80 13 01 00 [08:54:03]Write to MH i2c: E2 08 00 59 06 80 13 01 00 00 00 00 00 DC [08:54:03]Write i2c OK [08:54:03]MH_I2C_Read... [08:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:03]Read from MH i2c: E2 [08:54:03]MH_I2C_Read... [08:54:03]Read from MH i2c: E2 0E 00 [08:54:03]MH_I2C_Read... [08:54:03]Read from MH i2c: E2 0E 00 59 06 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 12 [08:54:03]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:54:03]wFMCommunicate OK [08:54:03]SAM_PROTO_GetShiftState done [08:54:03]FM_GetShiftState done [08:54:03]req_shift_opened done [08:54:03]requested_item shift.open_date is exist - process it [08:54:03]req_shift_open_date [08:54:03]req_shift_open_date done [08:54:03]produce_requested_data done [08:54:03]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162754,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:54:03]process_action_free close_receipt [08:54:03]json_value_free [08:54:03]json_value_free done [08:54:03]process_json_proto returns [08:54:03]Send response to host [08:54:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162754,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:54:03]free response buf [08:54:03]execute_script done [08:54:03]execute_script returns [08:54:03]free content buf [08:54:03]Sock 7.Close socket [08:54:03]Sock 7.Thread stoped [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:35]accept exits with 9 [08:56:35]New connection [08:56:35]New thread 3066735972 created [08:56:35]Thread 3066879332 joined [08:56:35]Waiting for new connection... [08:56:35] Sock 9.Parse request [08:56:35]Sock 9.Check first char [08:56:35]Sock 9.First char is OK [08:56:35]request: POST /json_proto HTTP/1.0 [08:56:35]Method: POST [08:56:35]URL: /json_proto [08:56:35]Method is POST - this is cgi request [08:56:35]url: /json_proto [08:56:35]query_string will be loaded in cgi processing [08:56:35]execute_cgi json_proto POST (null) [08:56:35]execute_cgi path=json_proto method=POST [08:56:35]POST find Content-Length [08:56:35]Host: 172.17.39.67:8080 [08:56:35]Content-Length: 817 [08:56:35]Content-Type: application/json [08:56:35] [08:56:35]POST finish read [08:56:35]Found Content-Length = 817 [08:56:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.130, "sum" : 340.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 340.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:35]execute_script... [08:56: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)1319343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.130, "sum" : 340.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 340.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:35]POST & json_proto [08:56:35]process_json_proto [08:56:35]json parsed OK: [08:56:35]protocol is kg_v1.0 [08:56:35]action value=close_receipt [08:56:35]process_action close_receipt [08:56:35]cmd_close_receipt [08:56:35]MH_GetDate [08:56:35]Write to MH i2c: F0 00 00 5A 06 4F [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: F0 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: F0 09 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: F0 09 00 5A 06 00 C3 92 93 66 B6 85 93 66 DA [08:56:35]GetLastDocTimeStamp 1720947238 [08:56:35]current date 1720947395 [08:56:35]FM_GetShiftState [08:56:35]SAM_PROTO_GetShiftState [08:56:35]wFMCommunicate request_size=4 [08:56:35]MH_SAM_APDU [08:56:35]CAPDU: 80 13 01 00 [08:56:35]Write to MH i2c: E2 08 00 5B 06 80 13 01 00 00 00 00 00 DE [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:35]Read from MH i2c: E2 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 0E 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 0E 00 5B 06 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 14 [08:56:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:56:35]wFMCommunicate OK [08:56:35]SAM_PROTO_GetShiftState done [08:56:35]FM_GetShiftState done [08:56:35]opened in 1720915483 [08:56:35]opened+sec_in_day 1721001883 [08:56:35]quantity*price = 34011 [08:56:35]sum+1 = 34013 [08:56:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.12 НСП 1% : 3.01 НДС 12% : 36.12 Наличными: 0.00 Безнал.: 340.12 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 67 14.07.2024 08:56 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162755 ФПД: 8315780824936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T085635&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162755&fm=8315780824936&tin=02508201610067®Number=0000000000090858&sum=34012 [08:56:36]StoreToDocumentArchive [08:56:36]shift 463 fd 162755 [08:56:36]save to /storage/0463/doc_00162755 [08:56:36]save last doc name /storage/0463/doc_00162755 to /storage/kkm_last_doc_name [08:56:36]save OK [08:56:36]Clear old archive folders... [08:56:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:36]tlvbuf is 0122A200 [08:56:36]SAM_PROTO_ClearQueue [08:56:36]wFMCommunicate request_size=4 [08:56:36]MH_SAM_APDU [08:56:36]CAPDU: 80 09 00 00 [08:56:36]Write to MH i2c: E2 08 00 68 06 80 09 00 00 00 00 00 00 E0 [08:56:36]Write i2c OK [08:56:36]MH_I2C_Read... [08:56:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:36]Read from MH i2c: E2 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 03 00 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 03 00 68 06 00 90 00 E2 [08:56:36]RAPDU: 90 00 [08:56:36]wFMCommunicate OK [08:56:36]SAM_PROTO_ClearQueue done [08:56:36]KKMCreateOFDPacket [08:56:36]OFDProtocolAddRootSTLVToBuf [08:56:36]FM_MakeSignedData [08:56:36]FM_MakeSignedData [08:56:36]SAM_PROTO_SignData [08:56:36]wFMCommunicate request_size=4 [08:56:36]MH_SAM_APDU [08:56:36]CAPDU: 80 0D 01 02 [08:56:36]Write to MH i2c: E2 08 00 69 06 80 0D 01 02 00 00 00 00 E8 [08:56:36]Write i2c OK [08:56:36]MH_I2C_Read... [08:56:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:36]Read from MH i2c: E2 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 03 00 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 03 00 69 06 00 90 00 E3 [08:56:36]RAPDU: 90 00 [08:56:36]wFMCommunicate OK [08:56:36]wFMCommunicate request_size=255 [08:56:36]MH_SAM_APDU [08:56: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 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C3 92 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C3 7B 02 00 35 04 06 00 07 [08:56:36]Write to MH i2c: E2 02 01 6A 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 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C3 92 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C3 7B 02 00 35 04 06 00 07 00 00 41 [08:56:36]Write i2c OK [08:56:36]MH_I2C_Read... [08:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:36]Read from MH i2c: E2 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 03 00 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 03 00 6A 06 00 90 00 E4 [08:56:36]RAPDU: 90 00 [08:56:36]wFMCommunicate OK [08:56:36]wFMCommunicate request_size=10 [08:56:36]MH_SAM_APDU [08:56:36]CAPDU: 80 0D 02 02 05 90 2B 29 7F 68 [08:56:36]Write to MH i2c: E2 0D 00 6B 06 80 0D 02 02 05 00 90 2B 29 7F 68 00 00 C0 [08:56:36]Write i2c OK [08:56:36]MH_I2C_Read... [08:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:36]Read from MH i2c: E2 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 03 00 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 03 00 6B 06 00 90 00 E5 [08:56:36]RAPDU: 90 00 [08:56:36]wFMCommunicate OK [08:56:36]wFMCommunicate request_size=4 [08:56:36]MH_SAM_APDU [08:56:36]CAPDU: 80 0D 03 02 [08:56:36]Write to MH i2c: E2 08 00 6C 06 80 0D 03 02 00 00 00 00 ED [08:56:36]Write i2c OK [08:56:36]MH_I2C_Read... [08:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:36]Read from MH i2c: E2 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 0B 00 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 0B 00 6C 06 00 AF 80 EF 65 BD FE 0B 57 90 00 8E [08:56:36]RAPDU: AF 80 EF 65 BD FE 0B 57 90 00 [08:56:36]wFMCommunicate OK [08:56:36]SAM_PROTO_SignData done [08:56:36]FM_MakeSignedData done [08:56:36]CreateOFDProtocolMessage [08:56:36]wFMCommunicate request_size=4 [08:56:36]MH_SAM_APDU [08:56:36]CAPDU: 80 11 00 00 [08:56:36]Write to MH i2c: E2 08 00 6D 06 80 11 00 00 00 00 00 00 ED [08:56:36]Write i2c OK [08:56:36]MH_I2C_Read... [08:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:37]Read from MH i2c: E2 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 17 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 17 00 6D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4D [08:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:56:37]wFMCommunicate OK [08:56:37]CreateOFDProtocolMessage done [08:56:37]OFDSenderStorePacket 162755 [08:56:37]StoreOFDPacket docnum=162755 [08:56:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 CA A5 07 01 2F 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C3 92 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C3 7B 02 00 35 04 06 00 07 90 2B 29 7F 68 AF 80 EF 65 BD FE 0B 57 [08:56:37]CheckFolder [08:56:37]dirname=/storage/ofd_packets [08:56:37]CheckFolder done [08:56:37]ProducePacketName [08:56:37]name=ofd_packets/00162755 [08:56:37]NVStorageSaveData ofd_packets/00162755 [08:56:37]File name is /storage/ofd_packets/00162755 [08:56:37]Write 301 bytes [08:56:37]NVStorageSaveData done [08:56:37]OFDSenderStorePacket done [08:56:37]KKMCreateOFDPacket done [08:56:37]NVStorageSaveData kkm_last_timestamp [08:56:37]File name is /storage/kkm_last_timestamp [08:56:37]Write 4 bytes [08:56:37]NVStorageSaveData done [08:56:37]OFD Sender: Processing packet 162755 [packets to send 106, broken 105] [08:56:37]ProducePacketName [08:56:37]name=ofd_packets/00162755 [08:56:37]OFD Sender: To server: pG, [08:56:37]CommunicateWithHost lk.salyk.kg:30040 [08:56:37]ConnectInit lk.salyk.kg [08:56:37]ExternCall_PrintAddStr [08:56:37]wPrintStart [08:56:37]Write to MH i2c: 01 00 00 6E 06 74 [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: 01 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: 01 07 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: 01 07 00 6E 06 00 00 00 00 00 FF 0F 89 [08:56:37]RasterBufferAndPrint [08:56:37]line Счет N : (1)1319343 [08:56:37]line ИНН: 02508201610067 [08:56:37]line Контрольно-Кассовый Чек [08:56:37]line ПРОДАЖА [08:56:37]line ТРК (МРК, ГНК) : 33 [08:56:37]line Товар: 2710124130 [08:56:37]line Аи-92-К-5 [08:56:37]line 5.130 * 66.30 [08:56:37]line = 340.12 [08:56:37]line НДС 12% НСП 1% [08:56:37]line > о реализуемом товаре [08:56:37]line ИТОГО: 340.12 [08:56:37]line НСП 1% : 3.01 [08:56:37]line НДС 12% : 36.12 [08:56:37]line Наличными: 0.00 [08:56:37]line Безнал.: 340.12 [08:56:37]line Место: АЗС № 140 "Партнер Нефть" [08:56:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:56:37]line СНО: Общий режим [08:56:37]line Чек 67 14.07.2024 08:56 [08:56:37]line Смена: 463 ФФД: 1.0 [08:56:37]line ЗНМ: 0300000129 [08:56:37]line РНМ: 0000000000090858 [08:56:37]line Версия ККМ: 001 [08:56:37]line Платежная система: Бакай Банк [08:56:37]line ФМ: 0000000000874899 [08:56:37]line ФД: 162755 [08:56:37]line ФПД: 8315780824936 [08:56:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T085635&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162755&fm=8315780824936&tin=02508201610067®Number=0000000000090858&sum=34012 [08:56:37]Connected sock=11 [08:56:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 CA A5 07 01 2F 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C3 92 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C3 7B 02 00 35 04 06 00 07 90 2B 29 7F 68 AF 80 EF 65 BD FE 0B 57 [08:56:37]written 0, free lines is 4095 [08:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8F 04 47 00 57 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C3 7B 02 00 F4 03 04 00 D1 3E 93 66 B6 04 01 00 00 62 73 FC B6 1A C3 04 3A [08:56:37]CommunicateWithHost err = 0 [08:56:37]CheckOFDResponse [08:56:37]1017 (14) - 77093643461234 [08:56:37]1041 (16) - 0000000000874899 [08:56:37]1040 (4) - 162755 [08:56:37]1012 (4) - 14.07.2024 02:58 [08:56:37]1206 (1) - 0 [08:56:37]OFD Sender: Remove packet 162755 [08:56:37]ProducePacketName [08:56:37]name=ofd_packets/00162755 [08:56:37]NVStorageDeleteData [08:56:37]Write to MH i2c: 01 00 00 98 06 9E [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: 01 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: 01 07 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: 01 07 00 98 06 00 00 00 00 00 E1 0C 92 [08:56:37]RasterBufferAndPrint [08:56:37]line [08:56:37]line [08:56:37]line [08:56:37]line [08:56:37]line [08:56:37]written 0, free lines is 3302 [08:56:37]MH_Cut [08:56:37]Write to MH i2c: D1 01 00 9F 06 01 77 [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: D1 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: D1 01 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: D1 01 00 9F 06 00 76 [08:56:37]Write to MH i2c: 01 00 00 A0 06 A6 [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:38]OFD Sender: No OFD packet to send [08:56:38]*** Cut start [08:56:38]*** Purtial cut [08:56:38]*** Stage 1: CUTSNS_PIN = 1 [08:56:38]Read from MH i2c: 01 [08:56:38]MH_I2C_Read... [08:56:38]*** Stop cut motor [08:56:38]*** Cut end [08:56:38]Read from MH i2c: 01 07 00 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: 01 07 00 A0 06 00 00 00 00 00 FF 0F BB [08:56:38]process_action close_receipt done [08:56:38]requested_data is exist [08:56:38]produce_requested_data [08:56:38]requested_item fm.sn is exist - process it [08:56:38]wFMCommunicate request_size=4 [08:56:38]MH_SAM_APDU [08:56:38]CAPDU: 80 11 00 00 [08:56:38]Write to MH i2c: E2 08 00 A1 06 80 11 00 00 00 00 00 00 21 [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:38]Read from MH i2c: E2 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 17 00 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 17 00 A1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 81 [08:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:56:38]wFMCommunicate OK [08:56:38]requested_item fd.num is exist - process it [08:56:38]SAM_PROTO_GetFieldsCounters [08:56:38]wFMCommunicate request_size=4 [08:56:38]MH_SAM_APDU [08:56:38]CAPDU: 80 13 00 00 [08:56:38]Write to MH i2c: E2 08 00 A2 06 80 13 00 00 00 00 00 00 24 [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:39]Read from MH i2c: E2 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 62 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 62 00 A2 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C3 7B 02 00 0E 04 04 00 CF 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 30 [08:56:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C3 7B 02 00 0E 04 04 00 CF 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 [08:56:39]wFMCommunicate OK [08:56:39]SAM_PROTO_GetFieldsCounters done [08:56:39]requested_item shift.num is exist - process it [08:56:39]requested_item shift.opened is exist - process it [08:56:39]req_shift_opened [08:56:39]FM_GetShiftState [08:56:39]SAM_PROTO_GetShiftState [08:56:39]wFMCommunicate request_size=4 [08:56:39]MH_SAM_APDU [08:56:39]CAPDU: 80 13 01 00 [08:56:39]Write to MH i2c: E2 08 00 A3 06 80 13 01 00 00 00 00 00 26 [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:39]Read from MH i2c: E2 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 0E 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 0E 00 A3 06 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5C [08:56:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [08:56:39]wFMCommunicate OK [08:56:39]SAM_PROTO_GetShiftState done [08:56:39]FM_GetShiftState done [08:56:39]req_shift_opened done [08:56:39]requested_item shift.open_date is exist - process it [08:56:39]req_shift_open_date [08:56:39]req_shift_open_date done [08:56:39]produce_requested_data done [08:56:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162755,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [08:56:39]process_action_free close_receipt [08:56:39]json_value_free [08:56:39]json_value_free done [08:56:39]process_json_proto returns [08:56:39]Send response to host [08:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162755,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [08:56:39]free response buf [08:56:39]execute_script done [08:56:39]execute_script returns [08:56:39]free content buf [08:56:39]Sock 9.Close socket [08:56:39]Sock 9.Thread stoped [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:49]accept exits with 7 [09:00:49]New connection [09:00:49]New thread 3066879332 created [09:00:49]Thread 3066735972 joined [09:00:49]Waiting for new connection... [09:00:49] Sock 7.Parse request [09:00:49]Sock 7.Check first char [09:00:49]Sock 7.First char is OK [09:00:49]request: POST /json_proto HTTP/1.0 [09:00:49]Method: POST [09:00:49]URL: /json_proto [09:00:49]Method is POST - this is cgi request [09:00:49]url: /json_proto [09:00:49]query_string will be loaded in cgi processing [09:00:49]execute_cgi json_proto POST (null) [09:00:49]execute_cgi path=json_proto method=POST [09:00:49]POST find Content-Length [09:00:49]Host: 172.17.39.67:8080 [09:00:49]Content-Length: 818 [09:00:49]Content-Type: application/json [09:00:49] [09:00:49]POST finish read [09:00:49]Found Content-Length = 818 [09:00:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.080, "sum" : 999.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.80 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:49]execute_script... [09:00: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)1319344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.080, "sum" : 999.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.80 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:49]POST & json_proto [09:00:49]process_json_proto [09:00:49]json parsed OK: [09:00:49]protocol is kg_v1.0 [09:00:49]action value=close_receipt [09:00:49]process_action close_receipt [09:00:49]cmd_close_receipt [09:00:49]MH_GetDate [09:00:49]Write to MH i2c: F0 00 00 A4 06 99 [09:00:49]Write i2c OK [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: F0 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: F0 09 00 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: F0 09 00 A4 06 00 C1 93 93 66 B6 85 93 66 23 [09:00:49]GetLastDocTimeStamp 1720947395 [09:00:49]current date 1720947649 [09:00:49]FM_GetShiftState [09:00:49]SAM_PROTO_GetShiftState [09:00:49]wFMCommunicate request_size=4 [09:00:49]MH_SAM_APDU [09:00:49]CAPDU: 80 13 01 00 [09:00:49]Write to MH i2c: E2 08 00 A5 06 80 13 01 00 00 00 00 00 28 [09:00:49]Write i2c OK [09:00:49]MH_I2C_Read... [09:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:49]Read from MH i2c: E2 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 0E 00 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 0E 00 A5 06 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5E [09:00:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:00:49]wFMCommunicate OK [09:00:49]SAM_PROTO_GetShiftState done [09:00:49]FM_GetShiftState done [09:00:49]opened in 1720915483 [09:00:49]opened+sec_in_day 1721001883 [09:00:49]quantity*price = 99980 [09:00:49]sum+1 = 99981 [09:00:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.80 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 0.00 Безнал.: 999.80 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 68 14.07.2024 09:00 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162756 ФПД: 170407435170126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T090049&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162756&fm=170407435170126&tin=02508201610067®Number=0000000000090858&sum=99980 [09:00:50]StoreToDocumentArchive [09:00:50]shift 463 fd 162756 [09:00:50]save to /storage/0463/doc_00162756 [09:00:50]save last doc name /storage/0463/doc_00162756 to /storage/kkm_last_doc_name [09:00:50]save OK [09:00:50]Clear old archive folders... [09:00:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:50]tlvbuf is 0122BE10 [09:00:50]SAM_PROTO_ClearQueue [09:00:50]wFMCommunicate request_size=4 [09:00:50]MH_SAM_APDU [09:00:50]CAPDU: 80 09 00 00 [09:00:50]Write to MH i2c: E2 08 00 B2 06 80 09 00 00 00 00 00 00 2A [09:00:50]Write i2c OK [09:00:50]MH_I2C_Read... [09:00:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:50]Read from MH i2c: E2 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 03 00 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 03 00 B2 06 00 90 00 2C [09:00:50]RAPDU: 90 00 [09:00:50]wFMCommunicate OK [09:00:50]SAM_PROTO_ClearQueue done [09:00:50]KKMCreateOFDPacket [09:00:50]OFDProtocolAddRootSTLVToBuf [09:00:50]FM_MakeSignedData [09:00:50]FM_MakeSignedData [09:00:50]SAM_PROTO_SignData [09:00:50]wFMCommunicate request_size=4 [09:00:50]MH_SAM_APDU [09:00:50]CAPDU: 80 0D 01 02 [09:00:50]Write to MH i2c: E2 08 00 B3 06 80 0D 01 02 00 00 00 00 32 [09:00:50]Write i2c OK [09:00:50]MH_I2C_Read... [09:00:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:50]Read from MH i2c: E2 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 03 00 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 03 00 B3 06 00 90 00 2D [09:00:50]RAPDU: 90 00 [09:00:50]wFMCommunicate OK [09:00:50]wFMCommunicate request_size=255 [09:00:50]MH_SAM_APDU [09:00: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 E8 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8C 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C1 93 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C4 7B 02 00 35 04 06 00 9A [09:00:50]Write to MH i2c: E2 02 01 B4 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 E8 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8C 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C1 93 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C4 7B 02 00 35 04 06 00 9A 00 00 FE [09:00:50]Write i2c OK [09:00:50]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 B4 06 00 90 00 2E [09:00:51]RAPDU: 90 00 [09:00:51]wFMCommunicate OK [09:00:51]wFMCommunicate request_size=10 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 0D 02 02 05 FC 12 A3 F1 4E [09:00:51]Write to MH i2c: E2 0D 00 B5 06 80 0D 02 02 05 00 FC 12 A3 F1 4E 00 00 2F [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 B5 06 00 90 00 2F [09:00:51]RAPDU: 90 00 [09:00:51]wFMCommunicate OK [09:00:51]wFMCommunicate request_size=4 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 0D 03 02 [09:00:51]Write to MH i2c: E2 08 00 B6 06 80 0D 03 02 00 00 00 00 37 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 0B 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 0B 00 B6 06 00 E4 F0 B2 4B EF 8A C9 F0 90 00 3B [09:00:51]RAPDU: E4 F0 B2 4B EF 8A C9 F0 90 00 [09:00:51]wFMCommunicate OK [09:00:51]SAM_PROTO_SignData done [09:00:51]FM_MakeSignedData done [09:00:51]CreateOFDProtocolMessage [09:00:51]wFMCommunicate request_size=4 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 11 00 00 [09:00:51]Write to MH i2c: E2 08 00 B7 06 80 11 00 00 00 00 00 00 37 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 17 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 17 00 B7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 97 [09:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:00:51]wFMCommunicate OK [09:00:51]CreateOFDProtocolMessage done [09:00:51]OFDSenderStorePacket 162756 [09:00:51]StoreOFDPacket docnum=162756 [09:00:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 03 ED 07 01 92 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 E8 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8C 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C1 93 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C4 7B 02 00 35 04 06 00 9A FC 12 A3 F1 4E E4 F0 B2 4B EF 8A C9 F0 [09:00:51]CheckFolder [09:00:51]dirname=/storage/ofd_packets [09:00:51]CheckFolder done [09:00:51]ProducePacketName [09:00:51]name=ofd_packets/00162756 [09:00:51]NVStorageSaveData ofd_packets/00162756 [09:00:51]File name is /storage/ofd_packets/00162756 [09:00:51]Write 301 bytes [09:00:51]NVStorageSaveData done [09:00:51]OFDSenderStorePacket done [09:00:51]KKMCreateOFDPacket done [09:00:51]NVStorageSaveData kkm_last_timestamp [09:00:51]File name is /storage/kkm_last_timestamp [09:00:51]Write 4 bytes [09:00:51]NVStorageSaveData done [09:00:51]ExternCall_PrintAddStr [09:00:51]wPrintStart [09:00:51]Write to MH i2c: 01 00 00 B8 06 BE [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: 01 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: 01 07 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: 01 07 00 B8 06 00 00 00 00 00 FF 0F D3 [09:00:51]RasterBufferAndPrint [09:00:51]line Счет N : (1)1319344 [09:00:51]line ИНН: 02508201610067 [09:00:51]line Контрольно-Кассовый Чек [09:00:51]line ПРОДАЖА [09:00:51]line ТРК (МРК, ГНК) : 43 [09:00:51]line Товар: 2710124130 [09:00:51]line Аи-92-К-5 [09:00:51]line 15.080 * 66.30 [09:00:51]line = 999.80 [09:00:51]line НДС 12% НСП 1% [09:00:51]line > о реализуемом товаре [09:00:51]line ИТОГО: 999.80 [09:00:51]line НСП 1% : 8.85 [09:00:51]line НДС 12% : 106.17 [09:00:51]line Наличными: 0.00 [09:00:51]line Безнал.: 999.80 [09:00:51]line Место: АЗС № 140 "Партнер Нефть" [09:00:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:00:51]line СНО: Общий режим [09:00:51]line Чек 68 14.07.2024 09:00 [09:00:51]line Смена: 463 ФФД: 1.0 [09:00:51]line ЗНМ: 0300000129 [09:00:51]line РНМ: 0000000000090858 [09:00:51]line Версия ККМ: 001 [09:00:51]line Платежная система: Бакай Банк [09:00:51]line ФМ: 0000000000874899 [09:00:51]line ФД: 162756 [09:00:51]line ФПД: 170407435170126 [09:00:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T090049&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162756&fm=170407435170126&tin=02508201610067®Number=0000000000090858&sum=99980 [09:00:51]written 0, free lines is 4095 [09:00:51]OFD Sender: Processing packet 162756 [packets to send 106, broken 105] [09:00:51]ProducePacketName [09:00:51]name=ofd_packets/00162756 [09:00:51]OFD Sender: To server: pG, [09:00:51]CommunicateWithHost lk.salyk.kg:30040 [09:00:51]ConnectInit lk.salyk.kg [09:00:51]Connected sock=11 [09:00:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 03 ED 07 01 92 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 E8 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8C 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C1 93 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C4 7B 02 00 35 04 06 00 9A FC 12 A3 F1 4E E4 F0 B2 4B EF 8A C9 F0 [09:00:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 93 24 47 00 79 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C4 7B 02 00 F4 03 04 00 CF 3F 93 66 B6 04 01 00 00 FE 6C B0 69 8F 3B 65 81 [09:00:51]CommunicateWithHost err = 0 [09:00:51]CheckOFDResponse [09:00:51]1017 (14) - 77093643461234 [09:00:51]1041 (16) - 0000000000874899 [09:00:51]1040 (4) - 162756 [09:00:51]1012 (4) - 14.07.2024 03:02 [09:00:51]1206 (1) - 0 [09:00:51]OFD Sender: Remove packet 162756 [09:00:51]ProducePacketName [09:00:51]name=ofd_packets/00162756 [09:00:51]NVStorageDeleteData [09:00:51]Write to MH i2c: 01 00 00 E2 06 E8 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: 01 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: 01 07 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: 01 07 00 E2 06 00 00 00 00 00 EF 0C EA [09:00:51]RasterBufferAndPrint [09:00:51]line [09:00:51]line [09:00:51]line [09:00:51]line [09:00:51]line [09:00:51]written 0, free lines is 3318 [09:00:51]MH_Cut [09:00:51]Write to MH i2c: D1 01 00 E9 06 01 C1 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: D1 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: D1 01 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: D1 01 00 E9 06 00 C0 [09:00:51]Write to MH i2c: 01 00 00 EA 06 F0 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:52]OFD Sender: No OFD packet to send [09:00:52]*** Cut start [09:00:52]*** Purtial cut [09:00:52]*** CUTSNS_PIN = 0 [09:00:52]*** Stage 1: CUTSNS_PIN = 1 [09:00:54]Read from MH i2c: 01 [09:00:54]MH_I2C_Read... [09:00:54]*** Stop cut motor [09:00:54]*** Cut end [09:00:54]Read from MH i2c: 01 07 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: 01 07 00 EA 06 00 00 00 00 00 FF 0F 05 [09:00:54]process_action close_receipt done [09:00:54]requested_data is exist [09:00:54]produce_requested_data [09:00:54]requested_item fm.sn is exist - process it [09:00:54]wFMCommunicate request_size=4 [09:00:54]MH_SAM_APDU [09:00:54]CAPDU: 80 11 00 00 [09:00:54]Write to MH i2c: E2 08 00 EB 06 80 11 00 00 00 00 00 00 6B [09:00:54]Write i2c OK [09:00:54]MH_I2C_Read... [09:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:54]Read from MH i2c: E2 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 17 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 17 00 EB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CB [09:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:00:54]wFMCommunicate OK [09:00:54]requested_item fd.num is exist - process it [09:00:54]SAM_PROTO_GetFieldsCounters [09:00:54]wFMCommunicate request_size=4 [09:00:54]MH_SAM_APDU [09:00:54]CAPDU: 80 13 00 00 [09:00:54]Write to MH i2c: E2 08 00 EC 06 80 13 00 00 00 00 00 00 6E [09:00:54]Write i2c OK [09:00:54]MH_I2C_Read... [09:00:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:54]Read from MH i2c: E2 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 62 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 62 00 EC 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C4 7B 02 00 0E 04 04 00 CF 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 7E [09: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C4 7B 02 00 0E 04 04 00 CF 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 [09:00:54]wFMCommunicate OK [09:00:54]SAM_PROTO_GetFieldsCounters done [09:00:54]requested_item shift.num is exist - process it [09:00:54]requested_item shift.opened is exist - process it [09:00:54]req_shift_opened [09:00:54]FM_GetShiftState [09:00:54]SAM_PROTO_GetShiftState [09:00:54]wFMCommunicate request_size=4 [09:00:54]MH_SAM_APDU [09:00:54]CAPDU: 80 13 01 00 [09:00:54]Write to MH i2c: E2 08 00 ED 06 80 13 01 00 00 00 00 00 70 [09:00:54]Write i2c OK [09:00:54]MH_I2C_Read... [09:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:54]Read from MH i2c: E2 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 0E 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 0E 00 ED 06 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A6 [09:00:54]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:00:54]wFMCommunicate OK [09:00:54]SAM_PROTO_GetShiftState done [09:00:54]FM_GetShiftState done [09:00:54]req_shift_opened done [09:00:54]requested_item shift.open_date is exist - process it [09:00:54]req_shift_open_date [09:00:54]req_shift_open_date done [09:00:54]produce_requested_data done [09:00:54]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162756,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:00:54]process_action_free close_receipt [09:00:54]json_value_free [09:00:54]json_value_free done [09:00:54]process_json_proto returns [09:00:54]Send response to host [09:00:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162756,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:00:54]free response buf [09:00:54]execute_script done [09:00:54]execute_script returns [09:00:54]free content buf [09:00:54]Sock 7.Close socket [09:00:54]Sock 7.Thread stoped [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:36]accept exits with 9 [09:02:36]New connection [09:02:36]New thread 3066735972 created [09:02:36]Thread 3066879332 joined [09:02:36]Waiting for new connection... [09:02:36] Sock 9.Parse request [09:02:36]Sock 9.Check first char [09:02:36]Sock 9.First char is OK [09:02:36]request: POST /json_proto HTTP/1.0 [09:02:36]Method: POST [09:02:36]URL: /json_proto [09:02:36]Method is POST - this is cgi request [09:02:36]url: /json_proto [09:02:36]query_string will be loaded in cgi processing [09:02:36]execute_cgi json_proto POST (null) [09:02:36]execute_cgi path=json_proto method=POST [09:02:36]POST find Content-Length [09:02:36]Host: 172.17.39.67:8080 [09:02:36]Content-Length: 801 [09:02:36]Content-Type: application/json [09:02:36] [09:02:36]POST finish read [09:02:36]Found Content-Length = 801 [09:02:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.120, "sum" : 339.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 339.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:36]execute_script... [09:02:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.120, "sum" : 339.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 339.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:36]POST & json_proto [09:02:36]process_json_proto [09:02:36]json parsed OK: [09:02:36]protocol is kg_v1.0 [09:02:36]action value=close_receipt [09:02:36]process_action close_receipt [09:02:36]cmd_close_receipt [09:02:36]MH_GetDate [09:02:36]Write to MH i2c: F0 00 00 EE 06 E3 [09:02:36]Write i2c OK [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: F0 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: F0 09 00 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: F0 09 00 EE 06 00 2C 94 93 66 B6 85 93 66 D9 [09:02:36]GetLastDocTimeStamp 1720947649 [09:02:36]current date 1720947756 [09:02:36]FM_GetShiftState [09:02:36]SAM_PROTO_GetShiftState [09:02:36]wFMCommunicate request_size=4 [09:02:36]MH_SAM_APDU [09:02:36]CAPDU: 80 13 01 00 [09:02:36]Write to MH i2c: E2 08 00 EF 06 80 13 01 00 00 00 00 00 72 [09:02:36]Write i2c OK [09:02:36]MH_I2C_Read... [09:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:36]Read from MH i2c: E2 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 0E 00 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 0E 00 EF 06 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A8 [09:02:36]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:02:36]wFMCommunicate OK [09:02:36]SAM_PROTO_GetShiftState done [09:02:36]FM_GetShiftState done [09:02:36]opened in 1720915483 [09:02:36]opened+sec_in_day 1721001883 [09:02:36]quantity*price = 33945 [09:02:36]sum+1 = 33947 [09:02:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 339.46 НСП 1% : 3.00 НДС 12% : 36.05 Наличными: 0.00 Безнал.: 339.46 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 69 14.07.2024 09:02 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162757 ФПД: 248300822943420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T090236&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162757&fm=248300822943420&tin=02508201610067®Number=0000000000090858&sum=33946 [09:02:37]StoreToDocumentArchive [09:02:37]shift 463 fd 162757 [09:02:37]save to /storage/0463/doc_00162757 [09:02:37]save last doc name /storage/0463/doc_00162757 to /storage/kkm_last_doc_name [09:02:37]save OK [09:02:37]Clear old archive folders... [09:02:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:37]tlvbuf is 012F2B90 [09:02:37]SAM_PROTO_ClearQueue [09:02:37]wFMCommunicate request_size=4 [09:02:37]MH_SAM_APDU [09:02:37]CAPDU: 80 09 00 00 [09:02:37]Write to MH i2c: E2 08 00 FC 06 80 09 00 00 00 00 00 00 74 [09:02:37]Write i2c OK [09:02:37]MH_I2C_Read... [09:02:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:37]Read from MH i2c: E2 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 03 00 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 03 00 FC 06 00 90 00 76 [09:02:37]RAPDU: 90 00 [09:02:37]wFMCommunicate OK [09:02:37]SAM_PROTO_ClearQueue done [09:02:37]KKMCreateOFDPacket [09:02:37]OFDProtocolAddRootSTLVToBuf [09:02:37]FM_MakeSignedData [09:02:37]FM_MakeSignedData [09:02:37]SAM_PROTO_SignData [09:02:37]wFMCommunicate request_size=4 [09:02:37]MH_SAM_APDU [09:02:37]CAPDU: 80 0D 01 02 [09:02:37]Write to MH i2c: E2 08 00 FD 06 80 0D 01 02 00 00 00 00 7C [09:02:37]Write i2c OK [09:02:37]MH_I2C_Read... [09:02:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:37]Read from MH i2c: E2 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 03 00 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 03 00 FD 06 00 90 00 77 [09:02:37]RAPDU: 90 00 [09:02:37]wFMCommunicate OK [09:02:37]wFMCommunicate request_size=255 [09:02:37]MH_SAM_APDU [09:02: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 00 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9A 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2C 94 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C5 7B 02 00 35 04 06 00 E1 [09:02:37]Write to MH i2c: E2 02 01 FE 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 00 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9A 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2C 94 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C5 7B 02 00 35 04 06 00 E1 00 00 46 [09:02:37]Write i2c OK [09:02:37]MH_I2C_Read... [09:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:37]Read from MH i2c: E2 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 03 00 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 03 00 FE 06 00 90 00 78 [09:02:37]RAPDU: 90 00 [09:02:37]wFMCommunicate OK [09:02:37]wFMCommunicate request_size=10 [09:02:37]MH_SAM_APDU [09:02:37]CAPDU: 80 0D 02 02 05 D4 0A 59 56 BC [09:02:37]Write to MH i2c: E2 0D 00 FF 06 80 0D 02 02 05 00 D4 0A 59 56 BC 00 00 D2 [09:02:37]Write i2c OK [09:02:37]MH_I2C_Read... [09:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:37]Read from MH i2c: E2 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 03 00 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 03 00 FF 06 00 90 00 79 [09:02:37]RAPDU: 90 00 [09:02:37]wFMCommunicate OK [09:02:37]wFMCommunicate request_size=4 [09:02:37]MH_SAM_APDU [09:02:37]CAPDU: 80 0D 03 02 [09:02:37]Write to MH i2c: E2 08 00 00 07 80 0D 03 02 00 00 00 00 82 [09:02:37]Write i2c OK [09:02:37]MH_I2C_Read... [09:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:37]Read from MH i2c: E2 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 0B 00 [09:02:37]MH_I2C_Read... [09:02:37]Read from MH i2c: E2 0B 00 00 07 00 6B AA E5 0B 93 CB 15 A1 90 00 9C [09:02:37]RAPDU: 6B AA E5 0B 93 CB 15 A1 90 00 [09:02:37]wFMCommunicate OK [09:02:37]SAM_PROTO_SignData done [09:02:37]FM_MakeSignedData done [09:02:37]CreateOFDProtocolMessage [09:02:37]wFMCommunicate request_size=4 [09:02:37]MH_SAM_APDU [09:02:37]CAPDU: 80 11 00 00 [09:02:37]Write to MH i2c: E2 08 00 01 07 80 11 00 00 00 00 00 00 82 [09:02:37]Write i2c OK [09:02:37]MH_I2C_Read... [09:02:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:38]Read from MH i2c: E2 [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: E2 17 00 [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: E2 17 00 01 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E2 [09:02:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:02:38]wFMCommunicate OK [09:02:38]CreateOFDProtocolMessage done [09:02:38]OFDSenderStorePacket 162757 [09:02:38]StoreOFDPacket docnum=162757 [09:02:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FD F1 07 01 B3 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9A 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2C 94 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C5 7B 02 00 35 04 06 00 E1 D4 0A 59 56 BC 6B AA E5 0B 93 CB 15 A1 [09:02:38]CheckFolder [09:02:38]dirname=/storage/ofd_packets [09:02:38]CheckFolder done [09:02:38]ProducePacketName [09:02:38]name=ofd_packets/00162757 [09:02:38]NVStorageSaveData ofd_packets/00162757 [09:02:38]File name is /storage/ofd_packets/00162757 [09:02:38]Write 301 bytes [09:02:38]NVStorageSaveData done [09:02:38]OFDSenderStorePacket done [09:02:38]KKMCreateOFDPacket done [09:02:38]NVStorageSaveData kkm_last_timestamp [09:02:38]File name is /storage/kkm_last_timestamp [09:02:38]Write 4 bytes [09:02:38]NVStorageSaveData done [09:02:38]ExternCall_PrintAddStr [09:02:38]wPrintStart [09:02:38]Write to MH i2c: 01 00 00 02 07 09 [09:02:38]Write i2c OK [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: 01 [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: 01 07 00 [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: 01 07 00 02 07 00 00 00 00 00 FF 0F 1E [09:02:38]RasterBufferAndPrint [09:02:38]line Счет N : (1)1319345 [09:02:38]line ИНН: 02508201610067 [09:02:38]line Контрольно-Кассовый Чек [09:02:38]line ПРОДАЖА [09:02:38]line ТРК (МРК, ГНК) : 33 [09:02:38]line Товар: 2710124130 [09:02:38]line Аи-92-К-5 [09:02:38]line 5.120 * 66.30 [09:02:38]line = 339.46 [09:02:38]line НДС 12% НСП 1% [09:02:38]line > о реализуемом товаре [09:02:38]line ИТОГО: 339.46 [09:02:38]line НСП 1% : 3.00 [09:02:38]line НДС 12% : 36.05 [09:02:38]line Наличными: 0.00 [09:02:38]line Безнал.: 339.46 [09:02:38]line Место: АЗС № 140 "Партнер Нефть" [09:02:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:02:38]line СНО: Общий режим [09:02:38]line Чек 69 14.07.2024 09:02 [09:02:38]line Смена: 463 ФФД: 1.0 [09:02:38]line ЗНМ: 0300000129 [09:02:38]line РНМ: 0000000000090858 [09:02:38]line Версия ККМ: 001 [09:02:38]line Платежная система: O! деньги [09:02:38]line ФМ: 0000000000874899 [09:02:38]line ФД: 162757 [09:02:38]line ФПД: 248300822943420 [09:02:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T090236&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162757&fm=248300822943420&tin=02508201610067®Number=0000000000090858&sum=33946 [09:02:38]written 0, free lines is 4095 [09:02:38]OFD Sender: Processing packet 162757 [packets to send 106, broken 105] [09:02:38]ProducePacketName [09:02:38]name=ofd_packets/00162757 [09:02:38]OFD Sender: To server: pG, [09:02:38]CommunicateWithHost lk.salyk.kg:30040 [09:02:38]ConnectInit lk.salyk.kg [09:02:38]Connected sock=10 [09:02:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FD F1 07 01 B3 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9A 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2C 94 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C5 7B 02 00 35 04 06 00 E1 D4 0A 59 56 BC 6B AA E5 0B 93 CB 15 A1 [09:02:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C2 EC 47 00 5B 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C5 7B 02 00 F4 03 04 00 3A 40 93 66 B6 04 01 00 00 F0 3B 98 FC 73 82 F6 C6 [09:02:38]CommunicateWithHost err = 0 [09:02:38]CheckOFDResponse [09:02:38]1017 (14) - 77093643461234 [09:02:38]1041 (16) - 0000000000874899 [09:02:38]1040 (4) - 162757 [09:02:38]1012 (4) - 14.07.2024 03:04 [09:02:38]1206 (1) - 0 [09:02:38]OFD Sender: Remove packet 162757 [09:02:38]ProducePacketName [09:02:38]name=ofd_packets/00162757 [09:02:38]NVStorageDeleteData [09:02:38]Write to MH i2c: 01 00 00 2C 07 33 [09:02:38]Write i2c OK [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: 01 [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: 01 07 00 [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: 01 07 00 2C 07 00 00 00 00 00 E3 0C 29 [09:02:38]RasterBufferAndPrint [09:02:38]line [09:02:38]line [09:02:38]line [09:02:38]line [09:02:38]line [09:02:38]written 0, free lines is 3305 [09:02:38]MH_Cut [09:02:38]Write to MH i2c: D1 01 00 33 07 01 0C [09:02:38]Write i2c OK [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: D1 [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: D1 01 00 [09:02:38]MH_I2C_Read... [09:02:38]Read from MH i2c: D1 01 00 33 07 00 0B [09:02:38]Write to MH i2c: 01 00 00 34 07 3B [09:02:38]Write i2c OK [09:02:38]MH_I2C_Read... [09:02:39]OFD Sender: No OFD packet to send [09:02:39]*** Cut start [09:02:39]*** Purtial cut [09:02:39]*** Stage 1: CUTSNS_PIN = 1 [09:02:39]Read from MH i2c: 01 [09:02:39]MH_I2C_Read... [09:02:39]*** Stop cut motor [09:02:39]*** Cut end [09:02:39]Read from MH i2c: 01 07 00 [09:02:39]MH_I2C_Read... [09:02:39]Read from MH i2c: 01 07 00 34 07 00 00 00 00 00 FF 0F 50 [09:02:39]process_action close_receipt done [09:02:39]requested_data is exist [09:02:39]produce_requested_data [09:02:39]requested_item fm.sn is exist - process it [09:02:39]wFMCommunicate request_size=4 [09:02:39]MH_SAM_APDU [09:02:39]CAPDU: 80 11 00 00 [09:02:39]Write to MH i2c: E2 08 00 35 07 80 11 00 00 00 00 00 00 B6 [09:02:39]Write i2c OK [09:02:39]MH_I2C_Read... [09:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:39]Read from MH i2c: E2 [09:02:39]MH_I2C_Read... [09:02:39]Read from MH i2c: E2 17 00 [09:02:39]MH_I2C_Read... [09:02:39]Read from MH i2c: E2 17 00 35 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 16 [09:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:02:39]wFMCommunicate OK [09:02:39]requested_item fd.num is exist - process it [09:02:39]SAM_PROTO_GetFieldsCounters [09:02:39]wFMCommunicate request_size=4 [09:02:39]MH_SAM_APDU [09:02:39]CAPDU: 80 13 00 00 [09:02:39]Write to MH i2c: E2 08 00 36 07 80 13 00 00 00 00 00 00 B9 [09:02:39]Write i2c OK [09:02:39]MH_I2C_Read... [09:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:40]Read from MH i2c: E2 [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: E2 62 00 [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: E2 62 00 36 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C5 7B 02 00 0E 04 04 00 CF 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 CD [09:02:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C5 7B 02 00 0E 04 04 00 CF 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 [09:02:40]wFMCommunicate OK [09:02:40]SAM_PROTO_GetFieldsCounters done [09:02:40]requested_item shift.num is exist - process it [09:02:40]requested_item shift.opened is exist - process it [09:02:40]req_shift_opened [09:02:40]FM_GetShiftState [09:02:40]SAM_PROTO_GetShiftState [09:02:40]wFMCommunicate request_size=4 [09:02:40]MH_SAM_APDU [09:02:40]CAPDU: 80 13 01 00 [09:02:40]Write to MH i2c: E2 08 00 37 07 80 13 01 00 00 00 00 00 BB [09:02:40]Write i2c OK [09:02:40]MH_I2C_Read... [09:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:40]Read from MH i2c: E2 [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: E2 0E 00 [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: E2 0E 00 37 07 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F1 [09:02:40]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:02:40]wFMCommunicate OK [09:02:40]SAM_PROTO_GetShiftState done [09:02:40]FM_GetShiftState done [09:02:40]req_shift_opened done [09:02:40]requested_item shift.open_date is exist - process it [09:02:40]req_shift_open_date [09:02:40]req_shift_open_date done [09:02:40]produce_requested_data done [09:02:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162757,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:02:40]process_action_free close_receipt [09:02:40]json_value_free [09:02:40]json_value_free done [09:02:40]process_json_proto returns [09:02:40]Send response to host [09:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162757,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:02:40]free response buf [09:02:40]execute_script done [09:02:40]execute_script returns [09:02:40]free content buf [09:02:40]Sock 9.Close socket [09:02:40]Sock 9.Thread stoped [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:17]accept exits with 7 [09:03:17]New connection [09:03:17]New thread 3066879332 created [09:03:17]Thread 3066735972 joined [09:03:17]Waiting for new connection... [09:03:17] Sock 7.Parse request [09:03:17]Sock 7.Check first char [09:03:17]Sock 7.First char is OK [09:03:17]request: POST /json_proto HTTP/1.0 [09:03:17]Method: POST [09:03:17]URL: /json_proto [09:03:17]Method is POST - this is cgi request [09:03:17]url: /json_proto [09:03:17]query_string will be loaded in cgi processing [09:03:17]execute_cgi json_proto POST (null) [09:03:17]execute_cgi path=json_proto method=POST [09:03:17]POST find Content-Length [09:03:17]Host: 172.17.39.67:8080 [09:03:17]Content-Length: 679 [09:03:17]Content-Type: application/json [09:03:17] [09:03:17]POST finish read [09:03:17]Found Content-Length = 679 [09:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 13.430, "sum" : 890.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:17]execute_script... [09:03: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)1319346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 13.430, "sum" : 890.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:17]POST & json_proto [09:03:17]process_json_proto [09:03:17]json parsed OK: [09:03:17]protocol is kg_v1.0 [09:03:17]action value=close_receipt [09:03:17]process_action close_receipt [09:03:17]cmd_close_receipt [09:03:17]MH_GetDate [09:03:17]Write to MH i2c: F0 00 00 38 07 2E [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: F0 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: F0 09 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: F0 09 00 38 07 00 55 94 93 66 B6 85 93 66 4D [09:03:17]GetLastDocTimeStamp 1720947756 [09:03:17]current date 1720947797 [09:03:17]FM_GetShiftState [09:03:17]SAM_PROTO_GetShiftState [09:03:17]wFMCommunicate request_size=4 [09:03:17]MH_SAM_APDU [09:03:17]CAPDU: 80 13 01 00 [09:03:17]Write to MH i2c: E2 08 00 39 07 80 13 01 00 00 00 00 00 BD [09:03:17]Write i2c OK [09:03:17]MH_I2C_Read... [09:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:17]Read from MH i2c: E2 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 0E 00 [09:03:17]MH_I2C_Read... [09:03:17]Read from MH i2c: E2 0E 00 39 07 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F3 [09:03:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:03:17]wFMCommunicate OK [09:03:17]SAM_PROTO_GetShiftState done [09:03:17]FM_GetShiftState done [09:03:17]opened in 1720915483 [09:03:17]opened+sec_in_day 1721001883 [09:03:17]quantity*price = 89040 [09:03:17]sum+1 = 89042 [09:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 890.00 Внесено: 890.00 СДАЧА: 0.00 НСП 1% : 7.88 НДС 12% : 94.56 Наличными: 890.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 70 14.07.2024 09:03 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162758 ФПД: 264400911106692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T090317&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162758&fm=264400911106692&tin=02508201610067®Number=0000000000090858&sum=89000 [09:03:18]StoreToDocumentArchive [09:03:18]shift 463 fd 162758 [09:03:18]save to /storage/0463/doc_00162758 [09:03:18]save last doc name /storage/0463/doc_00162758 to /storage/kkm_last_doc_name [09:03:18]save OK [09:03:18]Clear old archive folders... [09:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:18]tlvbuf is 012E6E40 [09:03:18]SAM_PROTO_ClearQueue [09:03:18]wFMCommunicate request_size=4 [09:03:18]MH_SAM_APDU [09:03:18]CAPDU: 80 09 00 00 [09:03:18]Write to MH i2c: E2 08 00 46 07 80 09 00 00 00 00 00 00 BF [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:18]Read from MH i2c: E2 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 03 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 03 00 46 07 00 90 00 C1 [09:03:18]RAPDU: 90 00 [09:03:18]wFMCommunicate OK [09:03:18]SAM_PROTO_ClearQueue done [09:03:18]KKMCreateOFDPacket [09:03:18]OFDProtocolAddRootSTLVToBuf [09:03:18]FM_MakeSignedData [09:03:18]FM_MakeSignedData [09:03:18]SAM_PROTO_SignData [09:03:18]wFMCommunicate request_size=4 [09:03:18]MH_SAM_APDU [09:03:18]CAPDU: 80 0D 01 02 [09:03:18]Write to MH i2c: E2 08 00 47 07 80 0D 01 02 00 00 00 00 C7 [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:18]Read from MH i2c: E2 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 03 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 03 00 47 07 00 90 00 C2 [09:03:18]RAPDU: 90 00 [09:03:18]wFMCommunicate OK [09:03:18]wFMCommunicate request_size=255 [09:03:18]MH_SAM_APDU [09:03:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 34 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D1 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 24 00 00 00 00 07 04 06 00 A8 5B 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 55 94 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C6 7B 02 00 35 04 06 00 F0 [09:03:18]Write to MH i2c: E2 02 01 48 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 34 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D1 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 24 00 00 00 00 07 04 06 00 A8 5B 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 55 94 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C6 7B 02 00 35 04 06 00 F0 00 00 17 [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:18]Read from MH i2c: E2 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 03 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 03 00 48 07 00 90 00 C3 [09:03:18]RAPDU: 90 00 [09:03:18]wFMCommunicate OK [09:03:18]wFMCommunicate request_size=10 [09:03:18]MH_SAM_APDU [09:03:18]CAPDU: 80 0D 02 02 05 78 A2 62 82 84 [09:03:18]Write to MH i2c: E2 0D 00 49 07 80 0D 02 02 05 00 78 A2 62 82 84 00 00 56 [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:18]Read from MH i2c: E2 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 03 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 03 00 49 07 00 90 00 C4 [09:03:18]RAPDU: 90 00 [09:03:18]wFMCommunicate OK [09:03:18]wFMCommunicate request_size=4 [09:03:18]MH_SAM_APDU [09:03:18]CAPDU: 80 0D 03 02 [09:03:18]Write to MH i2c: E2 08 00 4A 07 80 0D 03 02 00 00 00 00 CC [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:18]Read from MH i2c: E2 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 0B 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 0B 00 4A 07 00 22 88 A5 C8 85 59 CA 14 90 00 A0 [09:03:18]RAPDU: 22 88 A5 C8 85 59 CA 14 90 00 [09:03:18]wFMCommunicate OK [09:03:18]SAM_PROTO_SignData done [09:03:18]FM_MakeSignedData done [09:03:18]CreateOFDProtocolMessage [09:03:18]wFMCommunicate request_size=4 [09:03:18]MH_SAM_APDU [09:03:18]CAPDU: 80 11 00 00 [09:03:18]Write to MH i2c: E2 08 00 4B 07 80 11 00 00 00 00 00 00 CC [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:18]Read from MH i2c: E2 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 17 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: E2 17 00 4B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2C [09:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:03:18]wFMCommunicate OK [09:03:18]CreateOFDProtocolMessage done [09:03:18]OFDSenderStorePacket 162758 [09:03:18]StoreOFDPacket docnum=162758 [09:03:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 9D 75 07 01 E9 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 34 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D1 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 24 00 00 00 00 07 04 06 00 A8 5B 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 55 94 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C6 7B 02 00 35 04 06 00 F0 78 A2 62 82 84 22 88 A5 C8 85 59 CA 14 [09:03:18]CheckFolder [09:03:18]dirname=/storage/ofd_packets [09:03:18]CheckFolder done [09:03:18]ProducePacketName [09:03:18]name=ofd_packets/00162758 [09:03:18]NVStorageSaveData ofd_packets/00162758 [09:03:18]File name is /storage/ofd_packets/00162758 [09:03:18]Write 301 bytes [09:03:18]NVStorageSaveData done [09:03:18]OFDSenderStorePacket done [09:03:18]KKMCreateOFDPacket done [09:03:18]NVStorageSaveData kkm_last_timestamp [09:03:18]File name is /storage/kkm_last_timestamp [09:03:18]Write 4 bytes [09:03:18]NVStorageSaveData done [09:03:18]ExternCall_PrintAddStr [09:03:18]wPrintStart [09:03:18]Write to MH i2c: 01 00 00 4C 07 53 [09:03:18]Write i2c OK [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: 01 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: 01 07 00 [09:03:18]MH_I2C_Read... [09:03:18]Read from MH i2c: 01 07 00 4C 07 00 00 00 00 00 FF 0F 68 [09:03:18]RasterBufferAndPrint [09:03:18]line Счет N : (1)1319346 [09:03:18]line ИНН: 02508201610067 [09:03:18]line Контрольно-Кассовый Чек [09:03:18]line ПРОДАЖА [09:03:18]line ТРК (МРК, ГНК) : 63 [09:03:18]line Товар: 2710124130 [09:03:18]line Аи-92-К-5 [09:03:18]line 13.430 * 66.30 [09:03:18]line = 890.41 [09:03:18]line НДС 12% НСП 1% [09:03:18]line > о реализуемом товаре [09:03:18]line ОКРУГЛЕНИЕ: -0.41 [09:03:18]line ИТОГО: 890.00 [09:03:18]line Внесено: 890.00 [09:03:18]line СДАЧА: 0.00 [09:03:18]line НСП 1% : 7.88 [09:03:18]line НДС 12% : 94.56 [09:03:18]line Наличными: 890.00 [09:03:18]line Безнал.: 0.00 [09:03:18]line Место: АЗС № 140 "Партнер Нефть" [09:03:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:03:18]line СНО: Общий режим [09:03:18]line Чек 70 14.07.2024 09:03 [09:03:18]line Смена: 463 ФФД: 1.0 [09:03:18]line ЗНМ: 0300000129 [09:03:18]line РНМ: 0000000000090858 [09:03:18]line Версия ККМ: 001 [09:03:18]line ФМ: 0000000000874899 [09:03:18]line ФД: 162758 [09:03:18]line ФПД: 264400911106692 [09:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T090317&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162758&fm=264400911106692&tin=02508201610067®Number=0000000000090858&sum=89000 [09:03:19]OFD Sender: Processing packet 162758 [packets to send 106, broken 105] [09:03:19]ProducePacketName [09:03:19]name=ofd_packets/00162758 [09:03:19]OFD Sender: To server: pG, [09:03:19]CommunicateWithHost lk.salyk.kg:30040 [09:03:19]ConnectInit lk.salyk.kg [09:03:19]written 0, free lines is 4095 [09:03:19]Connected sock=11 [09:03:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 9D 75 07 01 E9 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 34 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D1 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 24 00 00 00 00 07 04 06 00 A8 5B 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 55 94 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C6 7B 02 00 35 04 06 00 F0 78 A2 62 82 84 22 88 A5 C8 85 59 CA 14 [09:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9C E8 47 00 E7 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C6 7B 02 00 F4 03 04 00 63 40 93 66 B6 04 01 00 00 F1 7D 3A 56 C0 3C 1E E3 [09:03:19]CommunicateWithHost err = 0 [09:03:19]CheckOFDResponse [09:03:19]1017 (14) - 77093643461234 [09:03:19]1041 (16) - 0000000000874899 [09:03:19]1040 (4) - 162758 [09:03:19]1012 (4) - 14.07.2024 03:05 [09:03:19]1206 (1) - 0 [09:03:19]OFD Sender: Remove packet 162758 [09:03:19]ProducePacketName [09:03:19]name=ofd_packets/00162758 [09:03:19]NVStorageDeleteData [09:03:19]Write to MH i2c: 01 00 00 77 07 7E [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 07 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: 01 07 00 77 07 00 00 00 00 00 D1 0C 62 [09:03:19]RasterBufferAndPrint [09:03:19]line [09:03:19]line [09:03:19]line [09:03:19]line [09:03:19]line [09:03:19]written 0, free lines is 3287 [09:03:19]MH_Cut [09:03:19]Write to MH i2c: D1 01 00 7E 07 01 57 [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: D1 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: D1 01 00 [09:03:19]MH_I2C_Read... [09:03:19]Read from MH i2c: D1 01 00 7E 07 00 56 [09:03:19]Write to MH i2c: 01 00 00 7F 07 86 [09:03:19]Write i2c OK [09:03:19]MH_I2C_Read... [09:03:19]OFD Sender: No OFD packet to send [09:03:20]*** Cut start [09:03:20]*** Purtial cut [09:03:20]*** CUTSNS_PIN = 0 [09:03:20]*** Stage 1: CUTSNS_PIN = 1 [09:03:22]Read from MH i2c: 01 [09:03:22]MH_I2C_Read... [09:03:22]*** Stop cut motor [09:03:22]*** Cut end [09:03:22]Read from MH i2c: 01 07 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: 01 07 00 7F 07 00 00 00 00 00 FF 0F 9B [09:03:22]process_action close_receipt done [09:03:22]requested_data is exist [09:03:22]produce_requested_data [09:03:22]requested_item fm.sn is exist - process it [09:03:22]wFMCommunicate request_size=4 [09:03:22]MH_SAM_APDU [09:03:22]CAPDU: 80 11 00 00 [09:03:22]Write to MH i2c: E2 08 00 80 07 80 11 00 00 00 00 00 00 01 [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:22]Read from MH i2c: E2 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 17 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 17 00 80 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 61 [09:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:03:22]wFMCommunicate OK [09:03:22]requested_item fd.num is exist - process it [09:03:22]SAM_PROTO_GetFieldsCounters [09:03:22]wFMCommunicate request_size=4 [09:03:22]MH_SAM_APDU [09:03:22]CAPDU: 80 13 00 00 [09:03:22]Write to MH i2c: E2 08 00 81 07 80 13 00 00 00 00 00 00 04 [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:22]Read from MH i2c: E2 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 62 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 62 00 81 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C6 7B 02 00 0E 04 04 00 CF 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 1C [09:03:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C6 7B 02 00 0E 04 04 00 CF 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 [09:03:22]wFMCommunicate OK [09:03:22]SAM_PROTO_GetFieldsCounters done [09:03:22]requested_item shift.num is exist - process it [09:03:22]requested_item shift.opened is exist - process it [09:03:22]req_shift_opened [09:03:22]FM_GetShiftState [09:03:22]SAM_PROTO_GetShiftState [09:03:22]wFMCommunicate request_size=4 [09:03:22]MH_SAM_APDU [09:03:22]CAPDU: 80 13 01 00 [09:03:22]Write to MH i2c: E2 08 00 82 07 80 13 01 00 00 00 00 00 06 [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:22]Read from MH i2c: E2 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 0E 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 0E 00 82 07 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3C [09:03:22]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:03:22]wFMCommunicate OK [09:03:22]SAM_PROTO_GetShiftState done [09:03:22]FM_GetShiftState done [09:03:22]req_shift_opened done [09:03:22]requested_item shift.open_date is exist - process it [09:03:22]req_shift_open_date [09:03:22]req_shift_open_date done [09:03:22]produce_requested_data done [09:03:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162758,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:03:22]process_action_free close_receipt [09:03:22]json_value_free [09:03:22]json_value_free done [09:03:22]process_json_proto returns [09:03:22]Send response to host [09:03:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162758,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:03:22]free response buf [09:03:22]execute_script done [09:03:22]execute_script returns [09:03:22]free content buf [09:03:22]Sock 7.Close socket [09:03:22]Sock 7.Thread stoped [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:10]accept exits with 9 [09:11:10]New connection [09:11:10]New thread 3066735972 created [09:11:10]Thread 3066879332 joined [09:11:10]Waiting for new connection... [09:11:10] Sock 9.Parse request [09:11:10]Sock 9.Check first char [09:11:10]Sock 9.First char is OK [09:11:10]request: POST /json_proto HTTP/1.0 [09:11:10]Method: POST [09:11:10]URL: /json_proto [09:11:10]Method is POST - this is cgi request [09:11:10]url: /json_proto [09:11:10]query_string will be loaded in cgi processing [09:11:10]execute_cgi json_proto POST (null) [09:11:10]execute_cgi path=json_proto method=POST [09:11:10]POST find Content-Length [09:11:10]Host: 172.17.39.67:8080 [09:11:10]Content-Length: 688 [09:11:10]Content-Type: application/json [09:11:10] [09:11:10]POST finish read [09:11:10]Found Content-Length = 688 [09:11:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:10]execute_script... [09:11:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:10]POST & json_proto [09:11:10]process_json_proto [09:11:10]json parsed OK: [09:11:10]protocol is kg_v1.0 [09:11:10]action value=close_receipt [09:11:10]process_action close_receipt [09:11:10]cmd_close_receipt [09:11:10]MH_GetDate [09:11:10]Write to MH i2c: F0 00 00 83 07 79 [09:11:10]Write i2c OK [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: F0 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: F0 09 00 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: F0 09 00 83 07 00 2E 96 93 66 B6 85 93 66 73 [09:11:10]GetLastDocTimeStamp 1720947797 [09:11:10]current date 1720948270 [09:11:10]FM_GetShiftState [09:11:10]SAM_PROTO_GetShiftState [09:11:10]wFMCommunicate request_size=4 [09:11:10]MH_SAM_APDU [09:11:10]CAPDU: 80 13 01 00 [09:11:10]Write to MH i2c: E2 08 00 84 07 80 13 01 00 00 00 00 00 08 [09:11:10]Write i2c OK [09:11:10]MH_I2C_Read... [09:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:10]Read from MH i2c: E2 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: E2 0E 00 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: E2 0E 00 84 07 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3E [09:11:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:11:10]wFMCommunicate OK [09:11:10]SAM_PROTO_GetShiftState done [09:11:10]FM_GetShiftState done [09:11:10]opened in 1720915483 [09:11:10]opened+sec_in_day 1721001883 [09:11:10]quantity*price = 150064 [09:11:10]sum+1 = 150065 [09:11:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 71 14.07.2024 09:11 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162759 ФПД: 4627566382825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T091110&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162759&fm=4627566382825&tin=02508201610067®Number=0000000000090858&sum=150000 [09:11:11]StoreToDocumentArchive [09:11:11]shift 463 fd 162759 [09:11:11]save to /storage/0463/doc_00162759 [09:11:11]save last doc name /storage/0463/doc_00162759 to /storage/kkm_last_doc_name [09:11:11]save OK [09:11:11]Clear old archive folders... [09:11:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:11:11]tlvbuf is 01301070 [09:11:11]SAM_PROTO_ClearQueue [09:11:11]wFMCommunicate request_size=4 [09:11:11]MH_SAM_APDU [09:11:11]CAPDU: 80 09 00 00 [09:11:11]Write to MH i2c: E2 08 00 91 07 80 09 00 00 00 00 00 00 0A [09:11:11]Write i2c OK [09:11:11]MH_I2C_Read... [09:11:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:11]Read from MH i2c: E2 [09:11:11]MH_I2C_Read... [09:11:11]Read from MH i2c: E2 03 00 [09:11:11]MH_I2C_Read... [09:11:11]Read from MH i2c: E2 03 00 91 07 00 90 00 0C [09:11:11]RAPDU: 90 00 [09:11:11]wFMCommunicate OK [09:11:11]SAM_PROTO_ClearQueue done [09:11:11]KKMCreateOFDPacket [09:11:11]OFDProtocolAddRootSTLVToBuf [09:11:11]FM_MakeSignedData [09:11:11]FM_MakeSignedData [09:11:11]SAM_PROTO_SignData [09:11:11]wFMCommunicate request_size=4 [09:11:11]MH_SAM_APDU [09:11:11]CAPDU: 80 0D 01 02 [09:11:11]Write to MH i2c: E2 08 00 92 07 80 0D 01 02 00 00 00 00 12 [09:11:11]Write i2c OK [09:11:11]MH_I2C_Read... [09:11:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:11]Read from MH i2c: E2 [09:11:11]MH_I2C_Read... [09:11:11]Read from MH i2c: E2 03 00 [09:11:11]MH_I2C_Read... [09:11:11]Read from MH i2c: E2 03 00 92 07 00 90 00 0D [09:11:11]RAPDU: 90 00 [09:11:11]wFMCommunicate OK [09:11:11]wFMCommunicate request_size=255 [09:11:11]MH_SAM_APDU [09:11:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 47 00 00 00 F4 03 04 00 2E 96 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C7 7B 02 00 35 04 06 00 [09:11:11]Write to MH i2c: E2 02 01 93 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 47 00 00 00 F4 03 04 00 2E 96 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C7 7B 02 00 35 04 06 00 00 00 AC [09:11:11]Write i2c OK [09:11:11]MH_I2C_Read... [09:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:12]Read from MH i2c: E2 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 03 00 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 03 00 93 07 00 90 00 0E [09:11:12]RAPDU: 90 00 [09:11:12]wFMCommunicate OK [09:11:12]wFMCommunicate request_size=11 [09:11:12]MH_SAM_APDU [09:11:12]CAPDU: 80 0D 02 02 06 04 35 70 73 4E E9 [09:11:12]Write to MH i2c: E2 0E 00 94 07 80 0D 02 02 06 00 04 35 70 73 4E E9 00 00 74 [09:11:12]Write i2c OK [09:11:12]MH_I2C_Read... [09:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:12]Read from MH i2c: E2 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 03 00 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 03 00 94 07 00 90 00 0F [09:11:12]RAPDU: 90 00 [09:11:12]wFMCommunicate OK [09:11:12]wFMCommunicate request_size=4 [09:11:12]MH_SAM_APDU [09:11:12]CAPDU: 80 0D 03 02 [09:11:12]Write to MH i2c: E2 08 00 95 07 80 0D 03 02 00 00 00 00 17 [09:11:12]Write i2c OK [09:11:12]MH_I2C_Read... [09:11:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:12]Read from MH i2c: E2 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 0B 00 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 0B 00 95 07 00 E9 E0 D4 C8 68 07 F6 A6 90 00 88 [09:11:12]RAPDU: E9 E0 D4 C8 68 07 F6 A6 90 00 [09:11:12]wFMCommunicate OK [09:11:12]SAM_PROTO_SignData done [09:11:12]FM_MakeSignedData done [09:11:12]CreateOFDProtocolMessage [09:11:12]wFMCommunicate request_size=4 [09:11:12]MH_SAM_APDU [09:11:12]CAPDU: 80 11 00 00 [09:11:12]Write to MH i2c: E2 08 00 96 07 80 11 00 00 00 00 00 00 17 [09:11:12]Write i2c OK [09:11:12]MH_I2C_Read... [09:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:12]Read from MH i2c: E2 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 17 00 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 17 00 96 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 77 [09:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:11:12]wFMCommunicate OK [09:11:12]CreateOFDProtocolMessage done [09:11:12]OFDSenderStorePacket 162759 [09:11:12]StoreOFDPacket docnum=162759 [09:11:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 69 70 08 01 A7 A8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 47 00 00 00 F4 03 04 00 2E 96 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C7 7B 02 00 35 04 06 00 04 35 70 73 4E E9 E9 E0 D4 C8 68 07 F6 A6 [09:11:12]CheckFolder [09:11:12]dirname=/storage/ofd_packets [09:11:12]CheckFolder done [09:11:12]ProducePacketName [09:11:12]name=ofd_packets/00162759 [09:11:12]NVStorageSaveData ofd_packets/00162759 [09:11:12]File name is /storage/ofd_packets/00162759 [09:11:12]Write 302 bytes [09:11:12]NVStorageSaveData done [09:11:12]OFDSenderStorePacket done [09:11:12]KKMCreateOFDPacket done [09:11:12]NVStorageSaveData kkm_last_timestamp [09:11:12]File name is /storage/kkm_last_timestamp [09:11:12]Write 4 bytes [09:11:12]NVStorageSaveData done [09:11:12]OFD Sender: Processing packet 162759 [packets to send 106, broken 105] [09:11:12]ProducePacketName [09:11:12]name=ofd_packets/00162759 [09:11:12]OFD Sender: To server: pG, [09:11:12]CommunicateWithHost lk.salyk.kg:30040 [09:11:12]ConnectInit lk.salyk.kg [09:11:12]ExternCall_PrintAddStr [09:11:12]wPrintStart [09:11:12]Write to MH i2c: 01 00 00 97 07 9E [09:11:12]Write i2c OK [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: 01 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: 01 07 00 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: 01 07 00 97 07 00 00 00 00 00 FF 0F B3 [09:11:12]RasterBufferAndPrint [09:11:12]line Счет N : (1)1319347 [09:11:12]line ИНН: 02508201610067 [09:11:12]line Контрольно-Кассовый Чек [09:11:12]line ПРОДАЖА [09:11:12]line ТРК (МРК, ГНК) : 11 [09:11:12]line Товар: 2710194210 [09:11:12]line ДТ(л)-К-5 [09:11:12]line 20.670 * 72.60 [09:11:12]line = 1500.64 [09:11:12]line НДС 12% НСП 1% [09:11:12]line > о реализуемом товаре [09:11:12]line ОКРУГЛЕНИЕ: -0.64 [09:11:12]line ИТОГО: 1500.00 [09:11:12]line Внесено: 1500.00 [09:11:12]line СДАЧА: 0.00 [09:11:12]line НСП 1% : 13.28 [09:11:12]line НДС 12% : 159.36 [09:11:12]line Наличными: 1500.00 [09:11:12]line Безнал.: 0.00 [09:11:12]line Место: АЗС № 140 "Партнер Нефть" [09:11:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:11:12]line СНО: Общий режим [09:11:12]line Чек 71 14.07.2024 09:11 [09:11:12]line Смена: 463 ФФД: 1.0 [09:11:12]line ЗНМ: 0300000129 [09:11:12]line РНМ: 0000000000090858 [09:11:12]line Версия ККМ: 001 [09:11:12]line ФМ: 0000000000874899 [09:11:12]line ФД: 162759 [09:11:12]line ФПД: 4627566382825 [09:11:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T091110&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162759&fm=4627566382825&tin=02508201610067®Number=0000000000090858&sum=150000 [09:11:12]Connected sock=11 [09:11:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 69 70 08 01 A7 A8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 47 00 00 00 F4 03 04 00 2E 96 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C7 7B 02 00 35 04 06 00 04 35 70 73 4E E9 E9 E0 D4 C8 68 07 F6 A6 [09:11:12]written 0, free lines is 4095 [09:11:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2E 14 47 00 B3 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C7 7B 02 00 F4 03 04 00 3C 42 93 66 B6 04 01 00 00 07 E5 5E 53 E0 C0 7D 7B [09:11:12]CommunicateWithHost err = 0 [09:11:12]CheckOFDResponse [09:11:12]1017 (14) - 77093643461234 [09:11:12]1041 (16) - 0000000000874899 [09:11:12]1040 (4) - 162759 [09:11:12]1012 (4) - 14.07.2024 03:13 [09:11:12]1206 (1) - 0 [09:11:12]OFD Sender: Remove packet 162759 [09:11:12]ProducePacketName [09:11:12]name=ofd_packets/00162759 [09:11:12]NVStorageDeleteData [09:11:13]Write to MH i2c: 01 00 00 C2 07 C9 [09:11:13]Write i2c OK [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: 01 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: 01 07 00 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: 01 07 00 C2 07 00 00 00 00 00 CC 0C A8 [09:11:13]RasterBufferAndPrint [09:11:13]line [09:11:13]line [09:11:13]line [09:11:13]line [09:11:13]line [09:11:13]written 0, free lines is 3282 [09:11:13]MH_Cut [09:11:13]Write to MH i2c: D1 01 00 C9 07 01 A2 [09:11:13]Write i2c OK [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: D1 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: D1 01 00 [09:11:13]MH_I2C_Read... [09:11:13]Read from MH i2c: D1 01 00 C9 07 00 A1 [09:11:13]Write to MH i2c: 01 00 00 CA 07 D1 [09:11:13]Write i2c OK [09:11:13]MH_I2C_Read... [09:11:13]OFD Sender: No OFD packet to send [09:11:13]*** Cut start [09:11:13]*** Purtial cut [09:11:13]*** Stage 1: CUTSNS_PIN = 1 [09:11:14]Read from MH i2c: 01 [09:11:14]MH_I2C_Read... [09:11:14]*** Stop cut motor [09:11:14]*** Cut end [09:11:14]Read from MH i2c: 01 07 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: 01 07 00 CA 07 00 00 00 00 00 FF 0F E6 [09:11:14]process_action close_receipt done [09:11:14]requested_data is exist [09:11:14]produce_requested_data [09:11:14]requested_item fm.sn is exist - process it [09:11:14]wFMCommunicate request_size=4 [09:11:14]MH_SAM_APDU [09:11:14]CAPDU: 80 11 00 00 [09:11:14]Write to MH i2c: E2 08 00 CB 07 80 11 00 00 00 00 00 00 4C [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:14]Read from MH i2c: E2 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 17 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 17 00 CB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AC [09:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:11:14]wFMCommunicate OK [09:11:14]requested_item fd.num is exist - process it [09:11:14]SAM_PROTO_GetFieldsCounters [09:11:14]wFMCommunicate request_size=4 [09:11:14]MH_SAM_APDU [09:11:14]CAPDU: 80 13 00 00 [09:11:14]Write to MH i2c: E2 08 00 CC 07 80 13 00 00 00 00 00 00 4F [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:14]Read from MH i2c: E2 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 62 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 62 00 CC 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C7 7B 02 00 0E 04 04 00 CF 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 6B [09:11:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C7 7B 02 00 0E 04 04 00 CF 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 [09:11:14]wFMCommunicate OK [09:11:14]SAM_PROTO_GetFieldsCounters done [09:11:14]requested_item shift.num is exist - process it [09:11:14]requested_item shift.opened is exist - process it [09:11:14]req_shift_opened [09:11:14]FM_GetShiftState [09:11:14]SAM_PROTO_GetShiftState [09:11:14]wFMCommunicate request_size=4 [09:11:14]MH_SAM_APDU [09:11:14]CAPDU: 80 13 01 00 [09:11:14]Write to MH i2c: E2 08 00 CD 07 80 13 01 00 00 00 00 00 51 [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:14]Read from MH i2c: E2 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 0E 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 0E 00 CD 07 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 87 [09:11:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:11:14]wFMCommunicate OK [09:11:14]SAM_PROTO_GetShiftState done [09:11:14]FM_GetShiftState done [09:11:14]req_shift_opened done [09:11:14]requested_item shift.open_date is exist - process it [09:11:14]req_shift_open_date [09:11:14]req_shift_open_date done [09:11:14]produce_requested_data done [09:11:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162759,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:11:14]process_action_free close_receipt [09:11:14]json_value_free [09:11:14]json_value_free done [09:11:14]process_json_proto returns [09:11:14]Send response to host [09:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162759,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:11:14]free response buf [09:11:14]execute_script done [09:11:14]execute_script returns [09:11:14]free content buf [09:11:14]Sock 9.Close socket [09:11:14]Sock 9.Thread stoped [09:11:14]accept exits with 7 [09:11:14]New connection [09:11:14]New thread 3066879332 created [09:11:14]Thread 3066735972 joined [09:11:14]Waiting for new connection... [09:11:14] Sock 7.Parse request [09:11:14]Sock 7.Check first char [09:11:14]Sock 7.First char is OK [09:11:14]request: POST /json_proto HTTP/1.0 [09:11:14]Method: POST [09:11:14]URL: /json_proto [09:11:14]Method is POST - this is cgi request [09:11:14]url: /json_proto [09:11:14]query_string will be loaded in cgi processing [09:11:14]execute_cgi json_proto POST (null) [09:11:14]execute_cgi path=json_proto method=POST [09:11:14]POST find Content-Length [09:11:14]Host: 172.17.39.67:8080 [09:11:14]Content-Length: 678 [09:11:14]Content-Type: application/json [09:11:14] [09:11:14]POST finish read [09:11:14]Found Content-Length = 678 [09:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "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:11:14]execute_script... [09:11: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)1319348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "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:11:14]POST & json_proto [09:11:14]process_json_proto [09:11:14]json parsed OK: [09:11:14]protocol is kg_v1.0 [09:11:14]action value=close_receipt [09:11:14]process_action close_receipt [09:11:14]cmd_close_receipt [09:11:14]MH_GetDate [09:11:14]Write to MH i2c: F0 00 00 CE 07 C4 [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: F0 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: F0 09 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: F0 09 00 CE 07 00 33 96 93 66 B6 85 93 66 C3 [09:11:14]GetLastDocTimeStamp 1720948270 [09:11:14]current date 1720948275 [09:11:14]FM_GetShiftState [09:11:14]SAM_PROTO_GetShiftState [09:11:14]wFMCommunicate request_size=4 [09:11:14]MH_SAM_APDU [09:11:14]CAPDU: 80 13 01 00 [09:11:14]Write to MH i2c: E2 08 00 CF 07 80 13 01 00 00 00 00 00 53 [09:11:14]Write i2c OK [09:11:14]MH_I2C_Read... [09:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:14]Read from MH i2c: E2 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 0E 00 [09:11:14]MH_I2C_Read... [09:11:14]Read from MH i2c: E2 0E 00 CF 07 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 89 [09:11:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:11:14]wFMCommunicate OK [09:11:14]SAM_PROTO_GetShiftState done [09:11:14]FM_GetShiftState done [09:11:14]opened in 1720915483 [09:11:14]opened+sec_in_day 1721001883 [09:11:14]quantity*price = 40045 [09:11:14]sum+1 = 40046 [09:11:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 72 14.07.2024 09:11 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162760 ФПД: 31838755865802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T091115&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162760&fm=31838755865802&tin=02508201610067®Number=0000000000090858&sum=40000 [09:11:16]StoreToDocumentArchive [09:11:16]shift 463 fd 162760 [09:11:16]save to /storage/0463/doc_00162760 [09:11:16]save last doc name /storage/0463/doc_00162760 to /storage/kkm_last_doc_name [09:11:16]save OK [09:11:16]Clear old archive folders... [09:11:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:16]tlvbuf is 01241160 [09:11:16]SAM_PROTO_ClearQueue [09:11:16]wFMCommunicate request_size=4 [09:11:16]MH_SAM_APDU [09:11:16]CAPDU: 80 09 00 00 [09:11:16]Write to MH i2c: E2 08 00 DC 07 80 09 00 00 00 00 00 00 55 [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:16]Read from MH i2c: E2 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 03 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 03 00 DC 07 00 90 00 57 [09:11:16]RAPDU: 90 00 [09:11:16]wFMCommunicate OK [09:11:16]SAM_PROTO_ClearQueue done [09:11:16]KKMCreateOFDPacket [09:11:16]OFDProtocolAddRootSTLVToBuf [09:11:16]FM_MakeSignedData [09:11:16]FM_MakeSignedData [09:11:16]SAM_PROTO_SignData [09:11:16]wFMCommunicate request_size=4 [09:11:16]MH_SAM_APDU [09:11:16]CAPDU: 80 0D 01 02 [09:11:16]Write to MH i2c: E2 08 00 DD 07 80 0D 01 02 00 00 00 00 5D [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:16]Read from MH i2c: E2 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 03 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 03 00 DD 07 00 90 00 58 [09:11:16]RAPDU: 90 00 [09:11:16]wFMCommunicate OK [09:11:16]wFMCommunicate request_size=255 [09:11:16]MH_SAM_APDU [09:11:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 33 96 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C8 7B 02 00 35 04 06 00 1C [09:11:16]Write to MH i2c: E2 02 01 DE 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 33 96 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C8 7B 02 00 35 04 06 00 1C 00 00 33 [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:16]Read from MH i2c: E2 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 03 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 03 00 DE 07 00 90 00 59 [09:11:16]RAPDU: 90 00 [09:11:16]wFMCommunicate OK [09:11:16]wFMCommunicate request_size=10 [09:11:16]MH_SAM_APDU [09:11:16]CAPDU: 80 0D 02 02 05 F5 09 BB C4 CA [09:11:16]Write to MH i2c: E2 0D 00 DF 07 80 0D 02 02 05 00 F5 09 BB C4 CA 00 00 B1 [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:16]Read from MH i2c: E2 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 03 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 03 00 DF 07 00 90 00 5A [09:11:16]RAPDU: 90 00 [09:11:16]wFMCommunicate OK [09:11:16]wFMCommunicate request_size=4 [09:11:16]MH_SAM_APDU [09:11:16]CAPDU: 80 0D 03 02 [09:11:16]Write to MH i2c: E2 08 00 E0 07 80 0D 03 02 00 00 00 00 62 [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:16]Read from MH i2c: E2 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 0B 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 0B 00 E0 07 00 48 8D 40 02 A1 26 F1 2E 90 00 60 [09:11:16]RAPDU: 48 8D 40 02 A1 26 F1 2E 90 00 [09:11:16]wFMCommunicate OK [09:11:16]SAM_PROTO_SignData done [09:11:16]FM_MakeSignedData done [09:11:16]CreateOFDProtocolMessage [09:11:16]wFMCommunicate request_size=4 [09:11:16]MH_SAM_APDU [09:11:16]CAPDU: 80 11 00 00 [09:11:16]Write to MH i2c: E2 08 00 E1 07 80 11 00 00 00 00 00 00 62 [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:16]Read from MH i2c: E2 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 17 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 17 00 E1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C2 [09:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:11:16]wFMCommunicate OK [09:11:16]CreateOFDProtocolMessage done [09:11:16]OFDSenderStorePacket 162760 [09:11:16]StoreOFDPacket docnum=162760 [09:11:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C3 3F 07 01 35 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 33 96 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C8 7B 02 00 35 04 06 00 1C F5 09 BB C4 CA 48 8D 40 02 A1 26 F1 2E [09:11:16]CheckFolder [09:11:16]dirname=/storage/ofd_packets [09:11:16]CheckFolder done [09:11:16]ProducePacketName [09:11:16]name=ofd_packets/00162760 [09:11:16]NVStorageSaveData ofd_packets/00162760 [09:11:16]File name is /storage/ofd_packets/00162760 [09:11:16]Write 301 bytes [09:11:16]NVStorageSaveData done [09:11:16]OFDSenderStorePacket done [09:11:16]KKMCreateOFDPacket done [09:11:16]NVStorageSaveData kkm_last_timestamp [09:11:16]File name is /storage/kkm_last_timestamp [09:11:16]Write 4 bytes [09:11:16]NVStorageSaveData done [09:11:16]ExternCall_PrintAddStr [09:11:16]wPrintStart [09:11:16]Write to MH i2c: 01 00 00 E2 07 E9 [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: 01 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: 01 07 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: 01 07 00 E2 07 00 00 00 00 00 FF 0F FE [09:11:16]RasterBufferAndPrint [09:11:16]line Счет N : (1)1319348 [09:11:16]line ИНН: 02508201610067 [09:11:16]line Контрольно-Кассовый Чек [09:11:16]line ПРОДАЖА [09:11:16]line ТРК (МРК, ГНК) : 63 [09:11:16]line Товар: 2710124130 [09:11:16]line Аи-92-К-5 [09:11:16]line 6.040 * 66.30 [09:11:16]line = 400.45 [09:11:16]line НДС 12% НСП 1% [09:11:16]line > о реализуемом товаре [09:11:16]line ОКРУГЛЕНИЕ: -0.45 [09:11:16]line ИТОГО: 400.00 [09:11:16]line Внесено: 400.00 [09:11:16]line СДАЧА: 0.00 [09:11:16]line НСП 1% : 3.54 [09:11:16]line НДС 12% : 42.53 [09:11:16]line Наличными: 400.00 [09:11:16]line Безнал.: 0.00 [09:11:16]line Место: АЗС № 140 "Партнер Нефть" [09:11:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:11:16]line СНО: Общий режим [09:11:16]line Чек 72 14.07.2024 09:11 [09:11:16]line Смена: 463 ФФД: 1.0 [09:11:16]line ЗНМ: 0300000129 [09:11:16]line РНМ: 0000000000090858 [09:11:16]line Версия ККМ: 001 [09:11:16]line ФМ: 0000000000874899 [09:11:16]line ФД: 162760 [09:11:16]line ФПД: 31838755865802 [09:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T091115&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162760&fm=31838755865802&tin=02508201610067®Number=0000000000090858&sum=40000 [09:11:17]OFD Sender: Processing packet 162760 [packets to send 106, broken 105] [09:11:17]ProducePacketName [09:11:17]name=ofd_packets/00162760 [09:11:17]OFD Sender: To server: pG, [09:11:17]CommunicateWithHost lk.salyk.kg:30040 [09:11:17]ConnectInit lk.salyk.kg [09:11:17]written 0, free lines is 4095 [09:11:17]Connected sock=10 [09:11:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C3 3F 07 01 35 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 33 96 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C8 7B 02 00 35 04 06 00 1C F5 09 BB C4 CA 48 8D 40 02 A1 26 F1 2E [09:11:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6D 45 47 00 81 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C8 7B 02 00 F4 03 04 00 41 42 93 66 B6 04 01 00 00 9C 2B 27 99 C0 D1 E4 D0 [09:11:17]CommunicateWithHost err = 0 [09:11:17]CheckOFDResponse [09:11:17]1017 (14) - 77093643461234 [09:11:17]1041 (16) - 0000000000874899 [09:11:17]1040 (4) - 162760 [09:11:17]1012 (4) - 14.07.2024 03:13 [09:11:17]1206 (1) - 0 [09:11:17]OFD Sender: Remove packet 162760 [09:11:17]ProducePacketName [09:11:17]name=ofd_packets/00162760 [09:11:17]NVStorageDeleteData [09:11:17]Write to MH i2c: 01 00 00 0D 08 15 [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: 01 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: 01 07 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: 01 07 00 0D 08 00 00 00 00 00 DE 0C 06 [09:11:17]RasterBufferAndPrint [09:11:17]line [09:11:17]line [09:11:17]line [09:11:17]line [09:11:17]line [09:11:17]written 0, free lines is 3306 [09:11:17]MH_Cut [09:11:17]Write to MH i2c: D1 01 00 14 08 01 EE [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: D1 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: D1 01 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: D1 01 00 14 08 00 ED [09:11:17]Write to MH i2c: 01 00 00 15 08 1D [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:18]OFD Sender: No OFD packet to send [09:11:18]*** Cut start [09:11:18]*** Purtial cut [09:11:18]*** CUTSNS_PIN = 0 [09:11:18]*** Stage 1: CUTSNS_PIN = 1 [09:11:20]Read from MH i2c: 01 [09:11:20]MH_I2C_Read... [09:11:20]*** Stop cut motor [09:11:20]*** Cut end [09:11:20]Read from MH i2c: 01 07 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: 01 07 00 15 08 00 00 00 00 00 FF 0F 32 [09:11:20]process_action close_receipt done [09:11:20]requested_data is exist [09:11:20]produce_requested_data [09:11:20]requested_item fm.sn is exist - process it [09:11:20]wFMCommunicate request_size=4 [09:11:20]MH_SAM_APDU [09:11:20]CAPDU: 80 11 00 00 [09:11:20]Write to MH i2c: E2 08 00 16 08 80 11 00 00 00 00 00 00 98 [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:20]Read from MH i2c: E2 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 17 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 17 00 16 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F8 [09:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:11:20]wFMCommunicate OK [09:11:20]requested_item fd.num is exist - process it [09:11:20]SAM_PROTO_GetFieldsCounters [09:11:20]wFMCommunicate request_size=4 [09:11:20]MH_SAM_APDU [09:11:20]CAPDU: 80 13 00 00 [09:11:20]Write to MH i2c: E2 08 00 17 08 80 13 00 00 00 00 00 00 9B [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:20]Read from MH i2c: E2 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 62 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 62 00 17 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C8 7B 02 00 0E 04 04 00 CF 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 BB [09:11:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C8 7B 02 00 0E 04 04 00 CF 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 [09:11:20]wFMCommunicate OK [09:11:20]SAM_PROTO_GetFieldsCounters done [09:11:20]requested_item shift.num is exist - process it [09:11:20]requested_item shift.opened is exist - process it [09:11:20]req_shift_opened [09:11:20]FM_GetShiftState [09:11:20]SAM_PROTO_GetShiftState [09:11:20]wFMCommunicate request_size=4 [09:11:20]MH_SAM_APDU [09:11:20]CAPDU: 80 13 01 00 [09:11:20]Write to MH i2c: E2 08 00 18 08 80 13 01 00 00 00 00 00 9D [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:20]Read from MH i2c: E2 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 0E 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 0E 00 18 08 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D3 [09:11:20]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:11:20]wFMCommunicate OK [09:11:20]SAM_PROTO_GetShiftState done [09:11:20]FM_GetShiftState done [09:11:20]req_shift_opened done [09:11:20]requested_item shift.open_date is exist - process it [09:11:20]req_shift_open_date [09:11:20]req_shift_open_date done [09:11:20]produce_requested_data done [09:11:20]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162760,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:11:20]process_action_free close_receipt [09:11:20]json_value_free [09:11:20]json_value_free done [09:11:20]process_json_proto returns [09:11:20]Send response to host [09:11:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162760,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:11:20]free response buf [09:11:20]execute_script done [09:11:20]execute_script returns [09:11:20]free content buf [09:11:20]Sock 7.Close socket [09:11:20]Sock 7.Thread stoped [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:11]accept exits with 9 [09:15:11]New connection [09:15:11]New thread 3066735972 created [09:15:11]Thread 3066879332 joined [09:15:11]Waiting for new connection... [09:15:11] Sock 9.Parse request [09:15:11]Sock 9.Check first char [09:15:11]Sock 9.First char is OK [09:15:11]request: POST /json_proto HTTP/1.0 [09:15:11]Method: POST [09:15:11]URL: /json_proto [09:15:11]Method is POST - this is cgi request [09:15:11]url: /json_proto [09:15:11]query_string will be loaded in cgi processing [09:15:11]execute_cgi json_proto POST (null) [09:15:11]execute_cgi path=json_proto method=POST [09:15:11]POST find Content-Length [09:15:11]Host: 172.17.39.67:8080 [09:15:11]Content-Length: 849 [09:15:11]Content-Type: application/json [09:15:11] [09:15:11]POST finish read [09:15:11]Found Content-Length = 849 [09:15:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:11]execute_script... [09:15: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)1319349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:11]POST & json_proto [09:15:11]process_json_proto [09:15:11]json parsed OK: [09:15:11]protocol is kg_v1.0 [09:15:11]action value=close_receipt [09:15:11]process_action close_receipt [09:15:11]cmd_close_receipt [09:15:11]MH_GetDate [09:15:11]Write to MH i2c: F0 00 00 19 08 10 [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: F0 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: F0 09 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: F0 09 00 19 08 00 1F 97 93 66 B6 85 93 66 FC [09:15:11]GetLastDocTimeStamp 1720948275 [09:15:11]current date 1720948511 [09:15:11]FM_GetShiftState [09:15:11]SAM_PROTO_GetShiftState [09:15:11]wFMCommunicate request_size=4 [09:15:11]MH_SAM_APDU [09:15:11]CAPDU: 80 13 01 00 [09:15:11]Write to MH i2c: E2 08 00 1A 08 80 13 01 00 00 00 00 00 9F [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:11]Read from MH i2c: E2 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 0E 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 0E 00 1A 08 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D5 [09:15:11]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:15:11]wFMCommunicate OK [09:15:11]SAM_PROTO_GetShiftState done [09:15:11]FM_GetShiftState done [09:15:11]opened in 1720915483 [09:15:11]opened+sec_in_day 1721001883 [09:15:11]quantity*price = 300055 [09:15:11]sum+1 = 300057 [09:15:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 73 14.07.2024 09:15 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162761 ФПД: 158655884258229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T091511&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162761&fm=158655884258229&tin=02508201610067®Number=0000000000090858&sum=300056 [09:15:12]StoreToDocumentArchive [09:15:12]shift 463 fd 162761 [09:15:12]save to /storage/0463/doc_00162761 [09:15:12]save last doc name /storage/0463/doc_00162761 to /storage/kkm_last_doc_name [09:15:12]save OK [09:15:12]Clear old archive folders... [09:15:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:15:12]tlvbuf is 01300E50 [09:15:12]SAM_PROTO_ClearQueue [09:15:12]wFMCommunicate request_size=4 [09:15:12]MH_SAM_APDU [09:15:12]CAPDU: 80 09 00 00 [09:15:12]Write to MH i2c: E2 08 00 27 08 80 09 00 00 00 00 00 00 A1 [09:15:12]Write i2c OK [09:15:12]MH_I2C_Read... [09:15:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:12]Read from MH i2c: E2 [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: E2 03 00 [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: E2 03 00 27 08 00 90 00 A3 [09:15:12]RAPDU: 90 00 [09:15:12]wFMCommunicate OK [09:15:12]SAM_PROTO_ClearQueue done [09:15:12]KKMCreateOFDPacket [09:15:12]OFDProtocolAddRootSTLVToBuf [09:15:12]FM_MakeSignedData [09:15:12]FM_MakeSignedData [09:15:12]SAM_PROTO_SignData [09:15:12]wFMCommunicate request_size=4 [09:15:12]MH_SAM_APDU [09:15:12]CAPDU: 80 0D 01 02 [09:15:12]Write to MH i2c: E2 08 00 28 08 80 0D 01 02 00 00 00 00 A9 [09:15:12]Write i2c OK [09:15:12]MH_I2C_Read... [09:15:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:12]Read from MH i2c: E2 [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: E2 03 00 [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: E2 03 00 28 08 00 90 00 A4 [09:15:12]RAPDU: 90 00 [09:15:12]wFMCommunicate OK [09:15:12]wFMCommunicate request_size=255 [09:15:12]MH_SAM_APDU [09:15:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 1F 97 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C9 7B 02 00 35 04 06 00 [09:15:12]Write to MH i2c: E2 02 01 29 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 1F 97 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C9 7B 02 00 35 04 06 00 00 00 06 [09:15:12]Write i2c OK [09:15:12]MH_I2C_Read... [09:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:13]Read from MH i2c: E2 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 03 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 03 00 29 08 00 90 00 A5 [09:15:13]RAPDU: 90 00 [09:15:13]wFMCommunicate OK [09:15:13]wFMCommunicate request_size=11 [09:15:13]MH_SAM_APDU [09:15:13]CAPDU: 80 0D 02 02 06 90 4B F3 9F 6B B5 [09:15:13]Write to MH i2c: E2 0E 00 2A 08 80 0D 02 02 06 00 90 4B F3 9F 6B B5 00 00 45 [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:13]Read from MH i2c: E2 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 03 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 03 00 2A 08 00 90 00 A6 [09:15:13]RAPDU: 90 00 [09:15:13]wFMCommunicate OK [09:15:13]wFMCommunicate request_size=4 [09:15:13]MH_SAM_APDU [09:15:13]CAPDU: 80 0D 03 02 [09:15:13]Write to MH i2c: E2 08 00 2B 08 80 0D 03 02 00 00 00 00 AE [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:13]Read from MH i2c: E2 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 0B 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 0B 00 2B 08 00 81 05 D7 AF D4 EF 83 42 90 00 43 [09:15:13]RAPDU: 81 05 D7 AF D4 EF 83 42 90 00 [09:15:13]wFMCommunicate OK [09:15:13]SAM_PROTO_SignData done [09:15:13]FM_MakeSignedData done [09:15:13]CreateOFDProtocolMessage [09:15:13]wFMCommunicate request_size=4 [09:15:13]MH_SAM_APDU [09:15:13]CAPDU: 80 11 00 00 [09:15:13]Write to MH i2c: E2 08 00 2C 08 80 11 00 00 00 00 00 00 AE [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:13]Read from MH i2c: E2 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 17 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 17 00 2C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0E [09:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:15:13]wFMCommunicate OK [09:15:13]CreateOFDProtocolMessage done [09:15:13]OFDSenderStorePacket 162761 [09:15:13]StoreOFDPacket docnum=162761 [09:15:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 39 02 08 01 32 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 1F 97 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C9 7B 02 00 35 04 06 00 90 4B F3 9F 6B B5 81 05 D7 AF D4 EF 83 42 [09:15:13]CheckFolder [09:15:13]dirname=/storage/ofd_packets [09:15:13]CheckFolder done [09:15:13]ProducePacketName [09:15:13]name=ofd_packets/00162761 [09:15:13]NVStorageSaveData ofd_packets/00162761 [09:15:13]File name is /storage/ofd_packets/00162761 [09:15:13]Write 302 bytes [09:15:13]NVStorageSaveData done [09:15:13]OFDSenderStorePacket done [09:15:13]KKMCreateOFDPacket done [09:15:13]NVStorageSaveData kkm_last_timestamp [09:15:13]File name is /storage/kkm_last_timestamp [09:15:13]Write 4 bytes [09:15:13]NVStorageSaveData done [09:15:13]ExternCall_PrintAddStr [09:15:13]wPrintStart [09:15:13]Write to MH i2c: 01 00 00 2D 08 35 [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: 01 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: 01 07 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: 01 07 00 2D 08 00 00 00 00 00 FF 0F 4A [09:15:13]RasterBufferAndPrint [09:15:13]line Счет N : (1)1319349 [09:15:13]line ИНН: 02508201610067 [09:15:13]line Контрольно-Кассовый Чек [09:15:13]line ПРОДАЖА [09:15:13]line ТРК (МРК, ГНК) : 21 [09:15:13]line Товар: 2710194210 [09:15:13]line ДТ(л)-К-5 [09:15:13]line 41.330 * 72.60 [09:15:13]line = 3000.56 [09:15:13]line НДС 12% НСП 1% [09:15:13]line > о реализуемом товаре [09:15:13]line ИТОГО: 3000.56 [09:15:13]line НСП 1% : 26.55 [09:15:13]line НДС 12% : 318.64 [09:15:13]line Наличными: 0.00 [09:15:13]line Безнал.: 3000.56 [09:15:13]line Место: АЗС № 140 "Партнер Нефть" [09:15:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:15:13]line СНО: Общий режим [09:15:13]line Чек 73 14.07.2024 09:15 [09:15:13]line Смена: 463 ФФД: 1.0 [09:15:13]line ЗНМ: 0300000129 [09:15:13]line РНМ: 0000000000090858 [09:15:13]line Версия ККМ: 001 [09:15:13]line Платежная система: АКБ Кыргызстан [09:15:13]line ФМ: 0000000000874899 [09:15:13]line ФД: 162761 [09:15:13]line ФПД: 158655884258229 [09:15:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T091511&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162761&fm=158655884258229&tin=02508201610067®Number=0000000000090858&sum=300056 [09:15:13]OFD Sender: Processing packet 162761 [packets to send 106, broken 105] [09:15:13]ProducePacketName [09:15:13]name=ofd_packets/00162761 [09:15:13]OFD Sender: To server: pG, [09:15:13]CommunicateWithHost lk.salyk.kg:30040 [09:15:13]ConnectInit lk.salyk.kg [09:15:13]written 0, free lines is 4095 [09:15:13]Connected sock=10 [09:15:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 39 02 08 01 32 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 1F 97 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C9 7B 02 00 35 04 06 00 90 4B F3 9F 6B B5 81 05 D7 AF D4 EF 83 42 [09:15:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 80 EC 47 00 ED 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C9 7B 02 00 F4 03 04 00 2E 43 93 66 B6 04 01 00 00 66 C4 D3 6A 90 19 A1 E1 [09:15:13]CommunicateWithHost err = 0 [09:15:13]CheckOFDResponse [09:15:13]1017 (14) - 77093643461234 [09:15:13]1041 (16) - 0000000000874899 [09:15:13]1040 (4) - 162761 [09:15:13]1012 (4) - 14.07.2024 03:17 [09:15:13]1206 (1) - 0 [09:15:13]OFD Sender: Remove packet 162761 [09:15:13]ProducePacketName [09:15:13]name=ofd_packets/00162761 [09:15:13]NVStorageDeleteData [09:15:14]Write to MH i2c: 01 00 00 57 08 5F [09:15:14]Write i2c OK [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: 01 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: 01 07 00 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: 01 07 00 57 08 00 00 00 00 00 F6 0C 68 [09:15:14]RasterBufferAndPrint [09:15:14]line [09:15:14]line [09:15:14]line [09:15:14]line [09:15:14]line [09:15:14]written 0, free lines is 3324 [09:15:14]MH_Cut [09:15:14]Write to MH i2c: D1 01 00 5E 08 01 38 [09:15:14]Write i2c OK [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: D1 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: D1 01 00 [09:15:14]MH_I2C_Read... [09:15:14]Read from MH i2c: D1 01 00 5E 08 00 37 [09:15:14]Write to MH i2c: 01 00 00 5F 08 67 [09:15:14]Write i2c OK [09:15:14]MH_I2C_Read... [09:15:14]OFD Sender: No OFD packet to send [09:15:14]*** Cut start [09:15:14]*** Purtial cut [09:15:14]*** Stage 1: CUTSNS_PIN = 1 [09:15:15]Read from MH i2c: 01 [09:15:15]MH_I2C_Read... [09:15:15]*** Stop cut motor [09:15:15]*** Cut end [09:15:15]Read from MH i2c: 01 07 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: 01 07 00 5F 08 00 00 00 00 00 FF 0F 7C [09:15:15]process_action close_receipt done [09:15:15]requested_data is exist [09:15:15]produce_requested_data [09:15:15]requested_item fm.sn is exist - process it [09:15:15]wFMCommunicate request_size=4 [09:15:15]MH_SAM_APDU [09:15:15]CAPDU: 80 11 00 00 [09:15:15]Write to MH i2c: E2 08 00 60 08 80 11 00 00 00 00 00 00 E2 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:15]Read from MH i2c: E2 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 17 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 17 00 60 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 42 [09:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:15:15]wFMCommunicate OK [09:15:15]requested_item fd.num is exist - process it [09:15:15]SAM_PROTO_GetFieldsCounters [09:15:15]wFMCommunicate request_size=4 [09:15:15]MH_SAM_APDU [09:15:15]CAPDU: 80 13 00 00 [09:15:15]Write to MH i2c: E2 08 00 61 08 80 13 00 00 00 00 00 00 E5 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:15]Read from MH i2c: E2 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 62 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 62 00 61 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C9 7B 02 00 0E 04 04 00 CF 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 09 [09:15:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C9 7B 02 00 0E 04 04 00 CF 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 [09:15:15]wFMCommunicate OK [09:15:15]SAM_PROTO_GetFieldsCounters done [09:15:15]requested_item shift.num is exist - process it [09:15:15]requested_item shift.opened is exist - process it [09:15:15]req_shift_opened [09:15:15]FM_GetShiftState [09:15:15]SAM_PROTO_GetShiftState [09:15:15]wFMCommunicate request_size=4 [09:15:15]MH_SAM_APDU [09:15:15]CAPDU: 80 13 01 00 [09:15:15]Write to MH i2c: E2 08 00 62 08 80 13 01 00 00 00 00 00 E7 [09:15:15]Write i2c OK [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 [09:15:15]MH_I2C_Read... [09:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:15]Read from MH i2c: E2 0E 00 [09:15:15]MH_I2C_Read... [09:15:15]Read from MH i2c: E2 0E 00 62 08 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1D [09:15:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:15:15]wFMCommunicate OK [09:15:15]SAM_PROTO_GetShiftState done [09:15:15]FM_GetShiftState done [09:15:15]req_shift_opened done [09:15:15]requested_item shift.open_date is exist - process it [09:15:15]req_shift_open_date [09:15:15]req_shift_open_date done [09:15:15]produce_requested_data done [09:15:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162761,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:15:15]process_action_free close_receipt [09:15:15]json_value_free [09:15:15]json_value_free done [09:15:15]process_json_proto returns [09:15:15]Send response to host [09:15:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162761,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:15:15]free response buf [09:15:15]execute_script done [09:15:15]execute_script returns [09:15:15]free content buf [09:15:15]Sock 9.Close socket [09:15:15]Sock 9.Thread stoped [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:33]int [09:16:33]Write to MH i2c: 01 00 00 63 08 6B [09:16:33]*** FLAG_PRN_PAP1 set [09:16:33]Write i2c OK [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: 01 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: 01 07 00 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: 01 07 00 63 08 00 01 00 00 00 FF 0F 81 [09:16:33]state=0 [09:16:33]No paper [09:16:33]int [09:16:33]Write to MH i2c: 01 00 00 64 08 6C [09:16:33]*** FLAG_PRN_PAP2 set [09:16:33]Write i2c OK [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: 01 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: 01 07 00 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: 01 07 00 64 08 00 03 00 00 00 FF 0F 84 [09:16:33]state=0 [09:16:33]No paper [09:16:33]Cover opened [09:16:34]int [09:16:34]Write to MH i2c: 01 00 00 65 08 6D [09:16:34]*** FLAG_PRN_PAP2 reset [09:16:34]Write i2c OK [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: 01 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: 01 07 00 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: 01 07 00 65 08 00 01 00 00 00 FF 0F 83 [09:16:34]state=3 [09:16:34]No paper [09:16:34]Cover closed [09:16:34]OFD Sender: No OFD packet to send [09:16:34]int [09:16:34]Write to MH i2c: 01 00 00 66 08 6E [09:16:34]*** FLAG_PRN_PAP2 set [09:16:34]Write i2c OK [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: 01 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: 01 07 00 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: 01 07 00 66 08 00 03 00 00 00 FF 0F 86 [09:16:34]state=0 [09:16:34]No paper [09:16:34]Cover opened [09:16:36]int [09:16:36]Write to MH i2c: 01 00 00 67 08 6F [09:16:36]*** FLAG_PRN_PAP2 reset [09:16:36]Write i2c OK [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: 01 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: 01 07 00 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: 01 07 00 67 08 00 01 00 00 00 FF 0F 85 [09:16:36]state=3 [09:16:36]No paper [09:16:36]Cover closed [09:16:36]int [09:16:36]Write to MH i2c: 01 00 00 68 08 70 [09:16:36]*** FLAG_PRN_PAP1 reset [09:16:36]Write i2c OK [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: 01 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: 01 07 00 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: 01 07 00 68 08 00 00 00 00 00 FF 0F 85 [09:16:36]state=0 [09:16:38]accept exits with 7 [09:16:38]New connection [09:16:38]New thread 3066879332 created [09:16:38]Thread 3066735972 joined [09:16:38]Waiting for new connection... [09:16:38] Sock 7.Parse request [09:16:38]Sock 7.Check first char [09:16:38]Sock 7.First char is OK [09:16:38]request: POST /json_proto HTTP/1.0 [09:16:38]Method: POST [09:16:38]URL: /json_proto [09:16:38]Method is POST - this is cgi request [09:16:38]url: /json_proto [09:16:38]query_string will be loaded in cgi processing [09:16:38]execute_cgi json_proto POST (null) [09:16:38]execute_cgi path=json_proto method=POST [09:16:38]POST find Content-Length [09:16:38]Host: 172.17.39.67:8080 [09:16:38]Content-Length: 215 [09:16:38]Content-Type: application/json [09:16:38] [09:16:38]POST finish read [09:16:38]Found Content-Length = 215 [09:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:38]execute_script... [09:16:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:38]POST & json_proto [09:16:38]process_json_proto [09:16:38]json parsed OK: [09:16:38]protocol is kg_v1.0 [09:16:38]action value=get_value [09:16:38]process_action get_value [09:16:38]cmd_get_value [09:16:38]process_action get_value done [09:16:38]requested_data is exist [09:16:38]produce_requested_data [09:16:38]requested_item kkm.sn is exist - process it [09:16:38]requested_item kkm.ver is exist - process it [09:16:38]requested_item fm.sn is exist - process it [09:16:38]wFMCommunicate request_size=4 [09:16:38]MH_SAM_APDU [09:16:38]CAPDU: 80 11 00 00 [09:16:38]Write to MH i2c: E2 08 00 69 08 80 11 00 00 00 00 00 00 EB [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:38]Read from MH i2c: E2 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: E2 17 00 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: E2 17 00 69 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4B [09:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:16:38]wFMCommunicate OK [09:16:38]requested_item fd.num is exist - process it [09:16:38]SAM_PROTO_GetFieldsCounters [09:16:38]wFMCommunicate request_size=4 [09:16:38]MH_SAM_APDU [09:16:38]CAPDU: 80 13 00 00 [09:16:38]Write to MH i2c: E2 08 00 6A 08 80 13 00 00 00 00 00 00 EE [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:38]Read from MH i2c: E2 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: E2 62 00 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: E2 62 00 6A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C9 7B 02 00 0E 04 04 00 CF 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 12 [09:16:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C9 7B 02 00 0E 04 04 00 CF 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 [09:16:38]wFMCommunicate OK [09:16:38]SAM_PROTO_GetFieldsCounters done [09:16:38]requested_item shift.num is exist - process it [09:16:38]requested_item shift.opened is exist - process it [09:16:38]req_shift_opened [09:16:38]FM_GetShiftState [09:16:38]SAM_PROTO_GetShiftState [09:16:38]wFMCommunicate request_size=4 [09:16:38]MH_SAM_APDU [09:16:38]CAPDU: 80 13 01 00 [09:16:38]Write to MH i2c: E2 08 00 6B 08 80 13 01 00 00 00 00 00 F0 [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:38]Read from MH i2c: E2 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: E2 0E 00 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: E2 0E 00 6B 08 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 26 [09:16:38]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:16:38]wFMCommunicate OK [09:16:38]SAM_PROTO_GetShiftState done [09:16:38]FM_GetShiftState done [09:16:38]req_shift_opened done [09:16:38]requested_item shift.open_date is exist - process it [09:16:38]req_shift_open_date [09:16:38]req_shift_open_date done [09:16:38]produce_requested_data done [09:16:38]produce_requested_data return {"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162761,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:16:38]process_action_free get_value [09:16:38]json_value_free [09:16:38]json_value_free done [09:16:38]process_json_proto returns [09:16:38]Send response to host [09:16:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162761,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:16:38]free response buf [09:16:38]execute_script done [09:16:38]execute_script returns [09:16:38]free content buf [09:16:38]Sock 7.Close socket [09:16:38]Sock 7.Thread stoped [09:16:38]accept exits with 9 [09:16:38]New connection [09:16:38]New thread 3066735972 created [09:16:38]Thread 3066879332 joined [09:16:38]Waiting for new connection... [09:16:38] Sock 9.Parse request [09:16:38]Sock 9.Check first char [09:16:38]Sock 9.First char is OK [09:16:38]request: POST /json_proto HTTP/1.0 [09:16:38]Method: POST [09:16:38]URL: /json_proto [09:16:38]Method is POST - this is cgi request [09:16:38]url: /json_proto [09:16:38]query_string will be loaded in cgi processing [09:16:38]execute_cgi json_proto POST (null) [09:16:38]execute_cgi path=json_proto method=POST [09:16:38]POST find Content-Length [09:16:38]Host: 172.17.39.67:8080 [09:16:38]Content-Length: 331 [09:16:38]Content-Type: application/json [09:16:38] [09:16:38]POST finish read [09:16:38]Found Content-Length = 331 [09:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:16:38]execute_script... [09:16:38]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:38]POST & json_proto [09:16:38]process_json_proto [09:16:38]json parsed OK: [09:16:38]protocol is kg_v1.0 [09:16:38]action value=get_value [09:16:38]process_action get_value [09:16:38]cmd_get_value [09:16:38]process_action get_value done [09:16:38]requested_data is exist [09:16:38]produce_requested_data [09:16:38]requested_item fm.sale.total is exist - process it [09:16:38]SAM_PROTO_GetFMData [09:16:38]wFMCommunicate request_size=4 [09:16:38]MH_SAM_APDU [09:16:38]CAPDU: 80 13 03 00 [09:16:38]Write to MH i2c: E2 08 00 6C 08 80 13 03 00 00 00 00 00 F3 [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 FD 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 FD 00 6C 08 00 C1 04 85 04 BD 04 6E 04 04 00 2B 78 02 00 69 04 A3 00 6F 04 04 00 18 78 02 00 B1 04 05 00 F9 66 AE 54 03 70 04 05 00 DC E7 EF B2 02 72 04 04 00 1D 7F BE A1 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 89 5D 92 5A 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 EA 0C 8C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 B4 [09:16:39]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 2B 78 02 00 69 04 A3 00 6F 04 04 00 18 78 02 00 B1 04 05 00 F9 66 AE 54 03 70 04 05 00 DC E7 EF B2 02 72 04 04 00 1D 7F BE A1 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 89 5D 92 5A 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 EA 0C 8C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [09:16:39]wFMCommunicate OK [09:16:39]wFMCommunicate request_size=4 [09:16:39]MH_SAM_APDU [09:16:39]CAPDU: 80 17 00 00 [09:16:39]Write to MH i2c: E2 08 00 6D 08 80 17 00 00 00 00 00 00 F5 [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 FD 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 FD 00 6D 08 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 2E [09:16:39]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [09:16:39]wFMCommunicate OK [09:16:39]wFMCommunicate request_size=4 [09:16:39]MH_SAM_APDU [09:16:39]CAPDU: 80 17 00 00 [09:16:39]Write to MH i2c: E2 08 00 6E 08 80 17 00 00 00 00 00 00 F6 [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 FD 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 FD 00 6E 08 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 96 [09:16:39]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [09:16:39]wFMCommunicate OK [09:16:39]wFMCommunicate request_size=4 [09:16:39]MH_SAM_APDU [09:16:39]CAPDU: 80 17 00 00 [09:16:39]Write to MH i2c: E2 08 00 6F 08 80 17 00 00 00 00 00 00 F7 [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]OFD Sender: No OFD packet to send [09:16:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 FD 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 FD 00 6F 08 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7C [09:16:39]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:16:39]wFMCommunicate OK [09:16:39]wFMCommunicate request_size=4 [09:16:39]MH_SAM_APDU [09:16:39]CAPDU: 80 17 00 00 [09:16:39]Write to MH i2c: E2 08 00 70 08 80 17 00 00 00 00 00 00 F8 [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 DE 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 DE 00 70 08 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D7 [09:16:40]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:40]wFMCommunicate OK [09:16:40]SAM_PROTO_GetFMData done [09:16:40]requested_item fm.sale_refund.total is exist - process it [09:16:40]requested_item fm.buy.total is exist - process it [09:16:40]requested_item shift.sale.total is exist - process it [09:16:40]SAM_PROTO_GetShiftData [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 13 02 00 [09:16:40]Write to MH i2c: E2 08 00 71 08 80 13 02 00 00 00 00 00 F7 [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 FD 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 FD 00 71 08 00 AF 04 AA 04 AB 04 6E 04 04 00 49 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 9B 5E 79 70 04 03 00 F8 EF 58 72 04 03 00 A3 6E 20 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 6A E4 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 01 13 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 AA [09:16:40]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 49 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 9B 5E 79 70 04 03 00 F8 EF 58 72 04 03 00 A3 6E 20 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 6A E4 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 01 13 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:40]wFMCommunicate OK [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 17 00 00 [09:16:40]Write to MH i2c: E2 08 00 72 08 80 17 00 00 00 00 00 00 FA [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 FD 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 FD 00 72 08 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 13 [09:16:40]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:40]wFMCommunicate OK [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 17 00 00 [09:16:40]Write to MH i2c: E2 08 00 73 08 80 17 00 00 00 00 00 00 FB [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:16:41]Read from MH i2c: E2 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 FD 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 FD 00 73 08 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 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 AF [09:16:41]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:41]wFMCommunicate OK [09:16:41]wFMCommunicate request_size=4 [09:16:41]MH_SAM_APDU [09:16:41]CAPDU: 80 17 00 00 [09:16:41]Write to MH i2c: E2 08 00 74 08 80 17 00 00 00 00 00 00 FC [09:16:41]Write i2c OK [09:16:41]MH_I2C_Read... [09:16:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:16:41]Read from MH i2c: E2 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 FD 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 FD 00 74 08 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 7A [09:16:41]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:41]wFMCommunicate OK [09:16:41]wFMCommunicate request_size=4 [09:16:41]MH_SAM_APDU [09:16:41]CAPDU: 80 17 00 00 [09:16:41]Write to MH i2c: E2 08 00 75 08 80 17 00 00 00 00 00 00 FD [09:16:41]Write i2c OK [09:16:41]MH_I2C_Read... [09:16:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [09:16:41]Read from MH i2c: E2 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 CC 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: E2 CC 00 75 08 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 DE [09:16:41]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 [09:16:41]wFMCommunicate OK [09:16:41]SAM_PROTO_GetShiftData done [09:16:41]requested_item shift.sale.total_cash is exist - process it [09:16:41]requested_item shift.sale_refund.total is exist - process it [09:16:41]requested_item shift.sale_refund.total_cash is exist - process it [09:16:41]requested_item shift.buy.total is exist - process it [09:16:41]requested_item shift.buy.total_cash is exist - process it [09:16:41]produce_requested_data done [09:16:41]produce_requested_data return {"fm.sale.total":143056176.57,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":79540.75,"shift.sale.total_cash":58286.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} [09:16:41]process_action_free get_value [09:16:41]json_value_free [09:16:41]json_value_free done [09:16:41]process_json_proto returns [09:16:41]Send response to host [09:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":143056176.57,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":79540.75,"shift.sale.total_cash":58286.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}}} [09:16:41]free response buf [09:16:41]execute_script done [09:16:41]execute_script returns [09:16:41]free content buf [09:16:41]Sock 9.Close socket [09:16:41]Sock 9.Thread stoped [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:15]accept exits with 7 [09:22:15]New connection [09:22:15]New thread 3066879332 created [09:22:15]Thread 3066735972 joined [09:22:15]Waiting for new connection... [09:22:15] Sock 7.Parse request [09:22:15]Sock 7.Check first char [09:22:15]Sock 7.First char is OK [09:22:15]request: POST /json_proto HTTP/1.0 [09:22:15]Method: POST [09:22:15]URL: /json_proto [09:22:15]Method is POST - this is cgi request [09:22:15]url: /json_proto [09:22:15]query_string will be loaded in cgi processing [09:22:15]execute_cgi json_proto POST (null) [09:22:15]execute_cgi path=json_proto method=POST [09:22:15]POST find Content-Length [09:22:15]Host: 172.17.39.67:8080 [09:22:15]Content-Length: 683 [09:22:15]Content-Type: application/json [09:22:15] [09:22:15]POST finish read [09:22:15]Found Content-Length = 683 [09:22:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 3.590, "sum" : 260.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:15]execute_script... [09:22: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)1319350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 3.590, "sum" : 260.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:15]POST & json_proto [09:22:15]process_json_proto [09:22:15]json parsed OK: [09:22:15]protocol is kg_v1.0 [09:22:15]action value=close_receipt [09:22:15]process_action close_receipt [09:22:15]cmd_close_receipt [09:22:15]MH_GetDate [09:22:15]Write to MH i2c: F0 00 00 76 08 6D [09:22:15]Write i2c OK [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: F0 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: F0 09 00 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: F0 09 00 76 08 00 C8 98 93 66 B6 85 93 66 03 [09:22:15]GetLastDocTimeStamp 1720948511 [09:22:15]current date 1720948936 [09:22:15]FM_GetShiftState [09:22:15]SAM_PROTO_GetShiftState [09:22:15]wFMCommunicate request_size=4 [09:22:15]MH_SAM_APDU [09:22:15]CAPDU: 80 13 01 00 [09:22:15]Write to MH i2c: E2 08 00 77 08 80 13 01 00 00 00 00 00 FC [09:22:15]Write i2c OK [09:22:15]MH_I2C_Read... [09:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:16]Read from MH i2c: E2 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 0E 00 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 0E 00 77 08 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 32 [09:22:16]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:22:16]wFMCommunicate OK [09:22:16]SAM_PROTO_GetShiftState done [09:22:16]FM_GetShiftState done [09:22:16]opened in 1720915483 [09:22:16]opened+sec_in_day 1721001883 [09:22:16]quantity*price = 26063 [09:22:16]sum+1 = 26064 [09:22:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.31 НДС 12% : 27.68 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 74 14.07.2024 09:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162762 ФПД: 189603744495096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T092216&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162762&fm=189603744495096&tin=02508201610067®Number=0000000000090858&sum=26000 [09:22:17]StoreToDocumentArchive [09:22:17]shift 463 fd 162762 [09:22:17]save to /storage/0463/doc_00162762 [09:22:17]save last doc name /storage/0463/doc_00162762 to /storage/kkm_last_doc_name [09:22:17]save OK [09:22:17]Clear old archive folders... [09:22:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:22:17]tlvbuf is 01220970 [09:22:17]SAM_PROTO_ClearQueue [09:22:17]wFMCommunicate request_size=4 [09:22:17]MH_SAM_APDU [09:22:17]CAPDU: 80 09 00 00 [09:22:17]Write to MH i2c: E2 08 00 84 08 80 09 00 00 00 00 00 00 FE [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:17]Read from MH i2c: E2 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 03 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [09:22:17]RAPDU: 90 00 [09:22:17]wFMCommunicate OK [09:22:17]SAM_PROTO_ClearQueue done [09:22:17]KKMCreateOFDPacket [09:22:17]OFDProtocolAddRootSTLVToBuf [09:22:17]FM_MakeSignedData [09:22:17]FM_MakeSignedData [09:22:17]SAM_PROTO_SignData [09:22:17]wFMCommunicate request_size=4 [09:22:17]MH_SAM_APDU [09:22:17]CAPDU: 80 0D 01 02 [09:22:17]Write to MH i2c: E2 08 00 85 08 80 0D 01 02 00 00 00 00 06 [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:17]Read from MH i2c: E2 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 03 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [09:22:17]RAPDU: 90 00 [09:22:17]wFMCommunicate OK [09:22:17]wFMCommunicate request_size=255 [09:22:17]MH_SAM_APDU [09:22:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CF 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C8 98 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CA 7B 02 00 35 04 06 00 [09:22:17]Write to MH i2c: E2 02 01 86 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CF 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C8 98 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CA 7B 02 00 35 04 06 00 00 00 82 [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:17]Read from MH i2c: E2 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 03 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [09:22:17]RAPDU: 90 00 [09:22:17]wFMCommunicate OK [09:22:17]wFMCommunicate request_size=11 [09:22:17]MH_SAM_APDU [09:22:17]CAPDU: 80 0D 02 02 06 AC 71 8F D6 B5 F8 [09:22:17]Write to MH i2c: E2 0E 00 87 08 80 0D 02 02 06 00 AC 71 8F D6 B5 F8 00 00 44 [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:17]Read from MH i2c: E2 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 03 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [09:22:17]RAPDU: 90 00 [09:22:17]wFMCommunicate OK [09:22:17]wFMCommunicate request_size=4 [09:22:17]MH_SAM_APDU [09:22:17]CAPDU: 80 0D 03 02 [09:22:17]Write to MH i2c: E2 08 00 88 08 80 0D 03 02 00 00 00 00 0B [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:17]Read from MH i2c: E2 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 0B 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 0B 00 88 08 00 03 33 AE 94 6D 7C CB 99 90 00 D1 [09:22:17]RAPDU: 03 33 AE 94 6D 7C CB 99 90 00 [09:22:17]wFMCommunicate OK [09:22:17]SAM_PROTO_SignData done [09:22:17]FM_MakeSignedData done [09:22:17]CreateOFDProtocolMessage [09:22:17]wFMCommunicate request_size=4 [09:22:17]MH_SAM_APDU [09:22:17]CAPDU: 80 11 00 00 [09:22:17]Write to MH i2c: E2 08 00 89 08 80 11 00 00 00 00 00 00 0B [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:17]Read from MH i2c: E2 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 17 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 17 00 89 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6B [09:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:22:17]wFMCommunicate OK [09:22:17]CreateOFDProtocolMessage done [09:22:17]OFDSenderStorePacket 162762 [09:22:17]StoreOFDPacket docnum=162762 [09:22:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 87 4A 08 01 8E 1D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CF 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C8 98 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CA 7B 02 00 35 04 06 00 AC 71 8F D6 B5 F8 03 33 AE 94 6D 7C CB 99 [09:22:17]CheckFolder [09:22:17]dirname=/storage/ofd_packets [09:22:17]CheckFolder done [09:22:17]ProducePacketName [09:22:17]name=ofd_packets/00162762 [09:22:17]NVStorageSaveData ofd_packets/00162762 [09:22:17]File name is /storage/ofd_packets/00162762 [09:22:17]Write 302 bytes [09:22:17]NVStorageSaveData done [09:22:17]OFDSenderStorePacket done [09:22:17]KKMCreateOFDPacket done [09:22:17]NVStorageSaveData kkm_last_timestamp [09:22:17]File name is /storage/kkm_last_timestamp [09:22:17]Write 4 bytes [09:22:17]NVStorageSaveData done [09:22:17]ExternCall_PrintAddStr [09:22:17]wPrintStart [09:22:17]Write to MH i2c: 01 00 00 8A 08 92 [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 07 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 07 00 8A 08 00 00 00 00 00 FF 0F A7 [09:22:17]RasterBufferAndPrint [09:22:17]line Счет N : (1)1319350 [09:22:17]line ИНН: 02508201610067 [09:22:17]line Контрольно-Кассовый Чек [09:22:17]line ПРОДАЖА [09:22:17]line ТРК (МРК, ГНК) : 21 [09:22:17]line Товар: 2710194210 [09:22:17]line ДТ(л)-К-5 [09:22:17]line 3.590 * 72.60 [09:22:17]line = 260.63 [09:22:17]line НДС 12% НСП 1% [09:22:17]line > о реализуемом товаре [09:22:17]line ОКРУГЛЕНИЕ: -0.63 [09:22:17]line ИТОГО: 260.00 [09:22:17]line Внесено: 260.00 [09:22:17]line СДАЧА: 0.00 [09:22:17]line НСП 1% : 2.31 [09:22:17]line НДС 12% : 27.68 [09:22:17]line Наличными: 260.00 [09:22:17]line Безнал.: 0.00 [09:22:17]line Место: АЗС № 140 "Партнер Нефть" [09:22:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:22:17]line СНО: Общий режим [09:22:17]line Чек 74 14.07.2024 09:22 [09:22:17]line Смена: 463 ФФД: 1.0 [09:22:17]line ЗНМ: 0300000129 [09:22:17]line РНМ: 0000000000090858 [09:22:17]line Версия ККМ: 001 [09:22:17]line ФМ: 0000000000874899 [09:22:17]line ФД: 162762 [09:22:17]line ФПД: 189603744495096 [09:22:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T092216&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162762&fm=189603744495096&tin=02508201610067®Number=0000000000090858&sum=26000 [09:22:18]OFD Sender: Processing packet 162762 [packets to send 106, broken 105] [09:22:18]ProducePacketName [09:22:18]name=ofd_packets/00162762 [09:22:18]OFD Sender: To server: pG, [09:22:18]CommunicateWithHost lk.salyk.kg:30040 [09:22:18]ConnectInit lk.salyk.kg [09:22:18]written 0, free lines is 4095 [09:22:18]Connected sock=10 [09:22:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 87 4A 08 01 8E 1D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CF 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C8 98 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CA 7B 02 00 35 04 06 00 AC 71 8F D6 B5 F8 03 33 AE 94 6D 7C CB 99 [09:22:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9D FE 47 00 2D F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CA 7B 02 00 F4 03 04 00 D6 44 93 66 B6 04 01 00 00 83 7A 0A 89 C1 D3 C4 CA [09:22:18]CommunicateWithHost err = 0 [09:22:18]CheckOFDResponse [09:22:18]1017 (14) - 77093643461234 [09:22:18]1041 (16) - 0000000000874899 [09:22:18]1040 (4) - 162762 [09:22:18]1012 (4) - 14.07.2024 03:24 [09:22:18]1206 (1) - 0 [09:22:18]OFD Sender: Remove packet 162762 [09:22:18]ProducePacketName [09:22:18]name=ofd_packets/00162762 [09:22:18]NVStorageDeleteData [09:22:18]Write to MH i2c: 01 00 00 B5 08 BD [09:22:18]Write i2c OK [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: 01 [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: 01 07 00 [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: 01 07 00 B5 08 00 00 00 00 00 D1 0C A1 [09:22:18]RasterBufferAndPrint [09:22:18]line [09:22:18]line [09:22:18]line [09:22:18]line [09:22:18]line [09:22:18]written 0, free lines is 3287 [09:22:18]MH_Cut [09:22:18]Write to MH i2c: D1 01 00 BC 08 01 96 [09:22:18]Write i2c OK [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: D1 [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: D1 01 00 [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: D1 01 00 BC 08 00 95 [09:22:18]Write to MH i2c: 01 00 00 BD 08 C5 [09:22:18]Write i2c OK [09:22:18]MH_I2C_Read... [09:22:18]OFD Sender: No OFD packet to send [09:22:19]*** Cut start [09:22:19]*** Purtial cut [09:22:19]*** CUTSNS_PIN = 0 [09:22:19]*** Stage 1: CUTSNS_PIN = 1 [09:22:21]Read from MH i2c: 01 [09:22:21]MH_I2C_Read... [09:22:21]*** Stop cut motor [09:22:21]*** Cut end [09:22:21]Read from MH i2c: 01 07 00 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: 01 07 00 BD 08 00 00 00 00 00 FF 0F DA [09:22:21]process_action close_receipt done [09:22:21]requested_data is exist [09:22:21]produce_requested_data [09:22:21]requested_item fm.sn is exist - process it [09:22:21]wFMCommunicate request_size=4 [09:22:21]MH_SAM_APDU [09:22:21]CAPDU: 80 11 00 00 [09:22:21]Write to MH i2c: E2 08 00 BE 08 80 11 00 00 00 00 00 00 40 [09:22:21]Write i2c OK [09:22:21]MH_I2C_Read... [09:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:21]Read from MH i2c: E2 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 17 00 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 17 00 BE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A0 [09:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:22:21]wFMCommunicate OK [09:22:21]requested_item fd.num is exist - process it [09:22:21]SAM_PROTO_GetFieldsCounters [09:22:21]wFMCommunicate request_size=4 [09:22:21]MH_SAM_APDU [09:22:21]CAPDU: 80 13 00 00 [09:22:21]Write to MH i2c: E2 08 00 BF 08 80 13 00 00 00 00 00 00 43 [09:22:21]Write i2c OK [09:22:21]MH_I2C_Read... [09:22:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:21]Read from MH i2c: E2 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 62 00 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 62 00 BF 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CA 7B 02 00 0E 04 04 00 CF 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 6B [09:22:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CA 7B 02 00 0E 04 04 00 CF 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 [09:22:21]wFMCommunicate OK [09:22:21]SAM_PROTO_GetFieldsCounters done [09:22:21]requested_item shift.num is exist - process it [09:22:21]requested_item shift.opened is exist - process it [09:22:21]req_shift_opened [09:22:21]FM_GetShiftState [09:22:21]SAM_PROTO_GetShiftState [09:22:21]wFMCommunicate request_size=4 [09:22:21]MH_SAM_APDU [09:22:21]CAPDU: 80 13 01 00 [09:22:21]Write to MH i2c: E2 08 00 C0 08 80 13 01 00 00 00 00 00 45 [09:22:21]Write i2c OK [09:22:21]MH_I2C_Read... [09:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:21]Read from MH i2c: E2 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 0E 00 [09:22:21]MH_I2C_Read... [09:22:21]Read from MH i2c: E2 0E 00 C0 08 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7B [09:22:21]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:22:21]wFMCommunicate OK [09:22:21]SAM_PROTO_GetShiftState done [09:22:21]FM_GetShiftState done [09:22:21]req_shift_opened done [09:22:21]requested_item shift.open_date is exist - process it [09:22:21]req_shift_open_date [09:22:21]req_shift_open_date done [09:22:21]produce_requested_data done [09:22:21]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162762,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:22:21]process_action_free close_receipt [09:22:21]json_value_free [09:22:21]json_value_free done [09:22:21]process_json_proto returns [09:22:21]Send response to host [09:22:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162762,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:22:21]free response buf [09:22:21]execute_script done [09:22:21]execute_script returns [09:22:21]free content buf [09:22:21]Sock 7.Close socket [09:22:21]Sock 7.Thread stoped [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:20]accept exits with 9 [09:23:20]New connection [09:23:20]New thread 3066735972 created [09:23:20]Thread 3066879332 joined [09:23:20]Waiting for new connection... [09:23:20] Sock 9.Parse request [09:23:20]Sock 9.Check first char [09:23:20]Sock 9.First char is OK [09:23:20]request: POST /json_proto HTTP/1.0 [09:23:20]Method: POST [09:23:20]URL: /json_proto [09:23:20]Method is POST - this is cgi request [09:23:20]url: /json_proto [09:23:20]query_string will be loaded in cgi processing [09:23:20]execute_cgi json_proto POST (null) [09:23:20]execute_cgi path=json_proto method=POST [09:23:20]POST find Content-Length [09:23:20]Host: 172.17.39.67:8080 [09:23:20]Content-Length: 688 [09:23:20]Content-Type: application/json [09:23:20] [09:23:20]POST finish read [09:23:20]Found Content-Length = 688 [09:23:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:20]execute_script... [09:23: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)1319351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:20]POST & json_proto [09:23:20]process_json_proto [09:23:20]json parsed OK: [09:23:20]protocol is kg_v1.0 [09:23:20]action value=close_receipt [09:23:20]process_action close_receipt [09:23:20]cmd_close_receipt [09:23:20]MH_GetDate [09:23:20]Write to MH i2c: F0 00 00 C1 08 B8 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: F0 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: F0 09 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: F0 09 00 C1 08 00 08 99 93 66 B6 85 93 66 8F [09:23:20]GetLastDocTimeStamp 1720948936 [09:23:20]current date 1720949000 [09:23:20]FM_GetShiftState [09:23:20]SAM_PROTO_GetShiftState [09:23:20]wFMCommunicate request_size=4 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 13 01 00 [09:23:20]Write to MH i2c: E2 08 00 C2 08 80 13 01 00 00 00 00 00 47 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 0E 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 0E 00 C2 08 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7D [09:23:20]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:23:20]wFMCommunicate OK [09:23:20]SAM_PROTO_GetShiftState done [09:23:20]FM_GetShiftState done [09:23:20]opened in 1720915483 [09:23:20]opened+sec_in_day 1721001883 [09:23:20]quantity*price = 150064 [09:23:20]sum+1 = 150065 [09:23:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 75 14.07.2024 09:23 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162763 ФПД: 147371666349671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T092320&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162763&fm=147371666349671&tin=02508201610067®Number=0000000000090858&sum=150000 [09:23:21]StoreToDocumentArchive [09:23:21]shift 463 fd 162763 [09:23:21]save to /storage/0463/doc_00162763 [09:23:21]save last doc name /storage/0463/doc_00162763 to /storage/kkm_last_doc_name [09:23:21]save OK [09:23:21]Clear old archive folders... [09:23:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:23:21]tlvbuf is B6F43330 [09:23:21]SAM_PROTO_ClearQueue [09:23:21]wFMCommunicate request_size=4 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 09 00 00 [09:23:21]Write to MH i2c: E2 08 00 CF 08 80 09 00 00 00 00 00 00 49 [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 03 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 03 00 CF 08 00 90 00 4B [09:23:21]RAPDU: 90 00 [09:23:21]wFMCommunicate OK [09:23:21]SAM_PROTO_ClearQueue done [09:23:21]KKMCreateOFDPacket [09:23:21]OFDProtocolAddRootSTLVToBuf [09:23:21]FM_MakeSignedData [09:23:21]FM_MakeSignedData [09:23:21]SAM_PROTO_SignData [09:23:21]wFMCommunicate request_size=4 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 0D 01 02 [09:23:21]Write to MH i2c: E2 08 00 D0 08 80 0D 01 02 00 00 00 00 51 [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 03 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [09:23:21]RAPDU: 90 00 [09:23:21]wFMCommunicate OK [09:23:21]wFMCommunicate request_size=255 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 4B 00 00 00 F4 03 04 00 08 99 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CB 7B 02 00 35 04 06 00 [09:23:21]Write to MH i2c: E2 02 01 D1 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 4B 00 00 00 F4 03 04 00 08 99 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CB 7B 02 00 35 04 06 00 00 00 D0 [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 03 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [09:23:21]RAPDU: 90 00 [09:23:21]wFMCommunicate OK [09:23:21]wFMCommunicate request_size=11 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 0D 02 02 06 86 08 A3 D2 9E 67 [09:23:21]Write to MH i2c: E2 0E 00 D2 08 80 0D 02 02 06 00 86 08 A3 D2 9E 67 00 00 68 [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:22]Read from MH i2c: E2 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 03 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [09:23:22]RAPDU: 90 00 [09:23:22]wFMCommunicate OK [09:23:22]wFMCommunicate request_size=4 [09:23:22]MH_SAM_APDU [09:23:22]CAPDU: 80 0D 03 02 [09:23:22]Write to MH i2c: E2 08 00 D3 08 80 0D 03 02 00 00 00 00 56 [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:22]Read from MH i2c: E2 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 0B 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 0B 00 D3 08 00 0F 65 F0 8F B9 DF C0 51 90 00 F3 [09:23:22]RAPDU: 0F 65 F0 8F B9 DF C0 51 90 00 [09:23:22]wFMCommunicate OK [09:23:22]SAM_PROTO_SignData done [09:23:22]FM_MakeSignedData done [09:23:22]CreateOFDProtocolMessage [09:23:22]wFMCommunicate request_size=4 [09:23:22]MH_SAM_APDU [09:23:22]CAPDU: 80 11 00 00 [09:23:22]Write to MH i2c: E2 08 00 D4 08 80 11 00 00 00 00 00 00 56 [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:22]Read from MH i2c: E2 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 17 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 17 00 D4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B6 [09:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:23:22]wFMCommunicate OK [09:23:22]CreateOFDProtocolMessage done [09:23:22]OFDSenderStorePacket 162763 [09:23:22]StoreOFDPacket docnum=162763 [09:23:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1B 5D 08 01 A2 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 4B 00 00 00 F4 03 04 00 08 99 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CB 7B 02 00 35 04 06 00 86 08 A3 D2 9E 67 0F 65 F0 8F B9 DF C0 51 [09:23:22]CheckFolder [09:23:22]dirname=/storage/ofd_packets [09:23:22]CheckFolder done [09:23:22]ProducePacketName [09:23:22]name=ofd_packets/00162763 [09:23:22]NVStorageSaveData ofd_packets/00162763 [09:23:22]File name is /storage/ofd_packets/00162763 [09:23:22]Write 302 bytes [09:23:22]NVStorageSaveData done [09:23:22]OFDSenderStorePacket done [09:23:22]KKMCreateOFDPacket done [09:23:22]NVStorageSaveData kkm_last_timestamp [09:23:22]File name is /storage/kkm_last_timestamp [09:23:22]Write 4 bytes [09:23:22]NVStorageSaveData done [09:23:22]ExternCall_PrintAddStr [09:23:22]wPrintStart [09:23:22]Write to MH i2c: 01 00 00 D5 08 DD [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: 01 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: 01 07 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: 01 07 00 D5 08 00 00 00 00 00 FF 0F F2 [09:23:22]RasterBufferAndPrint [09:23:22]line Счет N : (1)1319351 [09:23:22]line ИНН: 02508201610067 [09:23:22]line Контрольно-Кассовый Чек [09:23:22]line ПРОДАЖА [09:23:22]line ТРК (МРК, ГНК) : 11 [09:23:22]line Товар: 2710194210 [09:23:22]line ДТ(л)-К-5 [09:23:22]line 20.670 * 72.60 [09:23:22]line = 1500.64 [09:23:22]line НДС 12% НСП 1% [09:23:22]line > о реализуемом товаре [09:23:22]line ОКРУГЛЕНИЕ: -0.64 [09:23:22]line ИТОГО: 1500.00 [09:23:22]line Внесено: 1500.00 [09:23:22]line СДАЧА: 0.00 [09:23:22]line НСП 1% : 13.28 [09:23:22]line НДС 12% : 159.36 [09:23:22]line Наличными: 1500.00 [09:23:22]line Безнал.: 0.00 [09:23:22]line Место: АЗС № 140 "Партнер Нефть" [09:23:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:23:22]line СНО: Общий режим [09:23:22]line Чек 75 14.07.2024 09:23 [09:23:22]line Смена: 463 ФФД: 1.0 [09:23:22]line ЗНМ: 0300000129 [09:23:22]line РНМ: 0000000000090858 [09:23:22]line Версия ККМ: 001 [09:23:22]line ФМ: 0000000000874899 [09:23:22]line ФД: 162763 [09:23:22]line ФПД: 147371666349671 [09:23:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T092320&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162763&fm=147371666349671&tin=02508201610067®Number=0000000000090858&sum=150000 [09:23:22]OFD Sender: Processing packet 162763 [packets to send 106, broken 105] [09:23:22]ProducePacketName [09:23:22]name=ofd_packets/00162763 [09:23:22]OFD Sender: To server: pG, [09:23:22]CommunicateWithHost lk.salyk.kg:30040 [09:23:22]ConnectInit lk.salyk.kg [09:23:22]written 0, free lines is 4095 [09:23:22]Connected sock=10 [09:23:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1B 5D 08 01 A2 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 4B 00 00 00 F4 03 04 00 08 99 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CB 7B 02 00 35 04 06 00 86 08 A3 D2 9E 67 0F 65 F0 8F B9 DF C0 51 [09:23:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 38 8A 47 00 D1 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CB 7B 02 00 F4 03 04 00 16 45 93 66 B6 04 01 00 00 AD 7E 70 A4 27 2B 74 8C [09:23:22]CommunicateWithHost err = 0 [09:23:22]CheckOFDResponse [09:23:22]1017 (14) - 77093643461234 [09:23:22]1041 (16) - 0000000000874899 [09:23:22]1040 (4) - 162763 [09:23:22]1012 (4) - 14.07.2024 03:25 [09:23:22]1206 (1) - 0 [09:23:22]OFD Sender: Remove packet 162763 [09:23:22]ProducePacketName [09:23:22]name=ofd_packets/00162763 [09:23:22]NVStorageDeleteData [09:23:22]Write to MH i2c: 01 00 00 00 09 09 [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: 01 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: 01 07 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: 01 07 00 00 09 00 00 00 00 00 D4 0C F0 [09:23:22]RasterBufferAndPrint [09:23:22]line [09:23:22]line [09:23:22]line [09:23:22]line [09:23:22]line [09:23:22]written 0, free lines is 3289 [09:23:22]MH_Cut [09:23:22]Write to MH i2c: D1 01 00 07 09 01 E2 [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: D1 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: D1 01 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: D1 01 00 07 09 00 E1 [09:23:22]Write to MH i2c: 01 00 00 08 09 11 [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:23]OFD Sender: No OFD packet to send [09:23:23]*** Cut start [09:23:23]*** Purtial cut [09:23:23]*** Stage 1: CUTSNS_PIN = 1 [09:23:23]Read from MH i2c: 01 [09:23:23]MH_I2C_Read... [09:23:23]*** Stop cut motor [09:23:23]*** Cut end [09:23:23]Read from MH i2c: 01 07 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: 01 07 00 08 09 00 00 00 00 00 FF 0F 26 [09:23:23]process_action close_receipt done [09:23:23]requested_data is exist [09:23:23]produce_requested_data [09:23:23]requested_item fm.sn is exist - process it [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 11 00 00 [09:23:23]Write to MH i2c: E2 08 00 09 09 80 11 00 00 00 00 00 00 8C [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 17 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 17 00 09 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EC [09:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:23:24]wFMCommunicate OK [09:23:24]requested_item fd.num is exist - process it [09:23:24]SAM_PROTO_GetFieldsCounters [09:23:24]wFMCommunicate request_size=4 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 13 00 00 [09:23:24]Write to MH i2c: E2 08 00 0A 09 80 13 00 00 00 00 00 00 8F [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 62 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 62 00 0A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CB 7B 02 00 0E 04 04 00 CF 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 BB [09:23:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CB 7B 02 00 0E 04 04 00 CF 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 [09:23:24]wFMCommunicate OK [09:23:24]SAM_PROTO_GetFieldsCounters done [09:23:24]requested_item shift.num is exist - process it [09:23:24]requested_item shift.opened is exist - process it [09:23:24]req_shift_opened [09:23:24]FM_GetShiftState [09:23:24]SAM_PROTO_GetShiftState [09:23:24]wFMCommunicate request_size=4 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 13 01 00 [09:23:24]Write to MH i2c: E2 08 00 0B 09 80 13 01 00 00 00 00 00 91 [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 0E 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 0E 00 0B 09 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C7 [09:23:24]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:23:24]wFMCommunicate OK [09:23:24]SAM_PROTO_GetShiftState done [09:23:24]FM_GetShiftState done [09:23:24]req_shift_opened done [09:23:24]requested_item shift.open_date is exist - process it [09:23:24]req_shift_open_date [09:23:24]req_shift_open_date done [09:23:24]produce_requested_data done [09:23:24]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162763,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:23:24]process_action_free close_receipt [09:23:24]json_value_free [09:23:24]json_value_free done [09:23:24]process_json_proto returns [09:23:24]Send response to host [09:23:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162763,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:23:24]free response buf [09:23:24]execute_script done [09:23:24]execute_script returns [09:23:24]free content buf [09:23:24]Sock 9.Close socket [09:23:24]Sock 9.Thread stoped [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:47]recv_with_timeout no data received [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:24]accept exits with 7 [09:27:24]New connection [09:27:24]New thread 3066879332 created [09:27:24]Thread 3066735972 joined [09:27:24]Waiting for new connection... [09:27:24] Sock 7.Parse request [09:27:24]Sock 7.Check first char [09:27:24]Sock 7.First char is OK [09:27:24]request: POST /json_proto HTTP/1.0 [09:27:24]Method: POST [09:27:24]URL: /json_proto [09:27:24]Method is POST - this is cgi request [09:27:24]url: /json_proto [09:27:24]query_string will be loaded in cgi processing [09:27:24]execute_cgi json_proto POST (null) [09:27:24]execute_cgi path=json_proto method=POST [09:27:24]POST find Content-Length [09:27:24]Host: 172.17.39.67:8080 [09:27:24]Content-Length: 678 [09:27:24]Content-Type: application/json [09:27:24] [09:27:24]POST finish read [09:27:24]Found Content-Length = 678 [09:27:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:24]execute_script... [09:27: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)1319352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:24]POST & json_proto [09:27:24]process_json_proto [09:27:24]json parsed OK: [09:27:24]protocol is kg_v1.0 [09:27:24]action value=close_receipt [09:27:24]process_action close_receipt [09:27:24]cmd_close_receipt [09:27:24]MH_GetDate [09:27:24]Write to MH i2c: F0 00 00 0C 09 04 [09:27:24]Write i2c OK [09:27:24]MH_I2C_Read... [09:27:24]Read from MH i2c: F0 [09:27:24]MH_I2C_Read... [09:27:24]Read from MH i2c: F0 09 00 [09:27:24]MH_I2C_Read... [09:27:24]Read from MH i2c: F0 09 00 0C 09 00 FD 99 93 66 B6 85 93 66 D0 [09:27:24]GetLastDocTimeStamp 1720949000 [09:27:24]current date 1720949245 [09:27:24]FM_GetShiftState [09:27:24]SAM_PROTO_GetShiftState [09:27:24]wFMCommunicate request_size=4 [09:27:24]MH_SAM_APDU [09:27:24]CAPDU: 80 13 01 00 [09:27:24]Write to MH i2c: E2 08 00 0D 09 80 13 01 00 00 00 00 00 93 [09:27:24]Write i2c OK [09:27:24]MH_I2C_Read... [09:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:24]Read from MH i2c: E2 [09:27:24]MH_I2C_Read... [09:27:24]Read from MH i2c: E2 0E 00 [09:27:24]MH_I2C_Read... [09:27:24]Read from MH i2c: E2 0E 00 0D 09 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C9 [09:27:24]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:27:24]wFMCommunicate OK [09:27:24]SAM_PROTO_GetShiftState done [09:27:24]FM_GetShiftState done [09:27:24]opened in 1720915483 [09:27:24]opened+sec_in_day 1721001883 [09:27:24]quantity*price = 60001 [09:27:24]sum+1 = 60003 [09:27:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 76 14.07.2024 09:27 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162764 ФПД: 156759941402709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T092725&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162764&fm=156759941402709&tin=02508201610067®Number=0000000000090858&sum=60000 [09:27:26]StoreToDocumentArchive [09:27:26]shift 463 fd 162764 [09:27:26]save to /storage/0463/doc_00162764 [09:27:26]save last doc name /storage/0463/doc_00162764 to /storage/kkm_last_doc_name [09:27:26]save OK [09:27:26]Clear old archive folders... [09:27:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:26]tlvbuf is 01301040 [09:27:26]SAM_PROTO_ClearQueue [09:27:26]wFMCommunicate request_size=4 [09:27:26]MH_SAM_APDU [09:27:26]CAPDU: 80 09 00 00 [09:27:26]Write to MH i2c: E2 08 00 1A 09 80 09 00 00 00 00 00 00 95 [09:27:26]Write i2c OK [09:27:26]MH_I2C_Read... [09:27:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:26]Read from MH i2c: E2 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: E2 03 00 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: E2 03 00 1A 09 00 90 00 97 [09:27:26]RAPDU: 90 00 [09:27:26]wFMCommunicate OK [09:27:26]SAM_PROTO_ClearQueue done [09:27:26]KKMCreateOFDPacket [09:27:26]OFDProtocolAddRootSTLVToBuf [09:27:26]FM_MakeSignedData [09:27:26]FM_MakeSignedData [09:27:26]SAM_PROTO_SignData [09:27:26]wFMCommunicate request_size=4 [09:27:26]MH_SAM_APDU [09:27:26]CAPDU: 80 0D 01 02 [09:27:26]Write to MH i2c: E2 08 00 1B 09 80 0D 01 02 00 00 00 00 9D [09:27:26]Write i2c OK [09:27:26]MH_I2C_Read... [09:27:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:26]Read from MH i2c: E2 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: E2 03 00 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: E2 03 00 1B 09 00 90 00 98 [09:27:26]RAPDU: 90 00 [09:27:26]wFMCommunicate OK [09:27:26]wFMCommunicate request_size=255 [09:27:26]MH_SAM_APDU [09:27: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 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 4C 00 00 00 F4 03 04 00 FD 99 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CC 7B 02 00 35 04 06 00 8E [09:27:26]Write to MH i2c: E2 02 01 1C 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 4C 00 00 00 F4 03 04 00 FD 99 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CC 7B 02 00 35 04 06 00 8E 00 00 A8 [09:27:26]Write i2c OK [09:27:26]MH_I2C_Read... [09:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:26]Read from MH i2c: E2 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: E2 03 00 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [09:27:26]RAPDU: 90 00 [09:27:26]wFMCommunicate OK [09:27:26]wFMCommunicate request_size=10 [09:27:26]MH_SAM_APDU [09:27:26]CAPDU: 80 0D 02 02 05 92 84 9F 50 55 [09:27:26]Write to MH i2c: E2 0D 00 1D 09 80 0D 02 02 05 00 92 84 9F 50 55 00 00 04 [09:27:26]Write i2c OK [09:27:26]MH_I2C_Read... [09:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:26]Read from MH i2c: E2 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: E2 03 00 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [09:27:26]RAPDU: 90 00 [09:27:26]wFMCommunicate OK [09:27:26]wFMCommunicate request_size=4 [09:27:26]MH_SAM_APDU [09:27:26]CAPDU: 80 0D 03 02 [09:27:26]Write to MH i2c: E2 08 00 1E 09 80 0D 03 02 00 00 00 00 A2 [09:27:26]Write i2c OK [09:27:26]MH_I2C_Read... [09:27:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:26]Read from MH i2c: E2 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: E2 0B 00 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: E2 0B 00 1E 09 00 27 FA A6 6B 97 ED 1F D4 90 00 4C [09:27:26]RAPDU: 27 FA A6 6B 97 ED 1F D4 90 00 [09:27:26]wFMCommunicate OK [09:27:26]SAM_PROTO_SignData done [09:27:26]FM_MakeSignedData done [09:27:26]CreateOFDProtocolMessage [09:27:26]wFMCommunicate request_size=4 [09:27:26]MH_SAM_APDU [09:27:26]CAPDU: 80 11 00 00 [09:27:26]Write to MH i2c: E2 08 00 1F 09 80 11 00 00 00 00 00 00 A2 [09:27:26]Write i2c OK [09:27:26]MH_I2C_Read... [09:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:26]Read from MH i2c: E2 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: E2 17 00 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: E2 17 00 1F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 02 [09:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:27:26]wFMCommunicate OK [09:27:26]CreateOFDProtocolMessage done [09:27:26]OFDSenderStorePacket 162764 [09:27:26]StoreOFDPacket docnum=162764 [09:27:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2A 1C 07 01 5C 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 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 4C 00 00 00 F4 03 04 00 FD 99 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CC 7B 02 00 35 04 06 00 8E 92 84 9F 50 55 27 FA A6 6B 97 ED 1F D4 [09:27:26]CheckFolder [09:27:26]dirname=/storage/ofd_packets [09:27:26]CheckFolder done [09:27:26]ProducePacketName [09:27:26]name=ofd_packets/00162764 [09:27:26]NVStorageSaveData ofd_packets/00162764 [09:27:26]File name is /storage/ofd_packets/00162764 [09:27:26]Write 301 bytes [09:27:26]NVStorageSaveData done [09:27:26]OFDSenderStorePacket done [09:27:26]KKMCreateOFDPacket done [09:27:26]NVStorageSaveData kkm_last_timestamp [09:27:26]File name is /storage/kkm_last_timestamp [09:27:26]Write 4 bytes [09:27:26]NVStorageSaveData done [09:27:26]ExternCall_PrintAddStr [09:27:26]wPrintStart [09:27:26]Write to MH i2c: 01 00 00 20 09 29 [09:27:26]Write i2c OK [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: 01 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: 01 07 00 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: 01 07 00 20 09 00 00 00 00 00 FF 0F 3E [09:27:26]RasterBufferAndPrint [09:27:26]line Счет N : (1)1319352 [09:27:26]line ИНН: 02508201610067 [09:27:26]line Контрольно-Кассовый Чек [09:27:26]line ПРОДАЖА [09:27:26]line ТРК (МРК, ГНК) : 33 [09:27:26]line Товар: 2710124130 [09:27:26]line Аи-92-К-5 [09:27:26]line 9.050 * 66.30 [09:27:26]line = 600.02 [09:27:26]line НДС 12% НСП 1% [09:27:26]line > о реализуемом товаре [09:27:26]line ОКРУГЛЕНИЕ: -0.02 [09:27:26]line ИТОГО: 600.00 [09:27:26]line Внесено: 600.00 [09:27:26]line СДАЧА: 0.00 [09:27:26]line НСП 1% : 5.31 [09:27:26]line НДС 12% : 63.72 [09:27:26]line Наличными: 600.00 [09:27:26]line Безнал.: 0.00 [09:27:26]line Место: АЗС № 140 "Партнер Нефть" [09:27:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:27:26]line СНО: Общий режим [09:27:26]line Чек 76 14.07.2024 09:27 [09:27:26]line Смена: 463 ФФД: 1.0 [09:27:26]line ЗНМ: 0300000129 [09:27:26]line РНМ: 0000000000090858 [09:27:26]line Версия ККМ: 001 [09:27:26]line ФМ: 0000000000874899 [09:27:26]line ФД: 162764 [09:27:26]line ФПД: 156759941402709 [09:27:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T092725&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162764&fm=156759941402709&tin=02508201610067®Number=0000000000090858&sum=60000 [09:27:26]OFD Sender: Processing packet 162764 [packets to send 106, broken 105] [09:27:26]ProducePacketName [09:27:26]name=ofd_packets/00162764 [09:27:26]OFD Sender: To server: pG, [09:27:26]CommunicateWithHost lk.salyk.kg:30040 [09:27:26]ConnectInit lk.salyk.kg [09:27:26]written 0, free lines is 4095 [09:27:26]Connected sock=9 [09:27:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2A 1C 07 01 5C 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 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 4C 00 00 00 F4 03 04 00 FD 99 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CC 7B 02 00 35 04 06 00 8E 92 84 9F 50 55 27 FA A6 6B 97 ED 1F D4 [09:27:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7C 32 47 00 37 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CC 7B 02 00 F4 03 04 00 0B 46 93 66 B6 04 01 00 00 7A B5 B7 12 AC AC 1A B7 [09:27:27]CommunicateWithHost err = 0 [09:27:27]CheckOFDResponse [09:27:27]1017 (14) - 77093643461234 [09:27:27]1041 (16) - 0000000000874899 [09:27:27]1040 (4) - 162764 [09:27:27]1012 (4) - 14.07.2024 03:29 [09:27:27]1206 (1) - 0 [09:27:27]OFD Sender: Remove packet 162764 [09:27:27]ProducePacketName [09:27:27]name=ofd_packets/00162764 [09:27:27]NVStorageDeleteData [09:27:27]Write to MH i2c: 01 00 00 4B 09 54 [09:27:27]Write i2c OK [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: 01 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: 01 07 00 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: 01 07 00 4B 09 00 00 00 00 00 D4 0C 3B [09:27:27]RasterBufferAndPrint [09:27:27]line [09:27:27]line [09:27:27]line [09:27:27]line [09:27:27]line [09:27:27]written 0, free lines is 3290 [09:27:27]MH_Cut [09:27:27]Write to MH i2c: D1 01 00 52 09 01 2D [09:27:27]Write i2c OK [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: D1 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: D1 01 00 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: D1 01 00 52 09 00 2C [09:27:27]Write to MH i2c: 01 00 00 53 09 5C [09:27:27]Write i2c OK [09:27:27]MH_I2C_Read... [09:27:27]OFD Sender: No OFD packet to send [09:27:28]*** Cut start [09:27:28]*** Purtial cut [09:27:28]*** CUTSNS_PIN = 0 [09:27:28]*** Stage 1: CUTSNS_PIN = 1 [09:27:30]Read from MH i2c: 01 [09:27:30]MH_I2C_Read... [09:27:30]*** Stop cut motor [09:27:30]*** Cut end [09:27:30]Read from MH i2c: 01 07 00 [09:27:30]MH_I2C_Read... [09:27:30]Read from MH i2c: 01 07 00 53 09 00 00 00 00 00 FF 0F 71 [09:27:30]process_action close_receipt done [09:27:30]requested_data is exist [09:27:30]produce_requested_data [09:27:30]requested_item fm.sn is exist - process it [09:27:30]wFMCommunicate request_size=4 [09:27:30]MH_SAM_APDU [09:27:30]CAPDU: 80 11 00 00 [09:27:30]Write to MH i2c: E2 08 00 54 09 80 11 00 00 00 00 00 00 D7 [09:27:30]Write i2c OK [09:27:30]MH_I2C_Read... [09:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:30]Read from MH i2c: E2 [09:27:30]MH_I2C_Read... [09:27:30]Read from MH i2c: E2 17 00 [09:27:30]MH_I2C_Read... [09:27:30]Read from MH i2c: E2 17 00 54 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 37 [09:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:27:30]wFMCommunicate OK [09:27:30]requested_item fd.num is exist - process it [09:27:30]SAM_PROTO_GetFieldsCounters [09:27:30]wFMCommunicate request_size=4 [09:27:30]MH_SAM_APDU [09:27:30]CAPDU: 80 13 00 00 [09:27:30]Write to MH i2c: E2 08 00 55 09 80 13 00 00 00 00 00 00 DA [09:27:30]Write i2c OK [09:27:30]MH_I2C_Read... [09:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:30]Read from MH i2c: E2 [09:27:30]MH_I2C_Read... [09:27:30]Read from MH i2c: E2 62 00 [09:27:30]MH_I2C_Read... [09:27:30]Read from MH i2c: E2 62 00 55 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CC 7B 02 00 0E 04 04 00 CF 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 0A [09:27:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CC 7B 02 00 0E 04 04 00 CF 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 [09:27:30]wFMCommunicate OK [09:27:30]SAM_PROTO_GetFieldsCounters done [09:27:30]requested_item shift.num is exist - process it [09:27:30]requested_item shift.opened is exist - process it [09:27:30]req_shift_opened [09:27:30]FM_GetShiftState [09:27:30]SAM_PROTO_GetShiftState [09:27:30]wFMCommunicate request_size=4 [09:27:30]MH_SAM_APDU [09:27:30]CAPDU: 80 13 01 00 [09:27:30]Write to MH i2c: E2 08 00 56 09 80 13 01 00 00 00 00 00 DC [09:27:30]Write i2c OK [09:27:30]MH_I2C_Read... [09:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:30]Read from MH i2c: E2 [09:27:30]MH_I2C_Read... [09:27:30]Read from MH i2c: E2 0E 00 [09:27:30]MH_I2C_Read... [09:27:30]Read from MH i2c: E2 0E 00 56 09 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 12 [09:27:30]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:27:30]wFMCommunicate OK [09:27:30]SAM_PROTO_GetShiftState done [09:27:30]FM_GetShiftState done [09:27:30]req_shift_opened done [09:27:30]requested_item shift.open_date is exist - process it [09:27:30]req_shift_open_date [09:27:30]req_shift_open_date done [09:27:30]produce_requested_data done [09:27:30]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162764,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:27:30]process_action_free close_receipt [09:27:30]json_value_free [09:27:30]json_value_free done [09:27:30]process_json_proto returns [09:27:30]Send response to host [09:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162764,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:27:30]free response buf [09:27:30]execute_script done [09:27:30]execute_script returns [09:27:30]free content buf [09:27:30]Sock 7.Close socket [09:27:30]Sock 7.Thread stoped [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:27]accept exits with 10 [09:32:27]New connection [09:32:27]New thread 3066735972 created [09:32:27]Thread 3066879332 joined [09:32:27]Waiting for new connection... [09:32:27] Sock 10.Parse request [09:32:27]Sock 10.Check first char [09:32:27]Sock 10.First char is OK [09:32:27]request: POST /json_proto HTTP/1.0 [09:32:27]Method: POST [09:32:27]URL: /json_proto [09:32:27]Method is POST - this is cgi request [09:32:27]url: /json_proto [09:32:27]query_string will be loaded in cgi processing [09:32:27]execute_cgi json_proto POST (null) [09:32:27]execute_cgi path=json_proto method=POST [09:32:27]POST find Content-Length [09:32:27]Host: 172.17.39.67:8080 [09:32:27]Content-Length: 688 [09:32:27]Content-Type: application/json [09:32:27] [09:32:27]POST finish read [09:32:27]Found Content-Length = 688 [09:32:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 24.800, "sum" : 1800.48, "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" ] } } [09:32:27]execute_script... [09:32: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)1319353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 24.800, "sum" : 1800.48, "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" ] } } [09:32:27]POST & json_proto [09:32:27]process_json_proto [09:32:27]json parsed OK: [09:32:27]protocol is kg_v1.0 [09:32:27]action value=close_receipt [09:32:27]process_action close_receipt [09:32:27]cmd_close_receipt [09:32:27]MH_GetDate [09:32:27]Write to MH i2c: F0 00 00 57 09 4F [09:32:27]Write i2c OK [09:32:27]MH_I2C_Read... [09:32:27]Read from MH i2c: F0 [09:32:27]MH_I2C_Read... [09:32:27]Read from MH i2c: F0 09 00 [09:32:27]MH_I2C_Read... [09:32:27]Read from MH i2c: F0 09 00 57 09 00 2B 9B 93 66 B6 85 93 66 4B [09:32:27]GetLastDocTimeStamp 1720949245 [09:32:27]current date 1720949547 [09:32:27]FM_GetShiftState [09:32:27]SAM_PROTO_GetShiftState [09:32:27]wFMCommunicate request_size=4 [09:32:27]MH_SAM_APDU [09:32:27]CAPDU: 80 13 01 00 [09:32:27]Write to MH i2c: E2 08 00 58 09 80 13 01 00 00 00 00 00 DE [09:32:27]Write i2c OK [09:32:27]MH_I2C_Read... [09:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:27]Read from MH i2c: E2 [09:32:27]MH_I2C_Read... [09:32:27]Read from MH i2c: E2 0E 00 [09:32:27]MH_I2C_Read... [09:32:27]Read from MH i2c: E2 0E 00 58 09 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 14 [09:32:27]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:32:27]wFMCommunicate OK [09:32:27]SAM_PROTO_GetShiftState done [09:32:27]FM_GetShiftState done [09:32:27]opened in 1720915483 [09:32:27]opened+sec_in_day 1721001883 [09:32:27]quantity*price = 180048 [09:32:27]sum+1 = 180049 [09:32:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.20 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 77 14.07.2024 09:32 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162765 ФПД: 279403220778816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093227&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162765&fm=279403220778816&tin=02508201610067®Number=0000000000090858&sum=180000 [09:32:28]StoreToDocumentArchive [09:32:28]shift 463 fd 162765 [09:32:28]save to /storage/0463/doc_00162765 [09:32:28]save last doc name /storage/0463/doc_00162765 to /storage/kkm_last_doc_name [09:32:28]save OK [09:32:28]Clear old archive folders... [09:32:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:32:28]tlvbuf is 01205F60 [09:32:28]SAM_PROTO_ClearQueue [09:32:28]wFMCommunicate request_size=4 [09:32:28]MH_SAM_APDU [09:32:28]CAPDU: 80 09 00 00 [09:32:28]Write to MH i2c: E2 08 00 65 09 80 09 00 00 00 00 00 00 E0 [09:32:28]Write i2c OK [09:32:28]MH_I2C_Read... [09:32:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:28]Read from MH i2c: E2 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: E2 03 00 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: E2 03 00 65 09 00 90 00 E2 [09:32:28]RAPDU: 90 00 [09:32:28]wFMCommunicate OK [09:32:28]SAM_PROTO_ClearQueue done [09:32:28]KKMCreateOFDPacket [09:32:28]OFDProtocolAddRootSTLVToBuf [09:32:28]FM_MakeSignedData [09:32:28]FM_MakeSignedData [09:32:28]SAM_PROTO_SignData [09:32:28]wFMCommunicate request_size=4 [09:32:28]MH_SAM_APDU [09:32:28]CAPDU: 80 0D 01 02 [09:32:28]Write to MH i2c: E2 08 00 66 09 80 0D 01 02 00 00 00 00 E8 [09:32:28]Write i2c OK [09:32:28]MH_I2C_Read... [09:32:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:28]Read from MH i2c: E2 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: E2 03 00 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [09:32:28]RAPDU: 90 00 [09:32:28]wFMCommunicate OK [09:32:28]wFMCommunicate request_size=255 [09:32:28]MH_SAM_APDU [09:32:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 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 B0 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 4D 00 00 00 F4 03 04 00 2B 9B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CD 7B 02 00 35 04 06 00 [09:32:28]Write to MH i2c: E2 02 01 67 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 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 B0 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 4D 00 00 00 F4 03 04 00 2B 9B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CD 7B 02 00 35 04 06 00 00 00 29 [09:32:28]Write i2c OK [09:32:28]MH_I2C_Read... [09:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:28]Read from MH i2c: E2 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: E2 03 00 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [09:32:28]RAPDU: 90 00 [09:32:28]wFMCommunicate OK [09:32:28]wFMCommunicate request_size=11 [09:32:28]MH_SAM_APDU [09:32:28]CAPDU: 80 0D 02 02 06 FE 1D A1 B9 3F 40 [09:32:29]Write to MH i2c: E2 0E 00 68 09 80 0D 02 02 06 00 FE 1D A1 B9 3F 40 00 00 EB [09:32:29]Write i2c OK [09:32:29]MH_I2C_Read... [09:32:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:29]Read from MH i2c: E2 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: E2 03 00 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [09:32:29]RAPDU: 90 00 [09:32:29]wFMCommunicate OK [09:32:29]wFMCommunicate request_size=4 [09:32:29]MH_SAM_APDU [09:32:29]CAPDU: 80 0D 03 02 [09:32:29]Write to MH i2c: E2 08 00 69 09 80 0D 03 02 00 00 00 00 ED [09:32:29]Write i2c OK [09:32:29]MH_I2C_Read... [09:32:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:29]Read from MH i2c: E2 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: E2 0B 00 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: E2 0B 00 69 09 00 31 65 39 EF F5 0C B0 B9 90 00 16 [09:32:29]RAPDU: 31 65 39 EF F5 0C B0 B9 90 00 [09:32:29]wFMCommunicate OK [09:32:29]SAM_PROTO_SignData done [09:32:29]FM_MakeSignedData done [09:32:29]CreateOFDProtocolMessage [09:32:29]wFMCommunicate request_size=4 [09:32:29]MH_SAM_APDU [09:32:29]CAPDU: 80 11 00 00 [09:32:29]Write to MH i2c: E2 08 00 6A 09 80 11 00 00 00 00 00 00 ED [09:32:29]Write i2c OK [09:32:29]MH_I2C_Read... [09:32:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:29]Read from MH i2c: E2 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: E2 17 00 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: E2 17 00 6A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4D [09:32:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:32:29]wFMCommunicate OK [09:32:29]CreateOFDProtocolMessage done [09:32:29]OFDSenderStorePacket 162765 [09:32:29]StoreOFDPacket docnum=162765 [09:32:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4D F8 08 01 33 D3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 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 B0 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 4D 00 00 00 F4 03 04 00 2B 9B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CD 7B 02 00 35 04 06 00 FE 1D A1 B9 3F 40 31 65 39 EF F5 0C B0 B9 [09:32:29]CheckFolder [09:32:29]dirname=/storage/ofd_packets [09:32:29]CheckFolder done [09:32:29]ProducePacketName [09:32:29]name=ofd_packets/00162765 [09:32:29]NVStorageSaveData ofd_packets/00162765 [09:32:29]File name is /storage/ofd_packets/00162765 [09:32:29]Write 302 bytes [09:32:29]NVStorageSaveData done [09:32:29]OFDSenderStorePacket done [09:32:29]KKMCreateOFDPacket done [09:32:29]NVStorageSaveData kkm_last_timestamp [09:32:29]File name is /storage/kkm_last_timestamp [09:32:29]Write 4 bytes [09:32:29]NVStorageSaveData done [09:32:29]ExternCall_PrintAddStr [09:32:29]wPrintStart [09:32:29]Write to MH i2c: 01 00 00 6B 09 74 [09:32:29]Write i2c OK [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: 01 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: 01 07 00 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: 01 07 00 6B 09 00 00 00 00 00 FF 0F 89 [09:32:29]RasterBufferAndPrint [09:32:29]line Счет N : (1)1319353 [09:32:29]line ИНН: 02508201610067 [09:32:29]line Контрольно-Кассовый Чек [09:32:29]line ПРОДАЖА [09:32:29]line ТРК (МРК, ГНК) : 21 [09:32:29]line Товар: 2710194210 [09:32:29]line ДТ(л)-К-5 [09:32:29]line 24.800 * 72.60 [09:32:29]line = 1800.48 [09:32:29]line НДС 12% НСП 1% [09:32:29]line > о реализуемом товаре [09:32:29]line ОКРУГЛЕНИЕ: -0.48 [09:32:29]line ИТОГО: 1800.00 [09:32:29]line Внесено: 1800.00 [09:32:29]line СДАЧА: 0.00 [09:32:29]line НСП 1% : 15.93 [09:32:29]line НДС 12% : 191.20 [09:32:29]line Наличными: 1800.00 [09:32:29]line Безнал.: 0.00 [09:32:29]line Место: АЗС № 140 "Партнер Нефть" [09:32:29]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:32:29]line СНО: Общий режим [09:32:29]line Чек 77 14.07.2024 09:32 [09:32:29]line Смена: 463 ФФД: 1.0 [09:32:29]line ЗНМ: 0300000129 [09:32:29]line РНМ: 0000000000090858 [09:32:29]line Версия ККМ: 001 [09:32:29]line ФМ: 0000000000874899 [09:32:29]line ФД: 162765 [09:32:29]line ФПД: 279403220778816 [09:32:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093227&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162765&fm=279403220778816&tin=02508201610067®Number=0000000000090858&sum=180000 [09:32:29]OFD Sender: Processing packet 162765 [packets to send 106, broken 105] [09:32:29]ProducePacketName [09:32:29]name=ofd_packets/00162765 [09:32:29]OFD Sender: To server: pG, [09:32:29]CommunicateWithHost lk.salyk.kg:30040 [09:32:29]ConnectInit lk.salyk.kg [09:32:29]written 0, free lines is 4095 [09:32:29]Connected sock=9 [09:32:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4D F8 08 01 33 D3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 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 B0 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 4D 00 00 00 F4 03 04 00 2B 9B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CD 7B 02 00 35 04 06 00 FE 1D A1 B9 3F 40 31 65 39 EF F5 0C B0 B9 [09:32:29]Write to MH i2c: 01 00 00 96 09 9F [09:32:29]Write i2c OK [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: 01 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: 01 07 00 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: 01 07 00 96 09 00 00 00 00 00 E4 0C 96 [09:32:29]RasterBufferAndPrint [09:32:29]line [09:32:29]line [09:32:29]line [09:32:29]line [09:32:29]line [09:32:29]written 0, free lines is 3306 [09:32:29]MH_Cut [09:32:29]Write to MH i2c: D1 01 00 9D 09 01 78 [09:32:29]Write i2c OK [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: D1 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: D1 01 00 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: D1 01 00 9D 09 00 77 [09:32:29]Write to MH i2c: 01 00 00 9E 09 A7 [09:32:29]Write i2c OK [09:32:29]MH_I2C_Read... [09:32:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BC C4 47 00 3E C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CD 7B 02 00 F4 03 04 00 3A 47 93 66 B6 04 01 00 00 2E E2 DF 7A D7 60 43 2C [09:32:30]CommunicateWithHost err = 0 [09:32:30]CheckOFDResponse [09:32:30]1017 (14) - 77093643461234 [09:32:30]1041 (16) - 0000000000874899 [09:32:30]1040 (4) - 162765 [09:32:30]1012 (4) - 14.07.2024 03:34 [09:32:30]1206 (1) - 0 [09:32:30]OFD Sender: Remove packet 162765 [09:32:30]ProducePacketName [09:32:30]name=ofd_packets/00162765 [09:32:30]NVStorageDeleteData [09:32:30]OFD Sender: No OFD packet to send [09:32:30]*** Cut start [09:32:30]*** Purtial cut [09:32:30]*** Stage 1: CUTSNS_PIN = 1 [09:32:30]Read from MH i2c: 01 [09:32:30]MH_I2C_Read... [09:32:30]*** Stop cut motor [09:32:30]*** Cut end [09:32:30]Read from MH i2c: 01 07 00 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: 01 07 00 9E 09 00 00 00 00 00 FF 0F BC [09:32:30]process_action close_receipt done [09:32:30]requested_data is exist [09:32:30]produce_requested_data [09:32:30]requested_item fm.sn is exist - process it [09:32:30]wFMCommunicate request_size=4 [09:32:30]MH_SAM_APDU [09:32:30]CAPDU: 80 11 00 00 [09:32:30]Write to MH i2c: E2 08 00 9F 09 80 11 00 00 00 00 00 00 22 [09:32:30]Write i2c OK [09:32:30]MH_I2C_Read... [09:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:30]Read from MH i2c: E2 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 17 00 [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: E2 17 00 9F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 82 [09:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:32:31]wFMCommunicate OK [09:32:31]requested_item fd.num is exist - process it [09:32:31]SAM_PROTO_GetFieldsCounters [09:32:31]wFMCommunicate request_size=4 [09:32:31]MH_SAM_APDU [09:32:31]CAPDU: 80 13 00 00 [09:32:31]Write to MH i2c: E2 08 00 A0 09 80 13 00 00 00 00 00 00 25 [09:32:31]Write i2c OK [09:32:31]MH_I2C_Read... [09:32:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:31]Read from MH i2c: E2 [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: E2 62 00 [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: E2 62 00 A0 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CD 7B 02 00 0E 04 04 00 CF 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 59 [09:32:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CD 7B 02 00 0E 04 04 00 CF 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 [09:32:31]wFMCommunicate OK [09:32:31]SAM_PROTO_GetFieldsCounters done [09:32:31]requested_item shift.num is exist - process it [09:32:31]requested_item shift.opened is exist - process it [09:32:31]req_shift_opened [09:32:31]FM_GetShiftState [09:32:31]SAM_PROTO_GetShiftState [09:32:31]wFMCommunicate request_size=4 [09:32:31]MH_SAM_APDU [09:32:31]CAPDU: 80 13 01 00 [09:32:31]Write to MH i2c: E2 08 00 A1 09 80 13 01 00 00 00 00 00 27 [09:32:31]Write i2c OK [09:32:31]MH_I2C_Read... [09:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:31]Read from MH i2c: E2 [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: E2 0E 00 [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: E2 0E 00 A1 09 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5D [09:32:31]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:32:31]wFMCommunicate OK [09:32:31]SAM_PROTO_GetShiftState done [09:32:31]FM_GetShiftState done [09:32:31]req_shift_opened done [09:32:31]requested_item shift.open_date is exist - process it [09:32:31]req_shift_open_date [09:32:31]req_shift_open_date done [09:32:31]produce_requested_data done [09:32:31]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162765,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:32:31]process_action_free close_receipt [09:32:31]json_value_free [09:32:31]json_value_free done [09:32:31]process_json_proto returns [09:32:31]Send response to host [09:32:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162765,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:32:31]free response buf [09:32:31]execute_script done [09:32:31]execute_script returns [09:32:31]free content buf [09:32:31]Sock 10.Close socket [09:32:31]Sock 10.Thread stoped [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]accept exits with 7 [09:35:10]New connection [09:35:10]New thread 3066879332 created [09:35:10]Thread 3066735972 joined [09:35:10]Waiting for new connection... [09:35:10] Sock 7.Parse request [09:35:10]Sock 7.Check first char [09:35:10]Sock 7.First char is OK [09:35:10]request: POST /json_proto HTTP/1.0 [09:35:10]Method: POST [09:35:10]URL: /json_proto [09:35:10]Method is POST - this is cgi request [09:35:10]url: /json_proto [09:35:10]query_string will be loaded in cgi processing [09:35:10]execute_cgi json_proto POST (null) [09:35:10]execute_cgi path=json_proto method=POST [09:35:10]POST find Content-Length [09:35:10]Host: 172.17.39.67:8080 [09:35:10]Content-Length: 809 [09:35:10]Content-Type: application/json [09:35:10] [09:35:10]POST finish read [09:35:10]Found Content-Length = 809 [09:35:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:10]execute_script... [09:35: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)1319354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:10]POST & json_proto [09:35:10]process_json_proto [09:35:10]json parsed OK: [09:35:10]protocol is kg_v1.0 [09:35:10]action value=close_receipt [09:35:10]process_action close_receipt [09:35:10]cmd_close_receipt [09:35:10]MH_GetDate [09:35:10]Write to MH i2c: F0 00 00 A2 09 9A [09:35:10]Write i2c OK [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: F0 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: F0 09 00 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: F0 09 00 A2 09 00 CE 9B 93 66 B6 85 93 66 39 [09:35:10]GetLastDocTimeStamp 1720949547 [09:35:10]current date 1720949710 [09:35:10]FM_GetShiftState [09:35:10]SAM_PROTO_GetShiftState [09:35:10]wFMCommunicate request_size=4 [09:35:10]MH_SAM_APDU [09:35:10]CAPDU: 80 13 01 00 [09:35:10]Write to MH i2c: E2 08 00 A3 09 80 13 01 00 00 00 00 00 29 [09:35:10]Write i2c OK [09:35:10]MH_I2C_Read... [09:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:10]Read from MH i2c: E2 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 0E 00 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 0E 00 A3 09 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5F [09:35:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:35:10]wFMCommunicate OK [09:35:10]SAM_PROTO_GetShiftState done [09:35:10]FM_GetShiftState done [09:35:10]opened in 1720915483 [09:35:10]opened+sec_in_day 1721001883 [09:35:10]quantity*price = 300055 [09:35:10]sum+1 = 300057 [09:35:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 78 14.07.2024 09:35 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162766 ФПД: 7112355177334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093510&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162766&fm=7112355177334&tin=02508201610067®Number=0000000000090858&sum=300056 [09:35:11]StoreToDocumentArchive [09:35:11]shift 463 fd 162766 [09:35:11]save to /storage/0463/doc_00162766 [09:35:11]save last doc name /storage/0463/doc_00162766 to /storage/kkm_last_doc_name [09:35:11]save OK [09:35:11]Clear old archive folders... [09:35:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:35:11]tlvbuf is 012F2D30 [09:35:11]SAM_PROTO_ClearQueue [09:35:11]wFMCommunicate request_size=4 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 09 00 00 [09:35:11]Write to MH i2c: E2 08 00 B0 09 80 09 00 00 00 00 00 00 2B [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 B0 09 00 90 00 2D [09:35:11]RAPDU: 90 00 [09:35:11]wFMCommunicate OK [09:35:11]SAM_PROTO_ClearQueue done [09:35:11]KKMCreateOFDPacket [09:35:11]OFDProtocolAddRootSTLVToBuf [09:35:11]FM_MakeSignedData [09:35:11]FM_MakeSignedData [09:35:11]SAM_PROTO_SignData [09:35:11]wFMCommunicate request_size=4 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 0D 01 02 [09:35:11]Write to MH i2c: E2 08 00 B1 09 80 0D 01 02 00 00 00 00 33 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 B1 09 00 90 00 2E [09:35:11]RAPDU: 90 00 [09:35:11]wFMCommunicate OK [09:35:11]wFMCommunicate request_size=255 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 CE 9B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CE 7B 02 00 35 04 06 00 [09:35:11]Write to MH i2c: E2 02 01 B2 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 CE 9B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CE 7B 02 00 35 04 06 00 00 00 4D [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 B2 09 00 90 00 2F [09:35:11]RAPDU: 90 00 [09:35:11]wFMCommunicate OK [09:35:11]wFMCommunicate request_size=11 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 0D 02 02 06 06 77 F9 67 63 76 [09:35:11]Write to MH i2c: E2 0E 00 B3 09 80 0D 02 02 06 00 06 77 F9 67 63 76 00 00 F8 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [09:35:11]RAPDU: 90 00 [09:35:11]wFMCommunicate OK [09:35:11]wFMCommunicate request_size=4 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 0D 03 02 [09:35:11]Write to MH i2c: E2 08 00 B4 09 80 0D 03 02 00 00 00 00 38 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:12]Read from MH i2c: E2 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: E2 0B 00 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: E2 0B 00 B4 09 00 60 2C 12 5D E0 5C D4 71 90 00 B5 [09:35:12]RAPDU: 60 2C 12 5D E0 5C D4 71 90 00 [09:35:12]wFMCommunicate OK [09:35:12]SAM_PROTO_SignData done [09:35:12]FM_MakeSignedData done [09:35:12]CreateOFDProtocolMessage [09:35:12]wFMCommunicate request_size=4 [09:35:12]MH_SAM_APDU [09:35:12]CAPDU: 80 11 00 00 [09:35:12]Write to MH i2c: E2 08 00 B5 09 80 11 00 00 00 00 00 00 38 [09:35:12]Write i2c OK [09:35:12]MH_I2C_Read... [09:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:12]Read from MH i2c: E2 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: E2 17 00 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: E2 17 00 B5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 98 [09:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:35:12]wFMCommunicate OK [09:35:12]CreateOFDProtocolMessage done [09:35:12]OFDSenderStorePacket 162766 [09:35:12]StoreOFDPacket docnum=162766 [09:35:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 70 21 08 01 87 F9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 CE 9B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CE 7B 02 00 35 04 06 00 06 77 F9 67 63 76 60 2C 12 5D E0 5C D4 71 [09:35:12]CheckFolder [09:35:12]dirname=/storage/ofd_packets [09:35:12]CheckFolder done [09:35:12]ProducePacketName [09:35:12]name=ofd_packets/00162766 [09:35:12]NVStorageSaveData ofd_packets/00162766 [09:35:12]File name is /storage/ofd_packets/00162766 [09:35:12]Write 302 bytes [09:35:12]NVStorageSaveData done [09:35:12]OFDSenderStorePacket done [09:35:12]KKMCreateOFDPacket done [09:35:12]NVStorageSaveData kkm_last_timestamp [09:35:12]File name is /storage/kkm_last_timestamp [09:35:12]Write 4 bytes [09:35:12]NVStorageSaveData done [09:35:12]ExternCall_PrintAddStr [09:35:12]wPrintStart [09:35:12]Write to MH i2c: 01 00 00 B6 09 BF [09:35:12]Write i2c OK [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: 01 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: 01 07 00 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: 01 07 00 B6 09 00 00 00 00 00 FF 0F D4 [09:35:12]RasterBufferAndPrint [09:35:12]line Счет N : (1)1319354 [09:35:12]line ИНН: 02508201610067 [09:35:12]line Контрольно-Кассовый Чек [09:35:12]line ПРОДАЖА [09:35:12]line ТРК (МРК, ГНК) : 41 [09:35:12]line Товар: 2710194210 [09:35:12]line ДТ(л)-К-5 [09:35:12]line 41.330 * 72.60 [09:35:12]line = 3000.56 [09:35:12]line НДС 12% НСП 1% [09:35:12]line > о реализуемом товаре [09:35:12]line ИТОГО: 3000.56 [09:35:12]line НСП 1% : 26.55 [09:35:12]line НДС 12% : 318.64 [09:35:12]line Наличными: 0.00 [09:35:12]line Безнал.: 3000.56 [09:35:12]line Место: АЗС № 140 "Партнер Нефть" [09:35:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:35:12]line СНО: Общий режим [09:35:12]line Чек 78 14.07.2024 09:35 [09:35:12]line Смена: 463 ФФД: 1.0 [09:35:12]line ЗНМ: 0300000129 [09:35:12]line РНМ: 0000000000090858 [09:35:12]line Версия ККМ: 001 [09:35:12]line Платежная система: O! деньги [09:35:12]line ФМ: 0000000000874899 [09:35:12]line ФД: 162766 [09:35:12]line ФПД: 7112355177334 [09:35:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093510&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162766&fm=7112355177334&tin=02508201610067®Number=0000000000090858&sum=300056 [09:35:12]written 0, free lines is 4095 [09:35:12]OFD Sender: Processing packet 162766 [packets to send 106, broken 105] [09:35:12]ProducePacketName [09:35:12]name=ofd_packets/00162766 [09:35:12]OFD Sender: To server: pG, [09:35:12]CommunicateWithHost lk.salyk.kg:30040 [09:35:12]ConnectInit lk.salyk.kg [09:35:12]Connected sock=10 [09:35:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 70 21 08 01 87 F9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 CE 9B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CE 7B 02 00 35 04 06 00 06 77 F9 67 63 76 60 2C 12 5D E0 5C D4 71 [09:35:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 80 CB 47 00 3D 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CE 7B 02 00 F4 03 04 00 DC 47 93 66 B6 04 01 00 00 4E 94 68 39 2E 71 61 9C [09:35:12]CommunicateWithHost err = 0 [09:35:12]CheckOFDResponse [09:35:12]1017 (14) - 77093643461234 [09:35:12]1041 (16) - 0000000000874899 [09:35:12]1040 (4) - 162766 [09:35:12]1012 (4) - 14.07.2024 03:37 [09:35:12]1206 (1) - 0 [09:35:12]OFD Sender: Remove packet 162766 [09:35:12]ProducePacketName [09:35:12]name=ofd_packets/00162766 [09:35:12]NVStorageDeleteData [09:35:12]Write to MH i2c: 01 00 00 E0 09 E9 [09:35:12]Write i2c OK [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: 01 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: 01 07 00 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: 01 07 00 E0 09 00 00 00 00 00 E3 0C DF [09:35:12]RasterBufferAndPrint [09:35:12]line [09:35:12]line [09:35:12]line [09:35:12]line [09:35:12]line [09:35:12]written 0, free lines is 3305 [09:35:12]MH_Cut [09:35:12]Write to MH i2c: D1 01 00 E7 09 01 C2 [09:35:12]Write i2c OK [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: D1 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: D1 01 00 [09:35:12]MH_I2C_Read... [09:35:12]Read from MH i2c: D1 01 00 E7 09 00 C1 [09:35:12]Write to MH i2c: 01 00 00 E8 09 F1 [09:35:12]Write i2c OK [09:35:12]MH_I2C_Read... [09:35:13]OFD Sender: No OFD packet to send [09:35:13]*** Cut start [09:35:13]*** Purtial cut [09:35:13]*** CUTSNS_PIN = 0 [09:35:13]*** Stage 1: CUTSNS_PIN = 1 [09:35:15]Read from MH i2c: 01 [09:35:15]MH_I2C_Read... [09:35:15]*** Stop cut motor [09:35:15]*** Cut end [09:35:15]Read from MH i2c: 01 07 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: 01 07 00 E8 09 00 00 00 00 00 FF 0F 06 [09:35:15]process_action close_receipt done [09:35:15]requested_data is exist [09:35:15]produce_requested_data [09:35:15]requested_item fm.sn is exist - process it [09:35:15]wFMCommunicate request_size=4 [09:35:15]MH_SAM_APDU [09:35:15]CAPDU: 80 11 00 00 [09:35:15]Write to MH i2c: E2 08 00 E9 09 80 11 00 00 00 00 00 00 6C [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:15]Read from MH i2c: E2 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 17 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 17 00 E9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CC [09:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:35:15]wFMCommunicate OK [09:35:15]requested_item fd.num is exist - process it [09:35:15]SAM_PROTO_GetFieldsCounters [09:35:15]wFMCommunicate request_size=4 [09:35:15]MH_SAM_APDU [09:35:15]CAPDU: 80 13 00 00 [09:35:15]Write to MH i2c: E2 08 00 EA 09 80 13 00 00 00 00 00 00 6F [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:15]Read from MH i2c: E2 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 62 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 62 00 EA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CE 7B 02 00 0E 04 04 00 CF 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 A7 [09:35:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CE 7B 02 00 0E 04 04 00 CF 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 [09:35:15]wFMCommunicate OK [09:35:15]SAM_PROTO_GetFieldsCounters done [09:35:15]requested_item shift.num is exist - process it [09:35:15]requested_item shift.opened is exist - process it [09:35:15]req_shift_opened [09:35:15]FM_GetShiftState [09:35:15]SAM_PROTO_GetShiftState [09:35:15]wFMCommunicate request_size=4 [09:35:15]MH_SAM_APDU [09:35:15]CAPDU: 80 13 01 00 [09:35:15]Write to MH i2c: E2 08 00 EB 09 80 13 01 00 00 00 00 00 71 [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:15]Read from MH i2c: E2 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 0E 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 0E 00 EB 09 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A7 [09:35:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:35:15]wFMCommunicate OK [09:35:15]SAM_PROTO_GetShiftState done [09:35:15]FM_GetShiftState done [09:35:15]req_shift_opened done [09:35:15]requested_item shift.open_date is exist - process it [09:35:15]req_shift_open_date [09:35:15]req_shift_open_date done [09:35:15]produce_requested_data done [09:35:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162766,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:35:15]process_action_free close_receipt [09:35:15]json_value_free [09:35:15]json_value_free done [09:35:15]process_json_proto returns [09:35:15]Send response to host [09:35:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162766,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:35:15]free response buf [09:35:15]execute_script done [09:35:15]execute_script returns [09:35:15]free content buf [09:35:15]Sock 7.Close socket [09:35:15]Sock 7.Thread stoped [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:39]accept exits with 9 [09:36:39]New connection [09:36:39]New thread 3066735972 created [09:36:39]Thread 3066879332 joined [09:36:39]Waiting for new connection... [09:36:39] Sock 9.Parse request [09:36:39]Sock 9.Check first char [09:36:39]Sock 9.First char is OK [09:36:39]request: POST /json_proto HTTP/1.0 [09:36:39]Method: POST [09:36:39]URL: /json_proto [09:36:39]Method is POST - this is cgi request [09:36:39]url: /json_proto [09:36:39]query_string will be loaded in cgi processing [09:36:39]execute_cgi json_proto POST (null) [09:36:39]execute_cgi path=json_proto method=POST [09:36:39]POST find Content-Length [09:36:39]Host: 172.17.39.67:8080 [09:36:39]Content-Length: 683 [09:36:39]Content-Type: application/json [09:36:39] [09:36:39]POST finish read [09:36:39]Found Content-Length = 683 [09:36:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:36:39]execute_script... [09:36:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:36:39]POST & json_proto [09:36:39]process_json_proto [09:36:39]json parsed OK: [09:36:39]protocol is kg_v1.0 [09:36:39]action value=close_receipt [09:36:39]process_action close_receipt [09:36:39]cmd_close_receipt [09:36:39]MH_GetDate [09:36:39]Write to MH i2c: F0 00 00 EC 09 E4 [09:36:39]Write i2c OK [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: F0 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: F0 09 00 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: F0 09 00 EC 09 00 27 9C 93 66 B6 85 93 66 DD [09:36:39]GetLastDocTimeStamp 1720949710 [09:36:39]current date 1720949799 [09:36:39]FM_GetShiftState [09:36:39]SAM_PROTO_GetShiftState [09:36:39]wFMCommunicate request_size=4 [09:36:39]MH_SAM_APDU [09:36:39]CAPDU: 80 13 01 00 [09:36:39]Write to MH i2c: E2 08 00 ED 09 80 13 01 00 00 00 00 00 73 [09:36:39]Write i2c OK [09:36:39]MH_I2C_Read... [09:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:39]Read from MH i2c: E2 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 0E 00 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 0E 00 ED 09 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A9 [09:36:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:36:39]wFMCommunicate OK [09:36:39]SAM_PROTO_GetShiftState done [09:36:39]FM_GetShiftState done [09:36:39]opened in 1720915483 [09:36:39]opened+sec_in_day 1721001883 [09:36:39]quantity*price = 100046 [09:36:39]sum+1 = 100048 [09:36:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 79 14.07.2024 09:36 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162767 ФПД: 225777474357442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093640&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162767&fm=225777474357442&tin=02508201610067®Number=0000000000090858&sum=100000 [09:36:40]StoreToDocumentArchive [09:36:40]shift 463 fd 162767 [09:36:40]save to /storage/0463/doc_00162767 [09:36:40]save last doc name /storage/0463/doc_00162767 to /storage/kkm_last_doc_name [09:36:40]save OK [09:36:40]Clear old archive folders... [09:36:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:40]tlvbuf is 01231680 [09:36:40]SAM_PROTO_ClearQueue [09:36:40]wFMCommunicate request_size=4 [09:36:40]MH_SAM_APDU [09:36:40]CAPDU: 80 09 00 00 [09:36:40]Write to MH i2c: E2 08 00 FA 09 80 09 00 00 00 00 00 00 75 [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:40]Read from MH i2c: E2 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 03 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 03 00 FA 09 00 90 00 77 [09:36:40]RAPDU: 90 00 [09:36:40]wFMCommunicate OK [09:36:40]SAM_PROTO_ClearQueue done [09:36:40]KKMCreateOFDPacket [09:36:40]OFDProtocolAddRootSTLVToBuf [09:36:40]FM_MakeSignedData [09:36:40]FM_MakeSignedData [09:36:40]SAM_PROTO_SignData [09:36:40]wFMCommunicate request_size=4 [09:36:40]MH_SAM_APDU [09:36:40]CAPDU: 80 0D 01 02 [09:36:40]Write to MH i2c: E2 08 00 FB 09 80 0D 01 02 00 00 00 00 7D [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:40]Read from MH i2c: E2 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 03 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 03 00 FB 09 00 90 00 78 [09:36:40]RAPDU: 90 00 [09:36:40]wFMCommunicate OK [09:36:40]wFMCommunicate request_size=255 [09:36:40]MH_SAM_APDU [09:36:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 28 9C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CF 7B 02 00 35 04 06 00 CD [09:36:40]Write to MH i2c: E2 02 01 FC 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 28 9C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CF 7B 02 00 35 04 06 00 CD 00 00 7E [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:41]Read from MH i2c: E2 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 03 00 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 03 00 FC 09 00 90 00 79 [09:36:41]RAPDU: 90 00 [09:36:41]wFMCommunicate OK [09:36:41]wFMCommunicate request_size=10 [09:36:41]MH_SAM_APDU [09:36:41]CAPDU: 80 0D 02 02 05 57 EA 28 48 C2 [09:36:41]Write to MH i2c: E2 0D 00 FD 09 80 0D 02 02 05 00 57 EA 28 48 C2 00 00 FD [09:36:41]Write i2c OK [09:36:41]MH_I2C_Read... [09:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:41]Read from MH i2c: E2 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 03 00 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 03 00 FD 09 00 90 00 7A [09:36:41]RAPDU: 90 00 [09:36:41]wFMCommunicate OK [09:36:41]wFMCommunicate request_size=4 [09:36:41]MH_SAM_APDU [09:36:41]CAPDU: 80 0D 03 02 [09:36:41]Write to MH i2c: E2 08 00 FE 09 80 0D 03 02 00 00 00 00 82 [09:36:41]Write i2c OK [09:36:41]MH_I2C_Read... [09:36:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:41]Read from MH i2c: E2 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 0B 00 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 0B 00 FE 09 00 22 8E 56 F6 E3 A5 6A 67 90 00 D8 [09:36:41]RAPDU: 22 8E 56 F6 E3 A5 6A 67 90 00 [09:36:41]wFMCommunicate OK [09:36:41]SAM_PROTO_SignData done [09:36:41]FM_MakeSignedData done [09:36:41]CreateOFDProtocolMessage [09:36:41]wFMCommunicate request_size=4 [09:36:41]MH_SAM_APDU [09:36:41]CAPDU: 80 11 00 00 [09:36:41]Write to MH i2c: E2 08 00 FF 09 80 11 00 00 00 00 00 00 82 [09:36:41]Write i2c OK [09:36:41]MH_I2C_Read... [09:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:41]Read from MH i2c: E2 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 17 00 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 17 00 FF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E2 [09:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:36:41]wFMCommunicate OK [09:36:41]CreateOFDProtocolMessage done [09:36:41]OFDSenderStorePacket 162767 [09:36:41]StoreOFDPacket docnum=162767 [09:36:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 12 5F 07 01 27 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 28 9C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CF 7B 02 00 35 04 06 00 CD 57 EA 28 48 C2 22 8E 56 F6 E3 A5 6A 67 [09:36:41]CheckFolder [09:36:41]dirname=/storage/ofd_packets [09:36:41]CheckFolder done [09:36:41]ProducePacketName [09:36:41]name=ofd_packets/00162767 [09:36:41]NVStorageSaveData ofd_packets/00162767 [09:36:41]File name is /storage/ofd_packets/00162767 [09:36:41]Write 301 bytes [09:36:41]NVStorageSaveData done [09:36:41]OFDSenderStorePacket done [09:36:41]KKMCreateOFDPacket done [09:36:41]NVStorageSaveData kkm_last_timestamp [09:36:41]File name is /storage/kkm_last_timestamp [09:36:41]Write 4 bytes [09:36:41]NVStorageSaveData done [09:36:41]ExternCall_PrintAddStr [09:36:41]wPrintStart [09:36:41]Write to MH i2c: 01 00 00 00 0A 0A [09:36:41]Write i2c OK [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: 01 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: 01 07 00 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: 01 07 00 00 0A 00 00 00 00 00 FF 0F 1F [09:36:41]RasterBufferAndPrint [09:36:41]line Счет N : (1)1319355 [09:36:41]line ИНН: 02508201610067 [09:36:41]line Контрольно-Кассовый Чек [09:36:41]line ПРОДАЖА [09:36:41]line ТРК (МРК, ГНК) : 63 [09:36:41]line Товар: 2710124130 [09:36:41]line Аи-92-К-5 [09:36:41]line 15.090 * 66.30 [09:36:41]line = 1000.47 [09:36:41]line НДС 12% НСП 1% [09:36:41]line > о реализуемом товаре [09:36:41]line ОКРУГЛЕНИЕ: -0.47 [09:36:41]line ИТОГО: 1000.00 [09:36:41]line Внесено: 1000.00 [09:36:41]line СДАЧА: 0.00 [09:36:41]line НСП 1% : 8.85 [09:36:41]line НДС 12% : 106.24 [09:36:41]line Наличными: 1000.00 [09:36:41]line Безнал.: 0.00 [09:36:41]line Место: АЗС № 140 "Партнер Нефть" [09:36:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:36:41]line СНО: Общий режим [09:36:41]line Чек 79 14.07.2024 09:36 [09:36:41]line Смена: 463 ФФД: 1.0 [09:36:41]line ЗНМ: 0300000129 [09:36:41]line РНМ: 0000000000090858 [09:36:41]line Версия ККМ: 001 [09:36:41]line ФМ: 0000000000874899 [09:36:41]line ФД: 162767 [09:36:41]line ФПД: 225777474357442 [09:36:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T093640&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162767&fm=225777474357442&tin=02508201610067®Number=0000000000090858&sum=100000 [09:36:41]OFD Sender: Processing packet 162767 [packets to send 106, broken 105] [09:36:41]ProducePacketName [09:36:41]name=ofd_packets/00162767 [09:36:41]OFD Sender: To server: pG, [09:36:41]CommunicateWithHost lk.salyk.kg:30040 [09:36:41]ConnectInit lk.salyk.kg [09:36:41]written 0, free lines is 4095 [09:36:41]Connected sock=10 [09:36:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 12 5F 07 01 27 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 28 9C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CF 7B 02 00 35 04 06 00 CD 57 EA 28 48 C2 22 8E 56 F6 E3 A5 6A 67 [09:36:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C1 4A 47 00 39 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CF 7B 02 00 F4 03 04 00 36 48 93 66 B6 04 01 00 00 C6 FD 9F 5F 92 11 0F EF [09:36:41]CommunicateWithHost err = 0 [09:36:41]CheckOFDResponse [09:36:41]1017 (14) - 77093643461234 [09:36:41]1041 (16) - 0000000000874899 [09:36:41]1040 (4) - 162767 [09:36:41]1012 (4) - 14.07.2024 03:38 [09:36:41]1206 (1) - 0 [09:36:41]OFD Sender: Remove packet 162767 [09:36:41]ProducePacketName [09:36:41]name=ofd_packets/00162767 [09:36:41]NVStorageDeleteData [09:36:42]Write to MH i2c: 01 00 00 2B 0A 35 [09:36:42]Write i2c OK [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: 01 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: 01 07 00 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: 01 07 00 2B 0A 00 00 00 00 00 D1 0C 19 [09:36:42]RasterBufferAndPrint [09:36:42]line [09:36:42]line [09:36:42]line [09:36:42]line [09:36:42]line [09:36:42]written 0, free lines is 3287 [09:36:42]MH_Cut [09:36:42]Write to MH i2c: D1 01 00 32 0A 01 0E [09:36:42]Write i2c OK [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: D1 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: D1 01 00 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: D1 01 00 32 0A 00 0D [09:36:42]Write to MH i2c: 01 00 00 33 0A 3D [09:36:42]Write i2c OK [09:36:42]MH_I2C_Read... [09:36:42]OFD Sender: No OFD packet to send [09:36:42]*** Cut start [09:36:42]*** Purtial cut [09:36:42]*** Stage 1: CUTSNS_PIN = 1 [09:36:43]Read from MH i2c: 01 [09:36:43]MH_I2C_Read... [09:36:43]*** Stop cut motor [09:36:43]*** Cut end [09:36:43]Read from MH i2c: 01 07 00 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: 01 07 00 33 0A 00 00 00 00 00 FF 0F 52 [09:36:43]process_action close_receipt done [09:36:43]requested_data is exist [09:36:43]produce_requested_data [09:36:43]requested_item fm.sn is exist - process it [09:36:43]wFMCommunicate request_size=4 [09:36:43]MH_SAM_APDU [09:36:43]CAPDU: 80 11 00 00 [09:36:43]Write to MH i2c: E2 08 00 34 0A 80 11 00 00 00 00 00 00 B8 [09:36:43]Write i2c OK [09:36:43]MH_I2C_Read... [09:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:43]Read from MH i2c: E2 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: E2 17 00 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: E2 17 00 34 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 18 [09:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:36:43]wFMCommunicate OK [09:36:43]requested_item fd.num is exist - process it [09:36:43]SAM_PROTO_GetFieldsCounters [09:36:43]wFMCommunicate request_size=4 [09:36:43]MH_SAM_APDU [09:36:43]CAPDU: 80 13 00 00 [09:36:43]Write to MH i2c: E2 08 00 35 0A 80 13 00 00 00 00 00 00 BB [09:36:43]Write i2c OK [09:36:43]MH_I2C_Read... [09:36:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:43]Read from MH i2c: E2 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: E2 62 00 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: E2 62 00 35 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CF 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [09:36:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CF 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:43]wFMCommunicate OK [09:36:43]SAM_PROTO_GetFieldsCounters done [09:36:43]requested_item shift.num is exist - process it [09:36:43]requested_item shift.opened is exist - process it [09:36:43]req_shift_opened [09:36:43]FM_GetShiftState [09:36:43]SAM_PROTO_GetShiftState [09:36:43]wFMCommunicate request_size=4 [09:36:43]MH_SAM_APDU [09:36:43]CAPDU: 80 13 01 00 [09:36:43]Write to MH i2c: E2 08 00 36 0A 80 13 01 00 00 00 00 00 BD [09:36:43]Write i2c OK [09:36:43]MH_I2C_Read... [09:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:43]Read from MH i2c: E2 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: E2 0E 00 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: E2 0E 00 36 0A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F3 [09:36:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:36:43]wFMCommunicate OK [09:36:43]SAM_PROTO_GetShiftState done [09:36:43]FM_GetShiftState done [09:36:43]req_shift_opened done [09:36:43]requested_item shift.open_date is exist - process it [09:36:43]req_shift_open_date [09:36:43]req_shift_open_date done [09:36:43]produce_requested_data done [09:36:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162767,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:36:43]process_action_free close_receipt [09:36:43]json_value_free [09:36:43]json_value_free done [09:36:43]process_json_proto returns [09:36:43]Send response to host [09:36:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162767,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:36:43]free response buf [09:36:43]execute_script done [09:36:43]execute_script returns [09:36:43]free content buf [09:36:43]Sock 9.Close socket [09:36:43]Sock 9.Thread stoped [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:10]accept exits with 7 [09:42:10]New connection [09:42:10]New thread 3066879332 created [09:42:10]Thread 3066735972 joined [09:42:10]Waiting for new connection... [09:42:10] Sock 7.Parse request [09:42:10]Sock 7.Check first char [09:42:10]Sock 7.First char is OK [09:42:10]request: POST /json_proto HTTP/1.0 [09:42:10]Method: POST [09:42:10]URL: /json_proto [09:42:10]Method is POST - this is cgi request [09:42:10]url: /json_proto [09:42:10]query_string will be loaded in cgi processing [09:42:10]execute_cgi json_proto POST (null) [09:42:10]execute_cgi path=json_proto method=POST [09:42:10]POST find Content-Length [09:42:10]Host: 172.17.39.67:8080 [09:42:10]Content-Length: 1202 [09:42:10]Content-Type: application/json [09:42:10] [09:42:10]POST finish read [09:42:10]Found Content-Length = 1202 [09:42:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319356\u000A14.07.2024 09:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 726.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4023463\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:10]execute_script... [09:42:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319356\u000A14.07.2024 09:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 726.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4023463\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:10]POST & json_proto [09:42:10]process_json_proto [09:42:10]json parsed OK: [09:42:10]protocol is kg_v1.0 [09:42:10]action value=print_text [09:42:10]process_action print_text [09:42:10]cmd_print_text [09:42:10]ExternCall_PrintAddStr [09:42:10]wPrintStart [09:42:10]Write to MH i2c: 01 00 00 37 0A 41 [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 07 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 07 00 37 0A 00 00 00 00 00 FF 0F 56 [09:42:10]RasterBufferAndPrint [09:42:10]line *****ТОВАРНЫЙ ЧЕК***** [09:42:10]line АЗС 140 [09:42:10]line Партнер нефть [09:42:10]line 02508201610067 [09:42:10]line Кассир : Дуйшенбек у Н. [09:42:10]line Счет N : (1)1319356 [09:42:10]line 14.07.2024 09:39 [09:42:10]line ПРОДАЖА [09:42:10]line ТРК (МРК, ГНК): 51 [09:42:10]line Вид ГСМ : 2710194210 [09:42:10]line ДТ(л)-К-5 [09:42:10]line 10.000 x 72.60 [09:42:10]line ИТОГ: 726.00 [09:42:10]line Тип оплаты: Талоны: Партнер нефть [09:42:10]line 4023463 [09:42:10]line ______________________ [09:42:10]line (подпись) [09:42:10]written 0, free lines is 4095 [09:42:10]Write to MH i2c: 01 00 00 4B 0A 55 [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 07 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: 01 07 00 4B 0A 00 00 00 00 00 12 0E 7C [09:42:10]RasterBufferAndPrint [09:42:10]line [09:42:10]line [09:42:10]line [09:42:10]line [09:42:10]line [09:42:10]written 0, free lines is 3603 [09:42:10]MH_Cut [09:42:10]Write to MH i2c: D1 01 00 52 0A 01 2E [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: D1 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: D1 01 00 [09:42:10]MH_I2C_Read... [09:42:10]Read from MH i2c: D1 01 00 52 0A 00 2D [09:42:10]Write to MH i2c: 01 00 00 53 0A 5D [09:42:10]Write i2c OK [09:42:10]MH_I2C_Read... [09:42:11]*** Cut start [09:42:11]*** Purtial cut [09:42:11]*** CUTSNS_PIN = 0 [09:42:11]*** Stage 1: CUTSNS_PIN = 1 [09:42:12]OFD Sender: No OFD packet to send [09:42:13]Read from MH i2c: 01 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: 01 07 00 [09:42:13]MH_I2C_Read... [09:42:13]*** Stop cut motor [09:42:13]*** Cut end [09:42:13]Read from MH i2c: 01 07 00 53 0A 00 00 00 00 00 FF 0F 72 [09:42:13]process_action print_text done [09:42:13]requested_data is exist [09:42:13]produce_requested_data [09:42:13]requested_item fm.sn is exist - process it [09:42:13]wFMCommunicate request_size=4 [09:42:13]MH_SAM_APDU [09:42:13]CAPDU: 80 11 00 00 [09:42:13]Write to MH i2c: E2 08 00 54 0A 80 11 00 00 00 00 00 00 D8 [09:42:13]Write i2c OK [09:42:13]MH_I2C_Read... [09:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:13]Read from MH i2c: E2 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 17 00 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 17 00 54 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 38 [09:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:42:13]wFMCommunicate OK [09:42:13]requested_item fd.num is exist - process it [09:42:13]SAM_PROTO_GetFieldsCounters [09:42:13]wFMCommunicate request_size=4 [09:42:13]MH_SAM_APDU [09:42:13]CAPDU: 80 13 00 00 [09:42:13]Write to MH i2c: E2 08 00 55 0A 80 13 00 00 00 00 00 00 DB [09:42:13]Write i2c OK [09:42:13]MH_I2C_Read... [09:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:13]Read from MH i2c: E2 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 62 00 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 62 00 55 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CF 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [09:42:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CF 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:13]wFMCommunicate OK [09:42:13]SAM_PROTO_GetFieldsCounters done [09:42:13]requested_item shift.num is exist - process it [09:42:13]requested_item shift.opened is exist - process it [09:42:13]req_shift_opened [09:42:13]FM_GetShiftState [09:42:13]SAM_PROTO_GetShiftState [09:42:13]wFMCommunicate request_size=4 [09:42:13]MH_SAM_APDU [09:42:13]CAPDU: 80 13 01 00 [09:42:13]Write to MH i2c: E2 08 00 56 0A 80 13 01 00 00 00 00 00 DD [09:42:13]Write i2c OK [09:42:13]MH_I2C_Read... [09:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:13]Read from MH i2c: E2 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 0E 00 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 0E 00 56 0A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 13 [09:42:13]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:42:13]wFMCommunicate OK [09:42:13]SAM_PROTO_GetShiftState done [09:42:13]FM_GetShiftState done [09:42:13]req_shift_opened done [09:42:13]requested_item shift.open_date is exist - process it [09:42:13]req_shift_open_date [09:42:13]req_shift_open_date done [09:42:13]produce_requested_data done [09:42:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162767,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:42:13]process_action_free print_text [09:42:13]json_value_free [09:42:13]json_value_free done [09:42:13]process_json_proto returns [09:42:13]Send response to host [09:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162767,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:42:13]free response buf [09:42:13]execute_script done [09:42:13]execute_script returns [09:42:13]free content buf [09:42:13]Sock 7.Close socket [09:42:13]Sock 7.Thread stoped [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:54]accept exits with 9 [09:42:54]New connection [09:42:54]New thread 3066735972 created [09:42:54]Thread 3066879332 joined [09:42:54]Waiting for new connection... [09:42:54] Sock 9.Parse request [09:42:54]Sock 9.Check first char [09:42:54]Sock 9.First char is OK [09:42:54]request: POST /json_proto HTTP/1.0 [09:42:54]Method: POST [09:42:54]URL: /json_proto [09:42:54]Method is POST - this is cgi request [09:42:54]url: /json_proto [09:42:54]query_string will be loaded in cgi processing [09:42:54]execute_cgi json_proto POST (null) [09:42:54]execute_cgi path=json_proto method=POST [09:42:54]POST find Content-Length [09:42:54]Host: 172.17.39.67:8080 [09:42:54]Content-Length: 678 [09:42:54]Content-Type: application/json [09:42:54] [09:42:54]POST finish read [09:42:54]Found Content-Length = 678 [09:42:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.490, "sum" : 231.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 231.00, "total" : 231.00, "payments": [ { "type": 0, "sum" : 231.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:54]execute_script... [09: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)1319357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.490, "sum" : 231.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 231.00, "total" : 231.00, "payments": [ { "type": 0, "sum" : 231.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:54]POST & json_proto [09:42:54]process_json_proto [09:42:54]json parsed OK: [09:42:54]protocol is kg_v1.0 [09:42:54]action value=close_receipt [09:42:54]process_action close_receipt [09:42:54]cmd_close_receipt [09:42:54]MH_GetDate [09:42:54]Write to MH i2c: F0 00 00 57 0A 50 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: F0 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: F0 09 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: F0 09 00 57 0A 00 9E 9D 93 66 B6 85 93 66 C1 [09:42:54]GetLastDocTimeStamp 1720949800 [09:42:54]current date 1720950174 [09:42:54]FM_GetShiftState [09:42:54]SAM_PROTO_GetShiftState [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 13 01 00 [09:42:54]Write to MH i2c: E2 08 00 58 0A 80 13 01 00 00 00 00 00 DF [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0E 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0E 00 58 0A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 15 [09:42:54]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:42:54]wFMCommunicate OK [09:42:54]SAM_PROTO_GetShiftState done [09:42:54]FM_GetShiftState done [09:42:54]opened in 1720915483 [09:42:54]opened+sec_in_day 1721001883 [09:42:54]quantity*price = 23138 [09:42:54]sum+1 = 23140 [09:42:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 231.00 Внесено: 231.00 СДАЧА: 0.00 НСП 1% : 2.05 НДС 12% : 24.57 Наличными: 231.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 80 14.07.2024 09:42 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162768 ФПД: 257130616823196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T094254&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162768&fm=257130616823196&tin=02508201610067®Number=0000000000090858&sum=23100 [09:42:55]StoreToDocumentArchive [09:42:55]shift 463 fd 162768 [09:42:55]save to /storage/0463/doc_00162768 [09:42:55]save last doc name /storage/0463/doc_00162768 to /storage/kkm_last_doc_name [09:42:55]save OK [09:42:55]Clear old archive folders... [09:42:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:55]tlvbuf is 013009F0 [09:42:55]SAM_PROTO_ClearQueue [09:42:55]wFMCommunicate request_size=4 [09:42:55]MH_SAM_APDU [09:42:55]CAPDU: 80 09 00 00 [09:42:55]Write to MH i2c: E2 08 00 65 0A 80 09 00 00 00 00 00 00 E1 [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:55]Read from MH i2c: E2 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 03 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 03 00 65 0A 00 90 00 E3 [09:42:55]RAPDU: 90 00 [09:42:55]wFMCommunicate OK [09:42:55]SAM_PROTO_ClearQueue done [09:42:55]KKMCreateOFDPacket [09:42:55]OFDProtocolAddRootSTLVToBuf [09:42:55]FM_MakeSignedData [09:42:55]FM_MakeSignedData [09:42:55]SAM_PROTO_SignData [09:42:55]wFMCommunicate request_size=4 [09:42:55]MH_SAM_APDU [09:42:55]CAPDU: 80 0D 01 02 [09:42:55]Write to MH i2c: E2 08 00 66 0A 80 0D 01 02 00 00 00 00 E9 [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:55]Read from MH i2c: E2 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 03 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 03 00 66 0A 00 90 00 E4 [09:42:55]RAPDU: 90 00 [09:42:55]wFMCommunicate OK [09:42:55]wFMCommunicate request_size=255 [09:42:55]MH_SAM_APDU [09:42: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 A2 0D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 63 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 09 00 00 00 00 07 04 06 00 3C 5A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9E 9D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D0 7B 02 00 35 04 06 00 E9 [09:42:55]Write to MH i2c: E2 02 01 67 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 0D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 63 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 09 00 00 00 00 07 04 06 00 3C 5A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9E 9D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D0 7B 02 00 35 04 06 00 E9 00 00 95 [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:56]Read from MH i2c: E2 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 03 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [09:42:56]RAPDU: 90 00 [09:42:56]wFMCommunicate OK [09:42:56]wFMCommunicate request_size=10 [09:42:56]MH_SAM_APDU [09:42:56]CAPDU: 80 0D 02 02 05 DB E3 13 9D 9C [09:42:56]Write to MH i2c: E2 0D 00 68 0A 80 0D 02 02 05 00 DB E3 13 9D 9C 00 00 00 [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:56]Read from MH i2c: E2 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 03 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 03 00 68 0A 00 90 00 E6 [09:42:56]RAPDU: 90 00 [09:42:56]wFMCommunicate OK [09:42:56]wFMCommunicate request_size=4 [09:42:56]MH_SAM_APDU [09:42:56]CAPDU: 80 0D 03 02 [09:42:56]Write to MH i2c: E2 08 00 69 0A 80 0D 03 02 00 00 00 00 EE [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:56]Read from MH i2c: E2 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 0B 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 0B 00 69 0A 00 F0 DB 93 E7 DB 3B 13 32 90 00 8F [09:42:56]RAPDU: F0 DB 93 E7 DB 3B 13 32 90 00 [09:42:56]wFMCommunicate OK [09:42:56]SAM_PROTO_SignData done [09:42:56]FM_MakeSignedData done [09:42:56]CreateOFDProtocolMessage [09:42:56]wFMCommunicate request_size=4 [09:42:56]MH_SAM_APDU [09:42:56]CAPDU: 80 11 00 00 [09:42:56]Write to MH i2c: E2 08 00 6A 0A 80 11 00 00 00 00 00 00 EE [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:56]Read from MH i2c: E2 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 17 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 17 00 6A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4E [09:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:42:56]wFMCommunicate OK [09:42:56]CreateOFDProtocolMessage done [09:42:56]OFDSenderStorePacket 162768 [09:42:56]StoreOFDPacket docnum=162768 [09:42:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 24 71 07 01 78 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 0D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 63 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 09 00 00 00 00 07 04 06 00 3C 5A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9E 9D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D0 7B 02 00 35 04 06 00 E9 DB E3 13 9D 9C F0 DB 93 E7 DB 3B 13 32 [09:42:56]CheckFolder [09:42:56]dirname=/storage/ofd_packets [09:42:56]CheckFolder done [09:42:56]ProducePacketName [09:42:56]name=ofd_packets/00162768 [09:42:56]NVStorageSaveData ofd_packets/00162768 [09:42:56]File name is /storage/ofd_packets/00162768 [09:42:56]Write 301 bytes [09:42:56]NVStorageSaveData done [09:42:56]OFDSenderStorePacket done [09:42:56]KKMCreateOFDPacket done [09:42:56]NVStorageSaveData kkm_last_timestamp [09:42:56]File name is /storage/kkm_last_timestamp [09:42:56]Write 4 bytes [09:42:56]NVStorageSaveData done [09:42:56]ExternCall_PrintAddStr [09:42:56]wPrintStart [09:42:56]Write to MH i2c: 01 00 00 6B 0A 75 [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: 01 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: 01 07 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: 01 07 00 6B 0A 00 00 00 00 00 FF 0F 8A [09:42:56]RasterBufferAndPrint [09:42:56]line Счет N : (1)1319357 [09:42:56]line ИНН: 02508201610067 [09:42:56]line Контрольно-Кассовый Чек [09:42:56]line ПРОДАЖА [09:42:56]line ТРК (МРК, ГНК) : 53 [09:42:56]line Товар: 2710124130 [09:42:56]line Аи-92-К-5 [09:42:56]line 3.490 * 66.30 [09:42:56]line = 231.39 [09:42:56]line НДС 12% НСП 1% [09:42:56]line > о реализуемом товаре [09:42:56]line ОКРУГЛЕНИЕ: -0.39 [09:42:56]line ИТОГО: 231.00 [09:42:56]line Внесено: 231.00 [09:42:56]line СДАЧА: 0.00 [09:42:56]line НСП 1% : 2.05 [09:42:56]line НДС 12% : 24.57 [09:42:56]line Наличными: 231.00 [09:42:56]line Безнал.: 0.00 [09:42:56]line Место: АЗС № 140 "Партнер Нефть" [09:42:56]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:42:56]line СНО: Общий режим [09:42:56]line Чек 80 14.07.2024 09:42 [09:42:56]line Смена: 463 ФФД: 1.0 [09:42:56]line ЗНМ: 0300000129 [09:42:56]line РНМ: 0000000000090858 [09:42:56]line Версия ККМ: 001 [09:42:56]line ФМ: 0000000000874899 [09:42:56]line ФД: 162768 [09:42:56]line ФПД: 257130616823196 [09:42:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T094254&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162768&fm=257130616823196&tin=02508201610067®Number=0000000000090858&sum=23100 [09:42:56]OFD Sender: Processing packet 162768 [packets to send 106, broken 105] [09:42:56]ProducePacketName [09:42:56]name=ofd_packets/00162768 [09:42:56]OFD Sender: To server: pG, [09:42:56]CommunicateWithHost lk.salyk.kg:30040 [09:42:56]ConnectInit lk.salyk.kg [09:42:56]written 0, free lines is 4095 [09:42:56]Connected sock=10 [09:42:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 24 71 07 01 78 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 0D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 63 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 09 00 00 00 00 07 04 06 00 3C 5A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9E 9D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D0 7B 02 00 35 04 06 00 E9 DB E3 13 9D 9C F0 DB 93 E7 DB 3B 13 32 [09:42:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 91 D3 47 00 9F 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D0 7B 02 00 F4 03 04 00 AC 49 93 66 B6 04 01 00 00 2C F9 B3 E2 48 B5 DD 08 [09:42:56]CommunicateWithHost err = 0 [09:42:56]CheckOFDResponse [09:42:56]1017 (14) - 77093643461234 [09:42:56]1041 (16) - 0000000000874899 [09:42:56]1040 (4) - 162768 [09:42:56]1012 (4) - 14.07.2024 03:44 [09:42:56]1206 (1) - 0 [09:42:56]OFD Sender: Remove packet 162768 [09:42:56]ProducePacketName [09:42:56]name=ofd_packets/00162768 [09:42:56]NVStorageDeleteData [09:42:56]Write to MH i2c: 01 00 00 96 0A A0 [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: 01 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: 01 07 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: 01 07 00 96 0A 00 00 00 00 00 D4 0C 87 [09:42:56]RasterBufferAndPrint [09:42:56]line [09:42:56]line [09:42:56]line [09:42:56]line [09:42:56]line [09:42:56]written 0, free lines is 3290 [09:42:56]MH_Cut [09:42:56]Write to MH i2c: D1 01 00 9D 0A 01 79 [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: D1 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: D1 01 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: D1 01 00 9D 0A 00 78 [09:42:56]Write to MH i2c: 01 00 00 9E 0A A8 [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:57]OFD Sender: No OFD packet to send [09:42:57]*** Cut start [09:42:57]*** Purtial cut [09:42:57]*** Stage 1: CUTSNS_PIN = 1 [09:42:57]Read from MH i2c: 01 [09:42:57]MH_I2C_Read... [09:42:57]*** Stop cut motor [09:42:57]*** Cut end [09:42:57]Read from MH i2c: 01 07 00 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: 01 07 00 9E 0A 00 00 00 00 00 FF 0F BD [09:42:57]process_action close_receipt done [09:42:57]requested_data is exist [09:42:57]produce_requested_data [09:42:57]requested_item fm.sn is exist - process it [09:42:57]wFMCommunicate request_size=4 [09:42:57]MH_SAM_APDU [09:42:57]CAPDU: 80 11 00 00 [09:42:57]Write to MH i2c: E2 08 00 9F 0A 80 11 00 00 00 00 00 00 23 [09:42:57]Write i2c OK [09:42:57]MH_I2C_Read... [09:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:57]Read from MH i2c: E2 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 17 00 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 17 00 9F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 83 [09:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:42:58]wFMCommunicate OK [09:42:58]requested_item fd.num is exist - process it [09:42:58]SAM_PROTO_GetFieldsCounters [09:42:58]wFMCommunicate request_size=4 [09:42:58]MH_SAM_APDU [09:42:58]CAPDU: 80 13 00 00 [09:42:58]Write to MH i2c: E2 08 00 A0 0A 80 13 00 00 00 00 00 00 26 [09:42:58]Write i2c OK [09:42:58]MH_I2C_Read... [09:42:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:58]Read from MH i2c: E2 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 62 00 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 62 00 A0 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D0 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [09: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D0 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:58]wFMCommunicate OK [09:42:58]SAM_PROTO_GetFieldsCounters done [09:42:58]requested_item shift.num is exist - process it [09:42:58]requested_item shift.opened is exist - process it [09:42:58]req_shift_opened [09:42:58]FM_GetShiftState [09:42:58]SAM_PROTO_GetShiftState [09:42:58]wFMCommunicate request_size=4 [09:42:58]MH_SAM_APDU [09:42:58]CAPDU: 80 13 01 00 [09:42:58]Write to MH i2c: E2 08 00 A1 0A 80 13 01 00 00 00 00 00 28 [09:42:58]Write i2c OK [09:42:58]MH_I2C_Read... [09:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:58]Read from MH i2c: E2 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 0E 00 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 0E 00 A1 0A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5E [09:42:58]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:42:58]wFMCommunicate OK [09:42:58]SAM_PROTO_GetShiftState done [09:42:58]FM_GetShiftState done [09:42:58]req_shift_opened done [09:42:58]requested_item shift.open_date is exist - process it [09:42:58]req_shift_open_date [09:42:58]req_shift_open_date done [09:42:58]produce_requested_data done [09:42:58]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162768,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:42:58]process_action_free close_receipt [09:42:58]json_value_free [09:42:58]json_value_free done [09:42:58]process_json_proto returns [09:42:58]Send response to host [09:42:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162768,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:42:58]free response buf [09:42:58]execute_script done [09:42:58]execute_script returns [09:42:58]free content buf [09:42:58]Sock 9.Close socket [09:42:58]Sock 9.Thread stoped [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:26]accept exits with 7 [09:43:26]New connection [09:43:26]New thread 3066879332 created [09:43:26]Thread 3066735972 joined [09:43:26]Waiting for new connection... [09:43:26] Sock 7.Parse request [09:43:26]Sock 7.Check first char [09:43:26]Sock 7.First char is OK [09:43:26]request: POST /json_proto HTTP/1.0 [09:43:26]Method: POST [09:43:26]URL: /json_proto [09:43:26]Method is POST - this is cgi request [09:43:26]url: /json_proto [09:43:26]query_string will be loaded in cgi processing [09:43:26]execute_cgi json_proto POST (null) [09:43:26]execute_cgi path=json_proto method=POST [09:43:26]POST find Content-Length [09:43:26]Host: 172.17.39.67:8080 [09:43:26]Content-Length: 1170 [09:43:26]Content-Type: application/json [09:43:26] [09:43:26]POST finish read [09:43:26]Found Content-Length = 1170 [09:43:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319358\u000A14.07.2024 09:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102570\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:26]execute_script... [09:43:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319358\u000A14.07.2024 09:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102570\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:26]POST & json_proto [09:43:26]process_json_proto [09:43:26]json parsed OK: [09:43:26]protocol is kg_v1.0 [09:43:26]action value=print_text [09:43:26]process_action print_text [09:43:26]cmd_print_text [09:43:26]ExternCall_PrintAddStr [09:43:26]wPrintStart [09:43:26]Write to MH i2c: 01 00 00 A2 0A AC [09:43:26]Write i2c OK [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: 01 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: 01 07 00 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: 01 07 00 A2 0A 00 00 00 00 00 FF 0F C1 [09:43:26]RasterBufferAndPrint [09:43:26]line *****ТОВАРНЫЙ ЧЕК***** [09:43:26]line АЗС 140 [09:43:26]line Партнер нефть [09:43:26]line 02508201610067 [09:43:26]line Кассир : Дуйшенбек у Н. [09:43:26]line Счет N : (1)1319358 [09:43:26]line 14.07.2024 09:40 [09:43:26]line ПРОДАЖА [09:43:26]line ТРК (МРК, ГНК): 63 [09:43:26]line Вид ГСМ : 2710124130 [09:43:26]line Аи-92-К-5 [09:43:26]line 20.000 x 66.30 [09:43:26]line ИТОГ: 1326.00 [09:43:26]line Тип оплаты: Талоны: ТК ГПНА Online [09:43:26]line 30102570 [09:43:26]line ______________________ [09:43:26]line (подпись) [09:43:26]written 0, free lines is 4095 [09:43:26]Write to MH i2c: 01 00 00 B6 0A C0 [09:43:26]Write i2c OK [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: 01 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: 01 07 00 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: 01 07 00 B6 0A 00 00 00 00 00 12 0E E7 [09:43:26]RasterBufferAndPrint [09:43:26]line [09:43:26]line [09:43:26]line [09:43:26]line [09:43:26]line [09:43:26]written 0, free lines is 3603 [09:43:26]MH_Cut [09:43:26]Write to MH i2c: D1 01 00 BD 0A 01 99 [09:43:26]Write i2c OK [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: D1 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: D1 01 00 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: D1 01 00 BD 0A 00 98 [09:43:26]Write to MH i2c: 01 00 00 BE 0A C8 [09:43:26]Write i2c OK [09:43:26]MH_I2C_Read... [09:43:27]*** Cut start [09:43:27]*** Purtial cut [09:43:27]*** CUTSNS_PIN = 0 [09:43:27]OFD Sender: No OFD packet to send [09:43:27]*** Stage 1: CUTSNS_PIN = 1 [09:43:29]Read from MH i2c: 01 [09:43:29]MH_I2C_Read... [09:43:29]*** Stop cut motor [09:43:29]*** Cut end [09:43:29]Read from MH i2c: 01 07 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: 01 07 00 BE 0A 00 00 00 00 00 FF 0F DD [09:43:29]process_action print_text done [09:43:29]requested_data is exist [09:43:29]produce_requested_data [09:43:29]requested_item fm.sn is exist - process it [09:43:29]wFMCommunicate request_size=4 [09:43:29]MH_SAM_APDU [09:43:29]CAPDU: 80 11 00 00 [09:43:29]Write to MH i2c: E2 08 00 BF 0A 80 11 00 00 00 00 00 00 43 [09:43:29]Write i2c OK [09:43:29]MH_I2C_Read... [09:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:29]Read from MH i2c: E2 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 17 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 17 00 BF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A3 [09:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:43:29]wFMCommunicate OK [09:43:29]requested_item fd.num is exist - process it [09:43:29]SAM_PROTO_GetFieldsCounters [09:43:29]wFMCommunicate request_size=4 [09:43:29]MH_SAM_APDU [09:43:29]CAPDU: 80 13 00 00 [09:43:29]Write to MH i2c: E2 08 00 C0 0A 80 13 00 00 00 00 00 00 46 [09:43:29]Write i2c OK [09:43:29]MH_I2C_Read... [09:43:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:29]Read from MH i2c: E2 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 62 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 62 00 C0 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D0 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [09:43:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D0 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:29]wFMCommunicate OK [09:43:29]SAM_PROTO_GetFieldsCounters done [09:43:29]requested_item shift.num is exist - process it [09:43:29]requested_item shift.opened is exist - process it [09:43:29]req_shift_opened [09:43:29]FM_GetShiftState [09:43:29]SAM_PROTO_GetShiftState [09:43:29]wFMCommunicate request_size=4 [09:43:29]MH_SAM_APDU [09:43:29]CAPDU: 80 13 01 00 [09:43:29]Write to MH i2c: E2 08 00 C1 0A 80 13 01 00 00 00 00 00 48 [09:43:29]Write i2c OK [09:43:29]MH_I2C_Read... [09:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:29]Read from MH i2c: E2 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 0E 00 [09:43:29]MH_I2C_Read... [09:43:29]Read from MH i2c: E2 0E 00 C1 0A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7E [09:43:29]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:43:29]wFMCommunicate OK [09:43:29]SAM_PROTO_GetShiftState done [09:43:29]FM_GetShiftState done [09:43:29]req_shift_opened done [09:43:29]requested_item shift.open_date is exist - process it [09:43:29]req_shift_open_date [09:43:29]req_shift_open_date done [09:43:29]produce_requested_data done [09:43:29]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162768,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:43:29]process_action_free print_text [09:43:29]json_value_free [09:43:29]json_value_free done [09:43:29]process_json_proto returns [09:43:29]Send response to host [09:43:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162768,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:43:29]free response buf [09:43:29]execute_script done [09:43:29]execute_script returns [09:43:29]free content buf [09:43:29]Sock 7.Close socket [09:43:29]Sock 7.Thread stoped [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:36]accept exits with 9 [09:48:36]New connection [09:48:36]New thread 3066735972 created [09:48:36]Thread 3066879332 joined [09:48:36]Waiting for new connection... [09:48:36] Sock 9.Parse request [09:48:36]Sock 9.Check first char [09:48:36]Sock 9.First char is OK [09:48:36]request: POST /json_proto HTTP/1.0 [09:48:36]Method: POST [09:48:36]URL: /json_proto [09:48:36]Method is POST - this is cgi request [09:48:36]url: /json_proto [09:48:36]query_string will be loaded in cgi processing [09:48:36]execute_cgi json_proto POST (null) [09:48:36]execute_cgi path=json_proto method=POST [09:48:36]POST find Content-Length [09:48:36]Host: 172.17.39.67:8080 [09:48:36]Content-Length: 688 [09:48:36]Content-Type: application/json [09:48:36] [09:48:36]POST finish read [09:48:36]Found Content-Length = 688 [09:48:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.830, "sum" : 2020.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2020.00, "total" : 2020.00, "payments": [ { "type": 0, "sum" : 2020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:36]execute_script... [09:48: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)1319359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.830, "sum" : 2020.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2020.00, "total" : 2020.00, "payments": [ { "type": 0, "sum" : 2020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:36]POST & json_proto [09:48:36]process_json_proto [09:48:36]json parsed OK: [09:48:36]protocol is kg_v1.0 [09:48:36]action value=close_receipt [09:48:36]process_action close_receipt [09:48:36]cmd_close_receipt [09:48:36]MH_GetDate [09:48:36]Write to MH i2c: F0 00 00 C2 0A BB [09:48:36]Write i2c OK [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: F0 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: F0 09 00 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: F0 09 00 C2 0A 00 F4 9E 93 66 B6 85 93 66 83 [09:48:36]GetLastDocTimeStamp 1720950174 [09:48:36]current date 1720950516 [09:48:36]FM_GetShiftState [09:48:36]SAM_PROTO_GetShiftState [09:48:36]wFMCommunicate request_size=4 [09:48:36]MH_SAM_APDU [09:48:36]CAPDU: 80 13 01 00 [09:48:36]Write to MH i2c: E2 08 00 C3 0A 80 13 01 00 00 00 00 00 4A [09:48:36]Write i2c OK [09:48:36]MH_I2C_Read... [09:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:36]Read from MH i2c: E2 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: E2 0E 00 [09:48:36]MH_I2C_Read... [09:48:36]Read from MH i2c: E2 0E 00 C3 0A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 80 [09:48:36]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:48:36]wFMCommunicate OK [09:48:36]SAM_PROTO_GetShiftState done [09:48:36]FM_GetShiftState done [09:48:36]opened in 1720915483 [09:48:36]opened+sec_in_day 1721001883 [09:48:36]quantity*price = 202045 [09:48:36]sum+1 = 202047 [09:48:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 2020.00 Внесено: 2020.00 СДАЧА: 0.00 НСП 1% : 17.88 НДС 12% : 214.56 Наличными: 2020.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 81 14.07.2024 09:48 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162769 ФПД: 85810282265039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T094836&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162769&fm=85810282265039&tin=02508201610067®Number=0000000000090858&sum=202000 [09:48:37]StoreToDocumentArchive [09:48:37]shift 463 fd 162769 [09:48:37]save to /storage/0463/doc_00162769 [09:48:37]save last doc name /storage/0463/doc_00162769 to /storage/kkm_last_doc_name [09:48:37]save OK [09:48:37]Clear old archive folders... [09:48:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:48:37]tlvbuf is 01231A00 [09:48:37]SAM_PROTO_ClearQueue [09:48:37]wFMCommunicate request_size=4 [09:48:37]MH_SAM_APDU [09:48:37]CAPDU: 80 09 00 00 [09:48:37]Write to MH i2c: E2 08 00 D0 0A 80 09 00 00 00 00 00 00 4C [09:48:37]Write i2c OK [09:48:37]MH_I2C_Read... [09:48:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:37]Read from MH i2c: E2 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 03 00 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 03 00 D0 0A 00 90 00 4E [09:48:37]RAPDU: 90 00 [09:48:37]wFMCommunicate OK [09:48:37]SAM_PROTO_ClearQueue done [09:48:37]KKMCreateOFDPacket [09:48:37]OFDProtocolAddRootSTLVToBuf [09:48:37]FM_MakeSignedData [09:48:37]FM_MakeSignedData [09:48:37]SAM_PROTO_SignData [09:48:37]wFMCommunicate request_size=4 [09:48:37]MH_SAM_APDU [09:48:37]CAPDU: 80 0D 01 02 [09:48:37]Write to MH i2c: E2 08 00 D1 0A 80 0D 01 02 00 00 00 00 54 [09:48:37]Write i2c OK [09:48:37]MH_I2C_Read... [09:48:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:37]Read from MH i2c: E2 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 03 00 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 03 00 D1 0A 00 90 00 4F [09:48:37]RAPDU: 90 00 [09:48:37]wFMCommunicate OK [09:48:37]wFMCommunicate request_size=255 [09:48:37]MH_SAM_APDU [09:48:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 6C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 3E 15 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 15 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 53 00 00 00 00 07 04 06 00 10 15 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F4 9E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D1 7B 02 00 35 04 06 00 [09:48:37]Write to MH i2c: E2 02 01 D2 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 6C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 3E 15 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 15 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 53 00 00 00 00 07 04 06 00 10 15 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F4 9E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D1 7B 02 00 35 04 06 00 00 00 0A [09:48:37]Write i2c OK [09:48:37]MH_I2C_Read... [09:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:37]Read from MH i2c: E2 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 03 00 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 03 00 D2 0A 00 90 00 50 [09:48:37]RAPDU: 90 00 [09:48:37]wFMCommunicate OK [09:48:37]wFMCommunicate request_size=11 [09:48:37]MH_SAM_APDU [09:48:37]CAPDU: 80 0D 02 02 06 4E 0B 43 64 79 CF [09:48:37]Write to MH i2c: E2 0E 00 D3 0A 80 0D 02 02 06 00 4E 0B 43 64 79 CF 00 00 AB [09:48:37]Write i2c OK [09:48:37]MH_I2C_Read... [09:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:37]Read from MH i2c: E2 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 03 00 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 03 00 D3 0A 00 90 00 51 [09:48:37]RAPDU: 90 00 [09:48:37]wFMCommunicate OK [09:48:37]wFMCommunicate request_size=4 [09:48:37]MH_SAM_APDU [09:48:37]CAPDU: 80 0D 03 02 [09:48:37]Write to MH i2c: E2 08 00 D4 0A 80 0D 03 02 00 00 00 00 59 [09:48:37]Write i2c OK [09:48:37]MH_I2C_Read... [09:48:37]OFD Sender: No OFD packet to send [09:48:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:37]Read from MH i2c: E2 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 0B 00 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 0B 00 D4 0A 00 96 02 67 E9 8E 0A ED C6 90 00 8D [09:48:37]RAPDU: 96 02 67 E9 8E 0A ED C6 90 00 [09:48:37]wFMCommunicate OK [09:48:37]SAM_PROTO_SignData done [09:48:37]FM_MakeSignedData done [09:48:37]CreateOFDProtocolMessage [09:48:37]wFMCommunicate request_size=4 [09:48:37]MH_SAM_APDU [09:48:37]CAPDU: 80 11 00 00 [09:48:37]Write to MH i2c: E2 08 00 D5 0A 80 11 00 00 00 00 00 00 59 [09:48:37]Write i2c OK [09:48:37]MH_I2C_Read... [09:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:37]Read from MH i2c: E2 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 17 00 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 17 00 D5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B9 [09:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:48:37]wFMCommunicate OK [09:48:37]CreateOFDProtocolMessage done [09:48:37]OFDSenderStorePacket 162769 [09:48:37]StoreOFDPacket docnum=162769 [09:48:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8B 3D 08 01 49 EF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 6C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 3E 15 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 15 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 53 00 00 00 00 07 04 06 00 10 15 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F4 9E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D1 7B 02 00 35 04 06 00 4E 0B 43 64 79 CF 96 02 67 E9 8E 0A ED C6 [09:48:37]CheckFolder [09:48:37]dirname=/storage/ofd_packets [09:48:37]CheckFolder done [09:48:37]ProducePacketName [09:48:37]name=ofd_packets/00162769 [09:48:37]NVStorageSaveData ofd_packets/00162769 [09:48:37]File name is /storage/ofd_packets/00162769 [09:48:37]Write 302 bytes [09:48:37]NVStorageSaveData done [09:48:37]OFDSenderStorePacket done [09:48:37]KKMCreateOFDPacket done [09:48:37]NVStorageSaveData kkm_last_timestamp [09:48:37]File name is /storage/kkm_last_timestamp [09:48:37]Write 4 bytes [09:48:37]NVStorageSaveData done [09:48:37]ExternCall_PrintAddStr [09:48:37]wPrintStart [09:48:37]Write to MH i2c: 01 00 00 D6 0A E0 [09:48:37]Write i2c OK [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: 01 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: 01 07 00 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: 01 07 00 D6 0A 00 00 00 00 00 FF 0F F5 [09:48:37]RasterBufferAndPrint [09:48:37]line Счет N : (1)1319359 [09:48:37]line ИНН: 02508201610067 [09:48:37]line Контрольно-Кассовый Чек [09:48:37]line ПРОДАЖА [09:48:37]line ТРК (МРК, ГНК) : 31 [09:48:37]line Товар: 2710194210 [09:48:37]line ДТ(л)-К-5 [09:48:37]line 27.830 * 72.60 [09:48:37]line = 2020.46 [09:48:37]line НДС 12% НСП 1% [09:48:37]line > о реализуемом товаре [09:48:37]line ОКРУГЛЕНИЕ: -0.46 [09:48:37]line ИТОГО: 2020.00 [09:48:37]line Внесено: 2020.00 [09:48:37]line СДАЧА: 0.00 [09:48:37]line НСП 1% : 17.88 [09:48:37]line НДС 12% : 214.56 [09:48:37]line Наличными: 2020.00 [09:48:37]line Безнал.: 0.00 [09:48:37]line Место: АЗС № 140 "Партнер Нефть" [09:48:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:48:37]line СНО: Общий режим [09:48:37]line Чек 81 14.07.2024 09:48 [09:48:37]line Смена: 463 ФФД: 1.0 [09:48:37]line ЗНМ: 0300000129 [09:48:37]line РНМ: 0000000000090858 [09:48:37]line Версия ККМ: 001 [09:48:37]line ФМ: 0000000000874899 [09:48:37]line ФД: 162769 [09:48:37]line ФПД: 85810282265039 [09:48:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T094836&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162769&fm=85810282265039&tin=02508201610067®Number=0000000000090858&sum=202000 [09:48:37]written 0, free lines is 4095 [09:48:37]OFD Sender: Processing packet 162769 [packets to send 106, broken 105] [09:48:37]ProducePacketName [09:48:37]name=ofd_packets/00162769 [09:48:37]OFD Sender: To server: pG, [09:48:38]CommunicateWithHost lk.salyk.kg:30040 [09:48:38]ConnectInit lk.salyk.kg [09:48:38]Connected sock=10 [09:48:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8B 3D 08 01 49 EF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 6C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 3E 15 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 15 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 53 00 00 00 00 07 04 06 00 10 15 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F4 9E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D1 7B 02 00 35 04 06 00 4E 0B 43 64 79 CF 96 02 67 E9 8E 0A ED C6 [09:48:38]Write to MH i2c: 01 00 00 01 0B 0C [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: 01 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: 01 07 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: 01 07 00 01 0B 00 00 00 00 00 E8 0C 07 [09:48:38]RasterBufferAndPrint [09:48:38]line [09:48:38]line [09:48:38]line [09:48:38]line [09:48:38]line [09:48:38]written 0, free lines is 3310 [09:48:38]MH_Cut [09:48:38]Write to MH i2c: D1 01 00 08 0B 01 E5 [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: D1 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: D1 01 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: D1 01 00 08 0B 00 E4 [09:48:38]Write to MH i2c: 01 00 00 09 0B 14 [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 19 E0 47 00 13 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 34 38 39 39 10 04 04 00 D1 7B 02 00 F4 03 04 00 02 4B 93 66 B6 04 01 00 00 C6 3F 2E 23 0C F9 D6 C3 [09:48:38]CommunicateWithHost err = 0 [09:48:38]CheckOFDResponse [09:48:38]1017 (14) - 77093643461234 [09:48:38]1041 (16) - 0000000000874899 [09:48:38]1040 (4) - 162769 [09:48:38]1012 (4) - 14.07.2024 03:50 [09:48:38]1206 (1) - 0 [09:48:38]OFD Sender: Remove packet 162769 [09:48:38]ProducePacketName [09:48:38]name=ofd_packets/00162769 [09:48:38]NVStorageDeleteData [09:48:38]OFD Sender: No OFD packet to send [09:48:39]*** Cut start [09:48:39]*** Purtial cut [09:48:39]*** Stage 1: CUTSNS_PIN = 1 [09:48:39]Read from MH i2c: 01 [09:48:39]MH_I2C_Read... [09:48:39]*** Stop cut motor [09:48:39]*** Cut end [09:48:39]Read from MH i2c: 01 07 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: 01 07 00 09 0B 00 00 00 00 00 FF 0F 29 [09:48:39]process_action close_receipt done [09:48:39]requested_data is exist [09:48:39]produce_requested_data [09:48:39]requested_item fm.sn is exist - process it [09:48:39]wFMCommunicate request_size=4 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 11 00 00 [09:48:39]Write to MH i2c: E2 08 00 0A 0B 80 11 00 00 00 00 00 00 8F [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 17 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 17 00 0A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EF [09:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:48:39]wFMCommunicate OK [09:48:39]requested_item fd.num is exist - process it [09:48:39]SAM_PROTO_GetFieldsCounters [09:48:39]wFMCommunicate request_size=4 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 13 00 00 [09:48:39]Write to MH i2c: E2 08 00 0B 0B 80 13 00 00 00 00 00 00 92 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 62 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 62 00 0B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D1 7B 02 00 0E 04 04 00 CF 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 D6 [09:48:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D1 7B 02 00 0E 04 04 00 CF 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 [09:48:39]wFMCommunicate OK [09:48:39]SAM_PROTO_GetFieldsCounters done [09:48:39]requested_item shift.num is exist - process it [09:48:39]requested_item shift.opened is exist - process it [09:48:39]req_shift_opened [09:48:39]FM_GetShiftState [09:48:39]SAM_PROTO_GetShiftState [09:48:39]wFMCommunicate request_size=4 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 13 01 00 [09:48:39]Write to MH i2c: E2 08 00 0C 0B 80 13 01 00 00 00 00 00 94 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 0E 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 0E 00 0C 0B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 CA [09:48:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:48:39]wFMCommunicate OK [09:48:39]SAM_PROTO_GetShiftState done [09:48:39]FM_GetShiftState done [09:48:39]req_shift_opened done [09:48:39]requested_item shift.open_date is exist - process it [09:48:39]req_shift_open_date [09:48:39]req_shift_open_date done [09:48:39]produce_requested_data done [09:48:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162769,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:48:39]process_action_free close_receipt [09:48:39]json_value_free [09:48:39]json_value_free done [09:48:39]process_json_proto returns [09:48:39]Send response to host [09:48:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162769,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:48:39]free response buf [09:48:39]execute_script done [09:48:39]execute_script returns [09:48:39]free content buf [09:48:39]Sock 9.Close socket [09:48:39]Sock 9.Thread stoped [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]accept exits with 7 [09:52:19]New connection [09:52:19]New thread 3066879332 created [09:52:19]Thread 3066735972 joined [09:52:19]Waiting for new connection... [09:52:19] Sock 7.Parse request [09:52:19]Sock 7.Check first char [09:52:19]Sock 7.First char is OK [09:52:19]request: POST /json_proto HTTP/1.0 [09:52:19]Method: POST [09:52:19]URL: /json_proto [09:52:19]Method is POST - this is cgi request [09:52:19]url: /json_proto [09:52:19]query_string will be loaded in cgi processing [09:52:19]execute_cgi json_proto POST (null) [09:52:19]execute_cgi path=json_proto method=POST [09:52:19]POST find Content-Length [09:52:19]Host: 172.17.39.67:8080 [09:52:19]Content-Length: 648 [09:52:19]Content-Type: application/json [09:52:19] [09:52:19]POST finish read [09:52:19]Found Content-Length = 648 [09:52:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.000, "sum" : 1452.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:19]execute_script... [09:52: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)1319360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.000, "sum" : 1452.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:19]POST & json_proto [09:52:19]process_json_proto [09:52:19]json parsed OK: [09:52:19]protocol is kg_v1.0 [09:52:19]action value=close_receipt [09:52:19]process_action close_receipt [09:52:19]cmd_close_receipt [09:52:19]MH_GetDate [09:52:19]Write to MH i2c: F0 00 00 0D 0B 07 [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: F0 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: F0 09 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: F0 09 00 0D 0B 00 D3 9F 93 66 B6 85 93 66 AF [09:52:19]GetLastDocTimeStamp 1720950516 [09:52:19]current date 1720950739 [09:52:19]FM_GetShiftState [09:52:19]SAM_PROTO_GetShiftState [09:52:19]wFMCommunicate request_size=4 [09:52:19]MH_SAM_APDU [09:52:19]CAPDU: 80 13 01 00 [09:52:19]Write to MH i2c: E2 08 00 0E 0B 80 13 01 00 00 00 00 00 96 [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:19]Read from MH i2c: E2 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 0E 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 0E 00 0E 0B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 CC [09:52:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:52:19]wFMCommunicate OK [09:52:19]SAM_PROTO_GetShiftState done [09:52:19]FM_GetShiftState done [09:52:19]opened in 1720915483 [09:52:19]opened+sec_in_day 1721001883 [09:52:19]quantity*price = 145200 [09:52:19]sum+1 = 145201 [09:52:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1452.00 НСП 1% : 12.85 НДС 12% : 154.19 Наличными: 1452.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 82 14.07.2024 09:52 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162770 ФПД: 228987576443350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T095219&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162770&fm=228987576443350&tin=02508201610067®Number=0000000000090858&sum=145200 [09:52:20]StoreToDocumentArchive [09:52:20]shift 463 fd 162770 [09:52:20]save to /storage/0463/doc_00162770 [09:52:20]save last doc name /storage/0463/doc_00162770 to /storage/kkm_last_doc_name [09:52:20]save OK [09:52:20]Clear old archive folders... [09:52:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:52:20]tlvbuf is 01230A70 [09:52:20]SAM_PROTO_ClearQueue [09:52:20]wFMCommunicate request_size=4 [09:52:20]MH_SAM_APDU [09:52:20]CAPDU: 80 09 00 00 [09:52:20]Write to MH i2c: E2 08 00 1B 0B 80 09 00 00 00 00 00 00 98 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 03 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 03 00 1B 0B 00 90 00 9A [09:52:20]RAPDU: 90 00 [09:52:20]wFMCommunicate OK [09:52:20]SAM_PROTO_ClearQueue done [09:52:20]KKMCreateOFDPacket [09:52:20]OFDProtocolAddRootSTLVToBuf [09:52:20]FM_MakeSignedData [09:52:20]FM_MakeSignedData [09:52:20]SAM_PROTO_SignData [09:52:20]wFMCommunicate request_size=4 [09:52:20]MH_SAM_APDU [09:52:20]CAPDU: 80 0D 01 02 [09:52:20]Write to MH i2c: E2 08 00 1C 0B 80 0D 01 02 00 00 00 00 A0 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 03 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 03 00 1C 0B 00 90 00 9B [09:52:20]RAPDU: 90 00 [09:52:20]wFMCommunicate OK [09:52:20]wFMCommunicate request_size=255 [09:52:20]MH_SAM_APDU [09:52:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 30 37 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D3 9F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D2 7B 02 00 35 04 06 00 [09:52:20]Write to MH i2c: E2 02 01 1D 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 30 37 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D3 9F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D2 7B 02 00 35 04 06 00 00 00 75 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 03 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 03 00 1D 0B 00 90 00 9C [09:52:20]RAPDU: 90 00 [09:52:20]wFMCommunicate OK [09:52:20]wFMCommunicate request_size=11 [09:52:20]MH_SAM_APDU [09:52:20]CAPDU: 80 0D 02 02 06 D0 43 53 26 E1 D6 [09:52:20]Write to MH i2c: E2 0E 00 1E 0B 80 0D 02 02 06 00 D0 43 53 26 E1 D6 00 00 F2 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 03 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 03 00 1E 0B 00 90 00 9D [09:52:20]RAPDU: 90 00 [09:52:20]wFMCommunicate OK [09:52:20]wFMCommunicate request_size=4 [09:52:20]MH_SAM_APDU [09:52:20]CAPDU: 80 0D 03 02 [09:52:20]Write to MH i2c: E2 08 00 1F 0B 80 0D 03 02 00 00 00 00 A5 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 0B 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 0B 00 1F 0B 00 12 3F EF 50 B4 86 27 09 90 00 A0 [09:52:20]RAPDU: 12 3F EF 50 B4 86 27 09 90 00 [09:52:20]wFMCommunicate OK [09:52:20]SAM_PROTO_SignData done [09:52:20]FM_MakeSignedData done [09:52:20]CreateOFDProtocolMessage [09:52:20]wFMCommunicate request_size=4 [09:52:20]MH_SAM_APDU [09:52:20]CAPDU: 80 11 00 00 [09:52:20]Write to MH i2c: E2 08 00 20 0B 80 11 00 00 00 00 00 00 A5 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 17 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 17 00 20 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 05 [09:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:52:20]wFMCommunicate OK [09:52:20]CreateOFDProtocolMessage done [09:52:20]OFDSenderStorePacket 162770 [09:52:20]StoreOFDPacket docnum=162770 [09:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F7 DD 08 01 0F CA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 30 37 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D3 9F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D2 7B 02 00 35 04 06 00 D0 43 53 26 E1 D6 12 3F EF 50 B4 86 27 09 [09:52:20]CheckFolder [09:52:20]dirname=/storage/ofd_packets [09:52:20]CheckFolder done [09:52:20]ProducePacketName [09:52:20]name=ofd_packets/00162770 [09:52:20]NVStorageSaveData ofd_packets/00162770 [09:52:20]File name is /storage/ofd_packets/00162770 [09:52:20]Write 302 bytes [09:52:20]NVStorageSaveData done [09:52:20]OFDSenderStorePacket done [09:52:20]KKMCreateOFDPacket done [09:52:20]NVStorageSaveData kkm_last_timestamp [09:52:20]File name is /storage/kkm_last_timestamp [09:52:20]Write 4 bytes [09:52:20]NVStorageSaveData done [09:52:20]ExternCall_PrintAddStr [09:52:20]wPrintStart [09:52:20]Write to MH i2c: 01 00 00 21 0B 2C [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: 01 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: 01 07 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: 01 07 00 21 0B 00 00 00 00 00 FF 0F 41 [09:52:20]RasterBufferAndPrint [09:52:20]line Счет N : (1)1319360 [09:52:20]line ИНН: 02508201610067 [09:52:20]line Контрольно-Кассовый Чек [09:52:20]line ПРОДАЖА [09:52:20]line ТРК (МРК, ГНК) : 11 [09:52:20]line Товар: 2710194210 [09:52:20]line ДТ(л)-К-5 [09:52:20]line 20.000 * 72.60 [09:52:20]line = 1452.00 [09:52:20]line НДС 12% НСП 1% [09:52:20]line > о реализуемом товаре [09:52:20]line ИТОГО: 1452.00 [09:52:20]line НСП 1% : 12.85 [09:52:20]line НДС 12% : 154.19 [09:52:20]line Наличными: 1452.00 [09:52:20]line Безнал.: 0.00 [09:52:20]line Место: АЗС № 140 "Партнер Нефть" [09:52:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:52:20]line СНО: Общий режим [09:52:20]line Чек 82 14.07.2024 09:52 [09:52:20]line Смена: 463 ФФД: 1.0 [09:52:20]line ЗНМ: 0300000129 [09:52:20]line РНМ: 0000000000090858 [09:52:20]line Версия ККМ: 001 [09:52:20]line ФМ: 0000000000874899 [09:52:20]line ФД: 162770 [09:52:20]line ФПД: 228987576443350 [09:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T095219&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162770&fm=228987576443350&tin=02508201610067®Number=0000000000090858&sum=145200 [09:52:21]OFD Sender: Processing packet 162770 [packets to send 106, broken 105] [09:52:21]ProducePacketName [09:52:21]name=ofd_packets/00162770 [09:52:21]OFD Sender: To server: pG, [09:52:21]CommunicateWithHost lk.salyk.kg:30040 [09:52:21]ConnectInit lk.salyk.kg [09:52:21]written 0, free lines is 4095 [09:52:21]Connected sock=11 [09:52:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F7 DD 08 01 0F CA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 30 37 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D3 9F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D2 7B 02 00 35 04 06 00 D0 43 53 26 E1 D6 12 3F EF 50 B4 86 27 09 [09:52:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4C 91 47 00 90 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D2 7B 02 00 F4 03 04 00 E1 4B 93 66 B6 04 01 00 00 BC E6 D6 13 E2 0D 6A D5 [09:52:21]CommunicateWithHost err = 0 [09:52:21]CheckOFDResponse [09:52:21]1017 (14) - 77093643461234 [09:52:21]1041 (16) - 0000000000874899 [09:52:21]1040 (4) - 162770 [09:52:21]1012 (4) - 14.07.2024 03:54 [09:52:21]1206 (1) - 0 [09:52:21]OFD Sender: Remove packet 162770 [09:52:21]ProducePacketName [09:52:21]name=ofd_packets/00162770 [09:52:21]NVStorageDeleteData [09:52:21]Write to MH i2c: 01 00 00 49 0B 54 [09:52:21]Write i2c OK [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: 01 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: 01 07 00 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: 01 07 00 49 0B 00 00 00 00 00 01 0D 69 [09:52:21]RasterBufferAndPrint [09:52:21]line [09:52:21]line [09:52:21]line [09:52:21]line [09:52:21]line [09:52:21]written 0, free lines is 3335 [09:52:21]MH_Cut [09:52:21]Write to MH i2c: D1 01 00 50 0B 01 2D [09:52:21]Write i2c OK [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: D1 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: D1 01 00 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: D1 01 00 50 0B 00 2C [09:52:21]Write to MH i2c: 01 00 00 51 0B 5C [09:52:21]Write i2c OK [09:52:21]MH_I2C_Read... [09:52:21]OFD Sender: No OFD packet to send [09:52:22]*** Cut start [09:52:22]*** Purtial cut [09:52:22]*** CUTSNS_PIN = 0 [09:52:22]*** Stage 1: CUTSNS_PIN = 1 [09:52:24]Read from MH i2c: 01 [09:52:24]MH_I2C_Read... [09:52:24]*** Stop cut motor [09:52:24]*** Cut end [09:52:24]Read from MH i2c: 01 07 00 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: 01 07 00 51 0B 00 00 00 00 00 FF 0F 71 [09:52:24]process_action close_receipt done [09:52:24]requested_data is exist [09:52:24]produce_requested_data [09:52:24]requested_item fm.sn is exist - process it [09:52:24]wFMCommunicate request_size=4 [09:52:24]MH_SAM_APDU [09:52:24]CAPDU: 80 11 00 00 [09:52:24]Write to MH i2c: E2 08 00 52 0B 80 11 00 00 00 00 00 00 D7 [09:52:24]Write i2c OK [09:52:24]MH_I2C_Read... [09:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:24]Read from MH i2c: E2 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: E2 17 00 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: E2 17 00 52 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 37 [09:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:52:24]wFMCommunicate OK [09:52:24]requested_item fd.num is exist - process it [09:52:24]SAM_PROTO_GetFieldsCounters [09:52:24]wFMCommunicate request_size=4 [09:52:24]MH_SAM_APDU [09:52:24]CAPDU: 80 13 00 00 [09:52:24]Write to MH i2c: E2 08 00 53 0B 80 13 00 00 00 00 00 00 DA [09:52:24]Write i2c OK [09:52:24]MH_I2C_Read... [09:52:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:24]Read from MH i2c: E2 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: E2 62 00 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: E2 62 00 53 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D2 7B 02 00 0E 04 04 00 CF 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 22 [09:52:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D2 7B 02 00 0E 04 04 00 CF 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 [09:52:24]wFMCommunicate OK [09:52:24]SAM_PROTO_GetFieldsCounters done [09:52:24]requested_item shift.num is exist - process it [09:52:24]requested_item shift.opened is exist - process it [09:52:24]req_shift_opened [09:52:24]FM_GetShiftState [09:52:24]SAM_PROTO_GetShiftState [09:52:24]wFMCommunicate request_size=4 [09:52:24]MH_SAM_APDU [09:52:24]CAPDU: 80 13 01 00 [09:52:24]Write to MH i2c: E2 08 00 54 0B 80 13 01 00 00 00 00 00 DC [09:52:24]Write i2c OK [09:52:24]MH_I2C_Read... [09:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:24]Read from MH i2c: E2 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: E2 0E 00 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: E2 0E 00 54 0B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 12 [09:52:24]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:52:24]wFMCommunicate OK [09:52:24]SAM_PROTO_GetShiftState done [09:52:24]FM_GetShiftState done [09:52:24]req_shift_opened done [09:52:24]requested_item shift.open_date is exist - process it [09:52:24]req_shift_open_date [09:52:24]req_shift_open_date done [09:52:24]produce_requested_data done [09:52:24]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162770,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:52:24]process_action_free close_receipt [09:52:24]json_value_free [09:52:24]json_value_free done [09:52:24]process_json_proto returns [09:52:24]Send response to host [09:52:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162770,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:52:24]free response buf [09:52:24]execute_script done [09:52:24]execute_script returns [09:52:24]free content buf [09:52:24]Sock 7.Close socket [09:52:24]Sock 7.Thread stoped [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:06]accept exits with 10 [09:59:06]New connection [09:59:06]New thread 3066735972 created [09:59:06]Thread 3066879332 joined [09:59:06]Waiting for new connection... [09:59:06] Sock 10.Parse request [09:59:06]Sock 10.Check first char [09:59:06]Sock 10.First char is OK [09:59:06]request: POST /json_proto HTTP/1.0 [09:59:06]Method: POST [09:59:06]URL: /json_proto [09:59:06]Method is POST - this is cgi request [09:59:06]url: /json_proto [09:59:06]query_string will be loaded in cgi processing [09:59:06]execute_cgi json_proto POST (null) [09:59:06]execute_cgi path=json_proto method=POST [09:59:06]POST find Content-Length [09:59:06]Host: 172.17.39.67:8080 [09:59:06]Content-Length: 849 [09:59:06]Content-Type: application/json [09:59:06] [09:59:06]POST finish read [09:59:06]Found Content-Length = 849 [09:59:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:06]execute_script... [09:59: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)1319361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:06]POST & json_proto [09:59:06]process_json_proto [09:59:06]json parsed OK: [09:59:06]protocol is kg_v1.0 [09:59:06]action value=close_receipt [09:59:06]process_action close_receipt [09:59:06]cmd_close_receipt [09:59:06]MH_GetDate [09:59:06]Write to MH i2c: F0 00 00 55 0B 4F [09:59:06]Write i2c OK [09:59:06]MH_I2C_Read... [09:59:06]Read from MH i2c: F0 [09:59:06]MH_I2C_Read... [09:59:06]Read from MH i2c: F0 09 00 [09:59:06]MH_I2C_Read... [09:59:06]Read from MH i2c: F0 09 00 55 0B 00 6A A1 93 66 B6 85 93 66 90 [09:59:06]GetLastDocTimeStamp 1720950739 [09:59:06]current date 1720951146 [09:59:06]FM_GetShiftState [09:59:06]SAM_PROTO_GetShiftState [09:59:06]wFMCommunicate request_size=4 [09:59:06]MH_SAM_APDU [09:59:06]CAPDU: 80 13 01 00 [09:59:06]Write to MH i2c: E2 08 00 56 0B 80 13 01 00 00 00 00 00 DE [09:59:06]Write i2c OK [09:59:06]MH_I2C_Read... [09:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:06]Read from MH i2c: E2 [09:59:06]MH_I2C_Read... [09:59:06]Read from MH i2c: E2 0E 00 [09:59:06]MH_I2C_Read... [09:59:06]Read from MH i2c: E2 0E 00 56 0B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 14 [09:59:06]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:59:06]wFMCommunicate OK [09:59:06]SAM_PROTO_GetShiftState done [09:59:06]FM_GetShiftState done [09:59:06]opened in 1720915483 [09:59:06]opened+sec_in_day 1721001883 [09:59:06]quantity*price = 300055 [09:59:06]sum+1 = 300057 [09:59:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 83 14.07.2024 09:59 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162771 ФПД: 148861260454910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T095906&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162771&fm=148861260454910&tin=02508201610067®Number=0000000000090858&sum=300056 [09:59:07]StoreToDocumentArchive [09:59:07]shift 463 fd 162771 [09:59:07]save to /storage/0463/doc_00162771 [09:59:07]save last doc name /storage/0463/doc_00162771 to /storage/kkm_last_doc_name [09:59:07]save OK [09:59:07]Clear old archive folders... [09:59:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:59:07]tlvbuf is 01229E30 [09:59:07]SAM_PROTO_ClearQueue [09:59:07]wFMCommunicate request_size=4 [09:59:07]MH_SAM_APDU [09:59:07]CAPDU: 80 09 00 00 [09:59:07]Write to MH i2c: E2 08 00 63 0B 80 09 00 00 00 00 00 00 E0 [09:59:07]Write i2c OK [09:59:07]MH_I2C_Read... [09:59:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:07]Read from MH i2c: E2 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 03 00 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 03 00 63 0B 00 90 00 E2 [09:59:07]RAPDU: 90 00 [09:59:07]wFMCommunicate OK [09:59:07]SAM_PROTO_ClearQueue done [09:59:07]KKMCreateOFDPacket [09:59:07]OFDProtocolAddRootSTLVToBuf [09:59:07]FM_MakeSignedData [09:59:07]FM_MakeSignedData [09:59:07]SAM_PROTO_SignData [09:59:07]wFMCommunicate request_size=4 [09:59:07]MH_SAM_APDU [09:59:07]CAPDU: 80 0D 01 02 [09:59:07]Write to MH i2c: E2 08 00 64 0B 80 0D 01 02 00 00 00 00 E8 [09:59:07]Write i2c OK [09:59:07]MH_I2C_Read... [09:59:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:07]Read from MH i2c: E2 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 03 00 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 03 00 64 0B 00 90 00 E3 [09:59:07]RAPDU: 90 00 [09:59:07]wFMCommunicate OK [09:59:07]wFMCommunicate request_size=255 [09:59:07]MH_SAM_APDU [09:59:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 6A A1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D3 7B 02 00 35 04 06 00 [09:59:07]Write to MH i2c: E2 02 01 65 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 6A A1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D3 7B 02 00 35 04 06 00 00 00 AE [09:59:07]Write i2c OK [09:59:07]MH_I2C_Read... [09:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:07]Read from MH i2c: E2 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 03 00 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 03 00 65 0B 00 90 00 E4 [09:59:07]RAPDU: 90 00 [09:59:07]wFMCommunicate OK [09:59:07]wFMCommunicate request_size=11 [09:59:07]MH_SAM_APDU [09:59:07]CAPDU: 80 0D 02 02 06 87 63 76 8C DB FE [09:59:07]Write to MH i2c: E2 0E 00 66 0B 80 0D 02 02 06 00 87 63 76 8C DB FE 00 00 BC [09:59:07]Write i2c OK [09:59:07]MH_I2C_Read... [09:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:07]Read from MH i2c: E2 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 03 00 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 03 00 66 0B 00 90 00 E5 [09:59:07]RAPDU: 90 00 [09:59:07]wFMCommunicate OK [09:59:07]wFMCommunicate request_size=4 [09:59:07]MH_SAM_APDU [09:59:07]CAPDU: 80 0D 03 02 [09:59:07]Write to MH i2c: E2 08 00 67 0B 80 0D 03 02 00 00 00 00 ED [09:59:07]Write i2c OK [09:59:07]MH_I2C_Read... [09:59:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:07]Read from MH i2c: E2 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 0B 00 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 0B 00 67 0B 00 94 F3 45 DE A2 3B DE 8E 90 00 E1 [09:59:07]RAPDU: 94 F3 45 DE A2 3B DE 8E 90 00 [09:59:07]wFMCommunicate OK [09:59:07]SAM_PROTO_SignData done [09:59:07]FM_MakeSignedData done [09:59:07]CreateOFDProtocolMessage [09:59:07]wFMCommunicate request_size=4 [09:59:07]MH_SAM_APDU [09:59:07]CAPDU: 80 11 00 00 [09:59:07]Write to MH i2c: E2 08 00 68 0B 80 11 00 00 00 00 00 00 ED [09:59:07]Write i2c OK [09:59:07]MH_I2C_Read... [09:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:07]Read from MH i2c: E2 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 17 00 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: E2 17 00 68 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4D [09:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:59:07]wFMCommunicate OK [09:59:07]CreateOFDProtocolMessage done [09:59:07]OFDSenderStorePacket 162771 [09:59:07]StoreOFDPacket docnum=162771 [09:59:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 13 DB 08 01 47 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 6A A1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D3 7B 02 00 35 04 06 00 87 63 76 8C DB FE 94 F3 45 DE A2 3B DE 8E [09:59:07]CheckFolder [09:59:07]dirname=/storage/ofd_packets [09:59:07]CheckFolder done [09:59:07]ProducePacketName [09:59:07]name=ofd_packets/00162771 [09:59:07]NVStorageSaveData ofd_packets/00162771 [09:59:07]File name is /storage/ofd_packets/00162771 [09:59:07]Write 302 bytes [09:59:07]NVStorageSaveData done [09:59:07]OFDSenderStorePacket done [09:59:07]KKMCreateOFDPacket done [09:59:07]NVStorageSaveData kkm_last_timestamp [09:59:07]File name is /storage/kkm_last_timestamp [09:59:07]Write 4 bytes [09:59:07]NVStorageSaveData done [09:59:07]ExternCall_PrintAddStr [09:59:07]wPrintStart [09:59:07]Write to MH i2c: 01 00 00 69 0B 74 [09:59:07]Write i2c OK [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: 01 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: 01 07 00 [09:59:07]MH_I2C_Read... [09:59:07]Read from MH i2c: 01 07 00 69 0B 00 00 00 00 00 FF 0F 89 [09:59:07]RasterBufferAndPrint [09:59:07]line Счет N : (1)1319361 [09:59:07]line ИНН: 02508201610067 [09:59:07]line Контрольно-Кассовый Чек [09:59:07]line ПРОДАЖА [09:59:07]line ТРК (МРК, ГНК) : 21 [09:59:07]line Товар: 2710194210 [09:59:07]line ДТ(л)-К-5 [09:59:07]line 41.330 * 72.60 [09:59:07]line = 3000.56 [09:59:07]line НДС 12% НСП 1% [09:59:07]line > о реализуемом товаре [09:59:07]line ИТОГО: 3000.56 [09:59:07]line НСП 1% : 26.55 [09:59:07]line НДС 12% : 318.64 [09:59:07]line Наличными: 0.00 [09:59:07]line Безнал.: 3000.56 [09:59:07]line Место: АЗС № 140 "Партнер Нефть" [09:59:07]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:59:07]line СНО: Общий режим [09:59:07]line Чек 83 14.07.2024 09:59 [09:59:07]line Смена: 463 ФФД: 1.0 [09:59:07]line ЗНМ: 0300000129 [09:59:07]line РНМ: 0000000000090858 [09:59:07]line Версия ККМ: 001 [09:59:07]line Платежная система: АКБ Кыргызстан [09:59:07]line ФМ: 0000000000874899 [09:59:07]line ФД: 162771 [09:59:07]line ФПД: 148861260454910 [09:59:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T095906&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162771&fm=148861260454910&tin=02508201610067®Number=0000000000090858&sum=300056 [09:59:08]OFD Sender: Processing packet 162771 [packets to send 106, broken 105] [09:59:08]ProducePacketName [09:59:08]name=ofd_packets/00162771 [09:59:08]OFD Sender: To server: pG, [09:59:08]CommunicateWithHost lk.salyk.kg:30040 [09:59:08]ConnectInit lk.salyk.kg [09:59:08]written 0, free lines is 4095 [09:59:08]Connected sock=9 [09: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 34 38 39 39 10 01 00 00 13 DB 08 01 47 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 6A A1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D3 7B 02 00 35 04 06 00 87 63 76 8C DB FE 94 F3 45 DE A2 3B DE 8E [09:59:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 64 1A 47 00 84 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D3 7B 02 00 F4 03 04 00 78 4D 93 66 B6 04 01 00 00 58 37 F7 BD 5B F6 C2 72 [09:59:08]CommunicateWithHost err = 0 [09:59:08]CheckOFDResponse [09:59:08]1017 (14) - 77093643461234 [09:59:08]1041 (16) - 0000000000874899 [09:59:08]1040 (4) - 162771 [09:59:08]1012 (4) - 14.07.2024 04:00 [09:59:08]1206 (1) - 0 [09:59:08]OFD Sender: Remove packet 162771 [09:59:08]ProducePacketName [09:59:08]name=ofd_packets/00162771 [09:59:08]NVStorageDeleteData [09:59:08]Write to MH i2c: 01 00 00 93 0B 9E [09:59:08]Write i2c OK [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 07 00 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: 01 07 00 93 0B 00 00 00 00 00 EA 0C 9B [09:59:08]RasterBufferAndPrint [09:59:08]line [09:59:08]line [09:59:08]line [09:59:08]line [09:59:08]line [09:59:08]written 0, free lines is 3312 [09:59:08]MH_Cut [09:59:08]Write to MH i2c: D1 01 00 9A 0B 01 77 [09:59:08]Write i2c OK [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: D1 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: D1 01 00 [09:59:08]MH_I2C_Read... [09:59:08]Read from MH i2c: D1 01 00 9A 0B 00 76 [09:59:08]Write to MH i2c: 01 00 00 9B 0B A6 [09:59:08]Write i2c OK [09:59:08]MH_I2C_Read... [09:59:09]OFD Sender: No OFD packet to send [09:59:09]*** Cut start [09:59:09]*** Purtial cut [09:59:09]*** Stage 1: CUTSNS_PIN = 1 [09:59:09]Read from MH i2c: 01 [09:59:09]MH_I2C_Read... [09:59:09]*** Stop cut motor [09:59:09]*** Cut end [09:59:09]Read from MH i2c: 01 07 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: 01 07 00 9B 0B 00 00 00 00 00 FF 0F BB [09:59:09]process_action close_receipt done [09:59:09]requested_data is exist [09:59:09]produce_requested_data [09:59:09]requested_item fm.sn is exist - process it [09:59:09]wFMCommunicate request_size=4 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 11 00 00 [09:59:09]Write to MH i2c: E2 08 00 9C 0B 80 11 00 00 00 00 00 00 21 [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 17 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 17 00 9C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 81 [09:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:59:09]wFMCommunicate OK [09:59:09]requested_item fd.num is exist - process it [09:59:09]SAM_PROTO_GetFieldsCounters [09:59:09]wFMCommunicate request_size=4 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 13 00 00 [09:59:09]Write to MH i2c: E2 08 00 9D 0B 80 13 00 00 00 00 00 00 24 [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 62 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 62 00 9D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D3 7B 02 00 0E 04 04 00 CF 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 70 [09:59:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D3 7B 02 00 0E 04 04 00 CF 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:59:09]wFMCommunicate OK [09:59:09]SAM_PROTO_GetFieldsCounters done [09:59:09]requested_item shift.num is exist - process it [09:59:09]requested_item shift.opened is exist - process it [09:59:09]req_shift_opened [09:59:09]FM_GetShiftState [09:59:09]SAM_PROTO_GetShiftState [09:59:09]wFMCommunicate request_size=4 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 13 01 00 [09:59:09]Write to MH i2c: E2 08 00 9E 0B 80 13 01 00 00 00 00 00 26 [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:10]Read from MH i2c: E2 0E 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 0E 00 9E 0B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5C [09:59:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [09:59:10]wFMCommunicate OK [09:59:10]SAM_PROTO_GetShiftState done [09:59:10]FM_GetShiftState done [09:59:10]req_shift_opened done [09:59:10]requested_item shift.open_date is exist - process it [09:59:10]req_shift_open_date [09:59:10]req_shift_open_date done [09:59:10]produce_requested_data done [09:59:10]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162771,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [09:59:10]process_action_free close_receipt [09:59:10]json_value_free [09:59:10]json_value_free done [09:59:10]process_json_proto returns [09:59:10]Send response to host [09:59:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162771,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [09:59:10]free response buf [09:59:10]execute_script done [09:59:10]execute_script returns [09:59:10]free content buf [09:59:10]Sock 10.Close socket [09:59:10]Sock 10.Thread stoped [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:11]accept exits with 7 [10:01:11]New connection [10:01:11]New thread 3066879332 created [10:01:11]Thread 3066735972 joined [10:01:11]Waiting for new connection... [10:01:11] Sock 7.Parse request [10:01:11]Sock 7.Check first char [10:01:11]Sock 7.First char is OK [10:01:11]request: POST /json_proto HTTP/1.0 [10:01:11]Method: POST [10:01:11]URL: /json_proto [10:01:11]Method is POST - this is cgi request [10:01:11]url: /json_proto [10:01:11]query_string will be loaded in cgi processing [10:01:11]execute_cgi json_proto POST (null) [10:01:11]execute_cgi path=json_proto method=POST [10:01:11]POST find Content-Length [10:01:11]Host: 172.17.39.67:8080 [10:01:11]Content-Length: 688 [10:01:11]Content-Type: application/json [10:01:11] [10:01:11]POST finish read [10:01:11]Found Content-Length = 688 [10:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:11]execute_script... [10:01: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)1319362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:11]POST & json_proto [10:01:11]process_json_proto [10:01:11]json parsed OK: [10:01:11]protocol is kg_v1.0 [10:01:11]action value=close_receipt [10:01:11]process_action close_receipt [10:01:11]cmd_close_receipt [10:01:11]MH_GetDate [10:01:11]Write to MH i2c: F0 00 00 9F 0B 99 [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: F0 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: F0 09 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: F0 09 00 9F 0B 00 E8 A1 93 66 B6 85 93 66 58 [10:01:11]GetLastDocTimeStamp 1720951146 [10:01:11]current date 1720951272 [10:01:11]FM_GetShiftState [10:01:11]SAM_PROTO_GetShiftState [10:01:11]wFMCommunicate request_size=4 [10:01:11]MH_SAM_APDU [10:01:11]CAPDU: 80 13 01 00 [10:01:11]Write to MH i2c: E2 08 00 A0 0B 80 13 01 00 00 00 00 00 28 [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:11]Read from MH i2c: E2 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 0E 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 0E 00 A0 0B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5E [10:01:11]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:01:11]wFMCommunicate OK [10:01:11]SAM_PROTO_GetShiftState done [10:01:11]FM_GetShiftState done [10:01:11]opened in 1720915483 [10:01:11]opened+sec_in_day 1721001883 [10:01:11]quantity*price = 100042 [10:01:11]sum+1 = 100044 [10:01:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 84 14.07.2024 10:01 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162772 ФПД: 140755219263268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T100112&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162772&fm=140755219263268&tin=02508201610067®Number=0000000000090858&sum=100000 [10:01:12]StoreToDocumentArchive [10:01:12]shift 463 fd 162772 [10:01:12]save to /storage/0463/doc_00162772 [10:01:12]save last doc name /storage/0463/doc_00162772 to /storage/kkm_last_doc_name [10:01:12]save OK [10:01:12]Clear old archive folders... [10:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:01:12]tlvbuf is 012EA490 [10:01:12]SAM_PROTO_ClearQueue [10:01:12]wFMCommunicate request_size=4 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 09 00 00 [10:01:12]Write to MH i2c: E2 08 00 AD 0B 80 09 00 00 00 00 00 00 2A [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 AD 0B 00 90 00 2C [10:01:13]RAPDU: 90 00 [10:01:13]wFMCommunicate OK [10:01:13]SAM_PROTO_ClearQueue done [10:01:13]KKMCreateOFDPacket [10:01:13]OFDProtocolAddRootSTLVToBuf [10:01:13]FM_MakeSignedData [10:01:13]FM_MakeSignedData [10:01:13]SAM_PROTO_SignData [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 0D 01 02 [10:01:13]Write to MH i2c: E2 08 00 AE 0B 80 0D 01 02 00 00 00 00 32 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 AE 0B 00 90 00 2D [10:01:13]RAPDU: 90 00 [10:01:13]wFMCommunicate OK [10:01:13]wFMCommunicate request_size=255 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E8 A1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D4 7B 02 00 35 04 06 00 [10:01:13]Write to MH i2c: E2 02 01 AF 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E8 A1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D4 7B 02 00 35 04 06 00 00 00 C2 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 AF 0B 00 90 00 2E [10:01:13]RAPDU: 90 00 [10:01:13]wFMCommunicate OK [10:01:13]wFMCommunicate request_size=11 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 0D 02 02 06 80 04 20 D8 2F 24 [10:01:13]Write to MH i2c: E2 0E 00 B0 0B 80 0D 02 02 06 00 80 04 20 D8 2F 24 00 00 10 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 B0 0B 00 90 00 2F [10:01:13]RAPDU: 90 00 [10:01:13]wFMCommunicate OK [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 0D 03 02 [10:01:13]Write to MH i2c: E2 08 00 B1 0B 80 0D 03 02 00 00 00 00 37 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 0B 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 0B 00 B1 0B 00 07 E0 58 70 C6 D0 F6 B9 90 00 2C [10:01:13]RAPDU: 07 E0 58 70 C6 D0 F6 B9 90 00 [10:01:13]wFMCommunicate OK [10:01:13]SAM_PROTO_SignData done [10:01:13]FM_MakeSignedData done [10:01:13]CreateOFDProtocolMessage [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 11 00 00 [10:01:13]Write to MH i2c: E2 08 00 B2 0B 80 11 00 00 00 00 00 00 37 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 17 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 17 00 B2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 97 [10:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:01:13]wFMCommunicate OK [10:01:13]CreateOFDProtocolMessage done [10:01:13]OFDSenderStorePacket 162772 [10:01:13]StoreOFDPacket docnum=162772 [10:01:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 30 31 08 01 9A 6A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E8 A1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D4 7B 02 00 35 04 06 00 80 04 20 D8 2F 24 07 E0 58 70 C6 D0 F6 B9 [10:01:13]CheckFolder [10:01:13]dirname=/storage/ofd_packets [10:01:13]CheckFolder done [10:01:13]ProducePacketName [10:01:13]name=ofd_packets/00162772 [10:01:13]NVStorageSaveData ofd_packets/00162772 [10:01:13]File name is /storage/ofd_packets/00162772 [10:01:13]Write 302 bytes [10:01:13]NVStorageSaveData done [10:01:13]OFDSenderStorePacket done [10:01:13]KKMCreateOFDPacket done [10:01:13]NVStorageSaveData kkm_last_timestamp [10:01:13]File name is /storage/kkm_last_timestamp [10:01:13]Write 4 bytes [10:01:13]NVStorageSaveData done [10:01:13]ExternCall_PrintAddStr [10:01:13]wPrintStart [10:01:13]Write to MH i2c: 01 00 00 B3 0B BE [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: 01 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: 01 07 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: 01 07 00 B3 0B 00 00 00 00 00 FF 0F D3 [10:01:13]RasterBufferAndPrint [10:01:13]line Счет N : (1)1319362 [10:01:13]line ИНН: 02508201610067 [10:01:13]line Контрольно-Кассовый Чек [10:01:13]line ПРОДАЖА [10:01:13]line ТРК (МРК, ГНК) : 21 [10:01:13]line Товар: 2710194210 [10:01:13]line ДТ(л)-К-5 [10:01:13]line 13.780 * 72.60 [10:01:13]line = 1000.43 [10:01:13]line НДС 12% НСП 1% [10:01:13]line > о реализуемом товаре [10:01:13]line ОКРУГЛЕНИЕ: -0.43 [10:01:13]line ИТОГО: 1000.00 [10:01:13]line Внесено: 1000.00 [10:01:13]line СДАЧА: 0.00 [10:01:13]line НСП 1% : 8.85 [10:01:13]line НДС 12% : 106.24 [10:01:13]line Наличными: 1000.00 [10:01:13]line Безнал.: 0.00 [10:01:13]line Место: АЗС № 140 "Партнер Нефть" [10:01:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:01:13]line СНО: Общий режим [10:01:13]line Чек 84 14.07.2024 10:01 [10:01:13]line Смена: 463 ФФД: 1.0 [10:01:13]line ЗНМ: 0300000129 [10:01:13]line РНМ: 0000000000090858 [10:01:13]line Версия ККМ: 001 [10:01:13]line ФМ: 0000000000874899 [10:01:13]line ФД: 162772 [10:01:13]line ФПД: 140755219263268 [10:01:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T100112&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162772&fm=140755219263268&tin=02508201610067®Number=0000000000090858&sum=100000 [10:01:13]OFD Sender: Processing packet 162772 [packets to send 106, broken 105] [10:01:13]ProducePacketName [10:01:13]name=ofd_packets/00162772 [10:01:13]OFD Sender: To server: pG, [10:01:13]CommunicateWithHost lk.salyk.kg:30040 [10:01:13]ConnectInit lk.salyk.kg [10:01:13]written 0, free lines is 4095 [10:01:13]Connected sock=10 [10:01:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 30 31 08 01 9A 6A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E8 A1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D4 7B 02 00 35 04 06 00 80 04 20 D8 2F 24 07 E0 58 70 C6 D0 F6 B9 [10:01:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E0 3B 47 00 5C 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 34 38 39 39 10 04 04 00 D4 7B 02 00 F4 03 04 00 F6 4D 93 66 B6 04 01 00 00 69 24 F4 A2 01 1D 3D A4 [10:01:14]CommunicateWithHost err = 0 [10:01:14]CheckOFDResponse [10:01:14]1017 (14) - 77093643461234 [10:01:14]1041 (16) - 0000000000874899 [10:01:14]1040 (4) - 162772 [10:01:14]1012 (4) - 14.07.2024 04:03 [10:01:14]1206 (1) - 0 [10:01:14]OFD Sender: Remove packet 162772 [10:01:14]ProducePacketName [10:01:14]name=ofd_packets/00162772 [10:01:14]NVStorageDeleteData [10:01:14]Write to MH i2c: 01 00 00 DE 0B E9 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: 01 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: 01 07 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: 01 07 00 DE 0B 00 00 00 00 00 D1 0C CD [10:01:14]RasterBufferAndPrint [10:01:14]line [10:01:14]line [10:01:14]line [10:01:14]line [10:01:14]line [10:01:14]written 0, free lines is 3287 [10:01:14]MH_Cut [10:01:14]Write to MH i2c: D1 01 00 E5 0B 01 C2 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: D1 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: D1 01 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: D1 01 00 E5 0B 00 C1 [10:01:14]Write to MH i2c: 01 00 00 E6 0B F1 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]OFD Sender: No OFD packet to send [10:01:15]*** Cut start [10:01:15]*** Purtial cut [10:01:15]*** CUTSNS_PIN = 0 [10:01:15]*** Stage 1: CUTSNS_PIN = 1 [10:01:17]Read from MH i2c: 01 [10:01:17]MH_I2C_Read... [10:01:17]*** Stop cut motor [10:01:17]*** Cut end [10:01:17]Read from MH i2c: 01 07 00 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: 01 07 00 E6 0B 00 00 00 00 00 FF 0F 06 [10:01:17]process_action close_receipt done [10:01:17]requested_data is exist [10:01:17]produce_requested_data [10:01:17]requested_item fm.sn is exist - process it [10:01:17]wFMCommunicate request_size=4 [10:01:17]MH_SAM_APDU [10:01:17]CAPDU: 80 11 00 00 [10:01:17]Write to MH i2c: E2 08 00 E7 0B 80 11 00 00 00 00 00 00 6C [10:01:17]Write i2c OK [10:01:17]MH_I2C_Read... [10:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:17]Read from MH i2c: E2 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: E2 17 00 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: E2 17 00 E7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CC [10:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:01:17]wFMCommunicate OK [10:01:17]requested_item fd.num is exist - process it [10:01:17]SAM_PROTO_GetFieldsCounters [10:01:17]wFMCommunicate request_size=4 [10:01:17]MH_SAM_APDU [10:01:17]CAPDU: 80 13 00 00 [10:01:17]Write to MH i2c: E2 08 00 E8 0B 80 13 00 00 00 00 00 00 6F [10:01:17]Write i2c OK [10:01:17]MH_I2C_Read... [10:01:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:17]Read from MH i2c: E2 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: E2 62 00 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: E2 62 00 E8 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D4 7B 02 00 0E 04 04 00 CF 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 BF [10:01:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D4 7B 02 00 0E 04 04 00 CF 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 [10:01:17]wFMCommunicate OK [10:01:17]SAM_PROTO_GetFieldsCounters done [10:01:17]requested_item shift.num is exist - process it [10:01:17]requested_item shift.opened is exist - process it [10:01:17]req_shift_opened [10:01:17]FM_GetShiftState [10:01:17]SAM_PROTO_GetShiftState [10:01:17]wFMCommunicate request_size=4 [10:01:17]MH_SAM_APDU [10:01:17]CAPDU: 80 13 01 00 [10:01:17]Write to MH i2c: E2 08 00 E9 0B 80 13 01 00 00 00 00 00 71 [10:01:17]Write i2c OK [10:01:17]MH_I2C_Read... [10:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:17]Read from MH i2c: E2 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: E2 0E 00 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: E2 0E 00 E9 0B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A7 [10:01:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:01:17]wFMCommunicate OK [10:01:17]SAM_PROTO_GetShiftState done [10:01:17]FM_GetShiftState done [10:01:17]req_shift_opened done [10:01:17]requested_item shift.open_date is exist - process it [10:01:17]req_shift_open_date [10:01:17]req_shift_open_date done [10:01:17]produce_requested_data done [10:01:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162772,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:01:17]process_action_free close_receipt [10:01:17]json_value_free [10:01:17]json_value_free done [10:01:17]process_json_proto returns [10:01:17]Send response to host [10:01:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162772,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:01:17]free response buf [10:01:17]execute_script done [10:01:17]execute_script returns [10:01:17]free content buf [10:01:17]Sock 7.Close socket [10:01:17]Sock 7.Thread stoped [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [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: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: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:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:25]accept exits with 9 [10:09:25]New connection [10:09:25]New thread 3066735972 created [10:09:25]Thread 3066879332 joined [10:09:25]Waiting for new connection... [10:09:25] Sock 9.Parse request [10:09:25]Sock 9.Check first char [10:09:25]Sock 9.First char is OK [10:09:25]request: POST /json_proto HTTP/1.0 [10:09:25]Method: POST [10:09:25]URL: /json_proto [10:09:25]Method is POST - this is cgi request [10:09:25]url: /json_proto [10:09:25]query_string will be loaded in cgi processing [10:09:25]execute_cgi json_proto POST (null) [10:09:25]execute_cgi path=json_proto method=POST [10:09:25]POST find Content-Length [10:09:25]Host: 172.17.39.67:8080 [10:09:25]Content-Length: 679 [10:09:25]Content-Type: application/json [10:09:25] [10:09:25]POST finish read [10:09:25]Found Content-Length = 679 [10:09:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.260, "sum" : 680.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:25]execute_script... [10:09:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.260, "sum" : 680.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:25]POST & json_proto [10:09:25]process_json_proto [10:09:25]json parsed OK: [10:09:25]protocol is kg_v1.0 [10:09:25]action value=close_receipt [10:09:25]process_action close_receipt [10:09:25]cmd_close_receipt [10:09:25]MH_GetDate [10:09:25]Write to MH i2c: F0 00 00 EA 0B E4 [10:09:25]Write i2c OK [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: F0 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: F0 09 00 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: F0 09 00 EA 0B 00 D5 A3 93 66 B6 85 93 66 92 [10:09:25]GetLastDocTimeStamp 1720951272 [10:09:25]current date 1720951765 [10:09:25]FM_GetShiftState [10:09:25]SAM_PROTO_GetShiftState [10:09:25]wFMCommunicate request_size=4 [10:09:25]MH_SAM_APDU [10:09:25]CAPDU: 80 13 01 00 [10:09:25]Write to MH i2c: E2 08 00 EB 0B 80 13 01 00 00 00 00 00 73 [10:09:25]Write i2c OK [10:09:25]MH_I2C_Read... [10:09:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:25]Read from MH i2c: E2 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 0E 00 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 0E 00 EB 0B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A9 [10:09:25]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:09:25]wFMCommunicate OK [10:09:25]SAM_PROTO_GetShiftState done [10:09:25]FM_GetShiftState done [10:09:25]opened in 1720915483 [10:09:25]opened+sec_in_day 1721001883 [10:09:25]quantity*price = 68023 [10:09:25]sum+1 = 68025 [10:09:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.24 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 85 14.07.2024 10:09 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162773 ФПД: 134494976273171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T100925&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162773&fm=134494976273171&tin=02508201610067®Number=0000000000090858&sum=68000 [10:09:26]StoreToDocumentArchive [10:09:26]shift 463 fd 162773 [10:09:26]save to /storage/0463/doc_00162773 [10:09:26]save last doc name /storage/0463/doc_00162773 to /storage/kkm_last_doc_name [10:09:26]save OK [10:09:26]Clear old archive folders... [10:09:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:26]tlvbuf is 013003A0 [10:09:26]SAM_PROTO_ClearQueue [10:09:26]wFMCommunicate request_size=4 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 09 00 00 [10:09:26]Write to MH i2c: E2 08 00 F8 0B 80 09 00 00 00 00 00 00 75 [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 F8 0B 00 90 00 77 [10:09:26]RAPDU: 90 00 [10:09:26]wFMCommunicate OK [10:09:26]SAM_PROTO_ClearQueue done [10:09:26]KKMCreateOFDPacket [10:09:26]OFDProtocolAddRootSTLVToBuf [10:09:26]FM_MakeSignedData [10:09:26]FM_MakeSignedData [10:09:26]SAM_PROTO_SignData [10:09:26]wFMCommunicate request_size=4 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 0D 01 02 [10:09:26]Write to MH i2c: E2 08 00 F9 0B 80 0D 01 02 00 00 00 00 7D [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 F9 0B 00 90 00 78 [10:09:26]RAPDU: 90 00 [10:09:26]wFMCommunicate OK [10:09:26]wFMCommunicate request_size=255 [10:09:26]MH_SAM_APDU [10:09: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 14 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 B8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1C 00 00 00 00 07 04 06 00 A0 09 01 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 D5 A3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D5 7B 02 00 35 04 06 00 7A [10:09:26]Write to MH i2c: E2 02 01 FA 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 B8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1C 00 00 00 00 07 04 06 00 A0 09 01 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 D5 A3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D5 7B 02 00 35 04 06 00 7A 00 00 FC [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 FA 0B 00 90 00 79 [10:09:26]RAPDU: 90 00 [10:09:26]wFMCommunicate OK [10:09:26]wFMCommunicate request_size=10 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 0D 02 02 05 52 8D 48 EB 13 [10:09:26]Write to MH i2c: E2 0D 00 FB 0B 80 0D 02 02 05 00 52 8D 48 EB 13 00 00 AF [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 FB 0B 00 90 00 7A [10:09:26]RAPDU: 90 00 [10:09:26]wFMCommunicate OK [10:09:26]wFMCommunicate request_size=4 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 0D 03 02 [10:09:26]Write to MH i2c: E2 08 00 FC 0B 80 0D 03 02 00 00 00 00 82 [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 0B 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 0B 00 FC 0B 00 EA 3B 0D AC B9 3B 99 AD 90 00 9B [10:09:26]RAPDU: EA 3B 0D AC B9 3B 99 AD 90 00 [10:09:26]wFMCommunicate OK [10:09:26]SAM_PROTO_SignData done [10:09:26]FM_MakeSignedData done [10:09:26]CreateOFDProtocolMessage [10:09:26]wFMCommunicate request_size=4 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 11 00 00 [10:09:26]Write to MH i2c: E2 08 00 FD 0B 80 11 00 00 00 00 00 00 82 [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 17 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 17 00 FD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E2 [10:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:09:26]wFMCommunicate OK [10:09:26]CreateOFDProtocolMessage done [10:09:26]OFDSenderStorePacket 162773 [10:09:26]StoreOFDPacket docnum=162773 [10:09:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4C 8C 07 01 85 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 B8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1C 00 00 00 00 07 04 06 00 A0 09 01 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 D5 A3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D5 7B 02 00 35 04 06 00 7A 52 8D 48 EB 13 EA 3B 0D AC B9 3B 99 AD [10:09:26]CheckFolder [10:09:26]dirname=/storage/ofd_packets [10:09:26]CheckFolder done [10:09:26]ProducePacketName [10:09:26]name=ofd_packets/00162773 [10:09:26]NVStorageSaveData ofd_packets/00162773 [10:09:26]File name is /storage/ofd_packets/00162773 [10:09:26]Write 301 bytes [10:09:26]NVStorageSaveData done [10:09:26]OFDSenderStorePacket done [10:09:26]KKMCreateOFDPacket done [10:09:26]NVStorageSaveData kkm_last_timestamp [10:09:26]File name is /storage/kkm_last_timestamp [10:09:26]Write 4 bytes [10:09:26]NVStorageSaveData done [10:09:26]ExternCall_PrintAddStr [10:09:26]wPrintStart [10:09:26]Write to MH i2c: 01 00 00 FE 0B 09 [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: 01 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: 01 07 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: 01 07 00 FE 0B 00 00 00 00 00 FF 0F 1E [10:09:26]RasterBufferAndPrint [10:09:26]line Счет N : (1)1319363 [10:09:26]line ИНН: 02508201610067 [10:09:26]line Контрольно-Кассовый Чек [10:09:26]line ПРОДАЖА [10:09:26]line ТРК (МРК, ГНК) : 53 [10:09:26]line Товар: 2710124130 [10:09:26]line Аи-92-К-5 [10:09:26]line 10.260 * 66.30 [10:09:26]line = 680.24 [10:09:26]line НДС 12% НСП 1% [10:09:26]line > о реализуемом товаре [10:09:26]line ОКРУГЛЕНИЕ: -0.24 [10:09:26]line ИТОГО: 680.00 [10:09:26]line Внесено: 680.00 [10:09:26]line СДАЧА: 0.00 [10:09:26]line НСП 1% : 6.02 [10:09:26]line НДС 12% : 72.24 [10:09:26]line Наличными: 680.00 [10:09:26]line Безнал.: 0.00 [10:09:26]line Место: АЗС № 140 "Партнер Нефть" [10:09:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:09:26]line СНО: Общий режим [10:09:26]line Чек 85 14.07.2024 10:09 [10:09:26]line Смена: 463 ФФД: 1.0 [10:09:26]line ЗНМ: 0300000129 [10:09:26]line РНМ: 0000000000090858 [10:09:26]line Версия ККМ: 001 [10:09:26]line ФМ: 0000000000874899 [10:09:26]line ФД: 162773 [10:09:26]line ФПД: 134494976273171 [10:09:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T100925&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162773&fm=134494976273171&tin=02508201610067®Number=0000000000090858&sum=68000 [10:09:27]OFD Sender: Processing packet 162773 [packets to send 106, broken 105] [10:09:27]ProducePacketName [10:09:27]name=ofd_packets/00162773 [10:09:27]OFD Sender: To server: pG, [10:09:27]CommunicateWithHost lk.salyk.kg:30040 [10:09:27]ConnectInit lk.salyk.kg [10:09:27]written 0, free lines is 4095 [10:09:27]Connected sock=10 [10: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 34 38 39 39 0F 01 00 00 4C 8C 07 01 85 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 B8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1C 00 00 00 00 07 04 06 00 A0 09 01 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 D5 A3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D5 7B 02 00 35 04 06 00 7A 52 8D 48 EB 13 EA 3B 0D AC B9 3B 99 AD [10:09:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 31 38 47 00 64 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D5 7B 02 00 F4 03 04 00 E3 4F 93 66 B6 04 01 00 00 FA ED 04 65 BE 3F 59 1F [10:09:27]CommunicateWithHost err = 0 [10:09:27]CheckOFDResponse [10:09:27]1017 (14) - 77093643461234 [10:09:27]1041 (16) - 0000000000874899 [10:09:27]1040 (4) - 162773 [10:09:27]1012 (4) - 14.07.2024 04:11 [10:09:27]1206 (1) - 0 [10:09:27]OFD Sender: Remove packet 162773 [10:09:27]ProducePacketName [10:09:27]name=ofd_packets/00162773 [10:09:27]NVStorageDeleteData [10:09:27]Write to MH i2c: 01 00 00 29 0C 35 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: 01 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: 01 07 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: 01 07 00 29 0C 00 00 00 00 00 D1 0C 19 [10:09:27]RasterBufferAndPrint [10:09:27]line [10:09:27]line [10:09:27]line [10:09:27]line [10:09:27]line [10:09:27]written 0, free lines is 3287 [10:09:27]MH_Cut [10:09:27]Write to MH i2c: D1 01 00 30 0C 01 0E [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: D1 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: D1 01 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: D1 01 00 30 0C 00 0D [10:09:27]Write to MH i2c: 01 00 00 31 0C 3D [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:28]OFD Sender: No OFD packet to send [10:09:28]*** Cut start [10:09:28]*** Purtial cut [10:09:28]*** Stage 1: CUTSNS_PIN = 1 [10:09:28]Read from MH i2c: 01 [10:09:28]MH_I2C_Read... [10:09:28]*** Stop cut motor [10:09:28]*** Cut end [10:09:28]Read from MH i2c: 01 07 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: 01 07 00 31 0C 00 00 00 00 00 FF 0F 52 [10:09:28]process_action close_receipt done [10:09:28]requested_data is exist [10:09:28]produce_requested_data [10:09:28]requested_item fm.sn is exist - process it [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 11 00 00 [10:09:28]Write to MH i2c: E2 08 00 32 0C 80 11 00 00 00 00 00 00 B8 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 17 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 17 00 32 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 18 [10:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:09:28]wFMCommunicate OK [10:09:28]requested_item fd.num is exist - process it [10:09:28]SAM_PROTO_GetFieldsCounters [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 13 00 00 [10:09:28]Write to MH i2c: E2 08 00 33 0C 80 13 00 00 00 00 00 00 BB [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 62 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 62 00 33 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D5 7B 02 00 0E 04 04 00 CF 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 0F [10:09:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D5 7B 02 00 0E 04 04 00 CF 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 [10:09:28]wFMCommunicate OK [10:09:28]SAM_PROTO_GetFieldsCounters done [10:09:28]requested_item shift.num is exist - process it [10:09:28]requested_item shift.opened is exist - process it [10:09:28]req_shift_opened [10:09:28]FM_GetShiftState [10:09:28]SAM_PROTO_GetShiftState [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 13 01 00 [10:09:28]Write to MH i2c: E2 08 00 34 0C 80 13 01 00 00 00 00 00 BD [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 0E 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 0E 00 34 0C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F3 [10:09:29]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:09:29]wFMCommunicate OK [10:09:29]SAM_PROTO_GetShiftState done [10:09:29]FM_GetShiftState done [10:09:29]req_shift_opened done [10:09:29]requested_item shift.open_date is exist - process it [10:09:29]req_shift_open_date [10:09:29]req_shift_open_date done [10:09:29]produce_requested_data done [10:09:29]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162773,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:09:29]process_action_free close_receipt [10:09:29]json_value_free [10:09:29]json_value_free done [10:09:29]process_json_proto returns [10:09:29]Send response to host [10:09:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162773,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:09:29]free response buf [10:09:29]execute_script done [10:09:29]execute_script returns [10:09:29]free content buf [10:09:29]Sock 9.Close socket [10:09:29]Sock 9.Thread stoped [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:12:58]accept exits with 7 [10:12:58]New connection [10:12:58]New thread 3066879332 created [10:12:58]Thread 3066735972 joined [10:12:58]Waiting for new connection... [10:12:58] Sock 7.Parse request [10:12:58]Sock 7.Check first char [10:12:58]Sock 7.First char is OK [10:12:58]request: POST /json_proto HTTP/1.0 [10:12:58]Method: POST [10:12:58]URL: /json_proto [10:12:58]Method is POST - this is cgi request [10:12:58]url: /json_proto [10:12:58]query_string will be loaded in cgi processing [10:12:58]execute_cgi json_proto POST (null) [10:12:58]execute_cgi path=json_proto method=POST [10:12:58]POST find Content-Length [10:12:58]Host: 172.17.39.67:8080 [10:12:58]Content-Length: 683 [10:12:58]Content-Type: application/json [10:12:58] [10:12:58]POST finish read [10:12:58]Found Content-Length = 683 [10:12:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:12:58]execute_script... [10:12:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:12:58]POST & json_proto [10:12:58]process_json_proto [10:12:58]json parsed OK: [10:12:58]protocol is kg_v1.0 [10:12:58]action value=close_receipt [10:12:58]process_action close_receipt [10:12:58]cmd_close_receipt [10:12:58]MH_GetDate [10:12:58]Write to MH i2c: F0 00 00 35 0C 30 [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: F0 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: F0 09 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: F0 09 00 35 0C 00 AB A4 93 66 B6 85 93 66 B5 [10:12:58]GetLastDocTimeStamp 1720951765 [10:12:58]current date 1720951979 [10:12:58]FM_GetShiftState [10:12:58]SAM_PROTO_GetShiftState [10:12:58]wFMCommunicate request_size=4 [10:12:58]MH_SAM_APDU [10:12:58]CAPDU: 80 13 01 00 [10:12:58]Write to MH i2c: E2 08 00 36 0C 80 13 01 00 00 00 00 00 BF [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:58]Read from MH i2c: E2 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 0E 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 0E 00 36 0C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F5 [10:12:58]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:12:58]wFMCommunicate OK [10:12:58]SAM_PROTO_GetShiftState done [10:12:58]FM_GetShiftState done [10:12:58]opened in 1720915483 [10:12:58]opened+sec_in_day 1721001883 [10:12:58]quantity*price = 100046 [10:12:58]sum+1 = 100048 [10:12:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 86 14.07.2024 10:12 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162774 ФПД: 209246671099398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101259&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162774&fm=209246671099398&tin=02508201610067®Number=0000000000090858&sum=100000 [10:12:59]StoreToDocumentArchive [10:12:59]shift 463 fd 162774 [10:12:59]save to /storage/0463/doc_00162774 [10:12:59]save last doc name /storage/0463/doc_00162774 to /storage/kkm_last_doc_name [10:12:59]save OK [10:12:59]Clear old archive folders... [10:12:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:59]tlvbuf is 0122A500 [10:12:59]SAM_PROTO_ClearQueue [10:12:59]wFMCommunicate request_size=4 [10:12:59]MH_SAM_APDU [10:12:59]CAPDU: 80 09 00 00 [10:12:59]Write to MH i2c: E2 08 00 43 0C 80 09 00 00 00 00 00 00 C1 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:59]Read from MH i2c: E2 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 03 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 03 00 43 0C 00 90 00 C3 [10:12:59]RAPDU: 90 00 [10:12:59]wFMCommunicate OK [10:12:59]SAM_PROTO_ClearQueue done [10:12:59]KKMCreateOFDPacket [10:12:59]OFDProtocolAddRootSTLVToBuf [10:12:59]FM_MakeSignedData [10:12:59]FM_MakeSignedData [10:12:59]SAM_PROTO_SignData [10:12:59]wFMCommunicate request_size=4 [10:12:59]MH_SAM_APDU [10:12:59]CAPDU: 80 0D 01 02 [10:12:59]Write to MH i2c: E2 08 00 44 0C 80 0D 01 02 00 00 00 00 C9 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:59]Read from MH i2c: E2 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 03 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 03 00 44 0C 00 90 00 C4 [10:12:59]RAPDU: 90 00 [10:12:59]wFMCommunicate OK [10:12:59]wFMCommunicate request_size=255 [10:12:59]MH_SAM_APDU [10:12: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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 AB A4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D6 7B 02 00 35 04 06 00 BE [10:12:59]Write to MH i2c: E2 02 01 45 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 AB A4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D6 7B 02 00 35 04 06 00 BE 00 00 54 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 45 0C 00 90 00 C5 [10:13:00]RAPDU: 90 00 [10:13:00]wFMCommunicate OK [10:13:00]wFMCommunicate request_size=10 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 0D 02 02 05 4F 09 80 56 06 [10:13:00]Write to MH i2c: E2 0D 00 46 0C 80 0D 02 02 05 00 4F 09 80 56 06 00 00 0A [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 03 00 46 0C 00 90 00 C6 [10:13:00]RAPDU: 90 00 [10:13:00]wFMCommunicate OK [10:13:00]wFMCommunicate request_size=4 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 0D 03 02 [10:13:00]Write to MH i2c: E2 08 00 47 0C 80 0D 03 02 00 00 00 00 CE [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 0B 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 0B 00 47 0C 00 6E B3 47 D6 2F F6 29 C6 90 00 21 [10:13:00]RAPDU: 6E B3 47 D6 2F F6 29 C6 90 00 [10:13:00]wFMCommunicate OK [10:13:00]SAM_PROTO_SignData done [10:13:00]FM_MakeSignedData done [10:13:00]CreateOFDProtocolMessage [10:13:00]wFMCommunicate request_size=4 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 11 00 00 [10:13:00]Write to MH i2c: E2 08 00 48 0C 80 11 00 00 00 00 00 00 CE [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 17 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 17 00 48 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2E [10:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:13:00]wFMCommunicate OK [10:13:00]CreateOFDProtocolMessage done [10:13:00]OFDSenderStorePacket 162774 [10:13:00]StoreOFDPacket docnum=162774 [10:13:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2A 79 07 01 31 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 AB A4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D6 7B 02 00 35 04 06 00 BE 4F 09 80 56 06 6E B3 47 D6 2F F6 29 C6 [10:13:00]CheckFolder [10:13:00]dirname=/storage/ofd_packets [10:13:00]CheckFolder done [10:13:00]ProducePacketName [10:13:00]name=ofd_packets/00162774 [10:13:00]NVStorageSaveData ofd_packets/00162774 [10:13:00]File name is /storage/ofd_packets/00162774 [10:13:00]Write 301 bytes [10:13:00]NVStorageSaveData done [10:13:00]OFDSenderStorePacket done [10:13:00]KKMCreateOFDPacket done [10:13:00]NVStorageSaveData kkm_last_timestamp [10:13:00]File name is /storage/kkm_last_timestamp [10:13:00]Write 4 bytes [10:13:00]NVStorageSaveData done [10:13:00]OFD Sender: Processing packet 162774 [packets to send 106, broken 105] [10:13:00]ProducePacketName [10:13:00]name=ofd_packets/00162774 [10:13:00]OFD Sender: To server: pG, [10:13:00]CommunicateWithHost lk.salyk.kg:30040 [10:13:00]ConnectInit lk.salyk.kg [10:13:00]ExternCall_PrintAddStr [10:13:00]wPrintStart [10:13:00]Write to MH i2c: 01 00 00 49 0C 55 [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: 01 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: 01 07 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: 01 07 00 49 0C 00 00 00 00 00 FF 0F 6A [10:13:00]RasterBufferAndPrint [10:13:00]line Счет N : (1)1319364 [10:13:00]line ИНН: 02508201610067 [10:13:00]line Контрольно-Кассовый Чек [10:13:00]line ПРОДАЖА [10:13:00]line ТРК (МРК, ГНК) : 53 [10:13:00]line Товар: 2710124130 [10:13:00]line Аи-92-К-5 [10:13:00]line 15.090 * 66.30 [10:13:00]line = 1000.47 [10:13:00]line НДС 12% НСП 1% [10:13:00]line > о реализуемом товаре [10:13:00]line ОКРУГЛЕНИЕ: -0.47 [10:13:00]line ИТОГО: 1000.00 [10:13:00]line Внесено: 1000.00 [10:13:00]line СДАЧА: 0.00 [10:13:00]line НСП 1% : 8.85 [10:13:00]line НДС 12% : 106.24 [10:13:00]line Наличными: 1000.00 [10:13:00]line Безнал.: 0.00 [10:13:00]line Место: АЗС № 140 "Партнер Нефть" [10:13:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:13:00]line СНО: Общий режим [10:13:00]line Чек 86 14.07.2024 10:12 [10:13:00]line Смена: 463 ФФД: 1.0 [10:13:00]line ЗНМ: 0300000129 [10:13:00]line РНМ: 0000000000090858 [10:13:00]line Версия ККМ: 001 [10:13:00]line ФМ: 0000000000874899 [10:13:00]line ФД: 162774 [10:13:00]line ФПД: 209246671099398 [10:13:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101259&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162774&fm=209246671099398&tin=02508201610067®Number=0000000000090858&sum=100000 [10:13:00]Connected sock=11 [10:13:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2A 79 07 01 31 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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 AB A4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D6 7B 02 00 35 04 06 00 BE 4F 09 80 56 06 6E B3 47 D6 2F F6 29 C6 [10:13:00]written 0, free lines is 4095 [10:13:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CF 6A 47 00 42 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D6 7B 02 00 F4 03 04 00 B9 50 93 66 B6 04 01 00 00 05 50 85 19 6F 9C BD 73 [10:13:00]CommunicateWithHost err = 0 [10:13:00]CheckOFDResponse [10:13:00]1017 (14) - 77093643461234 [10:13:00]1041 (16) - 0000000000874899 [10:13:00]1040 (4) - 162774 [10:13:00]1012 (4) - 14.07.2024 04:14 [10:13:00]1206 (1) - 0 [10:13:00]OFD Sender: Remove packet 162774 [10:13:00]ProducePacketName [10:13:00]name=ofd_packets/00162774 [10:13:00]NVStorageDeleteData [10:13:01]Write to MH i2c: 01 00 00 74 0C 80 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 74 0C 00 00 00 00 00 D6 0C 69 [10:13:01]RasterBufferAndPrint [10:13:01]line [10:13:01]line [10:13:01]line [10:13:01]line [10:13:01]line [10:13:01]written 0, free lines is 3292 [10:13:01]MH_Cut [10:13:01]Write to MH i2c: D1 01 00 7B 0C 01 59 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: D1 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: D1 01 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: D1 01 00 7B 0C 00 58 [10:13:01]Write to MH i2c: 01 00 00 7C 0C 88 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]OFD Sender: No OFD packet to send [10:13:01]*** Cut start [10:13:01]*** Purtial cut [10:13:01]*** CUTSNS_PIN = 0 [10:13:02]*** Stage 1: CUTSNS_PIN = 1 [10:13:03]Read from MH i2c: 01 [10:13:03]MH_I2C_Read... [10:13:03]*** Stop cut motor [10:13:03]*** Cut end [10:13:03]Read from MH i2c: 01 07 00 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: 01 07 00 7C 0C 00 00 00 00 00 FF 0F 9D [10:13:03]process_action close_receipt done [10:13:03]requested_data is exist [10:13:03]produce_requested_data [10:13:03]requested_item fm.sn is exist - process it [10:13:03]wFMCommunicate request_size=4 [10:13:03]MH_SAM_APDU [10:13:03]CAPDU: 80 11 00 00 [10:13:03]Write to MH i2c: E2 08 00 7D 0C 80 11 00 00 00 00 00 00 03 [10:13:03]Write i2c OK [10:13:03]MH_I2C_Read... [10:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:03]Read from MH i2c: E2 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 17 00 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 17 00 7D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 63 [10:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:13:03]wFMCommunicate OK [10:13:03]requested_item fd.num is exist - process it [10:13:03]SAM_PROTO_GetFieldsCounters [10:13:03]wFMCommunicate request_size=4 [10:13:03]MH_SAM_APDU [10:13:03]CAPDU: 80 13 00 00 [10:13:03]Write to MH i2c: E2 08 00 7E 0C 80 13 00 00 00 00 00 00 06 [10:13:03]Write i2c OK [10:13:03]MH_I2C_Read... [10:13:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:04]Read from MH i2c: E2 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 62 00 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 62 00 7E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D6 7B 02 00 0E 04 04 00 CF 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 5E [10:13:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D6 7B 02 00 0E 04 04 00 CF 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 [10:13:04]wFMCommunicate OK [10:13:04]SAM_PROTO_GetFieldsCounters done [10:13:04]requested_item shift.num is exist - process it [10:13:04]requested_item shift.opened is exist - process it [10:13:04]req_shift_opened [10:13:04]FM_GetShiftState [10:13:04]SAM_PROTO_GetShiftState [10:13:04]wFMCommunicate request_size=4 [10:13:04]MH_SAM_APDU [10:13:04]CAPDU: 80 13 01 00 [10:13:04]Write to MH i2c: E2 08 00 7F 0C 80 13 01 00 00 00 00 00 08 [10:13:04]Write i2c OK [10:13:04]MH_I2C_Read... [10:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:04]Read from MH i2c: E2 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 0E 00 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 0E 00 7F 0C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3E [10:13:04]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:13:04]wFMCommunicate OK [10:13:04]SAM_PROTO_GetShiftState done [10:13:04]FM_GetShiftState done [10:13:04]req_shift_opened done [10:13:04]requested_item shift.open_date is exist - process it [10:13:04]req_shift_open_date [10:13:04]req_shift_open_date done [10:13:04]produce_requested_data done [10:13:04]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162774,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:13:04]process_action_free close_receipt [10:13:04]json_value_free [10:13:04]json_value_free done [10:13:04]process_json_proto returns [10:13:04]Send response to host [10:13:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162774,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:13:04]free response buf [10:13:04]execute_script done [10:13:04]execute_script returns [10:13:04]free content buf [10:13:04]Sock 7.Close socket [10:13:04]Sock 7.Thread stoped [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:50]accept exits with 9 [10:14:50]New connection [10:14:50]New thread 3066735972 created [10:14:50]Thread 3066879332 joined [10:14:50]Waiting for new connection... [10:14:50] Sock 9.Parse request [10:14:50]Sock 9.Check first char [10:14:50]Sock 9.First char is OK [10:14:50]request: POST /json_proto HTTP/1.0 [10:14:50]Method: POST [10:14:50]URL: /json_proto [10:14:50]Method is POST - this is cgi request [10:14:50]url: /json_proto [10:14:50]query_string will be loaded in cgi processing [10:14:50]execute_cgi json_proto POST (null) [10:14:50]execute_cgi path=json_proto method=POST [10:14:50]POST find Content-Length [10:14:50]Host: 172.17.39.67:8080 [10:14:50]Content-Length: 678 [10:14:50]Content-Type: application/json [10:14:50] [10:14:50]POST finish read [10:14:50]Found Content-Length = 678 [10:14:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:14:50]execute_script... [10:14: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)1319365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:14:50]POST & json_proto [10:14:50]process_json_proto [10:14:50]json parsed OK: [10:14:50]protocol is kg_v1.0 [10:14:50]action value=close_receipt [10:14:50]process_action close_receipt [10:14:50]cmd_close_receipt [10:14:50]MH_GetDate [10:14:50]Write to MH i2c: F0 00 00 80 0C 7B [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: F0 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: F0 09 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: F0 09 00 80 0C 00 1B A5 93 66 B6 85 93 66 71 [10:14:50]GetLastDocTimeStamp 1720951979 [10:14:50]current date 1720952091 [10:14:50]FM_GetShiftState [10:14:50]SAM_PROTO_GetShiftState [10:14:50]wFMCommunicate request_size=4 [10:14:50]MH_SAM_APDU [10:14:50]CAPDU: 80 13 01 00 [10:14:50]Write to MH i2c: E2 08 00 81 0C 80 13 01 00 00 00 00 00 0A [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:50]Read from MH i2c: E2 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 0E 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 0E 00 81 0C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 40 [10:14:50]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:14:50]wFMCommunicate OK [10:14:50]SAM_PROTO_GetShiftState done [10:14:50]FM_GetShiftState done [10:14:50]opened in 1720915483 [10:14:50]opened+sec_in_day 1721001883 [10:14:50]quantity*price = 50056 [10:14:50]sum+1 = 50058 [10:14:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 87 14.07.2024 10:14 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162775 ФПД: 116987374188425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101451&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162775&fm=116987374188425&tin=02508201610067®Number=0000000000090858&sum=50000 [10:14:52]StoreToDocumentArchive [10:14:52]shift 463 fd 162775 [10:14:52]save to /storage/0463/doc_00162775 [10:14:52]save last doc name /storage/0463/doc_00162775 to /storage/kkm_last_doc_name [10:14:52]save OK [10:14:52]Clear old archive folders... [10:14:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:52]tlvbuf is 012228F0 [10:14:52]SAM_PROTO_ClearQueue [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 09 00 00 [10:14:52]Write to MH i2c: E2 08 00 8E 0C 80 09 00 00 00 00 00 00 0C [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 03 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 03 00 8E 0C 00 90 00 0E [10:14:52]RAPDU: 90 00 [10:14:52]wFMCommunicate OK [10:14:52]SAM_PROTO_ClearQueue done [10:14:52]KKMCreateOFDPacket [10:14:52]OFDProtocolAddRootSTLVToBuf [10:14:52]FM_MakeSignedData [10:14:52]FM_MakeSignedData [10:14:52]SAM_PROTO_SignData [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 0D 01 02 [10:14:52]Write to MH i2c: E2 08 00 8F 0C 80 0D 01 02 00 00 00 00 14 [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 03 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 03 00 8F 0C 00 90 00 0F [10:14:52]RAPDU: 90 00 [10:14:52]wFMCommunicate OK [10:14:52]wFMCommunicate request_size=255 [10:14:52]MH_SAM_APDU [10:14: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 57 00 00 00 F4 03 04 00 1B A5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D7 7B 02 00 35 04 06 00 6A [10:14:52]Write to MH i2c: E2 02 01 90 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 57 00 00 00 F4 03 04 00 1B A5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D7 7B 02 00 35 04 06 00 6A 00 00 6E [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 03 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 03 00 90 0C 00 90 00 10 [10:14:52]RAPDU: 90 00 [10:14:52]wFMCommunicate OK [10:14:52]wFMCommunicate request_size=10 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 0D 02 02 05 66 3E E1 B7 89 [10:14:52]Write to MH i2c: E2 0D 00 91 0C 80 0D 02 02 05 00 66 3E E1 B7 89 00 00 E6 [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 03 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 03 00 91 0C 00 90 00 11 [10:14:52]RAPDU: 90 00 [10:14:52]wFMCommunicate OK [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 0D 03 02 [10:14:52]Write to MH i2c: E2 08 00 92 0C 80 0D 03 02 00 00 00 00 19 [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 0B 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 0B 00 92 0C 00 F3 22 83 37 34 8C 20 7E 90 00 47 [10:14:52]RAPDU: F3 22 83 37 34 8C 20 7E 90 00 [10:14:52]wFMCommunicate OK [10:14:52]SAM_PROTO_SignData done [10:14:52]FM_MakeSignedData done [10:14:52]CreateOFDProtocolMessage [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 11 00 00 [10:14:52]Write to MH i2c: E2 08 00 93 0C 80 11 00 00 00 00 00 00 19 [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 17 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 17 00 93 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 79 [10:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:14:52]wFMCommunicate OK [10:14:52]CreateOFDProtocolMessage done [10:14:52]OFDSenderStorePacket 162775 [10:14:52]StoreOFDPacket docnum=162775 [10:14:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D2 C0 07 01 B0 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 57 00 00 00 F4 03 04 00 1B A5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D7 7B 02 00 35 04 06 00 6A 66 3E E1 B7 89 F3 22 83 37 34 8C 20 7E [10:14:52]CheckFolder [10:14:52]dirname=/storage/ofd_packets [10:14:52]CheckFolder done [10:14:52]ProducePacketName [10:14:52]name=ofd_packets/00162775 [10:14:52]NVStorageSaveData ofd_packets/00162775 [10:14:52]File name is /storage/ofd_packets/00162775 [10:14:52]Write 301 bytes [10:14:52]NVStorageSaveData done [10:14:52]OFDSenderStorePacket done [10:14:52]KKMCreateOFDPacket done [10:14:52]NVStorageSaveData kkm_last_timestamp [10:14:52]File name is /storage/kkm_last_timestamp [10:14:52]Write 4 bytes [10:14:52]NVStorageSaveData done [10:14:52]ExternCall_PrintAddStr [10:14:52]wPrintStart [10:14:52]Write to MH i2c: 01 00 00 94 0C A0 [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: 01 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: 01 07 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: 01 07 00 94 0C 00 00 00 00 00 FF 0F B5 [10:14:52]RasterBufferAndPrint [10:14:52]line Счет N : (1)1319365 [10:14:52]line ИНН: 02508201610067 [10:14:52]line Контрольно-Кассовый Чек [10:14:52]line ПРОДАЖА [10:14:52]line ТРК (МРК, ГНК) : 33 [10:14:52]line Товар: 2710124130 [10:14:52]line Аи-92-К-5 [10:14:52]line 7.550 * 66.30 [10:14:52]line = 500.57 [10:14:52]line НДС 12% НСП 1% [10:14:52]line > о реализуемом товаре [10:14:52]line ОКРУГЛЕНИЕ: -0.57 [10:14:52]line ИТОГО: 500.00 [10:14:52]line Внесено: 500.00 [10:14:52]line СДАЧА: 0.00 [10:14:52]line НСП 1% : 4.43 [10:14:52]line НДС 12% : 53.16 [10:14:52]line Наличными: 500.00 [10:14:52]line Безнал.: 0.00 [10:14:52]line Место: АЗС № 140 "Партнер Нефть" [10:14:52]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:14:52]line СНО: Общий режим [10:14:52]line Чек 87 14.07.2024 10:14 [10:14:52]line Смена: 463 ФФД: 1.0 [10:14:52]line ЗНМ: 0300000129 [10:14:52]line РНМ: 0000000000090858 [10:14:52]line Версия ККМ: 001 [10:14:52]line ФМ: 0000000000874899 [10:14:52]line ФД: 162775 [10:14:52]line ФПД: 116987374188425 [10:14:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101451&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162775&fm=116987374188425&tin=02508201610067®Number=0000000000090858&sum=50000 [10:14:52]OFD Sender: Processing packet 162775 [packets to send 106, broken 105] [10:14:52]ProducePacketName [10:14:52]name=ofd_packets/00162775 [10:14:52]OFD Sender: To server: pG, [10:14:52]CommunicateWithHost lk.salyk.kg:30040 [10:14:52]ConnectInit lk.salyk.kg [10:14:52]written 0, free lines is 4095 [10:14:53]Connected sock=10 [10:14:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D2 C0 07 01 B0 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 57 00 00 00 F4 03 04 00 1B A5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D7 7B 02 00 35 04 06 00 6A 66 3E E1 B7 89 F3 22 83 37 34 8C 20 7E [10:14:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A6 C9 47 00 58 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D7 7B 02 00 F4 03 04 00 29 51 93 66 B6 04 01 00 00 44 2F 20 FB 90 05 09 91 [10:14:53]CommunicateWithHost err = 0 [10:14:53]CheckOFDResponse [10:14:53]1017 (14) - 77093643461234 [10:14:53]1041 (16) - 0000000000874899 [10:14:53]1040 (4) - 162775 [10:14:53]1012 (4) - 14.07.2024 04:16 [10:14:53]1206 (1) - 0 [10:14:53]OFD Sender: Remove packet 162775 [10:14:53]ProducePacketName [10:14:53]name=ofd_packets/00162775 [10:14:53]NVStorageDeleteData [10:14:53]Write to MH i2c: 01 00 00 BF 0C CB [10:14:53]Write i2c OK [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: 01 [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: 01 07 00 [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: 01 07 00 BF 0C 00 00 00 00 00 CD 0C AB [10:14:53]RasterBufferAndPrint [10:14:53]line [10:14:53]line [10:14:53]line [10:14:53]line [10:14:53]line [10:14:53]written 0, free lines is 3284 [10:14:53]MH_Cut [10:14:53]Write to MH i2c: D1 01 00 C6 0C 01 A4 [10:14:53]Write i2c OK [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: D1 [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: D1 01 00 [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: D1 01 00 C6 0C 00 A3 [10:14:53]Write to MH i2c: 01 00 00 C7 0C D3 [10:14:53]Write i2c OK [10:14:53]MH_I2C_Read... [10:14:53]OFD Sender: No OFD packet to send [10:14:54]*** Cut start [10:14:54]*** Purtial cut [10:14:54]*** Stage 1: CUTSNS_PIN = 1 [10:14:54]Read from MH i2c: 01 [10:14:54]MH_I2C_Read... [10:14:54]*** Stop cut motor [10:14:54]*** Cut end [10:14:54]Read from MH i2c: 01 07 00 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: 01 07 00 C7 0C 00 00 00 00 00 FF 0F E8 [10:14:54]process_action close_receipt done [10:14:54]requested_data is exist [10:14:54]produce_requested_data [10:14:54]requested_item fm.sn is exist - process it [10:14:54]wFMCommunicate request_size=4 [10:14:54]MH_SAM_APDU [10:14:54]CAPDU: 80 11 00 00 [10:14:54]Write to MH i2c: E2 08 00 C8 0C 80 11 00 00 00 00 00 00 4E [10:14:54]Write i2c OK [10:14:54]MH_I2C_Read... [10:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:54]Read from MH i2c: E2 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 17 00 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 17 00 C8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AE [10:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:14:54]wFMCommunicate OK [10:14:54]requested_item fd.num is exist - process it [10:14:54]SAM_PROTO_GetFieldsCounters [10:14:54]wFMCommunicate request_size=4 [10:14:54]MH_SAM_APDU [10:14:54]CAPDU: 80 13 00 00 [10:14:54]Write to MH i2c: E2 08 00 C9 0C 80 13 00 00 00 00 00 00 51 [10:14:54]Write i2c OK [10:14:54]MH_I2C_Read... [10:14:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:54]Read from MH i2c: E2 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 62 00 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 62 00 C9 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D7 7B 02 00 0E 04 04 00 CF 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 AD [10:14:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D7 7B 02 00 0E 04 04 00 CF 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 [10:14:54]wFMCommunicate OK [10:14:54]SAM_PROTO_GetFieldsCounters done [10:14:54]requested_item shift.num is exist - process it [10:14:54]requested_item shift.opened is exist - process it [10:14:54]req_shift_opened [10:14:54]FM_GetShiftState [10:14:54]SAM_PROTO_GetShiftState [10:14:54]wFMCommunicate request_size=4 [10:14:54]MH_SAM_APDU [10:14:54]CAPDU: 80 13 01 00 [10:14:54]Write to MH i2c: E2 08 00 CA 0C 80 13 01 00 00 00 00 00 53 [10:14:54]Write i2c OK [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 [10:14:54]MH_I2C_Read... [10:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:54]Read from MH i2c: E2 0E 00 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 0E 00 CA 0C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 89 [10:14:54]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:14:54]wFMCommunicate OK [10:14:54]SAM_PROTO_GetShiftState done [10:14:54]FM_GetShiftState done [10:14:54]req_shift_opened done [10:14:54]requested_item shift.open_date is exist - process it [10:14:54]req_shift_open_date [10:14:54]req_shift_open_date done [10:14:54]produce_requested_data done [10:14:54]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162775,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:14:54]process_action_free close_receipt [10:14:54]json_value_free [10:14:54]json_value_free done [10:14:54]process_json_proto returns [10:14:54]Send response to host [10:14:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162775,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:14:54]free response buf [10:14:54]execute_script done [10:14:54]execute_script returns [10:14:54]free content buf [10:14:54]Sock 9.Close socket [10:14:54]Sock 9.Thread stoped [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]accept exits with 7 [10:17:43]New connection [10:17:43]New thread 3066879332 created [10:17:43]Thread 3066735972 joined [10:17:43]Waiting for new connection... [10:17:43] Sock 7.Parse request [10:17:43]Sock 7.Check first char [10:17:43]Sock 7.First char is OK [10:17:43]request: POST /json_proto HTTP/1.0 [10:17:43]Method: POST [10:17:43]URL: /json_proto [10:17:43]Method is POST - this is cgi request [10:17:43]url: /json_proto [10:17:43]query_string will be loaded in cgi processing [10:17:43]execute_cgi json_proto POST (null) [10:17:43]execute_cgi path=json_proto method=POST [10:17:43]POST find Content-Length [10:17:43]Host: 172.17.39.67:8080 [10:17:43]Content-Length: 809 [10:17:43]Content-Type: application/json [10:17:43] [10:17:43]POST finish read [10:17:43]Found Content-Length = 809 [10:17:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 78.520, "sum" : 5700.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5700.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:43]execute_script... [10:17: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)1319366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 78.520, "sum" : 5700.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5700.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:43]POST & json_proto [10:17:43]process_json_proto [10:17:43]json parsed OK: [10:17:43]protocol is kg_v1.0 [10:17:43]action value=close_receipt [10:17:43]process_action close_receipt [10:17:43]cmd_close_receipt [10:17:43]MH_GetDate [10:17:43]Write to MH i2c: F0 00 00 CB 0C C6 [10:17:43]Write i2c OK [10:17:43]MH_I2C_Read... [10:17:43]Read from MH i2c: F0 [10:17:43]MH_I2C_Read... [10:17:43]Read from MH i2c: F0 09 00 [10:17:43]MH_I2C_Read... [10:17:43]Read from MH i2c: F0 09 00 CB 0C 00 C8 A5 93 66 B6 85 93 66 69 [10:17:43]GetLastDocTimeStamp 1720952091 [10:17:43]current date 1720952264 [10:17:43]FM_GetShiftState [10:17:43]SAM_PROTO_GetShiftState [10:17:43]wFMCommunicate request_size=4 [10:17:43]MH_SAM_APDU [10:17:43]CAPDU: 80 13 01 00 [10:17:43]Write to MH i2c: E2 08 00 CC 0C 80 13 01 00 00 00 00 00 55 [10:17:43]Write i2c OK [10:17:43]MH_I2C_Read... [10:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:43]Read from MH i2c: E2 [10:17:43]MH_I2C_Read... [10:17:43]Read from MH i2c: E2 0E 00 [10:17:43]MH_I2C_Read... [10:17:43]Read from MH i2c: E2 0E 00 CC 0C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8B [10:17:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:17:43]wFMCommunicate OK [10:17:43]SAM_PROTO_GetShiftState done [10:17:43]FM_GetShiftState done [10:17:43]opened in 1720915483 [10:17:43]opened+sec_in_day 1721001883 [10:17:43]quantity*price = 570055 [10:17:43]sum+1 = 570056 [10:17:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5700.55 НСП 1% : 50.45 НДС 12% : 605.37 Наличными: 0.00 Безнал.: 5700.55 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 88 14.07.2024 10:17 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162776 ФПД: 6981424986215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101744&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162776&fm=6981424986215&tin=02508201610067®Number=0000000000090858&sum=570055 [10:17:44]StoreToDocumentArchive [10:17:44]shift 463 fd 162776 [10:17:44]save to /storage/0463/doc_00162776 [10:17:44]save last doc name /storage/0463/doc_00162776 to /storage/kkm_last_doc_name [10:17:44]save OK [10:17:44]Clear old archive folders... [10:17:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:17:44]tlvbuf is 012280F0 [10:17:44]SAM_PROTO_ClearQueue [10:17:44]wFMCommunicate request_size=4 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 09 00 00 [10:17:44]Write to MH i2c: E2 08 00 D9 0C 80 09 00 00 00 00 00 00 57 [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 D9 0C 00 90 00 59 [10:17:44]RAPDU: 90 00 [10:17:44]wFMCommunicate OK [10:17:44]SAM_PROTO_ClearQueue done [10:17:44]KKMCreateOFDPacket [10:17:44]OFDProtocolAddRootSTLVToBuf [10:17:44]FM_MakeSignedData [10:17:44]FM_MakeSignedData [10:17:44]SAM_PROTO_SignData [10:17:44]wFMCommunicate request_size=4 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 0D 01 02 [10:17:44]Write to MH i2c: E2 08 00 DA 0C 80 0D 01 02 00 00 00 00 5F [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 DA 0C 00 90 00 5A [10:17:44]RAPDU: 90 00 [10:17:44]wFMCommunicate OK [10:17:44]wFMCommunicate request_size=255 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 32 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C7 B2 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 B2 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 EC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 B2 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C8 A5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D8 7B 02 00 35 04 06 00 [10:17:44]Write to MH i2c: E2 02 01 DB 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 32 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C7 B2 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 B2 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 EC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 B2 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C8 A5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D8 7B 02 00 35 04 06 00 00 00 AC [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:45]Read from MH i2c: E2 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 03 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 03 00 DB 0C 00 90 00 5B [10:17:45]RAPDU: 90 00 [10:17:45]wFMCommunicate OK [10:17:45]wFMCommunicate request_size=11 [10:17:45]MH_SAM_APDU [10:17:45]CAPDU: 80 0D 02 02 06 06 59 7D 5B 38 67 [10:17:45]Write to MH i2c: E2 0E 00 DC 0C 80 0D 02 02 06 00 06 59 7D 5B 38 67 00 00 44 [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:45]Read from MH i2c: E2 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 03 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 03 00 DC 0C 00 90 00 5C [10:17:45]RAPDU: 90 00 [10:17:45]wFMCommunicate OK [10:17:45]wFMCommunicate request_size=4 [10:17:45]MH_SAM_APDU [10:17:45]CAPDU: 80 0D 03 02 [10:17:45]Write to MH i2c: E2 08 00 DD 0C 80 0D 03 02 00 00 00 00 64 [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:45]Read from MH i2c: E2 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 0B 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 0B 00 DD 0C 00 B9 F1 52 29 8A B2 92 4B 90 00 A3 [10:17:45]RAPDU: B9 F1 52 29 8A B2 92 4B 90 00 [10:17:45]wFMCommunicate OK [10:17:45]SAM_PROTO_SignData done [10:17:45]FM_MakeSignedData done [10:17:45]CreateOFDProtocolMessage [10:17:45]wFMCommunicate request_size=4 [10:17:45]MH_SAM_APDU [10:17:45]CAPDU: 80 11 00 00 [10:17:45]Write to MH i2c: E2 08 00 DE 0C 80 11 00 00 00 00 00 00 64 [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:45]Read from MH i2c: E2 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 17 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 17 00 DE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C4 [10:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:17:45]wFMCommunicate OK [10:17:45]CreateOFDProtocolMessage done [10:17:45]OFDSenderStorePacket 162776 [10:17:45]StoreOFDPacket docnum=162776 [10:17:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 08 F3 08 01 0B 0A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 32 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C7 B2 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 B2 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 EC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 B2 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C8 A5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D8 7B 02 00 35 04 06 00 06 59 7D 5B 38 67 B9 F1 52 29 8A B2 92 4B [10:17:45]CheckFolder [10:17:45]dirname=/storage/ofd_packets [10:17:45]CheckFolder done [10:17:45]ProducePacketName [10:17:45]name=ofd_packets/00162776 [10:17:45]NVStorageSaveData ofd_packets/00162776 [10:17:45]File name is /storage/ofd_packets/00162776 [10:17:45]Write 302 bytes [10:17:45]NVStorageSaveData done [10:17:45]OFDSenderStorePacket done [10:17:45]KKMCreateOFDPacket done [10:17:45]NVStorageSaveData kkm_last_timestamp [10:17:45]File name is /storage/kkm_last_timestamp [10:17:45]Write 4 bytes [10:17:45]NVStorageSaveData done [10:17:45]ExternCall_PrintAddStr [10:17:45]wPrintStart [10:17:45]Write to MH i2c: 01 00 00 DF 0C EB [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 07 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 07 00 DF 0C 00 00 00 00 00 FF 0F 00 [10:17:45]RasterBufferAndPrint [10:17:45]line Счет N : (1)1319366 [10:17:45]line ИНН: 02508201610067 [10:17:45]line Контрольно-Кассовый Чек [10:17:45]line ПРОДАЖА [10:17:45]line ТРК (МРК, ГНК) : 11 [10:17:45]line Товар: 2710194210 [10:17:45]line ДТ(л)-К-5 [10:17:45]line 78.520 * 72.60 [10:17:45]line = 5700.55 [10:17:45]line НДС 12% НСП 1% [10:17:45]line > о реализуемом товаре [10:17:45]line ИТОГО: 5700.55 [10:17:45]line НСП 1% : 50.45 [10:17:45]line НДС 12% : 605.37 [10:17:45]line Наличными: 0.00 [10:17:45]line Безнал.: 5700.55 [10:17:45]line Место: АЗС № 140 "Партнер Нефть" [10:17:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:17:45]line СНО: Общий режим [10:17:45]line Чек 88 14.07.2024 10:17 [10:17:45]line Смена: 463 ФФД: 1.0 [10:17:45]line ЗНМ: 0300000129 [10:17:45]line РНМ: 0000000000090858 [10:17:45]line Версия ККМ: 001 [10:17:45]line Платежная система: O! деньги [10:17:45]line ФМ: 0000000000874899 [10:17:45]line ФД: 162776 [10:17:45]line ФПД: 6981424986215 [10:17:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101744&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162776&fm=6981424986215&tin=02508201610067®Number=0000000000090858&sum=570055 [10:17:45]OFD Sender: Processing packet 162776 [packets to send 106, broken 105] [10:17:45]ProducePacketName [10:17:45]name=ofd_packets/00162776 [10:17:45]OFD Sender: To server: pG, [10:17:45]CommunicateWithHost lk.salyk.kg:30040 [10:17:45]ConnectInit lk.salyk.kg [10:17:45]written 0, free lines is 4095 [10:17:45]Connected sock=10 [10:17:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 08 F3 08 01 0B 0A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 32 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C7 B2 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C7 B2 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 EC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C7 B2 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 C8 A5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D8 7B 02 00 35 04 06 00 06 59 7D 5B 38 67 B9 F1 52 29 8A B2 92 4B [10:17:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 1B 81 47 00 7C B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D8 7B 02 00 F4 03 04 00 D6 51 93 66 B6 04 01 00 00 0A C8 43 49 BE A0 D1 F8 [10:17:45]CommunicateWithHost err = 0 [10:17:45]CheckOFDResponse [10:17:45]1017 (14) - 77093643461234 [10:17:45]1041 (16) - 0000000000874899 [10:17:45]1040 (4) - 162776 [10:17:45]1012 (4) - 14.07.2024 04:19 [10:17:45]1206 (1) - 0 [10:17:45]OFD Sender: Remove packet 162776 [10:17:45]ProducePacketName [10:17:45]name=ofd_packets/00162776 [10:17:45]NVStorageDeleteData [10:17:46]Write to MH i2c: 01 00 00 09 0D 16 [10:17:46]Write i2c OK [10:17:46]MH_I2C_Read... [10:17:46]Read from MH i2c: 01 [10:17:46]MH_I2C_Read... [10:17:46]Read from MH i2c: 01 07 00 [10:17:46]MH_I2C_Read... [10:17:46]Read from MH i2c: 01 07 00 09 0D 00 00 00 00 00 E6 0C 0F [10:17:46]RasterBufferAndPrint [10:17:46]line [10:17:46]line [10:17:46]line [10:17:46]line [10:17:46]line [10:17:46]written 0, free lines is 3308 [10:17:46]MH_Cut [10:17:46]Write to MH i2c: D1 01 00 10 0D 01 EF [10:17:46]Write i2c OK [10:17:46]MH_I2C_Read... [10:17:46]Read from MH i2c: D1 [10:17:46]MH_I2C_Read... [10:17:46]Read from MH i2c: D1 01 00 [10:17:46]MH_I2C_Read... [10:17:46]Read from MH i2c: D1 01 00 10 0D 00 EE [10:17:46]Write to MH i2c: 01 00 00 11 0D 1E [10:17:46]Write i2c OK [10:17:46]MH_I2C_Read... [10:17:46]OFD Sender: No OFD packet to send [10:17:46]*** Cut start [10:17:46]*** Purtial cut [10:17:46]*** CUTSNS_PIN = 0 [10:17:46]*** Stage 1: CUTSNS_PIN = 1 [10:17:48]Read from MH i2c: 01 [10:17:48]MH_I2C_Read... [10:17:48]*** Stop cut motor [10:17:48]*** Cut end [10:17:48]Read from MH i2c: 01 07 00 [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: 01 07 00 11 0D 00 00 00 00 00 FF 0F 33 [10:17:48]process_action close_receipt done [10:17:48]requested_data is exist [10:17:48]produce_requested_data [10:17:48]requested_item fm.sn is exist - process it [10:17:48]wFMCommunicate request_size=4 [10:17:48]MH_SAM_APDU [10:17:48]CAPDU: 80 11 00 00 [10:17:48]Write to MH i2c: E2 08 00 12 0D 80 11 00 00 00 00 00 00 99 [10:17:48]Write i2c OK [10:17:48]MH_I2C_Read... [10:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:48]Read from MH i2c: E2 [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: E2 17 00 [10:17:48]MH_I2C_Read... [10:17:48]Read from MH i2c: E2 17 00 12 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F9 [10:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:17:48]wFMCommunicate OK [10:17:48]requested_item fd.num is exist - process it [10:17:48]SAM_PROTO_GetFieldsCounters [10:17:48]wFMCommunicate request_size=4 [10:17:48]MH_SAM_APDU [10:17:48]CAPDU: 80 13 00 00 [10:17:48]Write to MH i2c: E2 08 00 13 0D 80 13 00 00 00 00 00 00 9C [10:17:48]Write i2c OK [10:17:48]MH_I2C_Read... [10:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:49]Read from MH i2c: E2 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 62 00 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 62 00 13 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D8 7B 02 00 0E 04 04 00 CF 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 FC [10:17:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D8 7B 02 00 0E 04 04 00 CF 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 [10:17:49]wFMCommunicate OK [10:17:49]SAM_PROTO_GetFieldsCounters done [10:17:49]requested_item shift.num is exist - process it [10:17:49]requested_item shift.opened is exist - process it [10:17:49]req_shift_opened [10:17:49]FM_GetShiftState [10:17:49]SAM_PROTO_GetShiftState [10:17:49]wFMCommunicate request_size=4 [10:17:49]MH_SAM_APDU [10:17:49]CAPDU: 80 13 01 00 [10:17:49]Write to MH i2c: E2 08 00 14 0D 80 13 01 00 00 00 00 00 9E [10:17:49]Write i2c OK [10:17:49]MH_I2C_Read... [10:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:49]Read from MH i2c: E2 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 0E 00 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 0E 00 14 0D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D4 [10:17:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:17:49]wFMCommunicate OK [10:17:49]SAM_PROTO_GetShiftState done [10:17:49]FM_GetShiftState done [10:17:49]req_shift_opened done [10:17:49]requested_item shift.open_date is exist - process it [10:17:49]req_shift_open_date [10:17:49]req_shift_open_date done [10:17:49]produce_requested_data done [10:17:49]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162776,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:17:49]process_action_free close_receipt [10:17:49]json_value_free [10:17:49]json_value_free done [10:17:49]process_json_proto returns [10:17:49]Send response to host [10:17:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162776,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:17:49]free response buf [10:17:49]execute_script done [10:17:49]execute_script returns [10:17:49]free content buf [10:17:49]Sock 7.Close socket [10:17:49]Sock 7.Thread stoped [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:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:49]accept exits with 9 [10:19:49]New connection [10:19:49]New thread 3066735972 created [10:19:49]Thread 3066879332 joined [10:19:49]Waiting for new connection... [10:19:49] Sock 9.Parse request [10:19:49]Sock 9.Check first char [10:19:49]Sock 9.First char is OK [10:19:49]request: POST /json_proto HTTP/1.0 [10:19:49]Method: POST [10:19:49]URL: /json_proto [10:19:49]Method is POST - this is cgi request [10:19:49]url: /json_proto [10:19:49]query_string will be loaded in cgi processing [10:19:49]execute_cgi json_proto POST (null) [10:19:49]execute_cgi path=json_proto method=POST [10:19:49]POST find Content-Length [10:19:49]Host: 172.17.39.67:8080 [10:19:49]Content-Length: 678 [10:19:49]Content-Type: application/json [10:19:49] [10:19:49]POST finish read [10:19:49]Found Content-Length = 678 [10:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:19:49]execute_script... [10:19: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)1319368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:19:49]POST & json_proto [10:19:49]process_json_proto [10:19:49]json parsed OK: [10:19:49]protocol is kg_v1.0 [10:19:49]action value=close_receipt [10:19:49]process_action close_receipt [10:19:49]cmd_close_receipt [10:19:49]MH_GetDate [10:19:49]Write to MH i2c: F0 00 00 15 0D 11 [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: F0 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: F0 09 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: F0 09 00 15 0D 00 45 A6 93 66 B6 85 93 66 32 [10:19:49]GetLastDocTimeStamp 1720952264 [10:19:49]current date 1720952389 [10:19:49]FM_GetShiftState [10:19:49]SAM_PROTO_GetShiftState [10:19:49]wFMCommunicate request_size=4 [10:19:49]MH_SAM_APDU [10:19:49]CAPDU: 80 13 01 00 [10:19:49]Write to MH i2c: E2 08 00 16 0D 80 13 01 00 00 00 00 00 A0 [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:49]Read from MH i2c: E2 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 0E 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 0E 00 16 0D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D6 [10:19:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:19:49]wFMCommunicate OK [10:19:49]SAM_PROTO_GetShiftState done [10:19:49]FM_GetShiftState done [10:19:49]opened in 1720915483 [10:19:49]opened+sec_in_day 1721001883 [10:19:49]quantity*price = 50056 [10:19:49]sum+1 = 50058 [10:19:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 89 14.07.2024 10:19 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162777 ФПД: 174700069643610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101949&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162777&fm=174700069643610&tin=02508201610067®Number=0000000000090858&sum=50000 [10:19:50]StoreToDocumentArchive [10:19:50]shift 463 fd 162777 [10:19:50]save to /storage/0463/doc_00162777 [10:19:50]save last doc name /storage/0463/doc_00162777 to /storage/kkm_last_doc_name [10:19:50]save OK [10:19:50]Clear old archive folders... [10:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:50]tlvbuf is 012232A0 [10:19:50]SAM_PROTO_ClearQueue [10:19:50]wFMCommunicate request_size=4 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 09 00 00 [10:19:50]Write to MH i2c: E2 08 00 23 0D 80 09 00 00 00 00 00 00 A2 [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 23 0D 00 90 00 A4 [10:19:50]RAPDU: 90 00 [10:19:50]wFMCommunicate OK [10:19:50]SAM_PROTO_ClearQueue done [10:19:50]KKMCreateOFDPacket [10:19:50]OFDProtocolAddRootSTLVToBuf [10:19:50]FM_MakeSignedData [10:19:50]FM_MakeSignedData [10:19:50]SAM_PROTO_SignData [10:19:50]wFMCommunicate request_size=4 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 0D 01 02 [10:19:50]Write to MH i2c: E2 08 00 24 0D 80 0D 01 02 00 00 00 00 AA [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 24 0D 00 90 00 A5 [10:19:50]RAPDU: 90 00 [10:19:50]wFMCommunicate OK [10:19:50]wFMCommunicate request_size=255 [10:19:50]MH_SAM_APDU [10:19: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 59 00 00 00 F4 03 04 00 45 A6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D9 7B 02 00 35 04 06 00 9E [10:19:50]Write to MH i2c: E2 02 01 25 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 59 00 00 00 F4 03 04 00 45 A6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D9 7B 02 00 35 04 06 00 9E 00 00 67 [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 25 0D 00 90 00 A6 [10:19:50]RAPDU: 90 00 [10:19:50]wFMCommunicate OK [10:19:50]wFMCommunicate request_size=10 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 0D 02 02 05 E3 87 97 E5 5A [10:19:50]Write to MH i2c: E2 0D 00 26 0D 80 0D 02 02 05 00 E3 87 97 E5 5A 00 00 F7 [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 26 0D 00 90 00 A7 [10:19:50]RAPDU: 90 00 [10:19:50]wFMCommunicate OK [10:19:50]wFMCommunicate request_size=4 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 0D 03 02 [10:19:50]Write to MH i2c: E2 08 00 27 0D 80 0D 03 02 00 00 00 00 AF [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 0B 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 0B 00 27 0D 00 49 A9 11 58 48 2E A6 60 90 00 87 [10:19:50]RAPDU: 49 A9 11 58 48 2E A6 60 90 00 [10:19:50]wFMCommunicate OK [10:19:50]SAM_PROTO_SignData done [10:19:50]FM_MakeSignedData done [10:19:50]CreateOFDProtocolMessage [10:19:50]wFMCommunicate request_size=4 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 11 00 00 [10:19:50]Write to MH i2c: E2 08 00 28 0D 80 11 00 00 00 00 00 00 AF [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 17 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 17 00 28 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0F [10:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:19:51]wFMCommunicate OK [10:19:51]CreateOFDProtocolMessage done [10:19:51]OFDSenderStorePacket 162777 [10:19:51]StoreOFDPacket docnum=162777 [10:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 16 A4 07 01 B6 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 59 00 00 00 F4 03 04 00 45 A6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D9 7B 02 00 35 04 06 00 9E E3 87 97 E5 5A 49 A9 11 58 48 2E A6 60 [10:19:51]CheckFolder [10:19:51]dirname=/storage/ofd_packets [10:19:51]CheckFolder done [10:19:51]ProducePacketName [10:19:51]name=ofd_packets/00162777 [10:19:51]NVStorageSaveData ofd_packets/00162777 [10:19:51]File name is /storage/ofd_packets/00162777 [10:19:51]Write 301 bytes [10:19:51]NVStorageSaveData done [10:19:51]OFDSenderStorePacket done [10:19:51]KKMCreateOFDPacket done [10:19:51]NVStorageSaveData kkm_last_timestamp [10:19:51]File name is /storage/kkm_last_timestamp [10:19:51]Write 4 bytes [10:19:51]NVStorageSaveData done [10:19:51]ExternCall_PrintAddStr [10:19:51]wPrintStart [10:19:51]Write to MH i2c: 01 00 00 29 0D 36 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 29 0D 00 00 00 00 00 FF 0F 4B [10:19:51]RasterBufferAndPrint [10:19:51]line Счет N : (1)1319368 [10:19:51]line ИНН: 02508201610067 [10:19:51]line Контрольно-Кассовый Чек [10:19:51]line ПРОДАЖА [10:19:51]line ТРК (МРК, ГНК) : 43 [10:19:51]line Товар: 2710124130 [10:19:51]line Аи-92-К-5 [10:19:51]line 7.550 * 66.30 [10:19:51]line = 500.57 [10:19:51]line НДС 12% НСП 1% [10:19:51]line > о реализуемом товаре [10:19:51]line ОКРУГЛЕНИЕ: -0.57 [10:19:51]line ИТОГО: 500.00 [10:19:51]line Внесено: 500.00 [10:19:51]line СДАЧА: 0.00 [10:19:51]line НСП 1% : 4.43 [10:19:51]line НДС 12% : 53.16 [10:19:51]line Наличными: 500.00 [10:19:51]line Безнал.: 0.00 [10:19:51]line Место: АЗС № 140 "Партнер Нефть" [10:19:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:19:51]line СНО: Общий режим [10:19:51]line Чек 89 14.07.2024 10:19 [10:19:51]line Смена: 463 ФФД: 1.0 [10:19:51]line ЗНМ: 0300000129 [10:19:51]line РНМ: 0000000000090858 [10:19:51]line Версия ККМ: 001 [10:19:51]line ФМ: 0000000000874899 [10:19:51]line ФД: 162777 [10:19:51]line ФПД: 174700069643610 [10:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T101949&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162777&fm=174700069643610&tin=02508201610067®Number=0000000000090858&sum=50000 [10:19:51]OFD Sender: Processing packet 162777 [packets to send 106, broken 105] [10:19:51]ProducePacketName [10:19:51]name=ofd_packets/00162777 [10:19:51]OFD Sender: To server: pG, [10:19:51]CommunicateWithHost lk.salyk.kg:30040 [10:19:51]ConnectInit lk.salyk.kg [10:19:51]written 0, free lines is 4095 [10:19:51]Connected sock=10 [10:19:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 16 A4 07 01 B6 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 59 00 00 00 F4 03 04 00 45 A6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D9 7B 02 00 35 04 06 00 9E E3 87 97 E5 5A 49 A9 11 58 48 2E A6 60 [10:19:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7E 82 47 00 9F 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D9 7B 02 00 F4 03 04 00 53 52 93 66 B6 04 01 00 00 4F 29 16 41 59 0C 4F 41 [10:19:51]CommunicateWithHost err = 0 [10:19:51]CheckOFDResponse [10:19:51]1017 (14) - 77093643461234 [10:19:51]1041 (16) - 0000000000874899 [10:19:51]1040 (4) - 162777 [10:19:51]1012 (4) - 14.07.2024 04:21 [10:19:51]1206 (1) - 0 [10:19:51]OFD Sender: Remove packet 162777 [10:19:51]ProducePacketName [10:19:51]name=ofd_packets/00162777 [10:19:51]NVStorageDeleteData [10:19:51]Write to MH i2c: 01 00 00 54 0D 61 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 54 0D 00 00 00 00 00 CD 0C 41 [10:19:51]RasterBufferAndPrint [10:19:51]line [10:19:51]line [10:19:51]line [10:19:51]line [10:19:51]line [10:19:51]written 0, free lines is 3284 [10:19:51]MH_Cut [10:19:51]Write to MH i2c: D1 01 00 5B 0D 01 3A [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: D1 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: D1 01 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: D1 01 00 5B 0D 00 39 [10:19:51]Write to MH i2c: 01 00 00 5C 0D 69 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:52]OFD Sender: No OFD packet to send [10:19:52]*** Cut start [10:19:52]*** Purtial cut [10:19:52]*** Stage 1: CUTSNS_PIN = 1 [10:19:52]Read from MH i2c: 01 [10:19:52]MH_I2C_Read... [10:19:52]*** Stop cut motor [10:19:52]*** Cut end [10:19:52]Read from MH i2c: 01 07 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: 01 07 00 5C 0D 00 00 00 00 00 FF 0F 7E [10:19:52]process_action close_receipt done [10:19:52]requested_data is exist [10:19:52]produce_requested_data [10:19:52]requested_item fm.sn is exist - process it [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 11 00 00 [10:19:52]Write to MH i2c: E2 08 00 5D 0D 80 11 00 00 00 00 00 00 E4 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 17 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 17 00 5D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 44 [10:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:19:52]wFMCommunicate OK [10:19:52]requested_item fd.num is exist - process it [10:19:52]SAM_PROTO_GetFieldsCounters [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 13 00 00 [10:19:52]Write to MH i2c: E2 08 00 5E 0D 80 13 00 00 00 00 00 00 E7 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:53]Read from MH i2c: E2 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 62 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 62 00 5E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D9 7B 02 00 0E 04 04 00 CF 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 4B [10:19:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D9 7B 02 00 0E 04 04 00 CF 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 [10:19:53]wFMCommunicate OK [10:19:53]SAM_PROTO_GetFieldsCounters done [10:19:53]requested_item shift.num is exist - process it [10:19:53]requested_item shift.opened is exist - process it [10:19:53]req_shift_opened [10:19:53]FM_GetShiftState [10:19:53]SAM_PROTO_GetShiftState [10:19:53]wFMCommunicate request_size=4 [10:19:53]MH_SAM_APDU [10:19:53]CAPDU: 80 13 01 00 [10:19:53]Write to MH i2c: E2 08 00 5F 0D 80 13 01 00 00 00 00 00 E9 [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:53]Read from MH i2c: E2 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 0E 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 0E 00 5F 0D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1F [10:19:53]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:19:53]wFMCommunicate OK [10:19:53]SAM_PROTO_GetShiftState done [10:19:53]FM_GetShiftState done [10:19:53]req_shift_opened done [10:19:53]requested_item shift.open_date is exist - process it [10:19:53]req_shift_open_date [10:19:53]req_shift_open_date done [10:19:53]produce_requested_data done [10:19:53]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162777,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:19:53]process_action_free close_receipt [10:19:53]json_value_free [10:19:53]json_value_free done [10:19:53]process_json_proto returns [10:19:53]Send response to host [10:19:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162777,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:19:53]free response buf [10:19:53]execute_script done [10:19:53]execute_script returns [10:19:53]free content buf [10:19:53]Sock 9.Close socket [10:19:53]Sock 9.Thread stoped [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:10]accept exits with 7 [10:20:10]New connection [10:20:10]New thread 3066879332 created [10:20:10]Thread 3066735972 joined [10:20:10]Waiting for new connection... [10:20:10] Sock 7.Parse request [10:20:10]Sock 7.Check first char [10:20:10]Sock 7.First char is OK [10:20:10]request: POST /json_proto HTTP/1.0 [10:20:10]Method: POST [10:20:10]URL: /json_proto [10:20:10]Method is POST - this is cgi request [10:20:10]url: /json_proto [10:20:10]query_string will be loaded in cgi processing [10:20:10]execute_cgi json_proto POST (null) [10:20:10]execute_cgi path=json_proto method=POST [10:20:10]POST find Content-Length [10:20:10]Host: 172.17.39.67:8080 [10:20:10]Content-Length: 809 [10:20:10]Content-Type: application/json [10:20:10] [10:20:10]POST finish read [10:20:10]Found Content-Length = 809 [10:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:10]execute_script... [10:20: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)1319367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:10]POST & json_proto [10:20:10]process_json_proto [10:20:10]json parsed OK: [10:20:10]protocol is kg_v1.0 [10:20:10]action value=close_receipt [10:20:10]process_action close_receipt [10:20:10]cmd_close_receipt [10:20:10]MH_GetDate [10:20:10]Write to MH i2c: F0 00 00 60 0D 5C [10:20:10]Write i2c OK [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: F0 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: F0 09 00 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: F0 09 00 60 0D 00 5B A6 93 66 B6 85 93 66 93 [10:20:10]GetLastDocTimeStamp 1720952389 [10:20:10]current date 1720952411 [10:20:10]FM_GetShiftState [10:20:10]SAM_PROTO_GetShiftState [10:20:10]wFMCommunicate request_size=4 [10:20:10]MH_SAM_APDU [10:20:10]CAPDU: 80 13 01 00 [10:20:10]Write to MH i2c: E2 08 00 61 0D 80 13 01 00 00 00 00 00 EB [10:20:10]Write i2c OK [10:20:10]MH_I2C_Read... [10:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:10]Read from MH i2c: E2 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: E2 0E 00 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: E2 0E 00 61 0D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 21 [10:20:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:20:10]wFMCommunicate OK [10:20:10]SAM_PROTO_GetShiftState done [10:20:10]FM_GetShiftState done [10:20:10]opened in 1720915483 [10:20:10]opened+sec_in_day 1721001883 [10:20:10]quantity*price = 199940 [10:20:10]sum+1 = 199941 [10:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1999.40 НСП 1% : 17.69 НДС 12% : 212.33 Наличными: 0.00 Безнал.: 1999.40 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 90 14.07.2024 10:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162778 ФПД: 87513962644504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102011&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162778&fm=87513962644504&tin=02508201610067®Number=0000000000090858&sum=199940 [10:20:11]StoreToDocumentArchive [10:20:11]shift 463 fd 162778 [10:20:11]save to /storage/0463/doc_00162778 [10:20:11]save last doc name /storage/0463/doc_00162778 to /storage/kkm_last_doc_name [10:20:11]save OK [10:20:11]Clear old archive folders... [10:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:20:11]tlvbuf is 01229EC0 [10:20:11]SAM_PROTO_ClearQueue [10:20:11]wFMCommunicate request_size=4 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 09 00 00 [10:20:11]Write to MH i2c: E2 08 00 6E 0D 80 09 00 00 00 00 00 00 ED [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 6E 0D 00 90 00 EF [10:20:11]RAPDU: 90 00 [10:20:11]wFMCommunicate OK [10:20:11]SAM_PROTO_ClearQueue done [10:20:11]KKMCreateOFDPacket [10:20:11]OFDProtocolAddRootSTLVToBuf [10:20:11]FM_MakeSignedData [10:20:11]FM_MakeSignedData [10:20:11]SAM_PROTO_SignData [10:20:11]wFMCommunicate request_size=4 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 0D 01 02 [10:20:11]Write to MH i2c: E2 08 00 6F 0D 80 0D 01 02 00 00 00 00 F5 [10:20:11]Write i2c OK [10:20:11]MH_I2C_Read... [10:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:11]Read from MH i2c: E2 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 [10:20:11]MH_I2C_Read... [10:20:11]Read from MH i2c: E2 03 00 6F 0D 00 90 00 F0 [10:20:11]RAPDU: 90 00 [10:20:11]wFMCommunicate OK [10:20:11]wFMCommunicate request_size=255 [10:20:11]MH_SAM_APDU [10:20:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B A6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DA 7B 02 00 35 04 06 00 [10:20:11]Write to MH i2c: E2 02 01 70 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B A6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DA 7B 02 00 35 04 06 00 00 00 AC [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:12]OFD Sender: No OFD packet to send [10:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:12]Read from MH i2c: E2 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 03 00 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 03 00 70 0D 00 90 00 F1 [10:20:12]RAPDU: 90 00 [10:20:12]wFMCommunicate OK [10:20:12]wFMCommunicate request_size=11 [10:20:12]MH_SAM_APDU [10:20:12]CAPDU: 80 0D 02 02 06 4F 97 EE A8 04 18 [10:20:12]Write to MH i2c: E2 0E 00 71 0D 80 0D 02 02 06 00 4F 97 EE A8 04 18 00 00 9C [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:12]Read from MH i2c: E2 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 03 00 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 03 00 71 0D 00 90 00 F2 [10:20:12]RAPDU: 90 00 [10:20:12]wFMCommunicate OK [10:20:12]wFMCommunicate request_size=4 [10:20:12]MH_SAM_APDU [10:20:12]CAPDU: 80 0D 03 02 [10:20:12]Write to MH i2c: E2 08 00 72 0D 80 0D 03 02 00 00 00 00 FA [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:12]Read from MH i2c: E2 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 0B 00 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 0B 00 72 0D 00 20 28 2B AF 0C CE 84 5F 90 00 DA [10:20:12]RAPDU: 20 28 2B AF 0C CE 84 5F 90 00 [10:20:12]wFMCommunicate OK [10:20:12]SAM_PROTO_SignData done [10:20:12]FM_MakeSignedData done [10:20:12]CreateOFDProtocolMessage [10:20:12]wFMCommunicate request_size=4 [10:20:12]MH_SAM_APDU [10:20:12]CAPDU: 80 11 00 00 [10:20:12]Write to MH i2c: E2 08 00 73 0D 80 11 00 00 00 00 00 00 FA [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:12]Read from MH i2c: E2 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 17 00 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: E2 17 00 73 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5A [10:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:20:12]wFMCommunicate OK [10:20:12]CreateOFDProtocolMessage done [10:20:12]OFDSenderStorePacket 162778 [10:20:12]StoreOFDPacket docnum=162778 [10:20:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 54 53 08 01 19 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B A6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DA 7B 02 00 35 04 06 00 4F 97 EE A8 04 18 20 28 2B AF 0C CE 84 5F [10:20:12]CheckFolder [10:20:12]dirname=/storage/ofd_packets [10:20:12]CheckFolder done [10:20:12]ProducePacketName [10:20:12]name=ofd_packets/00162778 [10:20:12]NVStorageSaveData ofd_packets/00162778 [10:20:12]File name is /storage/ofd_packets/00162778 [10:20:12]Write 302 bytes [10:20:12]NVStorageSaveData done [10:20:12]OFDSenderStorePacket done [10:20:12]KKMCreateOFDPacket done [10:20:12]NVStorageSaveData kkm_last_timestamp [10:20:12]File name is /storage/kkm_last_timestamp [10:20:12]Write 4 bytes [10:20:12]NVStorageSaveData done [10:20:12]ExternCall_PrintAddStr [10:20:12]wPrintStart [10:20:12]Write to MH i2c: 01 00 00 74 0D 81 [10:20:12]Write i2c OK [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: 01 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: 01 07 00 [10:20:12]MH_I2C_Read... [10:20:12]Read from MH i2c: 01 07 00 74 0D 00 00 00 00 00 FF 0F 96 [10:20:12]RasterBufferAndPrint [10:20:12]line Счет N : (1)1319367 [10:20:12]line ИНН: 02508201610067 [10:20:12]line Контрольно-Кассовый Чек [10:20:12]line ПРОДАЖА [10:20:12]line ТРК (МРК, ГНК) : 21 [10:20:12]line Товар: 2710194210 [10:20:12]line ДТ(л)-К-5 [10:20:12]line 27.540 * 72.60 [10:20:12]line = 1999.40 [10:20:12]line НДС 12% НСП 1% [10:20:12]line > о реализуемом товаре [10:20:12]line ИТОГО: 1999.40 [10:20:12]line НСП 1% : 17.69 [10:20:12]line НДС 12% : 212.33 [10:20:12]line Наличными: 0.00 [10:20:12]line Безнал.: 1999.40 [10:20:12]line Место: АЗС № 140 "Партнер Нефть" [10:20:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:20:12]line СНО: Общий режим [10:20:12]line Чек 90 14.07.2024 10:20 [10:20:12]line Смена: 463 ФФД: 1.0 [10:20:12]line ЗНМ: 0300000129 [10:20:12]line РНМ: 0000000000090858 [10:20:12]line Версия ККМ: 001 [10:20:12]line Платежная система: O! деньги [10:20:12]line ФМ: 0000000000874899 [10:20:12]line ФД: 162778 [10:20:12]line ФПД: 87513962644504 [10:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102011&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162778&fm=87513962644504&tin=02508201610067®Number=0000000000090858&sum=199940 [10:20:12]OFD Sender: Processing packet 162778 [packets to send 106, broken 105] [10:20:12]ProducePacketName [10:20:12]name=ofd_packets/00162778 [10:20:12]OFD Sender: To server: pG, [10:20:12]CommunicateWithHost lk.salyk.kg:30040 [10:20:12]ConnectInit lk.salyk.kg [10:20:12]written 0, free lines is 4095 [10:20:12]Connected sock=10 [10:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 54 53 08 01 19 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B A6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DA 7B 02 00 35 04 06 00 4F 97 EE A8 04 18 20 28 2B AF 0C CE 84 5F [10:20:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A3 39 47 00 0D 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DA 7B 02 00 F4 03 04 00 69 52 93 66 B6 04 01 00 00 3E A1 BE BF 6B EA D7 10 [10:20:13]CommunicateWithHost err = 0 [10:20:13]CheckOFDResponse [10:20:13]1017 (14) - 77093643461234 [10:20:13]1041 (16) - 0000000000874899 [10:20:13]1040 (4) - 162778 [10:20:13]1012 (4) - 14.07.2024 04:22 [10:20:13]1206 (1) - 0 [10:20:13]OFD Sender: Remove packet 162778 [10:20:13]ProducePacketName [10:20:13]name=ofd_packets/00162778 [10:20:13]NVStorageDeleteData [10:20:13]Write to MH i2c: 01 00 00 9E 0D AB [10:20:13]Write i2c OK [10:20:13]MH_I2C_Read... [10:20:13]Read from MH i2c: 01 [10:20:13]MH_I2C_Read... [10:20:13]Read from MH i2c: 01 07 00 [10:20:13]MH_I2C_Read... [10:20:13]Read from MH i2c: 01 07 00 9E 0D 00 00 00 00 00 E6 0C A4 [10:20:13]RasterBufferAndPrint [10:20:13]line [10:20:13]line [10:20:13]line [10:20:13]line [10:20:13]line [10:20:13]written 0, free lines is 3307 [10:20:13]MH_Cut [10:20:13]Write to MH i2c: D1 01 00 A5 0D 01 84 [10:20:13]Write i2c OK [10:20:13]MH_I2C_Read... [10:20:13]Read from MH i2c: D1 [10:20:13]MH_I2C_Read... [10:20:13]Read from MH i2c: D1 01 00 [10:20:13]MH_I2C_Read... [10:20:13]Read from MH i2c: D1 01 00 A5 0D 00 83 [10:20:13]Write to MH i2c: 01 00 00 A6 0D B3 [10:20:13]Write i2c OK [10:20:13]MH_I2C_Read... [10:20:13]OFD Sender: No OFD packet to send [10:20:13]*** Cut start [10:20:13]*** Purtial cut [10:20:13]*** CUTSNS_PIN = 0 [10:20:14]*** Stage 1: CUTSNS_PIN = 1 [10:20:15]Read from MH i2c: 01 [10:20:15]MH_I2C_Read... [10:20:15]*** Stop cut motor [10:20:15]*** Cut end [10:20:15]Read from MH i2c: 01 07 00 [10:20:15]MH_I2C_Read... [10:20:15]Read from MH i2c: 01 07 00 A6 0D 00 00 00 00 00 FF 0F C8 [10:20:15]process_action close_receipt done [10:20:15]requested_data is exist [10:20:15]produce_requested_data [10:20:15]requested_item fm.sn is exist - process it [10:20:15]wFMCommunicate request_size=4 [10:20:15]MH_SAM_APDU [10:20:15]CAPDU: 80 11 00 00 [10:20:15]Write to MH i2c: E2 08 00 A7 0D 80 11 00 00 00 00 00 00 2E [10:20:15]Write i2c OK [10:20:15]MH_I2C_Read... [10:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:16]Read from MH i2c: E2 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 17 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 17 00 A7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8E [10:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:20:16]wFMCommunicate OK [10:20:16]requested_item fd.num is exist - process it [10:20:16]SAM_PROTO_GetFieldsCounters [10:20:16]wFMCommunicate request_size=4 [10:20:16]MH_SAM_APDU [10:20:16]CAPDU: 80 13 00 00 [10:20:16]Write to MH i2c: E2 08 00 A8 0D 80 13 00 00 00 00 00 00 31 [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:16]Read from MH i2c: E2 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 62 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 62 00 A8 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DA 7B 02 00 0E 04 04 00 CF 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 99 [10:20:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DA 7B 02 00 0E 04 04 00 CF 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 [10:20:16]wFMCommunicate OK [10:20:16]SAM_PROTO_GetFieldsCounters done [10:20:16]requested_item shift.num is exist - process it [10:20:16]requested_item shift.opened is exist - process it [10:20:16]req_shift_opened [10:20:16]FM_GetShiftState [10:20:16]SAM_PROTO_GetShiftState [10:20:16]wFMCommunicate request_size=4 [10:20:16]MH_SAM_APDU [10:20:16]CAPDU: 80 13 01 00 [10:20:16]Write to MH i2c: E2 08 00 A9 0D 80 13 01 00 00 00 00 00 33 [10:20:16]Write i2c OK [10:20:16]MH_I2C_Read... [10:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:16]Read from MH i2c: E2 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 0E 00 [10:20:16]MH_I2C_Read... [10:20:16]Read from MH i2c: E2 0E 00 A9 0D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 69 [10:20:16]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:20:16]wFMCommunicate OK [10:20:16]SAM_PROTO_GetShiftState done [10:20:16]FM_GetShiftState done [10:20:16]req_shift_opened done [10:20:16]requested_item shift.open_date is exist - process it [10:20:16]req_shift_open_date [10:20:16]req_shift_open_date done [10:20:16]produce_requested_data done [10:20:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162778,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:20:16]process_action_free close_receipt [10:20:16]json_value_free [10:20:16]json_value_free done [10:20:16]process_json_proto returns [10:20:16]Send response to host [10:20:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162778,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:20:16]free response buf [10:20:16]execute_script done [10:20:16]execute_script returns [10:20:16]free content buf [10:20:16]Sock 7.Close socket [10:20:16]Sock 7.Thread stoped [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]accept exits with 9 [10:22:43]New connection [10:22:43]New thread 3066735972 created [10:22:43]Thread 3066879332 joined [10:22:43]Waiting for new connection... [10:22:43] Sock 9.Parse request [10:22:43]Sock 9.Check first char [10:22:43]Sock 9.First char is OK [10:22:43]request: POST /json_proto HTTP/1.0 [10:22:43]Method: POST [10:22:43]URL: /json_proto [10:22:43]Method is POST - this is cgi request [10:22:43]url: /json_proto [10:22:43]query_string will be loaded in cgi processing [10:22:43]execute_cgi json_proto POST (null) [10:22:43]execute_cgi path=json_proto method=POST [10:22:43]POST find Content-Length [10:22:43]Host: 172.17.39.67:8080 [10:22:43]Content-Length: 676 [10:22:43]Content-Type: application/json [10:22:43] [10:22:43]POST finish read [10:22:43]Found Content-Length = 676 [10:22:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 29.720, "sum" : 2000.16, "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:22:43]execute_script... [10:22: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)1319370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 29.720, "sum" : 2000.16, "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:22:43]POST & json_proto [10:22:43]process_json_proto [10:22:43]json parsed OK: [10:22:43]protocol is kg_v1.0 [10:22:43]action value=close_receipt [10:22:43]process_action close_receipt [10:22:43]cmd_close_receipt [10:22:43]MH_GetDate [10:22:43]Write to MH i2c: F0 00 00 AA 0D A6 [10:22:43]Write i2c OK [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: F0 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: F0 09 00 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: F0 09 00 AA 0D 00 F4 A6 93 66 B6 85 93 66 76 [10:22:43]GetLastDocTimeStamp 1720952411 [10:22:43]current date 1720952564 [10:22:43]FM_GetShiftState [10:22:43]SAM_PROTO_GetShiftState [10:22:43]wFMCommunicate request_size=4 [10:22:43]MH_SAM_APDU [10:22:43]CAPDU: 80 13 01 00 [10:22:43]Write to MH i2c: E2 08 00 AB 0D 80 13 01 00 00 00 00 00 35 [10:22:43]Write i2c OK [10:22:43]MH_I2C_Read... [10:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:43]Read from MH i2c: E2 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: E2 0E 00 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: E2 0E 00 AB 0D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6B [10:22:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:22:43]wFMCommunicate OK [10:22:43]SAM_PROTO_GetShiftState done [10:22:43]FM_GetShiftState done [10:22:43]opened in 1720915483 [10:22:43]opened+sec_in_day 1721001883 [10:22:43]quantity*price = 200015 [10:22:43]sum+1 = 200017 [10:22:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 91 14.07.2024 10:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162779 ФПД: 43782079449466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102244&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162779&fm=43782079449466&tin=02508201610067®Number=0000000000090858&sum=200000 [10:22:44]StoreToDocumentArchive [10:22:44]shift 463 fd 162779 [10:22:44]save to /storage/0463/doc_00162779 [10:22:44]save last doc name /storage/0463/doc_00162779 to /storage/kkm_last_doc_name [10:22:44]save OK [10:22:44]Clear old archive folders... [10:22:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:22:44]tlvbuf is 012F56F0 [10:22:44]SAM_PROTO_ClearQueue [10:22:44]wFMCommunicate request_size=4 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 09 00 00 [10:22:44]Write to MH i2c: E2 08 00 B8 0D 80 09 00 00 00 00 00 00 37 [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:44]Read from MH i2c: E2 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 B8 0D 00 90 00 39 [10:22:44]RAPDU: 90 00 [10:22:44]wFMCommunicate OK [10:22:44]SAM_PROTO_ClearQueue done [10:22:44]KKMCreateOFDPacket [10:22:44]OFDProtocolAddRootSTLVToBuf [10:22:44]FM_MakeSignedData [10:22:44]FM_MakeSignedData [10:22:44]SAM_PROTO_SignData [10:22:44]wFMCommunicate request_size=4 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 0D 01 02 [10:22:44]Write to MH i2c: E2 08 00 B9 0D 80 0D 01 02 00 00 00 00 3F [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:44]Read from MH i2c: E2 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 B9 0D 00 90 00 3A [10:22:44]RAPDU: 90 00 [10:22:44]wFMCommunicate OK [10:22:44]wFMCommunicate request_size=255 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F4 A6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DB 7B 02 00 35 04 06 00 [10:22:44]Write to MH i2c: E2 02 01 BA 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F4 A6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DB 7B 02 00 35 04 06 00 00 00 C6 [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:45]Read from MH i2c: E2 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 03 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 03 00 BA 0D 00 90 00 3B [10:22:45]RAPDU: 90 00 [10:22:45]wFMCommunicate OK [10:22:45]wFMCommunicate request_size=11 [10:22:45]MH_SAM_APDU [10:22:45]CAPDU: 80 0D 02 02 06 27 D1 CF 4B 09 7A [10:22:45]Write to MH i2c: E2 0E 00 BB 0D 80 0D 02 02 06 00 27 D1 CF 4B 09 7A 00 00 E3 [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:45]Read from MH i2c: E2 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 03 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 03 00 BB 0D 00 90 00 3C [10:22:45]RAPDU: 90 00 [10:22:45]wFMCommunicate OK [10:22:45]wFMCommunicate request_size=4 [10:22:45]MH_SAM_APDU [10:22:45]CAPDU: 80 0D 03 02 [10:22:45]Write to MH i2c: E2 08 00 BC 0D 80 0D 03 02 00 00 00 00 44 [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:45]Read from MH i2c: E2 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 0B 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 0B 00 BC 0D 00 38 68 8A 90 96 21 77 E0 90 00 0D [10:22:45]RAPDU: 38 68 8A 90 96 21 77 E0 90 00 [10:22:45]wFMCommunicate OK [10:22:45]SAM_PROTO_SignData done [10:22:45]FM_MakeSignedData done [10:22:45]CreateOFDProtocolMessage [10:22:45]wFMCommunicate request_size=4 [10:22:45]MH_SAM_APDU [10:22:45]CAPDU: 80 11 00 00 [10:22:45]Write to MH i2c: E2 08 00 BD 0D 80 11 00 00 00 00 00 00 44 [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:45]Read from MH i2c: E2 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 17 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: E2 17 00 BD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A4 [10:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:22:45]wFMCommunicate OK [10:22:45]CreateOFDProtocolMessage done [10:22:45]OFDSenderStorePacket 162779 [10:22:45]StoreOFDPacket docnum=162779 [10:22:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D6 2E 08 01 B7 A5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F4 A6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DB 7B 02 00 35 04 06 00 27 D1 CF 4B 09 7A 38 68 8A 90 96 21 77 E0 [10:22:45]CheckFolder [10:22:45]dirname=/storage/ofd_packets [10:22:45]CheckFolder done [10:22:45]ProducePacketName [10:22:45]name=ofd_packets/00162779 [10:22:45]NVStorageSaveData ofd_packets/00162779 [10:22:45]File name is /storage/ofd_packets/00162779 [10:22:45]Write 302 bytes [10:22:45]NVStorageSaveData done [10:22:45]OFDSenderStorePacket done [10:22:45]KKMCreateOFDPacket done [10:22:45]NVStorageSaveData kkm_last_timestamp [10:22:45]File name is /storage/kkm_last_timestamp [10:22:45]Write 4 bytes [10:22:45]NVStorageSaveData done [10:22:45]ExternCall_PrintAddStr [10:22:45]wPrintStart [10:22:45]Write to MH i2c: 01 00 00 BE 0D CB [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 07 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 07 00 BE 0D 00 00 00 00 00 FF 0F E0 [10:22:45]RasterBufferAndPrint [10:22:45]line Счет N : (1)1319370 [10:22:45]line ИНН: 02508201610067 [10:22:45]line Контрольно-Кассовый Чек [10:22:45]line ПРОДАЖА [10:22:45]line ТРК (МРК, ГНК) : 42 [10:22:45]line Товар: 2710124130 [10:22:45]line Super-92-К-5 [10:22:45]line 29.720 * 67.30 [10:22:45]line = 2000.16 [10:22:45]line НДС 12% НСП 1% [10:22:45]line > о реализуемом товаре [10:22:45]line ОКРУГЛЕНИЕ: -0.16 [10:22:45]line ИТОГО: 2000.00 [10:22:45]line Внесено: 2000.00 [10:22:45]line СДАЧА: 0.00 [10:22:45]line НСП 1% : 17.70 [10:22:45]line НДС 12% : 212.41 [10:22:45]line Наличными: 2000.00 [10:22:45]line Безнал.: 0.00 [10:22:45]line Место: АЗС № 140 "Партнер Нефть" [10:22:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:22:45]line СНО: Общий режим [10:22:45]line Чек 91 14.07.2024 10:22 [10:22:45]line Смена: 463 ФФД: 1.0 [10:22:45]line ЗНМ: 0300000129 [10:22:45]line РНМ: 0000000000090858 [10:22:45]line Версия ККМ: 001 [10:22:45]line ФМ: 0000000000874899 [10:22:45]line ФД: 162779 [10:22:45]line ФПД: 43782079449466 [10:22:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102244&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162779&fm=43782079449466&tin=02508201610067®Number=0000000000090858&sum=200000 [10:22:45]written 0, free lines is 4095 [10:22:45]OFD Sender: Processing packet 162779 [packets to send 106, broken 105] [10:22:45]ProducePacketName [10:22:45]name=ofd_packets/00162779 [10:22:45]OFD Sender: To server: pG, [10:22:45]CommunicateWithHost lk.salyk.kg:30040 [10:22:45]ConnectInit lk.salyk.kg [10:22:45]Connected sock=10 [10:22:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D6 2E 08 01 B7 A5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 F4 A6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DB 7B 02 00 35 04 06 00 27 D1 CF 4B 09 7A 38 68 8A 90 96 21 77 E0 [10:22:45]Write to MH i2c: 01 00 00 E9 0D F6 [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 07 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 07 00 E9 0D 00 00 00 00 00 DC 0C E5 [10:22:45]RasterBufferAndPrint [10:22:45]line [10:22:45]line [10:22:45]line [10:22:45]line [10:22:45]line [10:22:45]written 0, free lines is 3298 [10:22:45]MH_Cut [10:22:45]Write to MH i2c: D1 01 00 F0 0D 01 CF [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: D1 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: D1 01 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: D1 01 00 F0 0D 00 CE [10:22:45]Write to MH i2c: 01 00 00 F1 0D FE [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0B 1A 47 00 0C 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DB 7B 02 00 F4 03 04 00 02 53 93 66 B6 04 01 00 00 B6 74 5E 36 F0 6F A7 41 [10:22:45]CommunicateWithHost err = 0 [10:22:45]CheckOFDResponse [10:22:45]1017 (14) - 77093643461234 [10:22:45]1041 (16) - 0000000000874899 [10:22:45]1040 (4) - 162779 [10:22:45]1012 (4) - 14.07.2024 04:24 [10:22:45]1206 (1) - 0 [10:22:45]OFD Sender: Remove packet 162779 [10:22:45]ProducePacketName [10:22:45]name=ofd_packets/00162779 [10:22:45]NVStorageDeleteData [10:22:46]OFD Sender: No OFD packet to send [10:22:46]*** Cut start [10:22:46]*** Purtial cut [10:22:46]*** Stage 1: CUTSNS_PIN = 1 [10:22:46]Read from MH i2c: 01 [10:22:46]MH_I2C_Read... [10:22:46]*** Stop cut motor [10:22:46]*** Cut end [10:22:46]Read from MH i2c: 01 07 00 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: 01 07 00 F1 0D 00 00 00 00 00 FF 0F 13 [10:22:46]process_action close_receipt done [10:22:46]requested_data is exist [10:22:46]produce_requested_data [10:22:46]requested_item fm.sn is exist - process it [10:22:46]wFMCommunicate request_size=4 [10:22:46]MH_SAM_APDU [10:22:46]CAPDU: 80 11 00 00 [10:22:46]Write to MH i2c: E2 08 00 F2 0D 80 11 00 00 00 00 00 00 79 [10:22:46]Write i2c OK [10:22:46]MH_I2C_Read... [10:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:46]Read from MH i2c: E2 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: E2 17 00 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: E2 17 00 F2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D9 [10:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:22:46]wFMCommunicate OK [10:22:46]requested_item fd.num is exist - process it [10:22:46]SAM_PROTO_GetFieldsCounters [10:22:46]wFMCommunicate request_size=4 [10:22:46]MH_SAM_APDU [10:22:46]CAPDU: 80 13 00 00 [10:22:46]Write to MH i2c: E2 08 00 F3 0D 80 13 00 00 00 00 00 00 7C [10:22:46]Write i2c OK [10:22:46]MH_I2C_Read... [10:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:46]Read from MH i2c: E2 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: E2 62 00 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: E2 62 00 F3 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DB 7B 02 00 0E 04 04 00 CF 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 E8 [10:22:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DB 7B 02 00 0E 04 04 00 CF 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 [10:22:46]wFMCommunicate OK [10:22:46]SAM_PROTO_GetFieldsCounters done [10:22:46]requested_item shift.num is exist - process it [10:22:46]requested_item shift.opened is exist - process it [10:22:46]req_shift_opened [10:22:46]FM_GetShiftState [10:22:46]SAM_PROTO_GetShiftState [10:22:46]wFMCommunicate request_size=4 [10:22:46]MH_SAM_APDU [10:22:46]CAPDU: 80 13 01 00 [10:22:46]Write to MH i2c: E2 08 00 F4 0D 80 13 01 00 00 00 00 00 7E [10:22:46]Write i2c OK [10:22:46]MH_I2C_Read... [10:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:47]Read from MH i2c: E2 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 0E 00 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 0E 00 F4 0D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B4 [10:22:47]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:22:47]wFMCommunicate OK [10:22:47]SAM_PROTO_GetShiftState done [10:22:47]FM_GetShiftState done [10:22:47]req_shift_opened done [10:22:47]requested_item shift.open_date is exist - process it [10:22:47]req_shift_open_date [10:22:47]req_shift_open_date done [10:22:47]produce_requested_data done [10:22:47]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162779,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:22:47]process_action_free close_receipt [10:22:47]json_value_free [10:22:47]json_value_free done [10:22:47]process_json_proto returns [10:22:47]Send response to host [10:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162779,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:22:47]free response buf [10:22:47]execute_script done [10:22:47]execute_script returns [10:22:47]free content buf [10:22:47]Sock 9.Close socket [10:22:47]Sock 9.Thread stoped [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:00]accept exits with 7 [10:23:00]New connection [10:23:00]New thread 3066879332 created [10:23:00]Thread 3066735972 joined [10:23:00]Waiting for new connection... [10:23:00] Sock 7.Parse request [10:23:00]Sock 7.Check first char [10:23:00]Sock 7.First char is OK [10:23:00]request: POST /json_proto HTTP/1.0 [10:23:00]Method: POST [10:23:00]URL: /json_proto [10:23:00]Method is POST - this is cgi request [10:23:00]url: /json_proto [10:23:00]query_string will be loaded in cgi processing [10:23:00]execute_cgi json_proto POST (null) [10:23:00]execute_cgi path=json_proto method=POST [10:23:00]POST find Content-Length [10:23:00]Host: 172.17.39.67:8080 [10:23:00]Content-Length: 688 [10:23:00]Content-Type: application/json [10:23:00] [10:23:00]POST finish read [10:23:00]Found Content-Length = 688 [10:23:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 40.020, "sum" : 2905.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2905.00, "total" : 2905.00, "payments": [ { "type": 0, "sum" : 2905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:00]execute_script... [10:23: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)1319369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 40.020, "sum" : 2905.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2905.00, "total" : 2905.00, "payments": [ { "type": 0, "sum" : 2905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:00]POST & json_proto [10:23:00]process_json_proto [10:23:00]json parsed OK: [10:23:00]protocol is kg_v1.0 [10:23:00]action value=close_receipt [10:23:00]process_action close_receipt [10:23:00]cmd_close_receipt [10:23:00]MH_GetDate [10:23:00]Write to MH i2c: F0 00 00 F5 0D F1 [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: F0 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: F0 09 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: F0 09 00 F5 0D 00 05 A7 93 66 B6 85 93 66 D3 [10:23:00]GetLastDocTimeStamp 1720952564 [10:23:00]current date 1720952581 [10:23:00]FM_GetShiftState [10:23:00]SAM_PROTO_GetShiftState [10:23:00]wFMCommunicate request_size=4 [10:23:00]MH_SAM_APDU [10:23:00]CAPDU: 80 13 01 00 [10:23:00]Write to MH i2c: E2 08 00 F6 0D 80 13 01 00 00 00 00 00 80 [10:23:00]Write i2c OK [10:23:00]MH_I2C_Read... [10:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:00]Read from MH i2c: E2 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 0E 00 [10:23:00]MH_I2C_Read... [10:23:00]Read from MH i2c: E2 0E 00 F6 0D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B6 [10:23:00]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:23:00]wFMCommunicate OK [10:23:00]SAM_PROTO_GetShiftState done [10:23:00]FM_GetShiftState done [10:23:00]opened in 1720915483 [10:23:00]opened+sec_in_day 1721001883 [10:23:00]quantity*price = 290545 [10:23:00]sum+1 = 290546 [10:23:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 2905.00 Внесено: 2905.00 СДАЧА: 0.00 НСП 1% : 25.71 НДС 12% : 308.54 Наличными: 2905.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 92 14.07.2024 10:23 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162780 ФПД: 19212150575132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102301&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162780&fm=19212150575132&tin=02508201610067®Number=0000000000090858&sum=290500 [10:23:01]StoreToDocumentArchive [10:23:01]shift 463 fd 162780 [10:23:01]save to /storage/0463/doc_00162780 [10:23:01]save last doc name /storage/0463/doc_00162780 to /storage/kkm_last_doc_name [10:23:01]save OK [10:23:01]Clear old archive folders... [10:23:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:23:01]tlvbuf is 0122AA10 [10:23:01]SAM_PROTO_ClearQueue [10:23:01]wFMCommunicate request_size=4 [10:23:01]MH_SAM_APDU [10:23:01]CAPDU: 80 09 00 00 [10:23:01]Write to MH i2c: E2 08 00 03 0E 80 09 00 00 00 00 00 00 83 [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:01]Read from MH i2c: E2 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: E2 03 00 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: E2 03 00 03 0E 00 90 00 85 [10:23:01]RAPDU: 90 00 [10:23:01]wFMCommunicate OK [10:23:01]SAM_PROTO_ClearQueue done [10:23:01]KKMCreateOFDPacket [10:23:01]OFDProtocolAddRootSTLVToBuf [10:23:01]FM_MakeSignedData [10:23:01]FM_MakeSignedData [10:23:01]SAM_PROTO_SignData [10:23:01]wFMCommunicate request_size=4 [10:23:01]MH_SAM_APDU [10:23:01]CAPDU: 80 0D 01 02 [10:23:01]Write to MH i2c: E2 08 00 04 0E 80 0D 01 02 00 00 00 00 8B [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:01]Read from MH i2c: E2 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: E2 03 00 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: E2 03 00 04 0E 00 90 00 86 [10:23:01]RAPDU: 90 00 [10:23:01]wFMCommunicate OK [10:23:01]wFMCommunicate request_size=255 [10:23:01]MH_SAM_APDU [10:23:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F1 6E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 78 00 00 00 00 07 04 06 00 C4 6E 04 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 05 A7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DC 7B 02 00 35 04 06 00 [10:23:01]Write to MH i2c: E2 02 01 05 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F1 6E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 78 00 00 00 00 07 04 06 00 C4 6E 04 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 05 A7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DC 7B 02 00 35 04 06 00 00 00 56 [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 03 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 03 00 05 0E 00 90 00 87 [10:23:02]RAPDU: 90 00 [10:23:02]wFMCommunicate OK [10:23:02]wFMCommunicate request_size=11 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 0D 02 02 06 11 79 2D 69 10 1C [10:23:02]Write to MH i2c: E2 0E 00 06 0E 80 0D 02 02 06 00 11 79 2D 69 10 1C 00 00 E6 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 03 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 03 00 06 0E 00 90 00 88 [10:23:02]RAPDU: 90 00 [10:23:02]wFMCommunicate OK [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 0D 03 02 [10:23:02]Write to MH i2c: E2 08 00 07 0E 80 0D 03 02 00 00 00 00 90 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0B 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0B 00 07 0E 00 61 46 D2 18 E7 9C CC DF 90 00 50 [10:23:02]RAPDU: 61 46 D2 18 E7 9C CC DF 90 00 [10:23:02]wFMCommunicate OK [10:23:02]SAM_PROTO_SignData done [10:23:02]FM_MakeSignedData done [10:23:02]CreateOFDProtocolMessage [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 11 00 00 [10:23:02]Write to MH i2c: E2 08 00 08 0E 80 11 00 00 00 00 00 00 90 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 17 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 17 00 08 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F0 [10:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:23:02]wFMCommunicate OK [10:23:02]CreateOFDProtocolMessage done [10:23:02]OFDSenderStorePacket 162780 [10:23:02]StoreOFDPacket docnum=162780 [10:23:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 47 BA 08 01 D4 DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F1 6E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 78 00 00 00 00 07 04 06 00 C4 6E 04 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 05 A7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DC 7B 02 00 35 04 06 00 11 79 2D 69 10 1C 61 46 D2 18 E7 9C CC DF [10:23:02]CheckFolder [10:23:02]dirname=/storage/ofd_packets [10:23:02]CheckFolder done [10:23:02]ProducePacketName [10:23:02]name=ofd_packets/00162780 [10:23:02]NVStorageSaveData ofd_packets/00162780 [10:23:02]File name is /storage/ofd_packets/00162780 [10:23:02]Write 302 bytes [10:23:02]NVStorageSaveData done [10:23:02]OFDSenderStorePacket done [10:23:02]KKMCreateOFDPacket done [10:23:02]NVStorageSaveData kkm_last_timestamp [10:23:02]File name is /storage/kkm_last_timestamp [10:23:02]Write 4 bytes [10:23:02]NVStorageSaveData done [10:23:02]OFD Sender: Processing packet 162780 [packets to send 106, broken 105] [10:23:02]ProducePacketName [10:23:02]name=ofd_packets/00162780 [10:23:02]OFD Sender: To server: pG, [10:23:02]CommunicateWithHost lk.salyk.kg:30040 [10:23:02]ConnectInit lk.salyk.kg [10:23:02]ExternCall_PrintAddStr [10:23:02]wPrintStart [10:23:02]Write to MH i2c: 01 00 00 09 0E 17 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: 01 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: 01 07 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: 01 07 00 09 0E 00 00 00 00 00 FF 0F 2C [10:23:02]RasterBufferAndPrint [10:23:02]line Счет N : (1)1319369 [10:23:02]line ИНН: 02508201610067 [10:23:02]line Контрольно-Кассовый Чек [10:23:02]line ПРОДАЖА [10:23:02]line ТРК (МРК, ГНК) : 61 [10:23:02]line Товар: 2710194210 [10:23:02]line ДТ(л)-К-5 [10:23:02]line 40.020 * 72.60 [10:23:02]line = 2905.45 [10:23:02]line НДС 12% НСП 1% [10:23:02]line > о реализуемом товаре [10:23:02]line ОКРУГЛЕНИЕ: -0.45 [10:23:02]line ИТОГО: 2905.00 [10:23:02]line Внесено: 2905.00 [10:23:02]line СДАЧА: 0.00 [10:23:02]line НСП 1% : 25.71 [10:23:02]line НДС 12% : 308.54 [10:23:02]line Наличными: 2905.00 [10:23:02]line Безнал.: 0.00 [10:23:02]line Место: АЗС № 140 "Партнер Нефть" [10:23:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:23:02]line СНО: Общий режим [10:23:02]line Чек 92 14.07.2024 10:23 [10:23:02]line Смена: 463 ФФД: 1.0 [10:23:02]line ЗНМ: 0300000129 [10:23:02]line РНМ: 0000000000090858 [10:23:02]line Версия ККМ: 001 [10:23:02]line ФМ: 0000000000874899 [10:23:02]line ФД: 162780 [10:23:02]line ФПД: 19212150575132 [10:23:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102301&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162780&fm=19212150575132&tin=02508201610067®Number=0000000000090858&sum=290500 [10:23:02]Connected sock=11 [10:23:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 47 BA 08 01 D4 DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F1 6E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 78 00 00 00 00 07 04 06 00 C4 6E 04 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 05 A7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DC 7B 02 00 35 04 06 00 11 79 2D 69 10 1C 61 46 D2 18 E7 9C CC DF [10:23:02]written 0, free lines is 4095 [10:23:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 05 A3 47 00 57 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 34 38 39 39 10 04 04 00 DC 7B 02 00 F4 03 04 00 13 53 93 66 B6 04 01 00 00 DA 1D 0A 48 A2 F7 AB 9D [10:23:02]CommunicateWithHost err = 0 [10:23:02]CheckOFDResponse [10:23:02]1017 (14) - 77093643461234 [10:23:02]1041 (16) - 0000000000874899 [10:23:02]1040 (4) - 162780 [10:23:02]1012 (4) - 14.07.2024 04:24 [10:23:02]1206 (1) - 0 [10:23:02]OFD Sender: Remove packet 162780 [10:23:02]ProducePacketName [10:23:02]name=ofd_packets/00162780 [10:23:02]NVStorageDeleteData [10:23:03]Write to MH i2c: 01 00 00 34 0E 42 [10:23:03]Write i2c OK [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: 01 [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: 01 07 00 [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: 01 07 00 34 0E 00 00 00 00 00 DD 0C 32 [10:23:03]RasterBufferAndPrint [10:23:03]line [10:23:03]line [10:23:03]line [10:23:03]line [10:23:03]line [10:23:03]written 0, free lines is 3298 [10:23:03]MH_Cut [10:23:03]Write to MH i2c: D1 01 00 3B 0E 01 1B [10:23:03]Write i2c OK [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: D1 [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: D1 01 00 [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: D1 01 00 3B 0E 00 1A [10:23:03]Write to MH i2c: 01 00 00 3C 0E 4A [10:23:03]Write i2c OK [10:23:03]MH_I2C_Read... [10:23:03]OFD Sender: No OFD packet to send [10:23:03]*** Cut start [10:23:03]*** Purtial cut [10:23:03]*** CUTSNS_PIN = 0 [10:23:04]*** Stage 1: CUTSNS_PIN = 1 [10:23:05]Read from MH i2c: 01 [10:23:05]MH_I2C_Read... [10:23:05]*** Stop cut motor [10:23:05]*** Cut end [10:23:05]Read from MH i2c: 01 07 00 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: 01 07 00 3C 0E 00 00 00 00 00 FF 0F 5F [10:23:05]process_action close_receipt done [10:23:05]requested_data is exist [10:23:05]produce_requested_data [10:23:05]requested_item fm.sn is exist - process it [10:23:05]wFMCommunicate request_size=4 [10:23:05]MH_SAM_APDU [10:23:05]CAPDU: 80 11 00 00 [10:23:05]Write to MH i2c: E2 08 00 3D 0E 80 11 00 00 00 00 00 00 C5 [10:23:05]Write i2c OK [10:23:05]MH_I2C_Read... [10:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:05]Read from MH i2c: E2 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: E2 17 00 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: E2 17 00 3D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 25 [10:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:23:05]wFMCommunicate OK [10:23:05]requested_item fd.num is exist - process it [10:23:05]SAM_PROTO_GetFieldsCounters [10:23:05]wFMCommunicate request_size=4 [10:23:05]MH_SAM_APDU [10:23:05]CAPDU: 80 13 00 00 [10:23:05]Write to MH i2c: E2 08 00 3E 0E 80 13 00 00 00 00 00 00 C8 [10:23:05]Write i2c OK [10:23:05]MH_I2C_Read... [10:23:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:06]Read from MH i2c: E2 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 62 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 62 00 3E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DC 7B 02 00 0E 04 04 00 CF 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 38 [10:23:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DC 7B 02 00 0E 04 04 00 CF 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 [10:23:06]wFMCommunicate OK [10:23:06]SAM_PROTO_GetFieldsCounters done [10:23:06]requested_item shift.num is exist - process it [10:23:06]requested_item shift.opened is exist - process it [10:23:06]req_shift_opened [10:23:06]FM_GetShiftState [10:23:06]SAM_PROTO_GetShiftState [10:23:06]wFMCommunicate request_size=4 [10:23:06]MH_SAM_APDU [10:23:06]CAPDU: 80 13 01 00 [10:23:06]Write to MH i2c: E2 08 00 3F 0E 80 13 01 00 00 00 00 00 CA [10:23:06]Write i2c OK [10:23:06]MH_I2C_Read... [10:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:06]Read from MH i2c: E2 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 0E 00 [10:23:06]MH_I2C_Read... [10:23:06]Read from MH i2c: E2 0E 00 3F 0E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 00 [10:23:06]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:23:06]wFMCommunicate OK [10:23:06]SAM_PROTO_GetShiftState done [10:23:06]FM_GetShiftState done [10:23:06]req_shift_opened done [10:23:06]requested_item shift.open_date is exist - process it [10:23:06]req_shift_open_date [10:23:06]req_shift_open_date done [10:23:06]produce_requested_data done [10:23:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162780,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:23:06]process_action_free close_receipt [10:23:06]json_value_free [10:23:06]json_value_free done [10:23:06]process_json_proto returns [10:23:06]Send response to host [10:23:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162780,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:23:06]free response buf [10:23:06]execute_script done [10:23:06]execute_script returns [10:23:06]free content buf [10:23:06]Sock 7.Close socket [10:23:06]Sock 7.Thread stoped [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:13]accept exits with 9 [10:24:13]New connection [10:24:13]New thread 3066735972 created [10:24:13]Thread 3066879332 joined [10:24:13]Waiting for new connection... [10:24:13] Sock 9.Parse request [10:24:13]Sock 9.Check first char [10:24:13]Sock 9.First char is OK [10:24:13]request: POST /json_proto HTTP/1.0 [10:24:13]Method: POST [10:24:13]URL: /json_proto [10:24:13]Method is POST - this is cgi request [10:24:13]url: /json_proto [10:24:13]query_string will be loaded in cgi processing [10:24:13]execute_cgi json_proto POST (null) [10:24:13]execute_cgi path=json_proto method=POST [10:24:13]POST find Content-Length [10:24:13]Host: 172.17.39.67:8080 [10:24:13]Content-Length: 683 [10:24:13]Content-Type: application/json [10:24:13] [10:24:13]POST finish read [10:24:13]Found Content-Length = 683 [10:24:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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" ] } } [10:24:13]execute_script... [10:24: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)1319371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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" ] } } [10:24:13]POST & json_proto [10:24:13]process_json_proto [10:24:13]json parsed OK: [10:24:13]protocol is kg_v1.0 [10:24:13]action value=close_receipt [10:24:13]process_action close_receipt [10:24:13]cmd_close_receipt [10:24:13]MH_GetDate [10:24:13]Write to MH i2c: F0 00 00 40 0E 3D [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: F0 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: F0 09 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: F0 09 00 40 0E 00 4E A7 93 66 B6 85 93 66 68 [10:24:13]GetLastDocTimeStamp 1720952581 [10:24:13]current date 1720952654 [10:24:13]FM_GetShiftState [10:24:13]SAM_PROTO_GetShiftState [10:24:13]wFMCommunicate request_size=4 [10:24:13]MH_SAM_APDU [10:24:13]CAPDU: 80 13 01 00 [10:24:13]Write to MH i2c: E2 08 00 41 0E 80 13 01 00 00 00 00 00 CC [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:13]Read from MH i2c: E2 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 0E 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 0E 00 41 0E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 02 [10:24:13]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:24:13]wFMCommunicate OK [10:24:13]SAM_PROTO_GetShiftState done [10:24:13]FM_GetShiftState done [10:24:13]opened in 1720915483 [10:24:13]opened+sec_in_day 1721001883 [10:24:13]quantity*price = 150064 [10:24:13]sum+1 = 150066 [10:24:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 93 14.07.2024 10:24 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162781 ФПД: 154153326999910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102414&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162781&fm=154153326999910&tin=02508201610067®Number=0000000000090858&sum=150000 [10:24:14]StoreToDocumentArchive [10:24:14]shift 463 fd 162781 [10:24:14]save to /storage/0463/doc_00162781 [10:24:14]save last doc name /storage/0463/doc_00162781 to /storage/kkm_last_doc_name [10:24:14]save OK [10:24:14]Clear old archive folders... [10:24:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:14]tlvbuf is B6EAF160 [10:24:14]SAM_PROTO_ClearQueue [10:24:14]wFMCommunicate request_size=4 [10:24:14]MH_SAM_APDU [10:24:14]CAPDU: 80 09 00 00 [10:24:14]Write to MH i2c: E2 08 00 4E 0E 80 09 00 00 00 00 00 00 CE [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:14]Read from MH i2c: E2 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 03 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 03 00 4E 0E 00 90 00 D0 [10:24:14]RAPDU: 90 00 [10:24:14]wFMCommunicate OK [10:24:14]SAM_PROTO_ClearQueue done [10:24:14]KKMCreateOFDPacket [10:24:14]OFDProtocolAddRootSTLVToBuf [10:24:14]FM_MakeSignedData [10:24:14]FM_MakeSignedData [10:24:14]SAM_PROTO_SignData [10:24:14]wFMCommunicate request_size=4 [10:24:14]MH_SAM_APDU [10:24:14]CAPDU: 80 0D 01 02 [10:24:14]Write to MH i2c: E2 08 00 4F 0E 80 0D 01 02 00 00 00 00 D6 [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:14]Read from MH i2c: E2 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 03 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 03 00 4F 0E 00 90 00 D1 [10:24:14]RAPDU: 90 00 [10:24:14]wFMCommunicate OK [10:24:14]wFMCommunicate request_size=255 [10:24:14]MH_SAM_APDU [10:24: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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 40 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 5D 00 00 00 F4 03 04 00 4E A7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DD 7B 02 00 35 04 06 00 8C [10:24:14]Write to MH i2c: E2 02 01 50 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 40 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 5D 00 00 00 F4 03 04 00 4E A7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DD 7B 02 00 35 04 06 00 8C 00 00 E2 [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 03 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 03 00 50 0E 00 90 00 D2 [10:24:15]RAPDU: 90 00 [10:24:15]wFMCommunicate OK [10:24:15]wFMCommunicate request_size=10 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 0D 02 02 05 33 9E 4B F9 66 [10:24:15]Write to MH i2c: E2 0D 00 51 0E 80 0D 02 02 05 00 33 9E 4B F9 66 00 00 5E [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 03 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 03 00 51 0E 00 90 00 D3 [10:24:15]RAPDU: 90 00 [10:24:15]wFMCommunicate OK [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 0D 03 02 [10:24:15]Write to MH i2c: E2 08 00 52 0E 80 0D 03 02 00 00 00 00 DB [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 0B 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 0B 00 52 0E 00 40 E2 51 42 9B 2E 0E 45 90 00 AD [10:24:15]RAPDU: 40 E2 51 42 9B 2E 0E 45 90 00 [10:24:15]wFMCommunicate OK [10:24:15]SAM_PROTO_SignData done [10:24:15]FM_MakeSignedData done [10:24:15]CreateOFDProtocolMessage [10:24:15]wFMCommunicate request_size=4 [10:24:15]MH_SAM_APDU [10:24:15]CAPDU: 80 11 00 00 [10:24:15]Write to MH i2c: E2 08 00 53 0E 80 11 00 00 00 00 00 00 DB [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:15]Read from MH i2c: E2 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 17 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: E2 17 00 53 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3B [10:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:24:15]wFMCommunicate OK [10:24:15]CreateOFDProtocolMessage done [10:24:15]OFDSenderStorePacket 162781 [10:24:15]StoreOFDPacket docnum=162781 [10:24:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 20 9E 07 01 15 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 40 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 5D 00 00 00 F4 03 04 00 4E A7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DD 7B 02 00 35 04 06 00 8C 33 9E 4B F9 66 40 E2 51 42 9B 2E 0E 45 [10:24:15]CheckFolder [10:24:15]dirname=/storage/ofd_packets [10:24:15]CheckFolder done [10:24:15]ProducePacketName [10:24:15]name=ofd_packets/00162781 [10:24:15]NVStorageSaveData ofd_packets/00162781 [10:24:15]File name is /storage/ofd_packets/00162781 [10:24:15]Write 301 bytes [10:24:15]NVStorageSaveData done [10:24:15]OFDSenderStorePacket done [10:24:15]KKMCreateOFDPacket done [10:24:15]NVStorageSaveData kkm_last_timestamp [10:24:15]File name is /storage/kkm_last_timestamp [10:24:15]Write 4 bytes [10:24:15]NVStorageSaveData done [10:24:15]ExternCall_PrintAddStr [10:24:15]wPrintStart [10:24:15]Write to MH i2c: 01 00 00 54 0E 62 [10:24:15]Write i2c OK [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: 01 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: 01 07 00 [10:24:15]MH_I2C_Read... [10:24:15]Read from MH i2c: 01 07 00 54 0E 00 00 00 00 00 FF 0F 77 [10:24:15]RasterBufferAndPrint [10:24:15]line Счет N : (1)1319371 [10:24:15]line ИНН: 02508201610067 [10:24:15]line Контрольно-Кассовый Чек [10:24:15]line ПРОДАЖА [10:24:15]line ТРК (МРК, ГНК) : 34 [10:24:15]line Товар: 2710124500 [10:24:15]line Аи-95-К-5 [10:24:15]line 20.170 * 74.40 [10:24:15]line = 1500.65 [10:24:15]line НДС 12% НСП 1% [10:24:15]line > о реализуемом товаре [10:24:15]line ОКРУГЛЕНИЕ: -0.65 [10:24:15]line ИТОГО: 1500.00 [10:24:15]line Внесено: 1500.00 [10:24:15]line СДАЧА: 0.00 [10:24:15]line НСП 1% : 13.28 [10:24:15]line НДС 12% : 159.36 [10:24:15]line Наличными: 1500.00 [10:24:15]line Безнал.: 0.00 [10:24:15]line Место: АЗС № 140 "Партнер Нефть" [10:24:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:24:15]line СНО: Общий режим [10:24:15]line Чек 93 14.07.2024 10:24 [10:24:15]line Смена: 463 ФФД: 1.0 [10:24:15]line ЗНМ: 0300000129 [10:24:15]line РНМ: 0000000000090858 [10:24:15]line Версия ККМ: 001 [10:24:15]line ФМ: 0000000000874899 [10:24:15]line ФД: 162781 [10:24:15]line ФПД: 154153326999910 [10:24:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T102414&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162781&fm=154153326999910&tin=02508201610067®Number=0000000000090858&sum=150000 [10:24:15]OFD Sender: Processing packet 162781 [packets to send 106, broken 105] [10:24:15]ProducePacketName [10:24:15]name=ofd_packets/00162781 [10:24:15]OFD Sender: To server: pG, [10:24:15]CommunicateWithHost lk.salyk.kg:30040 [10:24:15]ConnectInit lk.salyk.kg [10:24:15]written 0, free lines is 4095 [10:24:15]Connected sock=10 [10:24:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 20 9E 07 01 15 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 40 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 5D 00 00 00 F4 03 04 00 4E A7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DD 7B 02 00 35 04 06 00 8C 33 9E 4B F9 66 40 E2 51 42 9B 2E 0E 45 [10:24:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 54 E5 47 00 E9 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DD 7B 02 00 F4 03 04 00 5C 53 93 66 B6 04 01 00 00 EC 3C E9 11 4C F1 B3 7F [10:24:15]CommunicateWithHost err = 0 [10:24:15]CheckOFDResponse [10:24:15]1017 (14) - 77093643461234 [10:24:15]1041 (16) - 0000000000874899 [10:24:15]1040 (4) - 162781 [10:24:15]1012 (4) - 14.07.2024 04:26 [10:24:15]1206 (1) - 0 [10:24:15]OFD Sender: Remove packet 162781 [10:24:15]ProducePacketName [10:24:15]name=ofd_packets/00162781 [10:24:15]NVStorageDeleteData [10:24:16]Write to MH i2c: 01 00 00 7F 0E 8D [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: 01 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: 01 07 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: 01 07 00 7F 0E 00 00 00 00 00 DD 0C 7D [10:24:16]RasterBufferAndPrint [10:24:16]line [10:24:16]line [10:24:16]line [10:24:16]line [10:24:16]line [10:24:16]written 0, free lines is 3298 [10:24:16]MH_Cut [10:24:16]Write to MH i2c: D1 01 00 86 0E 01 66 [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: D1 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: D1 01 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: D1 01 00 86 0E 00 65 [10:24:16]Write to MH i2c: 01 00 00 87 0E 95 [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]OFD Sender: No OFD packet to send [10:24:16]*** Cut start [10:24:16]*** Purtial cut [10:24:16]*** Stage 1: CUTSNS_PIN = 1 [10:24:17]Read from MH i2c: 01 [10:24:17]MH_I2C_Read... [10:24:17]*** Stop cut motor [10:24:17]*** Cut end [10:24:17]Read from MH i2c: 01 07 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: 01 07 00 87 0E 00 00 00 00 00 FF 0F AA [10:24:17]process_action close_receipt done [10:24:17]requested_data is exist [10:24:17]produce_requested_data [10:24:17]requested_item fm.sn is exist - process it [10:24:17]wFMCommunicate request_size=4 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 11 00 00 [10:24:17]Write to MH i2c: E2 08 00 88 0E 80 11 00 00 00 00 00 00 10 [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:17]Read from MH i2c: E2 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 17 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 17 00 88 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 70 [10:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:24:17]wFMCommunicate OK [10:24:17]requested_item fd.num is exist - process it [10:24:17]SAM_PROTO_GetFieldsCounters [10:24:17]wFMCommunicate request_size=4 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 13 00 00 [10:24:17]Write to MH i2c: E2 08 00 89 0E 80 13 00 00 00 00 00 00 13 [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:17]Read from MH i2c: E2 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 62 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 62 00 89 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DD 7B 02 00 0E 04 04 00 CF 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 87 [10:24:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DD 7B 02 00 0E 04 04 00 CF 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:24:17]wFMCommunicate OK [10:24:17]SAM_PROTO_GetFieldsCounters done [10:24:17]requested_item shift.num is exist - process it [10:24:17]requested_item shift.opened is exist - process it [10:24:17]req_shift_opened [10:24:17]FM_GetShiftState [10:24:17]SAM_PROTO_GetShiftState [10:24:17]wFMCommunicate request_size=4 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 13 01 00 [10:24:17]Write to MH i2c: E2 08 00 8A 0E 80 13 01 00 00 00 00 00 15 [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:17]Read from MH i2c: E2 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 0E 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 0E 00 8A 0E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4B [10:24:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:24:17]wFMCommunicate OK [10:24:17]SAM_PROTO_GetShiftState done [10:24:17]FM_GetShiftState done [10:24:17]req_shift_opened done [10:24:17]requested_item shift.open_date is exist - process it [10:24:17]req_shift_open_date [10:24:17]req_shift_open_date done [10:24:17]produce_requested_data done [10:24:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162781,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:24:17]process_action_free close_receipt [10:24:17]json_value_free [10:24:17]json_value_free done [10:24:17]process_json_proto returns [10:24:17]Send response to host [10:24:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162781,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:24:17]free response buf [10:24:17]execute_script done [10:24:17]execute_script returns [10:24:17]free content buf [10:24:17]Sock 9.Close socket [10:24:17]Sock 9.Thread stoped [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:34]accept exits with 7 [10:32:34]New connection [10:32:34]New thread 3066879332 created [10:32:34]Thread 3066735972 joined [10:32:34]Waiting for new connection... [10:32:34] Sock 7.Parse request [10:32:34]Sock 7.Check first char [10:32:34]Sock 7.First char is OK [10:32:34]request: POST /json_proto HTTP/1.0 [10:32:34]Method: POST [10:32:34]URL: /json_proto [10:32:34]Method is POST - this is cgi request [10:32:34]url: /json_proto [10:32:34]query_string will be loaded in cgi processing [10:32:34]execute_cgi json_proto POST (null) [10:32:34]execute_cgi path=json_proto method=POST [10:32:34]POST find Content-Length [10:32:34]Host: 172.17.39.67:8080 [10:32:34]Content-Length: 672 [10:32:34]Content-Type: application/json [10:32:34] [10:32:34]POST finish read [10:32:34]Found Content-Length = 672 [10:32:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.410, "sum" : 700.59, "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" ] } } [10:32:34]execute_script... [10:32:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.410, "sum" : 700.59, "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" ] } } [10:32:34]POST & json_proto [10:32:34]process_json_proto [10:32:34]json parsed OK: [10:32:34]protocol is kg_v1.0 [10:32:34]action value=close_receipt [10:32:34]process_action close_receipt [10:32:34]cmd_close_receipt [10:32:34]MH_GetDate [10:32:34]Write to MH i2c: F0 00 00 8B 0E 88 [10:32:34]Write i2c OK [10:32:34]MH_I2C_Read... [10:32:34]Read from MH i2c: F0 [10:32:34]MH_I2C_Read... [10:32:34]Read from MH i2c: F0 09 00 [10:32:34]MH_I2C_Read... [10:32:34]Read from MH i2c: F0 09 00 8B 0E 00 42 A9 93 66 B6 85 93 66 A9 [10:32:34]GetLastDocTimeStamp 1720952654 [10:32:34]current date 1720953154 [10:32:34]FM_GetShiftState [10:32:34]SAM_PROTO_GetShiftState [10:32:34]wFMCommunicate request_size=4 [10:32:34]MH_SAM_APDU [10:32:34]CAPDU: 80 13 01 00 [10:32:34]Write to MH i2c: E2 08 00 8C 0E 80 13 01 00 00 00 00 00 17 [10:32:34]Write i2c OK [10:32:34]MH_I2C_Read... [10:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:34]Read from MH i2c: E2 [10:32:34]MH_I2C_Read... [10:32:34]Read from MH i2c: E2 0E 00 [10:32:34]MH_I2C_Read... [10:32:34]Read from MH i2c: E2 0E 00 8C 0E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4D [10:32:34]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:32:34]wFMCommunicate OK [10:32:34]SAM_PROTO_GetShiftState done [10:32:34]FM_GetShiftState done [10:32:34]opened in 1720915483 [10:32:34]opened+sec_in_day 1721001883 [10:32:34]quantity*price = 70059 [10:32:34]sum+1 = 70060 [10:32:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 94 14.07.2024 10:32 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162782 ФПД: 25507820058169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103234&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162782&fm=25507820058169&tin=02508201610067®Number=0000000000090858&sum=70000 [10:32:35]StoreToDocumentArchive [10:32:35]shift 463 fd 162782 [10:32:35]save to /storage/0463/doc_00162782 [10:32:35]save last doc name /storage/0463/doc_00162782 to /storage/kkm_last_doc_name [10:32:35]save OK [10:32:35]Clear old archive folders... [10:32:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:32:35]tlvbuf is 012229C0 [10:32:35]SAM_PROTO_ClearQueue [10:32:35]wFMCommunicate request_size=4 [10:32:35]MH_SAM_APDU [10:32:35]CAPDU: 80 09 00 00 [10:32:35]Write to MH i2c: E2 08 00 99 0E 80 09 00 00 00 00 00 00 19 [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:35]Read from MH i2c: E2 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 99 0E 00 90 00 1B [10:32:35]RAPDU: 90 00 [10:32:35]wFMCommunicate OK [10:32:35]SAM_PROTO_ClearQueue done [10:32:35]KKMCreateOFDPacket [10:32:35]OFDProtocolAddRootSTLVToBuf [10:32:35]FM_MakeSignedData [10:32:35]FM_MakeSignedData [10:32:35]SAM_PROTO_SignData [10:32:35]wFMCommunicate request_size=4 [10:32:35]MH_SAM_APDU [10:32:35]CAPDU: 80 0D 01 02 [10:32:35]Write to MH i2c: E2 08 00 9A 0E 80 0D 01 02 00 00 00 00 21 [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:35]Read from MH i2c: E2 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 9A 0E 00 90 00 1C [10:32:35]RAPDU: 90 00 [10:32:35]wFMCommunicate OK [10:32:35]wFMCommunicate request_size=255 [10:32:35]MH_SAM_APDU [10:32:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 42 A9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DE 7B 02 00 35 04 06 00 [10:32:35]Write to MH i2c: E2 02 01 9B 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 42 A9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DE 7B 02 00 35 04 06 00 00 00 66 [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:35]Read from MH i2c: E2 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 9B 0E 00 90 00 1D [10:32:35]RAPDU: 90 00 [10:32:35]wFMCommunicate OK [10:32:35]wFMCommunicate request_size=11 [10:32:35]MH_SAM_APDU [10:32:35]CAPDU: 80 0D 02 02 06 17 33 00 8D B6 39 [10:32:35]Write to MH i2c: E2 0E 00 9C 0E 80 0D 02 02 06 00 17 33 00 8D B6 39 00 00 F6 [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:35]Read from MH i2c: E2 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 03 00 9C 0E 00 90 00 1E [10:32:35]RAPDU: 90 00 [10:32:35]wFMCommunicate OK [10:32:35]wFMCommunicate request_size=4 [10:32:35]MH_SAM_APDU [10:32:35]CAPDU: 80 0D 03 02 [10:32:35]Write to MH i2c: E2 08 00 9D 0E 80 0D 03 02 00 00 00 00 26 [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:35]Read from MH i2c: E2 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 0B 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 0B 00 9D 0E 00 64 D2 7B EA F7 8C 08 C5 90 00 12 [10:32:35]RAPDU: 64 D2 7B EA F7 8C 08 C5 90 00 [10:32:35]wFMCommunicate OK [10:32:35]SAM_PROTO_SignData done [10:32:35]FM_MakeSignedData done [10:32:35]CreateOFDProtocolMessage [10:32:35]wFMCommunicate request_size=4 [10:32:35]MH_SAM_APDU [10:32:35]CAPDU: 80 11 00 00 [10:32:35]Write to MH i2c: E2 08 00 9E 0E 80 11 00 00 00 00 00 00 26 [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:35]Read from MH i2c: E2 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 17 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 17 00 9E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 86 [10:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:32:35]wFMCommunicate OK [10:32:35]CreateOFDProtocolMessage done [10:32:35]OFDSenderStorePacket 162782 [10:32:35]StoreOFDPacket docnum=162782 [10:32:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F0 49 08 01 C6 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 42 A9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DE 7B 02 00 35 04 06 00 17 33 00 8D B6 39 64 D2 7B EA F7 8C 08 C5 [10:32:35]CheckFolder [10:32:35]dirname=/storage/ofd_packets [10:32:35]CheckFolder done [10:32:35]ProducePacketName [10:32:35]name=ofd_packets/00162782 [10:32:35]NVStorageSaveData ofd_packets/00162782 [10:32:35]File name is /storage/ofd_packets/00162782 [10:32:35]Write 302 bytes [10:32:35]NVStorageSaveData done [10:32:35]OFDSenderStorePacket done [10:32:35]KKMCreateOFDPacket done [10:32:35]NVStorageSaveData kkm_last_timestamp [10:32:35]File name is /storage/kkm_last_timestamp [10:32:35]Write 4 bytes [10:32:35]NVStorageSaveData done [10:32:35]ExternCall_PrintAddStr [10:32:35]wPrintStart [10:32:35]Write to MH i2c: 01 00 00 9F 0E AD [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: 01 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: 01 07 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: 01 07 00 9F 0E 00 00 00 00 00 FF 0F C2 [10:32:35]RasterBufferAndPrint [10:32:35]line Счет N : (1)1319372 [10:32:35]line ИНН: 02508201610067 [10:32:35]line Контрольно-Кассовый Чек [10:32:35]line ПРОДАЖА [10:32:35]line ТРК (МРК, ГНК) : 52 [10:32:35]line Товар: 2710124130 [10:32:35]line Super-92-К-5 [10:32:35]line 10.410 * 67.30 [10:32:35]line = 700.59 [10:32:35]line НДС 12% НСП 1% [10:32:35]line > о реализуемом товаре [10:32:35]line ОКРУГЛЕНИЕ: -0.59 [10:32:35]line ИТОГО: 700.00 [10:32:35]line Внесено: 700.00 [10:32:35]line СДАЧА: 0.00 [10:32:35]line НСП 1% : 6.20 [10:32:35]line НДС 12% : 74.40 [10:32:35]line Наличными: 700.00 [10:32:35]line Безнал.: 0.00 [10:32:35]line Место: АЗС № 140 "Партнер Нефть" [10:32:35]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:32:35]line СНО: Общий режим [10:32:35]line Чек 94 14.07.2024 10:32 [10:32:35]line Смена: 463 ФФД: 1.0 [10:32:35]line ЗНМ: 0300000129 [10:32:35]line РНМ: 0000000000090858 [10:32:35]line Версия ККМ: 001 [10:32:35]line ФМ: 0000000000874899 [10:32:35]line ФД: 162782 [10:32:35]line ФПД: 25507820058169 [10:32:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103234&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162782&fm=25507820058169&tin=02508201610067®Number=0000000000090858&sum=70000 [10:32:36]OFD Sender: Processing packet 162782 [packets to send 106, broken 105] [10:32:36]ProducePacketName [10:32:36]name=ofd_packets/00162782 [10:32:36]OFD Sender: To server: pG, [10:32:36]CommunicateWithHost lk.salyk.kg:30040 [10:32:36]ConnectInit lk.salyk.kg [10:32:36]written 0, free lines is 4095 [10:32:36]Connected sock=11 [10:32:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F0 49 08 01 C6 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 42 A9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DE 7B 02 00 35 04 06 00 17 33 00 8D B6 39 64 D2 7B EA F7 8C 08 C5 [10:32:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 52 97 47 00 D9 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DE 7B 02 00 F4 03 04 00 50 55 93 66 B6 04 01 00 00 36 B4 9B A6 BB DE CB 4F [10:32:36]CommunicateWithHost err = 0 [10:32:36]CheckOFDResponse [10:32:36]1017 (14) - 77093643461234 [10:32:36]1041 (16) - 0000000000874899 [10:32:36]1040 (4) - 162782 [10:32:36]1012 (4) - 14.07.2024 04:34 [10:32:36]1206 (1) - 0 [10:32:36]OFD Sender: Remove packet 162782 [10:32:36]ProducePacketName [10:32:36]name=ofd_packets/00162782 [10:32:36]NVStorageDeleteData [10:32:36]Write to MH i2c: 01 00 00 CA 0E D8 [10:32:36]Write i2c OK [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: 01 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: 01 07 00 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: 01 07 00 CA 0E 00 00 00 00 00 D4 0C BF [10:32:36]RasterBufferAndPrint [10:32:36]line [10:32:36]line [10:32:36]line [10:32:36]line [10:32:36]line [10:32:36]written 0, free lines is 3289 [10:32:36]MH_Cut [10:32:36]Write to MH i2c: D1 01 00 D1 0E 01 B1 [10:32:36]Write i2c OK [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: D1 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: D1 01 00 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: D1 01 00 D1 0E 00 B0 [10:32:36]Write to MH i2c: 01 00 00 D2 0E E0 [10:32:36]Write i2c OK [10:32:36]MH_I2C_Read... [10:32:36]OFD Sender: No OFD packet to send [10:32:37]*** Cut start [10:32:37]*** Purtial cut [10:32:37]*** CUTSNS_PIN = 0 [10:32:37]*** Stage 1: CUTSNS_PIN = 1 [10:32:39]Read from MH i2c: 01 [10:32:39]MH_I2C_Read... [10:32:39]*** Stop cut motor [10:32:39]*** Cut end [10:32:39]Read from MH i2c: 01 07 00 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: 01 07 00 D2 0E 00 00 00 00 00 FF 0F F5 [10:32:39]process_action close_receipt done [10:32:39]requested_data is exist [10:32:39]produce_requested_data [10:32:39]requested_item fm.sn is exist - process it [10:32:39]wFMCommunicate request_size=4 [10:32:39]MH_SAM_APDU [10:32:39]CAPDU: 80 11 00 00 [10:32:39]Write to MH i2c: E2 08 00 D3 0E 80 11 00 00 00 00 00 00 5B [10:32:39]Write i2c OK [10:32:39]MH_I2C_Read... [10:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:39]Read from MH i2c: E2 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 17 00 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 17 00 D3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BB [10:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:32:39]wFMCommunicate OK [10:32:39]requested_item fd.num is exist - process it [10:32:39]SAM_PROTO_GetFieldsCounters [10:32:39]wFMCommunicate request_size=4 [10:32:39]MH_SAM_APDU [10:32:39]CAPDU: 80 13 00 00 [10:32:39]Write to MH i2c: E2 08 00 D4 0E 80 13 00 00 00 00 00 00 5E [10:32:39]Write i2c OK [10:32:39]MH_I2C_Read... [10:32:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:39]Read from MH i2c: E2 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 62 00 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 62 00 D4 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DE 7B 02 00 0E 04 04 00 CF 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 D6 [10:32:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DE 7B 02 00 0E 04 04 00 CF 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:32:39]wFMCommunicate OK [10:32:39]SAM_PROTO_GetFieldsCounters done [10:32:39]requested_item shift.num is exist - process it [10:32:39]requested_item shift.opened is exist - process it [10:32:39]req_shift_opened [10:32:39]FM_GetShiftState [10:32:39]SAM_PROTO_GetShiftState [10:32:39]wFMCommunicate request_size=4 [10:32:39]MH_SAM_APDU [10:32:39]CAPDU: 80 13 01 00 [10:32:39]Write to MH i2c: E2 08 00 D5 0E 80 13 01 00 00 00 00 00 60 [10:32:39]Write i2c OK [10:32:39]MH_I2C_Read... [10:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:39]Read from MH i2c: E2 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 0E 00 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 0E 00 D5 0E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 96 [10:32:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:32:39]wFMCommunicate OK [10:32:39]SAM_PROTO_GetShiftState done [10:32:39]FM_GetShiftState done [10:32:39]req_shift_opened done [10:32:39]requested_item shift.open_date is exist - process it [10:32:39]req_shift_open_date [10:32:39]req_shift_open_date done [10:32:39]produce_requested_data done [10:32:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162782,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:32:39]process_action_free close_receipt [10:32:39]json_value_free [10:32:39]json_value_free done [10:32:39]process_json_proto returns [10:32:39]Send response to host [10:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162782,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:32:39]free response buf [10:32:39]execute_script done [10:32:39]execute_script returns [10:32:39]free content buf [10:32:39]Sock 7.Close socket [10:32:39]Sock 7.Thread stoped [10:32:39]accept exits with 9 [10:32:39]New connection [10:32:39]New thread 3066735972 created [10:32:39]Thread 3066879332 joined [10:32:39]Waiting for new connection... [10:32:39] Sock 9.Parse request [10:32:39]Sock 9.Check first char [10:32:39]Sock 9.First char is OK [10:32:39]request: POST /json_proto HTTP/1.0 [10:32:39]Method: POST [10:32:39]URL: /json_proto [10:32:39]Method is POST - this is cgi request [10:32:39]url: /json_proto [10:32:39]query_string will be loaded in cgi processing [10:32:39]execute_cgi json_proto POST (null) [10:32:39]execute_cgi path=json_proto method=POST [10:32:39]POST find Content-Length [10:32:39]Host: 172.17.39.67:8080 [10:32:39]Content-Length: 809 [10:32:39]Content-Type: application/json [10:32:39] [10:32:39]POST finish read [10:32:39]Found Content-Length = 809 [10:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:39]execute_script... [10:32: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)1319373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:39]POST & json_proto [10:32:39]process_json_proto [10:32:39]json parsed OK: [10:32:39]protocol is kg_v1.0 [10:32:39]action value=close_receipt [10:32:39]process_action close_receipt [10:32:39]cmd_close_receipt [10:32:39]MH_GetDate [10:32:39]Write to MH i2c: F0 00 00 D6 0E D3 [10:32:39]Write i2c OK [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: F0 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: F0 09 00 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: F0 09 00 D6 0E 00 48 A9 93 66 B6 85 93 66 FA [10:32:39]GetLastDocTimeStamp 1720953154 [10:32:39]current date 1720953160 [10:32:39]FM_GetShiftState [10:32:39]SAM_PROTO_GetShiftState [10:32:39]wFMCommunicate request_size=4 [10:32:39]MH_SAM_APDU [10:32:39]CAPDU: 80 13 01 00 [10:32:39]Write to MH i2c: E2 08 00 D7 0E 80 13 01 00 00 00 00 00 62 [10:32:39]Write i2c OK [10:32:39]MH_I2C_Read... [10:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:39]Read from MH i2c: E2 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 0E 00 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 0E 00 D7 0E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 98 [10:32:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:32:39]wFMCommunicate OK [10:32:39]SAM_PROTO_GetShiftState done [10:32:39]FM_GetShiftState done [10:32:39]opened in 1720915483 [10:32:39]opened+sec_in_day 1721001883 [10:32:39]quantity*price = 199940 [10:32:39]sum+1 = 199941 [10:32:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1999.40 НСП 1% : 17.69 НДС 12% : 212.33 Наличными: 0.00 Безнал.: 1999.40 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 95 14.07.2024 10:32 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162783 ФПД: 12244846572169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103240&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162783&fm=12244846572169&tin=02508201610067®Number=0000000000090858&sum=199940 [10:32:41]StoreToDocumentArchive [10:32:41]shift 463 fd 162783 [10:32:41]save to /storage/0463/doc_00162783 [10:32:41]save last doc name /storage/0463/doc_00162783 to /storage/kkm_last_doc_name [10:32:41]save OK [10:32:41]Clear old archive folders... [10:32:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:32:41]tlvbuf is 0122A5F0 [10:32:41]SAM_PROTO_ClearQueue [10:32:41]wFMCommunicate request_size=4 [10:32:41]MH_SAM_APDU [10:32:41]CAPDU: 80 09 00 00 [10:32:41]Write to MH i2c: E2 08 00 E4 0E 80 09 00 00 00 00 00 00 64 [10:32:41]Write i2c OK [10:32:41]MH_I2C_Read... [10:32:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:41]Read from MH i2c: E2 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 03 00 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 03 00 E4 0E 00 90 00 66 [10:32:41]RAPDU: 90 00 [10:32:41]wFMCommunicate OK [10:32:41]SAM_PROTO_ClearQueue done [10:32:41]KKMCreateOFDPacket [10:32:41]OFDProtocolAddRootSTLVToBuf [10:32:41]FM_MakeSignedData [10:32:41]FM_MakeSignedData [10:32:41]SAM_PROTO_SignData [10:32:41]wFMCommunicate request_size=4 [10:32:41]MH_SAM_APDU [10:32:41]CAPDU: 80 0D 01 02 [10:32:41]Write to MH i2c: E2 08 00 E5 0E 80 0D 01 02 00 00 00 00 6C [10:32:41]Write i2c OK [10:32:41]MH_I2C_Read... [10:32:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:41]Read from MH i2c: E2 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 03 00 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 03 00 E5 0E 00 90 00 67 [10:32:41]RAPDU: 90 00 [10:32:41]wFMCommunicate OK [10:32:41]wFMCommunicate request_size=255 [10:32:41]MH_SAM_APDU [10:32:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 48 A9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DF 7B 02 00 35 04 06 00 [10:32:41]Write to MH i2c: E2 02 01 E6 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 48 A9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DF 7B 02 00 35 04 06 00 00 00 1D [10:32:41]Write i2c OK [10:32:41]MH_I2C_Read... [10:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:41]Read from MH i2c: E2 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 03 00 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 03 00 E6 0E 00 90 00 68 [10:32:41]RAPDU: 90 00 [10:32:41]wFMCommunicate OK [10:32:41]wFMCommunicate request_size=11 [10:32:41]MH_SAM_APDU [10:32:41]CAPDU: 80 0D 02 02 06 0B 22 F9 BA F2 89 [10:32:41]Write to MH i2c: E2 0E 00 E7 0E 80 0D 02 02 06 00 0B 22 F9 BA F2 89 00 00 D6 [10:32:41]Write i2c OK [10:32:41]MH_I2C_Read... [10:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:41]Read from MH i2c: E2 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 03 00 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 03 00 E7 0E 00 90 00 69 [10:32:41]RAPDU: 90 00 [10:32:41]wFMCommunicate OK [10:32:41]wFMCommunicate request_size=4 [10:32:41]MH_SAM_APDU [10:32:41]CAPDU: 80 0D 03 02 [10:32:41]Write to MH i2c: E2 08 00 E8 0E 80 0D 03 02 00 00 00 00 71 [10:32:41]Write i2c OK [10:32:41]MH_I2C_Read... [10:32:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:41]Read from MH i2c: E2 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 0B 00 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 0B 00 E8 0E 00 CC 6E EA 05 84 F0 90 34 90 00 D3 [10:32:41]RAPDU: CC 6E EA 05 84 F0 90 34 90 00 [10:32:41]wFMCommunicate OK [10:32:41]SAM_PROTO_SignData done [10:32:41]FM_MakeSignedData done [10:32:41]CreateOFDProtocolMessage [10:32:41]wFMCommunicate request_size=4 [10:32:41]MH_SAM_APDU [10:32:41]CAPDU: 80 11 00 00 [10:32:41]Write to MH i2c: E2 08 00 E9 0E 80 11 00 00 00 00 00 00 71 [10:32:41]Write i2c OK [10:32:41]MH_I2C_Read... [10:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:41]Read from MH i2c: E2 [10:32:41]MH_I2C_Read... [10:32:41]OFD Sender: No OFD packet to send [10:32:41]Read from MH i2c: E2 17 00 [10:32:41]MH_I2C_Read... [10:32:41]Read from MH i2c: E2 17 00 E9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D1 [10:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:32:41]wFMCommunicate OK [10:32:41]CreateOFDProtocolMessage done [10:32:41]OFDSenderStorePacket 162783 [10:32:41]StoreOFDPacket docnum=162783 [10:32:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A5 0E 08 01 CA E9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 48 A9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DF 7B 02 00 35 04 06 00 0B 22 F9 BA F2 89 CC 6E EA 05 84 F0 90 34 [10:32:41]CheckFolder [10:32:41]dirname=/storage/ofd_packets [10:32:41]CheckFolder done [10:32:41]ProducePacketName [10:32:41]name=ofd_packets/00162783 [10:32:41]NVStorageSaveData ofd_packets/00162783 [10:32:41]File name is /storage/ofd_packets/00162783 [10:32:41]Write 302 bytes [10:32:42]NVStorageSaveData done [10:32:42]OFDSenderStorePacket done [10:32:42]KKMCreateOFDPacket done [10:32:42]NVStorageSaveData kkm_last_timestamp [10:32:42]File name is /storage/kkm_last_timestamp [10:32:42]Write 4 bytes [10:32:42]NVStorageSaveData done [10:32:42]ExternCall_PrintAddStr [10:32:42]wPrintStart [10:32:42]Write to MH i2c: 01 00 00 EA 0E F8 [10:32:42]Write i2c OK [10:32:42]MH_I2C_Read... [10:32:42]Read from MH i2c: 01 [10:32:42]MH_I2C_Read... [10:32:42]Read from MH i2c: 01 07 00 [10:32:42]MH_I2C_Read... [10:32:42]Read from MH i2c: 01 07 00 EA 0E 00 00 00 00 00 FF 0F 0D [10:32:42]RasterBufferAndPrint [10:32:42]line Счет N : (1)1319373 [10:32:42]line ИНН: 02508201610067 [10:32:42]line Контрольно-Кассовый Чек [10:32:42]line ПРОДАЖА [10:32:42]line ТРК (МРК, ГНК) : 11 [10:32:42]line Товар: 2710194210 [10:32:42]line ДТ(л)-К-5 [10:32:42]line 27.540 * 72.60 [10:32:42]line = 1999.40 [10:32:42]line НДС 12% НСП 1% [10:32:42]line > о реализуемом товаре [10:32:42]line ИТОГО: 1999.40 [10:32:42]line НСП 1% : 17.69 [10:32:42]line НДС 12% : 212.33 [10:32:42]line Наличными: 0.00 [10:32:42]line Безнал.: 1999.40 [10:32:42]line Место: АЗС № 140 "Партнер Нефть" [10:32:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:32:42]line СНО: Общий режим [10:32:42]line Чек 95 14.07.2024 10:32 [10:32:42]line Смена: 463 ФФД: 1.0 [10:32:42]line ЗНМ: 0300000129 [10:32:42]line РНМ: 0000000000090858 [10:32:42]line Версия ККМ: 001 [10:32:42]line Платежная система: O! деньги [10:32:42]line ФМ: 0000000000874899 [10:32:42]line ФД: 162783 [10:32:42]line ФПД: 12244846572169 [10:32:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103240&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162783&fm=12244846572169&tin=02508201610067®Number=0000000000090858&sum=199940 [10:32:42]written 0, free lines is 4095 [10:32:42]OFD Sender: Processing packet 162783 [packets to send 106, broken 105] [10:32:42]ProducePacketName [10:32:42]name=ofd_packets/00162783 [10:32:42]OFD Sender: To server: pG, [10:32:42]CommunicateWithHost lk.salyk.kg:30040 [10:32:42]ConnectInit lk.salyk.kg [10:32:42]Connected sock=10 [10:32:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A5 0E 08 01 CA E9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 48 A9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DF 7B 02 00 35 04 06 00 0B 22 F9 BA F2 89 CC 6E EA 05 84 F0 90 34 [10:32:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7E 3C 47 00 0A 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DF 7B 02 00 F4 03 04 00 56 55 93 66 B6 04 01 00 00 40 DA 6B 19 CA 6D 4C A5 [10:32:42]CommunicateWithHost err = 0 [10:32:42]CheckOFDResponse [10:32:42]1017 (14) - 77093643461234 [10:32:42]1041 (16) - 0000000000874899 [10:32:42]1040 (4) - 162783 [10:32:42]1012 (4) - 14.07.2024 04:34 [10:32:42]1206 (1) - 0 [10:32:42]OFD Sender: Remove packet 162783 [10:32:42]ProducePacketName [10:32:42]name=ofd_packets/00162783 [10:32:42]NVStorageDeleteData [10:32:42]Write to MH i2c: 01 00 00 14 0F 23 [10:32:42]Write i2c OK [10:32:42]MH_I2C_Read... [10:32:42]Read from MH i2c: 01 [10:32:42]MH_I2C_Read... [10:32:42]Read from MH i2c: 01 07 00 [10:32:42]MH_I2C_Read... [10:32:42]Read from MH i2c: 01 07 00 14 0F 00 00 00 00 00 EE 0C 24 [10:32:42]RasterBufferAndPrint [10:32:42]line [10:32:42]line [10:32:42]line [10:32:42]line [10:32:42]line [10:32:42]written 0, free lines is 3319 [10:32:42]MH_Cut [10:32:42]Write to MH i2c: D1 01 00 1B 0F 01 FC [10:32:42]Write i2c OK [10:32:42]MH_I2C_Read... [10:32:42]Read from MH i2c: D1 [10:32:42]MH_I2C_Read... [10:32:42]Read from MH i2c: D1 01 00 [10:32:42]MH_I2C_Read... [10:32:42]Read from MH i2c: D1 01 00 1B 0F 00 FB [10:32:42]Write to MH i2c: 01 00 00 1C 0F 2B [10:32:42]Write i2c OK [10:32:42]MH_I2C_Read... [10:32:43]OFD Sender: No OFD packet to send [10:32:43]*** Cut start [10:32:43]*** Purtial cut [10:32:43]*** Stage 1: CUTSNS_PIN = 1 [10:32:43]Read from MH i2c: 01 [10:32:43]MH_I2C_Read... [10:32:43]*** Stop cut motor [10:32:43]*** Cut end [10:32:43]Read from MH i2c: 01 07 00 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: 01 07 00 1C 0F 00 00 00 00 00 FF 0F 40 [10:32:43]process_action close_receipt done [10:32:43]requested_data is exist [10:32:43]produce_requested_data [10:32:43]requested_item fm.sn is exist - process it [10:32:43]wFMCommunicate request_size=4 [10:32:43]MH_SAM_APDU [10:32:43]CAPDU: 80 11 00 00 [10:32:43]Write to MH i2c: E2 08 00 1D 0F 80 11 00 00 00 00 00 00 A6 [10:32:43]Write i2c OK [10:32:43]MH_I2C_Read... [10:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:43]Read from MH i2c: E2 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 17 00 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 17 00 1D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 06 [10:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:32:43]wFMCommunicate OK [10:32:43]requested_item fd.num is exist - process it [10:32:43]SAM_PROTO_GetFieldsCounters [10:32:43]wFMCommunicate request_size=4 [10:32:43]MH_SAM_APDU [10:32:43]CAPDU: 80 13 00 00 [10:32:43]Write to MH i2c: E2 08 00 1E 0F 80 13 00 00 00 00 00 00 A9 [10:32:43]Write i2c OK [10:32:43]MH_I2C_Read... [10:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:43]Read from MH i2c: E2 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 62 00 [10:32:43]MH_I2C_Read... [10:32:43]Read from MH i2c: E2 62 00 1E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DF 7B 02 00 0E 04 04 00 CF 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 25 [10:32:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DF 7B 02 00 0E 04 04 00 CF 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:32:43]wFMCommunicate OK [10:32:43]SAM_PROTO_GetFieldsCounters done [10:32:43]requested_item shift.num is exist - process it [10:32:43]requested_item shift.opened is exist - process it [10:32:43]req_shift_opened [10:32:43]FM_GetShiftState [10:32:43]SAM_PROTO_GetShiftState [10:32:43]wFMCommunicate request_size=4 [10:32:43]MH_SAM_APDU [10:32:43]CAPDU: 80 13 01 00 [10:32:43]Write to MH i2c: E2 08 00 1F 0F 80 13 01 00 00 00 00 00 AB [10:32:44]Write i2c OK [10:32:44]MH_I2C_Read... [10:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:44]Read from MH i2c: E2 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: E2 0E 00 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: E2 0E 00 1F 0F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E1 [10:32:44]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:32:44]wFMCommunicate OK [10:32:44]SAM_PROTO_GetShiftState done [10:32:44]FM_GetShiftState done [10:32:44]req_shift_opened done [10:32:44]requested_item shift.open_date is exist - process it [10:32:44]req_shift_open_date [10:32:44]req_shift_open_date done [10:32:44]produce_requested_data done [10:32:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162783,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:32:44]process_action_free close_receipt [10:32:44]json_value_free [10:32:44]json_value_free done [10:32:44]process_json_proto returns [10:32:44]Send response to host [10:32:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162783,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:32:44]free response buf [10:32:44]execute_script done [10:32:44]execute_script returns [10:32:44]free content buf [10:32:44]Sock 9.Close socket [10:32:44]Sock 9.Thread stoped [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:10]accept exits with 7 [10:36:10]New connection [10:36:10]New thread 3066879332 created [10:36:10]Thread 3066735972 joined [10:36:10]Waiting for new connection... [10:36:10] Sock 7.Parse request [10:36:10]Sock 7.Check first char [10:36:10]Sock 7.First char is OK [10:36:10]request: POST /json_proto HTTP/1.0 [10:36:10]Method: POST [10:36:10]URL: /json_proto [10:36:10]Method is POST - this is cgi request [10:36:10]url: /json_proto [10:36:10]query_string will be loaded in cgi processing [10:36:10]execute_cgi json_proto POST (null) [10:36:10]execute_cgi path=json_proto method=POST [10:36:10]POST find Content-Length [10:36:10]Host: 172.17.39.67:8080 [10:36:10]Content-Length: 688 [10:36:10]Content-Type: application/json [10:36:10] [10:36:10]POST finish read [10:36:10]Found Content-Length = 688 [10:36:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "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" ] } } [10:36:10]execute_script... [10:36: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)1319374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "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" ] } } [10:36:10]POST & json_proto [10:36:10]process_json_proto [10:36:10]json parsed OK: [10:36:10]protocol is kg_v1.0 [10:36:10]action value=close_receipt [10:36:10]process_action close_receipt [10:36:10]cmd_close_receipt [10:36:10]MH_GetDate [10:36:10]Write to MH i2c: F0 00 00 20 0F 1E [10:36:10]Write i2c OK [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: F0 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: F0 09 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: F0 09 00 20 0F 00 1A AA 93 66 B6 85 93 66 18 [10:36:10]GetLastDocTimeStamp 1720953160 [10:36:10]current date 1720953370 [10:36:10]FM_GetShiftState [10:36:10]SAM_PROTO_GetShiftState [10:36:10]wFMCommunicate request_size=4 [10:36:10]MH_SAM_APDU [10:36:10]CAPDU: 80 13 01 00 [10:36:10]Write to MH i2c: E2 08 00 21 0F 80 13 01 00 00 00 00 00 AD [10:36:10]Write i2c OK [10:36:10]MH_I2C_Read... [10:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:10]Read from MH i2c: E2 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 0E 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 0E 00 21 0F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E3 [10:36:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:36:10]wFMCommunicate OK [10:36:10]SAM_PROTO_GetShiftState done [10:36:10]FM_GetShiftState done [10:36:10]opened in 1720915483 [10:36:10]opened+sec_in_day 1721001883 [10:36:10]quantity*price = 150064 [10:36:10]sum+1 = 150065 [10:36:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 96 14.07.2024 10:36 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162784 ФПД: 146215711880630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103610&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162784&fm=146215711880630&tin=02508201610067®Number=0000000000090858&sum=150000 [10:36:11]StoreToDocumentArchive [10:36:11]shift 463 fd 162784 [10:36:11]save to /storage/0463/doc_00162784 [10:36:11]save last doc name /storage/0463/doc_00162784 to /storage/kkm_last_doc_name [10:36:11]save OK [10:36:11]Clear old archive folders... [10:36:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:36:11]tlvbuf is B6EAFA70 [10:36:11]SAM_PROTO_ClearQueue [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 09 00 00 [10:36:11]Write to MH i2c: E2 08 00 2E 0F 80 09 00 00 00 00 00 00 AF [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 03 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 03 00 2E 0F 00 90 00 B1 [10:36:11]RAPDU: 90 00 [10:36:11]wFMCommunicate OK [10:36:11]SAM_PROTO_ClearQueue done [10:36:11]KKMCreateOFDPacket [10:36:11]OFDProtocolAddRootSTLVToBuf [10:36:11]FM_MakeSignedData [10:36:11]FM_MakeSignedData [10:36:11]SAM_PROTO_SignData [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 0D 01 02 [10:36:11]Write to MH i2c: E2 08 00 2F 0F 80 0D 01 02 00 00 00 00 B7 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 03 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 03 00 2F 0F 00 90 00 B2 [10:36:11]RAPDU: 90 00 [10:36:11]wFMCommunicate OK [10:36:11]wFMCommunicate request_size=255 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 60 00 00 00 F4 03 04 00 1A AA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E0 7B 02 00 35 04 06 00 [10:36:11]Write to MH i2c: E2 02 01 30 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 60 00 00 00 F4 03 04 00 1A AA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E0 7B 02 00 35 04 06 00 00 00 83 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 03 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 03 00 30 0F 00 90 00 B3 [10:36:11]RAPDU: 90 00 [10:36:11]wFMCommunicate OK [10:36:11]wFMCommunicate request_size=11 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 0D 02 02 06 84 FB 7F 91 35 B6 [10:36:11]Write to MH i2c: E2 0E 00 31 0F 80 0D 02 02 06 00 84 FB 7F 91 35 B6 00 00 40 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 03 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 03 00 31 0F 00 90 00 B4 [10:36:11]RAPDU: 90 00 [10:36:11]wFMCommunicate OK [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 0D 03 02 [10:36:11]Write to MH i2c: E2 08 00 32 0F 80 0D 03 02 00 00 00 00 BC [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 0B 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 0B 00 32 0F 00 7D B2 84 5D 34 38 8B A3 90 00 67 [10:36:11]RAPDU: 7D B2 84 5D 34 38 8B A3 90 00 [10:36:11]wFMCommunicate OK [10:36:11]SAM_PROTO_SignData done [10:36:11]FM_MakeSignedData done [10:36:11]CreateOFDProtocolMessage [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 11 00 00 [10:36:11]Write to MH i2c: E2 08 00 33 0F 80 11 00 00 00 00 00 00 BC [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 17 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 17 00 33 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1C [10:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:36:11]wFMCommunicate OK [10:36:11]CreateOFDProtocolMessage done [10:36:11]OFDSenderStorePacket 162784 [10:36:11]StoreOFDPacket docnum=162784 [10:36:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 5C 2A 08 01 30 DF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 60 00 00 00 F4 03 04 00 1A AA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E0 7B 02 00 35 04 06 00 84 FB 7F 91 35 B6 7D B2 84 5D 34 38 8B A3 [10:36:11]CheckFolder [10:36:11]dirname=/storage/ofd_packets [10:36:11]CheckFolder done [10:36:11]ProducePacketName [10:36:11]name=ofd_packets/00162784 [10:36:11]NVStorageSaveData ofd_packets/00162784 [10:36:11]File name is /storage/ofd_packets/00162784 [10:36:11]Write 302 bytes [10:36:11]NVStorageSaveData done [10:36:11]OFDSenderStorePacket done [10:36:11]KKMCreateOFDPacket done [10:36:11]NVStorageSaveData kkm_last_timestamp [10:36:11]File name is /storage/kkm_last_timestamp [10:36:11]Write 4 bytes [10:36:11]NVStorageSaveData done [10:36:11]ExternCall_PrintAddStr [10:36:11]wPrintStart [10:36:11]Write to MH i2c: 01 00 00 34 0F 43 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 07 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 07 00 34 0F 00 00 00 00 00 FF 0F 58 [10:36:11]RasterBufferAndPrint [10:36:11]line Счет N : (1)1319374 [10:36:11]line ИНН: 02508201610067 [10:36:11]line Контрольно-Кассовый Чек [10:36:11]line ПРОДАЖА [10:36:11]line ТРК (МРК, ГНК) : 21 [10:36:11]line Товар: 2710194210 [10:36:11]line ДТ(л)-К-5 [10:36:11]line 20.670 * 72.60 [10:36:11]line = 1500.64 [10:36:11]line НДС 12% НСП 1% [10:36:11]line > о реализуемом товаре [10:36:11]line ОКРУГЛЕНИЕ: -0.64 [10:36:11]line ИТОГО: 1500.00 [10:36:11]line Внесено: 1500.00 [10:36:11]line СДАЧА: 0.00 [10:36:11]line НСП 1% : 13.28 [10:36:11]line НДС 12% : 159.36 [10:36:11]line Наличными: 1500.00 [10:36:11]line Безнал.: 0.00 [10:36:11]line Место: АЗС № 140 "Партнер Нефть" [10:36:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:36:11]line СНО: Общий режим [10:36:11]line Чек 96 14.07.2024 10:36 [10:36:11]line Смена: 463 ФФД: 1.0 [10:36:11]line ЗНМ: 0300000129 [10:36:11]line РНМ: 0000000000090858 [10:36:11]line Версия ККМ: 001 [10:36:11]line ФМ: 0000000000874899 [10:36:11]line ФД: 162784 [10:36:11]line ФПД: 146215711880630 [10:36:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103610&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162784&fm=146215711880630&tin=02508201610067®Number=0000000000090858&sum=150000 [10:36:12]OFD Sender: Processing packet 162784 [packets to send 106, broken 105] [10:36:12]ProducePacketName [10:36:12]name=ofd_packets/00162784 [10:36:12]OFD Sender: To server: pG, [10:36:12]CommunicateWithHost lk.salyk.kg:30040 [10:36:12]ConnectInit lk.salyk.kg [10:36:12]written 0, free lines is 4095 [10:36:12]Connected sock=10 [10:36:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 5C 2A 08 01 30 DF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 60 00 00 00 F4 03 04 00 1A AA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E0 7B 02 00 35 04 06 00 84 FB 7F 91 35 B6 7D B2 84 5D 34 38 8B A3 [10:36:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5B BF 47 00 B8 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E0 7B 02 00 F4 03 04 00 28 56 93 66 B6 04 01 00 00 AD 20 9D 43 C7 3D 44 A9 [10:36:12]CommunicateWithHost err = 0 [10:36:12]CheckOFDResponse [10:36:12]1017 (14) - 77093643461234 [10:36:12]1041 (16) - 0000000000874899 [10:36:12]1040 (4) - 162784 [10:36:12]1012 (4) - 14.07.2024 04:38 [10:36:12]1206 (1) - 0 [10:36:12]OFD Sender: Remove packet 162784 [10:36:12]ProducePacketName [10:36:12]name=ofd_packets/00162784 [10:36:12]NVStorageDeleteData [10:36:12]Write to MH i2c: 01 00 00 5F 0F 6E [10:36:12]Write i2c OK [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: 01 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: 01 07 00 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: 01 07 00 5F 0F 00 00 00 00 00 D4 0C 55 [10:36:12]RasterBufferAndPrint [10:36:12]line [10:36:12]line [10:36:12]line [10:36:12]line [10:36:12]line [10:36:12]written 0, free lines is 3289 [10:36:12]MH_Cut [10:36:12]Write to MH i2c: D1 01 00 66 0F 01 47 [10:36:12]Write i2c OK [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: D1 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: D1 01 00 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: D1 01 00 66 0F 00 46 [10:36:12]Write to MH i2c: 01 00 00 67 0F 76 [10:36:12]Write i2c OK [10:36:12]MH_I2C_Read... [10:36:12]OFD Sender: No OFD packet to send [10:36:13]*** Cut start [10:36:13]*** Purtial cut [10:36:13]*** CUTSNS_PIN = 0 [10:36:13]*** Stage 1: CUTSNS_PIN = 1 [10:36:15]Read from MH i2c: 01 [10:36:15]MH_I2C_Read... [10:36:15]*** Stop cut motor [10:36:15]*** Cut end [10:36:15]Read from MH i2c: 01 07 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: 01 07 00 67 0F 00 00 00 00 00 FF 0F 8B [10:36:15]process_action close_receipt done [10:36:15]requested_data is exist [10:36:15]produce_requested_data [10:36:15]requested_item fm.sn is exist - process it [10:36:15]wFMCommunicate request_size=4 [10:36:15]MH_SAM_APDU [10:36:15]CAPDU: 80 11 00 00 [10:36:15]Write to MH i2c: E2 08 00 68 0F 80 11 00 00 00 00 00 00 F1 [10:36:15]Write i2c OK [10:36:15]MH_I2C_Read... [10:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:15]Read from MH i2c: E2 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 17 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 17 00 68 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 51 [10:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:36:15]wFMCommunicate OK [10:36:15]requested_item fd.num is exist - process it [10:36:15]SAM_PROTO_GetFieldsCounters [10:36:15]wFMCommunicate request_size=4 [10:36:15]MH_SAM_APDU [10:36:15]CAPDU: 80 13 00 00 [10:36:15]Write to MH i2c: E2 08 00 69 0F 80 13 00 00 00 00 00 00 F4 [10:36:15]Write i2c OK [10:36:15]MH_I2C_Read... [10:36:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:15]Read from MH i2c: E2 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 62 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 62 00 69 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E0 7B 02 00 0E 04 04 00 CF 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 74 [10: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E0 7B 02 00 0E 04 04 00 CF 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:36:15]wFMCommunicate OK [10:36:15]SAM_PROTO_GetFieldsCounters done [10:36:15]requested_item shift.num is exist - process it [10:36:15]requested_item shift.opened is exist - process it [10:36:15]req_shift_opened [10:36:15]FM_GetShiftState [10:36:15]SAM_PROTO_GetShiftState [10:36:15]wFMCommunicate request_size=4 [10:36:15]MH_SAM_APDU [10:36:15]CAPDU: 80 13 01 00 [10:36:15]Write to MH i2c: E2 08 00 6A 0F 80 13 01 00 00 00 00 00 F6 [10:36:15]Write i2c OK [10:36:15]MH_I2C_Read... [10:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:15]Read from MH i2c: E2 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 0E 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 0E 00 6A 0F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2C [10:36:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:36:15]wFMCommunicate OK [10:36:15]SAM_PROTO_GetShiftState done [10:36:15]FM_GetShiftState done [10:36:15]req_shift_opened done [10:36:15]requested_item shift.open_date is exist - process it [10:36:15]req_shift_open_date [10:36:15]req_shift_open_date done [10:36:15]produce_requested_data done [10:36:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162784,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:36:15]process_action_free close_receipt [10:36:15]json_value_free [10:36:15]json_value_free done [10:36:15]process_json_proto returns [10:36:15]Send response to host [10:36:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162784,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:36:15]free response buf [10:36:15]execute_script done [10:36:15]execute_script returns [10:36:15]free content buf [10:36:15]Sock 7.Close socket [10:36:15]Sock 7.Thread stoped [10:36:17]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:06]accept exits with 9 [10:37:06]New connection [10:37:06]New thread 3066735972 created [10:37:06]Thread 3066879332 joined [10:37:06]Waiting for new connection... [10:37:06] Sock 9.Parse request [10:37:06]Sock 9.Check first char [10:37:06]Sock 9.First char is OK [10:37:06]request: POST /json_proto HTTP/1.0 [10:37:06]Method: POST [10:37:06]URL: /json_proto [10:37:06]Method is POST - this is cgi request [10:37:06]url: /json_proto [10:37:06]query_string will be loaded in cgi processing [10:37:06]execute_cgi json_proto POST (null) [10:37:06]execute_cgi path=json_proto method=POST [10:37:06]POST find Content-Length [10:37:06]Host: 172.17.39.67:8080 [10:37:06]Content-Length: 688 [10:37:06]Content-Type: application/json [10:37:06] [10:37:06]POST finish read [10:37:06]Found Content-Length = 688 [10:37:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 25.830, "sum" : 1875.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1875.00, "total" : 1875.00, "payments": [ { "type": 0, "sum" : 1875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:06]execute_script... [10:37: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)1319375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 25.830, "sum" : 1875.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1875.00, "total" : 1875.00, "payments": [ { "type": 0, "sum" : 1875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:06]POST & json_proto [10:37:06]process_json_proto [10:37:06]json parsed OK: [10:37:06]protocol is kg_v1.0 [10:37:06]action value=close_receipt [10:37:06]process_action close_receipt [10:37:06]cmd_close_receipt [10:37:06]MH_GetDate [10:37:06]Write to MH i2c: F0 00 00 6B 0F 69 [10:37:06]Write i2c OK [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: F0 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: F0 09 00 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: F0 09 00 6B 0F 00 52 AA 93 66 B6 85 93 66 9B [10:37:06]GetLastDocTimeStamp 1720953370 [10:37:06]current date 1720953426 [10:37:06]FM_GetShiftState [10:37:06]SAM_PROTO_GetShiftState [10:37:06]wFMCommunicate request_size=4 [10:37:06]MH_SAM_APDU [10:37:06]CAPDU: 80 13 01 00 [10:37:06]Write to MH i2c: E2 08 00 6C 0F 80 13 01 00 00 00 00 00 F8 [10:37:06]Write i2c OK [10:37:06]MH_I2C_Read... [10:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:06]Read from MH i2c: E2 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 0E 00 [10:37:06]MH_I2C_Read... [10:37:06]Read from MH i2c: E2 0E 00 6C 0F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2E [10:37:06]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:37:06]wFMCommunicate OK [10:37:06]SAM_PROTO_GetShiftState done [10:37:06]FM_GetShiftState done [10:37:06]opened in 1720915483 [10:37:06]opened+sec_in_day 1721001883 [10:37:06]quantity*price = 187525 [10:37:06]sum+1 = 187527 [10:37:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1875.00 Внесено: 1875.00 СДАЧА: 0.00 НСП 1% : 16.59 НДС 12% : 199.14 Наличными: 1875.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 97 14.07.2024 10:37 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162785 ФПД: 160365233016789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103706&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162785&fm=160365233016789&tin=02508201610067®Number=0000000000090858&sum=187500 [10:37:07]StoreToDocumentArchive [10:37:07]shift 463 fd 162785 [10:37:07]save to /storage/0463/doc_00162785 [10:37:07]save last doc name /storage/0463/doc_00162785 to /storage/kkm_last_doc_name [10:37:07]save OK [10:37:07]Clear old archive folders... [10:37:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:37:07]tlvbuf is B6EAFCF0 [10:37:07]SAM_PROTO_ClearQueue [10:37:07]wFMCommunicate request_size=4 [10:37:07]MH_SAM_APDU [10:37:07]CAPDU: 80 09 00 00 [10:37:07]Write to MH i2c: E2 08 00 79 0F 80 09 00 00 00 00 00 00 FA [10:37:07]Write i2c OK [10:37:07]MH_I2C_Read... [10:37:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:07]Read from MH i2c: E2 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: E2 03 00 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: E2 03 00 79 0F 00 90 00 FC [10:37:07]RAPDU: 90 00 [10:37:07]wFMCommunicate OK [10:37:07]SAM_PROTO_ClearQueue done [10:37:07]KKMCreateOFDPacket [10:37:07]OFDProtocolAddRootSTLVToBuf [10:37:07]FM_MakeSignedData [10:37:07]FM_MakeSignedData [10:37:07]SAM_PROTO_SignData [10:37:07]wFMCommunicate request_size=4 [10:37:07]MH_SAM_APDU [10:37:07]CAPDU: 80 0D 01 02 [10:37:07]Write to MH i2c: E2 08 00 7A 0F 80 0D 01 02 00 00 00 00 02 [10:37:07]Write i2c OK [10:37:07]MH_I2C_Read... [10:37:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:07]Read from MH i2c: E2 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: E2 03 00 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: E2 03 00 7A 0F 00 90 00 FD [10:37:07]RAPDU: 90 00 [10:37:07]wFMCommunicate OK [10:37:07]wFMCommunicate request_size=255 [10:37:07]MH_SAM_APDU [10:37:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 64 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 86 DC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C DC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 4D 00 00 00 00 07 04 06 00 6C DC 02 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 52 AA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E1 7B 02 00 35 04 06 00 [10:37:07]Write to MH i2c: E2 02 01 7B 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 64 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 86 DC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C DC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 4D 00 00 00 00 07 04 06 00 6C DC 02 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 52 AA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E1 7B 02 00 35 04 06 00 00 00 2F [10:37:07]Write i2c OK [10:37:07]MH_I2C_Read... [10:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:07]Read from MH i2c: E2 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: E2 03 00 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: E2 03 00 7B 0F 00 90 00 FE [10:37:07]RAPDU: 90 00 [10:37:07]wFMCommunicate OK [10:37:07]wFMCommunicate request_size=11 [10:37:07]MH_SAM_APDU [10:37:07]CAPDU: 80 0D 02 02 06 91 D9 F0 BF 8F D5 [10:37:07]Write to MH i2c: E2 0E 00 7C 0F 80 0D 02 02 06 00 91 D9 F0 BF 8F D5 00 00 8E [10:37:07]Write i2c OK [10:37:07]MH_I2C_Read... [10:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:07]Read from MH i2c: E2 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: E2 03 00 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: E2 03 00 7C 0F 00 90 00 FF [10:37:07]RAPDU: 90 00 [10:37:07]wFMCommunicate OK [10:37:07]wFMCommunicate request_size=4 [10:37:07]MH_SAM_APDU [10:37:07]CAPDU: 80 0D 03 02 [10:37:07]Write to MH i2c: E2 08 00 7D 0F 80 0D 03 02 00 00 00 00 07 [10:37:07]Write i2c OK [10:37:07]MH_I2C_Read... [10:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:07]Read from MH i2c: E2 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: E2 0B 00 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: E2 0B 00 7D 0F 00 8F 50 56 7E 8A 4C BB 77 90 00 C3 [10:37:07]RAPDU: 8F 50 56 7E 8A 4C BB 77 90 00 [10:37:07]wFMCommunicate OK [10:37:07]SAM_PROTO_SignData done [10:37:07]FM_MakeSignedData done [10:37:07]CreateOFDProtocolMessage [10:37:07]wFMCommunicate request_size=4 [10:37:07]MH_SAM_APDU [10:37:07]CAPDU: 80 11 00 00 [10:37:07]Write to MH i2c: E2 08 00 7E 0F 80 11 00 00 00 00 00 00 07 [10:37:07]Write i2c OK [10:37:07]MH_I2C_Read... [10:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:07]Read from MH i2c: E2 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: E2 17 00 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: E2 17 00 7E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 67 [10:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:37:07]wFMCommunicate OK [10:37:07]CreateOFDProtocolMessage done [10:37:07]OFDSenderStorePacket 162785 [10:37:07]StoreOFDPacket docnum=162785 [10:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 87 49 08 01 74 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 64 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 86 DC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C DC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 4D 00 00 00 00 07 04 06 00 6C DC 02 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 52 AA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E1 7B 02 00 35 04 06 00 91 D9 F0 BF 8F D5 8F 50 56 7E 8A 4C BB 77 [10:37:07]CheckFolder [10:37:07]dirname=/storage/ofd_packets [10:37:07]CheckFolder done [10:37:07]ProducePacketName [10:37:07]name=ofd_packets/00162785 [10:37:07]NVStorageSaveData ofd_packets/00162785 [10:37:07]File name is /storage/ofd_packets/00162785 [10:37:07]Write 302 bytes [10:37:07]NVStorageSaveData done [10:37:07]OFDSenderStorePacket done [10:37:07]KKMCreateOFDPacket done [10:37:07]NVStorageSaveData kkm_last_timestamp [10:37:07]File name is /storage/kkm_last_timestamp [10:37:07]Write 4 bytes [10:37:07]NVStorageSaveData done [10:37:07]ExternCall_PrintAddStr [10:37:07]wPrintStart [10:37:07]Write to MH i2c: 01 00 00 7F 0F 8E [10:37:07]Write i2c OK [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: 01 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: 01 07 00 [10:37:07]MH_I2C_Read... [10:37:07]Read from MH i2c: 01 07 00 7F 0F 00 00 00 00 00 FF 0F A3 [10:37:07]RasterBufferAndPrint [10:37:07]line Счет N : (1)1319375 [10:37:07]line ИНН: 02508201610067 [10:37:07]line Контрольно-Кассовый Чек [10:37:07]line ПРОДАЖА [10:37:07]line ТРК (МРК, ГНК) : 11 [10:37:07]line Товар: 2710194210 [10:37:07]line ДТ(л)-К-5 [10:37:07]line 25.830 * 72.60 [10:37:07]line = 1875.26 [10:37:07]line НДС 12% НСП 1% [10:37:07]line > о реализуемом товаре [10:37:07]line ОКРУГЛЕНИЕ: -0.26 [10:37:07]line ИТОГО: 1875.00 [10:37:07]line Внесено: 1875.00 [10:37:07]line СДАЧА: 0.00 [10:37:07]line НСП 1% : 16.59 [10:37:07]line НДС 12% : 199.14 [10:37:07]line Наличными: 1875.00 [10:37:07]line Безнал.: 0.00 [10:37:07]line Место: АЗС № 140 "Партнер Нефть" [10:37:07]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:37:07]line СНО: Общий режим [10:37:07]line Чек 97 14.07.2024 10:37 [10:37:07]line Смена: 463 ФФД: 1.0 [10:37:07]line ЗНМ: 0300000129 [10:37:07]line РНМ: 0000000000090858 [10:37:07]line Версия ККМ: 001 [10:37:07]line ФМ: 0000000000874899 [10:37:07]line ФД: 162785 [10:37:07]line ФПД: 160365233016789 [10:37:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T103706&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162785&fm=160365233016789&tin=02508201610067®Number=0000000000090858&sum=187500 [10:37:08]OFD Sender: Processing packet 162785 [packets to send 106, broken 105] [10:37:08]ProducePacketName [10:37:08]name=ofd_packets/00162785 [10:37:08]OFD Sender: To server: pG, [10:37:08]CommunicateWithHost lk.salyk.kg:30040 [10:37:08]ConnectInit lk.salyk.kg [10:37:08]written 0, free lines is 4095 [10:37:08]Connected sock=10 [10: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 34 38 39 39 10 01 00 00 87 49 08 01 74 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 64 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 86 DC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C DC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 4D 00 00 00 00 07 04 06 00 6C DC 02 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 52 AA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E1 7B 02 00 35 04 06 00 91 D9 F0 BF 8F D5 8F 50 56 7E 8A 4C BB 77 [10:37:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5F 1E 47 00 4A 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E1 7B 02 00 F4 03 04 00 60 56 93 66 B6 04 01 00 00 B1 F2 76 2E 47 98 73 D8 [10:37:08]CommunicateWithHost err = 0 [10:37:08]CheckOFDResponse [10:37:08]1017 (14) - 77093643461234 [10:37:08]1041 (16) - 0000000000874899 [10:37:08]1040 (4) - 162785 [10:37:08]1012 (4) - 14.07.2024 04:38 [10:37:08]1206 (1) - 0 [10:37:08]OFD Sender: Remove packet 162785 [10:37:08]ProducePacketName [10:37:08]name=ofd_packets/00162785 [10:37:08]NVStorageDeleteData [10:37:08]Write to MH i2c: 01 00 00 AA 0F B9 [10:37:08]Write i2c OK [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: 01 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: 01 07 00 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: 01 07 00 AA 0F 00 00 00 00 00 D6 0C A2 [10:37:08]RasterBufferAndPrint [10:37:08]line [10:37:08]line [10:37:08]line [10:37:08]line [10:37:08]line [10:37:08]written 0, free lines is 3293 [10:37:08]MH_Cut [10:37:08]Write to MH i2c: D1 01 00 B1 0F 01 92 [10:37:08]Write i2c OK [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: D1 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: D1 01 00 [10:37:08]MH_I2C_Read... [10:37:08]Read from MH i2c: D1 01 00 B1 0F 00 91 [10:37:08]Write to MH i2c: 01 00 00 B2 0F C1 [10:37:08]Write i2c OK [10:37:08]MH_I2C_Read... [10:37:09]OFD Sender: No OFD packet to send [10:37:09]*** Cut start [10:37:09]*** Purtial cut [10:37:09]*** Stage 1: CUTSNS_PIN = 1 [10:37:09]Read from MH i2c: 01 [10:37:09]MH_I2C_Read... [10:37:09]*** Stop cut motor [10:37:09]*** Cut end [10:37:09]Read from MH i2c: 01 07 00 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: 01 07 00 B2 0F 00 00 00 00 00 FF 0F D6 [10:37:09]process_action close_receipt done [10:37:09]requested_data is exist [10:37:09]produce_requested_data [10:37:09]requested_item fm.sn is exist - process it [10:37:09]wFMCommunicate request_size=4 [10:37:09]MH_SAM_APDU [10:37:09]CAPDU: 80 11 00 00 [10:37:09]Write to MH i2c: E2 08 00 B3 0F 80 11 00 00 00 00 00 00 3C [10:37:09]Write i2c OK [10:37:09]MH_I2C_Read... [10:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:09]Read from MH i2c: E2 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 17 00 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 17 00 B3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9C [10:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:37:09]wFMCommunicate OK [10:37:09]requested_item fd.num is exist - process it [10:37:09]SAM_PROTO_GetFieldsCounters [10:37:09]wFMCommunicate request_size=4 [10:37:09]MH_SAM_APDU [10:37:09]CAPDU: 80 13 00 00 [10:37:09]Write to MH i2c: E2 08 00 B4 0F 80 13 00 00 00 00 00 00 3F [10:37:09]Write i2c OK [10:37:09]MH_I2C_Read... [10:37:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:09]Read from MH i2c: E2 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 62 00 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 62 00 B4 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E1 7B 02 00 0E 04 04 00 CF 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 C3 [10:37:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E1 7B 02 00 0E 04 04 00 CF 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:37:09]wFMCommunicate OK [10:37:09]SAM_PROTO_GetFieldsCounters done [10:37:09]requested_item shift.num is exist - process it [10:37:09]requested_item shift.opened is exist - process it [10:37:09]req_shift_opened [10:37:09]FM_GetShiftState [10:37:09]SAM_PROTO_GetShiftState [10:37:09]wFMCommunicate request_size=4 [10:37:09]MH_SAM_APDU [10:37:09]CAPDU: 80 13 01 00 [10:37:09]Write to MH i2c: E2 08 00 B5 0F 80 13 01 00 00 00 00 00 41 [10:37:09]Write i2c OK [10:37:09]MH_I2C_Read... [10:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:09]Read from MH i2c: E2 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 0E 00 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 0E 00 B5 0F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 77 [10:37:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:37:09]wFMCommunicate OK [10:37:09]SAM_PROTO_GetShiftState done [10:37:09]FM_GetShiftState done [10:37:09]req_shift_opened done [10:37:09]requested_item shift.open_date is exist - process it [10:37:09]req_shift_open_date [10:37:09]req_shift_open_date done [10:37:09]produce_requested_data done [10:37:09]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162785,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:37:09]process_action_free close_receipt [10:37:09]json_value_free [10:37:09]json_value_free done [10:37:09]process_json_proto returns [10:37:09]Send response to host [10:37:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162785,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:37:09]free response buf [10:37:09]execute_script done [10:37:09]execute_script returns [10:37:09]free content buf [10:37:09]Sock 9.Close socket [10:37:09]Sock 9.Thread stoped [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:09]accept exits with 7 [10:41:09]New connection [10:41:09]New thread 3066879332 created [10:41:09]Thread 3066735972 joined [10:41:09]Waiting for new connection... [10:41:09] Sock 7.Parse request [10:41:09]Sock 7.Check first char [10:41:09]Sock 7.First char is OK [10:41:09]request: POST /json_proto HTTP/1.0 [10:41:09]Method: POST [10:41:09]URL: /json_proto [10:41:09]Method is POST - this is cgi request [10:41:09]url: /json_proto [10:41:09]query_string will be loaded in cgi processing [10:41:09]execute_cgi json_proto POST (null) [10:41:09]execute_cgi path=json_proto method=POST [10:41:09]POST find Content-Length [10:41:09]Host: 172.17.39.67:8080 [10:41:09]Content-Length: 679 [10:41:09]Content-Type: application/json [10:41:09] [10:41:09]POST finish read [10:41:09]Found Content-Length = 679 [10:41:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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" ] } } [10:41:09]execute_script... [10: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)1319376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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" ] } } [10:41:09]POST & json_proto [10:41:09]process_json_proto [10:41:09]json parsed OK: [10:41:09]protocol is kg_v1.0 [10:41:09]action value=close_receipt [10:41:09]process_action close_receipt [10:41:09]cmd_close_receipt [10:41:09]MH_GetDate [10:41:09]Write to MH i2c: F0 00 00 B6 0F B4 [10:41:09]Write i2c OK [10:41:09]MH_I2C_Read... [10:41:09]Read from MH i2c: F0 [10:41:09]MH_I2C_Read... [10:41:09]Read from MH i2c: F0 09 00 [10:41:09]MH_I2C_Read... [10:41:09]Read from MH i2c: F0 09 00 B6 0F 00 46 AB 93 66 B6 85 93 66 DB [10:41:09]GetLastDocTimeStamp 1720953426 [10:41:09]current date 1720953670 [10:41:09]FM_GetShiftState [10:41:09]SAM_PROTO_GetShiftState [10:41:09]wFMCommunicate request_size=4 [10:41:09]MH_SAM_APDU [10:41:09]CAPDU: 80 13 01 00 [10:41:09]Write to MH i2c: E2 08 00 B7 0F 80 13 01 00 00 00 00 00 43 [10:41:09]Write i2c OK [10:41:09]MH_I2C_Read... [10:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:10]Read from MH i2c: E2 [10:41:10]MH_I2C_Read... [10:41:10]Read from MH i2c: E2 0E 00 [10:41:10]MH_I2C_Read... [10:41:10]Read from MH i2c: E2 0E 00 B7 0F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 79 [10:41:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:41:10]wFMCommunicate OK [10:41:10]SAM_PROTO_GetShiftState done [10:41:10]FM_GetShiftState done [10:41:10]opened in 1720915483 [10:41:10]opened+sec_in_day 1721001883 [10:41:10]quantity*price = 70012 [10:41:10]sum+1 = 70014 [10:41:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 98 14.07.2024 10:41 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162786 ФПД: 69591879188641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104110&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162786&fm=69591879188641&tin=02508201610067®Number=0000000000090858&sum=70000 [10:41:11]StoreToDocumentArchive [10:41:11]shift 463 fd 162786 [10:41:11]save to /storage/0463/doc_00162786 [10:41:11]save last doc name /storage/0463/doc_00162786 to /storage/kkm_last_doc_name [10:41:11]save OK [10:41:11]Clear old archive folders... [10:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:11]tlvbuf is 012E98D0 [10:41:11]SAM_PROTO_ClearQueue [10:41:11]wFMCommunicate request_size=4 [10:41:11]MH_SAM_APDU [10:41:11]CAPDU: 80 09 00 00 [10:41:11]Write to MH i2c: E2 08 00 C4 0F 80 09 00 00 00 00 00 00 45 [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:11]Read from MH i2c: E2 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 03 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 03 00 C4 0F 00 90 00 47 [10:41:11]RAPDU: 90 00 [10:41:11]wFMCommunicate OK [10:41:11]SAM_PROTO_ClearQueue done [10:41:11]KKMCreateOFDPacket [10:41:11]OFDProtocolAddRootSTLVToBuf [10:41:11]FM_MakeSignedData [10:41:11]FM_MakeSignedData [10:41:11]SAM_PROTO_SignData [10:41:11]wFMCommunicate request_size=4 [10:41:11]MH_SAM_APDU [10:41:11]CAPDU: 80 0D 01 02 [10:41:11]Write to MH i2c: E2 08 00 C5 0F 80 0D 01 02 00 00 00 00 4D [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:11]Read from MH i2c: E2 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 03 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 03 00 C5 0F 00 90 00 48 [10:41:11]RAPDU: 90 00 [10:41:11]wFMCommunicate OK [10:41:11]wFMCommunicate request_size=255 [10:41:11]MH_SAM_APDU [10:41: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 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 46 AB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E2 7B 02 00 35 04 06 00 3F [10:41:11]Write to MH i2c: E2 02 01 C6 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 46 AB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E2 7B 02 00 35 04 06 00 3F 00 00 B4 [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:11]Read from MH i2c: E2 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 03 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 03 00 C6 0F 00 90 00 49 [10:41:11]RAPDU: 90 00 [10:41:11]wFMCommunicate OK [10:41:11]wFMCommunicate request_size=10 [10:41:11]MH_SAM_APDU [10:41:11]CAPDU: 80 0D 02 02 05 4B 1F 3D 00 A1 [10:41:11]Write to MH i2c: E2 0D 00 C7 0F 80 0D 02 02 05 00 4B 1F 3D 00 A1 00 00 A2 [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:11]Read from MH i2c: E2 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 03 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 03 00 C7 0F 00 90 00 4A [10:41:11]RAPDU: 90 00 [10:41:11]wFMCommunicate OK [10:41:11]wFMCommunicate request_size=4 [10:41:11]MH_SAM_APDU [10:41:11]CAPDU: 80 0D 03 02 [10:41:11]Write to MH i2c: E2 08 00 C8 0F 80 0D 03 02 00 00 00 00 52 [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:11]Read from MH i2c: E2 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 0B 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 0B 00 C8 0F 00 F9 C9 C1 60 A3 11 0D EC 90 00 E3 [10:41:11]RAPDU: F9 C9 C1 60 A3 11 0D EC 90 00 [10:41:11]wFMCommunicate OK [10:41:11]SAM_PROTO_SignData done [10:41:11]FM_MakeSignedData done [10:41:11]CreateOFDProtocolMessage [10:41:11]wFMCommunicate request_size=4 [10:41:11]MH_SAM_APDU [10:41:11]CAPDU: 80 11 00 00 [10:41:11]Write to MH i2c: E2 08 00 C9 0F 80 11 00 00 00 00 00 00 52 [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:11]Read from MH i2c: E2 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 17 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: E2 17 00 C9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B2 [10:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:41:11]wFMCommunicate OK [10:41:11]CreateOFDProtocolMessage done [10:41:11]OFDSenderStorePacket 162786 [10:41:11]StoreOFDPacket docnum=162786 [10:41:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 5B 31 07 01 82 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 46 AB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E2 7B 02 00 35 04 06 00 3F 4B 1F 3D 00 A1 F9 C9 C1 60 A3 11 0D EC [10:41:11]CheckFolder [10:41:11]dirname=/storage/ofd_packets [10:41:11]CheckFolder done [10:41:11]ProducePacketName [10:41:11]name=ofd_packets/00162786 [10:41:11]NVStorageSaveData ofd_packets/00162786 [10:41:11]File name is /storage/ofd_packets/00162786 [10:41:11]Write 301 bytes [10:41:11]NVStorageSaveData done [10:41:11]OFDSenderStorePacket done [10:41:11]KKMCreateOFDPacket done [10:41:11]NVStorageSaveData kkm_last_timestamp [10:41:11]File name is /storage/kkm_last_timestamp [10:41:11]Write 4 bytes [10:41:11]NVStorageSaveData done [10:41:11]ExternCall_PrintAddStr [10:41:11]wPrintStart [10:41:11]Write to MH i2c: 01 00 00 CA 0F D9 [10:41:11]Write i2c OK [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: 01 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: 01 07 00 [10:41:11]MH_I2C_Read... [10:41:11]Read from MH i2c: 01 07 00 CA 0F 00 00 00 00 00 FF 0F EE [10:41:11]RasterBufferAndPrint [10:41:11]line Счет N : (1)1319376 [10:41:11]line ИНН: 02508201610067 [10:41:11]line Контрольно-Кассовый Чек [10:41:11]line ПРОДАЖА [10:41:11]line ТРК (МРК, ГНК) : 53 [10:41:11]line Товар: 2710124130 [10:41:11]line Аи-92-К-5 [10:41:11]line 10.560 * 66.30 [10:41:11]line = 700.13 [10:41:11]line НДС 12% НСП 1% [10:41:11]line > о реализуемом товаре [10:41:11]line ОКРУГЛЕНИЕ: -0.13 [10:41:11]line ИТОГО: 700.00 [10:41:11]line Внесено: 700.00 [10:41:11]line СДАЧА: 0.00 [10:41:11]line НСП 1% : 6.20 [10:41:11]line НДС 12% : 74.35 [10:41:11]line Наличными: 700.00 [10:41:11]line Безнал.: 0.00 [10:41:11]line Место: АЗС № 140 "Партнер Нефть" [10:41:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:41:11]line СНО: Общий режим [10:41:11]line Чек 98 14.07.2024 10:41 [10:41:11]line Смена: 463 ФФД: 1.0 [10:41:11]line ЗНМ: 0300000129 [10:41:11]line РНМ: 0000000000090858 [10:41:11]line Версия ККМ: 001 [10:41:11]line ФМ: 0000000000874899 [10:41:11]line ФД: 162786 [10:41:11]line ФПД: 69591879188641 [10:41:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104110&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162786&fm=69591879188641&tin=02508201610067®Number=0000000000090858&sum=70000 [10:41:12]OFD Sender: Processing packet 162786 [packets to send 106, broken 105] [10:41:12]ProducePacketName [10:41:12]name=ofd_packets/00162786 [10:41:12]OFD Sender: To server: pG, [10:41:12]CommunicateWithHost lk.salyk.kg:30040 [10:41:12]ConnectInit lk.salyk.kg [10:41:12]written 0, free lines is 4095 [10:41:12]Connected sock=10 [10:41:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 5B 31 07 01 82 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 46 AB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E2 7B 02 00 35 04 06 00 3F 4B 1F 3D 00 A1 F9 C9 C1 60 A3 11 0D EC [10:41:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 53 4B 47 00 16 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E2 7B 02 00 F4 03 04 00 54 57 93 66 B6 04 01 00 00 A0 DB EB CA 5A 60 4A 9C [10:41:12]CommunicateWithHost err = 0 [10:41:12]CheckOFDResponse [10:41:12]1017 (14) - 77093643461234 [10:41:12]1041 (16) - 0000000000874899 [10:41:12]1040 (4) - 162786 [10:41:12]1012 (4) - 14.07.2024 04:43 [10:41:12]1206 (1) - 0 [10:41:12]OFD Sender: Remove packet 162786 [10:41:12]ProducePacketName [10:41:12]name=ofd_packets/00162786 [10:41:12]NVStorageDeleteData [10:41:12]Write to MH i2c: 01 00 00 F5 0F 04 [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: 01 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: 01 07 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: 01 07 00 F5 0F 00 00 00 00 00 D1 0C E8 [10:41:12]RasterBufferAndPrint [10:41:12]line [10:41:12]line [10:41:12]line [10:41:12]line [10:41:12]line [10:41:12]written 0, free lines is 3287 [10:41:12]MH_Cut [10:41:12]Write to MH i2c: D1 01 00 FC 0F 01 DD [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: D1 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: D1 01 00 [10:41:12]MH_I2C_Read... [10:41:12]Read from MH i2c: D1 01 00 FC 0F 00 DC [10:41:12]Write to MH i2c: 01 00 00 FD 0F 0C [10:41:12]Write i2c OK [10:41:12]MH_I2C_Read... [10:41:12]OFD Sender: No OFD packet to send [10:41:13]*** Cut start [10:41:13]*** Purtial cut [10:41:13]*** CUTSNS_PIN = 0 [10:41:13]*** Stage 1: CUTSNS_PIN = 1 [10:41:15]Read from MH i2c: 01 [10:41:15]MH_I2C_Read... [10:41:15]*** Stop cut motor [10:41:15]*** Cut end [10:41:15]Read from MH i2c: 01 07 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: 01 07 00 FD 0F 00 00 00 00 00 FF 0F 21 [10:41:15]process_action close_receipt done [10:41:15]requested_data is exist [10:41:15]produce_requested_data [10:41:15]requested_item fm.sn is exist - process it [10:41:15]wFMCommunicate request_size=4 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 11 00 00 [10:41:15]Write to MH i2c: E2 08 00 FE 0F 80 11 00 00 00 00 00 00 87 [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 17 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 17 00 FE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E7 [10:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:41:15]wFMCommunicate OK [10:41:15]requested_item fd.num is exist - process it [10:41:15]SAM_PROTO_GetFieldsCounters [10:41:15]wFMCommunicate request_size=4 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 13 00 00 [10:41:15]Write to MH i2c: E2 08 00 FF 0F 80 13 00 00 00 00 00 00 8A [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 62 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 62 00 FF 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E2 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [10:41:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E2 7B 02 00 0E 04 04 00 CF 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:41:15]wFMCommunicate OK [10:41:15]SAM_PROTO_GetFieldsCounters done [10:41:15]requested_item shift.num is exist - process it [10:41:15]requested_item shift.opened is exist - process it [10:41:15]req_shift_opened [10:41:15]FM_GetShiftState [10:41:15]SAM_PROTO_GetShiftState [10:41:15]wFMCommunicate request_size=4 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 13 01 00 [10:41:15]Write to MH i2c: E2 08 00 00 10 80 13 01 00 00 00 00 00 8D [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 0E 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 0E 00 00 10 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C3 [10:41:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:41:15]wFMCommunicate OK [10:41:15]SAM_PROTO_GetShiftState done [10:41:15]FM_GetShiftState done [10:41:15]req_shift_opened done [10:41:15]requested_item shift.open_date is exist - process it [10:41:15]req_shift_open_date [10:41:15]req_shift_open_date done [10:41:15]produce_requested_data done [10:41:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162786,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:41:15]process_action_free close_receipt [10:41:15]json_value_free [10:41:15]json_value_free done [10:41:15]process_json_proto returns [10:41:15]Send response to host [10:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162786,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:41:15]free response buf [10:41:15]execute_script done [10:41:15]execute_script returns [10:41:15]free content buf [10:41:15]Sock 7.Close socket [10:41:15]Sock 7.Thread stoped [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:19]accept exits with 9 [10:42:19]New connection [10:42:19]New thread 3066735972 created [10:42:19]Thread 3066879332 joined [10:42:19]Waiting for new connection... [10:42:19] Sock 9.Parse request [10:42:19]Sock 9.Check first char [10:42:19]Sock 9.First char is OK [10:42:19]request: POST /json_proto HTTP/1.0 [10:42:19]Method: POST [10:42:19]URL: /json_proto [10:42:19]Method is POST - this is cgi request [10:42:19]url: /json_proto [10:42:19]query_string will be loaded in cgi processing [10:42:19]execute_cgi json_proto POST (null) [10:42:19]execute_cgi path=json_proto method=POST [10:42:19]POST find Content-Length [10:42:19]Host: 172.17.39.67:8080 [10:42:19]Content-Length: 1211 [10:42:19]Content-Type: application/json [10:42:19] [10:42:19]POST finish read [10:42:19]Found Content-Length = 1211 [10:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319377\u000A14.07.2024 10:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092725/4092726\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:19]execute_script... [10:42:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319377\u000A14.07.2024 10:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092725/4092726\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:19]POST & json_proto [10:42:19]process_json_proto [10:42:19]json parsed OK: [10:42:19]protocol is kg_v1.0 [10:42:19]action value=print_text [10:42:19]process_action print_text [10:42:19]cmd_print_text [10:42:19]ExternCall_PrintAddStr [10:42:19]wPrintStart [10:42:19]Write to MH i2c: 01 00 00 01 10 11 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: 01 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: 01 07 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: 01 07 00 01 10 00 00 00 00 00 FF 0F 26 [10:42:19]RasterBufferAndPrint [10:42:19]line *****ТОВАРНЫЙ ЧЕК***** [10:42:19]line АЗС 140 [10:42:19]line Партнер нефть [10:42:19]line 02508201610067 [10:42:19]line Кассир : Дуйшенбек у Н. [10:42:19]line Счет N : (1)1319377 [10:42:19]line 14.07.2024 10:39 [10:42:19]line ПРОДАЖА [10:42:19]line ТРК (МРК, ГНК): 21 [10:42:19]line Вид ГСМ : 2710194210 [10:42:19]line ДТ(л)-К-5 [10:42:19]line 40.000 x 72.60 [10:42:19]line ИТОГ: 2904.00 [10:42:19]line Тип оплаты: Талоны: Партнер нефть [10:42:19]line 4092725/4092726 [10:42:19]line ______________________ [10:42:19]line (подпись) [10:42:19]written 0, free lines is 4095 [10:42:19]Write to MH i2c: 01 00 00 15 10 25 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: 01 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: 01 07 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: 01 07 00 15 10 00 00 00 00 00 16 0E 50 [10:42:19]RasterBufferAndPrint [10:42:19]line [10:42:19]line [10:42:19]line [10:42:19]line [10:42:19]line [10:42:19]written 0, free lines is 3608 [10:42:19]MH_Cut [10:42:19]Write to MH i2c: D1 01 00 1C 10 01 FE [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: D1 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: D1 01 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: D1 01 00 1C 10 00 FD [10:42:19]Write to MH i2c: 01 00 00 1D 10 2D [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:20]*** Cut start [10:42:20]*** Purtial cut [10:42:20]*** Stage 1: CUTSNS_PIN = 1 [10:42:20]Read from MH i2c: 01 [10:42:20]MH_I2C_Read... [10:42:20]*** Stop cut motor [10:42:20]*** Cut end [10:42:20]Read from MH i2c: 01 07 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: 01 07 00 1D 10 00 00 00 00 00 FF 0F 42 [10:42:20]process_action print_text done [10:42:20]requested_data is exist [10:42:20]produce_requested_data [10:42:20]requested_item fm.sn is exist - process it [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 11 00 00 [10:42:20]Write to MH i2c: E2 08 00 1E 10 80 11 00 00 00 00 00 00 A8 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 17 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 17 00 1E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 08 [10:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:42:20]wFMCommunicate OK [10:42:20]requested_item fd.num is exist - process it [10:42:20]SAM_PROTO_GetFieldsCounters [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 13 00 00 [10:42:20]Write to MH i2c: E2 08 00 1F 10 80 13 00 00 00 00 00 00 AB [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 62 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 62 00 1F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E2 7B 02 00 0E 04 04 00 CF 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 33 [10:42:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E2 7B 02 00 0E 04 04 00 CF 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:42:20]wFMCommunicate OK [10:42:20]SAM_PROTO_GetFieldsCounters done [10:42:20]requested_item shift.num is exist - process it [10:42:20]requested_item shift.opened is exist - process it [10:42:20]req_shift_opened [10:42:20]FM_GetShiftState [10:42:20]SAM_PROTO_GetShiftState [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 13 01 00 [10:42:20]Write to MH i2c: E2 08 00 20 10 80 13 01 00 00 00 00 00 AD [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 0E 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 0E 00 20 10 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E3 [10:42:20]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:42:20]wFMCommunicate OK [10:42:20]SAM_PROTO_GetShiftState done [10:42:20]FM_GetShiftState done [10:42:20]req_shift_opened done [10:42:20]requested_item shift.open_date is exist - process it [10:42:20]req_shift_open_date [10:42:20]req_shift_open_date done [10:42:20]produce_requested_data done [10:42:20]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162786,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:42:20]process_action_free print_text [10:42:20]json_value_free [10:42:20]json_value_free done [10:42:20]process_json_proto returns [10:42:20]Send response to host [10:42:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162786,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:42:20]free response buf [10:42:20]execute_script done [10:42:20]execute_script returns [10:42:20]free content buf [10:42:20]Sock 9.Close socket [10:42:20]Sock 9.Thread stoped [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:34]accept exits with 7 [10:45:34]New connection [10:45:34]New thread 3066879332 created [10:45:34]Thread 3066735972 joined [10:45:34]Waiting for new connection... [10:45:34] Sock 7.Parse request [10:45:34]Sock 7.Check first char [10:45:34]Sock 7.First char is OK [10:45:34]request: POST /json_proto HTTP/1.0 [10:45:34]Method: POST [10:45:34]URL: /json_proto [10:45:34]Method is POST - this is cgi request [10:45:34]url: /json_proto [10:45:34]query_string will be loaded in cgi processing [10:45:34]execute_cgi json_proto POST (null) [10:45:34]execute_cgi path=json_proto method=POST [10:45:34]POST find Content-Length [10:45:34]Host: 172.17.39.67:8080 [10:45:34]Content-Length: 1212 [10:45:34]Content-Type: application/json [10:45:34] [10:45:34]POST finish read [10:45:34]Found Content-Length = 1212 [10:45:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319379\u000A14.07.2024 10:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 13.770 x 72.60\u000A\u0418\u0422\u041E\u0413: 999.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01524\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:34]execute_script... [10:45:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319379\u000A14.07.2024 10:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 13.770 x 72.60\u000A\u0418\u0422\u041E\u0413: 999.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01524\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:34]POST & json_proto [10:45:34]process_json_proto [10:45:34]json parsed OK: [10:45:34]protocol is kg_v1.0 [10:45:34]action value=print_text [10:45:34]process_action print_text [10:45:34]cmd_print_text [10:45:34]ExternCall_PrintAddStr [10:45:34]wPrintStart [10:45:34]Write to MH i2c: 01 00 00 21 10 31 [10:45:34]Write i2c OK [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: 01 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: 01 07 00 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: 01 07 00 21 10 00 00 00 00 00 FF 0F 46 [10:45:34]RasterBufferAndPrint [10:45:34]line *****ТОВАРНЫЙ ЧЕК***** [10:45:34]line АЗС 140 [10:45:34]line Партнер нефть [10:45:34]line 02508201610067 [10:45:34]line Кассир : Дуйшенбек у Н. [10:45:34]line Счет N : (1)1319379 [10:45:34]line 14.07.2024 10:43 [10:45:34]line ПРОДАЖА [10:45:34]line ТРК (МРК, ГНК): 11 [10:45:34]line Вид ГСМ : 2710194210 [10:45:34]line ДТ(л)-К-5 [10:45:34]line 13.770 x 72.60 [10:45:34]line ИТОГ: 999.70 [10:45:34]line Тип оплаты: Талоны: Топливная Карта [10:45:34]line 01524 [10:45:34]line ______________________ [10:45:34]line (подпись) [10:45:34]written 0, free lines is 4095 [10:45:35]Write to MH i2c: 01 00 00 35 10 45 [10:45:35]Write i2c OK [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: 01 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: 01 07 00 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: 01 07 00 35 10 00 00 00 00 00 10 0E 6A [10:45:35]RasterBufferAndPrint [10:45:35]line [10:45:35]line [10:45:35]line [10:45:35]line [10:45:35]line [10:45:35]written 0, free lines is 3601 [10:45:35]MH_Cut [10:45:35]Write to MH i2c: D1 01 00 3C 10 01 1E [10:45:35]Write i2c OK [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: D1 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: D1 01 00 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: D1 01 00 3C 10 00 1D [10:45:35]Write to MH i2c: 01 00 00 3D 10 4D [10:45:35]Write i2c OK [10:45:35]MH_I2C_Read... [10:45:35]*** Cut start [10:45:35]*** Purtial cut [10:45:35]*** CUTSNS_PIN = 0 [10:45:35]*** Stage 1: CUTSNS_PIN = 1 [10:45:37]Read from MH i2c: 01 [10:45:37]MH_I2C_Read... [10:45:37]*** Stop cut motor [10:45:37]*** Cut end [10:45:37]Read from MH i2c: 01 07 00 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: 01 07 00 3D 10 00 00 00 00 00 FF 0F 62 [10:45:37]process_action print_text done [10:45:37]requested_data is exist [10:45:37]produce_requested_data [10:45:37]requested_item fm.sn is exist - process it [10:45:37]wFMCommunicate request_size=4 [10:45:37]MH_SAM_APDU [10:45:37]CAPDU: 80 11 00 00 [10:45:37]Write to MH i2c: E2 08 00 3E 10 80 11 00 00 00 00 00 00 C8 [10:45:37]Write i2c OK [10:45:37]MH_I2C_Read... [10:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:37]Read from MH i2c: E2 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 17 00 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 17 00 3E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 28 [10:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:45:37]wFMCommunicate OK [10:45:37]requested_item fd.num is exist - process it [10:45:37]SAM_PROTO_GetFieldsCounters [10:45:37]wFMCommunicate request_size=4 [10:45:37]MH_SAM_APDU [10:45:37]CAPDU: 80 13 00 00 [10:45:37]Write to MH i2c: E2 08 00 3F 10 80 13 00 00 00 00 00 00 CB [10:45:37]Write i2c OK [10:45:37]MH_I2C_Read... [10:45:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:37]Read from MH i2c: E2 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 62 00 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 62 00 3F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E2 7B 02 00 0E 04 04 00 CF 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 53 [10:45:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E2 7B 02 00 0E 04 04 00 CF 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:45:37]wFMCommunicate OK [10:45:37]SAM_PROTO_GetFieldsCounters done [10:45:37]requested_item shift.num is exist - process it [10:45:37]requested_item shift.opened is exist - process it [10:45:37]req_shift_opened [10:45:37]FM_GetShiftState [10:45:37]SAM_PROTO_GetShiftState [10:45:37]wFMCommunicate request_size=4 [10:45:37]MH_SAM_APDU [10:45:37]CAPDU: 80 13 01 00 [10:45:37]Write to MH i2c: E2 08 00 40 10 80 13 01 00 00 00 00 00 CD [10:45:37]Write i2c OK [10:45:37]MH_I2C_Read... [10:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:37]Read from MH i2c: E2 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 0E 00 [10:45:37]MH_I2C_Read... [10:45:37]Read from MH i2c: E2 0E 00 40 10 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 03 [10:45:37]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:45:37]wFMCommunicate OK [10:45:37]SAM_PROTO_GetShiftState done [10:45:37]FM_GetShiftState done [10:45:37]req_shift_opened done [10:45:37]requested_item shift.open_date is exist - process it [10:45:37]req_shift_open_date [10:45:37]req_shift_open_date done [10:45:37]produce_requested_data done [10:45:37]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162786,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:45:37]process_action_free print_text [10:45:37]json_value_free [10:45:37]json_value_free done [10:45:37]process_json_proto returns [10:45:37]Send response to host [10:45:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162786,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:45:37]free response buf [10:45:37]execute_script done [10:45:37]execute_script returns [10:45:37]free content buf [10:45:37]Sock 7.Close socket [10:45:37]Sock 7.Thread stoped [10:45:38]OFD Sender: No OFD packet to send [10:45:38]accept exits with 9 [10:45:38]New connection [10:45:38]New thread 3066735972 created [10:45:38]Thread 3066879332 joined [10:45:38]Waiting for new connection... [10:45:38] Sock 9.Parse request [10:45:38]Sock 9.Check first char [10:45:38]Sock 9.First char is OK [10:45:38]request: POST /json_proto HTTP/1.0 [10:45:38]Method: POST [10:45:38]URL: /json_proto [10:45:38]Method is POST - this is cgi request [10:45:38]url: /json_proto [10:45:38]query_string will be loaded in cgi processing [10:45:38]execute_cgi json_proto POST (null) [10:45:38]execute_cgi path=json_proto method=POST [10:45:38]POST find Content-Length [10:45:38]Host: 172.17.39.67:8080 [10:45:38]Content-Length: 947 [10:45:38]Content-Type: application/json [10:45:38] [10:45:38]POST finish read [10:45:38]Found Content-Length = 947 [10:45:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.60, "quantity" : 50.000, "sum" : 3580.00, "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 140\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 3580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:38]execute_script... [10:45: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)1319378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.60, "quantity" : 50.000, "sum" : 3580.00, "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 140\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 3580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:38]POST & json_proto [10:45:38]process_json_proto [10:45:38]json parsed OK: [10:45:38]protocol is kg_v1.0 [10:45:38]action value=close_receipt [10:45:38]process_action close_receipt [10:45:38]cmd_close_receipt [10:45:38]MH_GetDate [10:45:38]Write to MH i2c: F0 00 00 41 10 40 [10:45:38]Write i2c OK [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: F0 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: F0 09 00 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: F0 09 00 41 10 00 52 AC 93 66 B6 85 93 66 74 [10:45:38]GetLastDocTimeStamp 1720953670 [10:45:38]current date 1720953938 [10:45:38]FM_GetShiftState [10:45:38]SAM_PROTO_GetShiftState [10:45:38]wFMCommunicate request_size=4 [10:45:38]MH_SAM_APDU [10:45:38]CAPDU: 80 13 01 00 [10:45:38]Write to MH i2c: E2 08 00 42 10 80 13 01 00 00 00 00 00 CF [10:45:38]Write i2c OK [10:45:38]MH_I2C_Read... [10:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:38]Read from MH i2c: E2 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: E2 0E 00 [10:45:38]MH_I2C_Read... [10:45:38]Read from MH i2c: E2 0E 00 42 10 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 05 [10:45:38]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:45:38]wFMCommunicate OK [10:45:38]SAM_PROTO_GetShiftState done [10:45:38]FM_GetShiftState done [10:45:38]opened in 1720915483 [10:45:38]opened+sec_in_day 1721001883 [10:45:38]quantity*price = 358000 [10:45:38]sum+1 = 358001 [10:45:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3580.00 НСП 1% : 31.68 НДС 12% : 380.18 Наличными: 3580.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 99 14.07.2024 10:45 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Дисконтная программа ДТ номер 140 сэкономлено 50.00 сом ФМ: 0000000000874899 ФД: 162787 ФПД: 198281235052698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104539&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162787&fm=198281235052698&tin=02508201610067®Number=0000000000090858&sum=358000 [10:45:39]StoreToDocumentArchive [10:45:39]shift 463 fd 162787 [10:45:39]save to /storage/0463/doc_00162787 [10:45:39]save last doc name /storage/0463/doc_00162787 to /storage/kkm_last_doc_name [10:45:39]save OK [10:45:39]Clear old archive folders... [10:45:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:45:39]tlvbuf is 012F5600 [10:45:39]SAM_PROTO_ClearQueue [10:45:39]wFMCommunicate request_size=4 [10:45:39]MH_SAM_APDU [10:45:39]CAPDU: 80 09 00 00 [10:45:39]Write to MH i2c: E2 08 00 4F 10 80 09 00 00 00 00 00 00 D1 [10:45:39]Write i2c OK [10:45:39]MH_I2C_Read... [10:45:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:39]Read from MH i2c: E2 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: E2 03 00 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: E2 03 00 4F 10 00 90 00 D3 [10:45:39]RAPDU: 90 00 [10:45:39]wFMCommunicate OK [10:45:39]SAM_PROTO_ClearQueue done [10:45:39]KKMCreateOFDPacket [10:45:39]OFDProtocolAddRootSTLVToBuf [10:45:39]FM_MakeSignedData [10:45:39]FM_MakeSignedData [10:45:39]SAM_PROTO_SignData [10:45:39]wFMCommunicate request_size=4 [10:45:39]MH_SAM_APDU [10:45:39]CAPDU: 80 0D 01 02 [10:45:39]Write to MH i2c: E2 08 00 50 10 80 0D 01 02 00 00 00 00 D9 [10:45:39]Write i2c OK [10:45:39]MH_I2C_Read... [10:45:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:39]Read from MH i2c: E2 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: E2 03 00 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: E2 03 00 50 10 00 90 00 D4 [10:45:39]RAPDU: 90 00 [10:45:39]wFMCommunicate OK [10:45:39]wFMCommunicate request_size=255 [10:45:39]MH_SAM_APDU [10:45:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 70 76 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 76 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 94 00 00 00 00 07 04 06 00 70 76 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 53 AC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E3 7B 02 00 35 04 06 00 [10:45:39]Write to MH i2c: E2 02 01 51 10 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 70 76 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 76 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 94 00 00 00 00 07 04 06 00 70 76 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 53 AC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E3 7B 02 00 35 04 06 00 00 00 24 [10:45:39]Write i2c OK [10:45:39]MH_I2C_Read... [10:45:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:39]Read from MH i2c: E2 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: E2 03 00 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: E2 03 00 51 10 00 90 00 D5 [10:45:39]RAPDU: 90 00 [10:45:39]wFMCommunicate OK [10:45:39]wFMCommunicate request_size=11 [10:45:39]MH_SAM_APDU [10:45:39]CAPDU: 80 0D 02 02 06 B4 55 F2 94 B8 9A [10:45:39]Write to MH i2c: E2 0E 00 52 10 80 0D 02 02 06 00 B4 55 F2 94 B8 9A 00 00 C9 [10:45:39]Write i2c OK [10:45:39]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 03 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 03 00 52 10 00 90 00 D6 [10:45:40]RAPDU: 90 00 [10:45:40]wFMCommunicate OK [10:45:40]wFMCommunicate request_size=4 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 0D 03 02 [10:45:40]Write to MH i2c: E2 08 00 53 10 80 0D 03 02 00 00 00 00 DE [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 0B 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 0B 00 53 10 00 57 17 80 77 4D 7D AF 1C 90 00 D9 [10:45:40]RAPDU: 57 17 80 77 4D 7D AF 1C 90 00 [10:45:40]wFMCommunicate OK [10:45:40]SAM_PROTO_SignData done [10:45:40]FM_MakeSignedData done [10:45:40]CreateOFDProtocolMessage [10:45:40]wFMCommunicate request_size=4 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 11 00 00 [10:45:40]Write to MH i2c: E2 08 00 54 10 80 11 00 00 00 00 00 00 DE [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 17 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 17 00 54 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3E [10:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:45:40]wFMCommunicate OK [10:45:40]CreateOFDProtocolMessage done [10:45:40]OFDSenderStorePacket 162787 [10:45:40]StoreOFDPacket docnum=162787 [10:45:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 FD B2 08 01 33 CB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 70 76 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 76 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 94 00 00 00 00 07 04 06 00 70 76 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 53 AC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E3 7B 02 00 35 04 06 00 B4 55 F2 94 B8 9A 57 17 80 77 4D 7D AF 1C [10:45:40]CheckFolder [10:45:40]dirname=/storage/ofd_packets [10:45:40]CheckFolder done [10:45:40]ProducePacketName [10:45:40]name=ofd_packets/00162787 [10:45:40]NVStorageSaveData ofd_packets/00162787 [10:45:40]File name is /storage/ofd_packets/00162787 [10:45:40]Write 302 bytes [10:45:40]NVStorageSaveData done [10:45:40]OFDSenderStorePacket done [10:45:40]KKMCreateOFDPacket done [10:45:40]NVStorageSaveData kkm_last_timestamp [10:45:40]File name is /storage/kkm_last_timestamp [10:45:40]Write 4 bytes [10:45:40]NVStorageSaveData done [10:45:40]ExternCall_PrintAddStr [10:45:40]wPrintStart [10:45:40]Write to MH i2c: 01 00 00 55 10 65 [10:45:40]OFD Sender: Processing packet 162787 [packets to send 106, broken 105] [10:45:40]ProducePacketName [10:45:40]name=ofd_packets/00162787 [10:45:40]OFD Sender: To server: pG, [10:45:40]CommunicateWithHost lk.salyk.kg:30040 [10:45:40]ConnectInit lk.salyk.kg [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: 01 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: 01 07 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: 01 07 00 55 10 00 00 00 00 00 FF 0F 7A [10:45:40]RasterBufferAndPrint [10:45:40]line Счет N : (1)1319378 [10:45:40]line ИНН: 02508201610067 [10:45:40]line Контрольно-Кассовый Чек [10:45:40]line ПРОДАЖА [10:45:40]line ТРК (МРК, ГНК) : 61 [10:45:40]line Товар: 2710194210 [10:45:40]line ДТ(л)-К-5 [10:45:40]line 50.000 * 71.60 [10:45:40]line = 3580.00 [10:45:40]line НДС 12% НСП 1% [10:45:40]line > о реализуемом товаре [10:45:40]line ИТОГО: 3580.00 [10:45:40]line НСП 1% : 31.68 [10:45:40]line НДС 12% : 380.18 [10:45:40]line Наличными: 3580.00 [10:45:40]line Безнал.: 0.00 [10:45:40]line Место: АЗС № 140 "Партнер Нефть" [10:45:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:45:40]line СНО: Общий режим [10:45:40]line Чек 99 14.07.2024 10:45 [10:45:40]line Смена: 463 ФФД: 1.0 [10:45:40]line ЗНМ: 0300000129 [10:45:40]line РНМ: 0000000000090858 [10:45:40]line Версия ККМ: 001 [10:45:40]line [10:45:40]line Дисконтная программа [10:45:40]line ДТ [10:45:40]line номер 140 [10:45:40]line сэкономлено 50.00 сом [10:45:40]line ФМ: 0000000000874899 [10:45:40]line ФД: 162787 [10:45:40]line ФПД: 198281235052698 [10:45:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104539&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162787&fm=198281235052698&tin=02508201610067®Number=0000000000090858&sum=358000 [10:45:40]written 0, free lines is 4095 [10:45:40]Connected sock=10 [10:45:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 FD B2 08 01 33 CB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 70 76 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 76 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 94 00 00 00 00 07 04 06 00 70 76 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 53 AC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E3 7B 02 00 35 04 06 00 B4 55 F2 94 B8 9A 57 17 80 77 4D 7D AF 1C [10:45:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3E 2A 47 00 F1 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E3 7B 02 00 F4 03 04 00 61 58 93 66 B6 04 01 00 00 0B 28 9B EF 3E 8A 40 E0 [10:45:40]CommunicateWithHost err = 0 [10:45:40]CheckOFDResponse [10:45:40]1017 (14) - 77093643461234 [10:45:40]1041 (16) - 0000000000874899 [10:45:40]1040 (4) - 162787 [10:45:40]1012 (4) - 14.07.2024 04:47 [10:45:40]1206 (1) - 0 [10:45:40]OFD Sender: Remove packet 162787 [10:45:40]ProducePacketName [10:45:40]name=ofd_packets/00162787 [10:45:40]NVStorageDeleteData [10:45:41]Write to MH i2c: 01 00 00 82 10 92 [10:45:41]Write i2c OK [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: 01 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: 01 07 00 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: 01 07 00 82 10 00 00 00 00 00 D3 0C 78 [10:45:41]RasterBufferAndPrint [10:45:41]line [10:45:41]line [10:45:41]line [10:45:41]line [10:45:41]line [10:45:41]written 0, free lines is 3290 [10:45:41]MH_Cut [10:45:41]Write to MH i2c: D1 01 00 89 10 01 6B [10:45:41]Write i2c OK [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: D1 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: D1 01 00 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: D1 01 00 89 10 00 6A [10:45:41]Write to MH i2c: 01 00 00 8A 10 9A [10:45:41]Write i2c OK [10:45:41]MH_I2C_Read... [10:45:41]OFD Sender: No OFD packet to send [10:45:41]*** Cut start [10:45:41]*** Purtial cut [10:45:41]*** Stage 1: CUTSNS_PIN = 1 [10:45:42]Read from MH i2c: 01 [10:45:42]MH_I2C_Read... [10:45:42]*** Stop cut motor [10:45:42]*** Cut end [10:45:42]Read from MH i2c: 01 07 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: 01 07 00 8A 10 00 00 00 00 00 FF 0F AF [10:45:42]process_action close_receipt done [10:45:42]requested_data is exist [10:45:42]produce_requested_data [10:45:42]requested_item fm.sn is exist - process it [10:45:42]wFMCommunicate request_size=4 [10:45:42]MH_SAM_APDU [10:45:42]CAPDU: 80 11 00 00 [10:45:42]Write to MH i2c: E2 08 00 8B 10 80 11 00 00 00 00 00 00 15 [10:45:42]Write i2c OK [10:45:42]MH_I2C_Read... [10:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:42]Read from MH i2c: E2 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 17 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 17 00 8B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 75 [10:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:45:42]wFMCommunicate OK [10:45:42]requested_item fd.num is exist - process it [10:45:42]SAM_PROTO_GetFieldsCounters [10:45:42]wFMCommunicate request_size=4 [10:45:42]MH_SAM_APDU [10:45:42]CAPDU: 80 13 00 00 [10:45:42]Write to MH i2c: E2 08 00 8C 10 80 13 00 00 00 00 00 00 18 [10:45:42]Write i2c OK [10:45:42]MH_I2C_Read... [10:45:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:42]Read from MH i2c: E2 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 62 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 62 00 8C 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E3 7B 02 00 0E 04 04 00 CF 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 A4 [10:45:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E3 7B 02 00 0E 04 04 00 CF 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:45:42]wFMCommunicate OK [10:45:42]SAM_PROTO_GetFieldsCounters done [10:45:42]requested_item shift.num is exist - process it [10:45:42]requested_item shift.opened is exist - process it [10:45:42]req_shift_opened [10:45:42]FM_GetShiftState [10:45:42]SAM_PROTO_GetShiftState [10:45:42]wFMCommunicate request_size=4 [10:45:42]MH_SAM_APDU [10:45:42]CAPDU: 80 13 01 00 [10:45:42]Write to MH i2c: E2 08 00 8D 10 80 13 01 00 00 00 00 00 1A [10:45:42]Write i2c OK [10:45:42]MH_I2C_Read... [10:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:42]Read from MH i2c: E2 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 0E 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 0E 00 8D 10 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 50 [10:45:42]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:45:42]wFMCommunicate OK [10:45:42]SAM_PROTO_GetShiftState done [10:45:42]FM_GetShiftState done [10:45:42]req_shift_opened done [10:45:42]requested_item shift.open_date is exist - process it [10:45:42]req_shift_open_date [10:45:42]req_shift_open_date done [10:45:42]produce_requested_data done [10:45:42]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162787,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:45:42]process_action_free close_receipt [10:45:42]json_value_free [10:45:42]json_value_free done [10:45:42]process_json_proto returns [10:45:42]Send response to host [10:45:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162787,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:45:42]free response buf [10:45:42]execute_script done [10:45:42]execute_script returns [10:45:42]free content buf [10:45:42]Sock 9.Close socket [10:45:42]Sock 9.Thread stoped [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:09]accept exits with 7 [10:47:09]New connection [10:47:09]New thread 3066879332 created [10:47:09]Thread 3066735972 joined [10:47:09]Waiting for new connection... [10:47:09] Sock 7.Parse request [10:47:09]Sock 7.Check first char [10:47:09]Sock 7.First char is OK [10:47:09]request: POST /json_proto HTTP/1.0 [10:47:09]Method: POST [10:47:09]URL: /json_proto [10:47:09]Method is POST - this is cgi request [10:47:09]url: /json_proto [10:47:09]query_string will be loaded in cgi processing [10:47:09]execute_cgi json_proto POST (null) [10:47:09]execute_cgi path=json_proto method=POST [10:47:09]POST find Content-Length [10:47:09]Host: 172.17.39.67:8080 [10:47:09]Content-Length: 804 [10:47:09]Content-Type: application/json [10:47:09] [10:47:09]POST finish read [10:47:09]Found Content-Length = 804 [10:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 33.610, "sum" : 2500.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2500.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:09]execute_script... [10:47: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)1319380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 33.610, "sum" : 2500.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2500.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:09]POST & json_proto [10:47:09]process_json_proto [10:47:09]json parsed OK: [10:47:09]protocol is kg_v1.0 [10:47:09]action value=close_receipt [10:47:09]process_action close_receipt [10:47:09]cmd_close_receipt [10:47:09]MH_GetDate [10:47:09]Write to MH i2c: F0 00 00 8E 10 8D [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: F0 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: F0 09 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: F0 09 00 8E 10 00 AD AC 93 66 B6 85 93 66 1C [10:47:09]GetLastDocTimeStamp 1720953939 [10:47:09]current date 1720954029 [10:47:09]FM_GetShiftState [10:47:09]SAM_PROTO_GetShiftState [10:47:09]wFMCommunicate request_size=4 [10:47:09]MH_SAM_APDU [10:47:09]CAPDU: 80 13 01 00 [10:47:09]Write to MH i2c: E2 08 00 8F 10 80 13 01 00 00 00 00 00 1C [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 0E 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 0E 00 8F 10 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 52 [10:47:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:47:09]wFMCommunicate OK [10:47:09]SAM_PROTO_GetShiftState done [10:47:09]FM_GetShiftState done [10:47:09]opened in 1720915483 [10:47:09]opened+sec_in_day 1721001883 [10:47:09]quantity*price = 250058 [10:47:09]sum+1 = 250059 [10:47:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.58 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 0.00 Безнал.: 2500.58 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 100 14.07.2024 10:47 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162788 ФПД: 264971599825946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104709&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162788&fm=264971599825946&tin=02508201610067®Number=0000000000090858&sum=250058 [10:47:10]StoreToDocumentArchive [10:47:10]shift 463 fd 162788 [10:47:10]save to /storage/0463/doc_00162788 [10:47:10]save last doc name /storage/0463/doc_00162788 to /storage/kkm_last_doc_name [10:47:10]save OK [10:47:10]Clear old archive folders... [10:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:10]tlvbuf is B6EAFB60 [10:47:10]SAM_PROTO_ClearQueue [10:47:10]wFMCommunicate request_size=4 [10:47:10]MH_SAM_APDU [10:47:10]CAPDU: 80 09 00 00 [10:47:10]Write to MH i2c: E2 08 00 9C 10 80 09 00 00 00 00 00 00 1E [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:10]Read from MH i2c: E2 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 03 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 03 00 9C 10 00 90 00 20 [10:47:10]RAPDU: 90 00 [10:47:10]wFMCommunicate OK [10:47:10]SAM_PROTO_ClearQueue done [10:47:10]KKMCreateOFDPacket [10:47:10]OFDProtocolAddRootSTLVToBuf [10:47:10]FM_MakeSignedData [10:47:10]FM_MakeSignedData [10:47:10]SAM_PROTO_SignData [10:47:10]wFMCommunicate request_size=4 [10:47:10]MH_SAM_APDU [10:47:10]CAPDU: 80 0D 01 02 [10:47:10]Write to MH i2c: E2 08 00 9D 10 80 0D 01 02 00 00 00 00 26 [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:10]Read from MH i2c: E2 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 03 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 03 00 9D 10 00 90 00 21 [10:47:10]RAPDU: 90 00 [10:47:10]wFMCommunicate OK [10:47:10]wFMCommunicate request_size=255 [10:47:10]MH_SAM_APDU [10:47: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 4A 83 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 CA D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CA D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CA D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AD AC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E4 7B 02 00 35 04 06 00 F0 [10:47:10]Write to MH i2c: E2 02 01 9E 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 83 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 CA D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CA D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CA D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AD AC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E4 7B 02 00 35 04 06 00 F0 00 00 BD [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:10]Read from MH i2c: E2 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 03 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 03 00 9E 10 00 90 00 22 [10:47:10]RAPDU: 90 00 [10:47:10]wFMCommunicate OK [10:47:10]wFMCommunicate request_size=10 [10:47:10]MH_SAM_APDU [10:47:10]CAPDU: 80 0D 02 02 05 FD 82 15 4C 1A [10:47:10]Write to MH i2c: E2 0D 00 9F 10 80 0D 02 02 05 00 FD 82 15 4C 1A 00 00 2D [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:10]Read from MH i2c: E2 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 03 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 03 00 9F 10 00 90 00 23 [10:47:10]RAPDU: 90 00 [10:47:10]wFMCommunicate OK [10:47:10]wFMCommunicate request_size=4 [10:47:10]MH_SAM_APDU [10:47:10]CAPDU: 80 0D 03 02 [10:47:10]Write to MH i2c: E2 08 00 A0 10 80 0D 03 02 00 00 00 00 2B [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:10]Read from MH i2c: E2 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 0B 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 0B 00 A0 10 00 BA DB D5 68 43 14 29 AA 90 00 28 [10:47:10]RAPDU: BA DB D5 68 43 14 29 AA 90 00 [10:47:10]wFMCommunicate OK [10:47:10]SAM_PROTO_SignData done [10:47:10]FM_MakeSignedData done [10:47:10]CreateOFDProtocolMessage [10:47:10]wFMCommunicate request_size=4 [10:47:10]MH_SAM_APDU [10:47:10]CAPDU: 80 11 00 00 [10:47:10]Write to MH i2c: E2 08 00 A1 10 80 11 00 00 00 00 00 00 2B [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:10]Read from MH i2c: E2 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 17 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: E2 17 00 A1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8B [10:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:47:10]wFMCommunicate OK [10:47:10]CreateOFDProtocolMessage done [10:47:10]OFDSenderStorePacket 162788 [10:47:10]StoreOFDPacket docnum=162788 [10:47:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 58 83 07 01 44 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 83 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 CA D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CA D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CA D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AD AC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E4 7B 02 00 35 04 06 00 F0 FD 82 15 4C 1A BA DB D5 68 43 14 29 AA [10:47:10]CheckFolder [10:47:10]dirname=/storage/ofd_packets [10:47:10]CheckFolder done [10:47:10]ProducePacketName [10:47:10]name=ofd_packets/00162788 [10:47:10]NVStorageSaveData ofd_packets/00162788 [10:47:10]File name is /storage/ofd_packets/00162788 [10:47:10]Write 301 bytes [10:47:10]NVStorageSaveData done [10:47:10]OFDSenderStorePacket done [10:47:10]KKMCreateOFDPacket done [10:47:10]NVStorageSaveData kkm_last_timestamp [10:47:10]File name is /storage/kkm_last_timestamp [10:47:10]Write 4 bytes [10:47:10]NVStorageSaveData done [10:47:10]ExternCall_PrintAddStr [10:47:10]wPrintStart [10:47:10]Write to MH i2c: 01 00 00 A2 10 B2 [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: 01 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: 01 07 00 [10:47:10]MH_I2C_Read... [10:47:10]Read from MH i2c: 01 07 00 A2 10 00 00 00 00 00 FF 0F C7 [10:47:10]RasterBufferAndPrint [10:47:10]line Счет N : (1)1319380 [10:47:10]line ИНН: 02508201610067 [10:47:10]line Контрольно-Кассовый Чек [10:47:10]line ПРОДАЖА [10:47:10]line ТРК (МРК, ГНК) : 64 [10:47:10]line Товар: 2710124500 [10:47:10]line Аи-95-К-5 [10:47:10]line 33.610 * 74.40 [10:47:10]line = 2500.58 [10:47:10]line НДС 12% НСП 1% [10:47:10]line > о реализуемом товаре [10:47:10]line ИТОГО: 2500.58 [10:47:10]line НСП 1% : 22.13 [10:47:10]line НДС 12% : 265.55 [10:47:10]line Наличными: 0.00 [10:47:10]line Безнал.: 2500.58 [10:47:10]line Место: АЗС № 140 "Партнер Нефть" [10:47:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:47:10]line СНО: Общий режим [10:47:10]line Чек 100 14.07.2024 10:47 [10:47:10]line Смена: 463 ФФД: 1.0 [10:47:10]line ЗНМ: 0300000129 [10:47:10]line РНМ: 0000000000090858 [10:47:10]line Версия ККМ: 001 [10:47:10]line Платежная система: O! деньги [10:47:10]line ФМ: 0000000000874899 [10:47:10]line ФД: 162788 [10:47:10]line ФПД: 264971599825946 [10:47:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T104709&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162788&fm=264971599825946&tin=02508201610067®Number=0000000000090858&sum=250058 [10:47:11]written 0, free lines is 4095 [10:47:11]OFD Sender: Processing packet 162788 [packets to send 106, broken 105] [10:47:11]ProducePacketName [10:47:11]name=ofd_packets/00162788 [10:47:11]OFD Sender: To server: pG, [10:47:11]CommunicateWithHost lk.salyk.kg:30040 [10:47:11]ConnectInit lk.salyk.kg [10:47:11]Connected sock=10 [10:47:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 58 83 07 01 44 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 83 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 CA D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CA D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CA D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AD AC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E4 7B 02 00 35 04 06 00 F0 FD 82 15 4C 1A BA DB D5 68 43 14 29 AA [10:47:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C5 D8 47 00 15 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E4 7B 02 00 F4 03 04 00 BB 58 93 66 B6 04 01 00 00 8C 0B B1 11 7F 50 BF 05 [10:47:11]CommunicateWithHost err = 0 [10:47:11]CheckOFDResponse [10:47:11]1017 (14) - 77093643461234 [10:47:11]1041 (16) - 0000000000874899 [10:47:11]1040 (4) - 162788 [10:47:11]1012 (4) - 14.07.2024 04:48 [10:47:11]1206 (1) - 0 [10:47:11]OFD Sender: Remove packet 162788 [10:47:11]ProducePacketName [10:47:11]name=ofd_packets/00162788 [10:47:11]NVStorageDeleteData [10:47:11]Write to MH i2c: 01 00 00 CC 10 DC [10:47:11]Write i2c OK [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: 01 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: 01 07 00 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: 01 07 00 CC 10 00 00 00 00 00 04 0D F4 [10:47:11]RasterBufferAndPrint [10:47:11]line [10:47:11]line [10:47:11]line [10:47:11]line [10:47:11]line [10:47:11]written 0, free lines is 3340 [10:47:11]MH_Cut [10:47:11]Write to MH i2c: D1 01 00 D3 10 01 B5 [10:47:11]Write i2c OK [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: D1 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: D1 01 00 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: D1 01 00 D3 10 00 B4 [10:47:11]Write to MH i2c: 01 00 00 D4 10 E4 [10:47:11]Write i2c OK [10:47:11]MH_I2C_Read... [10:47:11]OFD Sender: No OFD packet to send [10:47:12]*** Cut start [10:47:12]*** Purtial cut [10:47:12]*** CUTSNS_PIN = 0 [10:47:12]*** Stage 1: CUTSNS_PIN = 1 [10:47:14]Read from MH i2c: 01 [10:47:14]MH_I2C_Read... [10:47:14]*** Stop cut motor [10:47:14]*** Cut end [10:47:14]Read from MH i2c: 01 07 00 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: 01 07 00 D4 10 00 00 00 00 00 FF 0F F9 [10:47:14]process_action close_receipt done [10:47:14]requested_data is exist [10:47:14]produce_requested_data [10:47:14]requested_item fm.sn is exist - process it [10:47:14]wFMCommunicate request_size=4 [10:47:14]MH_SAM_APDU [10:47:14]CAPDU: 80 11 00 00 [10:47:14]Write to MH i2c: E2 08 00 D5 10 80 11 00 00 00 00 00 00 5F [10:47:14]Write i2c OK [10:47:14]MH_I2C_Read... [10:47:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:14]Read from MH i2c: E2 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 17 00 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 17 00 D5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BF [10:47:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:47:14]wFMCommunicate OK [10:47:14]requested_item fd.num is exist - process it [10:47:14]SAM_PROTO_GetFieldsCounters [10:47:14]wFMCommunicate request_size=4 [10:47:14]MH_SAM_APDU [10:47:14]CAPDU: 80 13 00 00 [10:47:14]Write to MH i2c: E2 08 00 D6 10 80 13 00 00 00 00 00 00 62 [10:47:14]Write i2c OK [10:47:14]MH_I2C_Read... [10:47:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:14]Read from MH i2c: E2 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 62 00 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 62 00 D6 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E4 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [10:47:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E4 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:14]wFMCommunicate OK [10:47:14]SAM_PROTO_GetFieldsCounters done [10:47:14]requested_item shift.num is exist - process it [10:47:14]requested_item shift.opened is exist - process it [10:47:14]req_shift_opened [10:47:14]FM_GetShiftState [10:47:14]SAM_PROTO_GetShiftState [10:47:14]wFMCommunicate request_size=4 [10:47:14]MH_SAM_APDU [10:47:14]CAPDU: 80 13 01 00 [10:47:14]Write to MH i2c: E2 08 00 D7 10 80 13 01 00 00 00 00 00 64 [10:47:14]Write i2c OK [10:47:14]MH_I2C_Read... [10:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:14]Read from MH i2c: E2 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 0E 00 [10:47:14]MH_I2C_Read... [10:47:14]Read from MH i2c: E2 0E 00 D7 10 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9A [10:47:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:47:14]wFMCommunicate OK [10:47:14]SAM_PROTO_GetShiftState done [10:47:14]FM_GetShiftState done [10:47:14]req_shift_opened done [10:47:14]requested_item shift.open_date is exist - process it [10:47:14]req_shift_open_date [10:47:14]req_shift_open_date done [10:47:14]produce_requested_data done [10:47:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162788,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:47:14]process_action_free close_receipt [10:47:14]json_value_free [10:47:14]json_value_free done [10:47:14]process_json_proto returns [10:47:14]Send response to host [10:47:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162788,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:47:14]free response buf [10:47:14]execute_script done [10:47:14]execute_script returns [10:47:14]free content buf [10:47:14]Sock 7.Close socket [10:47:14]Sock 7.Thread stoped [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:29]accept exits with 9 [10:50:29]New connection [10:50:29]New thread 3066735972 created [10:50:29]Thread 3066879332 joined [10:50:29]Waiting for new connection... [10:50:29] Sock 9.Parse request [10:50:29]Sock 9.Check first char [10:50:29]Sock 9.First char is OK [10:50:29]request: POST /json_proto HTTP/1.0 [10:50:29]Method: POST [10:50:29]URL: /json_proto [10:50:29]Method is POST - this is cgi request [10:50:29]url: /json_proto [10:50:29]query_string will be loaded in cgi processing [10:50:29]execute_cgi json_proto POST (null) [10:50:29]execute_cgi path=json_proto method=POST [10:50:29]POST find Content-Length [10:50:29]Host: 172.17.39.67:8080 [10:50:29]Content-Length: 678 [10:50:29]Content-Type: application/json [10:50:29] [10:50:29]POST finish read [10:50:29]Found Content-Length = 678 [10:50:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 8.150, "sum" : 540.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:29]execute_script... [10:50:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 8.150, "sum" : 540.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:29]POST & json_proto [10:50:29]process_json_proto [10:50:29]json parsed OK: [10:50:29]protocol is kg_v1.0 [10:50:29]action value=close_receipt [10:50:29]process_action close_receipt [10:50:29]cmd_close_receipt [10:50:29]MH_GetDate [10:50:29]Write to MH i2c: F0 00 00 D8 10 D7 [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: F0 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: F0 09 00 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: F0 09 00 D8 10 00 76 AD 93 66 B6 85 93 66 30 [10:50:29]GetLastDocTimeStamp 1720954029 [10:50:29]current date 1720954230 [10:50:29]FM_GetShiftState [10:50:29]SAM_PROTO_GetShiftState [10:50:29]wFMCommunicate request_size=4 [10:50:29]MH_SAM_APDU [10:50:29]CAPDU: 80 13 01 00 [10:50:29]Write to MH i2c: E2 08 00 D9 10 80 13 01 00 00 00 00 00 66 [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:29]Read from MH i2c: E2 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 0E 00 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 0E 00 D9 10 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9C [10:50:29]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:50:29]wFMCommunicate OK [10:50:29]SAM_PROTO_GetShiftState done [10:50:29]FM_GetShiftState done [10:50:29]opened in 1720915483 [10:50:29]opened+sec_in_day 1721001883 [10:50:29]quantity*price = 54034 [10:50:29]sum+1 = 54036 [10:50:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.38 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 101 14.07.2024 10:50 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162789 ФПД: 43614859731584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105030&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162789&fm=43614859731584&tin=02508201610067®Number=0000000000090858&sum=54000 [10:50:30]StoreToDocumentArchive [10:50:30]shift 463 fd 162789 [10:50:30]save to /storage/0463/doc_00162789 [10:50:30]save last doc name /storage/0463/doc_00162789 to /storage/kkm_last_doc_name [10:50:30]save OK [10:50:30]Clear old archive folders... [10:50:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:30]tlvbuf is B6EAF3D0 [10:50:30]SAM_PROTO_ClearQueue [10:50:30]wFMCommunicate request_size=4 [10:50:30]MH_SAM_APDU [10:50:30]CAPDU: 80 09 00 00 [10:50:30]Write to MH i2c: E2 08 00 E6 10 80 09 00 00 00 00 00 00 68 [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 E6 10 00 90 00 6A [10:50:31]RAPDU: 90 00 [10:50:31]wFMCommunicate OK [10:50:31]SAM_PROTO_ClearQueue done [10:50:31]KKMCreateOFDPacket [10:50:31]OFDProtocolAddRootSTLVToBuf [10:50:31]FM_MakeSignedData [10:50:31]FM_MakeSignedData [10:50:31]SAM_PROTO_SignData [10:50:31]wFMCommunicate request_size=4 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 0D 01 02 [10:50:31]Write to MH i2c: E2 08 00 E7 10 80 0D 01 02 00 00 00 00 70 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 E7 10 00 90 00 6B [10:50:31]RAPDU: 90 00 [10:50:31]wFMCommunicate OK [10:50:31]wFMCommunicate request_size=255 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 1F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 13 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 76 AD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E5 7B 02 00 35 04 06 00 27 [10:50:31]Write to MH i2c: E2 02 01 E8 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 1F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 13 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 76 AD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E5 7B 02 00 35 04 06 00 27 00 00 23 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 E8 10 00 90 00 6C [10:50:31]RAPDU: 90 00 [10:50:31]wFMCommunicate OK [10:50:31]wFMCommunicate request_size=10 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 0D 02 02 05 AA E0 38 A2 80 [10:50:31]Write to MH i2c: E2 0D 00 E9 10 80 0D 02 02 05 00 AA E0 38 A2 80 00 00 61 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 03 00 E9 10 00 90 00 6D [10:50:31]RAPDU: 90 00 [10:50:31]wFMCommunicate OK [10:50:31]wFMCommunicate request_size=4 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 0D 03 02 [10:50:31]Write to MH i2c: E2 08 00 EA 10 80 0D 03 02 00 00 00 00 75 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 0B 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 0B 00 EA 10 00 3A 2D D8 86 5B 1B 6A 59 90 00 74 [10:50:31]RAPDU: 3A 2D D8 86 5B 1B 6A 59 90 00 [10:50:31]wFMCommunicate OK [10:50:31]SAM_PROTO_SignData done [10:50:31]FM_MakeSignedData done [10:50:31]CreateOFDProtocolMessage [10:50:31]wFMCommunicate request_size=4 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 11 00 00 [10:50:31]Write to MH i2c: E2 08 00 EB 10 80 11 00 00 00 00 00 00 75 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 17 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 17 00 EB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D5 [10:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:50:31]wFMCommunicate OK [10:50:31]CreateOFDProtocolMessage done [10:50:31]OFDSenderStorePacket 162789 [10:50:31]StoreOFDPacket docnum=162789 [10:50:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 32 2F 07 01 C2 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 D6 1F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 13 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 76 AD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E5 7B 02 00 35 04 06 00 27 AA E0 38 A2 80 3A 2D D8 86 5B 1B 6A 59 [10:50:31]CheckFolder [10:50:31]dirname=/storage/ofd_packets [10:50:31]CheckFolder done [10:50:31]ProducePacketName [10:50:31]name=ofd_packets/00162789 [10:50:31]NVStorageSaveData ofd_packets/00162789 [10:50:31]File name is /storage/ofd_packets/00162789 [10:50:31]Write 301 bytes [10:50:31]NVStorageSaveData done [10:50:31]OFDSenderStorePacket done [10:50:31]KKMCreateOFDPacket done [10:50:31]NVStorageSaveData kkm_last_timestamp [10:50:31]File name is /storage/kkm_last_timestamp [10:50:31]Write 4 bytes [10:50:31]NVStorageSaveData done [10:50:31]ExternCall_PrintAddStr [10:50:31]wPrintStart [10:50:31]Write to MH i2c: 01 00 00 EC 10 FC [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 07 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 07 00 EC 10 00 00 00 00 00 FF 0F 11 [10:50:31]RasterBufferAndPrint [10:50:31]line Счет N : (1)1319381 [10:50:31]line ИНН: 02508201610067 [10:50:31]line Контрольно-Кассовый Чек [10:50:31]line ПРОДАЖА [10:50:31]line ТРК (МРК, ГНК) : 43 [10:50:31]line Товар: 2710124130 [10:50:31]line Аи-92-К-5 [10:50:31]line 8.150 * 66.30 [10:50:31]line = 540.35 [10:50:31]line НДС 12% НСП 1% [10:50:31]line > о реализуемом товаре [10:50:31]line ОКРУГЛЕНИЕ: -0.35 [10:50:31]line ИТОГО: 540.00 [10:50:31]line Внесено: 540.00 [10:50:31]line СДАЧА: 0.00 [10:50:31]line НСП 1% : 4.78 [10:50:31]line НДС 12% : 57.38 [10:50:31]line Наличными: 540.00 [10:50:31]line Безнал.: 0.00 [10:50:31]line Место: АЗС № 140 "Партнер Нефть" [10:50:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:50:31]line СНО: Общий режим [10:50:31]line Чек 101 14.07.2024 10:50 [10:50:31]line Смена: 463 ФФД: 1.0 [10:50:31]line ЗНМ: 0300000129 [10:50:31]line РНМ: 0000000000090858 [10:50:31]line Версия ККМ: 001 [10:50:31]line ФМ: 0000000000874899 [10:50:31]line ФД: 162789 [10:50:31]line ФПД: 43614859731584 [10:50:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105030&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162789&fm=43614859731584&tin=02508201610067®Number=0000000000090858&sum=54000 [10:50:31]OFD Sender: Processing packet 162789 [packets to send 106, broken 105] [10:50:31]ProducePacketName [10:50:31]name=ofd_packets/00162789 [10:50:31]OFD Sender: To server: pG, [10:50:31]CommunicateWithHost lk.salyk.kg:30040 [10:50:31]ConnectInit lk.salyk.kg [10:50:31]written 0, free lines is 4095 [10:50:32]Write to MH i2c: 01 00 00 17 11 28 [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: 01 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: 01 07 00 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: 01 07 00 17 11 00 00 00 00 00 DC 0C 17 [10:50:32]RasterBufferAndPrint [10:50:32]line [10:50:32]line [10:50:32]line [10:50:32]line [10:50:32]line [10:50:32]written 0, free lines is 3296 [10:50:32]MH_Cut [10:50:32]Write to MH i2c: D1 01 00 1E 11 01 01 [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: D1 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: D1 01 00 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: D1 01 00 1E 11 00 00 [10:50:32]Write to MH i2c: 01 00 00 1F 11 30 [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:33]*** Cut start [10:50:33]*** Purtial cut [10:50:33]*** Stage 1: CUTSNS_PIN = 1 [10:50:33]Read from MH i2c: 01 [10:50:33]MH_I2C_Read... [10:50:33]*** Stop cut motor [10:50:33]*** Cut end [10:50:33]Read from MH i2c: 01 07 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: 01 07 00 1F 11 00 00 00 00 00 FF 0F 45 [10:50:33]process_action close_receipt done [10:50:33]requested_data is exist [10:50:33]produce_requested_data [10:50:33]requested_item fm.sn is exist - process it [10:50:33]wFMCommunicate request_size=4 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 11 00 00 [10:50:33]Write to MH i2c: E2 08 00 20 11 80 11 00 00 00 00 00 00 AB [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 17 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 17 00 20 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0B [10:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:50:33]wFMCommunicate OK [10:50:33]requested_item fd.num is exist - process it [10:50:33]SAM_PROTO_GetFieldsCounters [10:50:33]wFMCommunicate request_size=4 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 13 00 00 [10:50:33]Write to MH i2c: E2 08 00 21 11 80 13 00 00 00 00 00 00 AE [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 62 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 62 00 21 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E5 7B 02 00 0E 04 04 00 CF 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 42 [10:50:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E5 7B 02 00 0E 04 04 00 CF 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:50:33]wFMCommunicate OK [10:50:33]SAM_PROTO_GetFieldsCounters done [10:50:33]requested_item shift.num is exist - process it [10:50:33]requested_item shift.opened is exist - process it [10:50:33]req_shift_opened [10:50:33]FM_GetShiftState [10:50:33]SAM_PROTO_GetShiftState [10:50:33]wFMCommunicate request_size=4 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 13 01 00 [10:50:33]Write to MH i2c: E2 08 00 22 11 80 13 01 00 00 00 00 00 B0 [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 0E 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 0E 00 22 11 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E6 [10:50:33]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:50:33]wFMCommunicate OK [10:50:33]SAM_PROTO_GetShiftState done [10:50:33]FM_GetShiftState done [10:50:33]req_shift_opened done [10:50:33]requested_item shift.open_date is exist - process it [10:50:33]req_shift_open_date [10:50:33]req_shift_open_date done [10:50:33]produce_requested_data done [10:50:33]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162789,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:50:33]process_action_free close_receipt [10:50:33]json_value_free [10:50:33]json_value_free done [10:50:33]process_json_proto returns [10:50:33]Send response to host [10:50:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162789,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:50:33]free response buf [10:50:33]execute_script done [10:50:33]execute_script returns [10:50:33]free content buf [10:50:33]Sock 9.Close socket [10:50:33]Sock 9.Thread stoped [10:52:41]ConnectInit Can't connect to host [10:52:41]CommunicateWithHost connect error [10:52:41]CommunicateWithHost err = -1 [10:52:41]OFD Sender: Server communicate error [10:52:46]OFD Sender: Processing packet 162789 [packets to send 106, broken 105] [10:52:46]ProducePacketName [10:52:46]name=ofd_packets/00162789 [10:52:46]OFD Sender: To server: pG, [10:52:46]CommunicateWithHost lk.salyk.kg:30040 [10:52:46]ConnectInit lk.salyk.kg [10:52:46]Connected sock=9 [10:52:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 32 2F 07 01 C2 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 D6 1F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 13 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 76 AD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E5 7B 02 00 35 04 06 00 27 AA E0 38 A2 80 3A 2D D8 86 5B 1B 6A 59 [10:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 26 C8 47 00 22 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E5 7B 02 00 F4 03 04 00 0A 5A 93 66 B6 04 01 00 00 58 B7 3F 79 14 A4 40 8B [10:52:46]CommunicateWithHost err = 0 [10:52:46]CheckOFDResponse [10:52:46]1017 (14) - 77093643461234 [10:52:46]1041 (16) - 0000000000874899 [10:52:46]1040 (4) - 162789 [10:52:46]1012 (4) - 14.07.2024 04:54 [10:52:46]1206 (1) - 0 [10:52:46]OFD Sender: Remove packet 162789 [10:52:46]ProducePacketName [10:52:46]name=ofd_packets/00162789 [10:52:46]NVStorageDeleteData [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:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:55]accept exits with 7 [10:54:55]New connection [10:54:55]New thread 3066879332 created [10:54:55]Thread 3066735972 joined [10:54:55]Waiting for new connection... [10:54:55] Sock 7.Parse request [10:54:55]Sock 7.Check first char [10:54:55]Sock 7.First char is OK [10:54:55]request: POST /json_proto HTTP/1.0 [10:54:55]Method: POST [10:54:55]URL: /json_proto [10:54:55]Method is POST - this is cgi request [10:54:55]url: /json_proto [10:54:55]query_string will be loaded in cgi processing [10:54:55]execute_cgi json_proto POST (null) [10:54:55]execute_cgi path=json_proto method=POST [10:54:55]POST find Content-Length [10:54:55]Host: 172.17.39.67:8080 [10:54:55]Content-Length: 802 [10:54:55]Content-Type: application/json [10:54:55] [10:54:55]POST finish read [10:54:55]Found Content-Length = 802 [10:54:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.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" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:55]execute_script... [10:54:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.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" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:55]POST & json_proto [10:54:55]process_json_proto [10:54:55]json parsed OK: [10:54:55]protocol is kg_v1.0 [10:54:55]action value=close_receipt [10:54:55]process_action close_receipt [10:54:55]cmd_close_receipt [10:54:55]MH_GetDate [10:54:55]Write to MH i2c: F0 00 00 23 11 23 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: F0 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: F0 09 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: F0 09 00 23 11 00 7F AE 93 66 B6 85 93 66 86 [10:54:55]GetLastDocTimeStamp 1720954230 [10:54:55]current date 1720954495 [10:54:55]FM_GetShiftState [10:54:55]SAM_PROTO_GetShiftState [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 13 01 00 [10:54:55]Write to MH i2c: E2 08 00 24 11 80 13 01 00 00 00 00 00 B2 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0E 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0E 00 24 11 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E8 [10:54:55]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:54:55]wFMCommunicate OK [10:54:55]SAM_PROTO_GetShiftState done [10:54:55]FM_GetShiftState done [10:54:55]opened in 1720915483 [10:54:55]opened+sec_in_day 1721001883 [10:54:55]quantity*price = 99914 [10:54:55]sum+1 = 99915 [10:54:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.14 НСП 1% : 8.84 НДС 12% : 106.10 Наличными: 0.00 Безнал.: 999.14 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 102 14.07.2024 10:54 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162790 ФПД: 54623350948061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105455&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162790&fm=54623350948061&tin=02508201610067®Number=0000000000090858&sum=99914 [10:54:56]StoreToDocumentArchive [10:54:56]shift 463 fd 162790 [10:54:56]save to /storage/0463/doc_00162790 [10:54:56]save last doc name /storage/0463/doc_00162790 to /storage/kkm_last_doc_name [10:54:56]save OK [10:54:56]Clear old archive folders... [10:54:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:56]tlvbuf is B6EAFBC0 [10:54:56]SAM_PROTO_ClearQueue [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 09 00 00 [10:54:56]Write to MH i2c: E2 08 00 31 11 80 09 00 00 00 00 00 00 B4 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 31 11 00 90 00 B6 [10:54:56]RAPDU: 90 00 [10:54:56]wFMCommunicate OK [10:54:56]SAM_PROTO_ClearQueue done [10:54:56]KKMCreateOFDPacket [10:54:56]OFDProtocolAddRootSTLVToBuf [10:54:56]FM_MakeSignedData [10:54:56]FM_MakeSignedData [10:54:56]SAM_PROTO_SignData [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 0D 01 02 [10:54:56]Write to MH i2c: E2 08 00 32 11 80 0D 01 02 00 00 00 00 BC [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 32 11 00 90 00 B7 [10:54:56]RAPDU: 90 00 [10:54:56]wFMCommunicate OK [10:54:56]wFMCommunicate request_size=255 [10:54:56]MH_SAM_APDU [10:54: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 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7F AE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E6 7B 02 00 35 04 06 00 31 [10:54:56]Write to MH i2c: E2 02 01 33 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7F AE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E6 7B 02 00 35 04 06 00 31 00 00 64 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 33 11 00 90 00 B8 [10:54:56]RAPDU: 90 00 [10:54:56]wFMCommunicate OK [10:54:56]wFMCommunicate request_size=10 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 0D 02 02 05 AD FD 6E 00 DD [10:54:56]Write to MH i2c: E2 0D 00 34 11 80 0D 02 02 05 00 AD FD 6E 00 DD 00 00 BE [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 34 11 00 90 00 B9 [10:54:56]RAPDU: 90 00 [10:54:56]wFMCommunicate OK [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 0D 03 02 [10:54:56]Write to MH i2c: E2 08 00 35 11 80 0D 03 02 00 00 00 00 C1 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 0B 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 0B 00 35 11 00 81 38 85 6E 5C 6A 94 DD 90 00 A5 [10:54:56]RAPDU: 81 38 85 6E 5C 6A 94 DD 90 00 [10:54:56]wFMCommunicate OK [10:54:56]SAM_PROTO_SignData done [10:54:56]FM_MakeSignedData done [10:54:56]CreateOFDProtocolMessage [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 11 00 00 [10:54:56]Write to MH i2c: E2 08 00 36 11 80 11 00 00 00 00 00 00 C1 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 17 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 17 00 36 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 21 [10:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:54:56]wFMCommunicate OK [10:54:56]CreateOFDProtocolMessage done [10:54:56]OFDSenderStorePacket 162790 [10:54:56]StoreOFDPacket docnum=162790 [10:54:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C1 15 07 01 B7 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7F AE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E6 7B 02 00 35 04 06 00 31 AD FD 6E 00 DD 81 38 85 6E 5C 6A 94 DD [10:54:56]CheckFolder [10:54:56]dirname=/storage/ofd_packets [10:54:56]CheckFolder done [10:54:56]ProducePacketName [10:54:56]name=ofd_packets/00162790 [10:54:56]NVStorageSaveData ofd_packets/00162790 [10:54:56]File name is /storage/ofd_packets/00162790 [10:54:56]Write 301 bytes [10:54:56]NVStorageSaveData done [10:54:56]OFDSenderStorePacket done [10:54:56]KKMCreateOFDPacket done [10:54:56]NVStorageSaveData kkm_last_timestamp [10:54:56]File name is /storage/kkm_last_timestamp [10:54:56]Write 4 bytes [10:54:56]NVStorageSaveData done [10:54:56]ExternCall_PrintAddStr [10:54:56]wPrintStart [10:54:56]Write to MH i2c: 01 00 00 37 11 48 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: 01 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: 01 07 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: 01 07 00 37 11 00 00 00 00 00 FF 0F 5D [10:54:56]RasterBufferAndPrint [10:54:56]line Счет N : (1)1319383 [10:54:56]line ИНН: 02508201610067 [10:54:56]line Контрольно-Кассовый Чек [10:54:56]line ПРОДАЖА [10:54:56]line ТРК (МРК, ГНК) : 43 [10:54:56]line Товар: 2710124130 [10:54:56]line Аи-92-К-5 [10:54:56]line 15.070 * 66.30 [10:54:56]line = 999.14 [10:54:56]line НДС 12% НСП 1% [10:54:56]line > о реализуемом товаре [10:54:56]line ИТОГО: 999.14 [10:54:56]line НСП 1% : 8.84 [10:54:56]line НДС 12% : 106.10 [10:54:56]line Наличными: 0.00 [10:54:56]line Безнал.: 999.14 [10:54:56]line Место: АЗС № 140 "Партнер Нефть" [10:54:56]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:54:56]line СНО: Общий режим [10:54:56]line Чек 102 14.07.2024 10:54 [10:54:56]line Смена: 463 ФФД: 1.0 [10:54:56]line ЗНМ: 0300000129 [10:54:56]line РНМ: 0000000000090858 [10:54:56]line Версия ККМ: 001 [10:54:56]line Платежная система: O! деньги [10:54:56]line ФМ: 0000000000874899 [10:54:56]line ФД: 162790 [10:54:56]line ФПД: 54623350948061 [10:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105455&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162790&fm=54623350948061&tin=02508201610067®Number=0000000000090858&sum=99914 [10:54:57]written 0, free lines is 4095 [10:54:57]OFD Sender: Processing packet 162790 [packets to send 106, broken 105] [10:54:57]ProducePacketName [10:54:57]name=ofd_packets/00162790 [10:54:57]OFD Sender: To server: pG, [10:54:57]CommunicateWithHost lk.salyk.kg:30040 [10:54:57]ConnectInit lk.salyk.kg [10:54:57]Connected sock=10 [10:54:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C1 15 07 01 B7 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7F AE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E6 7B 02 00 35 04 06 00 31 AD FD 6E 00 DD 81 38 85 6E 5C 6A 94 DD [10:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7A 7C 47 00 70 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 34 38 39 39 10 04 04 00 E6 7B 02 00 F4 03 04 00 8D 5A 93 66 B6 04 01 00 00 55 8F 90 11 80 C1 1D 21 [10:54:57]CommunicateWithHost err = 0 [10:54:57]CheckOFDResponse [10:54:57]1017 (14) - 77093643461234 [10:54:57]1041 (16) - 0000000000874899 [10:54:57]1040 (4) - 162790 [10:54:57]1012 (4) - 14.07.2024 04:56 [10:54:57]1206 (1) - 0 [10:54:57]OFD Sender: Remove packet 162790 [10:54:57]ProducePacketName [10:54:57]name=ofd_packets/00162790 [10:54:57]NVStorageDeleteData [10:54:57]Write to MH i2c: 01 00 00 61 11 72 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 61 11 00 00 00 00 00 ED 0C 72 [10:54:57]RasterBufferAndPrint [10:54:57]line [10:54:57]line [10:54:57]line [10:54:57]line [10:54:57]line [10:54:57]written 0, free lines is 3315 [10:54:57]MH_Cut [10:54:57]Write to MH i2c: D1 01 00 68 11 01 4B [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: D1 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: D1 01 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: D1 01 00 68 11 00 4A [10:54:57]Write to MH i2c: 01 00 00 69 11 7A [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:58]OFD Sender: No OFD packet to send [10:54:58]*** Cut start [10:54:58]*** Purtial cut [10:54:58]*** CUTSNS_PIN = 0 [10:54:58]*** Stage 1: CUTSNS_PIN = 1 [10:55:00]Read from MH i2c: 01 [10:55:00]MH_I2C_Read... [10:55:00]*** Stop cut motor [10:55:00]*** Cut end [10:55:00]Read from MH i2c: 01 07 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 07 00 69 11 00 00 00 00 00 FF 0F 8F [10:55:00]process_action close_receipt done [10:55:00]requested_data is exist [10:55:00]produce_requested_data [10:55:00]requested_item fm.sn is exist - process it [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 11 00 00 [10:55:00]Write to MH i2c: E2 08 00 6A 11 80 11 00 00 00 00 00 00 F5 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 6A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 55 [10:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:55:00]wFMCommunicate OK [10:55:00]requested_item fd.num is exist - process it [10:55:00]SAM_PROTO_GetFieldsCounters [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 13 00 00 [10:55:00]Write to MH i2c: E2 08 00 6B 11 80 13 00 00 00 00 00 00 F8 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 62 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 62 00 6B 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E6 7B 02 00 0E 04 04 00 CF 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 90 [10:55:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E6 7B 02 00 0E 04 04 00 CF 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:55:00]wFMCommunicate OK [10:55:00]SAM_PROTO_GetFieldsCounters done [10:55:00]requested_item shift.num is exist - process it [10:55:00]requested_item shift.opened is exist - process it [10:55:00]req_shift_opened [10:55:00]FM_GetShiftState [10:55:00]SAM_PROTO_GetShiftState [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 13 01 00 [10:55:00]Write to MH i2c: E2 08 00 6C 11 80 13 01 00 00 00 00 00 FA [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 0E 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 0E 00 6C 11 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 30 [10:55:00]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:55:00]wFMCommunicate OK [10:55:00]SAM_PROTO_GetShiftState done [10:55:00]FM_GetShiftState done [10:55:00]req_shift_opened done [10:55:00]requested_item shift.open_date is exist - process it [10:55:00]req_shift_open_date [10:55:00]req_shift_open_date done [10:55:00]produce_requested_data done [10:55:00]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162790,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:55:00]process_action_free close_receipt [10:55:00]json_value_free [10:55:00]json_value_free done [10:55:00]process_json_proto returns [10:55:00]Send response to host [10:55:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162790,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:55:00]free response buf [10:55:00]execute_script done [10:55:00]execute_script returns [10:55:00]free content buf [10:55:00]Sock 7.Close socket [10:55:00]Sock 7.Thread stoped [10:55:03]OFD Sender: No OFD packet to send [10:55:07]accept exits with 9 [10:55:07]New connection [10:55:07]New thread 3066735972 created [10:55:07]Thread 3066879332 joined [10:55:07]Waiting for new connection... [10:55:07] Sock 9.Parse request [10:55:07]Sock 9.Check first char [10:55:07]Sock 9.First char is OK [10:55:07]request: POST /json_proto HTTP/1.0 [10:55:07]Method: POST [10:55:07]URL: /json_proto [10:55:07]Method is POST - this is cgi request [10:55:07]url: /json_proto [10:55:07]query_string will be loaded in cgi processing [10:55:07]execute_cgi json_proto POST (null) [10:55:07]execute_cgi path=json_proto method=POST [10:55:07]POST find Content-Length [10:55:07]Host: 172.17.39.67:8080 [10:55:07]Content-Length: 683 [10:55:07]Content-Type: application/json [10:55:07] [10:55:07]POST finish read [10:55:07]Found Content-Length = 683 [10:55:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.220, "sum" : 1340.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:07]execute_script... [10:55: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)1319382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.220, "sum" : 1340.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:07]POST & json_proto [10:55:07]process_json_proto [10:55:07]json parsed OK: [10:55:07]protocol is kg_v1.0 [10:55:07]action value=close_receipt [10:55:07]process_action close_receipt [10:55:07]cmd_close_receipt [10:55:07]MH_GetDate [10:55:07]Write to MH i2c: F0 00 00 6D 11 6D [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: F0 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: F0 09 00 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: F0 09 00 6D 11 00 8B AE 93 66 B6 85 93 66 DC [10:55:07]GetLastDocTimeStamp 1720954495 [10:55:07]current date 1720954507 [10:55:07]FM_GetShiftState [10:55:07]SAM_PROTO_GetShiftState [10:55:07]wFMCommunicate request_size=4 [10:55:07]MH_SAM_APDU [10:55:07]CAPDU: 80 13 01 00 [10:55:07]Write to MH i2c: E2 08 00 6E 11 80 13 01 00 00 00 00 00 FC [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:07]Read from MH i2c: E2 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: E2 0E 00 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: E2 0E 00 6E 11 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 32 [10:55:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:55:07]wFMCommunicate OK [10:55:07]SAM_PROTO_GetShiftState done [10:55:07]FM_GetShiftState done [10:55:07]opened in 1720915483 [10:55:07]opened+sec_in_day 1721001883 [10:55:07]quantity*price = 134058 [10:55:07]sum+1 = 134060 [10:55:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1340.00 Внесено: 1340.00 СДАЧА: 0.00 НСП 1% : 11.86 НДС 12% : 142.36 Наличными: 1340.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 103 14.07.2024 10:55 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162791 ФПД: 66124020573754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105507&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162791&fm=66124020573754&tin=02508201610067®Number=0000000000090858&sum=134000 [10:55:08]StoreToDocumentArchive [10:55:08]shift 463 fd 162791 [10:55:08]save to /storage/0463/doc_00162791 [10:55:08]save last doc name /storage/0463/doc_00162791 to /storage/kkm_last_doc_name [10:55:08]save OK [10:55:08]Clear old archive folders... [10:55:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:08]tlvbuf is 012E9CC0 [10:55:08]SAM_PROTO_ClearQueue [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 09 00 00 [10:55:08]Write to MH i2c: E2 08 00 7B 11 80 09 00 00 00 00 00 00 FE [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 03 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 03 00 7B 11 00 90 00 00 [10:55:08]RAPDU: 90 00 [10:55:08]wFMCommunicate OK [10:55:08]SAM_PROTO_ClearQueue done [10:55:08]KKMCreateOFDPacket [10:55:08]OFDProtocolAddRootSTLVToBuf [10:55:08]FM_MakeSignedData [10:55:08]FM_MakeSignedData [10:55:08]SAM_PROTO_SignData [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 0D 01 02 [10:55:08]Write to MH i2c: E2 08 00 7C 11 80 0D 01 02 00 00 00 00 06 [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 03 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 03 00 7C 11 00 90 00 01 [10:55:08]RAPDU: 90 00 [10:55:08]wFMCommunicate OK [10:55:08]wFMCommunicate request_size=255 [10:55:08]MH_SAM_APDU [10:55: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 FC 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AB 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8B AE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E7 7B 02 00 35 04 06 00 3C [10:55:08]Write to MH i2c: E2 02 01 7D 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AB 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8B AE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E7 7B 02 00 35 04 06 00 3C 00 00 9F [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:08]Read from MH i2c: E2 03 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 03 00 7D 11 00 90 00 02 [10:55:08]RAPDU: 90 00 [10:55:08]wFMCommunicate OK [10:55:08]wFMCommunicate request_size=10 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 0D 02 02 05 23 B2 C1 E6 3A [10:55:08]Write to MH i2c: E2 0D 00 7E 11 80 0D 02 02 05 00 23 B2 C1 E6 3A 00 00 C9 [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 03 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 03 00 7E 11 00 90 00 03 [10:55:08]RAPDU: 90 00 [10:55:08]wFMCommunicate OK [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 0D 03 02 [10:55:08]Write to MH i2c: E2 08 00 7F 11 80 0D 03 02 00 00 00 00 0B [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 0B 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 0B 00 7F 11 00 C7 00 90 F3 45 ED EE 08 90 00 7E [10:55:08]RAPDU: C7 00 90 F3 45 ED EE 08 90 00 [10:55:08]wFMCommunicate OK [10:55:08]SAM_PROTO_SignData done [10:55:08]FM_MakeSignedData done [10:55:08]CreateOFDProtocolMessage [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 11 00 00 [10:55:08]Write to MH i2c: E2 08 00 80 11 80 11 00 00 00 00 00 00 0B [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 17 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 17 00 80 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6B [10:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:55:08]wFMCommunicate OK [10:55:08]CreateOFDProtocolMessage done [10:55:08]OFDSenderStorePacket 162791 [10:55:08]StoreOFDPacket docnum=162791 [10:55:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B9 5B 07 01 42 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AB 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8B AE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E7 7B 02 00 35 04 06 00 3C 23 B2 C1 E6 3A C7 00 90 F3 45 ED EE 08 [10:55:08]CheckFolder [10:55:08]dirname=/storage/ofd_packets [10:55:08]CheckFolder done [10:55:08]ProducePacketName [10:55:08]name=ofd_packets/00162791 [10:55:08]NVStorageSaveData ofd_packets/00162791 [10:55:08]File name is /storage/ofd_packets/00162791 [10:55:08]Write 301 bytes [10:55:08]NVStorageSaveData done [10:55:08]OFDSenderStorePacket done [10:55:08]KKMCreateOFDPacket done [10:55:08]NVStorageSaveData kkm_last_timestamp [10:55:08]File name is /storage/kkm_last_timestamp [10:55:08]Write 4 bytes [10:55:08]NVStorageSaveData done [10:55:08]ExternCall_PrintAddStr [10:55:08]wPrintStart [10:55:08]Write to MH i2c: 01 00 00 81 11 92 [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: 01 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: 01 07 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: 01 07 00 81 11 00 00 00 00 00 FF 0F A7 [10:55:08]RasterBufferAndPrint [10:55:08]line Счет N : (1)1319382 [10:55:08]line ИНН: 02508201610067 [10:55:08]line Контрольно-Кассовый Чек [10:55:08]line ПРОДАЖА [10:55:08]line ТРК (МРК, ГНК) : 33 [10:55:08]line Товар: 2710124130 [10:55:08]line Аи-92-К-5 [10:55:08]line 20.220 * 66.30 [10:55:08]line = 1340.59 [10:55:08]line НДС 12% НСП 1% [10:55:08]line > о реализуемом товаре [10:55:08]line ОКРУГЛЕНИЕ: -0.59 [10:55:08]line ИТОГО: 1340.00 [10:55:08]line Внесено: 1340.00 [10:55:08]line СДАЧА: 0.00 [10:55:08]line НСП 1% : 11.86 [10:55:08]line НДС 12% : 142.36 [10:55:08]line Наличными: 1340.00 [10:55:08]line Безнал.: 0.00 [10:55:08]line Место: АЗС № 140 "Партнер Нефть" [10:55:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:55:08]line СНО: Общий режим [10:55:08]line Чек 103 14.07.2024 10:55 [10:55:08]line Смена: 463 ФФД: 1.0 [10:55:08]line ЗНМ: 0300000129 [10:55:08]line РНМ: 0000000000090858 [10:55:08]line Версия ККМ: 001 [10:55:08]line ФМ: 0000000000874899 [10:55:08]line ФД: 162791 [10:55:08]line ФПД: 66124020573754 [10:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T105507&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162791&fm=66124020573754&tin=02508201610067®Number=0000000000090858&sum=134000 [10:55:08]written 0, free lines is 4095 [10:55:09]OFD Sender: Processing packet 162791 [packets to send 106, broken 105] [10:55:09]ProducePacketName [10:55:09]name=ofd_packets/00162791 [10:55:09]OFD Sender: To server: pG, [10:55:09]CommunicateWithHost lk.salyk.kg:30040 [10:55:09]ConnectInit lk.salyk.kg [10:55:09]Connected sock=10 [10:55:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B9 5B 07 01 42 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AB 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 37 00 00 00 00 07 04 06 00 70 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8B AE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E7 7B 02 00 35 04 06 00 3C 23 B2 C1 E6 3A C7 00 90 F3 45 ED EE 08 [10:55:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 87 E7 47 00 20 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E7 7B 02 00 F4 03 04 00 99 5A 93 66 B6 04 01 00 00 22 3C 0B D7 08 98 E6 6E [10:55:09]CommunicateWithHost err = 0 [10:55:09]CheckOFDResponse [10:55:09]1017 (14) - 77093643461234 [10:55:09]1041 (16) - 0000000000874899 [10:55:09]1040 (4) - 162791 [10:55:09]1012 (4) - 14.07.2024 04:56 [10:55:09]1206 (1) - 0 [10:55:09]OFD Sender: Remove packet 162791 [10:55:09]ProducePacketName [10:55:09]name=ofd_packets/00162791 [10:55:09]NVStorageDeleteData [10:55:09]Write to MH i2c: 01 00 00 AC 11 BD [10:55:09]Write i2c OK [10:55:09]MH_I2C_Read... [10:55:09]Read from MH i2c: 01 [10:55:09]MH_I2C_Read... [10:55:09]Read from MH i2c: 01 07 00 [10:55:09]MH_I2C_Read... [10:55:09]Read from MH i2c: 01 07 00 AC 11 00 00 00 00 00 E7 0C B7 [10:55:09]RasterBufferAndPrint [10:55:09]line [10:55:09]line [10:55:09]line [10:55:09]line [10:55:09]line [10:55:09]written 0, free lines is 3315 [10:55:09]MH_Cut [10:55:09]Write to MH i2c: D1 01 00 B3 11 01 96 [10:55:09]Write i2c OK [10:55:09]MH_I2C_Read... [10:55:09]Read from MH i2c: D1 [10:55:09]MH_I2C_Read... [10:55:09]Read from MH i2c: D1 01 00 [10:55:09]MH_I2C_Read... [10:55:09]Read from MH i2c: D1 01 00 B3 11 00 95 [10:55:09]Write to MH i2c: 01 00 00 B4 11 C5 [10:55:09]Write i2c OK [10:55:09]MH_I2C_Read... [10:55:09]OFD Sender: No OFD packet to send [10:55:10]*** Cut start [10:55:10]*** Purtial cut [10:55:10]*** Stage 1: CUTSNS_PIN = 1 [10:55:10]Read from MH i2c: 01 [10:55:10]MH_I2C_Read... [10:55:10]*** Stop cut motor [10:55:10]*** Cut end [10:55:10]Read from MH i2c: 01 07 00 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: 01 07 00 B4 11 00 00 00 00 00 FF 0F DA [10:55:10]process_action close_receipt done [10:55:10]requested_data is exist [10:55:10]produce_requested_data [10:55:10]requested_item fm.sn is exist - process it [10:55:10]wFMCommunicate request_size=4 [10:55:10]MH_SAM_APDU [10:55:10]CAPDU: 80 11 00 00 [10:55:10]Write to MH i2c: E2 08 00 B5 11 80 11 00 00 00 00 00 00 40 [10:55:10]Write i2c OK [10:55:10]MH_I2C_Read... [10:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:10]Read from MH i2c: E2 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 17 00 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 17 00 B5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A0 [10:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:55:10]wFMCommunicate OK [10:55:10]requested_item fd.num is exist - process it [10:55:10]SAM_PROTO_GetFieldsCounters [10:55:10]wFMCommunicate request_size=4 [10:55:10]MH_SAM_APDU [10:55:10]CAPDU: 80 13 00 00 [10:55:10]Write to MH i2c: E2 08 00 B6 11 80 13 00 00 00 00 00 00 43 [10:55:10]Write i2c OK [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 [10:55:10]MH_I2C_Read... [10:55:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:10]Read from MH i2c: E2 62 00 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 62 00 B6 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E7 7B 02 00 0E 04 04 00 CF 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 DF [10:55:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E7 7B 02 00 0E 04 04 00 CF 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 [10:55:10]wFMCommunicate OK [10:55:10]SAM_PROTO_GetFieldsCounters done [10:55:10]requested_item shift.num is exist - process it [10:55:10]requested_item shift.opened is exist - process it [10:55:10]req_shift_opened [10:55:10]FM_GetShiftState [10:55:10]SAM_PROTO_GetShiftState [10:55:10]wFMCommunicate request_size=4 [10:55:10]MH_SAM_APDU [10:55:10]CAPDU: 80 13 01 00 [10:55:10]Write to MH i2c: E2 08 00 B7 11 80 13 01 00 00 00 00 00 45 [10:55:10]Write i2c OK [10:55:10]MH_I2C_Read... [10:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:10]Read from MH i2c: E2 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 0E 00 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 0E 00 B7 11 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7B [10:55:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [10:55:10]wFMCommunicate OK [10:55:10]SAM_PROTO_GetShiftState done [10:55:10]FM_GetShiftState done [10:55:10]req_shift_opened done [10:55:10]requested_item shift.open_date is exist - process it [10:55:10]req_shift_open_date [10:55:10]req_shift_open_date done [10:55:10]produce_requested_data done [10:55:10]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162791,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [10:55:10]process_action_free close_receipt [10:55:10]json_value_free [10:55:10]json_value_free done [10:55:10]process_json_proto returns [10:55:10]Send response to host [10:55:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162791,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [10:55:10]free response buf [10:55:10]execute_script done [10:55:10]execute_script returns [10:55:10]free content buf [10:55:10]Sock 9.Close socket [10:55:10]Sock 9.Thread stoped [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]accept exits with 7 [11:07:05]New connection [11:07:05]New thread 3066879332 created [11:07:05]Thread 3066735972 joined [11:07:05]Waiting for new connection... [11:07:05] Sock 7.Parse request [11:07:05]Sock 7.Check first char [11:07:05]Sock 7.First char is OK [11:07:05]request: POST /json_proto HTTP/1.0 [11:07:05]Method: POST [11:07:05]URL: /json_proto [11:07:05]Method is POST - this is cgi request [11:07:05]url: /json_proto [11:07:05]query_string will be loaded in cgi processing [11:07:05]execute_cgi json_proto POST (null) [11:07:05]execute_cgi path=json_proto method=POST [11:07:05]POST find Content-Length [11:07:05]Host: 172.17.39.67:8080 [11:07:05]Content-Length: 683 [11:07:05]Content-Type: application/json [11:07:05] [11:07:05]POST finish read [11:07:05]Found Content-Length = 683 [11:07:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:05]execute_script... [11:07: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)1319384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:05]POST & json_proto [11:07:05]process_json_proto [11:07:05]json parsed OK: [11:07:05]protocol is kg_v1.0 [11:07:05]action value=close_receipt [11:07:05]process_action close_receipt [11:07:05]cmd_close_receipt [11:07:05]MH_GetDate [11:07:05]Write to MH i2c: F0 00 00 B8 11 B8 [11:07:05]Write i2c OK [11:07:05]MH_I2C_Read... [11:07:05]Read from MH i2c: F0 [11:07:05]MH_I2C_Read... [11:07:05]Read from MH i2c: F0 09 00 [11:07:05]MH_I2C_Read... [11:07:05]Read from MH i2c: F0 09 00 B8 11 00 59 B1 93 66 B6 85 93 66 F8 [11:07:05]GetLastDocTimeStamp 1720954507 [11:07:05]current date 1720955225 [11:07:05]FM_GetShiftState [11:07:05]SAM_PROTO_GetShiftState [11:07:05]wFMCommunicate request_size=4 [11:07:05]MH_SAM_APDU [11:07:05]CAPDU: 80 13 01 00 [11:07:05]Write to MH i2c: E2 08 00 B9 11 80 13 01 00 00 00 00 00 47 [11:07:05]Write i2c OK [11:07:05]MH_I2C_Read... [11:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:05]Read from MH i2c: E2 [11:07:05]MH_I2C_Read... [11:07:05]Read from MH i2c: E2 0E 00 [11:07:05]MH_I2C_Read... [11:07:05]Read from MH i2c: E2 0E 00 B9 11 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7D [11:07:05]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:07:05]wFMCommunicate OK [11:07:05]SAM_PROTO_GetShiftState done [11:07:05]FM_GetShiftState done [11:07:05]opened in 1720915483 [11:07:05]opened+sec_in_day 1721001883 [11:07:05]quantity*price = 200061 [11:07:05]sum+1 = 200063 [11:07:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 104 14.07.2024 11:07 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162792 ФПД: 24797406111863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110705&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162792&fm=24797406111863&tin=02508201610067®Number=0000000000090858&sum=200000 [11:07:06]StoreToDocumentArchive [11:07:06]shift 463 fd 162792 [11:07:06]save to /storage/0463/doc_00162792 [11:07:06]save last doc name /storage/0463/doc_00162792 to /storage/kkm_last_doc_name [11:07:06]save OK [11:07:06]Clear old archive folders... [11:07:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:06]tlvbuf is B6E96E50 [11:07:06]SAM_PROTO_ClearQueue [11:07:06]wFMCommunicate request_size=4 [11:07:06]MH_SAM_APDU [11:07:06]CAPDU: 80 09 00 00 [11:07:06]Write to MH i2c: E2 08 00 C6 11 80 09 00 00 00 00 00 00 49 [11:07:06]Write i2c OK [11:07:06]MH_I2C_Read... [11:07:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:06]Read from MH i2c: E2 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: E2 03 00 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: E2 03 00 C6 11 00 90 00 4B [11:07:06]RAPDU: 90 00 [11:07:06]wFMCommunicate OK [11:07:06]SAM_PROTO_ClearQueue done [11:07:06]KKMCreateOFDPacket [11:07:06]OFDProtocolAddRootSTLVToBuf [11:07:06]FM_MakeSignedData [11:07:06]FM_MakeSignedData [11:07:06]SAM_PROTO_SignData [11:07:06]wFMCommunicate request_size=4 [11:07:06]MH_SAM_APDU [11:07:06]CAPDU: 80 0D 01 02 [11:07:06]Write to MH i2c: E2 08 00 C7 11 80 0D 01 02 00 00 00 00 51 [11:07:06]Write i2c OK [11:07:06]MH_I2C_Read... [11:07:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:06]Read from MH i2c: E2 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: E2 03 00 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: E2 03 00 C7 11 00 90 00 4C [11:07:06]RAPDU: 90 00 [11:07:06]wFMCommunicate OK [11:07:06]wFMCommunicate request_size=255 [11:07:06]MH_SAM_APDU [11:07:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 59 B1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E8 7B 02 00 35 04 06 00 16 [11:07:06]Write to MH i2c: E2 02 01 C8 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 59 B1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E8 7B 02 00 35 04 06 00 16 00 00 34 [11:07:06]Write i2c OK [11:07:06]MH_I2C_Read... [11:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:06]Read from MH i2c: E2 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: E2 03 00 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: E2 03 00 C8 11 00 90 00 4D [11:07:06]RAPDU: 90 00 [11:07:06]wFMCommunicate OK [11:07:06]wFMCommunicate request_size=10 [11:07:06]MH_SAM_APDU [11:07:06]CAPDU: 80 0D 02 02 05 8D 98 95 28 77 [11:07:06]Write to MH i2c: E2 0D 00 C9 11 80 0D 02 02 05 00 8D 98 95 28 77 00 00 B7 [11:07:06]Write i2c OK [11:07:06]MH_I2C_Read... [11:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:06]Read from MH i2c: E2 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: E2 03 00 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: E2 03 00 C9 11 00 90 00 4E [11:07:06]RAPDU: 90 00 [11:07:06]wFMCommunicate OK [11:07:06]wFMCommunicate request_size=4 [11:07:06]MH_SAM_APDU [11:07:06]CAPDU: 80 0D 03 02 [11:07:06]Write to MH i2c: E2 08 00 CA 11 80 0D 03 02 00 00 00 00 56 [11:07:06]Write i2c OK [11:07:06]MH_I2C_Read... [11:07:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:06]Read from MH i2c: E2 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: E2 0B 00 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: E2 0B 00 CA 11 00 07 DC 3B 9F 59 02 E8 C9 90 00 20 [11:07:06]RAPDU: 07 DC 3B 9F 59 02 E8 C9 90 00 [11:07:06]wFMCommunicate OK [11:07:06]SAM_PROTO_SignData done [11:07:06]FM_MakeSignedData done [11:07:06]CreateOFDProtocolMessage [11:07:06]wFMCommunicate request_size=4 [11:07:06]MH_SAM_APDU [11:07:06]CAPDU: 80 11 00 00 [11:07:06]Write to MH i2c: E2 08 00 CB 11 80 11 00 00 00 00 00 00 56 [11:07:06]Write i2c OK [11:07:06]MH_I2C_Read... [11:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:06]Read from MH i2c: E2 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: E2 17 00 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: E2 17 00 CB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B6 [11:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:07:06]wFMCommunicate OK [11:07:06]CreateOFDProtocolMessage done [11:07:06]OFDSenderStorePacket 162792 [11:07:06]StoreOFDPacket docnum=162792 [11:07:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 85 16 07 01 CD D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 59 B1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E8 7B 02 00 35 04 06 00 16 8D 98 95 28 77 07 DC 3B 9F 59 02 E8 C9 [11:07:06]CheckFolder [11:07:06]dirname=/storage/ofd_packets [11:07:06]CheckFolder done [11:07:06]ProducePacketName [11:07:06]name=ofd_packets/00162792 [11:07:06]NVStorageSaveData ofd_packets/00162792 [11:07:06]File name is /storage/ofd_packets/00162792 [11:07:06]Write 301 bytes [11:07:06]NVStorageSaveData done [11:07:06]OFDSenderStorePacket done [11:07:06]KKMCreateOFDPacket done [11:07:06]NVStorageSaveData kkm_last_timestamp [11:07:06]File name is /storage/kkm_last_timestamp [11:07:06]Write 4 bytes [11:07:06]NVStorageSaveData done [11:07:06]ExternCall_PrintAddStr [11:07:06]wPrintStart [11:07:06]Write to MH i2c: 01 00 00 CC 11 DD [11:07:06]Write i2c OK [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: 01 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: 01 07 00 [11:07:06]MH_I2C_Read... [11:07:06]Read from MH i2c: 01 07 00 CC 11 00 00 00 00 00 FF 0F F2 [11:07:06]RasterBufferAndPrint [11:07:06]line Счет N : (1)1319384 [11:07:06]line ИНН: 02508201610067 [11:07:06]line Контрольно-Кассовый Чек [11:07:06]line ПРОДАЖА [11:07:06]line ТРК (МРК, ГНК) : 34 [11:07:06]line Товар: 2710124500 [11:07:06]line Аи-95-К-5 [11:07:06]line 26.890 * 74.40 [11:07:06]line = 2000.62 [11:07:06]line НДС 12% НСП 1% [11:07:06]line > о реализуемом товаре [11:07:06]line ОКРУГЛЕНИЕ: -0.62 [11:07:06]line ИТОГО: 2000.00 [11:07:06]line Внесено: 2000.00 [11:07:06]line СДАЧА: 0.00 [11:07:06]line НСП 1% : 17.70 [11:07:06]line НДС 12% : 212.45 [11:07:06]line Наличными: 2000.00 [11:07:06]line Безнал.: 0.00 [11:07:06]line Место: АЗС № 140 "Партнер Нефть" [11:07:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:07:06]line СНО: Общий режим [11:07:06]line Чек 104 14.07.2024 11:07 [11:07:06]line Смена: 463 ФФД: 1.0 [11:07:06]line ЗНМ: 0300000129 [11:07:06]line РНМ: 0000000000090858 [11:07:06]line Версия ККМ: 001 [11:07:06]line ФМ: 0000000000874899 [11:07:06]line ФД: 162792 [11:07:06]line ФПД: 24797406111863 [11:07:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110705&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162792&fm=24797406111863&tin=02508201610067®Number=0000000000090858&sum=200000 [11:07:07]OFD Sender: Processing packet 162792 [packets to send 106, broken 105] [11:07:07]ProducePacketName [11:07:07]name=ofd_packets/00162792 [11:07:07]OFD Sender: To server: pG, [11:07:07]CommunicateWithHost lk.salyk.kg:30040 [11:07:07]ConnectInit lk.salyk.kg [11:07:07]written 0, free lines is 4095 [11:07:07]Connected sock=10 [11:07:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 85 16 07 01 CD D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 59 B1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E8 7B 02 00 35 04 06 00 16 8D 98 95 28 77 07 DC 3B 9F 59 02 E8 C9 [11:07:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D6 8A 47 00 55 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E8 7B 02 00 F4 03 04 00 67 5D 93 66 B6 04 01 00 00 32 5F E8 D2 DD CD 2C 1B [11:07:07]CommunicateWithHost err = 0 [11:07:07]CheckOFDResponse [11:07:07]1017 (14) - 77093643461234 [11:07:07]1041 (16) - 0000000000874899 [11:07:07]1040 (4) - 162792 [11:07:07]1012 (4) - 14.07.2024 05:08 [11:07:07]1206 (1) - 0 [11:07:07]OFD Sender: Remove packet 162792 [11:07:07]ProducePacketName [11:07:07]name=ofd_packets/00162792 [11:07:07]NVStorageDeleteData [11:07:07]Write to MH i2c: 01 00 00 F7 11 08 [11:07:07]Write i2c OK [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: 01 [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: 01 07 00 [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: 01 07 00 F7 11 00 00 00 00 00 EA 0C 05 [11:07:07]RasterBufferAndPrint [11:07:07]line [11:07:07]line [11:07:07]line [11:07:07]line [11:07:07]line [11:07:07]written 0, free lines is 3315 [11:07:07]MH_Cut [11:07:07]Write to MH i2c: D1 01 00 FE 11 01 E1 [11:07:07]Write i2c OK [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: D1 [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: D1 01 00 [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: D1 01 00 FE 11 00 E0 [11:07:07]Write to MH i2c: 01 00 00 FF 11 10 [11:07:07]Write i2c OK [11:07:07]MH_I2C_Read... [11:07:07]OFD Sender: No OFD packet to send [11:07:08]*** Cut start [11:07:08]*** Purtial cut [11:07:08]*** CUTSNS_PIN = 0 [11:07:08]*** Stage 1: CUTSNS_PIN = 1 [11:07:10]Read from MH i2c: 01 [11:07:10]MH_I2C_Read... [11:07:10]*** Stop cut motor [11:07:10]*** Cut end [11:07:10]Read from MH i2c: 01 07 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: 01 07 00 FF 11 00 00 00 00 00 FF 0F 25 [11:07:10]process_action close_receipt done [11:07:10]requested_data is exist [11:07:10]produce_requested_data [11:07:10]requested_item fm.sn is exist - process it [11:07:10]wFMCommunicate request_size=4 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 11 00 00 [11:07:10]Write to MH i2c: E2 08 00 00 12 80 11 00 00 00 00 00 00 8C [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 17 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 17 00 00 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EC [11:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:07:10]wFMCommunicate OK [11:07:10]requested_item fd.num is exist - process it [11:07:10]SAM_PROTO_GetFieldsCounters [11:07:10]wFMCommunicate request_size=4 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 13 00 00 [11:07:10]Write to MH i2c: E2 08 00 01 12 80 13 00 00 00 00 00 00 8F [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 62 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 62 00 01 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E8 7B 02 00 0E 04 04 00 CF 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 2F [11:07:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E8 7B 02 00 0E 04 04 00 CF 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:07:10]wFMCommunicate OK [11:07:10]SAM_PROTO_GetFieldsCounters done [11:07:10]requested_item shift.num is exist - process it [11:07:10]requested_item shift.opened is exist - process it [11:07:10]req_shift_opened [11:07:10]FM_GetShiftState [11:07:10]SAM_PROTO_GetShiftState [11:07:10]wFMCommunicate request_size=4 [11:07:10]MH_SAM_APDU [11:07:10]CAPDU: 80 13 01 00 [11:07:10]Write to MH i2c: E2 08 00 02 12 80 13 01 00 00 00 00 00 91 [11:07:10]Write i2c OK [11:07:10]MH_I2C_Read... [11:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:10]Read from MH i2c: E2 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 0E 00 [11:07:10]MH_I2C_Read... [11:07:10]Read from MH i2c: E2 0E 00 02 12 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C7 [11:07:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:07:10]wFMCommunicate OK [11:07:10]SAM_PROTO_GetShiftState done [11:07:10]FM_GetShiftState done [11:07:10]req_shift_opened done [11:07:10]requested_item shift.open_date is exist - process it [11:07:10]req_shift_open_date [11:07:10]req_shift_open_date done [11:07:10]produce_requested_data done [11:07:10]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162792,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:07:10]process_action_free close_receipt [11:07:10]json_value_free [11:07:10]json_value_free done [11:07:10]process_json_proto returns [11:07:10]Send response to host [11:07:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162792,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:07:10]free response buf [11:07:10]execute_script done [11:07:10]execute_script returns [11:07:10]free content buf [11:07:10]Sock 7.Close socket [11:07:10]Sock 7.Thread stoped [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:39]accept exits with 9 [11:07:39]New connection [11:07:39]New thread 3066735972 created [11:07:39]Thread 3066879332 joined [11:07:39]Waiting for new connection... [11:07:39] Sock 9.Parse request [11:07:39]Sock 9.Check first char [11:07:39]Sock 9.First char is OK [11:07:39]request: POST /json_proto HTTP/1.0 [11:07:39]Method: POST [11:07:39]URL: /json_proto [11:07:39]Method is POST - this is cgi request [11:07:39]url: /json_proto [11:07:39]query_string will be loaded in cgi processing [11:07:39]execute_cgi json_proto POST (null) [11:07:39]execute_cgi path=json_proto method=POST [11:07:39]POST find Content-Length [11:07:39]Host: 172.17.39.67:8080 [11:07:39]Content-Length: 683 [11:07:39]Content-Type: application/json [11:07:39] [11:07:39]POST finish read [11:07:39]Found Content-Length = 683 [11:07:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:39]execute_script... [11:07:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:39]POST & json_proto [11:07:39]process_json_proto [11:07:39]json parsed OK: [11:07:39]protocol is kg_v1.0 [11:07:39]action value=close_receipt [11:07:39]process_action close_receipt [11:07:39]cmd_close_receipt [11:07:39]MH_GetDate [11:07:39]Write to MH i2c: F0 00 00 03 12 04 [11:07:39]Write i2c OK [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: F0 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: F0 09 00 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: F0 09 00 03 12 00 7C B1 93 66 B6 85 93 66 67 [11:07:39]GetLastDocTimeStamp 1720955225 [11:07:39]current date 1720955260 [11:07:39]FM_GetShiftState [11:07:39]SAM_PROTO_GetShiftState [11:07:39]wFMCommunicate request_size=4 [11:07:39]MH_SAM_APDU [11:07:39]CAPDU: 80 13 01 00 [11:07:39]Write to MH i2c: E2 08 00 04 12 80 13 01 00 00 00 00 00 93 [11:07:39]Write i2c OK [11:07:39]MH_I2C_Read... [11:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:39]Read from MH i2c: E2 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: E2 0E 00 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: E2 0E 00 04 12 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C9 [11:07:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:07:39]wFMCommunicate OK [11:07:39]SAM_PROTO_GetShiftState done [11:07:39]FM_GetShiftState done [11:07:39]opened in 1720915483 [11:07:39]opened+sec_in_day 1721001883 [11:07:39]quantity*price = 50021 [11:07:39]sum+1 = 50022 [11:07:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 105 14.07.2024 11:07 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162793 ФПД: 170406948930114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110740&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162793&fm=170406948930114&tin=02508201610067®Number=0000000000090858&sum=50000 [11:07:40]StoreToDocumentArchive [11:07:40]shift 463 fd 162793 [11:07:40]save to /storage/0463/doc_00162793 [11:07:40]save last doc name /storage/0463/doc_00162793 to /storage/kkm_last_doc_name [11:07:40]save OK [11:07:40]Clear old archive folders... [11:07:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:07:40]tlvbuf is 01345A50 [11:07:40]SAM_PROTO_ClearQueue [11:07:40]wFMCommunicate request_size=4 [11:07:40]MH_SAM_APDU [11:07:40]CAPDU: 80 09 00 00 [11:07:40]Write to MH i2c: E2 08 00 11 12 80 09 00 00 00 00 00 00 95 [11:07:40]Write i2c OK [11:07:40]MH_I2C_Read... [11:07:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:40]Read from MH i2c: E2 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: E2 03 00 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: E2 03 00 11 12 00 90 00 97 [11:07:40]RAPDU: 90 00 [11:07:40]wFMCommunicate OK [11:07:40]SAM_PROTO_ClearQueue done [11:07:40]KKMCreateOFDPacket [11:07:40]OFDProtocolAddRootSTLVToBuf [11:07:40]FM_MakeSignedData [11:07:40]FM_MakeSignedData [11:07:40]SAM_PROTO_SignData [11:07:40]wFMCommunicate request_size=4 [11:07:40]MH_SAM_APDU [11:07:40]CAPDU: 80 0D 01 02 [11:07:40]Write to MH i2c: E2 08 00 12 12 80 0D 01 02 00 00 00 00 9D [11:07:40]Write i2c OK [11:07:40]MH_I2C_Read... [11:07:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:41]Read from MH i2c: E2 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 03 00 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 03 00 12 12 00 90 00 98 [11:07:41]RAPDU: 90 00 [11:07:41]wFMCommunicate OK [11:07:41]wFMCommunicate request_size=255 [11:07:41]MH_SAM_APDU [11:07:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 69 00 00 00 F4 03 04 00 7C B1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E9 7B 02 00 35 04 06 00 [11:07:41]Write to MH i2c: E2 02 01 13 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 69 00 00 00 F4 03 04 00 7C B1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E9 7B 02 00 35 04 06 00 00 00 13 [11:07:41]Write i2c OK [11:07:41]MH_I2C_Read... [11:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:41]Read from MH i2c: E2 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 03 00 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 03 00 13 12 00 90 00 99 [11:07:41]RAPDU: 90 00 [11:07:41]wFMCommunicate OK [11:07:41]wFMCommunicate request_size=11 [11:07:41]MH_SAM_APDU [11:07:41]CAPDU: 80 0D 02 02 06 9A FB F5 A8 82 42 [11:07:41]Write to MH i2c: E2 0E 00 14 12 80 0D 02 02 06 00 9A FB F5 A8 82 42 00 00 A2 [11:07:41]Write i2c OK [11:07:41]MH_I2C_Read... [11:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:41]Read from MH i2c: E2 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 03 00 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 03 00 14 12 00 90 00 9A [11:07:41]RAPDU: 90 00 [11:07:41]wFMCommunicate OK [11:07:41]wFMCommunicate request_size=4 [11:07:41]MH_SAM_APDU [11:07:41]CAPDU: 80 0D 03 02 [11:07:41]Write to MH i2c: E2 08 00 15 12 80 0D 03 02 00 00 00 00 A2 [11:07:41]Write i2c OK [11:07:41]MH_I2C_Read... [11:07:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:41]Read from MH i2c: E2 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 0B 00 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 0B 00 15 12 00 23 D3 89 9C 6A A3 F7 73 90 00 35 [11:07:41]RAPDU: 23 D3 89 9C 6A A3 F7 73 90 00 [11:07:41]wFMCommunicate OK [11:07:41]SAM_PROTO_SignData done [11:07:41]FM_MakeSignedData done [11:07:41]CreateOFDProtocolMessage [11:07:41]wFMCommunicate request_size=4 [11:07:41]MH_SAM_APDU [11:07:41]CAPDU: 80 11 00 00 [11:07:41]Write to MH i2c: E2 08 00 16 12 80 11 00 00 00 00 00 00 A2 [11:07:41]Write i2c OK [11:07:41]MH_I2C_Read... [11:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:41]Read from MH i2c: E2 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 17 00 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: E2 17 00 16 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 02 [11:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:07:41]wFMCommunicate OK [11:07:41]CreateOFDProtocolMessage done [11:07:41]OFDSenderStorePacket 162793 [11:07:41]StoreOFDPacket docnum=162793 [11:07:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C2 00 08 01 73 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 69 00 00 00 F4 03 04 00 7C B1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E9 7B 02 00 35 04 06 00 9A FB F5 A8 82 42 23 D3 89 9C 6A A3 F7 73 [11:07:41]CheckFolder [11:07:41]dirname=/storage/ofd_packets [11:07:41]CheckFolder done [11:07:41]ProducePacketName [11:07:41]name=ofd_packets/00162793 [11:07:41]NVStorageSaveData ofd_packets/00162793 [11:07:41]File name is /storage/ofd_packets/00162793 [11:07:41]Write 302 bytes [11:07:41]NVStorageSaveData done [11:07:41]OFDSenderStorePacket done [11:07:41]KKMCreateOFDPacket done [11:07:41]NVStorageSaveData kkm_last_timestamp [11:07:41]File name is /storage/kkm_last_timestamp [11:07:41]Write 4 bytes [11:07:41]NVStorageSaveData done [11:07:41]ExternCall_PrintAddStr [11:07:41]wPrintStart [11:07:41]Write to MH i2c: 01 00 00 17 12 29 [11:07:41]Write i2c OK [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: 01 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: 01 07 00 [11:07:41]MH_I2C_Read... [11:07:41]Read from MH i2c: 01 07 00 17 12 00 00 00 00 00 FF 0F 3E [11:07:41]RasterBufferAndPrint [11:07:41]line Счет N : (1)1319385 [11:07:41]line ИНН: 02508201610067 [11:07:41]line Контрольно-Кассовый Чек [11:07:41]line ПРОДАЖА [11:07:41]line ТРК (МРК, ГНК) : 21 [11:07:41]line Товар: 2710194210 [11:07:41]line ДТ(л)-К-5 [11:07:41]line 6.890 * 72.60 [11:07:41]line = 500.21 [11:07:41]line НДС 12% НСП 1% [11:07:41]line > о реализуемом товаре [11:07:41]line ОКРУГЛЕНИЕ: -0.21 [11:07:41]line ИТОГО: 500.00 [11:07:41]line Внесено: 500.00 [11:07:41]line СДАЧА: 0.00 [11:07:41]line НСП 1% : 4.43 [11:07:41]line НДС 12% : 53.12 [11:07:41]line Наличными: 500.00 [11:07:41]line Безнал.: 0.00 [11:07:41]line Место: АЗС № 140 "Партнер Нефть" [11:07:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:07:41]line СНО: Общий режим [11:07:41]line Чек 105 14.07.2024 11:07 [11:07:41]line Смена: 463 ФФД: 1.0 [11:07:41]line ЗНМ: 0300000129 [11:07:41]line РНМ: 0000000000090858 [11:07:41]line Версия ККМ: 001 [11:07:41]line ФМ: 0000000000874899 [11:07:41]line ФД: 162793 [11:07:41]line ФПД: 170406948930114 [11:07:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T110740&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162793&fm=170406948930114&tin=02508201610067®Number=0000000000090858&sum=50000 [11:07:41]OFD Sender: Processing packet 162793 [packets to send 106, broken 105] [11:07:41]ProducePacketName [11:07:41]name=ofd_packets/00162793 [11:07:41]OFD Sender: To server: pG, [11:07:41]CommunicateWithHost lk.salyk.kg:30040 [11:07:41]ConnectInit lk.salyk.kg [11:07:41]written 0, free lines is 4095 [11:07:41]Connected sock=10 [11:07:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C2 00 08 01 73 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 69 00 00 00 F4 03 04 00 7C B1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E9 7B 02 00 35 04 06 00 9A FB F5 A8 82 42 23 D3 89 9C 6A A3 F7 73 [11:07:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E2 55 47 00 FF 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E9 7B 02 00 F4 03 04 00 8A 5D 93 66 B6 04 01 00 00 73 A6 28 37 98 3D FB DA [11:07:42]CommunicateWithHost err = 0 [11:07:42]CheckOFDResponse [11:07:42]1017 (14) - 77093643461234 [11:07:42]1041 (16) - 0000000000874899 [11:07:42]1040 (4) - 162793 [11:07:42]1012 (4) - 14.07.2024 05:09 [11:07:42]1206 (1) - 0 [11:07:42]OFD Sender: Remove packet 162793 [11:07:42]ProducePacketName [11:07:42]name=ofd_packets/00162793 [11:07:42]NVStorageDeleteData [11:07:42]Write to MH i2c: 01 00 00 42 12 54 [11:07:42]Write i2c OK [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: 01 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: 01 07 00 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: 01 07 00 42 12 00 00 00 00 00 CD 0C 34 [11:07:42]RasterBufferAndPrint [11:07:42]line [11:07:42]line [11:07:42]line [11:07:42]line [11:07:42]line [11:07:42]written 0, free lines is 3284 [11:07:42]MH_Cut [11:07:42]Write to MH i2c: D1 01 00 49 12 01 2D [11:07:42]Write i2c OK [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: D1 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: D1 01 00 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: D1 01 00 49 12 00 2C [11:07:42]Write to MH i2c: 01 00 00 4A 12 5C [11:07:42]Write i2c OK [11:07:42]MH_I2C_Read... [11:07:42]OFD Sender: No OFD packet to send [11:07:43]*** Cut start [11:07:43]*** Purtial cut [11:07:43]*** Stage 1: CUTSNS_PIN = 1 [11:07:43]Read from MH i2c: 01 [11:07:43]MH_I2C_Read... [11:07:43]*** Stop cut motor [11:07:43]*** Cut end [11:07:43]Read from MH i2c: 01 07 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: 01 07 00 4A 12 00 00 00 00 00 FF 0F 71 [11:07:43]process_action close_receipt done [11:07:43]requested_data is exist [11:07:43]produce_requested_data [11:07:43]requested_item fm.sn is exist - process it [11:07:43]wFMCommunicate request_size=4 [11:07:43]MH_SAM_APDU [11:07:43]CAPDU: 80 11 00 00 [11:07:43]Write to MH i2c: E2 08 00 4B 12 80 11 00 00 00 00 00 00 D7 [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:43]Read from MH i2c: E2 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 17 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 17 00 4B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 37 [11:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:07:43]wFMCommunicate OK [11:07:43]requested_item fd.num is exist - process it [11:07:43]SAM_PROTO_GetFieldsCounters [11:07:43]wFMCommunicate request_size=4 [11:07:43]MH_SAM_APDU [11:07:43]CAPDU: 80 13 00 00 [11:07:43]Write to MH i2c: E2 08 00 4C 12 80 13 00 00 00 00 00 00 DA [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:43]Read from MH i2c: E2 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 62 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 62 00 4C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E9 7B 02 00 0E 04 04 00 CF 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 7E [11:07:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E9 7B 02 00 0E 04 04 00 CF 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:07:43]wFMCommunicate OK [11:07:43]SAM_PROTO_GetFieldsCounters done [11:07:43]requested_item shift.num is exist - process it [11:07:43]requested_item shift.opened is exist - process it [11:07:43]req_shift_opened [11:07:43]FM_GetShiftState [11:07:43]SAM_PROTO_GetShiftState [11:07:43]wFMCommunicate request_size=4 [11:07:43]MH_SAM_APDU [11:07:43]CAPDU: 80 13 01 00 [11:07:43]Write to MH i2c: E2 08 00 4D 12 80 13 01 00 00 00 00 00 DC [11:07:43]Write i2c OK [11:07:43]MH_I2C_Read... [11:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:43]Read from MH i2c: E2 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 0E 00 [11:07:43]MH_I2C_Read... [11:07:43]Read from MH i2c: E2 0E 00 4D 12 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 12 [11:07:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:07:43]wFMCommunicate OK [11:07:43]SAM_PROTO_GetShiftState done [11:07:43]FM_GetShiftState done [11:07:43]req_shift_opened done [11:07:43]requested_item shift.open_date is exist - process it [11:07:43]req_shift_open_date [11:07:43]req_shift_open_date done [11:07:43]produce_requested_data done [11:07:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162793,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:07:43]process_action_free close_receipt [11:07:43]json_value_free [11:07:43]json_value_free done [11:07:43]process_json_proto returns [11:07:43]Send response to host [11:07:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162793,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:07:43]free response buf [11:07:43]execute_script done [11:07:43]execute_script returns [11:07:43]free content buf [11:07:43]Sock 9.Close socket [11:07:43]Sock 9.Thread stoped [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: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: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:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13: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]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:35]accept exits with 7 [11:15:35]New connection [11:15:35]New thread 3066879332 created [11:15:35]Thread 3066735972 joined [11:15:35]Waiting for new connection... [11:15:35] Sock 7.Parse request [11:15:35]Sock 7.Check first char [11:15:35]Sock 7.First char is OK [11:15:35]request: POST /json_proto HTTP/1.0 [11:15:35]Method: POST [11:15:35]URL: /json_proto [11:15:35]Method is POST - this is cgi request [11:15:35]url: /json_proto [11:15:35]query_string will be loaded in cgi processing [11:15:35]execute_cgi json_proto POST (null) [11:15:35]execute_cgi path=json_proto method=POST [11:15:35]POST find Content-Length [11:15:35]Host: 172.17.39.67:8080 [11:15:35]Content-Length: 683 [11:15:35]Content-Type: application/json [11:15:35] [11:15:35]POST finish read [11:15:35]Found Content-Length = 683 [11:15:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:35]execute_script... [11:15:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:35]POST & json_proto [11:15:35]process_json_proto [11:15:35]json parsed OK: [11:15:35]protocol is kg_v1.0 [11:15:35]action value=close_receipt [11:15:35]process_action close_receipt [11:15:35]cmd_close_receipt [11:15:35]MH_GetDate [11:15:35]Write to MH i2c: F0 00 00 4E 12 4F [11:15:35]Write i2c OK [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: F0 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: F0 09 00 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: F0 09 00 4E 12 00 57 B3 93 66 B6 85 93 66 8F [11:15:35]GetLastDocTimeStamp 1720955260 [11:15:35]current date 1720955735 [11:15:35]FM_GetShiftState [11:15:35]SAM_PROTO_GetShiftState [11:15:35]wFMCommunicate request_size=4 [11:15:35]MH_SAM_APDU [11:15:35]CAPDU: 80 13 01 00 [11:15:35]Write to MH i2c: E2 08 00 4F 12 80 13 01 00 00 00 00 00 DE [11:15:35]Write i2c OK [11:15:35]MH_I2C_Read... [11:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:35]Read from MH i2c: E2 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: E2 0E 00 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: E2 0E 00 4F 12 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 14 [11:15:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:15:35]wFMCommunicate OK [11:15:35]SAM_PROTO_GetShiftState done [11:15:35]FM_GetShiftState done [11:15:35]opened in 1720915483 [11:15:35]opened+sec_in_day 1721001883 [11:15:35]quantity*price = 100046 [11:15:35]sum+1 = 100048 [11:15:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 106 14.07.2024 11:15 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162794 ФПД: 160414114591584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111535&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162794&fm=160414114591584&tin=02508201610067®Number=0000000000090858&sum=100000 [11:15:36]StoreToDocumentArchive [11:15:36]shift 463 fd 162794 [11:15:36]save to /storage/0463/doc_00162794 [11:15:36]save last doc name /storage/0463/doc_00162794 to /storage/kkm_last_doc_name [11:15:36]save OK [11:15:36]Clear old archive folders... [11:15:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:36]tlvbuf is B6EC8BE0 [11:15:36]SAM_PROTO_ClearQueue [11:15:36]wFMCommunicate request_size=4 [11:15:36]MH_SAM_APDU [11:15:36]CAPDU: 80 09 00 00 [11:15:36]Write to MH i2c: E2 08 00 5C 12 80 09 00 00 00 00 00 00 E0 [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:36]Read from MH i2c: E2 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 5C 12 00 90 00 E2 [11:15:36]RAPDU: 90 00 [11:15:36]wFMCommunicate OK [11:15:36]SAM_PROTO_ClearQueue done [11:15:36]KKMCreateOFDPacket [11:15:36]OFDProtocolAddRootSTLVToBuf [11:15:36]FM_MakeSignedData [11:15:36]FM_MakeSignedData [11:15:36]SAM_PROTO_SignData [11:15:36]wFMCommunicate request_size=4 [11:15:36]MH_SAM_APDU [11:15:36]CAPDU: 80 0D 01 02 [11:15:36]Write to MH i2c: E2 08 00 5D 12 80 0D 01 02 00 00 00 00 E8 [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:36]Read from MH i2c: E2 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 5D 12 00 90 00 E3 [11:15:36]RAPDU: 90 00 [11:15:36]wFMCommunicate OK [11:15:36]wFMCommunicate request_size=255 [11:15:36]MH_SAM_APDU [11:15: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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 57 B3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EA 7B 02 00 35 04 06 00 91 [11:15:36]Write to MH i2c: E2 02 01 5E 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 57 B3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EA 7B 02 00 35 04 06 00 91 00 00 29 [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:36]Read from MH i2c: E2 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 5E 12 00 90 00 E4 [11:15:36]RAPDU: 90 00 [11:15:36]wFMCommunicate OK [11:15:36]wFMCommunicate request_size=10 [11:15:36]MH_SAM_APDU [11:15:36]CAPDU: 80 0D 02 02 05 E5 52 51 33 60 [11:15:36]Write to MH i2c: E2 0D 00 5F 12 80 0D 02 02 05 00 E5 52 51 33 60 00 00 10 [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:36]Read from MH i2c: E2 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 5F 12 00 90 00 E5 [11:15:36]RAPDU: 90 00 [11:15:36]wFMCommunicate OK [11:15:36]wFMCommunicate request_size=4 [11:15:36]MH_SAM_APDU [11:15:36]CAPDU: 80 0D 03 02 [11:15:36]Write to MH i2c: E2 08 00 60 12 80 0D 03 02 00 00 00 00 ED [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:36]Read from MH i2c: E2 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 0B 00 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 0B 00 60 12 00 F8 D4 AA 34 8B 5B 26 A6 90 00 4A [11:15:36]RAPDU: F8 D4 AA 34 8B 5B 26 A6 90 00 [11:15:36]wFMCommunicate OK [11:15:36]SAM_PROTO_SignData done [11:15:36]FM_MakeSignedData done [11:15:36]CreateOFDProtocolMessage [11:15:36]wFMCommunicate request_size=4 [11:15:36]MH_SAM_APDU [11:15:36]CAPDU: 80 11 00 00 [11:15:36]Write to MH i2c: E2 08 00 61 12 80 11 00 00 00 00 00 00 ED [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:36]Read from MH i2c: E2 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 17 00 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 17 00 61 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4D [11:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:15:36]wFMCommunicate OK [11:15:36]CreateOFDProtocolMessage done [11:15:36]OFDSenderStorePacket 162794 [11:15:36]StoreOFDPacket docnum=162794 [11:15:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B8 5F 07 01 DD 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 57 B3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EA 7B 02 00 35 04 06 00 91 E5 52 51 33 60 F8 D4 AA 34 8B 5B 26 A6 [11:15:36]CheckFolder [11:15:36]dirname=/storage/ofd_packets [11:15:36]CheckFolder done [11:15:36]ProducePacketName [11:15:36]name=ofd_packets/00162794 [11:15:36]NVStorageSaveData ofd_packets/00162794 [11:15:36]File name is /storage/ofd_packets/00162794 [11:15:36]Write 301 bytes [11:15:36]NVStorageSaveData done [11:15:36]OFDSenderStorePacket done [11:15:36]KKMCreateOFDPacket done [11:15:36]NVStorageSaveData kkm_last_timestamp [11:15:36]File name is /storage/kkm_last_timestamp [11:15:36]Write 4 bytes [11:15:36]NVStorageSaveData done [11:15:36]ExternCall_PrintAddStr [11:15:36]wPrintStart [11:15:36]Write to MH i2c: 01 00 00 62 12 74 [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: 01 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: 01 07 00 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: 01 07 00 62 12 00 00 00 00 00 FF 0F 89 [11:15:36]RasterBufferAndPrint [11:15:36]line Счет N : (1)1319386 [11:15:36]line ИНН: 02508201610067 [11:15:36]line Контрольно-Кассовый Чек [11:15:36]line ПРОДАЖА [11:15:36]line ТРК (МРК, ГНК) : 43 [11:15:36]line Товар: 2710124130 [11:15:36]line Аи-92-К-5 [11:15:36]line 15.090 * 66.30 [11:15:36]line = 1000.47 [11:15:36]line НДС 12% НСП 1% [11:15:36]line > о реализуемом товаре [11:15:36]line ОКРУГЛЕНИЕ: -0.47 [11:15:36]line ИТОГО: 1000.00 [11:15:36]line Внесено: 1000.00 [11:15:36]line СДАЧА: 0.00 [11:15:36]line НСП 1% : 8.85 [11:15:36]line НДС 12% : 106.24 [11:15:36]line Наличными: 1000.00 [11:15:36]line Безнал.: 0.00 [11:15:36]line Место: АЗС № 140 "Партнер Нефть" [11:15:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:15:36]line СНО: Общий режим [11:15:36]line Чек 106 14.07.2024 11:15 [11:15:36]line Смена: 463 ФФД: 1.0 [11:15:36]line ЗНМ: 0300000129 [11:15:36]line РНМ: 0000000000090858 [11:15:36]line Версия ККМ: 001 [11:15:36]line ФМ: 0000000000874899 [11:15:36]line ФД: 162794 [11:15:36]line ФПД: 160414114591584 [11:15:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T111535&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162794&fm=160414114591584&tin=02508201610067®Number=0000000000090858&sum=100000 [11:15:37]OFD Sender: Processing packet 162794 [packets to send 106, broken 105] [11:15:37]ProducePacketName [11:15:37]name=ofd_packets/00162794 [11:15:37]OFD Sender: To server: pG, [11:15:37]CommunicateWithHost lk.salyk.kg:30040 [11:15:37]ConnectInit lk.salyk.kg [11:15:37]written 0, free lines is 4095 [11:15:37]Connected sock=10 [11:15:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B8 5F 07 01 DD 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 57 B3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EA 7B 02 00 35 04 06 00 91 E5 52 51 33 60 F8 D4 AA 34 8B 5B 26 A6 [11:15:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B8 11 47 00 7F 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EA 7B 02 00 F4 03 04 00 65 5F 93 66 B6 04 01 00 00 3C EA 90 2D D0 6B 22 DE [11:15:37]CommunicateWithHost err = 0 [11:15:37]CheckOFDResponse [11:15:37]1017 (14) - 77093643461234 [11:15:37]1041 (16) - 0000000000874899 [11:15:37]1040 (4) - 162794 [11:15:37]1012 (4) - 14.07.2024 05:17 [11:15:37]1206 (1) - 0 [11:15:37]OFD Sender: Remove packet 162794 [11:15:37]ProducePacketName [11:15:37]name=ofd_packets/00162794 [11:15:37]NVStorageDeleteData [11:15:37]Write to MH i2c: 01 00 00 8D 12 9F [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: 01 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: 01 07 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: 01 07 00 8D 12 00 00 00 00 00 E2 0C 94 [11:15:37]RasterBufferAndPrint [11:15:37]line [11:15:37]line [11:15:37]line [11:15:37]line [11:15:37]line [11:15:37]written 0, free lines is 3304 [11:15:37]MH_Cut [11:15:37]Write to MH i2c: D1 01 00 94 12 01 78 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: D1 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: D1 01 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: D1 01 00 94 12 00 77 [11:15:37]Write to MH i2c: 01 00 00 95 12 A7 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]OFD Sender: No OFD packet to send [11:15:38]*** Cut start [11:15:38]*** Purtial cut [11:15:38]*** CUTSNS_PIN = 0 [11:15:38]*** Stage 1: CUTSNS_PIN = 1 [11:15:40]Read from MH i2c: 01 [11:15:40]MH_I2C_Read... [11:15:40]*** Stop cut motor [11:15:40]*** Cut end [11:15:40]Read from MH i2c: 01 07 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 07 00 95 12 00 00 00 00 00 FF 0F BC [11:15:40]process_action close_receipt done [11:15:40]requested_data is exist [11:15:40]produce_requested_data [11:15:40]requested_item fm.sn is exist - process it [11:15:40]wFMCommunicate request_size=4 [11:15:40]MH_SAM_APDU [11:15:40]CAPDU: 80 11 00 00 [11:15:40]Write to MH i2c: E2 08 00 96 12 80 11 00 00 00 00 00 00 22 [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:40]Read from MH i2c: E2 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 17 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 17 00 96 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 82 [11:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:15:40]wFMCommunicate OK [11:15:40]requested_item fd.num is exist - process it [11:15:40]SAM_PROTO_GetFieldsCounters [11:15:40]wFMCommunicate request_size=4 [11:15:40]MH_SAM_APDU [11:15:40]CAPDU: 80 13 00 00 [11:15:40]Write to MH i2c: E2 08 00 97 12 80 13 00 00 00 00 00 00 25 [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:40]Read from MH i2c: E2 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 62 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 62 00 97 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EA 7B 02 00 0E 04 04 00 CF 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 CD [11:15:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EA 7B 02 00 0E 04 04 00 CF 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 [11:15:40]wFMCommunicate OK [11:15:40]SAM_PROTO_GetFieldsCounters done [11:15:40]requested_item shift.num is exist - process it [11:15:40]requested_item shift.opened is exist - process it [11:15:40]req_shift_opened [11:15:40]FM_GetShiftState [11:15:40]SAM_PROTO_GetShiftState [11:15:40]wFMCommunicate request_size=4 [11:15:40]MH_SAM_APDU [11:15:40]CAPDU: 80 13 01 00 [11:15:40]Write to MH i2c: E2 08 00 98 12 80 13 01 00 00 00 00 00 27 [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:40]Read from MH i2c: E2 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 0E 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 0E 00 98 12 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5D [11:15:40]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:15:40]wFMCommunicate OK [11:15:40]SAM_PROTO_GetShiftState done [11:15:40]FM_GetShiftState done [11:15:40]req_shift_opened done [11:15:40]requested_item shift.open_date is exist - process it [11:15:40]req_shift_open_date [11:15:40]req_shift_open_date done [11:15:40]produce_requested_data done [11:15:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162794,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:15:40]process_action_free close_receipt [11:15:40]json_value_free [11:15:40]json_value_free done [11:15:40]process_json_proto returns [11:15:40]Send response to host [11:15:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162794,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:15:40]free response buf [11:15:40]execute_script done [11:15:40]execute_script returns [11:15:40]free content buf [11:15:40]Sock 7.Close socket [11:15:40]Sock 7.Thread stoped [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:30]accept exits with 9 [11:26:30]New connection [11:26:30]New thread 3066735972 created [11:26:30]Thread 3066879332 joined [11:26:30]Waiting for new connection... [11:26:30] Sock 9.Parse request [11:26:30]Sock 9.Check first char [11:26:30]Sock 9.First char is OK [11:26:30]request: POST /json_proto HTTP/1.0 [11:26:30]Method: POST [11:26:30]URL: /json_proto [11:26:30]Method is POST - this is cgi request [11:26:30]url: /json_proto [11:26:30]query_string will be loaded in cgi processing [11:26:30]execute_cgi json_proto POST (null) [11:26:30]execute_cgi path=json_proto method=POST [11:26:30]POST find Content-Length [11:26:30]Host: 172.17.39.67:8080 [11:26:30]Content-Length: 1205 [11:26:30]Content-Type: application/json [11:26:30] [11:26:30]POST finish read [11:26:30]Found Content-Length = 1205 [11:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319388\u000A14.07.2024 11:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 0.950 x 74.40\u000A\u0418\u0422\u041E\u0413: 70.68\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:30]execute_script... [11:26:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319388\u000A14.07.2024 11:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 0.950 x 74.40\u000A\u0418\u0422\u041E\u0413: 70.68\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:30]POST & json_proto [11:26:30]process_json_proto [11:26:30]json parsed OK: [11:26:30]protocol is kg_v1.0 [11:26:30]action value=print_text [11:26:30]process_action print_text [11:26:30]cmd_print_text [11:26:30]ExternCall_PrintAddStr [11:26:30]wPrintStart [11:26:30]Write to MH i2c: 01 00 00 99 12 AB [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: 01 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: 01 07 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: 01 07 00 99 12 00 00 00 00 00 FF 0F C0 [11:26:30]RasterBufferAndPrint [11:26:30]line *****ТОВАРНЫЙ ЧЕК***** [11:26:30]line АЗС 140 [11:26:30]line Партнер нефть [11:26:30]line 02508201610067 [11:26:30]line Кассир : Дуйшенбек у Н. [11:26:30]line Счет N : (1)1319388 [11:26:30]line 14.07.2024 11:23 [11:26:30]line ПРОДАЖА [11:26:30]line ТРК (МРК, ГНК): 54 [11:26:30]line Вид ГСМ : 2710124500 [11:26:30]line Аи-95-К-5 [11:26:30]line 0.950 x 74.40 [11:26:30]line ИТОГ: 70.68 [11:26:30]line Тип оплаты: Талоны: Топливная Карта [11:26:30]line 01860 [11:26:30]line ______________________ [11:26:30]line (подпись) [11:26:30]written 0, free lines is 4095 [11:26:30]Write to MH i2c: 01 00 00 AD 12 BF [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: 01 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: 01 07 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: 01 07 00 AD 12 00 00 00 00 00 10 0E E4 [11:26:30]RasterBufferAndPrint [11:26:30]line [11:26:30]line [11:26:30]line [11:26:30]line [11:26:30]line [11:26:30]written 0, free lines is 3601 [11:26:30]MH_Cut [11:26:30]Write to MH i2c: D1 01 00 B4 12 01 98 [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: D1 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: D1 01 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: D1 01 00 B4 12 00 97 [11:26:30]Write to MH i2c: 01 00 00 B5 12 C7 [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:31]*** Cut start [11:26:31]*** Purtial cut [11:26:31]*** Stage 1: CUTSNS_PIN = 1 [11:26:31]Read from MH i2c: 01 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 [11:26:31]MH_I2C_Read... [11:26:31]*** Stop cut motor [11:26:31]*** Cut end [11:26:31]Read from MH i2c: 01 07 00 B5 12 00 00 00 00 00 FF 0F DC [11:26:31]process_action print_text done [11:26:31]requested_data is exist [11:26:31]produce_requested_data [11:26:31]requested_item fm.sn is exist - process it [11:26:31]wFMCommunicate request_size=4 [11:26:31]MH_SAM_APDU [11:26:31]CAPDU: 80 11 00 00 [11:26:31]Write to MH i2c: E2 08 00 B6 12 80 11 00 00 00 00 00 00 42 [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:31]Read from MH i2c: E2 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 17 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 17 00 B6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A2 [11:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:26:31]wFMCommunicate OK [11:26:31]requested_item fd.num is exist - process it [11:26:31]SAM_PROTO_GetFieldsCounters [11:26:31]wFMCommunicate request_size=4 [11:26:31]MH_SAM_APDU [11:26:31]CAPDU: 80 13 00 00 [11:26:31]Write to MH i2c: E2 08 00 B7 12 80 13 00 00 00 00 00 00 45 [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:31]Read from MH i2c: E2 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 62 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 62 00 B7 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EA 7B 02 00 0E 04 04 00 CF 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 ED [11:26:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EA 7B 02 00 0E 04 04 00 CF 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 [11:26:31]wFMCommunicate OK [11:26:31]SAM_PROTO_GetFieldsCounters done [11:26:31]requested_item shift.num is exist - process it [11:26:31]requested_item shift.opened is exist - process it [11:26:31]req_shift_opened [11:26:31]FM_GetShiftState [11:26:31]SAM_PROTO_GetShiftState [11:26:31]wFMCommunicate request_size=4 [11:26:31]MH_SAM_APDU [11:26:31]CAPDU: 80 13 01 00 [11:26:31]Write to MH i2c: E2 08 00 B8 12 80 13 01 00 00 00 00 00 47 [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:31]Read from MH i2c: E2 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 0E 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 0E 00 B8 12 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7D [11:26:31]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:26:31]wFMCommunicate OK [11:26:31]SAM_PROTO_GetShiftState done [11:26:31]FM_GetShiftState done [11:26:31]req_shift_opened done [11:26:31]requested_item shift.open_date is exist - process it [11:26:31]req_shift_open_date [11:26:31]req_shift_open_date done [11:26:31]produce_requested_data done [11:26:31]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162794,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:26:31]process_action_free print_text [11:26:31]json_value_free [11:26:31]json_value_free done [11:26:31]process_json_proto returns [11:26:31]Send response to host [11:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162794,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:26:31]free response buf [11:26:31]execute_script done [11:26:31]execute_script returns [11:26:31]free content buf [11:26:31]Sock 9.Close socket [11:26:31]Sock 9.Thread stoped [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:07]accept exits with 7 [11:28:07]New connection [11:28:07]New thread 3066879332 created [11:28:07]Thread 3066735972 joined [11:28:07]Waiting for new connection... [11:28:07] Sock 7.Parse request [11:28:07]Sock 7.Check first char [11:28:07]Sock 7.First char is OK [11:28:07]request: POST /json_proto HTTP/1.0 [11:28:07]Method: POST [11:28:07]URL: /json_proto [11:28:07]Method is POST - this is cgi request [11:28:07]url: /json_proto [11:28:07]query_string will be loaded in cgi processing [11:28:07]execute_cgi json_proto POST (null) [11:28:07]execute_cgi path=json_proto method=POST [11:28:07]POST find Content-Length [11:28:07]Host: 172.17.39.67:8080 [11:28:07]Content-Length: 825 [11:28:07]Content-Type: application/json [11:28:07] [11:28:07]POST finish read [11:28:07]Found Content-Length = 825 [11:28:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.660, "sum" : 1499.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1499.92 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:07]execute_script... [11:28:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.660, "sum" : 1499.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1499.92 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:07]POST & json_proto [11:28:07]process_json_proto [11:28:07]json parsed OK: [11:28:07]protocol is kg_v1.0 [11:28:07]action value=close_receipt [11:28:07]process_action close_receipt [11:28:07]cmd_close_receipt [11:28:07]MH_GetDate [11:28:07]Write to MH i2c: F0 00 00 B9 12 BA [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: F0 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: F0 09 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: F0 09 00 B9 12 00 47 B6 93 66 B6 85 93 66 ED [11:28:07]GetLastDocTimeStamp 1720955735 [11:28:07]current date 1720956487 [11:28:07]FM_GetShiftState [11:28:07]SAM_PROTO_GetShiftState [11:28:07]wFMCommunicate request_size=4 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 13 01 00 [11:28:07]Write to MH i2c: E2 08 00 BA 12 80 13 01 00 00 00 00 00 49 [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 0E 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 0E 00 BA 12 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7F [11:28:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:28:07]wFMCommunicate OK [11:28:07]SAM_PROTO_GetShiftState done [11:28:07]FM_GetShiftState done [11:28:07]opened in 1720915483 [11:28:07]opened+sec_in_day 1721001883 [11:28:07]quantity*price = 149991 [11:28:07]sum+1 = 149993 [11:28:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1499.92 НСП 1% : 13.27 НДС 12% : 159.28 Наличными: 0.00 Безнал.: 1499.92 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 107 14.07.2024 11:28 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162795 ФПД: 258379048854211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112807&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162795&fm=258379048854211&tin=02508201610067®Number=0000000000090858&sum=149992 [11:28:08]StoreToDocumentArchive [11:28:08]shift 463 fd 162795 [11:28:08]save to /storage/0463/doc_00162795 [11:28:08]save last doc name /storage/0463/doc_00162795 to /storage/kkm_last_doc_name [11:28:08]save OK [11:28:08]Clear old archive folders... [11:28:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:28:08]tlvbuf is 0124CA80 [11:28:08]SAM_PROTO_ClearQueue [11:28:08]wFMCommunicate request_size=4 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 09 00 00 [11:28:08]Write to MH i2c: E2 08 00 C7 12 80 09 00 00 00 00 00 00 4B [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:08]Read from MH i2c: E2 03 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 C7 12 00 90 00 4D [11:28:08]RAPDU: 90 00 [11:28:08]wFMCommunicate OK [11:28:08]SAM_PROTO_ClearQueue done [11:28:08]KKMCreateOFDPacket [11:28:08]OFDProtocolAddRootSTLVToBuf [11:28:08]FM_MakeSignedData [11:28:08]FM_MakeSignedData [11:28:08]SAM_PROTO_SignData [11:28:08]wFMCommunicate request_size=4 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 0D 01 02 [11:28:08]Write to MH i2c: E2 08 00 C8 12 80 0D 01 02 00 00 00 00 53 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 C8 12 00 90 00 4E [11:28:08]RAPDU: 90 00 [11:28:08]wFMCommunicate OK [11:28:08]wFMCommunicate request_size=255 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B4 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 47 B6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EB 7B 02 00 35 04 06 00 [11:28:08]Write to MH i2c: E2 02 01 C9 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B4 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 47 B6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EB 7B 02 00 35 04 06 00 00 00 02 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 C9 12 00 90 00 4F [11:28:08]RAPDU: 90 00 [11:28:08]wFMCommunicate OK [11:28:08]wFMCommunicate request_size=11 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 0D 02 02 06 EA FE 8F 6C A2 C3 [11:28:08]Write to MH i2c: E2 0E 00 CA 12 80 0D 02 02 06 00 EA FE 8F 6C A2 C3 00 00 AA [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 CA 12 00 90 00 50 [11:28:08]RAPDU: 90 00 [11:28:08]wFMCommunicate OK [11:28:08]wFMCommunicate request_size=4 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 0D 03 02 [11:28:08]Write to MH i2c: E2 08 00 CB 12 80 0D 03 02 00 00 00 00 58 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 0B 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 0B 00 CB 12 00 6F D8 23 8A A8 49 FE EC 90 00 28 [11:28:08]RAPDU: 6F D8 23 8A A8 49 FE EC 90 00 [11:28:08]wFMCommunicate OK [11:28:08]SAM_PROTO_SignData done [11:28:08]FM_MakeSignedData done [11:28:08]CreateOFDProtocolMessage [11:28:08]wFMCommunicate request_size=4 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 11 00 00 [11:28:08]Write to MH i2c: E2 08 00 CC 12 80 11 00 00 00 00 00 00 58 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 17 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 17 00 CC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B8 [11:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:28:08]wFMCommunicate OK [11:28:08]CreateOFDProtocolMessage done [11:28:08]OFDSenderStorePacket 162795 [11:28:08]StoreOFDPacket docnum=162795 [11:28:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 A9 08 01 14 BA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B4 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 47 B6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EB 7B 02 00 35 04 06 00 EA FE 8F 6C A2 C3 6F D8 23 8A A8 49 FE EC [11:28:08]CheckFolder [11:28:08]dirname=/storage/ofd_packets [11:28:08]CheckFolder done [11:28:08]ProducePacketName [11:28:08]name=ofd_packets/00162795 [11:28:08]NVStorageSaveData ofd_packets/00162795 [11:28:08]File name is /storage/ofd_packets/00162795 [11:28:08]Write 302 bytes [11:28:08]NVStorageSaveData done [11:28:08]OFDSenderStorePacket done [11:28:08]KKMCreateOFDPacket done [11:28:08]NVStorageSaveData kkm_last_timestamp [11:28:08]File name is /storage/kkm_last_timestamp [11:28:08]Write 4 bytes [11:28:08]NVStorageSaveData done [11:28:08]ExternCall_PrintAddStr [11:28:08]wPrintStart [11:28:08]Write to MH i2c: 01 00 00 CD 12 DF [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: 01 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: 01 07 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: 01 07 00 CD 12 00 00 00 00 00 FF 0F F4 [11:28:08]RasterBufferAndPrint [11:28:08]line Счет N : (1)1319389 [11:28:08]line ИНН: 02508201610067 [11:28:08]line Контрольно-Кассовый Чек [11:28:08]line ПРОДАЖА [11:28:08]line ТРК (МРК, ГНК) : 11 [11:28:08]line Товар: 2710194210 [11:28:08]line ДТ(л)-К-5 [11:28:08]line 20.660 * 72.60 [11:28:08]line = 1499.92 [11:28:08]line НДС 12% НСП 1% [11:28:08]line > о реализуемом товаре [11:28:08]line ИТОГО: 1499.92 [11:28:08]line НСП 1% : 13.27 [11:28:08]line НДС 12% : 159.28 [11:28:08]line Наличными: 0.00 [11:28:08]line Безнал.: 1499.92 [11:28:08]line Место: АЗС № 140 "Партнер Нефть" [11:28:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:28:08]line СНО: Общий режим [11:28:08]line Чек 107 14.07.2024 11:28 [11:28:08]line Смена: 463 ФФД: 1.0 [11:28:08]line ЗНМ: 0300000129 [11:28:08]line РНМ: 0000000000090858 [11:28:08]line Версия ККМ: 001 [11:28:08]line Платежная система: Бакай Банк [11:28:08]line ФМ: 0000000000874899 [11:28:08]line ФД: 162795 [11:28:08]line ФПД: 258379048854211 [11:28:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T112807&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162795&fm=258379048854211&tin=02508201610067®Number=0000000000090858&sum=149992 [11:28:09]OFD Sender: Processing packet 162795 [packets to send 106, broken 105] [11:28:09]ProducePacketName [11:28:09]name=ofd_packets/00162795 [11:28:09]OFD Sender: To server: pG, [11:28:09]CommunicateWithHost lk.salyk.kg:30040 [11:28:09]ConnectInit lk.salyk.kg [11:28:09]written 0, free lines is 4095 [11:28:09]Connected sock=10 [11:28:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 A9 08 01 14 BA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B4 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 47 B6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EB 7B 02 00 35 04 06 00 EA FE 8F 6C A2 C3 6F D8 23 8A A8 49 FE EC [11:28:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 66 DD 47 00 2D 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EB 7B 02 00 F4 03 04 00 55 62 93 66 B6 04 01 00 00 2F C2 74 38 00 CE 12 2D [11:28:09]CommunicateWithHost err = 0 [11:28:09]CheckOFDResponse [11:28:09]1017 (14) - 77093643461234 [11:28:09]1041 (16) - 0000000000874899 [11:28:09]1040 (4) - 162795 [11:28:09]1012 (4) - 14.07.2024 05:29 [11:28:09]1206 (1) - 0 [11:28:09]OFD Sender: Remove packet 162795 [11:28:09]ProducePacketName [11:28:09]name=ofd_packets/00162795 [11:28:09]NVStorageDeleteData [11:28:09]Write to MH i2c: 01 00 00 F7 12 09 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 F7 12 00 00 00 00 00 ED 0C 09 [11:28:09]RasterBufferAndPrint [11:28:09]line [11:28:09]line [11:28:09]line [11:28:09]line [11:28:09]line [11:28:09]written 0, free lines is 3315 [11:28:09]MH_Cut [11:28:09]Write to MH i2c: D1 01 00 FE 12 01 E2 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: D1 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: D1 01 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: D1 01 00 FE 12 00 E1 [11:28:09]Write to MH i2c: 01 00 00 FF 12 11 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]OFD Sender: No OFD packet to send [11:28:10]*** Cut start [11:28:10]*** Purtial cut [11:28:10]*** CUTSNS_PIN = 0 [11:28:10]*** Stage 1: CUTSNS_PIN = 1 [11:28:12]Read from MH i2c: 01 [11:28:12]MH_I2C_Read... [11:28:12]*** Stop cut motor [11:28:12]*** Cut end [11:28:12]Read from MH i2c: 01 07 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: 01 07 00 FF 12 00 00 00 00 00 FF 0F 26 [11:28:12]process_action close_receipt done [11:28:12]requested_data is exist [11:28:12]produce_requested_data [11:28:12]requested_item fm.sn is exist - process it [11:28:12]wFMCommunicate request_size=4 [11:28:12]MH_SAM_APDU [11:28:12]CAPDU: 80 11 00 00 [11:28:12]Write to MH i2c: E2 08 00 00 13 80 11 00 00 00 00 00 00 8D [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:12]Read from MH i2c: E2 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 17 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 17 00 00 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 ED [11:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:28:12]wFMCommunicate OK [11:28:12]requested_item fd.num is exist - process it [11:28:12]SAM_PROTO_GetFieldsCounters [11:28:12]wFMCommunicate request_size=4 [11:28:12]MH_SAM_APDU [11:28:12]CAPDU: 80 13 00 00 [11:28:12]Write to MH i2c: E2 08 00 01 13 80 13 00 00 00 00 00 00 90 [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:12]Read from MH i2c: E2 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 62 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 62 00 01 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EB 7B 02 00 0E 04 04 00 CF 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 3C [11:28:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EB 7B 02 00 0E 04 04 00 CF 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 [11:28:12]wFMCommunicate OK [11:28:12]SAM_PROTO_GetFieldsCounters done [11:28:12]requested_item shift.num is exist - process it [11:28:12]requested_item shift.opened is exist - process it [11:28:12]req_shift_opened [11:28:12]FM_GetShiftState [11:28:12]SAM_PROTO_GetShiftState [11:28:12]wFMCommunicate request_size=4 [11:28:12]MH_SAM_APDU [11:28:12]CAPDU: 80 13 01 00 [11:28:12]Write to MH i2c: E2 08 00 02 13 80 13 01 00 00 00 00 00 92 [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:12]Read from MH i2c: E2 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 0E 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 0E 00 02 13 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C8 [11:28:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:28:12]wFMCommunicate OK [11:28:12]SAM_PROTO_GetShiftState done [11:28:12]FM_GetShiftState done [11:28:12]req_shift_opened done [11:28:12]requested_item shift.open_date is exist - process it [11:28:12]req_shift_open_date [11:28:12]req_shift_open_date done [11:28:12]produce_requested_data done [11:28:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162795,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:28:12]process_action_free close_receipt [11:28:12]json_value_free [11:28:12]json_value_free done [11:28:12]process_json_proto returns [11:28:12]Send response to host [11:28:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162795,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:28:12]free response buf [11:28:12]execute_script done [11:28:12]execute_script returns [11:28:12]free content buf [11:28:12]Sock 7.Close socket [11:28:12]Sock 7.Thread stoped [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]accept exits with 9 [11:28:54]New connection [11:28:54]New thread 3066735972 created [11:28:54]Thread 3066879332 joined [11:28:54]Waiting for new connection... [11:28:54] Sock 9.Parse request [11:28:54]Sock 9.Check first char [11:28:54]Sock 9.First char is OK [11:28:54]request: POST /json_proto HTTP/1.0 [11:28:54]Method: POST [11:28:54]URL: /json_proto [11:28:54]Method is POST - this is cgi request [11:28:54]url: /json_proto [11:28:54]query_string will be loaded in cgi processing [11:28:54]execute_cgi json_proto POST (null) [11:28:54]execute_cgi path=json_proto method=POST [11:28:54]POST find Content-Length [11:28:54]Host: 172.17.39.67:8080 [11:28:54]Content-Length: 1208 [11:28:54]Content-Type: application/json [11:28:54] [11:28:54]POST finish read [11:28:54]Found Content-Length = 1208 [11:28:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319391\u000A14.07.2024 11:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 19.050 x 74.40\u000A\u0418\u0422\u041E\u0413: 1417.32\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:54]execute_script... [11:28:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319391\u000A14.07.2024 11:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 19.050 x 74.40\u000A\u0418\u0422\u041E\u0413: 1417.32\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:54]POST & json_proto [11:28:54]process_json_proto [11:28:54]json parsed OK: [11:28:54]protocol is kg_v1.0 [11:28:54]action value=print_text [11:28:54]process_action print_text [11:28:54]cmd_print_text [11:28:54]ExternCall_PrintAddStr [11:28:54]wPrintStart [11:28:54]Write to MH i2c: 01 00 00 03 13 16 [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: 01 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: 01 07 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: 01 07 00 03 13 00 00 00 00 00 FF 0F 2B [11:28:54]RasterBufferAndPrint [11:28:54]line *****ТОВАРНЫЙ ЧЕК***** [11:28:54]line АЗС 140 [11:28:54]line Партнер нефть [11:28:54]line 02508201610067 [11:28:54]line Кассир : Дуйшенбек у Н. [11:28:54]line Счет N : (1)1319391 [11:28:54]line 14.07.2024 11:26 [11:28:54]line ПРОДАЖА [11:28:54]line ТРК (МРК, ГНК): 54 [11:28:54]line Вид ГСМ : 2710124500 [11:28:54]line Аи-95-К-5 [11:28:54]line 19.050 x 74.40 [11:28:54]line ИТОГ: 1417.32 [11:28:54]line Тип оплаты: Талоны: Топливная Карта [11:28:54]line 01860 [11:28:54]line ______________________ [11:28:54]line (подпись) [11:28:54]written 0, free lines is 4095 [11:28:54]Write to MH i2c: 01 00 00 17 13 2A [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: 01 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: 01 07 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: 01 07 00 17 13 00 00 00 00 00 10 0E 4F [11:28:54]RasterBufferAndPrint [11:28:54]line [11:28:54]line [11:28:54]line [11:28:54]line [11:28:54]line [11:28:54]written 0, free lines is 3602 [11:28:54]MH_Cut [11:28:54]Write to MH i2c: D1 01 00 1E 13 01 03 [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: D1 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: D1 01 00 [11:28:54]MH_I2C_Read... [11:28:54]OFD Sender: No OFD packet to send [11:28:54]Read from MH i2c: D1 01 00 1E 13 00 02 [11:28:54]Write to MH i2c: 01 00 00 1F 13 32 [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:55]*** Cut start [11:28:55]*** Purtial cut [11:28:55]*** Stage 1: CUTSNS_PIN = 1 [11:28:55]Read from MH i2c: 01 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: 01 07 00 [11:28:55]MH_I2C_Read... [11:28:55]*** Stop cut motor [11:28:55]*** Cut end [11:28:55]Read from MH i2c: 01 07 00 1F 13 00 00 00 00 00 FF 0F 47 [11:28:55]process_action print_text done [11:28:55]requested_data is exist [11:28:55]produce_requested_data [11:28:55]requested_item fm.sn is exist - process it [11:28:55]wFMCommunicate request_size=4 [11:28:55]MH_SAM_APDU [11:28:55]CAPDU: 80 11 00 00 [11:28:55]Write to MH i2c: E2 08 00 20 13 80 11 00 00 00 00 00 00 AD [11:28:55]Write i2c OK [11:28:55]MH_I2C_Read... [11:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:55]Read from MH i2c: E2 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: E2 17 00 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: E2 17 00 20 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0D [11:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:28:55]wFMCommunicate OK [11:28:55]requested_item fd.num is exist - process it [11:28:55]SAM_PROTO_GetFieldsCounters [11:28:55]wFMCommunicate request_size=4 [11:28:55]MH_SAM_APDU [11:28:55]CAPDU: 80 13 00 00 [11:28:55]Write to MH i2c: E2 08 00 21 13 80 13 00 00 00 00 00 00 B0 [11:28:55]Write i2c OK [11:28:55]MH_I2C_Read... [11:28:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:55]Read from MH i2c: E2 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: E2 62 00 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: E2 62 00 21 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EB 7B 02 00 0E 04 04 00 CF 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 5C [11:28:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EB 7B 02 00 0E 04 04 00 CF 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 [11:28:55]wFMCommunicate OK [11:28:55]SAM_PROTO_GetFieldsCounters done [11:28:55]requested_item shift.num is exist - process it [11:28:55]requested_item shift.opened is exist - process it [11:28:55]req_shift_opened [11:28:55]FM_GetShiftState [11:28:55]SAM_PROTO_GetShiftState [11:28:55]wFMCommunicate request_size=4 [11:28:55]MH_SAM_APDU [11:28:55]CAPDU: 80 13 01 00 [11:28:55]Write to MH i2c: E2 08 00 22 13 80 13 01 00 00 00 00 00 B2 [11:28:55]Write i2c OK [11:28:55]MH_I2C_Read... [11:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:56]Read from MH i2c: E2 [11:28:56]MH_I2C_Read... [11:28:56]Read from MH i2c: E2 0E 00 [11:28:56]MH_I2C_Read... [11:28:56]Read from MH i2c: E2 0E 00 22 13 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E8 [11:28:56]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:28:56]wFMCommunicate OK [11:28:56]SAM_PROTO_GetShiftState done [11:28:56]FM_GetShiftState done [11:28:56]req_shift_opened done [11:28:56]requested_item shift.open_date is exist - process it [11:28:56]req_shift_open_date [11:28:56]req_shift_open_date done [11:28:56]produce_requested_data done [11:28:56]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162795,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:28:56]process_action_free print_text [11:28:56]json_value_free [11:28:56]json_value_free done [11:28:56]process_json_proto returns [11:28:56]Send response to host [11:28:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162795,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:28:56]free response buf [11:28:56]execute_script done [11:28:56]execute_script returns [11:28:56]free content buf [11:28:56]Sock 9.Close socket [11:28:56]Sock 9.Thread stoped [11:28:59]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: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: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: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:44]accept exits with 7 [11:32:44]New connection [11:32:44]New thread 3066879332 created [11:32:44]Thread 3066735972 joined [11:32:44]Waiting for new connection... [11:32:44] Sock 7.Parse request [11:32:44]Sock 7.Check first char [11:32:44]Sock 7.First char is OK [11:32:44]request: POST /json_proto HTTP/1.0 [11:32:44]Method: POST [11:32:44]URL: /json_proto [11:32:44]Method is POST - this is cgi request [11:32:44]url: /json_proto [11:32:44]query_string will be loaded in cgi processing [11:32:44]execute_cgi json_proto POST (null) [11:32:44]execute_cgi path=json_proto method=POST [11:32:44]POST find Content-Length [11:32:44]Host: 172.17.39.67:8080 [11:32:44]Content-Length: 688 [11:32:44]Content-Type: application/json [11:32:44] [11:32:44]POST finish read [11:32:44]Found Content-Length = 688 [11:32:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:44]execute_script... [11:32: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)1319392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:44]POST & json_proto [11:32:44]process_json_proto [11:32:44]json parsed OK: [11:32:44]protocol is kg_v1.0 [11:32:44]action value=close_receipt [11:32:44]process_action close_receipt [11:32:44]cmd_close_receipt [11:32:44]MH_GetDate [11:32:44]Write to MH i2c: F0 00 00 23 13 25 [11:32:44]Write i2c OK [11:32:44]MH_I2C_Read... [11:32:44]Read from MH i2c: F0 [11:32:44]MH_I2C_Read... [11:32:44]Read from MH i2c: F0 09 00 [11:32:44]MH_I2C_Read... [11:32:44]Read from MH i2c: F0 09 00 23 13 00 5D B7 93 66 B6 85 93 66 6F [11:32:44]GetLastDocTimeStamp 1720956487 [11:32:44]current date 1720956765 [11:32:44]FM_GetShiftState [11:32:44]SAM_PROTO_GetShiftState [11:32:44]wFMCommunicate request_size=4 [11:32:44]MH_SAM_APDU [11:32:44]CAPDU: 80 13 01 00 [11:32:44]Write to MH i2c: E2 08 00 24 13 80 13 01 00 00 00 00 00 B4 [11:32:44]Write i2c OK [11:32:44]MH_I2C_Read... [11:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:44]Read from MH i2c: E2 [11:32:44]MH_I2C_Read... [11:32:44]Read from MH i2c: E2 0E 00 [11:32:44]MH_I2C_Read... [11:32:44]Read from MH i2c: E2 0E 00 24 13 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 EA [11:32:44]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:32:44]wFMCommunicate OK [11:32:44]SAM_PROTO_GetShiftState done [11:32:44]FM_GetShiftState done [11:32:44]opened in 1720915483 [11:32:44]opened+sec_in_day 1721001883 [11:32:44]quantity*price = 200013 [11:32:44]sum+1 = 200014 [11:32:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 108 14.07.2024 11:32 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162796 ФПД: 2313458261933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T113245&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162796&fm=2313458261933&tin=02508201610067®Number=0000000000090858&sum=200000 [11:32:45]StoreToDocumentArchive [11:32:45]shift 463 fd 162796 [11:32:45]save to /storage/0463/doc_00162796 [11:32:45]save last doc name /storage/0463/doc_00162796 to /storage/kkm_last_doc_name [11:32:45]save OK [11:32:45]Clear old archive folders... [11:32:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:32:45]tlvbuf is B6E96090 [11:32:45]SAM_PROTO_ClearQueue [11:32:45]wFMCommunicate request_size=4 [11:32:45]MH_SAM_APDU [11:32:45]CAPDU: 80 09 00 00 [11:32:45]Write to MH i2c: E2 08 00 31 13 80 09 00 00 00 00 00 00 B6 [11:32:45]Write i2c OK [11:32:45]MH_I2C_Read... [11:32:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:45]Read from MH i2c: E2 [11:32:45]MH_I2C_Read... [11:32:45]Read from MH i2c: E2 03 00 [11:32:45]MH_I2C_Read... [11:32:45]Read from MH i2c: E2 03 00 31 13 00 90 00 B8 [11:32:45]RAPDU: 90 00 [11:32:45]wFMCommunicate OK [11:32:45]SAM_PROTO_ClearQueue done [11:32:45]KKMCreateOFDPacket [11:32:45]OFDProtocolAddRootSTLVToBuf [11:32:45]FM_MakeSignedData [11:32:45]FM_MakeSignedData [11:32:45]SAM_PROTO_SignData [11:32:45]wFMCommunicate request_size=4 [11:32:45]MH_SAM_APDU [11:32:45]CAPDU: 80 0D 01 02 [11:32:45]Write to MH i2c: E2 08 00 32 13 80 0D 01 02 00 00 00 00 BE [11:32:45]Write i2c OK [11:32:45]MH_I2C_Read... [11:32:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:45]Read from MH i2c: E2 [11:32:45]MH_I2C_Read... [11:32:45]Read from MH i2c: E2 03 00 [11:32:45]MH_I2C_Read... [11:32:45]Read from MH i2c: E2 03 00 32 13 00 90 00 B9 [11:32:45]RAPDU: 90 00 [11:32:45]wFMCommunicate OK [11:32:45]wFMCommunicate request_size=255 [11:32:45]MH_SAM_APDU [11:32:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 5D B7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EC 7B 02 00 35 04 06 00 [11:32:45]Write to MH i2c: E2 02 01 33 13 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 5D B7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EC 7B 02 00 35 04 06 00 00 00 7F [11:32:45]Write i2c OK [11:32:45]MH_I2C_Read... [11:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:46]Read from MH i2c: E2 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 03 00 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 03 00 33 13 00 90 00 BA [11:32:46]RAPDU: 90 00 [11:32:46]wFMCommunicate OK [11:32:46]wFMCommunicate request_size=11 [11:32:46]MH_SAM_APDU [11:32:46]CAPDU: 80 0D 02 02 06 02 1A A4 DB 9F AD [11:32:46]Write to MH i2c: E2 0E 00 34 13 80 0D 02 02 06 00 02 1A A4 DB 9F AD 00 00 B4 [11:32:46]Write i2c OK [11:32:46]MH_I2C_Read... [11:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:46]Read from MH i2c: E2 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 03 00 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 03 00 34 13 00 90 00 BB [11:32:46]RAPDU: 90 00 [11:32:46]wFMCommunicate OK [11:32:46]wFMCommunicate request_size=4 [11:32:46]MH_SAM_APDU [11:32:46]CAPDU: 80 0D 03 02 [11:32:46]Write to MH i2c: E2 08 00 35 13 80 0D 03 02 00 00 00 00 C3 [11:32:46]Write i2c OK [11:32:46]MH_I2C_Read... [11:32:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:46]Read from MH i2c: E2 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 0B 00 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 0B 00 35 13 00 93 A2 F6 DC 4A E3 C4 63 90 00 1F [11:32:46]RAPDU: 93 A2 F6 DC 4A E3 C4 63 90 00 [11:32:46]wFMCommunicate OK [11:32:46]SAM_PROTO_SignData done [11:32:46]FM_MakeSignedData done [11:32:46]CreateOFDProtocolMessage [11:32:46]wFMCommunicate request_size=4 [11:32:46]MH_SAM_APDU [11:32:46]CAPDU: 80 11 00 00 [11:32:46]Write to MH i2c: E2 08 00 36 13 80 11 00 00 00 00 00 00 C3 [11:32:46]Write i2c OK [11:32:46]MH_I2C_Read... [11:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:46]Read from MH i2c: E2 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 17 00 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 17 00 36 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 23 [11:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:32:46]wFMCommunicate OK [11:32:46]CreateOFDProtocolMessage done [11:32:46]OFDSenderStorePacket 162796 [11:32:46]StoreOFDPacket docnum=162796 [11:32:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 5B 0F 08 01 80 77 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 5D B7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EC 7B 02 00 35 04 06 00 02 1A A4 DB 9F AD 93 A2 F6 DC 4A E3 C4 63 [11:32:46]CheckFolder [11:32:46]dirname=/storage/ofd_packets [11:32:46]CheckFolder done [11:32:46]ProducePacketName [11:32:46]name=ofd_packets/00162796 [11:32:46]NVStorageSaveData ofd_packets/00162796 [11:32:46]File name is /storage/ofd_packets/00162796 [11:32:46]Write 302 bytes [11:32:46]NVStorageSaveData done [11:32:46]OFDSenderStorePacket done [11:32:46]KKMCreateOFDPacket done [11:32:46]NVStorageSaveData kkm_last_timestamp [11:32:46]File name is /storage/kkm_last_timestamp [11:32:46]Write 4 bytes [11:32:46]NVStorageSaveData done [11:32:46]ExternCall_PrintAddStr [11:32:46]wPrintStart [11:32:46]Write to MH i2c: 01 00 00 37 13 4A [11:32:46]Write i2c OK [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: 01 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: 01 07 00 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: 01 07 00 37 13 00 00 00 00 00 FF 0F 5F [11:32:46]RasterBufferAndPrint [11:32:46]line Счет N : (1)1319392 [11:32:46]line ИНН: 02508201610067 [11:32:46]line Контрольно-Кассовый Чек [11:32:46]line ПРОДАЖА [11:32:46]line ТРК (МРК, ГНК) : 41 [11:32:46]line Товар: 2710194210 [11:32:46]line ДТ(л)-К-5 [11:32:46]line 27.550 * 72.60 [11:32:46]line = 2000.13 [11:32:46]line НДС 12% НСП 1% [11:32:46]line > о реализуемом товаре [11:32:46]line ОКРУГЛЕНИЕ: -0.13 [11:32:46]line ИТОГО: 2000.00 [11:32:46]line Внесено: 2000.00 [11:32:46]line СДАЧА: 0.00 [11:32:46]line НСП 1% : 17.70 [11:32:46]line НДС 12% : 212.40 [11:32:46]line Наличными: 2000.00 [11:32:46]line Безнал.: 0.00 [11:32:46]line Место: АЗС № 140 "Партнер Нефть" [11:32:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:32:46]line СНО: Общий режим [11:32:46]line Чек 108 14.07.2024 11:32 [11:32:46]line Смена: 463 ФФД: 1.0 [11:32:46]line ЗНМ: 0300000129 [11:32:46]line РНМ: 0000000000090858 [11:32:46]line Версия ККМ: 001 [11:32:46]line ФМ: 0000000000874899 [11:32:46]line ФД: 162796 [11:32:46]line ФПД: 2313458261933 [11:32:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T113245&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162796&fm=2313458261933&tin=02508201610067®Number=0000000000090858&sum=200000 [11:32:46]OFD Sender: Processing packet 162796 [packets to send 106, broken 105] [11:32:46]ProducePacketName [11:32:46]name=ofd_packets/00162796 [11:32:46]OFD Sender: To server: pG, [11:32:46]CommunicateWithHost lk.salyk.kg:30040 [11:32:46]ConnectInit lk.salyk.kg [11:32:46]written 0, free lines is 4095 [11:32:46]Connected sock=10 [11:32:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 5B 0F 08 01 80 77 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 5D B7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EC 7B 02 00 35 04 06 00 02 1A A4 DB 9F AD 93 A2 F6 DC 4A E3 C4 63 [11:32:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6A 66 47 00 73 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EC 7B 02 00 F4 03 04 00 6B 63 93 66 B6 04 01 00 00 4F 14 DC 7C C0 B5 78 0C [11:32:47]CommunicateWithHost err = 0 [11:32:47]CheckOFDResponse [11:32:47]1017 (14) - 77093643461234 [11:32:47]1041 (16) - 0000000000874899 [11:32:47]1040 (4) - 162796 [11:32:47]1012 (4) - 14.07.2024 05:34 [11:32:47]1206 (1) - 0 [11:32:47]OFD Sender: Remove packet 162796 [11:32:47]ProducePacketName [11:32:47]name=ofd_packets/00162796 [11:32:47]NVStorageDeleteData [11:32:47]Write to MH i2c: 01 00 00 62 13 75 [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: 01 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: 01 07 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: 01 07 00 62 13 00 00 00 00 00 E2 0C 6A [11:32:47]RasterBufferAndPrint [11:32:47]line [11:32:47]line [11:32:47]line [11:32:47]line [11:32:47]line [11:32:47]written 0, free lines is 3304 [11:32:47]MH_Cut [11:32:47]Write to MH i2c: D1 01 00 69 13 01 4E [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: D1 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: D1 01 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: D1 01 00 69 13 00 4D [11:32:47]Write to MH i2c: 01 00 00 6A 13 7D [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]OFD Sender: No OFD packet to send [11:32:47]*** Cut start [11:32:47]*** Purtial cut [11:32:47]*** CUTSNS_PIN = 0 [11:32:48]*** Stage 1: CUTSNS_PIN = 1 [11:32:49]Read from MH i2c: 01 [11:32:49]MH_I2C_Read... [11:32:49]*** Stop cut motor [11:32:50]*** Cut end [11:32:50]Read from MH i2c: 01 07 00 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: 01 07 00 6A 13 00 00 00 00 00 FF 0F 92 [11:32:50]process_action close_receipt done [11:32:50]requested_data is exist [11:32:50]produce_requested_data [11:32:50]requested_item fm.sn is exist - process it [11:32:50]wFMCommunicate request_size=4 [11:32:50]MH_SAM_APDU [11:32:50]CAPDU: 80 11 00 00 [11:32:50]Write to MH i2c: E2 08 00 6B 13 80 11 00 00 00 00 00 00 F8 [11:32:50]Write i2c OK [11:32:50]MH_I2C_Read... [11:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:50]Read from MH i2c: E2 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 17 00 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 17 00 6B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 58 [11:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:32:50]wFMCommunicate OK [11:32:50]requested_item fd.num is exist - process it [11:32:50]SAM_PROTO_GetFieldsCounters [11:32:50]wFMCommunicate request_size=4 [11:32:50]MH_SAM_APDU [11:32:50]CAPDU: 80 13 00 00 [11:32:50]Write to MH i2c: E2 08 00 6C 13 80 13 00 00 00 00 00 00 FB [11:32:50]Write i2c OK [11:32:50]MH_I2C_Read... [11:32:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:50]Read from MH i2c: E2 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 62 00 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 62 00 6C 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EC 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [11:32:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EC 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:50]wFMCommunicate OK [11:32:50]SAM_PROTO_GetFieldsCounters done [11:32:50]requested_item shift.num is exist - process it [11:32:50]requested_item shift.opened is exist - process it [11:32:50]req_shift_opened [11:32:50]FM_GetShiftState [11:32:50]SAM_PROTO_GetShiftState [11:32:50]wFMCommunicate request_size=4 [11:32:50]MH_SAM_APDU [11:32:50]CAPDU: 80 13 01 00 [11:32:50]Write to MH i2c: E2 08 00 6D 13 80 13 01 00 00 00 00 00 FD [11:32:50]Write i2c OK [11:32:50]MH_I2C_Read... [11:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:50]Read from MH i2c: E2 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 0E 00 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 0E 00 6D 13 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 33 [11:32:50]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:32:50]wFMCommunicate OK [11:32:50]SAM_PROTO_GetShiftState done [11:32:50]FM_GetShiftState done [11:32:50]req_shift_opened done [11:32:50]requested_item shift.open_date is exist - process it [11:32:50]req_shift_open_date [11:32:50]req_shift_open_date done [11:32:50]produce_requested_data done [11:32:50]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162796,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:32:50]process_action_free close_receipt [11:32:50]json_value_free [11:32:50]json_value_free done [11:32:50]process_json_proto returns [11:32:50]Send response to host [11:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162796,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:32:50]free response buf [11:32:50]execute_script done [11:32:50]execute_script returns [11:32:50]free content buf [11:32:50]Sock 7.Close socket [11:32:50]Sock 7.Thread stoped [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:39]accept exits with 9 [11:42:39]New connection [11:42:39]New thread 3066735972 created [11:42:39]Thread 3066879332 joined [11:42:39]Waiting for new connection... [11:42:39] Sock 9.Parse request [11:42:39]Sock 9.Check first char [11:42:39]Sock 9.First char is OK [11:42:39]request: POST /json_proto HTTP/1.0 [11:42:39]Method: POST [11:42:39]URL: /json_proto [11:42:39]Method is POST - this is cgi request [11:42:39]url: /json_proto [11:42:39]query_string will be loaded in cgi processing [11:42:39]execute_cgi json_proto POST (null) [11:42:39]execute_cgi path=json_proto method=POST [11:42:39]POST find Content-Length [11:42:39]Host: 172.17.39.67:8080 [11:42:39]Content-Length: 683 [11:42:39]Content-Type: application/json [11:42:39] [11:42:39]POST finish read [11:42:39]Found Content-Length = 683 [11:42:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:39]execute_script... [11:42: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)1319393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:39]POST & json_proto [11:42:39]process_json_proto [11:42:39]json parsed OK: [11:42:39]protocol is kg_v1.0 [11:42:39]action value=close_receipt [11:42:39]process_action close_receipt [11:42:39]cmd_close_receipt [11:42:39]MH_GetDate [11:42:39]Write to MH i2c: F0 00 00 6E 13 70 [11:42:39]Write i2c OK [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: F0 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: F0 09 00 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: F0 09 00 6E 13 00 B0 B9 93 66 B6 85 93 66 0F [11:42:39]GetLastDocTimeStamp 1720956765 [11:42:39]current date 1720957360 [11:42:39]FM_GetShiftState [11:42:39]SAM_PROTO_GetShiftState [11:42:39]wFMCommunicate request_size=4 [11:42:39]MH_SAM_APDU [11:42:39]CAPDU: 80 13 01 00 [11:42:39]Write to MH i2c: E2 08 00 6F 13 80 13 01 00 00 00 00 00 FF [11:42:39]Write i2c OK [11:42:39]MH_I2C_Read... [11:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:40]Read from MH i2c: E2 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 0E 00 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 0E 00 6F 13 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 35 [11:42:40]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:42:40]wFMCommunicate OK [11:42:40]SAM_PROTO_GetShiftState done [11:42:40]FM_GetShiftState done [11:42:40]opened in 1720915483 [11:42:40]opened+sec_in_day 1721001883 [11:42:40]quantity*price = 100046 [11:42:40]sum+1 = 100048 [11:42:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 109 14.07.2024 11:42 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162797 ФПД: 156605621045155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114240&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162797&fm=156605621045155&tin=02508201610067®Number=0000000000090858&sum=100000 [11:42:41]StoreToDocumentArchive [11:42:41]shift 463 fd 162797 [11:42:41]save to /storage/0463/doc_00162797 [11:42:41]save last doc name /storage/0463/doc_00162797 to /storage/kkm_last_doc_name [11:42:41]save OK [11:42:41]Clear old archive folders... [11:42:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:41]tlvbuf is 012E9FC0 [11:42:41]SAM_PROTO_ClearQueue [11:42:41]wFMCommunicate request_size=4 [11:42:41]MH_SAM_APDU [11:42:41]CAPDU: 80 09 00 00 [11:42:41]Write to MH i2c: E2 08 00 7C 13 80 09 00 00 00 00 00 00 01 [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:41]Read from MH i2c: E2 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 03 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 03 00 7C 13 00 90 00 03 [11:42:41]RAPDU: 90 00 [11:42:41]wFMCommunicate OK [11:42:41]SAM_PROTO_ClearQueue done [11:42:41]KKMCreateOFDPacket [11:42:41]OFDProtocolAddRootSTLVToBuf [11:42:41]FM_MakeSignedData [11:42:41]FM_MakeSignedData [11:42:41]SAM_PROTO_SignData [11:42:41]wFMCommunicate request_size=4 [11:42:41]MH_SAM_APDU [11:42:41]CAPDU: 80 0D 01 02 [11:42:41]Write to MH i2c: E2 08 00 7D 13 80 0D 01 02 00 00 00 00 09 [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:41]Read from MH i2c: E2 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 03 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 03 00 7D 13 00 90 00 04 [11:42:41]RAPDU: 90 00 [11:42:41]wFMCommunicate OK [11:42:41]wFMCommunicate request_size=255 [11:42:41]MH_SAM_APDU [11:42:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B0 B9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 ED 7B 02 00 35 04 06 00 8E [11:42:41]Write to MH i2c: E2 02 01 7E 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B0 B9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 ED 7B 02 00 35 04 06 00 8E 00 00 AC [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:41]Read from MH i2c: E2 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 03 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 03 00 7E 13 00 90 00 05 [11:42:41]RAPDU: 90 00 [11:42:41]wFMCommunicate OK [11:42:41]wFMCommunicate request_size=10 [11:42:41]MH_SAM_APDU [11:42:41]CAPDU: 80 0D 02 02 05 6E 96 69 87 A3 [11:42:41]Write to MH i2c: E2 0D 00 7F 13 80 0D 02 02 05 00 6E 96 69 87 A3 00 00 AD [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:41]Read from MH i2c: E2 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 03 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 03 00 7F 13 00 90 00 06 [11:42:41]RAPDU: 90 00 [11:42:41]wFMCommunicate OK [11:42:41]wFMCommunicate request_size=4 [11:42:41]MH_SAM_APDU [11:42:41]CAPDU: 80 0D 03 02 [11:42:41]Write to MH i2c: E2 08 00 80 13 80 0D 03 02 00 00 00 00 0E [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:41]Read from MH i2c: E2 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 0B 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 0B 00 80 13 00 CF 22 16 73 6C F4 1A 16 90 00 19 [11:42:41]RAPDU: CF 22 16 73 6C F4 1A 16 90 00 [11:42:41]wFMCommunicate OK [11:42:41]SAM_PROTO_SignData done [11:42:41]FM_MakeSignedData done [11:42:41]CreateOFDProtocolMessage [11:42:41]wFMCommunicate request_size=4 [11:42:41]MH_SAM_APDU [11:42:41]CAPDU: 80 11 00 00 [11:42:41]Write to MH i2c: E2 08 00 81 13 80 11 00 00 00 00 00 00 0E [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:41]Read from MH i2c: E2 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 17 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 17 00 81 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6E [11:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:42:41]wFMCommunicate OK [11:42:41]CreateOFDProtocolMessage done [11:42:41]OFDSenderStorePacket 162797 [11:42:41]StoreOFDPacket docnum=162797 [11:42:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C6 71 07 01 18 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B0 B9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 ED 7B 02 00 35 04 06 00 8E 6E 96 69 87 A3 CF 22 16 73 6C F4 1A 16 [11:42:41]CheckFolder [11:42:41]dirname=/storage/ofd_packets [11:42:41]CheckFolder done [11:42:41]ProducePacketName [11:42:41]name=ofd_packets/00162797 [11:42:41]NVStorageSaveData ofd_packets/00162797 [11:42:41]File name is /storage/ofd_packets/00162797 [11:42:41]Write 301 bytes [11:42:41]NVStorageSaveData done [11:42:41]OFDSenderStorePacket done [11:42:41]KKMCreateOFDPacket done [11:42:41]NVStorageSaveData kkm_last_timestamp [11:42:41]File name is /storage/kkm_last_timestamp [11:42:41]Write 4 bytes [11:42:41]NVStorageSaveData done [11:42:41]ExternCall_PrintAddStr [11:42:41]wPrintStart [11:42:41]Write to MH i2c: 01 00 00 82 13 95 [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: 01 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: 01 07 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: 01 07 00 82 13 00 00 00 00 00 FF 0F AA [11:42:41]RasterBufferAndPrint [11:42:41]line Счет N : (1)1319393 [11:42:41]line ИНН: 02508201610067 [11:42:41]line Контрольно-Кассовый Чек [11:42:41]line ПРОДАЖА [11:42:41]line ТРК (МРК, ГНК) : 43 [11:42:41]line Товар: 2710124130 [11:42:41]line Аи-92-К-5 [11:42:41]line 15.090 * 66.30 [11:42:41]line = 1000.47 [11:42:41]line НДС 12% НСП 1% [11:42:41]line > о реализуемом товаре [11:42:41]line ОКРУГЛЕНИЕ: -0.47 [11:42:41]line ИТОГО: 1000.00 [11:42:41]line Внесено: 1000.00 [11:42:41]line СДАЧА: 0.00 [11:42:41]line НСП 1% : 8.85 [11:42:41]line НДС 12% : 106.24 [11:42:41]line Наличными: 1000.00 [11:42:41]line Безнал.: 0.00 [11:42:41]line Место: АЗС № 140 "Партнер Нефть" [11:42:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:42:41]line СНО: Общий режим [11:42:41]line Чек 109 14.07.2024 11:42 [11:42:41]line Смена: 463 ФФД: 1.0 [11:42:41]line ЗНМ: 0300000129 [11:42:41]line РНМ: 0000000000090858 [11:42:41]line Версия ККМ: 001 [11:42:41]line ФМ: 0000000000874899 [11:42:41]line ФД: 162797 [11:42:41]line ФПД: 156605621045155 [11:42:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114240&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162797&fm=156605621045155&tin=02508201610067®Number=0000000000090858&sum=100000 [11:42:42]OFD Sender: Processing packet 162797 [packets to send 106, broken 105] [11:42:42]ProducePacketName [11:42:42]name=ofd_packets/00162797 [11:42:42]OFD Sender: To server: pG, [11:42:42]CommunicateWithHost lk.salyk.kg:30040 [11:42:42]ConnectInit lk.salyk.kg [11:42:42]written 0, free lines is 4095 [11:42:42]Connected sock=10 [11:42:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C6 71 07 01 18 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B0 B9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 ED 7B 02 00 35 04 06 00 8E 6E 96 69 87 A3 CF 22 16 73 6C F4 1A 16 [11:42:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 09 D2 47 00 2F D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 ED 7B 02 00 F4 03 04 00 BE 65 93 66 B6 04 01 00 00 24 13 0E E8 6C C2 E2 87 [11:42:42]CommunicateWithHost err = 0 [11:42:42]CheckOFDResponse [11:42:42]1017 (14) - 77093643461234 [11:42:42]1041 (16) - 0000000000874899 [11:42:42]1040 (4) - 162797 [11:42:42]1012 (4) - 14.07.2024 05:44 [11:42:42]1206 (1) - 0 [11:42:42]OFD Sender: Remove packet 162797 [11:42:42]ProducePacketName [11:42:42]name=ofd_packets/00162797 [11:42:42]NVStorageDeleteData [11:42:42]Write to MH i2c: 01 00 00 AD 13 C0 [11:42:42]Write i2c OK [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: 01 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: 01 07 00 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: 01 07 00 AD 13 00 00 00 00 00 D3 0C A6 [11:42:42]RasterBufferAndPrint [11:42:42]line [11:42:42]line [11:42:42]line [11:42:42]line [11:42:42]line [11:42:42]written 0, free lines is 3289 [11:42:42]MH_Cut [11:42:42]Write to MH i2c: D1 01 00 B4 13 01 99 [11:42:42]Write i2c OK [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: D1 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: D1 01 00 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: D1 01 00 B4 13 00 98 [11:42:42]Write to MH i2c: 01 00 00 B5 13 C8 [11:42:42]Write i2c OK [11:42:42]MH_I2C_Read... [11:42:42]OFD Sender: No OFD packet to send [11:42:43]*** Cut start [11:42:43]*** Purtial cut [11:42:43]*** Stage 1: CUTSNS_PIN = 1 [11:42:43]Read from MH i2c: 01 [11:42:43]MH_I2C_Read... [11:42:43]*** Stop cut motor [11:42:43]*** Cut end [11:42:43]Read from MH i2c: 01 07 00 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: 01 07 00 B5 13 00 00 00 00 00 FF 0F DD [11:42:43]process_action close_receipt done [11:42:43]requested_data is exist [11:42:43]produce_requested_data [11:42:43]requested_item fm.sn is exist - process it [11:42:43]wFMCommunicate request_size=4 [11:42:43]MH_SAM_APDU [11:42:43]CAPDU: 80 11 00 00 [11:42:43]Write to MH i2c: E2 08 00 B6 13 80 11 00 00 00 00 00 00 43 [11:42:43]Write i2c OK [11:42:43]MH_I2C_Read... [11:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:43]Read from MH i2c: E2 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 17 00 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 17 00 B6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A3 [11:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:42:43]wFMCommunicate OK [11:42:43]requested_item fd.num is exist - process it [11:42:43]SAM_PROTO_GetFieldsCounters [11:42:43]wFMCommunicate request_size=4 [11:42:43]MH_SAM_APDU [11:42:43]CAPDU: 80 13 00 00 [11:42:43]Write to MH i2c: E2 08 00 B7 13 80 13 00 00 00 00 00 00 46 [11:42:43]Write i2c OK [11:42:43]MH_I2C_Read... [11:42:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:43]Read from MH i2c: E2 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 62 00 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 62 00 B7 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 ED 7B 02 00 0E 04 04 00 CF 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 FA [11:42:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 ED 7B 02 00 0E 04 04 00 CF 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 [11:42:43]wFMCommunicate OK [11:42:43]SAM_PROTO_GetFieldsCounters done [11:42:43]requested_item shift.num is exist - process it [11:42:43]requested_item shift.opened is exist - process it [11:42:43]req_shift_opened [11:42:43]FM_GetShiftState [11:42:43]SAM_PROTO_GetShiftState [11:42:43]wFMCommunicate request_size=4 [11:42:43]MH_SAM_APDU [11:42:43]CAPDU: 80 13 01 00 [11:42:43]Write to MH i2c: E2 08 00 B8 13 80 13 01 00 00 00 00 00 48 [11:42:43]Write i2c OK [11:42:43]MH_I2C_Read... [11:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:43]Read from MH i2c: E2 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 0E 00 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 0E 00 B8 13 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7E [11:42:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:42:43]wFMCommunicate OK [11:42:43]SAM_PROTO_GetShiftState done [11:42:43]FM_GetShiftState done [11:42:43]req_shift_opened done [11:42:43]requested_item shift.open_date is exist - process it [11:42:43]req_shift_open_date [11:42:43]req_shift_open_date done [11:42:43]produce_requested_data done [11:42:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162797,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:42:43]process_action_free close_receipt [11:42:43]json_value_free [11:42:43]json_value_free done [11:42:43]process_json_proto returns [11:42:43]Send response to host [11:42:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162797,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:42:43]free response buf [11:42:43]execute_script done [11:42:43]execute_script returns [11:42:43]free content buf [11:42:43]Sock 9.Close socket [11:42:43]Sock 9.Thread stoped [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: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:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45: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:26]accept exits with 7 [11:46:26]New connection [11:46:26]New thread 3066879332 created [11:46:26]Thread 3066735972 joined [11:46:26]Waiting for new connection... [11:46:26] Sock 7.Parse request [11:46:26]Sock 7.Check first char [11:46:26]Sock 7.First char is OK [11:46:26]request: POST /json_proto HTTP/1.0 [11:46:26]Method: POST [11:46:26]URL: /json_proto [11:46:26]Method is POST - this is cgi request [11:46:26]url: /json_proto [11:46:26]query_string will be loaded in cgi processing [11:46:26]execute_cgi json_proto POST (null) [11:46:26]execute_cgi path=json_proto method=POST [11:46:26]POST find Content-Length [11:46:26]Host: 172.17.39.67:8080 [11:46:26]Content-Length: 688 [11:46:26]Content-Type: application/json [11:46:26] [11:46:26]POST finish read [11:46:26]Found Content-Length = 688 [11:46:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 30.030, "sum" : 2180.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2180.00, "total" : 2180.00, "payments": [ { "type": 0, "sum" : 2180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:26]execute_script... [11:46: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)1319394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 30.030, "sum" : 2180.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2180.00, "total" : 2180.00, "payments": [ { "type": 0, "sum" : 2180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:26]POST & json_proto [11:46:26]process_json_proto [11:46:26]json parsed OK: [11:46:26]protocol is kg_v1.0 [11:46:26]action value=close_receipt [11:46:26]process_action close_receipt [11:46:26]cmd_close_receipt [11:46:26]MH_GetDate [11:46:26]Write to MH i2c: F0 00 00 B9 13 BB [11:46:26]Write i2c OK [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: F0 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: F0 09 00 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: F0 09 00 B9 13 00 93 BA 93 66 B6 85 93 66 3E [11:46:26]GetLastDocTimeStamp 1720957360 [11:46:26]current date 1720957587 [11:46:26]FM_GetShiftState [11:46:26]SAM_PROTO_GetShiftState [11:46:26]wFMCommunicate request_size=4 [11:46:26]MH_SAM_APDU [11:46:26]CAPDU: 80 13 01 00 [11:46:26]Write to MH i2c: E2 08 00 BA 13 80 13 01 00 00 00 00 00 4A [11:46:26]Write i2c OK [11:46:26]MH_I2C_Read... [11:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:27]Read from MH i2c: E2 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 0E 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 0E 00 BA 13 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 80 [11:46:27]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:46:27]wFMCommunicate OK [11:46:27]SAM_PROTO_GetShiftState done [11:46:27]FM_GetShiftState done [11:46:27]opened in 1720915483 [11:46:27]opened+sec_in_day 1721001883 [11:46:27]quantity*price = 218017 [11:46:27]sum+1 = 218019 [11:46:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 2180.00 Внесено: 2180.00 СДАЧА: 0.00 НСП 1% : 19.29 НДС 12% : 231.52 Наличными: 2180.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 110 14.07.2024 11:46 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162798 ФПД: 232884634279748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114627&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162798&fm=232884634279748&tin=02508201610067®Number=0000000000090858&sum=218000 [11:46:28]StoreToDocumentArchive [11:46:28]shift 463 fd 162798 [11:46:28]save to /storage/0463/doc_00162798 [11:46:28]save last doc name /storage/0463/doc_00162798 to /storage/kkm_last_doc_name [11:46:28]save OK [11:46:28]Clear old archive folders... [11:46:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:46:28]tlvbuf is B6F465A0 [11:46:28]SAM_PROTO_ClearQueue [11:46:28]wFMCommunicate request_size=4 [11:46:28]MH_SAM_APDU [11:46:28]CAPDU: 80 09 00 00 [11:46:28]Write to MH i2c: E2 08 00 C7 13 80 09 00 00 00 00 00 00 4C [11:46:28]Write i2c OK [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 [11:46:28]MH_I2C_Read... [11:46:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:28]Read from MH i2c: E2 03 00 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 03 00 C7 13 00 90 00 4E [11:46:28]RAPDU: 90 00 [11:46:28]wFMCommunicate OK [11:46:28]SAM_PROTO_ClearQueue done [11:46:28]KKMCreateOFDPacket [11:46:28]OFDProtocolAddRootSTLVToBuf [11:46:28]FM_MakeSignedData [11:46:28]FM_MakeSignedData [11:46:28]SAM_PROTO_SignData [11:46:28]wFMCommunicate request_size=4 [11:46:28]MH_SAM_APDU [11:46:28]CAPDU: 80 0D 01 02 [11:46:28]Write to MH i2c: E2 08 00 C8 13 80 0D 01 02 00 00 00 00 54 [11:46:28]Write i2c OK [11:46:28]MH_I2C_Read... [11:46:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:28]Read from MH i2c: E2 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 03 00 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 03 00 C8 13 00 90 00 4F [11:46:28]RAPDU: 90 00 [11:46:28]wFMCommunicate OK [11:46:28]wFMCommunicate request_size=255 [11:46:28]MH_SAM_APDU [11:46:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 75 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A2 53 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 53 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 5A 00 00 00 00 07 04 06 00 90 53 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 93 BA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EE 7B 02 00 35 04 06 00 [11:46:28]Write to MH i2c: E2 02 01 C9 13 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 75 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A2 53 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 53 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 5A 00 00 00 00 07 04 06 00 90 53 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 93 BA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EE 7B 02 00 35 04 06 00 00 00 F3 [11:46:28]Write i2c OK [11:46:28]MH_I2C_Read... [11:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:28]Read from MH i2c: E2 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 03 00 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 03 00 C9 13 00 90 00 50 [11:46:28]RAPDU: 90 00 [11:46:28]wFMCommunicate OK [11:46:28]wFMCommunicate request_size=11 [11:46:28]MH_SAM_APDU [11:46:28]CAPDU: 80 0D 02 02 06 D3 CE AD E6 5F 44 [11:46:28]Write to MH i2c: E2 0E 00 CA 13 80 0D 02 02 06 00 D3 CE AD E6 5F 44 00 00 3A [11:46:28]Write i2c OK [11:46:28]MH_I2C_Read... [11:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:28]Read from MH i2c: E2 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 03 00 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 03 00 CA 13 00 90 00 51 [11:46:28]RAPDU: 90 00 [11:46:28]wFMCommunicate OK [11:46:28]wFMCommunicate request_size=4 [11:46:28]MH_SAM_APDU [11:46:28]CAPDU: 80 0D 03 02 [11:46:28]Write to MH i2c: E2 08 00 CB 13 80 0D 03 02 00 00 00 00 59 [11:46:28]Write i2c OK [11:46:28]MH_I2C_Read... [11:46:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:28]Read from MH i2c: E2 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 0B 00 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 0B 00 CB 13 00 DD 67 CE FA 34 C1 5E BB 90 00 74 [11:46:28]RAPDU: DD 67 CE FA 34 C1 5E BB 90 00 [11:46:28]wFMCommunicate OK [11:46:28]SAM_PROTO_SignData done [11:46:28]FM_MakeSignedData done [11:46:28]CreateOFDProtocolMessage [11:46:28]wFMCommunicate request_size=4 [11:46:28]MH_SAM_APDU [11:46:28]CAPDU: 80 11 00 00 [11:46:28]Write to MH i2c: E2 08 00 CC 13 80 11 00 00 00 00 00 00 59 [11:46:28]Write i2c OK [11:46:28]MH_I2C_Read... [11:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:28]Read from MH i2c: E2 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 17 00 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 17 00 CC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B9 [11:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:46:28]wFMCommunicate OK [11:46:28]CreateOFDProtocolMessage done [11:46:28]OFDSenderStorePacket 162798 [11:46:28]StoreOFDPacket docnum=162798 [11:46:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 85 81 08 01 FC CF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 75 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A2 53 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 53 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 5A 00 00 00 00 07 04 06 00 90 53 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 93 BA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EE 7B 02 00 35 04 06 00 D3 CE AD E6 5F 44 DD 67 CE FA 34 C1 5E BB [11:46:28]CheckFolder [11:46:28]dirname=/storage/ofd_packets [11:46:28]CheckFolder done [11:46:28]ProducePacketName [11:46:28]name=ofd_packets/00162798 [11:46:28]NVStorageSaveData ofd_packets/00162798 [11:46:28]File name is /storage/ofd_packets/00162798 [11:46:28]Write 302 bytes [11:46:28]NVStorageSaveData done [11:46:28]OFDSenderStorePacket done [11:46:28]KKMCreateOFDPacket done [11:46:28]NVStorageSaveData kkm_last_timestamp [11:46:28]File name is /storage/kkm_last_timestamp [11:46:28]Write 4 bytes [11:46:28]NVStorageSaveData done [11:46:28]ExternCall_PrintAddStr [11:46:28]wPrintStart [11:46:28]Write to MH i2c: 01 00 00 CD 13 E0 [11:46:28]Write i2c OK [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: 01 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: 01 07 00 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: 01 07 00 CD 13 00 00 00 00 00 FF 0F F5 [11:46:28]RasterBufferAndPrint [11:46:28]line Счет N : (1)1319394 [11:46:28]line ИНН: 02508201610067 [11:46:28]line Контрольно-Кассовый Чек [11:46:28]line ПРОДАЖА [11:46:28]line ТРК (МРК, ГНК) : 31 [11:46:28]line Товар: 2710194210 [11:46:28]line ДТ(л)-К-5 [11:46:28]line 30.030 * 72.60 [11:46:28]line = 2180.18 [11:46:28]line НДС 12% НСП 1% [11:46:28]line > о реализуемом товаре [11:46:28]line ОКРУГЛЕНИЕ: -0.18 [11:46:28]line ИТОГО: 2180.00 [11:46:28]line Внесено: 2180.00 [11:46:28]line СДАЧА: 0.00 [11:46:28]line НСП 1% : 19.29 [11:46:28]line НДС 12% : 231.52 [11:46:28]line Наличными: 2180.00 [11:46:28]line Безнал.: 0.00 [11:46:28]line Место: АЗС № 140 "Партнер Нефть" [11:46:28]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:46:28]line СНО: Общий режим [11:46:28]line Чек 110 14.07.2024 11:46 [11:46:28]line Смена: 463 ФФД: 1.0 [11:46:28]line ЗНМ: 0300000129 [11:46:28]line РНМ: 0000000000090858 [11:46:28]line Версия ККМ: 001 [11:46:28]line ФМ: 0000000000874899 [11:46:28]line ФД: 162798 [11:46:28]line ФПД: 232884634279748 [11:46:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114627&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162798&fm=232884634279748&tin=02508201610067®Number=0000000000090858&sum=218000 [11:46:29]OFD Sender: Processing packet 162798 [packets to send 106, broken 105] [11:46:29]ProducePacketName [11:46:29]name=ofd_packets/00162798 [11:46:29]OFD Sender: To server: pG, [11:46:29]CommunicateWithHost lk.salyk.kg:30040 [11:46:29]ConnectInit lk.salyk.kg [11:46:29]written 0, free lines is 4095 [11:46:29]Connected sock=10 [11:46:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 85 81 08 01 FC CF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 75 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A2 53 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 53 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 5A 00 00 00 00 07 04 06 00 90 53 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 93 BA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EE 7B 02 00 35 04 06 00 D3 CE AD E6 5F 44 DD 67 CE FA 34 C1 5E BB [11:46:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D8 48 47 00 14 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EE 7B 02 00 F4 03 04 00 A1 66 93 66 B6 04 01 00 00 9A 4C E6 7B DD CE B3 EE [11:46:29]CommunicateWithHost err = 0 [11:46:29]CheckOFDResponse [11:46:29]1017 (14) - 77093643461234 [11:46:29]1041 (16) - 0000000000874899 [11:46:29]1040 (4) - 162798 [11:46:29]1012 (4) - 14.07.2024 05:48 [11:46:29]1206 (1) - 0 [11:46:29]OFD Sender: Remove packet 162798 [11:46:29]ProducePacketName [11:46:29]name=ofd_packets/00162798 [11:46:29]NVStorageDeleteData [11:46:29]Write to MH i2c: 01 00 00 F8 13 0B [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: 01 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: 01 07 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: 01 07 00 F8 13 00 00 00 00 00 DD 0C FB [11:46:29]RasterBufferAndPrint [11:46:29]line [11:46:29]line [11:46:29]line [11:46:29]line [11:46:29]line [11:46:29]written 0, free lines is 3299 [11:46:29]MH_Cut [11:46:29]Write to MH i2c: D1 01 00 FF 13 01 E4 [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: D1 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: D1 01 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: D1 01 00 FF 13 00 E3 [11:46:29]Write to MH i2c: 01 00 00 00 14 14 [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]OFD Sender: No OFD packet to send [11:46:30]*** Cut start [11:46:30]*** Purtial cut [11:46:30]*** CUTSNS_PIN = 0 [11:46:30]*** Stage 1: CUTSNS_PIN = 1 [11:46:32]Read from MH i2c: 01 [11:46:32]MH_I2C_Read... [11:46:32]*** Stop cut motor [11:46:32]*** Cut end [11:46:32]Read from MH i2c: 01 07 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: 01 07 00 00 14 00 00 00 00 00 FF 0F 29 [11:46:32]process_action close_receipt done [11:46:32]requested_data is exist [11:46:32]produce_requested_data [11:46:32]requested_item fm.sn is exist - process it [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 11 00 00 [11:46:32]Write to MH i2c: E2 08 00 01 14 80 11 00 00 00 00 00 00 8F [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 17 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 17 00 01 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EF [11:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:46:32]wFMCommunicate OK [11:46:32]requested_item fd.num is exist - process it [11:46:32]SAM_PROTO_GetFieldsCounters [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 13 00 00 [11:46:32]Write to MH i2c: E2 08 00 02 14 80 13 00 00 00 00 00 00 92 [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 62 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 62 00 02 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EE 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [11:46:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EE 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:32]wFMCommunicate OK [11:46:32]SAM_PROTO_GetFieldsCounters done [11:46:32]requested_item shift.num is exist - process it [11:46:32]requested_item shift.opened is exist - process it [11:46:32]req_shift_opened [11:46:32]FM_GetShiftState [11:46:32]SAM_PROTO_GetShiftState [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 13 01 00 [11:46:32]Write to MH i2c: E2 08 00 03 14 80 13 01 00 00 00 00 00 94 [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 0E 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 0E 00 03 14 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 CA [11:46:32]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:46:32]wFMCommunicate OK [11:46:32]SAM_PROTO_GetShiftState done [11:46:32]FM_GetShiftState done [11:46:32]req_shift_opened done [11:46:32]requested_item shift.open_date is exist - process it [11:46:32]req_shift_open_date [11:46:32]req_shift_open_date done [11:46:32]produce_requested_data done [11:46:32]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162798,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:46:32]process_action_free close_receipt [11:46:32]json_value_free [11:46:32]json_value_free done [11:46:32]process_json_proto returns [11:46:32]Send response to host [11:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162798,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:46:32]free response buf [11:46:32]execute_script done [11:46:32]execute_script returns [11:46:32]free content buf [11:46:32]Sock 7.Close socket [11:46:32]Sock 7.Thread stoped [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:12]accept exits with 9 [11:49:12]New connection [11:49:12]New thread 3066735972 created [11:49:12]Thread 3066879332 joined [11:49:12]Waiting for new connection... [11:49:12] Sock 9.Parse request [11:49:12]Sock 9.Check first char [11:49:12]Sock 9.First char is OK [11:49:12]request: POST /json_proto HTTP/1.0 [11:49:12]Method: POST [11:49:12]URL: /json_proto [11:49:12]Method is POST - this is cgi request [11:49:12]url: /json_proto [11:49:12]query_string will be loaded in cgi processing [11:49:12]execute_cgi json_proto POST (null) [11:49:12]execute_cgi path=json_proto method=POST [11:49:12]POST find Content-Length [11:49:12]Host: 172.17.39.67:8080 [11:49:12]Content-Length: 679 [11:49:12]Content-Type: application/json [11:49:12] [11:49:12]POST finish read [11:49:12]Found Content-Length = 679 [11:49:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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" ] } } [11:49:12]execute_script... [11:49: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)1319395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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" ] } } [11:49:12]POST & json_proto [11:49:12]process_json_proto [11:49:12]json parsed OK: [11:49:12]protocol is kg_v1.0 [11:49:12]action value=close_receipt [11:49:12]process_action close_receipt [11:49:12]cmd_close_receipt [11:49:12]MH_GetDate [11:49:12]Write to MH i2c: F0 00 00 04 14 07 [11:49:12]Write i2c OK [11:49:12]MH_I2C_Read... [11:49:12]Read from MH i2c: F0 [11:49:12]MH_I2C_Read... [11:49:12]Read from MH i2c: F0 09 00 [11:49:12]MH_I2C_Read... [11:49:12]Read from MH i2c: F0 09 00 04 14 00 39 BB 93 66 B6 85 93 66 31 [11:49:12]GetLastDocTimeStamp 1720957587 [11:49:12]current date 1720957753 [11:49:12]FM_GetShiftState [11:49:12]SAM_PROTO_GetShiftState [11:49:12]wFMCommunicate request_size=4 [11:49:12]MH_SAM_APDU [11:49:12]CAPDU: 80 13 01 00 [11:49:12]Write to MH i2c: E2 08 00 05 14 80 13 01 00 00 00 00 00 96 [11:49:12]Write i2c OK [11:49:12]MH_I2C_Read... [11:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:12]Read from MH i2c: E2 [11:49:12]MH_I2C_Read... [11:49:12]Read from MH i2c: E2 0E 00 [11:49:12]MH_I2C_Read... [11:49:12]Read from MH i2c: E2 0E 00 05 14 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 CC [11:49:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:49:12]wFMCommunicate OK [11:49:12]SAM_PROTO_GetShiftState done [11:49:12]FM_GetShiftState done [11:49:12]opened in 1720915483 [11:49:12]opened+sec_in_day 1721001883 [11:49:12]quantity*price = 70012 [11:49:12]sum+1 = 70014 [11:49:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 111 14.07.2024 11:49 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162799 ФПД: 217046910365522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114913&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162799&fm=217046910365522&tin=02508201610067®Number=0000000000090858&sum=70000 [11:49:13]StoreToDocumentArchive [11:49:13]shift 463 fd 162799 [11:49:13]save to /storage/0463/doc_00162799 [11:49:13]save last doc name /storage/0463/doc_00162799 to /storage/kkm_last_doc_name [11:49:13]save OK [11:49:13]Clear old archive folders... [11:49:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:13]tlvbuf is B6E968D0 [11:49:13]SAM_PROTO_ClearQueue [11:49:13]wFMCommunicate request_size=4 [11:49:13]MH_SAM_APDU [11:49:13]CAPDU: 80 09 00 00 [11:49:13]Write to MH i2c: E2 08 00 12 14 80 09 00 00 00 00 00 00 98 [11:49:13]Write i2c OK [11:49:13]MH_I2C_Read... [11:49:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:13]Read from MH i2c: E2 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 03 00 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 03 00 12 14 00 90 00 9A [11:49:13]RAPDU: 90 00 [11:49:13]wFMCommunicate OK [11:49:13]SAM_PROTO_ClearQueue done [11:49:13]KKMCreateOFDPacket [11:49:13]OFDProtocolAddRootSTLVToBuf [11:49:13]FM_MakeSignedData [11:49:13]FM_MakeSignedData [11:49:13]SAM_PROTO_SignData [11:49:13]wFMCommunicate request_size=4 [11:49:13]MH_SAM_APDU [11:49:13]CAPDU: 80 0D 01 02 [11:49:13]Write to MH i2c: E2 08 00 13 14 80 0D 01 02 00 00 00 00 A0 [11:49:13]Write i2c OK [11:49:13]MH_I2C_Read... [11:49:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:13]Read from MH i2c: E2 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 03 00 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 03 00 13 14 00 90 00 9B [11:49:13]RAPDU: 90 00 [11:49:13]wFMCommunicate OK [11:49:13]wFMCommunicate request_size=255 [11:49:13]MH_SAM_APDU [11:49:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 39 BB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EF 7B 02 00 35 04 06 00 C5 [11:49:13]Write to MH i2c: E2 02 01 14 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 39 BB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EF 7B 02 00 35 04 06 00 C5 00 00 AA [11:49:13]Write i2c OK [11:49:13]MH_I2C_Read... [11:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:13]Read from MH i2c: E2 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 03 00 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 03 00 14 14 00 90 00 9C [11:49:13]RAPDU: 90 00 [11:49:13]wFMCommunicate OK [11:49:13]wFMCommunicate request_size=10 [11:49:13]MH_SAM_APDU [11:49:13]CAPDU: 80 0D 02 02 05 67 2B FD EF 52 [11:49:13]Write to MH i2c: E2 0D 00 15 14 80 0D 02 02 05 00 67 2B FD EF 52 00 00 7D [11:49:13]Write i2c OK [11:49:13]MH_I2C_Read... [11:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:13]Read from MH i2c: E2 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 03 00 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 03 00 15 14 00 90 00 9D [11:49:13]RAPDU: 90 00 [11:49:13]wFMCommunicate OK [11:49:13]wFMCommunicate request_size=4 [11:49:13]MH_SAM_APDU [11:49:13]CAPDU: 80 0D 03 02 [11:49:13]Write to MH i2c: E2 08 00 16 14 80 0D 03 02 00 00 00 00 A5 [11:49:13]Write i2c OK [11:49:13]MH_I2C_Read... [11:49:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:13]Read from MH i2c: E2 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 0B 00 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 0B 00 16 14 00 AC A3 F5 6C 1E D0 B5 AA 90 00 A3 [11:49:13]RAPDU: AC A3 F5 6C 1E D0 B5 AA 90 00 [11:49:13]wFMCommunicate OK [11:49:13]SAM_PROTO_SignData done [11:49:13]FM_MakeSignedData done [11:49:13]CreateOFDProtocolMessage [11:49:13]wFMCommunicate request_size=4 [11:49:13]MH_SAM_APDU [11:49:13]CAPDU: 80 11 00 00 [11:49:13]Write to MH i2c: E2 08 00 17 14 80 11 00 00 00 00 00 00 A5 [11:49:13]Write i2c OK [11:49:13]MH_I2C_Read... [11:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:13]Read from MH i2c: E2 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 17 00 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 17 00 17 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 05 [11:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:49:13]wFMCommunicate OK [11:49:13]CreateOFDProtocolMessage done [11:49:13]OFDSenderStorePacket 162799 [11:49:13]StoreOFDPacket docnum=162799 [11:49:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 1A 91 07 01 9F D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 39 BB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EF 7B 02 00 35 04 06 00 C5 67 2B FD EF 52 AC A3 F5 6C 1E D0 B5 AA [11:49:13]CheckFolder [11:49:13]dirname=/storage/ofd_packets [11:49:13]CheckFolder done [11:49:13]ProducePacketName [11:49:13]name=ofd_packets/00162799 [11:49:13]NVStorageSaveData ofd_packets/00162799 [11:49:13]File name is /storage/ofd_packets/00162799 [11:49:13]Write 301 bytes [11:49:13]NVStorageSaveData done [11:49:13]OFDSenderStorePacket done [11:49:13]KKMCreateOFDPacket done [11:49:13]NVStorageSaveData kkm_last_timestamp [11:49:13]File name is /storage/kkm_last_timestamp [11:49:13]Write 4 bytes [11:49:13]NVStorageSaveData done [11:49:13]ExternCall_PrintAddStr [11:49:13]wPrintStart [11:49:13]Write to MH i2c: 01 00 00 18 14 2C [11:49:13]Write i2c OK [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: 01 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: 01 07 00 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: 01 07 00 18 14 00 00 00 00 00 FF 0F 41 [11:49:13]RasterBufferAndPrint [11:49:13]line Счет N : (1)1319395 [11:49:13]line ИНН: 02508201610067 [11:49:13]line Контрольно-Кассовый Чек [11:49:13]line ПРОДАЖА [11:49:13]line ТРК (МРК, ГНК) : 33 [11:49:13]line Товар: 2710124130 [11:49:13]line Аи-92-К-5 [11:49:13]line 10.560 * 66.30 [11:49:13]line = 700.13 [11:49:13]line НДС 12% НСП 1% [11:49:13]line > о реализуемом товаре [11:49:13]line ОКРУГЛЕНИЕ: -0.13 [11:49:13]line ИТОГО: 700.00 [11:49:13]line Внесено: 700.00 [11:49:13]line СДАЧА: 0.00 [11:49:13]line НСП 1% : 6.20 [11:49:13]line НДС 12% : 74.35 [11:49:13]line Наличными: 700.00 [11:49:13]line Безнал.: 0.00 [11:49:13]line Место: АЗС № 140 "Партнер Нефть" [11:49:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:49:13]line СНО: Общий режим [11:49:13]line Чек 111 14.07.2024 11:49 [11:49:13]line Смена: 463 ФФД: 1.0 [11:49:13]line ЗНМ: 0300000129 [11:49:13]line РНМ: 0000000000090858 [11:49:13]line Версия ККМ: 001 [11:49:13]line ФМ: 0000000000874899 [11:49:13]line ФД: 162799 [11:49:13]line ФПД: 217046910365522 [11:49:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114913&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162799&fm=217046910365522&tin=02508201610067®Number=0000000000090858&sum=70000 [11:49:14]OFD Sender: Processing packet 162799 [packets to send 106, broken 105] [11:49:14]ProducePacketName [11:49:14]name=ofd_packets/00162799 [11:49:14]OFD Sender: To server: pG, [11:49:14]CommunicateWithHost lk.salyk.kg:30040 [11:49:14]ConnectInit lk.salyk.kg [11:49:14]written 0, free lines is 4095 [11:49:14]Connected sock=10 [11: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 34 38 39 39 0F 01 00 00 1A 91 07 01 9F D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 39 BB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EF 7B 02 00 35 04 06 00 C5 67 2B FD EF 52 AC A3 F5 6C 1E D0 B5 AA [11:49:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BA 57 47 00 E3 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EF 7B 02 00 F4 03 04 00 46 67 93 66 B6 04 01 00 00 21 17 A9 96 52 DC 5C 76 [11:49:14]CommunicateWithHost err = 0 [11:49:14]CheckOFDResponse [11:49:14]1017 (14) - 77093643461234 [11:49:14]1041 (16) - 0000000000874899 [11:49:14]1040 (4) - 162799 [11:49:14]1012 (4) - 14.07.2024 05:51 [11:49:14]1206 (1) - 0 [11:49:14]OFD Sender: Remove packet 162799 [11:49:14]ProducePacketName [11:49:14]name=ofd_packets/00162799 [11:49:14]NVStorageDeleteData [11:49:14]Write to MH i2c: 01 00 00 43 14 57 [11:49:14]Write i2c OK [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: 01 [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: 01 07 00 [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: 01 07 00 43 14 00 00 00 00 00 D4 0C 3E [11:49:14]RasterBufferAndPrint [11:49:14]line [11:49:14]line [11:49:14]line [11:49:14]line [11:49:14]line [11:49:14]written 0, free lines is 3290 [11:49:14]MH_Cut [11:49:14]Write to MH i2c: D1 01 00 4A 14 01 30 [11:49:14]Write i2c OK [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: D1 [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: D1 01 00 [11:49:14]MH_I2C_Read... [11:49:14]Read from MH i2c: D1 01 00 4A 14 00 2F [11:49:14]Write to MH i2c: 01 00 00 4B 14 5F [11:49:14]Write i2c OK [11:49:14]MH_I2C_Read... [11:49:15]OFD Sender: No OFD packet to send [11:49:15]*** Cut start [11:49:15]*** Purtial cut [11:49:15]*** Stage 1: CUTSNS_PIN = 1 [11:49:15]Read from MH i2c: 01 [11:49:15]MH_I2C_Read... [11:49:15]*** Stop cut motor [11:49:15]*** Cut end [11:49:15]Read from MH i2c: 01 07 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: 01 07 00 4B 14 00 00 00 00 00 FF 0F 74 [11:49:15]process_action close_receipt done [11:49:15]requested_data is exist [11:49:15]produce_requested_data [11:49:15]requested_item fm.sn is exist - process it [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 11 00 00 [11:49:15]Write to MH i2c: E2 08 00 4C 14 80 11 00 00 00 00 00 00 DA [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 17 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 17 00 4C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3A [11:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:49:15]wFMCommunicate OK [11:49:15]requested_item fd.num is exist - process it [11:49:15]SAM_PROTO_GetFieldsCounters [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 13 00 00 [11:49:15]Write to MH i2c: E2 08 00 4D 14 80 13 00 00 00 00 00 00 DD [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 62 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 62 00 4D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EF 7B 02 00 0E 04 04 00 CF 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 99 [11:49:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EF 7B 02 00 0E 04 04 00 CF 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 [11:49:15]wFMCommunicate OK [11:49:15]SAM_PROTO_GetFieldsCounters done [11:49:15]requested_item shift.num is exist - process it [11:49:15]requested_item shift.opened is exist - process it [11:49:15]req_shift_opened [11:49:15]FM_GetShiftState [11:49:15]SAM_PROTO_GetShiftState [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 13 01 00 [11:49:15]Write to MH i2c: E2 08 00 4E 14 80 13 01 00 00 00 00 00 DF [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0E 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0E 00 4E 14 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 15 [11:49:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:49:15]wFMCommunicate OK [11:49:15]SAM_PROTO_GetShiftState done [11:49:15]FM_GetShiftState done [11:49:15]req_shift_opened done [11:49:15]requested_item shift.open_date is exist - process it [11:49:15]req_shift_open_date [11:49:15]req_shift_open_date done [11:49:15]produce_requested_data done [11:49:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162799,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:49:15]process_action_free close_receipt [11:49:15]json_value_free [11:49:15]json_value_free done [11:49:15]process_json_proto returns [11:49:15]Send response to host [11:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162799,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:49:15]free response buf [11:49:15]execute_script done [11:49:15]execute_script returns [11:49:15]free content buf [11:49:15]Sock 9.Close socket [11:49:15]Sock 9.Thread stoped [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:49:56]accept exits with 7 [11:49:56]New connection [11:49:56]New thread 3066879332 created [11:49:56]Thread 3066735972 joined [11:49:56]Waiting for new connection... [11:49:56] Sock 7.Parse request [11:49:56]Sock 7.Check first char [11:49:56]Sock 7.First char is OK [11:49:56]request: POST /json_proto HTTP/1.0 [11:49:56]Method: POST [11:49:56]URL: /json_proto [11:49:56]Method is POST - this is cgi request [11:49:56]url: /json_proto [11:49:56]query_string will be loaded in cgi processing [11:49:56]execute_cgi json_proto POST (null) [11:49:56]execute_cgi path=json_proto method=POST [11:49:56]POST find Content-Length [11:49:56]Host: 172.17.39.67:8080 [11:49:56]Content-Length: 678 [11:49:56]Content-Type: application/json [11:49:56] [11:49:56]POST finish read [11:49:56]Found Content-Length = 678 [11:49:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.810, "sum" : 650.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:56]execute_script... [11:49: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)1319396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.810, "sum" : 650.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:56]POST & json_proto [11:49:56]process_json_proto [11:49:56]json parsed OK: [11:49:56]protocol is kg_v1.0 [11:49:56]action value=close_receipt [11:49:56]process_action close_receipt [11:49:56]cmd_close_receipt [11:49:56]MH_GetDate [11:49:56]Write to MH i2c: F0 00 00 4F 14 52 [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: F0 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: F0 09 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: F0 09 00 4F 14 00 65 BB 93 66 B6 85 93 66 A8 [11:49:56]GetLastDocTimeStamp 1720957753 [11:49:56]current date 1720957797 [11:49:56]FM_GetShiftState [11:49:56]SAM_PROTO_GetShiftState [11:49:56]wFMCommunicate request_size=4 [11:49:56]MH_SAM_APDU [11:49:56]CAPDU: 80 13 01 00 [11:49:56]Write to MH i2c: E2 08 00 50 14 80 13 01 00 00 00 00 00 E1 [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:56]Read from MH i2c: E2 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 0E 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 0E 00 50 14 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 17 [11:49:56]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:49:56]wFMCommunicate OK [11:49:56]SAM_PROTO_GetShiftState done [11:49:56]FM_GetShiftState done [11:49:56]opened in 1720915483 [11:49:56]opened+sec_in_day 1721001883 [11:49:56]quantity*price = 65040 [11:49:56]sum+1 = 65041 [11:49:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 112 14.07.2024 11:49 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162800 ФПД: 174159275980663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114957&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162800&fm=174159275980663&tin=02508201610067®Number=0000000000090858&sum=65000 [11:49:57]StoreToDocumentArchive [11:49:57]shift 463 fd 162800 [11:49:57]save to /storage/0463/doc_00162800 [11:49:57]save last doc name /storage/0463/doc_00162800 to /storage/kkm_last_doc_name [11:49:57]save OK [11:49:57]Clear old archive folders... [11:49:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:57]tlvbuf is 013434C0 [11:49:57]SAM_PROTO_ClearQueue [11:49:57]wFMCommunicate request_size=4 [11:49:57]MH_SAM_APDU [11:49:57]CAPDU: 80 09 00 00 [11:49:57]Write to MH i2c: E2 08 00 5D 14 80 09 00 00 00 00 00 00 E3 [11:49:57]Write i2c OK [11:49:57]MH_I2C_Read... [11:49:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:57]Read from MH i2c: E2 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: E2 03 00 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: E2 03 00 5D 14 00 90 00 E5 [11:49:57]RAPDU: 90 00 [11:49:57]wFMCommunicate OK [11:49:57]SAM_PROTO_ClearQueue done [11:49:57]KKMCreateOFDPacket [11:49:57]OFDProtocolAddRootSTLVToBuf [11:49:57]FM_MakeSignedData [11:49:57]FM_MakeSignedData [11:49:57]SAM_PROTO_SignData [11:49:57]wFMCommunicate request_size=4 [11:49:57]MH_SAM_APDU [11:49:57]CAPDU: 80 0D 01 02 [11:49:57]Write to MH i2c: E2 08 00 5E 14 80 0D 01 02 00 00 00 00 EB [11:49:57]Write i2c OK [11:49:57]MH_I2C_Read... [11:49:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:57]Read from MH i2c: E2 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: E2 03 00 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: E2 03 00 5E 14 00 90 00 E6 [11:49:57]RAPDU: 90 00 [11:49:57]wFMCommunicate OK [11:49:57]wFMCommunicate request_size=255 [11:49:57]MH_SAM_APDU [11:49: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 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 65 BB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F0 7B 02 00 35 04 06 00 9E [11:49:57]Write to MH i2c: E2 02 01 5F 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 65 BB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F0 7B 02 00 35 04 06 00 9E 00 00 11 [11:49:57]Write i2c OK [11:49:57]MH_I2C_Read... [11:49:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:58]Read from MH i2c: E2 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 03 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 03 00 5F 14 00 90 00 E7 [11:49:58]RAPDU: 90 00 [11:49:58]wFMCommunicate OK [11:49:58]wFMCommunicate request_size=10 [11:49:58]MH_SAM_APDU [11:49:58]CAPDU: 80 0D 02 02 05 65 9D C7 77 77 [11:49:58]Write to MH i2c: E2 0D 00 60 14 80 0D 02 02 05 00 65 9D C7 77 77 00 00 AF [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:58]Read from MH i2c: E2 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 03 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 03 00 60 14 00 90 00 E8 [11:49:58]RAPDU: 90 00 [11:49:58]wFMCommunicate OK [11:49:58]wFMCommunicate request_size=4 [11:49:58]MH_SAM_APDU [11:49:58]CAPDU: 80 0D 03 02 [11:49:58]Write to MH i2c: E2 08 00 61 14 80 0D 03 02 00 00 00 00 F0 [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:58]Read from MH i2c: E2 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 0B 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 0B 00 61 14 00 9D AE 86 B3 8A 14 7F 6C 90 00 FE [11:49:58]RAPDU: 9D AE 86 B3 8A 14 7F 6C 90 00 [11:49:58]wFMCommunicate OK [11:49:58]SAM_PROTO_SignData done [11:49:58]FM_MakeSignedData done [11:49:58]CreateOFDProtocolMessage [11:49:58]wFMCommunicate request_size=4 [11:49:58]MH_SAM_APDU [11:49:58]CAPDU: 80 11 00 00 [11:49:58]Write to MH i2c: E2 08 00 62 14 80 11 00 00 00 00 00 00 F0 [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:58]Read from MH i2c: E2 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 17 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 17 00 62 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 50 [11:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:49:58]wFMCommunicate OK [11:49:58]CreateOFDProtocolMessage done [11:49:58]OFDSenderStorePacket 162800 [11:49:58]StoreOFDPacket docnum=162800 [11:49:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 28 2D 07 01 68 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 65 BB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F0 7B 02 00 35 04 06 00 9E 65 9D C7 77 77 9D AE 86 B3 8A 14 7F 6C [11:49:58]CheckFolder [11:49:58]dirname=/storage/ofd_packets [11:49:58]CheckFolder done [11:49:58]ProducePacketName [11:49:58]name=ofd_packets/00162800 [11:49:58]NVStorageSaveData ofd_packets/00162800 [11:49:58]File name is /storage/ofd_packets/00162800 [11:49:58]Write 301 bytes [11:49:58]NVStorageSaveData done [11:49:58]OFDSenderStorePacket done [11:49:58]KKMCreateOFDPacket done [11:49:58]NVStorageSaveData kkm_last_timestamp [11:49:58]File name is /storage/kkm_last_timestamp [11:49:58]Write 4 bytes [11:49:58]NVStorageSaveData done [11:49:58]ExternCall_PrintAddStr [11:49:58]wPrintStart [11:49:58]Write to MH i2c: 01 00 00 63 14 77 [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: 01 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: 01 07 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: 01 07 00 63 14 00 00 00 00 00 FF 0F 8C [11:49:58]RasterBufferAndPrint [11:49:58]line Счет N : (1)1319396 [11:49:58]line ИНН: 02508201610067 [11:49:58]line Контрольно-Кассовый Чек [11:49:58]line ПРОДАЖА [11:49:58]line ТРК (МРК, ГНК) : 43 [11:49:58]line Товар: 2710124130 [11:49:58]line Аи-92-К-5 [11:49:58]line 9.810 * 66.30 [11:49:58]line = 650.40 [11:49:58]line НДС 12% НСП 1% [11:49:58]line > о реализуемом товаре [11:49:58]line ОКРУГЛЕНИЕ: -0.40 [11:49:58]line ИТОГО: 650.00 [11:49:58]line Внесено: 650.00 [11:49:58]line СДАЧА: 0.00 [11:49:58]line НСП 1% : 5.76 [11:49:58]line НДС 12% : 69.07 [11:49:58]line Наличными: 650.00 [11:49:58]line Безнал.: 0.00 [11:49:58]line Место: АЗС № 140 "Партнер Нефть" [11:49:58]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:49:58]line СНО: Общий режим [11:49:58]line Чек 112 14.07.2024 11:49 [11:49:58]line Смена: 463 ФФД: 1.0 [11:49:58]line ЗНМ: 0300000129 [11:49:58]line РНМ: 0000000000090858 [11:49:58]line Версия ККМ: 001 [11:49:58]line ФМ: 0000000000874899 [11:49:58]line ФД: 162800 [11:49:58]line ФПД: 174159275980663 [11:49:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T114957&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162800&fm=174159275980663&tin=02508201610067®Number=0000000000090858&sum=65000 [11:49:58]OFD Sender: Processing packet 162800 [packets to send 106, broken 105] [11:49:58]ProducePacketName [11:49:58]name=ofd_packets/00162800 [11:49:58]OFD Sender: To server: pG, [11:49:58]CommunicateWithHost lk.salyk.kg:30040 [11:49:58]ConnectInit lk.salyk.kg [11:49:58]written 0, free lines is 4095 [11:49:58]Connected sock=10 [11:49:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 28 2D 07 01 68 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 65 BB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F0 7B 02 00 35 04 06 00 9E 65 9D C7 77 77 9D AE 86 B3 8A 14 7F 6C [11:49:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 58 29 47 00 D3 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F0 7B 02 00 F4 03 04 00 73 67 93 66 B6 04 01 00 00 3E 8F A1 5A 9D 6B C8 AB [11:49:58]CommunicateWithHost err = 0 [11:49:58]CheckOFDResponse [11:49:58]1017 (14) - 77093643461234 [11:49:58]1041 (16) - 0000000000874899 [11:49:58]1040 (4) - 162800 [11:49:58]1012 (4) - 14.07.2024 05:51 [11:49:58]1206 (1) - 0 [11:49:58]OFD Sender: Remove packet 162800 [11:49:58]ProducePacketName [11:49:58]name=ofd_packets/00162800 [11:49:58]NVStorageDeleteData [11:49:59]Write to MH i2c: 01 00 00 8E 14 A2 [11:49:59]Write i2c OK [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: 01 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: 01 07 00 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: 01 07 00 8E 14 00 00 00 00 00 DA 0C 8F [11:49:59]RasterBufferAndPrint [11:49:59]line [11:49:59]line [11:49:59]line [11:49:59]line [11:49:59]line [11:49:59]written 0, free lines is 3296 [11:49:59]MH_Cut [11:49:59]Write to MH i2c: D1 01 00 95 14 01 7B [11:49:59]Write i2c OK [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: D1 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: D1 01 00 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: D1 01 00 95 14 00 7A [11:49:59]Write to MH i2c: 01 00 00 96 14 AA [11:49:59]Write i2c OK [11:49:59]MH_I2C_Read... [11:49:59]OFD Sender: No OFD packet to send [11:49:59]*** Cut start [11:49:59]*** Purtial cut [11:49:59]*** CUTSNS_PIN = 0 [11:49:59]*** Stage 1: CUTSNS_PIN = 1 [11:50:01]Read from MH i2c: 01 [11:50:01]MH_I2C_Read... [11:50:01]*** Stop cut motor [11:50:01]*** Cut end [11:50:01]Read from MH i2c: 01 07 00 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: 01 07 00 96 14 00 00 00 00 00 FF 0F BF [11:50:01]process_action close_receipt done [11:50:01]requested_data is exist [11:50:01]produce_requested_data [11:50:01]requested_item fm.sn is exist - process it [11:50:01]wFMCommunicate request_size=4 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 11 00 00 [11:50:01]Write to MH i2c: E2 08 00 97 14 80 11 00 00 00 00 00 00 25 [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:01]Read from MH i2c: E2 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 17 00 [11:50:01]MH_I2C_Read... [11:50:01]Read from MH i2c: E2 17 00 97 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 85 [11:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:50:01]wFMCommunicate OK [11:50:01]requested_item fd.num is exist - process it [11:50:01]SAM_PROTO_GetFieldsCounters [11:50:01]wFMCommunicate request_size=4 [11:50:01]MH_SAM_APDU [11:50:01]CAPDU: 80 13 00 00 [11:50:01]Write to MH i2c: E2 08 00 98 14 80 13 00 00 00 00 00 00 28 [11:50:01]Write i2c OK [11:50:01]MH_I2C_Read... [11:50:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:02]Read from MH i2c: E2 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 62 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 62 00 98 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F0 7B 02 00 0E 04 04 00 CF 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 E8 [11:50:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F0 7B 02 00 0E 04 04 00 CF 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 [11:50:02]wFMCommunicate OK [11:50:02]SAM_PROTO_GetFieldsCounters done [11:50:02]requested_item shift.num is exist - process it [11:50:02]requested_item shift.opened is exist - process it [11:50:02]req_shift_opened [11:50:02]FM_GetShiftState [11:50:02]SAM_PROTO_GetShiftState [11:50:02]wFMCommunicate request_size=4 [11:50:02]MH_SAM_APDU [11:50:02]CAPDU: 80 13 01 00 [11:50:02]Write to MH i2c: E2 08 00 99 14 80 13 01 00 00 00 00 00 2A [11:50:02]Write i2c OK [11:50:02]MH_I2C_Read... [11:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:02]Read from MH i2c: E2 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 0E 00 [11:50:02]MH_I2C_Read... [11:50:02]Read from MH i2c: E2 0E 00 99 14 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 60 [11:50:02]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:50:02]wFMCommunicate OK [11:50:02]SAM_PROTO_GetShiftState done [11:50:02]FM_GetShiftState done [11:50:02]req_shift_opened done [11:50:02]requested_item shift.open_date is exist - process it [11:50:02]req_shift_open_date [11:50:02]req_shift_open_date done [11:50:02]produce_requested_data done [11:50:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162800,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:50:02]process_action_free close_receipt [11:50:02]json_value_free [11:50:02]json_value_free done [11:50:02]process_json_proto returns [11:50:02]Send response to host [11:50:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162800,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:50:02]free response buf [11:50:02]execute_script done [11:50:02]execute_script returns [11:50:02]free content buf [11:50:02]Sock 7.Close socket [11:50:02]Sock 7.Thread stoped [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]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:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:57]accept exits with 9 [11:51:57]New connection [11:51:57]New thread 3066735972 created [11:51:57]Thread 3066879332 joined [11:51:57]Waiting for new connection... [11:51:57] Sock 9.Parse request [11:51:57]Sock 9.Check first char [11:51:57]Sock 9.First char is OK [11:51:57]request: POST /json_proto HTTP/1.0 [11:51:57]Method: POST [11:51:57]URL: /json_proto [11:51:57]Method is POST - this is cgi request [11:51:57]url: /json_proto [11:51:57]query_string will be loaded in cgi processing [11:51:57]execute_cgi json_proto POST (null) [11:51:57]execute_cgi path=json_proto method=POST [11:51:57]POST find Content-Length [11:51:57]Host: 172.17.39.67:8080 [11:51:57]Content-Length: 683 [11:51:57]Content-Type: application/json [11:51:57] [11:51:57]POST finish read [11:51:57]Found Content-Length = 683 [11:51:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "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" ] } } [11:51:57]execute_script... [11:51: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)1319397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "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" ] } } [11:51:57]POST & json_proto [11:51:57]process_json_proto [11:51:57]json parsed OK: [11:51:57]protocol is kg_v1.0 [11:51:57]action value=close_receipt [11:51:57]process_action close_receipt [11:51:57]cmd_close_receipt [11:51:57]MH_GetDate [11:51:57]Write to MH i2c: F0 00 00 9A 14 9D [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: F0 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: F0 09 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: F0 09 00 9A 14 00 DD BB 93 66 B6 85 93 66 6B [11:51:57]GetLastDocTimeStamp 1720957797 [11:51:57]current date 1720957917 [11:51:57]FM_GetShiftState [11:51:57]SAM_PROTO_GetShiftState [11:51:57]wFMCommunicate request_size=4 [11:51:57]MH_SAM_APDU [11:51:57]CAPDU: 80 13 01 00 [11:51:57]Write to MH i2c: E2 08 00 9B 14 80 13 01 00 00 00 00 00 2C [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:57]Read from MH i2c: E2 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 0E 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 0E 00 9B 14 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 62 [11:51:57]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:51:57]wFMCommunicate OK [11:51:57]SAM_PROTO_GetShiftState done [11:51:57]FM_GetShiftState done [11:51:57]opened in 1720915483 [11:51:57]opened+sec_in_day 1721001883 [11:51:57]quantity*price = 70059 [11:51:57]sum+1 = 70060 [11:51:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 113 14.07.2024 11:51 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162801 ФПД: 178668574759266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115157&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162801&fm=178668574759266&tin=02508201610067®Number=0000000000090858&sum=70000 [11:51:58]StoreToDocumentArchive [11:51:58]shift 463 fd 162801 [11:51:58]save to /storage/0463/doc_00162801 [11:51:58]save last doc name /storage/0463/doc_00162801 to /storage/kkm_last_doc_name [11:51:58]save OK [11:51:58]Clear old archive folders... [11:51:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:51:58]tlvbuf is B6F43550 [11:51:58]SAM_PROTO_ClearQueue [11:51:58]wFMCommunicate request_size=4 [11:51:58]MH_SAM_APDU [11:51:58]CAPDU: 80 09 00 00 [11:51:58]Write to MH i2c: E2 08 00 A8 14 80 09 00 00 00 00 00 00 2E [11:51:58]Write i2c OK [11:51:58]MH_I2C_Read... [11:51:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:58]Read from MH i2c: E2 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 03 00 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 03 00 A8 14 00 90 00 30 [11:51:58]RAPDU: 90 00 [11:51:58]wFMCommunicate OK [11:51:58]SAM_PROTO_ClearQueue done [11:51:58]KKMCreateOFDPacket [11:51:58]OFDProtocolAddRootSTLVToBuf [11:51:58]FM_MakeSignedData [11:51:58]FM_MakeSignedData [11:51:58]SAM_PROTO_SignData [11:51:58]wFMCommunicate request_size=4 [11:51:58]MH_SAM_APDU [11:51:58]CAPDU: 80 0D 01 02 [11:51:58]Write to MH i2c: E2 08 00 A9 14 80 0D 01 02 00 00 00 00 36 [11:51:58]Write i2c OK [11:51:58]MH_I2C_Read... [11:51:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:58]Read from MH i2c: E2 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 03 00 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 03 00 A9 14 00 90 00 31 [11:51:58]RAPDU: 90 00 [11:51:58]wFMCommunicate OK [11:51:58]wFMCommunicate request_size=255 [11:51:58]MH_SAM_APDU [11:51:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DD BB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F1 7B 02 00 35 04 06 00 [11:51:58]Write to MH i2c: E2 02 01 AA 14 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DD BB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F1 7B 02 00 35 04 06 00 00 00 78 [11:51:58]Write i2c OK [11:51:58]MH_I2C_Read... [11:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:58]Read from MH i2c: E2 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 03 00 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 03 00 AA 14 00 90 00 32 [11:51:58]RAPDU: 90 00 [11:51:58]wFMCommunicate OK [11:51:58]wFMCommunicate request_size=11 [11:51:58]MH_SAM_APDU [11:51:58]CAPDU: 80 0D 02 02 06 A2 7F 84 EE 59 62 [11:51:58]Write to MH i2c: E2 0E 00 AB 14 80 0D 02 02 06 00 A2 7F 84 EE 59 62 00 00 93 [11:51:58]Write i2c OK [11:51:58]MH_I2C_Read... [11:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:58]Read from MH i2c: E2 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 03 00 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 03 00 AB 14 00 90 00 33 [11:51:58]RAPDU: 90 00 [11:51:58]wFMCommunicate OK [11:51:58]wFMCommunicate request_size=4 [11:51:58]MH_SAM_APDU [11:51:58]CAPDU: 80 0D 03 02 [11:51:58]Write to MH i2c: E2 08 00 AC 14 80 0D 03 02 00 00 00 00 3B [11:51:58]Write i2c OK [11:51:58]MH_I2C_Read... [11:51:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:58]Read from MH i2c: E2 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 0B 00 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 0B 00 AC 14 00 B6 35 C2 19 F1 EC 84 E3 90 00 46 [11:51:58]RAPDU: B6 35 C2 19 F1 EC 84 E3 90 00 [11:51:58]wFMCommunicate OK [11:51:58]SAM_PROTO_SignData done [11:51:58]FM_MakeSignedData done [11:51:58]CreateOFDProtocolMessage [11:51:58]wFMCommunicate request_size=4 [11:51:58]MH_SAM_APDU [11:51:58]CAPDU: 80 11 00 00 [11:51:58]Write to MH i2c: E2 08 00 AD 14 80 11 00 00 00 00 00 00 3B [11:51:58]Write i2c OK [11:51:58]MH_I2C_Read... [11:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:58]Read from MH i2c: E2 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 17 00 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 17 00 AD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9B [11:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:51:58]wFMCommunicate OK [11:51:58]CreateOFDProtocolMessage done [11:51:58]OFDSenderStorePacket 162801 [11:51:58]StoreOFDPacket docnum=162801 [11:51:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BC 81 08 01 77 46 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DD BB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F1 7B 02 00 35 04 06 00 A2 7F 84 EE 59 62 B6 35 C2 19 F1 EC 84 E3 [11:51:58]CheckFolder [11:51:58]dirname=/storage/ofd_packets [11:51:58]CheckFolder done [11:51:58]ProducePacketName [11:51:58]name=ofd_packets/00162801 [11:51:58]NVStorageSaveData ofd_packets/00162801 [11:51:58]File name is /storage/ofd_packets/00162801 [11:51:58]Write 302 bytes [11:51:58]NVStorageSaveData done [11:51:58]OFDSenderStorePacket done [11:51:58]KKMCreateOFDPacket done [11:51:58]NVStorageSaveData kkm_last_timestamp [11:51:58]File name is /storage/kkm_last_timestamp [11:51:58]Write 4 bytes [11:51:58]NVStorageSaveData done [11:51:58]ExternCall_PrintAddStr [11:51:58]wPrintStart [11:51:58]Write to MH i2c: 01 00 00 AE 14 C2 [11:51:58]Write i2c OK [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: 01 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: 01 07 00 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: 01 07 00 AE 14 00 00 00 00 00 FF 0F D7 [11:51:58]RasterBufferAndPrint [11:51:58]line Счет N : (1)1319397 [11:51:58]line ИНН: 02508201610067 [11:51:58]line Контрольно-Кассовый Чек [11:51:58]line ПРОДАЖА [11:51:58]line ТРК (МРК, ГНК) : 21 [11:51:58]line Товар: 2710194210 [11:51:58]line ДТ(л)-К-5 [11:51:58]line 9.650 * 72.60 [11:51:58]line = 700.59 [11:51:58]line НДС 12% НСП 1% [11:51:58]line > о реализуемом товаре [11:51:58]line ОКРУГЛЕНИЕ: -0.59 [11:51:58]line ИТОГО: 700.00 [11:51:58]line Внесено: 700.00 [11:51:58]line СДАЧА: 0.00 [11:51:58]line НСП 1% : 6.20 [11:51:58]line НДС 12% : 74.40 [11:51:58]line Наличными: 700.00 [11:51:58]line Безнал.: 0.00 [11:51:58]line Место: АЗС № 140 "Партнер Нефть" [11:51:58]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:51:58]line СНО: Общий режим [11:51:58]line Чек 113 14.07.2024 11:51 [11:51:58]line Смена: 463 ФФД: 1.0 [11:51:58]line ЗНМ: 0300000129 [11:51:58]line РНМ: 0000000000090858 [11:51:58]line Версия ККМ: 001 [11:51:58]line ФМ: 0000000000874899 [11:51:58]line ФД: 162801 [11:51:58]line ФПД: 178668574759266 [11:51:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115157&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162801&fm=178668574759266&tin=02508201610067®Number=0000000000090858&sum=70000 [11:51:59]OFD Sender: Processing packet 162801 [packets to send 106, broken 105] [11:51:59]ProducePacketName [11:51:59]name=ofd_packets/00162801 [11:51:59]OFD Sender: To server: pG, [11:51:59]CommunicateWithHost lk.salyk.kg:30040 [11:51:59]ConnectInit lk.salyk.kg [11:51:59]written 0, free lines is 4095 [11:51:59]Connected sock=11 [11: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 34 38 39 39 10 01 00 00 BC 81 08 01 77 46 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 DD BB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F1 7B 02 00 35 04 06 00 A2 7F 84 EE 59 62 B6 35 C2 19 F1 EC 84 E3 [11:51:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A7 D0 47 00 3B B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F1 7B 02 00 F4 03 04 00 EB 67 93 66 B6 04 01 00 00 AC 72 A7 E1 7E 9D 94 9A [11:51:59]CommunicateWithHost err = 0 [11:51:59]CheckOFDResponse [11:51:59]1017 (14) - 77093643461234 [11:51:59]1041 (16) - 0000000000874899 [11:51:59]1040 (4) - 162801 [11:51:59]1012 (4) - 14.07.2024 05:53 [11:51:59]1206 (1) - 0 [11:51:59]OFD Sender: Remove packet 162801 [11:51:59]ProducePacketName [11:51:59]name=ofd_packets/00162801 [11:51:59]NVStorageDeleteData [11:51:59]Write to MH i2c: 01 00 00 D9 14 ED [11:51:59]Write i2c OK [11:51:59]MH_I2C_Read... [11:51:59]Read from MH i2c: 01 [11:51:59]MH_I2C_Read... [11:51:59]Read from MH i2c: 01 07 00 [11:51:59]MH_I2C_Read... [11:51:59]Read from MH i2c: 01 07 00 D9 14 00 00 00 00 00 D4 0C D4 [11:51:59]RasterBufferAndPrint [11:51:59]line [11:51:59]line [11:51:59]line [11:51:59]line [11:51:59]line [11:51:59]written 0, free lines is 3289 [11:51:59]MH_Cut [11:51:59]Write to MH i2c: D1 01 00 E0 14 01 C6 [11:51:59]Write i2c OK [11:51:59]MH_I2C_Read... [11:51:59]Read from MH i2c: D1 [11:51:59]MH_I2C_Read... [11:51:59]Read from MH i2c: D1 01 00 [11:51:59]MH_I2C_Read... [11:51:59]Read from MH i2c: D1 01 00 E0 14 00 C5 [11:51:59]Write to MH i2c: 01 00 00 E1 14 F5 [11:51:59]Write i2c OK [11:51:59]MH_I2C_Read... [11:51:59]OFD Sender: No OFD packet to send [11:52:00]*** Cut start [11:52:00]*** Purtial cut [11:52:00]*** Stage 1: CUTSNS_PIN = 1 [11:52:00]Read from MH i2c: 01 [11:52:00]MH_I2C_Read... [11:52:00]*** Stop cut motor [11:52:00]*** Cut end [11:52:00]Read from MH i2c: 01 07 00 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: 01 07 00 E1 14 00 00 00 00 00 FF 0F 0A [11:52:00]process_action close_receipt done [11:52:00]requested_data is exist [11:52:00]produce_requested_data [11:52:00]requested_item fm.sn is exist - process it [11:52:00]wFMCommunicate request_size=4 [11:52:00]MH_SAM_APDU [11:52:00]CAPDU: 80 11 00 00 [11:52:00]Write to MH i2c: E2 08 00 E2 14 80 11 00 00 00 00 00 00 70 [11:52:00]Write i2c OK [11:52:00]MH_I2C_Read... [11:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:00]Read from MH i2c: E2 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 17 00 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 17 00 E2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D0 [11:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:52:00]wFMCommunicate OK [11:52:00]requested_item fd.num is exist - process it [11:52:00]SAM_PROTO_GetFieldsCounters [11:52:00]wFMCommunicate request_size=4 [11:52:00]MH_SAM_APDU [11:52:00]CAPDU: 80 13 00 00 [11:52:00]Write to MH i2c: E2 08 00 E3 14 80 13 00 00 00 00 00 00 73 [11:52:00]Write i2c OK [11:52:00]MH_I2C_Read... [11:52:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:00]Read from MH i2c: E2 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 62 00 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 62 00 E3 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F1 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [11: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F1 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:00]wFMCommunicate OK [11:52:00]SAM_PROTO_GetFieldsCounters done [11:52:00]requested_item shift.num is exist - process it [11:52:00]requested_item shift.opened is exist - process it [11:52:00]req_shift_opened [11:52:00]FM_GetShiftState [11:52:00]SAM_PROTO_GetShiftState [11:52:00]wFMCommunicate request_size=4 [11:52:00]MH_SAM_APDU [11:52:00]CAPDU: 80 13 01 00 [11:52:00]Write to MH i2c: E2 08 00 E4 14 80 13 01 00 00 00 00 00 75 [11:52:00]Write i2c OK [11:52:00]MH_I2C_Read... [11:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:00]Read from MH i2c: E2 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 0E 00 [11:52:00]MH_I2C_Read... [11:52:00]Read from MH i2c: E2 0E 00 E4 14 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 AB [11:52:00]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:52:00]wFMCommunicate OK [11:52:00]SAM_PROTO_GetShiftState done [11:52:00]FM_GetShiftState done [11:52:00]req_shift_opened done [11:52:00]requested_item shift.open_date is exist - process it [11:52:00]req_shift_open_date [11:52:00]req_shift_open_date done [11:52:00]produce_requested_data done [11:52:00]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162801,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:52:00]process_action_free close_receipt [11:52:00]json_value_free [11:52:00]json_value_free done [11:52:00]process_json_proto returns [11:52:00]Send response to host [11:52:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162801,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:52:00]free response buf [11:52:00]execute_script done [11:52:00]execute_script returns [11:52:00]free content buf [11:52:00]Sock 9.Close socket [11:52:00]Sock 9.Thread stoped [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:33]accept exits with 7 [11:55:33]New connection [11:55:33]New thread 3066879332 created [11:55:33]Thread 3066735972 joined [11:55:33]Waiting for new connection... [11:55:33] Sock 7.Parse request [11:55:33]Sock 7.Check first char [11:55:33]Sock 7.First char is OK [11:55:33]request: POST /json_proto HTTP/1.0 [11:55:33]Method: POST [11:55:33]URL: /json_proto [11:55:33]Method is POST - this is cgi request [11:55:33]url: /json_proto [11:55:33]query_string will be loaded in cgi processing [11:55:33]execute_cgi json_proto POST (null) [11:55:33]execute_cgi path=json_proto method=POST [11:55:33]POST find Content-Length [11:55:33]Host: 172.17.39.67:8080 [11:55:33]Content-Length: 678 [11:55:33]Content-Type: application/json [11:55:33] [11:55:33]POST finish read [11:55:33]Found Content-Length = 678 [11:55:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [11:55:33]execute_script... [11:55: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)1319398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [11:55:33]POST & json_proto [11:55:33]process_json_proto [11:55:33]json parsed OK: [11:55:33]protocol is kg_v1.0 [11:55:33]action value=close_receipt [11:55:33]process_action close_receipt [11:55:33]cmd_close_receipt [11:55:33]MH_GetDate [11:55:33]Write to MH i2c: F0 00 00 E5 14 E8 [11:55:33]Write i2c OK [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: F0 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: F0 09 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: F0 09 00 E5 14 00 B6 BC 93 66 B6 85 93 66 90 [11:55:33]GetLastDocTimeStamp 1720957917 [11:55:33]current date 1720958134 [11:55:33]FM_GetShiftState [11:55:33]SAM_PROTO_GetShiftState [11:55:33]wFMCommunicate request_size=4 [11:55:33]MH_SAM_APDU [11:55:33]CAPDU: 80 13 01 00 [11:55:33]Write to MH i2c: E2 08 00 E6 14 80 13 01 00 00 00 00 00 77 [11:55:33]Write i2c OK [11:55:33]MH_I2C_Read... [11:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:33]Read from MH i2c: E2 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 0E 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 0E 00 E6 14 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 AD [11:55:33]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:55:33]wFMCommunicate OK [11:55:33]SAM_PROTO_GetShiftState done [11:55:33]FM_GetShiftState done [11:55:33]opened in 1720915483 [11:55:33]opened+sec_in_day 1721001883 [11:55:33]quantity*price = 30033 [11:55:33]sum+1 = 30035 [11:55:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 114 14.07.2024 11:55 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162802 ФПД: 155183661135307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115534&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162802&fm=155183661135307&tin=02508201610067®Number=0000000000090858&sum=30000 [11:55:34]StoreToDocumentArchive [11:55:34]shift 463 fd 162802 [11:55:34]save to /storage/0463/doc_00162802 [11:55:34]save last doc name /storage/0463/doc_00162802 to /storage/kkm_last_doc_name [11:55:34]save OK [11:55:34]Clear old archive folders... [11:55:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:34]tlvbuf is 01227A70 [11:55:34]SAM_PROTO_ClearQueue [11:55:34]wFMCommunicate request_size=4 [11:55:34]MH_SAM_APDU [11:55:34]CAPDU: 80 09 00 00 [11:55:34]Write to MH i2c: E2 08 00 F3 14 80 09 00 00 00 00 00 00 79 [11:55:34]Write i2c OK [11:55:34]MH_I2C_Read... [11:55:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:34]Read from MH i2c: E2 [11:55:34]MH_I2C_Read... [11:55:34]Read from MH i2c: E2 03 00 [11:55:34]MH_I2C_Read... [11:55:34]Read from MH i2c: E2 03 00 F3 14 00 90 00 7B [11:55:34]RAPDU: 90 00 [11:55:34]wFMCommunicate OK [11:55:34]SAM_PROTO_ClearQueue done [11:55:34]KKMCreateOFDPacket [11:55:34]OFDProtocolAddRootSTLVToBuf [11:55:34]FM_MakeSignedData [11:55:34]FM_MakeSignedData [11:55:34]SAM_PROTO_SignData [11:55:34]wFMCommunicate request_size=4 [11:55:34]MH_SAM_APDU [11:55:34]CAPDU: 80 0D 01 02 [11:55:34]Write to MH i2c: E2 08 00 F4 14 80 0D 01 02 00 00 00 00 81 [11:55:35]Write i2c OK [11:55:35]MH_I2C_Read... [11:55:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:35]Read from MH i2c: E2 [11:55:35]MH_I2C_Read... [11:55:35]Read from MH i2c: E2 03 00 [11:55:35]MH_I2C_Read... [11:55:35]Read from MH i2c: E2 03 00 F4 14 00 90 00 7C [11:55:35]RAPDU: 90 00 [11:55:35]wFMCommunicate OK [11:55:35]wFMCommunicate request_size=255 [11:55:35]MH_SAM_APDU [11:55:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 72 00 00 00 F4 03 04 00 B6 BC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F2 7B 02 00 35 04 06 00 8D [11:55:35]Write to MH i2c: E2 02 01 F5 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 72 00 00 00 F4 03 04 00 B6 BC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F2 7B 02 00 35 04 06 00 8D 00 00 A5 [11:55:35]Write i2c OK [11:55:35]MH_I2C_Read... [11:55:35]OFD Sender: No OFD packet to send [11:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:35]Read from MH i2c: E2 [11:55:35]MH_I2C_Read... [11:55:35]Read from MH i2c: E2 03 00 [11:55:35]MH_I2C_Read... [11:55:35]Read from MH i2c: E2 03 00 F5 14 00 90 00 7D [11:55:35]RAPDU: 90 00 [11:55:35]wFMCommunicate OK [11:55:35]wFMCommunicate request_size=10 [11:55:35]MH_SAM_APDU [11:55:35]CAPDU: 80 0D 02 02 05 23 82 FF 35 CB [11:55:35]Write to MH i2c: E2 0D 00 F6 14 80 0D 02 02 05 00 23 82 FF 35 CB 00 00 32 [11:55:35]Write i2c OK [11:55:35]MH_I2C_Read... [11:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:35]Read from MH i2c: E2 [11:55:35]MH_I2C_Read... [11:55:35]Read from MH i2c: E2 03 00 [11:55:35]MH_I2C_Read... [11:55:35]Read from MH i2c: E2 03 00 F6 14 00 90 00 7E [11:55:35]RAPDU: 90 00 [11:55:35]wFMCommunicate OK [11:55:35]wFMCommunicate request_size=4 [11:55:35]MH_SAM_APDU [11:55:35]CAPDU: 80 0D 03 02 [11:55:35]Write to MH i2c: E2 08 00 F7 14 80 0D 03 02 00 00 00 00 86 [11:55:35]Write i2c OK [11:55:35]MH_I2C_Read... [11:55:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:35]Read from MH i2c: E2 [11:55:35]MH_I2C_Read... [11:55:35]Read from MH i2c: E2 0B 00 [11:55:35]MH_I2C_Read... [11:55:35]Read from MH i2c: E2 0B 00 F7 14 00 D8 10 2C F8 A8 7E 6F B7 90 00 DF [11:55:35]RAPDU: D8 10 2C F8 A8 7E 6F B7 90 00 [11:55:35]wFMCommunicate OK [11:55:35]SAM_PROTO_SignData done [11:55:35]FM_MakeSignedData done [11:55:35]CreateOFDProtocolMessage [11:55:35]wFMCommunicate request_size=4 [11:55:35]MH_SAM_APDU [11:55:35]CAPDU: 80 11 00 00 [11:55:35]Write to MH i2c: E2 08 00 F8 14 80 11 00 00 00 00 00 00 86 [11:55:35]Write i2c OK [11:55:35]MH_I2C_Read... [11:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:35]Read from MH i2c: E2 [11:55:35]MH_I2C_Read... [11:55:35]Read from MH i2c: E2 17 00 [11:55:35]MH_I2C_Read... [11:55:35]Read from MH i2c: E2 17 00 F8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E6 [11:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:55:35]wFMCommunicate OK [11:55:35]CreateOFDProtocolMessage done [11:55:35]OFDSenderStorePacket 162802 [11:55:35]StoreOFDPacket docnum=162802 [11:55:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E1 A5 07 01 67 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 72 00 00 00 F4 03 04 00 B6 BC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F2 7B 02 00 35 04 06 00 8D 23 82 FF 35 CB D8 10 2C F8 A8 7E 6F B7 [11:55:35]CheckFolder [11:55:35]dirname=/storage/ofd_packets [11:55:35]CheckFolder done [11:55:35]ProducePacketName [11:55:35]name=ofd_packets/00162802 [11:55:35]NVStorageSaveData ofd_packets/00162802 [11:55:35]File name is /storage/ofd_packets/00162802 [11:55:35]Write 301 bytes [11:55:35]NVStorageSaveData done [11:55:35]OFDSenderStorePacket done [11:55:35]KKMCreateOFDPacket done [11:55:35]NVStorageSaveData kkm_last_timestamp [11:55:35]File name is /storage/kkm_last_timestamp [11:55:35]Write 4 bytes [11:55:35]NVStorageSaveData done [11:55:35]ExternCall_PrintAddStr [11:55:35]wPrintStart [11:55:35]Write to MH i2c: 01 00 00 F9 14 0D [11:55:35]Write i2c OK [11:55:35]MH_I2C_Read... [11:55:35]Read from MH i2c: 01 [11:55:35]MH_I2C_Read... [11:55:35]Read from MH i2c: 01 07 00 [11:55:35]MH_I2C_Read... [11:55:35]Read from MH i2c: 01 07 00 F9 14 00 00 00 00 00 FF 0F 22 [11:55:35]RasterBufferAndPrint [11:55:35]line Счет N : (1)1319398 [11:55:35]line ИНН: 02508201610067 [11:55:35]line Контрольно-Кассовый Чек [11:55:35]line ПРОДАЖА [11:55:35]line ТРК (МРК, ГНК) : 43 [11:55:35]line Товар: 2710124130 [11:55:35]line Аи-92-К-5 [11:55:35]line 4.530 * 66.30 [11:55:35]line = 300.34 [11:55:35]line НДС 12% НСП 1% [11:55:35]line > о реализуемом товаре [11:55:35]OFD Sender: Processing packet 162802 [packets to send 106, broken 105] [11:55:35]ProducePacketName [11:55:35]name=ofd_packets/00162802 [11:55:35]OFD Sender: To server: pG, [11:55:35]CommunicateWithHost lk.salyk.kg:30040 [11:55:35]ConnectInit lk.salyk.kg [11:55:35]line ОКРУГЛЕНИЕ: -0.34 [11:55:35]line ИТОГО: 300.00 [11:55:35]line Внесено: 300.00 [11:55:35]line СДАЧА: 0.00 [11:55:35]line НСП 1% : 2.66 [11:55:35]line НДС 12% : 31.89 [11:55:35]line Наличными: 300.00 [11:55:35]line Безнал.: 0.00 [11:55:35]line Место: АЗС № 140 "Партнер Нефть" [11:55:35]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:55:35]line СНО: Общий режим [11:55:35]line Чек 114 14.07.2024 11:55 [11:55:35]line Смена: 463 ФФД: 1.0 [11:55:35]line ЗНМ: 0300000129 [11:55:35]line РНМ: 0000000000090858 [11:55:35]line Версия ККМ: 001 [11:55:35]line ФМ: 0000000000874899 [11:55:35]line ФД: 162802 [11:55:35]line ФПД: 155183661135307 [11:55:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115534&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162802&fm=155183661135307&tin=02508201610067®Number=0000000000090858&sum=30000 [11:55:35]Connected sock=11 [11:55:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E1 A5 07 01 67 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 72 00 00 00 F4 03 04 00 B6 BC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F2 7B 02 00 35 04 06 00 8D 23 82 FF 35 CB D8 10 2C F8 A8 7E 6F B7 [11:55:35]written 0, free lines is 4095 [11:55:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A2 73 47 00 4B 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F2 7B 02 00 F4 03 04 00 C4 68 93 66 B6 04 01 00 00 8E 58 6B 2D 06 62 29 29 [11:55:36]CommunicateWithHost err = 0 [11:55:36]CheckOFDResponse [11:55:36]1017 (14) - 77093643461234 [11:55:36]1041 (16) - 0000000000874899 [11:55:36]1040 (4) - 162802 [11:55:36]1012 (4) - 14.07.2024 05:57 [11:55:36]1206 (1) - 0 [11:55:36]OFD Sender: Remove packet 162802 [11:55:36]ProducePacketName [11:55:36]name=ofd_packets/00162802 [11:55:36]NVStorageDeleteData [11:55:36]Write to MH i2c: 01 00 00 24 15 39 [11:55:36]Write i2c OK [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: 01 [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: 01 07 00 [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: 01 07 00 24 15 00 00 00 00 00 D6 0C 22 [11:55:36]RasterBufferAndPrint [11:55:36]line [11:55:36]line [11:55:36]line [11:55:36]line [11:55:36]line [11:55:36]written 0, free lines is 3294 [11:55:36]MH_Cut [11:55:36]Write to MH i2c: D1 01 00 2B 15 01 12 [11:55:36]Write i2c OK [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: D1 [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: D1 01 00 [11:55:36]MH_I2C_Read... [11:55:36]Read from MH i2c: D1 01 00 2B 15 00 11 [11:55:36]Write to MH i2c: 01 00 00 2C 15 41 [11:55:36]Write i2c OK [11:55:36]MH_I2C_Read... [11:55:36]OFD Sender: No OFD packet to send [11:55:37]*** Cut start [11:55:37]*** Purtial cut [11:55:37]*** CUTSNS_PIN = 0 [11:55:37]*** Stage 1: CUTSNS_PIN = 1 [11:55:39]Read from MH i2c: 01 [11:55:39]MH_I2C_Read... [11:55:39]*** Stop cut motor [11:55:39]*** Cut end [11:55:39]Read from MH i2c: 01 07 00 [11:55:39]MH_I2C_Read... [11:55:39]Read from MH i2c: 01 07 00 2C 15 00 00 00 00 00 FF 0F 56 [11:55:39]process_action close_receipt done [11:55:39]requested_data is exist [11:55:39]produce_requested_data [11:55:39]requested_item fm.sn is exist - process it [11:55:39]wFMCommunicate request_size=4 [11:55:39]MH_SAM_APDU [11:55:39]CAPDU: 80 11 00 00 [11:55:39]Write to MH i2c: E2 08 00 2D 15 80 11 00 00 00 00 00 00 BC [11:55:39]Write i2c OK [11:55:39]MH_I2C_Read... [11:55:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:39]Read from MH i2c: E2 [11:55:39]MH_I2C_Read... [11:55:39]Read from MH i2c: E2 17 00 [11:55:39]MH_I2C_Read... [11:55:39]Read from MH i2c: E2 17 00 2D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1C [11:55:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:55:39]wFMCommunicate OK [11:55:39]requested_item fd.num is exist - process it [11:55:39]SAM_PROTO_GetFieldsCounters [11:55:39]wFMCommunicate request_size=4 [11:55:39]MH_SAM_APDU [11:55:39]CAPDU: 80 13 00 00 [11:55:39]Write to MH i2c: E2 08 00 2E 15 80 13 00 00 00 00 00 00 BF [11:55:39]Write i2c OK [11:55:39]MH_I2C_Read... [11:55:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:39]Read from MH i2c: E2 [11:55:39]MH_I2C_Read... [11:55:39]Read from MH i2c: E2 62 00 [11:55:39]MH_I2C_Read... [11:55:39]Read from MH i2c: E2 62 00 2E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F2 7B 02 00 0E 04 04 00 CF 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 87 [11:55:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F2 7B 02 00 0E 04 04 00 CF 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 [11:55:39]wFMCommunicate OK [11:55:39]SAM_PROTO_GetFieldsCounters done [11:55:39]requested_item shift.num is exist - process it [11:55:39]requested_item shift.opened is exist - process it [11:55:39]req_shift_opened [11:55:39]FM_GetShiftState [11:55:39]SAM_PROTO_GetShiftState [11:55:39]wFMCommunicate request_size=4 [11:55:39]MH_SAM_APDU [11:55:39]CAPDU: 80 13 01 00 [11:55:39]Write to MH i2c: E2 08 00 2F 15 80 13 01 00 00 00 00 00 C1 [11:55:39]Write i2c OK [11:55:39]MH_I2C_Read... [11:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:39]Read from MH i2c: E2 [11:55:39]MH_I2C_Read... [11:55:39]Read from MH i2c: E2 0E 00 [11:55:39]MH_I2C_Read... [11:55:39]Read from MH i2c: E2 0E 00 2F 15 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F7 [11:55:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:55:39]wFMCommunicate OK [11:55:39]SAM_PROTO_GetShiftState done [11:55:39]FM_GetShiftState done [11:55:39]req_shift_opened done [11:55:39]requested_item shift.open_date is exist - process it [11:55:39]req_shift_open_date [11:55:39]req_shift_open_date done [11:55:39]produce_requested_data done [11:55:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162802,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:55:39]process_action_free close_receipt [11:55:39]json_value_free [11:55:39]json_value_free done [11:55:39]process_json_proto returns [11:55:39]Send response to host [11:55:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162802,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:55:39]free response buf [11:55:39]execute_script done [11:55:39]execute_script returns [11:55:39]free content buf [11:55:39]Sock 7.Close socket [11:55:39]Sock 7.Thread stoped [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:01]accept exits with 9 [11:57:01]New connection [11:57:01]New thread 3066735972 created [11:57:01]Thread 3066879332 joined [11:57:01]Waiting for new connection... [11:57:01] Sock 9.Parse request [11:57:01]Sock 9.Check first char [11:57:01]Sock 9.First char is OK [11:57:01]request: POST /json_proto HTTP/1.0 [11:57:01]Method: POST [11:57:01]URL: /json_proto [11:57:01]Method is POST - this is cgi request [11:57:01]url: /json_proto [11:57:01]query_string will be loaded in cgi processing [11:57:01]execute_cgi json_proto POST (null) [11:57:01]execute_cgi path=json_proto method=POST [11:57:01]POST find Content-Length [11:57:01]Host: 172.17.39.67:8080 [11:57:01]Content-Length: 676 [11:57:01]Content-Type: application/json [11:57:01] [11:57:01]POST finish read [11:57:01]Found Content-Length = 676 [11:57:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 22.290, "sum" : 1500.12, "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" ] } } [11:57:01]execute_script... [11:57: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)1319399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 22.290, "sum" : 1500.12, "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" ] } } [11:57:01]POST & json_proto [11:57:01]process_json_proto [11:57:01]json parsed OK: [11:57:01]protocol is kg_v1.0 [11:57:01]action value=close_receipt [11:57:01]process_action close_receipt [11:57:01]cmd_close_receipt [11:57:01]MH_GetDate [11:57:01]Write to MH i2c: F0 00 00 30 15 34 [11:57:01]Write i2c OK [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: F0 [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: F0 09 00 [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: F0 09 00 30 15 00 0E BD 93 66 B6 85 93 66 35 [11:57:01]GetLastDocTimeStamp 1720958134 [11:57:01]current date 1720958222 [11:57:01]FM_GetShiftState [11:57:01]SAM_PROTO_GetShiftState [11:57:01]wFMCommunicate request_size=4 [11:57:01]MH_SAM_APDU [11:57:01]CAPDU: 80 13 01 00 [11:57:01]Write to MH i2c: E2 08 00 31 15 80 13 01 00 00 00 00 00 C3 [11:57:01]Write i2c OK [11:57:01]MH_I2C_Read... [11:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:01]Read from MH i2c: E2 [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: E2 0E 00 [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: E2 0E 00 31 15 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F9 [11:57:01]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:57:01]wFMCommunicate OK [11:57:01]SAM_PROTO_GetShiftState done [11:57:01]FM_GetShiftState done [11:57:01]opened in 1720915483 [11:57:01]opened+sec_in_day 1721001883 [11:57:01]quantity*price = 150011 [11:57:01]sum+1 = 150013 [11:57:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 115 14.07.2024 11:57 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162803 ФПД: 65995091412189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115702&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162803&fm=65995091412189&tin=02508201610067®Number=0000000000090858&sum=150000 [11:57:02]StoreToDocumentArchive [11:57:02]shift 463 fd 162803 [11:57:02]save to /storage/0463/doc_00162803 [11:57:02]save last doc name /storage/0463/doc_00162803 to /storage/kkm_last_doc_name [11:57:02]save OK [11:57:02]Clear old archive folders... [11:57:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:57:02]tlvbuf is 0134E1D0 [11:57:02]SAM_PROTO_ClearQueue [11:57:02]wFMCommunicate request_size=4 [11:57:02]MH_SAM_APDU [11:57:02]CAPDU: 80 09 00 00 [11:57:02]Write to MH i2c: E2 08 00 3E 15 80 09 00 00 00 00 00 00 C5 [11:57:02]Write i2c OK [11:57:02]MH_I2C_Read... [11:57:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:02]Read from MH i2c: E2 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: E2 03 00 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: E2 03 00 3E 15 00 90 00 C7 [11:57:02]RAPDU: 90 00 [11:57:02]wFMCommunicate OK [11:57:02]SAM_PROTO_ClearQueue done [11:57:02]KKMCreateOFDPacket [11:57:02]OFDProtocolAddRootSTLVToBuf [11:57:02]FM_MakeSignedData [11:57:02]FM_MakeSignedData [11:57:02]SAM_PROTO_SignData [11:57:02]wFMCommunicate request_size=4 [11:57:02]MH_SAM_APDU [11:57:02]CAPDU: 80 0D 01 02 [11:57:02]Write to MH i2c: E2 08 00 3F 15 80 0D 01 02 00 00 00 00 CD [11:57:02]Write i2c OK [11:57:02]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 3F 15 00 90 00 C8 [11:57:03]RAPDU: 90 00 [11:57:03]wFMCommunicate OK [11:57:03]wFMCommunicate request_size=255 [11:57:03]MH_SAM_APDU [11:57:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 73 00 00 00 F4 03 04 00 0E BD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F3 7B 02 00 35 04 06 00 [11:57:03]Write to MH i2c: E2 02 01 40 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 73 00 00 00 F4 03 04 00 0E BD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F3 7B 02 00 35 04 06 00 00 00 C0 [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 40 15 00 90 00 C9 [11:57:03]RAPDU: 90 00 [11:57:03]wFMCommunicate OK [11:57:03]wFMCommunicate request_size=11 [11:57:03]MH_SAM_APDU [11:57:03]CAPDU: 80 0D 02 02 06 3C 05 AD FB 04 DD [11:57:03]Write to MH i2c: E2 0E 00 41 15 80 0D 02 02 06 00 3C 05 AD FB 04 DD 00 00 A6 [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 03 00 41 15 00 90 00 CA [11:57:03]RAPDU: 90 00 [11:57:03]wFMCommunicate OK [11:57:03]wFMCommunicate request_size=4 [11:57:03]MH_SAM_APDU [11:57:03]CAPDU: 80 0D 03 02 [11:57:03]Write to MH i2c: E2 08 00 42 15 80 0D 03 02 00 00 00 00 D2 [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 0B 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 0B 00 42 15 00 24 9D 18 9B EA 97 F3 D4 90 00 8F [11:57:03]RAPDU: 24 9D 18 9B EA 97 F3 D4 90 00 [11:57:03]wFMCommunicate OK [11:57:03]SAM_PROTO_SignData done [11:57:03]FM_MakeSignedData done [11:57:03]CreateOFDProtocolMessage [11:57:03]wFMCommunicate request_size=4 [11:57:03]MH_SAM_APDU [11:57:03]CAPDU: 80 11 00 00 [11:57:03]Write to MH i2c: E2 08 00 43 15 80 11 00 00 00 00 00 00 D2 [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 17 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 17 00 43 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 32 [11:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:57:03]wFMCommunicate OK [11:57:03]CreateOFDProtocolMessage done [11:57:03]OFDSenderStorePacket 162803 [11:57:03]StoreOFDPacket docnum=162803 [11:57:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 69 49 08 01 45 64 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 73 00 00 00 F4 03 04 00 0E BD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F3 7B 02 00 35 04 06 00 3C 05 AD FB 04 DD 24 9D 18 9B EA 97 F3 D4 [11:57:03]CheckFolder [11:57:03]dirname=/storage/ofd_packets [11:57:03]CheckFolder done [11:57:03]ProducePacketName [11:57:03]name=ofd_packets/00162803 [11:57:03]NVStorageSaveData ofd_packets/00162803 [11:57:03]File name is /storage/ofd_packets/00162803 [11:57:03]Write 302 bytes [11:57:03]NVStorageSaveData done [11:57:03]OFDSenderStorePacket done [11:57:03]KKMCreateOFDPacket done [11:57:03]NVStorageSaveData kkm_last_timestamp [11:57:03]File name is /storage/kkm_last_timestamp [11:57:03]Write 4 bytes [11:57:03]NVStorageSaveData done [11:57:03]ExternCall_PrintAddStr [11:57:03]wPrintStart [11:57:03]Write to MH i2c: 01 00 00 44 15 59 [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: 01 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: 01 07 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: 01 07 00 44 15 00 00 00 00 00 FF 0F 6E [11:57:03]RasterBufferAndPrint [11:57:03]line Счет N : (1)1319399 [11:57:03]line ИНН: 02508201610067 [11:57:03]line Контрольно-Кассовый Чек [11:57:03]line ПРОДАЖА [11:57:03]line ТРК (МРК, ГНК) : 62 [11:57:03]line Товар: 2710124130 [11:57:03]line Super-92-К-5 [11:57:03]line 22.290 * 67.30 [11:57:03]line = 1500.12 [11:57:03]line НДС 12% НСП 1% [11:57:03]line > о реализуемом товаре [11:57:03]line ОКРУГЛЕНИЕ: -0.12 [11:57:03]line ИТОГО: 1500.00 [11:57:03]line Внесено: 1500.00 [11:57:03]line СДАЧА: 0.00 [11:57:03]line НСП 1% : 13.27 [11:57:03]line НДС 12% : 159.30 [11:57:03]line Наличными: 1500.00 [11:57:03]line Безнал.: 0.00 [11:57:03]line Место: АЗС № 140 "Партнер Нефть" [11:57:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:57:03]line СНО: Общий режим [11:57:03]line Чек 115 14.07.2024 11:57 [11:57:03]line Смена: 463 ФФД: 1.0 [11:57:03]line ЗНМ: 0300000129 [11:57:03]line РНМ: 0000000000090858 [11:57:03]line Версия ККМ: 001 [11:57:03]line ФМ: 0000000000874899 [11:57:03]line ФД: 162803 [11:57:03]line ФПД: 65995091412189 [11:57:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T115702&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162803&fm=65995091412189&tin=02508201610067®Number=0000000000090858&sum=150000 [11:57:03]OFD Sender: Processing packet 162803 [packets to send 106, broken 105] [11:57:03]ProducePacketName [11:57:03]name=ofd_packets/00162803 [11:57:03]OFD Sender: To server: pG, [11:57:03]CommunicateWithHost lk.salyk.kg:30040 [11:57:03]ConnectInit lk.salyk.kg [11:57:03]written 0, free lines is 4095 [11:57:03]Connected sock=10 [11:57:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 69 49 08 01 45 64 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 73 00 00 00 F4 03 04 00 0E BD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F3 7B 02 00 35 04 06 00 3C 05 AD FB 04 DD 24 9D 18 9B EA 97 F3 D4 [11:57:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4A DF 47 00 D7 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F3 7B 02 00 F4 03 04 00 1C 69 93 66 B6 04 01 00 00 AB 0C BD 6F 84 5E A9 87 [11:57:04]CommunicateWithHost err = 0 [11:57:04]CheckOFDResponse [11:57:04]1017 (14) - 77093643461234 [11:57:04]1041 (16) - 0000000000874899 [11:57:04]1040 (4) - 162803 [11:57:04]1012 (4) - 14.07.2024 05:58 [11:57:04]1206 (1) - 0 [11:57:04]OFD Sender: Remove packet 162803 [11:57:04]ProducePacketName [11:57:04]name=ofd_packets/00162803 [11:57:04]NVStorageDeleteData [11:57:04]Write to MH i2c: 01 00 00 6F 15 84 [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: 01 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: 01 07 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: 01 07 00 6F 15 00 00 00 00 00 D7 0C 6E [11:57:04]RasterBufferAndPrint [11:57:04]line [11:57:04]line [11:57:04]line [11:57:04]line [11:57:04]line [11:57:04]written 0, free lines is 3295 [11:57:04]MH_Cut [11:57:04]Write to MH i2c: D1 01 00 76 15 01 5D [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: D1 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: D1 01 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: D1 01 00 76 15 00 5C [11:57:04]Write to MH i2c: 01 00 00 77 15 8C [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]OFD Sender: No OFD packet to send [11:57:04]*** Cut start [11:57:04]*** Purtial cut [11:57:04]*** Stage 1: CUTSNS_PIN = 1 [11:57:05]Read from MH i2c: 01 [11:57:05]MH_I2C_Read... [11:57:05]*** Stop cut motor [11:57:05]*** Cut end [11:57:05]Read from MH i2c: 01 07 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 07 00 77 15 00 00 00 00 00 FF 0F A1 [11:57:05]process_action close_receipt done [11:57:05]requested_data is exist [11:57:05]produce_requested_data [11:57:05]requested_item fm.sn is exist - process it [11:57:05]wFMCommunicate request_size=4 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 11 00 00 [11:57:05]Write to MH i2c: E2 08 00 78 15 80 11 00 00 00 00 00 00 07 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 17 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 17 00 78 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 67 [11:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:57:05]wFMCommunicate OK [11:57:05]requested_item fd.num is exist - process it [11:57:05]SAM_PROTO_GetFieldsCounters [11:57:05]wFMCommunicate request_size=4 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 13 00 00 [11:57:05]Write to MH i2c: E2 08 00 79 15 80 13 00 00 00 00 00 00 0A [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 62 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 62 00 79 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F3 7B 02 00 0E 04 04 00 CF 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 D6 [11:57:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F3 7B 02 00 0E 04 04 00 CF 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 [11:57:05]wFMCommunicate OK [11:57:05]SAM_PROTO_GetFieldsCounters done [11:57:05]requested_item shift.num is exist - process it [11:57:05]requested_item shift.opened is exist - process it [11:57:05]req_shift_opened [11:57:05]FM_GetShiftState [11:57:05]SAM_PROTO_GetShiftState [11:57:05]wFMCommunicate request_size=4 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 13 01 00 [11:57:05]Write to MH i2c: E2 08 00 7A 15 80 13 01 00 00 00 00 00 0C [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 0E 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 0E 00 7A 15 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 42 [11:57:05]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:57:05]wFMCommunicate OK [11:57:05]SAM_PROTO_GetShiftState done [11:57:05]FM_GetShiftState done [11:57:05]req_shift_opened done [11:57:05]requested_item shift.open_date is exist - process it [11:57:05]req_shift_open_date [11:57:05]req_shift_open_date done [11:57:05]produce_requested_data done [11:57:05]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162803,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:57:05]process_action_free close_receipt [11:57:05]json_value_free [11:57:05]json_value_free done [11:57:05]process_json_proto returns [11:57:05]Send response to host [11:57:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162803,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:57:05]free response buf [11:57:05]execute_script done [11:57:05]execute_script returns [11:57:05]free content buf [11:57:05]Sock 9.Close socket [11:57:05]Sock 9.Thread stoped [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:40]accept exits with 7 [11:59:40]New connection [11:59:40]New thread 3066879332 created [11:59:40]Thread 3066735972 joined [11:59:40]Waiting for new connection... [11:59:40] Sock 7.Parse request [11:59:40]Sock 7.Check first char [11:59:40]Sock 7.First char is OK [11:59:40]request: POST /json_proto HTTP/1.0 [11:59:40]Method: POST [11:59:40]URL: /json_proto [11:59:40]Method is POST - this is cgi request [11:59:40]url: /json_proto [11:59:40]query_string will be loaded in cgi processing [11:59:40]execute_cgi json_proto POST (null) [11:59:40]execute_cgi path=json_proto method=POST [11:59:40]POST find Content-Length [11:59:40]Host: 172.17.39.67:8080 [11:59:40]Content-Length: 1203 [11:59:40]Content-Type: application/json [11:59:40] [11:59:40]POST finish read [11:59:40]Found Content-Length = 1203 [11:59:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319401\u000A14.07.2024 11:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092717\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:40]execute_script... [11:59:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319401\u000A14.07.2024 11:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092717\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:40]POST & json_proto [11:59:40]process_json_proto [11:59:40]json parsed OK: [11:59:40]protocol is kg_v1.0 [11:59:40]action value=print_text [11:59:40]process_action print_text [11:59:40]cmd_print_text [11:59:40]ExternCall_PrintAddStr [11:59:40]wPrintStart [11:59:40]Write to MH i2c: 01 00 00 7B 15 90 [11:59:40]Write i2c OK [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: 01 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: 01 07 00 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: 01 07 00 7B 15 00 00 00 00 00 FF 0F A5 [11:59:40]RasterBufferAndPrint [11:59:40]line *****ТОВАРНЫЙ ЧЕК***** [11:59:40]line АЗС 140 [11:59:40]line Партнер нефть [11:59:40]line 02508201610067 [11:59:40]line Кассир : Дуйшенбек у Н. [11:59:40]line Счет N : (1)1319401 [11:59:40]line 14.07.2024 11:57 [11:59:40]line ПРОДАЖА [11:59:40]line ТРК (МРК, ГНК): 51 [11:59:40]line Вид ГСМ : 2710194210 [11:59:40]line ДТ(л)-К-5 [11:59:40]line 20.000 x 72.60 [11:59:40]line ИТОГ: 1452.00 [11:59:40]line Тип оплаты: Талоны: Партнер нефть [11:59:40]line 4092717 [11:59:40]line ______________________ [11:59:40]line (подпись) [11:59:40]written 0, free lines is 4095 [11:59:40]Write to MH i2c: 01 00 00 8F 15 A4 [11:59:40]Write i2c OK [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: 01 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: 01 07 00 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: 01 07 00 8F 15 00 00 00 00 00 10 0E C9 [11:59:40]RasterBufferAndPrint [11:59:40]line [11:59:40]line [11:59:40]line [11:59:40]line [11:59:40]line [11:59:40]written 0, free lines is 3602 [11:59:40]MH_Cut [11:59:40]Write to MH i2c: D1 01 00 96 15 01 7D [11:59:40]Write i2c OK [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: D1 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: D1 01 00 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: D1 01 00 96 15 00 7C [11:59:40]Write to MH i2c: 01 00 00 97 15 AC [11:59:40]Write i2c OK [11:59:40]MH_I2C_Read... [11:59:41]*** Cut start [11:59:41]*** Purtial cut [11:59:41]*** CUTSNS_PIN = 0 [11:59:41]*** Stage 1: CUTSNS_PIN = 1 [11:59:43]Read from MH i2c: 01 [11:59:43]MH_I2C_Read... [11:59:43]*** Stop cut motor [11:59:43]*** Cut end [11:59:43]Read from MH i2c: 01 07 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: 01 07 00 97 15 00 00 00 00 00 FF 0F C1 [11:59:43]process_action print_text done [11:59:43]requested_data is exist [11:59:43]produce_requested_data [11:59:43]requested_item fm.sn is exist - process it [11:59:43]wFMCommunicate request_size=4 [11:59:43]MH_SAM_APDU [11:59:43]CAPDU: 80 11 00 00 [11:59:43]Write to MH i2c: E2 08 00 98 15 80 11 00 00 00 00 00 00 27 [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 17 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 17 00 98 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 87 [11:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:59:43]wFMCommunicate OK [11:59:43]requested_item fd.num is exist - process it [11:59:43]SAM_PROTO_GetFieldsCounters [11:59:43]wFMCommunicate request_size=4 [11:59:43]MH_SAM_APDU [11:59:43]CAPDU: 80 13 00 00 [11:59:43]Write to MH i2c: E2 08 00 99 15 80 13 00 00 00 00 00 00 2A [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 62 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 62 00 99 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F3 7B 02 00 0E 04 04 00 CF 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 F6 [11: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F3 7B 02 00 0E 04 04 00 CF 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 [11:59:43]wFMCommunicate OK [11:59:43]SAM_PROTO_GetFieldsCounters done [11:59:43]requested_item shift.num is exist - process it [11:59:43]requested_item shift.opened is exist - process it [11:59:43]req_shift_opened [11:59:43]FM_GetShiftState [11:59:43]SAM_PROTO_GetShiftState [11:59:43]wFMCommunicate request_size=4 [11:59:43]MH_SAM_APDU [11:59:43]CAPDU: 80 13 01 00 [11:59:43]Write to MH i2c: E2 08 00 9A 15 80 13 01 00 00 00 00 00 2C [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 0E 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 0E 00 9A 15 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 62 [11:59:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [11:59:43]wFMCommunicate OK [11:59:43]SAM_PROTO_GetShiftState done [11:59:43]FM_GetShiftState done [11:59:43]req_shift_opened done [11:59:43]requested_item shift.open_date is exist - process it [11:59:43]req_shift_open_date [11:59:43]req_shift_open_date done [11:59:43]produce_requested_data done [11:59:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162803,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [11:59:43]process_action_free print_text [11:59:43]json_value_free [11:59:43]json_value_free done [11:59:43]process_json_proto returns [11:59:43]Send response to host [11:59:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162803,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [11:59:43]free response buf [11:59:43]execute_script done [11:59:43]execute_script returns [11:59:43]free content buf [11:59:43]Sock 7.Close socket [11:59:43]Sock 7.Thread stoped [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:36]accept exits with 9 [12:16:36]New connection [12:16:36]New thread 3066735972 created [12:16:36]Thread 3066879332 joined [12:16:36]Waiting for new connection... [12:16:36] Sock 9.Parse request [12:16:36]Sock 9.Check first char [12:16:36]Sock 9.First char is OK [12:16:36]request: POST /json_proto HTTP/1.0 [12:16:36]Method: POST [12:16:36]URL: /json_proto [12:16:36]Method is POST - this is cgi request [12:16:36]url: /json_proto [12:16:36]query_string will be loaded in cgi processing [12:16:36]execute_cgi json_proto POST (null) [12:16:36]execute_cgi path=json_proto method=POST [12:16:36]POST find Content-Length [12:16:36]Host: 172.17.39.67:8080 [12:16:36]Content-Length: 678 [12:16:36]Content-Type: application/json [12:16:36] [12:16:36]POST finish read [12:16:36]Found Content-Length = 678 [12:16:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.020, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:36]execute_script... [12:16:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.020, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:36]POST & json_proto [12:16:36]process_json_proto [12:16:36]json parsed OK: [12:16:36]protocol is kg_v1.0 [12:16:36]action value=close_receipt [12:16:36]process_action close_receipt [12:16:36]cmd_close_receipt [12:16:36]MH_GetDate [12:16:36]Write to MH i2c: F0 00 00 9B 15 9F [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: F0 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: F0 09 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: F0 09 00 9B 15 00 A5 C1 93 66 B6 85 93 66 3B [12:16:36]GetLastDocTimeStamp 1720958222 [12:16:36]current date 1720959397 [12:16:36]FM_GetShiftState [12:16:36]SAM_PROTO_GetShiftState [12:16:36]wFMCommunicate request_size=4 [12:16:36]MH_SAM_APDU [12:16:36]CAPDU: 80 13 01 00 [12:16:36]Write to MH i2c: E2 08 00 9C 15 80 13 01 00 00 00 00 00 2E [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:36]Read from MH i2c: E2 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 0E 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 0E 00 9C 15 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 64 [12:16:36]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:16:36]wFMCommunicate OK [12:16:36]SAM_PROTO_GetShiftState done [12:16:36]FM_GetShiftState done [12:16:36]opened in 1720915483 [12:16:36]opened+sec_in_day 1721001883 [12:16:36]quantity*price = 20022 [12:16:36]sum+1 = 20024 [12:16:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 116 14.07.2024 12:16 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162804 ФПД: 168074545991314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121637&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162804&fm=168074545991314&tin=02508201610067®Number=0000000000090858&sum=20000 [12:16:37]StoreToDocumentArchive [12:16:37]shift 463 fd 162804 [12:16:37]save to /storage/0463/doc_00162804 [12:16:37]save last doc name /storage/0463/doc_00162804 to /storage/kkm_last_doc_name [12:16:37]save OK [12:16:37]Clear old archive folders... [12:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:37]tlvbuf is 012FC0A0 [12:16:37]SAM_PROTO_ClearQueue [12:16:37]wFMCommunicate request_size=4 [12:16:37]MH_SAM_APDU [12:16:37]CAPDU: 80 09 00 00 [12:16:37]Write to MH i2c: E2 08 00 A9 15 80 09 00 00 00 00 00 00 30 [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 03 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 03 00 A9 15 00 90 00 32 [12:16:38]RAPDU: 90 00 [12:16:38]wFMCommunicate OK [12:16:38]SAM_PROTO_ClearQueue done [12:16:38]KKMCreateOFDPacket [12:16:38]OFDProtocolAddRootSTLVToBuf [12:16:38]FM_MakeSignedData [12:16:38]FM_MakeSignedData [12:16:38]SAM_PROTO_SignData [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 0D 01 02 [12:16:38]Write to MH i2c: E2 08 00 AA 15 80 0D 01 02 00 00 00 00 38 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 03 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 03 00 AA 15 00 90 00 33 [12:16:38]RAPDU: 90 00 [12:16:38]wFMCommunicate OK [12:16:38]wFMCommunicate request_size=255 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A5 C1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F4 7B 02 00 35 04 06 00 98 [12:16:38]Write to MH i2c: E2 02 01 AB 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A5 C1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F4 7B 02 00 35 04 06 00 98 00 00 3E [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 03 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 03 00 AB 15 00 90 00 34 [12:16:38]RAPDU: 90 00 [12:16:38]wFMCommunicate OK [12:16:38]wFMCommunicate request_size=10 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 0D 02 02 05 DC E7 9C 0E 92 [12:16:38]Write to MH i2c: E2 0D 00 AC 15 80 0D 02 02 05 00 DC E7 9C 0E 92 00 00 44 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 03 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 03 00 AC 15 00 90 00 35 [12:16:38]RAPDU: 90 00 [12:16:38]wFMCommunicate OK [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 0D 03 02 [12:16:38]Write to MH i2c: E2 08 00 AD 15 80 0D 03 02 00 00 00 00 3D [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 0B 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 0B 00 AD 15 00 BA 66 96 3D 59 5C 82 A5 90 00 0D [12:16:38]RAPDU: BA 66 96 3D 59 5C 82 A5 90 00 [12:16:38]wFMCommunicate OK [12:16:38]SAM_PROTO_SignData done [12:16:38]FM_MakeSignedData done [12:16:38]CreateOFDProtocolMessage [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 11 00 00 [12:16:38]Write to MH i2c: E2 08 00 AE 15 80 11 00 00 00 00 00 00 3D [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 17 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 17 00 AE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9D [12:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:16:38]wFMCommunicate OK [12:16:38]CreateOFDProtocolMessage done [12:16:38]OFDSenderStorePacket 162804 [12:16:38]StoreOFDPacket docnum=162804 [12:16:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 20 D0 07 01 3B 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A5 C1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F4 7B 02 00 35 04 06 00 98 DC E7 9C 0E 92 BA 66 96 3D 59 5C 82 A5 [12:16:38]CheckFolder [12:16:38]dirname=/storage/ofd_packets [12:16:38]CheckFolder done [12:16:38]ProducePacketName [12:16:38]name=ofd_packets/00162804 [12:16:38]NVStorageSaveData ofd_packets/00162804 [12:16:38]File name is /storage/ofd_packets/00162804 [12:16:38]Write 301 bytes [12:16:38]NVStorageSaveData done [12:16:38]OFDSenderStorePacket done [12:16:38]KKMCreateOFDPacket done [12:16:38]NVStorageSaveData kkm_last_timestamp [12:16:38]File name is /storage/kkm_last_timestamp [12:16:38]Write 4 bytes [12:16:38]NVStorageSaveData done [12:16:38]ExternCall_PrintAddStr [12:16:38]wPrintStart [12:16:38]Write to MH i2c: 01 00 00 AF 15 C4 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: 01 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: 01 07 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: 01 07 00 AF 15 00 00 00 00 00 FF 0F D9 [12:16:38]RasterBufferAndPrint [12:16:38]line Счет N : (1)1319403 [12:16:38]line ИНН: 02508201610067 [12:16:38]line Контрольно-Кассовый Чек [12:16:38]line ПРОДАЖА [12:16:38]line ТРК (МРК, ГНК) : 53 [12:16:38]line Товар: 2710124130 [12:16:38]line Аи-92-К-5 [12:16:38]line 3.020 * 66.30 [12:16:38]line = 200.23 [12:16:38]line НДС 12% НСП 1% [12:16:38]line > о реализуемом товаре [12:16:38]line ОКРУГЛЕНИЕ: -0.23 [12:16:38]line ИТОГО: 200.00 [12:16:38]line Внесено: 200.00 [12:16:38]line СДАЧА: 0.00 [12:16:38]line НСП 1% : 1.77 [12:16:38]line НДС 12% : 21.26 [12:16:38]line Наличными: 200.00 [12:16:38]line Безнал.: 0.00 [12:16:38]line Место: АЗС № 140 "Партнер Нефть" [12:16:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:16:38]line СНО: Общий режим [12:16:38]line Чек 116 14.07.2024 12:16 [12:16:38]line Смена: 463 ФФД: 1.0 [12:16:38]line ЗНМ: 0300000129 [12:16:38]line РНМ: 0000000000090858 [12:16:38]line Версия ККМ: 001 [12:16:38]line ФМ: 0000000000874899 [12:16:38]line ФД: 162804 [12:16:38]line ФПД: 168074545991314 [12:16:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121637&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162804&fm=168074545991314&tin=02508201610067®Number=0000000000090858&sum=20000 [12:16:38]OFD Sender: Processing packet 162804 [packets to send 106, broken 105] [12:16:38]ProducePacketName [12:16:38]name=ofd_packets/00162804 [12:16:38]OFD Sender: To server: pG, [12:16:38]CommunicateWithHost lk.salyk.kg:30040 [12:16:38]ConnectInit lk.salyk.kg [12:16:38]written 0, free lines is 4095 [12:16:38]Connected sock=10 [12:16:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 20 D0 07 01 3B 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A5 C1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F4 7B 02 00 35 04 06 00 98 DC E7 9C 0E 92 BA 66 96 3D 59 5C 82 A5 [12:16:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8E 7E 47 00 5E 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F4 7B 02 00 F4 03 04 00 B3 6D 93 66 B6 04 01 00 00 00 F1 A0 47 F1 DD 4B 6B [12:16:39]CommunicateWithHost err = 0 [12:16:39]CheckOFDResponse [12:16:39]1017 (14) - 77093643461234 [12:16:39]1041 (16) - 0000000000874899 [12:16:39]1040 (4) - 162804 [12:16:39]1012 (4) - 14.07.2024 06:18 [12:16:39]1206 (1) - 0 [12:16:39]OFD Sender: Remove packet 162804 [12:16:39]ProducePacketName [12:16:39]name=ofd_packets/00162804 [12:16:39]NVStorageDeleteData [12:16:39]Write to MH i2c: 01 00 00 DA 15 EF [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: 01 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: 01 07 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: 01 07 00 DA 15 00 00 00 00 00 D7 0C D9 [12:16:39]RasterBufferAndPrint [12:16:39]line [12:16:39]line [12:16:39]line [12:16:39]line [12:16:39]line [12:16:39]written 0, free lines is 3295 [12:16:39]MH_Cut [12:16:39]Write to MH i2c: D1 01 00 E1 15 01 C8 [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: D1 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: D1 01 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: D1 01 00 E1 15 00 C7 [12:16:39]Write to MH i2c: 01 00 00 E2 15 F7 [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]OFD Sender: No OFD packet to send [12:16:40]*** Cut start [12:16:40]*** Purtial cut [12:16:40]*** Stage 1: CUTSNS_PIN = 1 [12:16:40]Read from MH i2c: 01 [12:16:40]MH_I2C_Read... [12:16:40]*** Stop cut motor [12:16:40]*** Cut end [12:16:40]Read from MH i2c: 01 07 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 07 00 E2 15 00 00 00 00 00 FF 0F 0C [12:16:40]process_action close_receipt done [12:16:40]requested_data is exist [12:16:40]produce_requested_data [12:16:40]requested_item fm.sn is exist - process it [12:16:40]wFMCommunicate request_size=4 [12:16:40]MH_SAM_APDU [12:16:40]CAPDU: 80 11 00 00 [12:16:40]Write to MH i2c: E2 08 00 E3 15 80 11 00 00 00 00 00 00 72 [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 17 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 17 00 E3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D2 [12:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:16:40]wFMCommunicate OK [12:16:40]requested_item fd.num is exist - process it [12:16:40]SAM_PROTO_GetFieldsCounters [12:16:40]wFMCommunicate request_size=4 [12:16:40]MH_SAM_APDU [12:16:40]CAPDU: 80 13 00 00 [12:16:40]Write to MH i2c: E2 08 00 E4 15 80 13 00 00 00 00 00 00 75 [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 62 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 62 00 E4 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F4 7B 02 00 0E 04 04 00 CF 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 45 [12:16:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F4 7B 02 00 0E 04 04 00 CF 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 [12:16:40]wFMCommunicate OK [12:16:40]SAM_PROTO_GetFieldsCounters done [12:16:40]requested_item shift.num is exist - process it [12:16:40]requested_item shift.opened is exist - process it [12:16:40]req_shift_opened [12:16:40]FM_GetShiftState [12:16:40]SAM_PROTO_GetShiftState [12:16:40]wFMCommunicate request_size=4 [12:16:40]MH_SAM_APDU [12:16:40]CAPDU: 80 13 01 00 [12:16:40]Write to MH i2c: E2 08 00 E5 15 80 13 01 00 00 00 00 00 77 [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:40]Read from MH i2c: E2 0E 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 0E 00 E5 15 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 AD [12:16:40]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:16:40]wFMCommunicate OK [12:16:40]SAM_PROTO_GetShiftState done [12:16:40]FM_GetShiftState done [12:16:40]req_shift_opened done [12:16:40]requested_item shift.open_date is exist - process it [12:16:40]req_shift_open_date [12:16:40]req_shift_open_date done [12:16:40]produce_requested_data done [12:16:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162804,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:16:40]process_action_free close_receipt [12:16:40]json_value_free [12:16:40]json_value_free done [12:16:40]process_json_proto returns [12:16:40]Send response to host [12:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162804,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:16:40]free response buf [12:16:40]execute_script done [12:16:40]execute_script returns [12:16:40]free content buf [12:16:40]Sock 9.Close socket [12:16:40]Sock 9.Thread stoped [12:16:44]OFD Sender: No OFD packet to send [12:16:45]accept exits with 7 [12:16:45]New connection [12:16:45]New thread 3066879332 created [12:16:45]Thread 3066735972 joined [12:16:45]Waiting for new connection... [12:16:45] Sock 7.Parse request [12:16:45]Sock 7.Check first char [12:16:45]Sock 7.First char is OK [12:16:45]request: POST /json_proto HTTP/1.0 [12:16:45]Method: POST [12:16:45]URL: /json_proto [12:16:45]Method is POST - this is cgi request [12:16:45]url: /json_proto [12:16:45]query_string will be loaded in cgi processing [12:16:45]execute_cgi json_proto POST (null) [12:16:45]execute_cgi path=json_proto method=POST [12:16:45]POST find Content-Length [12:16:45]Host: 172.17.39.67:8080 [12:16:45]Content-Length: 683 [12:16:45]Content-Type: application/json [12:16:45] [12:16:45]POST finish read [12:16:45]Found Content-Length = 683 [12:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 45.250, "sum" : 3000.08, "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" ] } } [12:16:45]execute_script... [12:16:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 45.250, "sum" : 3000.08, "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" ] } } [12:16:45]POST & json_proto [12:16:45]process_json_proto [12:16:45]json parsed OK: [12:16:45]protocol is kg_v1.0 [12:16:45]action value=close_receipt [12:16:45]process_action close_receipt [12:16:45]cmd_close_receipt [12:16:45]MH_GetDate [12:16:45]Write to MH i2c: F0 00 00 E6 15 EA [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: F0 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: F0 09 00 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: F0 09 00 E6 15 00 AE C1 93 66 B6 85 93 66 8F [12:16:45]GetLastDocTimeStamp 1720959397 [12:16:45]current date 1720959406 [12:16:45]FM_GetShiftState [12:16:45]SAM_PROTO_GetShiftState [12:16:45]wFMCommunicate request_size=4 [12:16:45]MH_SAM_APDU [12:16:45]CAPDU: 80 13 01 00 [12:16:45]Write to MH i2c: E2 08 00 E7 15 80 13 01 00 00 00 00 00 79 [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:45]Read from MH i2c: E2 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 0E 00 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 0E 00 E7 15 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 AF [12:16:45]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:16:45]wFMCommunicate OK [12:16:45]SAM_PROTO_GetShiftState done [12:16:45]FM_GetShiftState done [12:16:45]opened in 1720915483 [12:16:45]opened+sec_in_day 1721001883 [12:16:45]quantity*price = 300007 [12:16:45]sum+1 = 300009 [12:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 117 14.07.2024 12:16 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162805 ФПД: 143731719396625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121646&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162805&fm=143731719396625&tin=02508201610067®Number=0000000000090858&sum=300000 [12:16:47]StoreToDocumentArchive [12:16:47]shift 463 fd 162805 [12:16:47]save to /storage/0463/doc_00162805 [12:16:47]save last doc name /storage/0463/doc_00162805 to /storage/kkm_last_doc_name [12:16:47]save OK [12:16:47]Clear old archive folders... [12:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:47]tlvbuf is 0130C460 [12:16:47]SAM_PROTO_ClearQueue [12:16:47]wFMCommunicate request_size=4 [12:16:47]MH_SAM_APDU [12:16:47]CAPDU: 80 09 00 00 [12:16:47]Write to MH i2c: E2 08 00 F4 15 80 09 00 00 00 00 00 00 7B [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:47]Read from MH i2c: E2 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 03 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 03 00 F4 15 00 90 00 7D [12:16:47]RAPDU: 90 00 [12:16:47]wFMCommunicate OK [12:16:47]SAM_PROTO_ClearQueue done [12:16:47]KKMCreateOFDPacket [12:16:47]OFDProtocolAddRootSTLVToBuf [12:16:47]FM_MakeSignedData [12:16:47]FM_MakeSignedData [12:16:47]SAM_PROTO_SignData [12:16:47]wFMCommunicate request_size=4 [12:16:47]MH_SAM_APDU [12:16:47]CAPDU: 80 0D 01 02 [12:16:47]Write to MH i2c: E2 08 00 F5 15 80 0D 01 02 00 00 00 00 83 [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:47]Read from MH i2c: E2 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 03 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 03 00 F5 15 00 90 00 7E [12:16:47]RAPDU: 90 00 [12:16:47]wFMCommunicate OK [12:16:47]wFMCommunicate request_size=255 [12:16:47]MH_SAM_APDU [12:16: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 C2 B0 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 93 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 73 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 75 00 00 00 F4 03 04 00 AE C1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F5 7B 02 00 35 04 06 00 82 [12:16:47]Write to MH i2c: E2 02 01 F6 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 B0 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 93 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 73 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 75 00 00 00 F4 03 04 00 AE C1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F5 7B 02 00 35 04 06 00 82 00 00 76 [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:47]Read from MH i2c: E2 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 03 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 03 00 F6 15 00 90 00 7F [12:16:47]RAPDU: 90 00 [12:16:47]wFMCommunicate OK [12:16:47]wFMCommunicate request_size=10 [12:16:47]MH_SAM_APDU [12:16:47]CAPDU: 80 0D 02 02 05 B9 26 13 DD 11 [12:16:47]Write to MH i2c: E2 0D 00 F7 15 80 0D 02 02 05 00 B9 26 13 DD 11 00 00 70 [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:47]Read from MH i2c: E2 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 03 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 03 00 F7 15 00 90 00 80 [12:16:47]RAPDU: 90 00 [12:16:47]wFMCommunicate OK [12:16:47]wFMCommunicate request_size=4 [12:16:47]MH_SAM_APDU [12:16:47]CAPDU: 80 0D 03 02 [12:16:47]Write to MH i2c: E2 08 00 F8 15 80 0D 03 02 00 00 00 00 88 [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:47]Read from MH i2c: E2 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 0B 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 0B 00 F8 15 00 9C B7 1F 98 8B 24 4E 9E 90 00 2E [12:16:47]RAPDU: 9C B7 1F 98 8B 24 4E 9E 90 00 [12:16:47]wFMCommunicate OK [12:16:47]SAM_PROTO_SignData done [12:16:47]FM_MakeSignedData done [12:16:47]CreateOFDProtocolMessage [12:16:47]wFMCommunicate request_size=4 [12:16:47]MH_SAM_APDU [12:16:47]CAPDU: 80 11 00 00 [12:16:47]Write to MH i2c: E2 08 00 F9 15 80 11 00 00 00 00 00 00 88 [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:47]Read from MH i2c: E2 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 17 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: E2 17 00 F9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E8 [12:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:16:47]wFMCommunicate OK [12:16:47]CreateOFDProtocolMessage done [12:16:47]OFDSenderStorePacket 162805 [12:16:47]StoreOFDPacket docnum=162805 [12:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6C C0 07 01 46 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 C2 B0 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 93 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 73 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 75 00 00 00 F4 03 04 00 AE C1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F5 7B 02 00 35 04 06 00 82 B9 26 13 DD 11 9C B7 1F 98 8B 24 4E 9E [12:16:47]CheckFolder [12:16:47]dirname=/storage/ofd_packets [12:16:47]CheckFolder done [12:16:47]ProducePacketName [12:16:47]name=ofd_packets/00162805 [12:16:47]NVStorageSaveData ofd_packets/00162805 [12:16:47]File name is /storage/ofd_packets/00162805 [12:16:47]Write 301 bytes [12:16:47]NVStorageSaveData done [12:16:47]OFDSenderStorePacket done [12:16:47]KKMCreateOFDPacket done [12:16:47]NVStorageSaveData kkm_last_timestamp [12:16:47]File name is /storage/kkm_last_timestamp [12:16:47]Write 4 bytes [12:16:47]NVStorageSaveData done [12:16:47]ExternCall_PrintAddStr [12:16:47]wPrintStart [12:16:47]Write to MH i2c: 01 00 00 FA 15 0F [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: 01 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: 01 07 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: 01 07 00 FA 15 00 00 00 00 00 FF 0F 24 [12:16:47]RasterBufferAndPrint [12:16:47]line Счет N : (1)1319402 [12:16:47]line ИНН: 02508201610067 [12:16:47]line Контрольно-Кассовый Чек [12:16:47]line ПРОДАЖА [12:16:47]line ТРК (МРК, ГНК) : 33 [12:16:47]line Товар: 2710124130 [12:16:47]line Аи-92-К-5 [12:16:47]line 45.250 * 66.30 [12:16:47]line = 3000.08 [12:16:47]line НДС 12% НСП 1% [12:16:47]line > о реализуемом товаре [12:16:47]line ОКРУГЛЕНИЕ: -0.08 [12:16:47]line ИТОГО: 3000.00 [12:16:47]line Внесено: 3000.00 [12:16:47]line СДАЧА: 0.00 [12:16:47]line НСП 1% : 26.55 [12:16:47]line НДС 12% : 318.59 [12:16:47]line Наличными: 3000.00 [12:16:47]line Безнал.: 0.00 [12:16:47]line Место: АЗС № 140 "Партнер Нефть" [12:16:47]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:16:47]line СНО: Общий режим [12:16:47]line Чек 117 14.07.2024 12:16 [12:16:47]line Смена: 463 ФФД: 1.0 [12:16:47]line ЗНМ: 0300000129 [12:16:47]line РНМ: 0000000000090858 [12:16:47]line Версия ККМ: 001 [12:16:47]line ФМ: 0000000000874899 [12:16:47]line ФД: 162805 [12:16:47]line ФПД: 143731719396625 [12:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121646&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162805&fm=143731719396625&tin=02508201610067®Number=0000000000090858&sum=300000 [12:16:47]written 0, free lines is 4095 [12:16:47]OFD Sender: Processing packet 162805 [packets to send 106, broken 105] [12:16:47]ProducePacketName [12:16:47]name=ofd_packets/00162805 [12:16:47]OFD Sender: To server: pG, [12:16:47]CommunicateWithHost lk.salyk.kg:30040 [12:16:47]ConnectInit lk.salyk.kg [12:16:47]Connected sock=10 [12:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6C C0 07 01 46 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 C2 B0 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 93 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 73 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 75 00 00 00 F4 03 04 00 AE C1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F5 7B 02 00 35 04 06 00 82 B9 26 13 DD 11 9C B7 1F 98 8B 24 4E 9E [12:16:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 11 74 47 00 65 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 34 38 39 39 10 04 04 00 F5 7B 02 00 F4 03 04 00 BC 6D 93 66 B6 04 01 00 00 4E 6E CE 1C CD 80 2D E6 [12:16:47]CommunicateWithHost err = 0 [12:16:47]CheckOFDResponse [12:16:47]1017 (14) - 77093643461234 [12:16:47]1041 (16) - 0000000000874899 [12:16:47]1040 (4) - 162805 [12:16:47]1012 (4) - 14.07.2024 06:18 [12:16:47]1206 (1) - 0 [12:16:47]OFD Sender: Remove packet 162805 [12:16:47]ProducePacketName [12:16:47]name=ofd_packets/00162805 [12:16:47]NVStorageDeleteData [12:16:48]Write to MH i2c: 01 00 00 25 16 3B [12:16:48]Write i2c OK [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: 01 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: 01 07 00 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: 01 07 00 25 16 00 00 00 00 00 F4 0C 42 [12:16:48]RasterBufferAndPrint [12:16:48]line [12:16:48]line [12:16:48]line [12:16:48]line [12:16:48]line [12:16:48]written 0, free lines is 3328 [12:16:48]MH_Cut [12:16:48]Write to MH i2c: D1 01 00 2C 16 01 14 [12:16:48]Write i2c OK [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: D1 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: D1 01 00 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: D1 01 00 2C 16 00 13 [12:16:48]Write to MH i2c: 01 00 00 2D 16 43 [12:16:48]Write i2c OK [12:16:48]MH_I2C_Read... [12:16:48]OFD Sender: No OFD packet to send [12:16:48]*** Cut start [12:16:48]*** Purtial cut [12:16:48]*** CUTSNS_PIN = 0 [12:16:48]*** Stage 1: CUTSNS_PIN = 1 [12:16:50]Read from MH i2c: 01 [12:16:50]MH_I2C_Read... [12:16:50]*** Stop cut motor [12:16:50]*** Cut end [12:16:50]Read from MH i2c: 01 07 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: 01 07 00 2D 16 00 00 00 00 00 FF 0F 58 [12:16:50]process_action close_receipt done [12:16:50]requested_data is exist [12:16:50]produce_requested_data [12:16:50]requested_item fm.sn is exist - process it [12:16:50]wFMCommunicate request_size=4 [12:16:50]MH_SAM_APDU [12:16:50]CAPDU: 80 11 00 00 [12:16:50]Write to MH i2c: E2 08 00 2E 16 80 11 00 00 00 00 00 00 BE [12:16:50]Write i2c OK [12:16:50]MH_I2C_Read... [12:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:50]Read from MH i2c: E2 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 17 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 17 00 2E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1E [12:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:16:50]wFMCommunicate OK [12:16:50]requested_item fd.num is exist - process it [12:16:50]SAM_PROTO_GetFieldsCounters [12:16:50]wFMCommunicate request_size=4 [12:16:50]MH_SAM_APDU [12:16:50]CAPDU: 80 13 00 00 [12:16:50]Write to MH i2c: E2 08 00 2F 16 80 13 00 00 00 00 00 00 C1 [12:16:50]Write i2c OK [12:16:50]MH_I2C_Read... [12:16:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:50]Read from MH i2c: E2 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 62 00 [12:16:50]MH_I2C_Read... [12:16:50]Read from MH i2c: E2 62 00 2F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F5 7B 02 00 0E 04 04 00 CF 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 95 [12:16:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F5 7B 02 00 0E 04 04 00 CF 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 [12:16:51]wFMCommunicate OK [12:16:51]SAM_PROTO_GetFieldsCounters done [12:16:51]requested_item shift.num is exist - process it [12:16:51]requested_item shift.opened is exist - process it [12:16:51]req_shift_opened [12:16:51]FM_GetShiftState [12:16:51]SAM_PROTO_GetShiftState [12:16:51]wFMCommunicate request_size=4 [12:16:51]MH_SAM_APDU [12:16:51]CAPDU: 80 13 01 00 [12:16:51]Write to MH i2c: E2 08 00 30 16 80 13 01 00 00 00 00 00 C3 [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:51]Read from MH i2c: E2 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 0E 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 0E 00 30 16 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F9 [12:16:51]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:16:51]wFMCommunicate OK [12:16:51]SAM_PROTO_GetShiftState done [12:16:51]FM_GetShiftState done [12:16:51]req_shift_opened done [12:16:51]requested_item shift.open_date is exist - process it [12:16:51]req_shift_open_date [12:16:51]req_shift_open_date done [12:16:51]produce_requested_data done [12:16:51]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162805,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:16:51]process_action_free close_receipt [12:16:51]json_value_free [12:16:51]json_value_free done [12:16:51]process_json_proto returns [12:16:51]Send response to host [12:16:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162805,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:16:51]free response buf [12:16:51]execute_script done [12:16:51]execute_script returns [12:16:51]free content buf [12:16:51]Sock 7.Close socket [12:16:51]Sock 7.Thread stoped [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:46]accept exits with 9 [12:17:46]New connection [12:17:46]New thread 3066735972 created [12:17:46]Thread 3066879332 joined [12:17:46]Waiting for new connection... [12:17:46] Sock 9.Parse request [12:17:46]Sock 9.Check first char [12:17:46]Sock 9.First char is OK [12:17:46]request: POST /json_proto HTTP/1.0 [12:17:46]Method: POST [12:17:46]URL: /json_proto [12:17:46]Method is POST - this is cgi request [12:17:46]url: /json_proto [12:17:46]query_string will be loaded in cgi processing [12:17:46]execute_cgi json_proto POST (null) [12:17:46]execute_cgi path=json_proto method=POST [12:17:46]POST find Content-Length [12:17:46]Host: 172.17.39.67:8080 [12:17:46]Content-Length: 678 [12:17:46]Content-Type: application/json [12:17:46] [12:17:46]POST finish read [12:17:46]Found Content-Length = 678 [12:17:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.810, "sum" : 650.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:46]execute_script... [12:17: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)1319404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.810, "sum" : 650.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:46]POST & json_proto [12:17:46]process_json_proto [12:17:46]json parsed OK: [12:17:46]protocol is kg_v1.0 [12:17:46]action value=close_receipt [12:17:46]process_action close_receipt [12:17:46]cmd_close_receipt [12:17:46]MH_GetDate [12:17:46]Write to MH i2c: F0 00 00 31 16 36 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: F0 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: F0 09 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: F0 09 00 31 16 00 EB C1 93 66 B6 85 93 66 18 [12:17:46]GetLastDocTimeStamp 1720959406 [12:17:46]current date 1720959467 [12:17:46]FM_GetShiftState [12:17:46]SAM_PROTO_GetShiftState [12:17:46]wFMCommunicate request_size=4 [12:17:46]MH_SAM_APDU [12:17:46]CAPDU: 80 13 01 00 [12:17:46]Write to MH i2c: E2 08 00 32 16 80 13 01 00 00 00 00 00 C5 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 0E 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 0E 00 32 16 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 FB [12:17:46]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:17:46]wFMCommunicate OK [12:17:46]SAM_PROTO_GetShiftState done [12:17:46]FM_GetShiftState done [12:17:46]opened in 1720915483 [12:17:46]opened+sec_in_day 1721001883 [12:17:46]quantity*price = 65040 [12:17:46]sum+1 = 65041 [12:17:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 118 14.07.2024 12:17 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162806 ФПД: 7102890029522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121747&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162806&fm=7102890029522&tin=02508201610067®Number=0000000000090858&sum=65000 [12:17:47]StoreToDocumentArchive [12:17:47]shift 463 fd 162806 [12:17:47]save to /storage/0463/doc_00162806 [12:17:47]save last doc name /storage/0463/doc_00162806 to /storage/kkm_last_doc_name [12:17:47]save OK [12:17:47]Clear old archive folders... [12:17:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:47]tlvbuf is 0134E0B0 [12:17:47]SAM_PROTO_ClearQueue [12:17:47]wFMCommunicate request_size=4 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 09 00 00 [12:17:47]Write to MH i2c: E2 08 00 3F 16 80 09 00 00 00 00 00 00 C7 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 3F 16 00 90 00 C9 [12:17:47]RAPDU: 90 00 [12:17:47]wFMCommunicate OK [12:17:47]SAM_PROTO_ClearQueue done [12:17:47]KKMCreateOFDPacket [12:17:47]OFDProtocolAddRootSTLVToBuf [12:17:47]FM_MakeSignedData [12:17:47]FM_MakeSignedData [12:17:47]SAM_PROTO_SignData [12:17:47]wFMCommunicate request_size=4 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 0D 01 02 [12:17:47]Write to MH i2c: E2 08 00 40 16 80 0D 01 02 00 00 00 00 CF [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 40 16 00 90 00 CA [12:17:47]RAPDU: 90 00 [12:17:47]wFMCommunicate OK [12:17:47]wFMCommunicate request_size=255 [12:17:47]MH_SAM_APDU [12:17: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 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EB C1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F6 7B 02 00 35 04 06 00 06 [12:17:47]Write to MH i2c: E2 02 01 41 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EB C1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F6 7B 02 00 35 04 06 00 06 00 00 F5 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 41 16 00 90 00 CB [12:17:47]RAPDU: 90 00 [12:17:47]wFMCommunicate OK [12:17:47]wFMCommunicate request_size=10 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 0D 02 02 05 75 C5 3C B1 D2 [12:17:47]Write to MH i2c: E2 0D 00 42 16 80 0D 02 02 05 00 75 C5 3C B1 D2 00 00 D5 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 03 00 42 16 00 90 00 CC [12:17:47]RAPDU: 90 00 [12:17:47]wFMCommunicate OK [12:17:47]wFMCommunicate request_size=4 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 0D 03 02 [12:17:47]Write to MH i2c: E2 08 00 43 16 80 0D 03 02 00 00 00 00 D4 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 0B 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 0B 00 43 16 00 1A EF 83 E4 7B B9 8F 52 90 00 5A [12:17:47]RAPDU: 1A EF 83 E4 7B B9 8F 52 90 00 [12:17:47]wFMCommunicate OK [12:17:47]SAM_PROTO_SignData done [12:17:47]FM_MakeSignedData done [12:17:47]CreateOFDProtocolMessage [12:17:47]wFMCommunicate request_size=4 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 11 00 00 [12:17:47]Write to MH i2c: E2 08 00 44 16 80 11 00 00 00 00 00 00 D4 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 17 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 17 00 44 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 34 [12:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:17:47]wFMCommunicate OK [12:17:47]CreateOFDProtocolMessage done [12:17:47]OFDSenderStorePacket 162806 [12:17:47]StoreOFDPacket docnum=162806 [12:17:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 27 E2 07 01 95 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EB C1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F6 7B 02 00 35 04 06 00 06 75 C5 3C B1 D2 1A EF 83 E4 7B B9 8F 52 [12:17:47]CheckFolder [12:17:47]dirname=/storage/ofd_packets [12:17:47]CheckFolder done [12:17:47]ProducePacketName [12:17:47]name=ofd_packets/00162806 [12:17:47]NVStorageSaveData ofd_packets/00162806 [12:17:47]File name is /storage/ofd_packets/00162806 [12:17:47]Write 301 bytes [12:17:47]NVStorageSaveData done [12:17:47]OFDSenderStorePacket done [12:17:47]KKMCreateOFDPacket done [12:17:47]NVStorageSaveData kkm_last_timestamp [12:17:47]File name is /storage/kkm_last_timestamp [12:17:47]Write 4 bytes [12:17:47]NVStorageSaveData done [12:17:47]ExternCall_PrintAddStr [12:17:47]wPrintStart [12:17:47]Write to MH i2c: 01 00 00 45 16 5B [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 07 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: 01 07 00 45 16 00 00 00 00 00 FF 0F 70 [12:17:47]RasterBufferAndPrint [12:17:47]line Счет N : (1)1319404 [12:17:47]line ИНН: 02508201610067 [12:17:47]line Контрольно-Кассовый Чек [12:17:47]line ПРОДАЖА [12:17:47]line ТРК (МРК, ГНК) : 63 [12:17:47]line Товар: 2710124130 [12:17:47]line Аи-92-К-5 [12:17:47]line 9.810 * 66.30 [12:17:47]line = 650.40 [12:17:47]line НДС 12% НСП 1% [12:17:47]line > о реализуемом товаре [12:17:47]line ОКРУГЛЕНИЕ: -0.40 [12:17:47]line ИТОГО: 650.00 [12:17:47]line Внесено: 650.00 [12:17:47]line СДАЧА: 0.00 [12:17:47]line НСП 1% : 5.76 [12:17:47]line НДС 12% : 69.07 [12:17:47]line Наличными: 650.00 [12:17:47]line Безнал.: 0.00 [12:17:47]line Место: АЗС № 140 "Партнер Нефть" [12:17:47]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:17:47]line СНО: Общий режим [12:17:47]line Чек 118 14.07.2024 12:17 [12:17:47]line Смена: 463 ФФД: 1.0 [12:17:47]line ЗНМ: 0300000129 [12:17:47]line РНМ: 0000000000090858 [12:17:47]line Версия ККМ: 001 [12:17:47]line ФМ: 0000000000874899 [12:17:47]line ФД: 162806 [12:17:47]line ФПД: 7102890029522 [12:17:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T121747&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162806&fm=7102890029522&tin=02508201610067®Number=0000000000090858&sum=65000 [12:17:48]OFD Sender: Processing packet 162806 [packets to send 106, broken 105] [12:17:48]ProducePacketName [12:17:48]name=ofd_packets/00162806 [12:17:48]OFD Sender: To server: pG, [12:17:48]CommunicateWithHost lk.salyk.kg:30040 [12:17:48]ConnectInit lk.salyk.kg [12:17:48]written 0, free lines is 4095 [12:17:48]Connected sock=10 [12:17:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 27 E2 07 01 95 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EB C1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F6 7B 02 00 35 04 06 00 06 75 C5 3C B1 D2 1A EF 83 E4 7B B9 8F 52 [12:17:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 31 34 47 00 5C 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F6 7B 02 00 F4 03 04 00 F8 6D 93 66 B6 04 01 00 00 B4 E2 4E C3 BD D8 89 5C [12:17:48]CommunicateWithHost err = 0 [12:17:48]CheckOFDResponse [12:17:48]1017 (14) - 77093643461234 [12:17:48]1041 (16) - 0000000000874899 [12:17:48]1040 (4) - 162806 [12:17:48]1012 (4) - 14.07.2024 06:19 [12:17:48]1206 (1) - 0 [12:17:48]OFD Sender: Remove packet 162806 [12:17:48]ProducePacketName [12:17:48]name=ofd_packets/00162806 [12:17:48]NVStorageDeleteData [12:17:48]Write to MH i2c: 01 00 00 70 16 86 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 07 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 07 00 70 16 00 00 00 00 00 F1 0C 8A [12:17:48]RasterBufferAndPrint [12:17:48]line [12:17:48]line [12:17:48]line [12:17:48]line [12:17:48]line [12:17:48]written 0, free lines is 3319 [12:17:48]MH_Cut [12:17:48]Write to MH i2c: D1 01 00 77 16 01 5F [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: D1 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: D1 01 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: D1 01 00 77 16 00 5E [12:17:48]Write to MH i2c: 01 00 00 78 16 8E [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]OFD Sender: No OFD packet to send [12:17:49]*** Cut start [12:17:49]*** Purtial cut [12:17:49]*** Stage 1: CUTSNS_PIN = 1 [12:17:49]Read from MH i2c: 01 [12:17:49]MH_I2C_Read... [12:17:49]*** Stop cut motor [12:17:49]*** Cut end [12:17:49]Read from MH i2c: 01 07 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 07 00 78 16 00 00 00 00 00 FF 0F A3 [12:17:49]process_action close_receipt done [12:17:49]requested_data is exist [12:17:49]produce_requested_data [12:17:49]requested_item fm.sn is exist - process it [12:17:49]wFMCommunicate request_size=4 [12:17:49]MH_SAM_APDU [12:17:49]CAPDU: 80 11 00 00 [12:17:49]Write to MH i2c: E2 08 00 79 16 80 11 00 00 00 00 00 00 09 [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 17 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 17 00 79 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 69 [12:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:17:49]wFMCommunicate OK [12:17:49]requested_item fd.num is exist - process it [12:17:49]SAM_PROTO_GetFieldsCounters [12:17:49]wFMCommunicate request_size=4 [12:17:49]MH_SAM_APDU [12:17:49]CAPDU: 80 13 00 00 [12:17:49]Write to MH i2c: E2 08 00 7A 16 80 13 00 00 00 00 00 00 0C [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 62 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 62 00 7A 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F6 7B 02 00 0E 04 04 00 CF 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 E4 [12:17:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F6 7B 02 00 0E 04 04 00 CF 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 [12:17:49]wFMCommunicate OK [12:17:49]SAM_PROTO_GetFieldsCounters done [12:17:49]requested_item shift.num is exist - process it [12:17:49]requested_item shift.opened is exist - process it [12:17:49]req_shift_opened [12:17:49]FM_GetShiftState [12:17:49]SAM_PROTO_GetShiftState [12:17:49]wFMCommunicate request_size=4 [12:17:49]MH_SAM_APDU [12:17:49]CAPDU: 80 13 01 00 [12:17:49]Write to MH i2c: E2 08 00 7B 16 80 13 01 00 00 00 00 00 0E [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 0E 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 0E 00 7B 16 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 44 [12:17:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:17:49]wFMCommunicate OK [12:17:49]SAM_PROTO_GetShiftState done [12:17:49]FM_GetShiftState done [12:17:49]req_shift_opened done [12:17:49]requested_item shift.open_date is exist - process it [12:17:49]req_shift_open_date [12:17:49]req_shift_open_date done [12:17:49]produce_requested_data done [12:17:49]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162806,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:17:49]process_action_free close_receipt [12:17:49]json_value_free [12:17:49]json_value_free done [12:17:49]process_json_proto returns [12:17:49]Send response to host [12:17:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162806,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:17:49]free response buf [12:17:49]execute_script done [12:17:49]execute_script returns [12:17:49]free content buf [12:17:49]Sock 9.Close socket [12:17:49]Sock 9.Thread stoped [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:22]accept exits with 7 [12:25:22]New connection [12:25:22]New thread 3066879332 created [12:25:22]Thread 3066735972 joined [12:25:22]Waiting for new connection... [12:25:22] Sock 7.Parse request [12:25:22]Sock 7.Check first char [12:25:22]Sock 7.First char is OK [12:25:22]request: POST /json_proto HTTP/1.0 [12:25:22]Method: POST [12:25:22]URL: /json_proto [12:25:22]Method is POST - this is cgi request [12:25:22]url: /json_proto [12:25:22]query_string will be loaded in cgi processing [12:25:22]execute_cgi json_proto POST (null) [12:25:22]execute_cgi path=json_proto method=POST [12:25:22]POST find Content-Length [12:25:22]Host: 172.17.39.67:8080 [12:25:22]Content-Length: 648 [12:25:22]Content-Type: application/json [12:25:22] [12:25:22]POST finish read [12:25:22]Found Content-Length = 648 [12:25:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 60.000, "sum" : 4356.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4356.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:22]execute_script... [12:25: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)1319405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 60.000, "sum" : 4356.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4356.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:22]POST & json_proto [12:25:22]process_json_proto [12:25:22]json parsed OK: [12:25:22]protocol is kg_v1.0 [12:25:22]action value=close_receipt [12:25:22]process_action close_receipt [12:25:22]cmd_close_receipt [12:25:22]MH_GetDate [12:25:22]Write to MH i2c: F0 00 00 7C 16 81 [12:25:22]Write i2c OK [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: F0 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: F0 09 00 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: F0 09 00 7C 16 00 B3 C3 93 66 B6 85 93 66 2D [12:25:22]GetLastDocTimeStamp 1720959467 [12:25:22]current date 1720959923 [12:25:22]FM_GetShiftState [12:25:22]SAM_PROTO_GetShiftState [12:25:22]wFMCommunicate request_size=4 [12:25:22]MH_SAM_APDU [12:25:22]CAPDU: 80 13 01 00 [12:25:22]Write to MH i2c: E2 08 00 7D 16 80 13 01 00 00 00 00 00 10 [12:25:22]Write i2c OK [12:25:22]MH_I2C_Read... [12:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:22]Read from MH i2c: E2 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 0E 00 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 0E 00 7D 16 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 46 [12:25:22]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:25:22]wFMCommunicate OK [12:25:22]SAM_PROTO_GetShiftState done [12:25:22]FM_GetShiftState done [12:25:22]opened in 1720915483 [12:25:22]opened+sec_in_day 1721001883 [12:25:22]quantity*price = 435600 [12:25:22]sum+1 = 435601 [12:25:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4356.00 НСП 1% : 38.55 НДС 12% : 462.58 Наличными: 4356.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 119 14.07.2024 12:25 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162807 ФПД: 171577906951979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T122523&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162807&fm=171577906951979&tin=02508201610067®Number=0000000000090858&sum=435600 [12:25:23]StoreToDocumentArchive [12:25:23]shift 463 fd 162807 [12:25:23]save to /storage/0463/doc_00162807 [12:25:23]save last doc name /storage/0463/doc_00162807 to /storage/kkm_last_doc_name [12:25:23]save OK [12:25:23]Clear old archive folders... [12:25:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:25:23]tlvbuf is 0123B520 [12:25:23]SAM_PROTO_ClearQueue [12:25:23]wFMCommunicate request_size=4 [12:25:23]MH_SAM_APDU [12:25:23]CAPDU: 80 09 00 00 [12:25:23]Write to MH i2c: E2 08 00 8A 16 80 09 00 00 00 00 00 00 12 [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 [12:25:23]MH_I2C_Read... [12:25:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:23]Read from MH i2c: E2 03 00 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 03 00 8A 16 00 90 00 14 [12:25:23]RAPDU: 90 00 [12:25:23]wFMCommunicate OK [12:25:23]SAM_PROTO_ClearQueue done [12:25:23]KKMCreateOFDPacket [12:25:23]OFDProtocolAddRootSTLVToBuf [12:25:23]FM_MakeSignedData [12:25:23]FM_MakeSignedData [12:25:23]SAM_PROTO_SignData [12:25:23]wFMCommunicate request_size=4 [12:25:23]MH_SAM_APDU [12:25:23]CAPDU: 80 0D 01 02 [12:25:23]Write to MH i2c: E2 08 00 8B 16 80 0D 01 02 00 00 00 00 1A [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:23]Read from MH i2c: E2 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 03 00 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 03 00 8B 16 00 90 00 15 [12:25:23]RAPDU: 90 00 [12:25:23]wFMCommunicate OK [12:25:23]wFMCommunicate request_size=255 [12:25:23]MH_SAM_APDU [12:25:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A5 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A5 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 B4 00 00 00 00 07 04 06 00 90 A5 06 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 B3 C3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F7 7B 02 00 35 04 06 00 [12:25:23]Write to MH i2c: E2 02 01 8C 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A5 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A5 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 B4 00 00 00 00 07 04 06 00 90 A5 06 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 B3 C3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F7 7B 02 00 35 04 06 00 00 00 92 [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:23]Read from MH i2c: E2 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 03 00 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 03 00 8C 16 00 90 00 16 [12:25:23]RAPDU: 90 00 [12:25:23]wFMCommunicate OK [12:25:23]wFMCommunicate request_size=11 [12:25:23]MH_SAM_APDU [12:25:23]CAPDU: 80 0D 02 02 06 9C 0C 98 31 F7 2B [12:25:23]Write to MH i2c: E2 0E 00 8D 16 80 0D 02 02 06 00 9C 0C 98 31 F7 2B 00 00 BC [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:23]Read from MH i2c: E2 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 03 00 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 03 00 8D 16 00 90 00 17 [12:25:23]RAPDU: 90 00 [12:25:23]wFMCommunicate OK [12:25:23]wFMCommunicate request_size=4 [12:25:23]MH_SAM_APDU [12:25:23]CAPDU: 80 0D 03 02 [12:25:23]Write to MH i2c: E2 08 00 8E 16 80 0D 03 02 00 00 00 00 1F [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:24]Read from MH i2c: E2 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: E2 0B 00 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: E2 0B 00 8E 16 00 31 C2 18 56 E5 A1 E0 9B 90 00 82 [12:25:24]RAPDU: 31 C2 18 56 E5 A1 E0 9B 90 00 [12:25:24]wFMCommunicate OK [12:25:24]SAM_PROTO_SignData done [12:25:24]FM_MakeSignedData done [12:25:24]CreateOFDProtocolMessage [12:25:24]wFMCommunicate request_size=4 [12:25:24]MH_SAM_APDU [12:25:24]CAPDU: 80 11 00 00 [12:25:24]Write to MH i2c: E2 08 00 8F 16 80 11 00 00 00 00 00 00 1F [12:25:24]Write i2c OK [12:25:24]MH_I2C_Read... [12:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:24]Read from MH i2c: E2 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: E2 17 00 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: E2 17 00 8F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7F [12:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:25:24]wFMCommunicate OK [12:25:24]CreateOFDProtocolMessage done [12:25:24]OFDSenderStorePacket 162807 [12:25:24]StoreOFDPacket docnum=162807 [12:25:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 ED 1A 08 01 1F 4C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A5 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A5 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 B4 00 00 00 00 07 04 06 00 90 A5 06 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 B3 C3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F7 7B 02 00 35 04 06 00 9C 0C 98 31 F7 2B 31 C2 18 56 E5 A1 E0 9B [12:25:24]CheckFolder [12:25:24]dirname=/storage/ofd_packets [12:25:24]CheckFolder done [12:25:24]ProducePacketName [12:25:24]name=ofd_packets/00162807 [12:25:24]NVStorageSaveData ofd_packets/00162807 [12:25:24]File name is /storage/ofd_packets/00162807 [12:25:24]Write 302 bytes [12:25:24]NVStorageSaveData done [12:25:24]OFDSenderStorePacket done [12:25:24]KKMCreateOFDPacket done [12:25:24]NVStorageSaveData kkm_last_timestamp [12:25:24]File name is /storage/kkm_last_timestamp [12:25:24]Write 4 bytes [12:25:24]NVStorageSaveData done [12:25:24]ExternCall_PrintAddStr [12:25:24]wPrintStart [12:25:24]Write to MH i2c: 01 00 00 90 16 A6 [12:25:24]Write i2c OK [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: 01 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: 01 07 00 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: 01 07 00 90 16 00 00 00 00 00 FF 0F BB [12:25:24]RasterBufferAndPrint [12:25:24]line Счет N : (1)1319405 [12:25:24]line ИНН: 02508201610067 [12:25:24]line Контрольно-Кассовый Чек [12:25:24]line ПРОДАЖА [12:25:24]line ТРК (МРК, ГНК) : 41 [12:25:24]line Товар: 2710194210 [12:25:24]line ДТ(л)-К-5 [12:25:24]line 60.000 * 72.60 [12:25:24]line = 4356.00 [12:25:24]line НДС 12% НСП 1% [12:25:24]line > о реализуемом товаре [12:25:24]line ИТОГО: 4356.00 [12:25:24]line НСП 1% : 38.55 [12:25:24]line НДС 12% : 462.58 [12:25:24]line Наличными: 4356.00 [12:25:24]line Безнал.: 0.00 [12:25:24]line Место: АЗС № 140 "Партнер Нефть" [12:25:24]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:25:24]line СНО: Общий режим [12:25:24]line Чек 119 14.07.2024 12:25 [12:25:24]line Смена: 463 ФФД: 1.0 [12:25:24]line ЗНМ: 0300000129 [12:25:24]line РНМ: 0000000000090858 [12:25:24]line Версия ККМ: 001 [12:25:24]line ФМ: 0000000000874899 [12:25:24]line ФД: 162807 [12:25:24]line ФПД: 171577906951979 [12:25:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T122523&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162807&fm=171577906951979&tin=02508201610067®Number=0000000000090858&sum=435600 [12:25:24]OFD Sender: Processing packet 162807 [packets to send 106, broken 105] [12:25:24]ProducePacketName [12:25:24]name=ofd_packets/00162807 [12:25:24]OFD Sender: To server: pG, [12:25:24]CommunicateWithHost lk.salyk.kg:30040 [12:25:24]ConnectInit lk.salyk.kg [12:25:24]written 0, free lines is 4095 [12:25:24]Connected sock=10 [12:25:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 ED 1A 08 01 1F 4C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A5 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A5 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 B4 00 00 00 00 07 04 06 00 90 A5 06 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 B3 C3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F7 7B 02 00 35 04 06 00 9C 0C 98 31 F7 2B 31 C2 18 56 E5 A1 E0 9B [12:25:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 43 76 47 00 C5 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F7 7B 02 00 F4 03 04 00 C1 6F 93 66 B6 04 01 00 00 9F 24 35 A0 3B 05 D1 5C [12:25:24]CommunicateWithHost err = 0 [12:25:24]CheckOFDResponse [12:25:24]1017 (14) - 77093643461234 [12:25:24]1041 (16) - 0000000000874899 [12:25:24]1040 (4) - 162807 [12:25:24]1012 (4) - 14.07.2024 06:27 [12:25:24]1206 (1) - 0 [12:25:24]OFD Sender: Remove packet 162807 [12:25:24]ProducePacketName [12:25:24]name=ofd_packets/00162807 [12:25:24]NVStorageDeleteData [12:25:24]Write to MH i2c: 01 00 00 B8 16 CE [12:25:24]Write i2c OK [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: 01 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: 01 07 00 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: 01 07 00 B8 16 00 00 00 00 00 22 0D 04 [12:25:24]RasterBufferAndPrint [12:25:24]line [12:25:24]line [12:25:24]line [12:25:24]line [12:25:24]line [12:25:24]written 0, free lines is 3368 [12:25:24]MH_Cut [12:25:24]Write to MH i2c: D1 01 00 BF 16 01 A7 [12:25:24]Write i2c OK [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: D1 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: D1 01 00 [12:25:24]MH_I2C_Read... [12:25:24]Read from MH i2c: D1 01 00 BF 16 00 A6 [12:25:24]Write to MH i2c: 01 00 00 C0 16 D6 [12:25:24]Write i2c OK [12:25:24]MH_I2C_Read... [12:25:25]OFD Sender: No OFD packet to send [12:25:25]*** Cut start [12:25:25]*** Purtial cut [12:25:25]*** CUTSNS_PIN = 0 [12:25:25]*** Stage 1: CUTSNS_PIN = 1 [12:25:27]Read from MH i2c: 01 [12:25:27]MH_I2C_Read... [12:25:27]*** Stop cut motor [12:25:27]*** Cut end [12:25:27]Read from MH i2c: 01 07 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: 01 07 00 C0 16 00 00 00 00 00 FF 0F EB [12:25:27]process_action close_receipt done [12:25:27]requested_data is exist [12:25:27]produce_requested_data [12:25:27]requested_item fm.sn is exist - process it [12:25:27]wFMCommunicate request_size=4 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 11 00 00 [12:25:27]Write to MH i2c: E2 08 00 C1 16 80 11 00 00 00 00 00 00 51 [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 17 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 17 00 C1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B1 [12:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:25:27]wFMCommunicate OK [12:25:27]requested_item fd.num is exist - process it [12:25:27]SAM_PROTO_GetFieldsCounters [12:25:27]wFMCommunicate request_size=4 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 13 00 00 [12:25:27]Write to MH i2c: E2 08 00 C2 16 80 13 00 00 00 00 00 00 54 [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 62 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 62 00 C2 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F7 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [12:25:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F7 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:27]wFMCommunicate OK [12:25:27]SAM_PROTO_GetFieldsCounters done [12:25:27]requested_item shift.num is exist - process it [12:25:27]requested_item shift.opened is exist - process it [12:25:27]req_shift_opened [12:25:27]FM_GetShiftState [12:25:27]SAM_PROTO_GetShiftState [12:25:27]wFMCommunicate request_size=4 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 13 01 00 [12:25:27]Write to MH i2c: E2 08 00 C3 16 80 13 01 00 00 00 00 00 56 [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 0E 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 0E 00 C3 16 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8C [12:25:27]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:25:27]wFMCommunicate OK [12:25:27]SAM_PROTO_GetShiftState done [12:25:27]FM_GetShiftState done [12:25:27]req_shift_opened done [12:25:27]requested_item shift.open_date is exist - process it [12:25:27]req_shift_open_date [12:25:27]req_shift_open_date done [12:25:27]produce_requested_data done [12:25:27]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162807,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:25:27]process_action_free close_receipt [12:25:27]json_value_free [12:25:27]json_value_free done [12:25:27]process_json_proto returns [12:25:27]Send response to host [12:25:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162807,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:25:27]free response buf [12:25:27]execute_script done [12:25:27]execute_script returns [12:25:27]free content buf [12:25:27]Sock 7.Close socket [12:25:27]Sock 7.Thread stoped [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [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: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:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [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:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:48]accept exits with 9 [12:29:48]New connection [12:29:48]New thread 3066735972 created [12:29:48]Thread 3066879332 joined [12:29:48]Waiting for new connection... [12:29:48] Sock 9.Parse request [12:29:48]Sock 9.Check first char [12:29:48]Sock 9.First char is OK [12:29:48]request: POST /json_proto HTTP/1.0 [12:29:48]Method: POST [12:29:48]URL: /json_proto [12:29:48]Method is POST - this is cgi request [12:29:48]url: /json_proto [12:29:48]query_string will be loaded in cgi processing [12:29:48]execute_cgi json_proto POST (null) [12:29:48]execute_cgi path=json_proto method=POST [12:29:48]POST find Content-Length [12:29:48]Host: 172.17.39.67:8080 [12:29:48]Content-Length: 947 [12:29:48]Content-Type: application/json [12:29:48] [12:29:48]POST finish read [12:29:48]Found Content-Length = 947 [12:29:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.60, "quantity" : 66.690, "sum" : 4775.00, "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 140\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.69 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 4775.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:48]execute_script... [12:29: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)1319406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.60, "quantity" : 66.690, "sum" : 4775.00, "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 140\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.69 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 4775.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:48]POST & json_proto [12:29:48]process_json_proto [12:29:48]json parsed OK: [12:29:48]protocol is kg_v1.0 [12:29:48]action value=close_receipt [12:29:48]process_action close_receipt [12:29:48]cmd_close_receipt [12:29:48]MH_GetDate [12:29:48]Write to MH i2c: F0 00 00 C4 16 C9 [12:29:48]Write i2c OK [12:29:48]MH_I2C_Read... [12:29:48]Read from MH i2c: F0 [12:29:48]MH_I2C_Read... [12:29:48]Read from MH i2c: F0 09 00 [12:29:48]MH_I2C_Read... [12:29:48]Read from MH i2c: F0 09 00 C4 16 00 BD C4 93 66 B6 85 93 66 80 [12:29:48]GetLastDocTimeStamp 1720959923 [12:29:48]current date 1720960189 [12:29:48]FM_GetShiftState [12:29:48]SAM_PROTO_GetShiftState [12:29:48]wFMCommunicate request_size=4 [12:29:48]MH_SAM_APDU [12:29:48]CAPDU: 80 13 01 00 [12:29:48]Write to MH i2c: E2 08 00 C5 16 80 13 01 00 00 00 00 00 58 [12:29:48]Write i2c OK [12:29:48]MH_I2C_Read... [12:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:48]Read from MH i2c: E2 [12:29:48]MH_I2C_Read... [12:29:48]Read from MH i2c: E2 0E 00 [12:29:48]MH_I2C_Read... [12:29:48]Read from MH i2c: E2 0E 00 C5 16 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8E [12:29:48]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:29:48]wFMCommunicate OK [12:29:48]SAM_PROTO_GetShiftState done [12:29:48]FM_GetShiftState done [12:29:48]opened in 1720915483 [12:29:48]opened+sec_in_day 1721001883 [12:29:48]quantity*price = 477500 [12:29:48]sum+1 = 477501 [12:29:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4775.00 НСП 1% : 42.26 НДС 12% : 507.08 Наличными: 4775.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 120 14.07.2024 12:29 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Дисконтная программа ДТ номер 140 сэкономлено 66.69 сом ФМ: 0000000000874899 ФД: 162808 ФПД: 15551349390767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T122949&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162808&fm=15551349390767&tin=02508201610067®Number=0000000000090858&sum=477500 [12:29:49]StoreToDocumentArchive [12:29:49]shift 463 fd 162808 [12:29:49]save to /storage/0463/doc_00162808 [12:29:49]save last doc name /storage/0463/doc_00162808 to /storage/kkm_last_doc_name [12:29:49]save OK [12:29:49]Clear old archive folders... [12:29:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:29:49]tlvbuf is B6F467F0 [12:29:49]SAM_PROTO_ClearQueue [12:29:49]wFMCommunicate request_size=4 [12:29:49]MH_SAM_APDU [12:29:49]CAPDU: 80 09 00 00 [12:29:49]Write to MH i2c: E2 08 00 D2 16 80 09 00 00 00 00 00 00 5A [12:29:49]Write i2c OK [12:29:49]MH_I2C_Read... [12:29:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:49]Read from MH i2c: E2 [12:29:49]MH_I2C_Read... [12:29:49]Read from MH i2c: E2 03 00 [12:29:49]MH_I2C_Read... [12:29:49]Read from MH i2c: E2 03 00 D2 16 00 90 00 5C [12:29:49]RAPDU: 90 00 [12:29:49]wFMCommunicate OK [12:29:49]SAM_PROTO_ClearQueue done [12:29:49]KKMCreateOFDPacket [12:29:49]OFDProtocolAddRootSTLVToBuf [12:29:49]FM_MakeSignedData [12:29:49]FM_MakeSignedData [12:29:49]SAM_PROTO_SignData [12:29:49]wFMCommunicate request_size=4 [12:29:49]MH_SAM_APDU [12:29:49]CAPDU: 80 0D 01 02 [12:29:49]Write to MH i2c: E2 08 00 D3 16 80 0D 01 02 00 00 00 00 62 [12:29:49]Write i2c OK [12:29:49]MH_I2C_Read... [12:29:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:49]Read from MH i2c: E2 [12:29:49]MH_I2C_Read... [12:29:49]Read from MH i2c: E2 03 00 [12:29:49]MH_I2C_Read... [12:29:49]Read from MH i2c: E2 03 00 D3 16 00 90 00 5D [12:29:49]RAPDU: 90 00 [12:29:49]wFMCommunicate OK [12:29:49]wFMCommunicate request_size=255 [12:29:49]MH_SAM_APDU [12:29:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 04 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 3C 49 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 49 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 C6 00 00 00 00 07 04 06 00 3C 49 07 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 BD C4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F8 7B 02 00 35 04 06 00 [12:29:49]Write to MH i2c: E2 02 01 D4 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 04 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 3C 49 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 49 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 C6 00 00 00 00 07 04 06 00 3C 49 07 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 BD C4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F8 7B 02 00 35 04 06 00 00 00 9A [12:29:49]Write i2c OK [12:29:49]MH_I2C_Read... [12:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:49]Read from MH i2c: E2 [12:29:49]MH_I2C_Read... [12:29:49]Read from MH i2c: E2 03 00 [12:29:49]MH_I2C_Read... [12:29:49]Read from MH i2c: E2 03 00 D4 16 00 90 00 5E [12:29:49]RAPDU: 90 00 [12:29:49]wFMCommunicate OK [12:29:49]wFMCommunicate request_size=11 [12:29:49]MH_SAM_APDU [12:29:49]CAPDU: 80 0D 02 02 06 0E 24 D4 A7 FD AF [12:29:49]Write to MH i2c: E2 0E 00 D5 16 80 0D 02 02 06 00 0E 24 D4 A7 FD AF 00 00 CA [12:29:49]Write i2c OK [12:29:49]MH_I2C_Read... [12:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:50]Read from MH i2c: E2 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: E2 03 00 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: E2 03 00 D5 16 00 90 00 5F [12:29:50]RAPDU: 90 00 [12:29:50]wFMCommunicate OK [12:29:50]wFMCommunicate request_size=4 [12:29:50]MH_SAM_APDU [12:29:50]CAPDU: 80 0D 03 02 [12:29:50]Write to MH i2c: E2 08 00 D6 16 80 0D 03 02 00 00 00 00 67 [12:29:50]Write i2c OK [12:29:50]MH_I2C_Read... [12:29:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:50]Read from MH i2c: E2 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: E2 0B 00 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: E2 0B 00 D6 16 00 EE 86 53 5C 1E 19 11 E0 90 00 B3 [12:29:50]RAPDU: EE 86 53 5C 1E 19 11 E0 90 00 [12:29:50]wFMCommunicate OK [12:29:50]SAM_PROTO_SignData done [12:29:50]FM_MakeSignedData done [12:29:50]CreateOFDProtocolMessage [12:29:50]wFMCommunicate request_size=4 [12:29:50]MH_SAM_APDU [12:29:50]CAPDU: 80 11 00 00 [12:29:50]Write to MH i2c: E2 08 00 D7 16 80 11 00 00 00 00 00 00 67 [12:29:50]Write i2c OK [12:29:50]MH_I2C_Read... [12:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:50]Read from MH i2c: E2 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: E2 17 00 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: E2 17 00 D7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C7 [12:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:29:50]wFMCommunicate OK [12:29:50]CreateOFDProtocolMessage done [12:29:50]OFDSenderStorePacket 162808 [12:29:50]StoreOFDPacket docnum=162808 [12:29:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 82 E9 08 01 9E 35 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 04 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 3C 49 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 49 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 C6 00 00 00 00 07 04 06 00 3C 49 07 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 BD C4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F8 7B 02 00 35 04 06 00 0E 24 D4 A7 FD AF EE 86 53 5C 1E 19 11 E0 [12:29:50]CheckFolder [12:29:50]dirname=/storage/ofd_packets [12:29:50]CheckFolder done [12:29:50]ProducePacketName [12:29:50]name=ofd_packets/00162808 [12:29:50]NVStorageSaveData ofd_packets/00162808 [12:29:50]File name is /storage/ofd_packets/00162808 [12:29:50]Write 302 bytes [12:29:50]NVStorageSaveData done [12:29:50]OFDSenderStorePacket done [12:29:50]KKMCreateOFDPacket done [12:29:50]NVStorageSaveData kkm_last_timestamp [12:29:50]File name is /storage/kkm_last_timestamp [12:29:50]Write 4 bytes [12:29:50]NVStorageSaveData done [12:29:50]ExternCall_PrintAddStr [12:29:50]wPrintStart [12:29:50]Write to MH i2c: 01 00 00 D8 16 EE [12:29:50]Write i2c OK [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: 01 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: 01 07 00 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: 01 07 00 D8 16 00 00 00 00 00 FF 0F 03 [12:29:50]RasterBufferAndPrint [12:29:50]line Счет N : (1)1319406 [12:29:50]line ИНН: 02508201610067 [12:29:50]line Контрольно-Кассовый Чек [12:29:50]line ПРОДАЖА [12:29:50]line ТРК (МРК, ГНК) : 51 [12:29:50]line Товар: 2710194210 [12:29:50]line ДТ(л)-К-5 [12:29:50]line 66.690 * 71.60 [12:29:50]line = 4775.00 [12:29:50]line НДС 12% НСП 1% [12:29:50]line > о реализуемом товаре [12:29:50]line ИТОГО: 4775.00 [12:29:50]line НСП 1% : 42.26 [12:29:50]line НДС 12% : 507.08 [12:29:50]line Наличными: 4775.00 [12:29:50]line Безнал.: 0.00 [12:29:50]line Место: АЗС № 140 "Партнер Нефть" [12:29:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:29:50]line СНО: Общий режим [12:29:50]line Чек 120 14.07.2024 12:29 [12:29:50]line Смена: 463 ФФД: 1.0 [12:29:50]line ЗНМ: 0300000129 [12:29:50]line РНМ: 0000000000090858 [12:29:50]line Версия ККМ: 001 [12:29:50]line [12:29:50]line Дисконтная программа [12:29:50]line ДТ [12:29:50]line номер 140 [12:29:50]line сэкономлено 66.69 сом [12:29:50]line ФМ: 0000000000874899 [12:29:50]line ФД: 162808 [12:29:50]line ФПД: 15551349390767 [12:29:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T122949&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162808&fm=15551349390767&tin=02508201610067®Number=0000000000090858&sum=477500 [12:29:50]OFD Sender: Processing packet 162808 [packets to send 106, broken 105] [12:29:50]ProducePacketName [12:29:50]name=ofd_packets/00162808 [12:29:50]OFD Sender: To server: pG, [12:29:50]CommunicateWithHost lk.salyk.kg:30040 [12:29:50]ConnectInit lk.salyk.kg [12:29:50]written 0, free lines is 4095 [12:29:50]Connected sock=10 [12:29:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 82 E9 08 01 9E 35 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 04 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 3C 49 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 49 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 C6 00 00 00 00 07 04 06 00 3C 49 07 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 BD C4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F8 7B 02 00 35 04 06 00 0E 24 D4 A7 FD AF EE 86 53 5C 1E 19 11 E0 [12:29:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 65 C5 47 00 F9 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F8 7B 02 00 F4 03 04 00 CB 70 93 66 B6 04 01 00 00 3E 6E 8F 9B 28 6F A8 5C [12:29:50]CommunicateWithHost err = 0 [12:29:50]CheckOFDResponse [12:29:50]1017 (14) - 77093643461234 [12:29:50]1041 (16) - 0000000000874899 [12:29:50]1040 (4) - 162808 [12:29:50]1012 (4) - 14.07.2024 06:31 [12:29:50]1206 (1) - 0 [12:29:50]OFD Sender: Remove packet 162808 [12:29:50]ProducePacketName [12:29:50]name=ofd_packets/00162808 [12:29:50]NVStorageDeleteData [12:29:50]Write to MH i2c: 01 00 00 05 17 1C [12:29:50]Write i2c OK [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: 01 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: 01 07 00 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: 01 07 00 05 17 00 00 00 00 00 B7 0C E6 [12:29:50]RasterBufferAndPrint [12:29:50]line [12:29:50]line [12:29:50]line [12:29:50]line [12:29:50]line [12:29:50]written 0, free lines is 3262 [12:29:50]MH_Cut [12:29:50]Write to MH i2c: D1 01 00 0C 17 01 F5 [12:29:50]Write i2c OK [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: D1 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: D1 01 00 [12:29:50]MH_I2C_Read... [12:29:50]Read from MH i2c: D1 01 00 0C 17 00 F4 [12:29:50]Write to MH i2c: 01 00 00 0D 17 24 [12:29:50]Write i2c OK [12:29:50]MH_I2C_Read... [12:29:51]OFD Sender: No OFD packet to send [12:29:51]*** Cut start [12:29:51]*** Purtial cut [12:29:51]*** Stage 1: CUTSNS_PIN = 1 [12:29:51]Read from MH i2c: 01 [12:29:51]MH_I2C_Read... [12:29:51]*** Stop cut motor [12:29:51]*** Cut end [12:29:51]Read from MH i2c: 01 07 00 [12:29:51]MH_I2C_Read... [12:29:51]Read from MH i2c: 01 07 00 0D 17 00 00 00 00 00 FF 0F 39 [12:29:51]process_action close_receipt done [12:29:51]requested_data is exist [12:29:51]produce_requested_data [12:29:51]requested_item fm.sn is exist - process it [12:29:51]wFMCommunicate request_size=4 [12:29:51]MH_SAM_APDU [12:29:51]CAPDU: 80 11 00 00 [12:29:51]Write to MH i2c: E2 08 00 0E 17 80 11 00 00 00 00 00 00 9F [12:29:51]Write i2c OK [12:29:51]MH_I2C_Read... [12:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:52]Read from MH i2c: E2 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: E2 17 00 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: E2 17 00 0E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FF [12:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:29:52]wFMCommunicate OK [12:29:52]requested_item fd.num is exist - process it [12:29:52]SAM_PROTO_GetFieldsCounters [12:29:52]wFMCommunicate request_size=4 [12:29:52]MH_SAM_APDU [12:29:52]CAPDU: 80 13 00 00 [12:29:52]Write to MH i2c: E2 08 00 0F 17 80 13 00 00 00 00 00 00 A2 [12:29:52]Write i2c OK [12:29:52]MH_I2C_Read... [12:29:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:52]Read from MH i2c: E2 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: E2 62 00 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: E2 62 00 0F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F8 7B 02 00 0E 04 04 00 CF 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 82 [12:29:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F8 7B 02 00 0E 04 04 00 CF 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 [12:29:52]wFMCommunicate OK [12:29:52]SAM_PROTO_GetFieldsCounters done [12:29:52]requested_item shift.num is exist - process it [12:29:52]requested_item shift.opened is exist - process it [12:29:52]req_shift_opened [12:29:52]FM_GetShiftState [12:29:52]SAM_PROTO_GetShiftState [12:29:52]wFMCommunicate request_size=4 [12:29:52]MH_SAM_APDU [12:29:52]CAPDU: 80 13 01 00 [12:29:52]Write to MH i2c: E2 08 00 10 17 80 13 01 00 00 00 00 00 A4 [12:29:52]Write i2c OK [12:29:52]MH_I2C_Read... [12:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:52]Read from MH i2c: E2 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: E2 0E 00 [12:29:52]MH_I2C_Read... [12:29:52]Read from MH i2c: E2 0E 00 10 17 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 DA [12:29:52]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:29:52]wFMCommunicate OK [12:29:52]SAM_PROTO_GetShiftState done [12:29:52]FM_GetShiftState done [12:29:52]req_shift_opened done [12:29:52]requested_item shift.open_date is exist - process it [12:29:52]req_shift_open_date [12:29:52]req_shift_open_date done [12:29:52]produce_requested_data done [12:29:52]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162808,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:29:52]process_action_free close_receipt [12:29:52]json_value_free [12:29:52]json_value_free done [12:29:52]process_json_proto returns [12:29:52]Send response to host [12:29:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162808,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:29:52]free response buf [12:29:52]execute_script done [12:29:52]execute_script returns [12:29:52]free content buf [12:29:52]Sock 9.Close socket [12:29:52]Sock 9.Thread stoped [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:07]accept exits with 7 [12:31:07]New connection [12:31:07]New thread 3066879332 created [12:31:07]Thread 3066735972 joined [12:31:07]Waiting for new connection... [12:31:07] Sock 7.Parse request [12:31:07]Sock 7.Check first char [12:31:07]Sock 7.First char is OK [12:31:07]request: POST /json_proto HTTP/1.0 [12:31:07]Method: POST [12:31:07]URL: /json_proto [12:31:07]Method is POST - this is cgi request [12:31:07]url: /json_proto [12:31:07]query_string will be loaded in cgi processing [12:31:07]execute_cgi json_proto POST (null) [12:31:07]execute_cgi path=json_proto method=POST [12:31:07]POST find Content-Length [12:31:07]Host: 172.17.39.67:8080 [12:31:07]Content-Length: 678 [12:31:07]Content-Type: application/json [12:31:07] [12:31:07]POST finish read [12:31:07]Found Content-Length = 678 [12:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 5.380, "sum" : 400.27, "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:31:07]execute_script... [12:31:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 5.380, "sum" : 400.27, "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:31:07]POST & json_proto [12:31:07]process_json_proto [12:31:07]json parsed OK: [12:31:07]protocol is kg_v1.0 [12:31:07]action value=close_receipt [12:31:07]process_action close_receipt [12:31:07]cmd_close_receipt [12:31:07]MH_GetDate [12:31:07]Write to MH i2c: F0 00 00 11 17 17 [12:31:07]Write i2c OK [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: F0 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: F0 09 00 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: F0 09 00 11 17 00 0C C5 93 66 B6 85 93 66 1E [12:31:07]GetLastDocTimeStamp 1720960189 [12:31:07]current date 1720960268 [12:31:07]FM_GetShiftState [12:31:07]SAM_PROTO_GetShiftState [12:31:07]wFMCommunicate request_size=4 [12:31:07]MH_SAM_APDU [12:31:07]CAPDU: 80 13 01 00 [12:31:07]Write to MH i2c: E2 08 00 12 17 80 13 01 00 00 00 00 00 A6 [12:31:07]Write i2c OK [12:31:07]MH_I2C_Read... [12:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:07]Read from MH i2c: E2 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 0E 00 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 0E 00 12 17 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 DC [12:31:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:31:07]wFMCommunicate OK [12:31:07]SAM_PROTO_GetShiftState done [12:31:07]FM_GetShiftState done [12:31:07]opened in 1720915483 [12:31:07]opened+sec_in_day 1721001883 [12:31:07]quantity*price = 40027 [12:31:07]sum+1 = 40028 [12:31:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 121 14.07.2024 12:31 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162809 ФПД: 257008194763446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123108&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162809&fm=257008194763446&tin=02508201610067®Number=0000000000090858&sum=40000 [12:31:08]StoreToDocumentArchive [12:31:08]shift 463 fd 162809 [12:31:08]save to /storage/0463/doc_00162809 [12:31:08]save last doc name /storage/0463/doc_00162809 to /storage/kkm_last_doc_name [12:31:08]save OK [12:31:08]Clear old archive folders... [12:31:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:08]tlvbuf is B6E96860 [12:31:08]SAM_PROTO_ClearQueue [12:31:08]wFMCommunicate request_size=4 [12:31:08]MH_SAM_APDU [12:31:08]CAPDU: 80 09 00 00 [12:31:08]Write to MH i2c: E2 08 00 1F 17 80 09 00 00 00 00 00 00 A8 [12:31:08]Write i2c OK [12:31:08]MH_I2C_Read... [12:31:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:08]Read from MH i2c: E2 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 03 00 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 03 00 1F 17 00 90 00 AA [12:31:08]RAPDU: 90 00 [12:31:08]wFMCommunicate OK [12:31:08]SAM_PROTO_ClearQueue done [12:31:08]KKMCreateOFDPacket [12:31:08]OFDProtocolAddRootSTLVToBuf [12:31:08]FM_MakeSignedData [12:31:08]FM_MakeSignedData [12:31:08]SAM_PROTO_SignData [12:31:08]wFMCommunicate request_size=4 [12:31:08]MH_SAM_APDU [12:31:08]CAPDU: 80 0D 01 02 [12:31:08]Write to MH i2c: E2 08 00 20 17 80 0D 01 02 00 00 00 00 B0 [12:31:08]Write i2c OK [12:31:08]MH_I2C_Read... [12:31:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:08]Read from MH i2c: E2 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 03 00 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 03 00 20 17 00 90 00 AB [12:31:08]RAPDU: 90 00 [12:31:08]wFMCommunicate OK [12:31:08]wFMCommunicate request_size=255 [12:31:08]MH_SAM_APDU [12:31: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 04 15 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 5B 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 9B 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 0C C5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F9 7B 02 00 35 04 06 00 E9 [12:31:08]Write to MH i2c: E2 02 01 21 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 04 15 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 5B 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 9B 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 0C C5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F9 7B 02 00 35 04 06 00 E9 00 00 45 [12:31:08]Write i2c OK [12:31:08]MH_I2C_Read... [12:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:08]Read from MH i2c: E2 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 03 00 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 03 00 21 17 00 90 00 AC [12:31:08]RAPDU: 90 00 [12:31:08]wFMCommunicate OK [12:31:08]wFMCommunicate request_size=10 [12:31:08]MH_SAM_APDU [12:31:08]CAPDU: 80 0D 02 02 05 BF 62 27 3A B6 [12:31:08]Write to MH i2c: E2 0D 00 22 17 80 0D 02 02 05 00 BF 62 27 3A B6 00 00 F5 [12:31:08]Write i2c OK [12:31:08]MH_I2C_Read... [12:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:08]Read from MH i2c: E2 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 03 00 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 03 00 22 17 00 90 00 AD [12:31:08]RAPDU: 90 00 [12:31:08]wFMCommunicate OK [12:31:08]wFMCommunicate request_size=4 [12:31:08]MH_SAM_APDU [12:31:08]CAPDU: 80 0D 03 02 [12:31:08]Write to MH i2c: E2 08 00 23 17 80 0D 03 02 00 00 00 00 B5 [12:31:08]Write i2c OK [12:31:08]MH_I2C_Read... [12:31:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:08]Read from MH i2c: E2 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 0B 00 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 0B 00 23 17 00 23 D9 32 69 66 1A 06 83 90 00 56 [12:31:08]RAPDU: 23 D9 32 69 66 1A 06 83 90 00 [12:31:08]wFMCommunicate OK [12:31:08]SAM_PROTO_SignData done [12:31:08]FM_MakeSignedData done [12:31:08]CreateOFDProtocolMessage [12:31:08]wFMCommunicate request_size=4 [12:31:08]MH_SAM_APDU [12:31:08]CAPDU: 80 11 00 00 [12:31:08]Write to MH i2c: E2 08 00 24 17 80 11 00 00 00 00 00 00 B5 [12:31:08]Write i2c OK [12:31:08]MH_I2C_Read... [12:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:08]Read from MH i2c: E2 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 17 00 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 17 00 24 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 15 [12:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:31:08]wFMCommunicate OK [12:31:08]CreateOFDProtocolMessage done [12:31:08]OFDSenderStorePacket 162809 [12:31:08]StoreOFDPacket docnum=162809 [12:31:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 90 5C 07 01 70 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 04 15 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 5B 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 9B 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 0C C5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F9 7B 02 00 35 04 06 00 E9 BF 62 27 3A B6 23 D9 32 69 66 1A 06 83 [12:31:08]CheckFolder [12:31:08]dirname=/storage/ofd_packets [12:31:08]CheckFolder done [12:31:08]ProducePacketName [12:31:08]name=ofd_packets/00162809 [12:31:08]NVStorageSaveData ofd_packets/00162809 [12:31:08]File name is /storage/ofd_packets/00162809 [12:31:08]Write 301 bytes [12:31:08]NVStorageSaveData done [12:31:08]OFDSenderStorePacket done [12:31:08]KKMCreateOFDPacket done [12:31:08]NVStorageSaveData kkm_last_timestamp [12:31:08]File name is /storage/kkm_last_timestamp [12:31:08]Write 4 bytes [12:31:08]NVStorageSaveData done [12:31:08]ExternCall_PrintAddStr [12:31:08]wPrintStart [12:31:08]Write to MH i2c: 01 00 00 25 17 3C [12:31:08]Write i2c OK [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: 01 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: 01 07 00 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: 01 07 00 25 17 00 00 00 00 00 FF 0F 51 [12:31:08]RasterBufferAndPrint [12:31:08]line Счет N : (1)1319407 [12:31:08]line ИНН: 02508201610067 [12:31:08]line Контрольно-Кассовый Чек [12:31:08]line ПРОДАЖА [12:31:08]line ТРК (МРК, ГНК) : 34 [12:31:08]line Товар: 2710124500 [12:31:08]line Аи-95-К-5 [12:31:08]line 5.380 * 74.40 [12:31:08]line = 400.27 [12:31:08]line НДС 12% НСП 1% [12:31:08]line > о реализуемом товаре [12:31:08]line ОКРУГЛЕНИЕ: -0.27 [12:31:08]line ИТОГО: 400.00 [12:31:08]line Внесено: 400.00 [12:31:08]line СДАЧА: 0.00 [12:31:08]line НСП 1% : 3.54 [12:31:08]line НДС 12% : 42.51 [12:31:08]line Наличными: 400.00 [12:31:08]line Безнал.: 0.00 [12:31:08]line Место: АЗС № 140 "Партнер Нефть" [12:31:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:31:08]line СНО: Общий режим [12:31:08]line Чек 121 14.07.2024 12:31 [12:31:08]line Смена: 463 ФФД: 1.0 [12:31:08]line ЗНМ: 0300000129 [12:31:08]line РНМ: 0000000000090858 [12:31:08]line Версия ККМ: 001 [12:31:08]line ФМ: 0000000000874899 [12:31:08]line ФД: 162809 [12:31:08]line ФПД: 257008194763446 [12:31:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123108&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162809&fm=257008194763446&tin=02508201610067®Number=0000000000090858&sum=40000 [12:31:09]OFD Sender: Processing packet 162809 [packets to send 106, broken 105] [12:31:09]ProducePacketName [12:31:09]name=ofd_packets/00162809 [12:31:09]OFD Sender: To server: pG, [12:31:09]CommunicateWithHost lk.salyk.kg:30040 [12:31:09]ConnectInit lk.salyk.kg [12:31:09]written 0, free lines is 4095 [12:31:09]Connected sock=10 [12:31:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 90 5C 07 01 70 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 04 15 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 5B 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 9B 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 0C C5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F9 7B 02 00 35 04 06 00 E9 BF 62 27 3A B6 23 D9 32 69 66 1A 06 83 [12:31:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 16 CD 47 00 05 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F9 7B 02 00 F4 03 04 00 19 71 93 66 B6 04 01 00 00 67 E5 8F 7F FC 85 9B 81 [12:31:09]CommunicateWithHost err = 0 [12:31:09]CheckOFDResponse [12:31:09]1017 (14) - 77093643461234 [12:31:09]1041 (16) - 0000000000874899 [12:31:09]1040 (4) - 162809 [12:31:09]1012 (4) - 14.07.2024 06:32 [12:31:09]1206 (1) - 0 [12:31:09]OFD Sender: Remove packet 162809 [12:31:09]ProducePacketName [12:31:09]name=ofd_packets/00162809 [12:31:09]NVStorageDeleteData [12:31:09]Write to MH i2c: 01 00 00 50 17 67 [12:31:09]Write i2c OK [12:31:09]MH_I2C_Read... [12:31:09]Read from MH i2c: 01 [12:31:09]MH_I2C_Read... [12:31:09]Read from MH i2c: 01 07 00 [12:31:09]MH_I2C_Read... [12:31:09]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 DC 0C 56 [12:31:09]RasterBufferAndPrint [12:31:09]line [12:31:09]line [12:31:09]line [12:31:09]line [12:31:09]line [12:31:09]written 0, free lines is 3298 [12:31:09]MH_Cut [12:31:09]Write to MH i2c: D1 01 00 57 17 01 40 [12:31:09]Write i2c OK [12:31:09]MH_I2C_Read... [12:31:09]Read from MH i2c: D1 [12:31:09]MH_I2C_Read... [12:31:09]Read from MH i2c: D1 01 00 [12:31:09]MH_I2C_Read... [12:31:09]Read from MH i2c: D1 01 00 57 17 00 3F [12:31:09]Write to MH i2c: 01 00 00 58 17 6F [12:31:09]Write i2c OK [12:31:09]MH_I2C_Read... [12:31:10]OFD Sender: No OFD packet to send [12:31:10]*** Cut start [12:31:10]*** Purtial cut [12:31:10]*** CUTSNS_PIN = 0 [12:31:10]*** Stage 1: CUTSNS_PIN = 1 [12:31:12]Read from MH i2c: 01 [12:31:12]MH_I2C_Read... [12:31:12]*** Stop cut motor [12:31:12]*** Cut end [12:31:12]Read from MH i2c: 01 07 00 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: 01 07 00 58 17 00 00 00 00 00 FF 0F 84 [12:31:12]process_action close_receipt done [12:31:12]requested_data is exist [12:31:12]produce_requested_data [12:31:12]requested_item fm.sn is exist - process it [12:31:12]wFMCommunicate request_size=4 [12:31:12]MH_SAM_APDU [12:31:12]CAPDU: 80 11 00 00 [12:31:12]Write to MH i2c: E2 08 00 59 17 80 11 00 00 00 00 00 00 EA [12:31:12]Write i2c OK [12:31:12]MH_I2C_Read... [12:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:12]Read from MH i2c: E2 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 17 00 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 17 00 59 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4A [12:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:31:12]wFMCommunicate OK [12:31:12]requested_item fd.num is exist - process it [12:31:12]SAM_PROTO_GetFieldsCounters [12:31:12]wFMCommunicate request_size=4 [12:31:12]MH_SAM_APDU [12:31:12]CAPDU: 80 13 00 00 [12:31:12]Write to MH i2c: E2 08 00 5A 17 80 13 00 00 00 00 00 00 ED [12:31:12]Write i2c OK [12:31:12]MH_I2C_Read... [12:31:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:12]Read from MH i2c: E2 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 62 00 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 62 00 5A 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F9 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [12:31:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F9 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:12]wFMCommunicate OK [12:31:12]SAM_PROTO_GetFieldsCounters done [12:31:12]requested_item shift.num is exist - process it [12:31:12]requested_item shift.opened is exist - process it [12:31:12]req_shift_opened [12:31:12]FM_GetShiftState [12:31:12]SAM_PROTO_GetShiftState [12:31:12]wFMCommunicate request_size=4 [12:31:12]MH_SAM_APDU [12:31:12]CAPDU: 80 13 01 00 [12:31:12]Write to MH i2c: E2 08 00 5B 17 80 13 01 00 00 00 00 00 EF [12:31:12]Write i2c OK [12:31:12]MH_I2C_Read... [12:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:12]Read from MH i2c: E2 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 0E 00 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 0E 00 5B 17 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 25 [12:31:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:31:12]wFMCommunicate OK [12:31:12]SAM_PROTO_GetShiftState done [12:31:12]FM_GetShiftState done [12:31:12]req_shift_opened done [12:31:12]requested_item shift.open_date is exist - process it [12:31:12]req_shift_open_date [12:31:12]req_shift_open_date done [12:31:12]produce_requested_data done [12:31:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162809,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:31:12]process_action_free close_receipt [12:31:12]json_value_free [12:31:12]json_value_free done [12:31:12]process_json_proto returns [12:31:12]Send response to host [12:31:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162809,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:31:12]free response buf [12:31:12]execute_script done [12:31:12]execute_script returns [12:31:12]free content buf [12:31:12]Sock 7.Close socket [12:31:12]Sock 7.Thread stoped [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:45]accept exits with 9 [12:32:45]New connection [12:32:45]New thread 3066735972 created [12:32:45]Thread 3066879332 joined [12:32:45]Waiting for new connection... [12:32:45] Sock 9.Parse request [12:32:45]Sock 9.Check first char [12:32:45]Sock 9.First char is OK [12:32:45]request: POST /json_proto HTTP/1.0 [12:32:45]Method: POST [12:32:45]URL: /json_proto [12:32:45]Method is POST - this is cgi request [12:32:45]url: /json_proto [12:32:45]query_string will be loaded in cgi processing [12:32:45]execute_cgi json_proto POST (null) [12:32:45]execute_cgi path=json_proto method=POST [12:32:45]POST find Content-Length [12:32:45]Host: 172.17.39.67:8080 [12:32:45]Content-Length: 679 [12:32:45]Content-Type: application/json [12:32:45] [12:32:45]POST finish read [12:32:45]Found Content-Length = 679 [12:32:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:45]execute_script... [12:32: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)1319408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:45]POST & json_proto [12:32:45]process_json_proto [12:32:45]json parsed OK: [12:32:45]protocol is kg_v1.0 [12:32:45]action value=close_receipt [12:32:45]process_action close_receipt [12:32:45]cmd_close_receipt [12:32:45]MH_GetDate [12:32:45]Write to MH i2c: F0 00 00 5C 17 62 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: F0 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: F0 09 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: F0 09 00 5C 17 00 6E C5 93 66 B6 85 93 66 CB [12:32:45]GetLastDocTimeStamp 1720960268 [12:32:45]current date 1720960366 [12:32:45]FM_GetShiftState [12:32:45]SAM_PROTO_GetShiftState [12:32:45]wFMCommunicate request_size=4 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 13 01 00 [12:32:45]Write to MH i2c: E2 08 00 5D 17 80 13 01 00 00 00 00 00 F1 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 0E 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 0E 00 5D 17 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 27 [12:32:45]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:32:45]wFMCommunicate OK [12:32:45]SAM_PROTO_GetShiftState done [12:32:45]FM_GetShiftState done [12:32:45]opened in 1720915483 [12:32:45]opened+sec_in_day 1721001883 [12:32:45]quantity*price = 70012 [12:32:45]sum+1 = 70014 [12:32:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 122 14.07.2024 12:32 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162810 ФПД: 43548259957131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123246&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162810&fm=43548259957131&tin=02508201610067®Number=0000000000090858&sum=70000 [12:32:46]StoreToDocumentArchive [12:32:46]shift 463 fd 162810 [12:32:46]save to /storage/0463/doc_00162810 [12:32:46]save last doc name /storage/0463/doc_00162810 to /storage/kkm_last_doc_name [12:32:46]save OK [12:32:46]Clear old archive folders... [12:32:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:46]tlvbuf is 01348750 [12:32:46]SAM_PROTO_ClearQueue [12:32:46]wFMCommunicate request_size=4 [12:32:46]MH_SAM_APDU [12:32:46]CAPDU: 80 09 00 00 [12:32:46]Write to MH i2c: E2 08 00 6A 17 80 09 00 00 00 00 00 00 F3 [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 [12:32:46]MH_I2C_Read... [12:32:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:46]Read from MH i2c: E2 03 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 03 00 6A 17 00 90 00 F5 [12:32:46]RAPDU: 90 00 [12:32:46]wFMCommunicate OK [12:32:46]SAM_PROTO_ClearQueue done [12:32:46]KKMCreateOFDPacket [12:32:46]OFDProtocolAddRootSTLVToBuf [12:32:46]FM_MakeSignedData [12:32:46]FM_MakeSignedData [12:32:46]SAM_PROTO_SignData [12:32:46]wFMCommunicate request_size=4 [12:32:46]MH_SAM_APDU [12:32:46]CAPDU: 80 0D 01 02 [12:32:46]Write to MH i2c: E2 08 00 6B 17 80 0D 01 02 00 00 00 00 FB [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:46]Read from MH i2c: E2 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 03 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 03 00 6B 17 00 90 00 F6 [12:32:46]RAPDU: 90 00 [12:32:46]wFMCommunicate OK [12:32:46]wFMCommunicate request_size=255 [12:32:46]MH_SAM_APDU [12:32: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 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 6E C5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FA 7B 02 00 35 04 06 00 27 [12:32:46]Write to MH i2c: E2 02 01 6C 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 6E C5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FA 7B 02 00 35 04 06 00 27 00 00 BC [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:46]Read from MH i2c: E2 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 03 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 03 00 6C 17 00 90 00 F7 [12:32:46]RAPDU: 90 00 [12:32:46]wFMCommunicate OK [12:32:46]wFMCommunicate request_size=10 [12:32:46]MH_SAM_APDU [12:32:46]CAPDU: 80 0D 02 02 05 9B 5E 90 B9 8B [12:32:46]Write to MH i2c: E2 0D 00 6D 17 80 0D 02 02 05 00 9B 5E 90 B9 8B 00 00 D5 [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:47]Read from MH i2c: E2 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 03 00 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 03 00 6D 17 00 90 00 F8 [12:32:47]RAPDU: 90 00 [12:32:47]wFMCommunicate OK [12:32:47]wFMCommunicate request_size=4 [12:32:47]MH_SAM_APDU [12:32:47]CAPDU: 80 0D 03 02 [12:32:47]Write to MH i2c: E2 08 00 6E 17 80 0D 03 02 00 00 00 00 00 [12:32:47]Write i2c OK [12:32:47]MH_I2C_Read... [12:32:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:47]Read from MH i2c: E2 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 0B 00 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 0B 00 6E 17 00 8C BF 36 1B 82 0C 59 18 90 00 9C [12:32:47]RAPDU: 8C BF 36 1B 82 0C 59 18 90 00 [12:32:47]wFMCommunicate OK [12:32:47]SAM_PROTO_SignData done [12:32:47]FM_MakeSignedData done [12:32:47]CreateOFDProtocolMessage [12:32:47]wFMCommunicate request_size=4 [12:32:47]MH_SAM_APDU [12:32:47]CAPDU: 80 11 00 00 [12:32:47]Write to MH i2c: E2 08 00 6F 17 80 11 00 00 00 00 00 00 00 [12:32:47]Write i2c OK [12:32:47]MH_I2C_Read... [12:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:47]Read from MH i2c: E2 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 17 00 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: E2 17 00 6F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 60 [12:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:32:47]wFMCommunicate OK [12:32:47]CreateOFDProtocolMessage done [12:32:47]OFDSenderStorePacket 162810 [12:32:47]StoreOFDPacket docnum=162810 [12:32:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 53 7E 07 01 EC 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 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 6E C5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FA 7B 02 00 35 04 06 00 27 9B 5E 90 B9 8B 8C BF 36 1B 82 0C 59 18 [12:32:47]CheckFolder [12:32:47]dirname=/storage/ofd_packets [12:32:47]CheckFolder done [12:32:47]ProducePacketName [12:32:47]name=ofd_packets/00162810 [12:32:47]NVStorageSaveData ofd_packets/00162810 [12:32:47]File name is /storage/ofd_packets/00162810 [12:32:47]Write 301 bytes [12:32:47]NVStorageSaveData done [12:32:47]OFDSenderStorePacket done [12:32:47]KKMCreateOFDPacket done [12:32:47]NVStorageSaveData kkm_last_timestamp [12:32:47]File name is /storage/kkm_last_timestamp [12:32:47]Write 4 bytes [12:32:47]NVStorageSaveData done [12:32:47]ExternCall_PrintAddStr [12:32:47]wPrintStart [12:32:47]Write to MH i2c: 01 00 00 70 17 87 [12:32:47]Write i2c OK [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: 01 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: 01 07 00 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: 01 07 00 70 17 00 00 00 00 00 FF 0F 9C [12:32:47]RasterBufferAndPrint [12:32:47]line Счет N : (1)1319408 [12:32:47]line ИНН: 02508201610067 [12:32:47]line Контрольно-Кассовый Чек [12:32:47]line ПРОДАЖА [12:32:47]line ТРК (МРК, ГНК) : 53 [12:32:47]line Товар: 2710124130 [12:32:47]line Аи-92-К-5 [12:32:47]line 10.560 * 66.30 [12:32:47]line = 700.13 [12:32:47]line НДС 12% НСП 1% [12:32:47]line > о реализуемом товаре [12:32:47]line ОКРУГЛЕНИЕ: -0.13 [12:32:47]line ИТОГО: 700.00 [12:32:47]line Внесено: 700.00 [12:32:47]line СДАЧА: 0.00 [12:32:47]line НСП 1% : 6.20 [12:32:47]line НДС 12% : 74.35 [12:32:47]line Наличными: 700.00 [12:32:47]line Безнал.: 0.00 [12:32:47]line Место: АЗС № 140 "Партнер Нефть" [12:32:47]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:32:47]line СНО: Общий режим [12:32:47]line Чек 122 14.07.2024 12:32 [12:32:47]line Смена: 463 ФФД: 1.0 [12:32:47]line ЗНМ: 0300000129 [12:32:47]line РНМ: 0000000000090858 [12:32:47]line Версия ККМ: 001 [12:32:47]line ФМ: 0000000000874899 [12:32:47]line ФД: 162810 [12:32:47]line ФПД: 43548259957131 [12:32:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123246&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162810&fm=43548259957131&tin=02508201610067®Number=0000000000090858&sum=70000 [12:32:47]OFD Sender: Processing packet 162810 [packets to send 106, broken 105] [12:32:47]ProducePacketName [12:32:47]name=ofd_packets/00162810 [12:32:47]OFD Sender: To server: pG, [12:32:47]CommunicateWithHost lk.salyk.kg:30040 [12:32:47]ConnectInit lk.salyk.kg [12:32:47]written 0, free lines is 4095 [12:32:47]Connected sock=10 [12:32:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 53 7E 07 01 EC 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 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 6E C5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FA 7B 02 00 35 04 06 00 27 9B 5E 90 B9 8B 8C BF 36 1B 82 0C 59 18 [12:32:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 50 2B 47 00 2C 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FA 7B 02 00 F4 03 04 00 7C 71 93 66 B6 04 01 00 00 8E EA F9 D7 76 6F BC 2D [12:32:47]CommunicateWithHost err = 0 [12:32:47]CheckOFDResponse [12:32:47]1017 (14) - 77093643461234 [12:32:47]1041 (16) - 0000000000874899 [12:32:47]1040 (4) - 162810 [12:32:47]1012 (4) - 14.07.2024 06:34 [12:32:47]1206 (1) - 0 [12:32:47]OFD Sender: Remove packet 162810 [12:32:47]ProducePacketName [12:32:47]name=ofd_packets/00162810 [12:32:47]NVStorageDeleteData [12:32:47]Write to MH i2c: 01 00 00 9B 17 B2 [12:32:47]Write i2c OK [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: 01 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: 01 07 00 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: 01 07 00 9B 17 00 00 00 00 00 E5 0C AA [12:32:47]RasterBufferAndPrint [12:32:47]line [12:32:47]line [12:32:47]line [12:32:47]line [12:32:47]line [12:32:47]written 0, free lines is 3307 [12:32:47]MH_Cut [12:32:47]Write to MH i2c: D1 01 00 A2 17 01 8B [12:32:47]Write i2c OK [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: D1 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: D1 01 00 [12:32:47]MH_I2C_Read... [12:32:47]Read from MH i2c: D1 01 00 A2 17 00 8A [12:32:47]Write to MH i2c: 01 00 00 A3 17 BA [12:32:47]Write i2c OK [12:32:47]MH_I2C_Read... [12:32:48]OFD Sender: No OFD packet to send [12:32:48]*** Cut start [12:32:48]*** Purtial cut [12:32:48]*** Stage 1: CUTSNS_PIN = 1 [12:32:48]Read from MH i2c: 01 [12:32:48]MH_I2C_Read... [12:32:48]*** Stop cut motor [12:32:48]*** Cut end [12:32:48]Read from MH i2c: 01 07 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: 01 07 00 A3 17 00 00 00 00 00 FF 0F CF [12:32:48]process_action close_receipt done [12:32:48]requested_data is exist [12:32:48]produce_requested_data [12:32:48]requested_item fm.sn is exist - process it [12:32:48]wFMCommunicate request_size=4 [12:32:48]MH_SAM_APDU [12:32:48]CAPDU: 80 11 00 00 [12:32:48]Write to MH i2c: E2 08 00 A4 17 80 11 00 00 00 00 00 00 35 [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:48]Read from MH i2c: E2 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 17 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 17 00 A4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 95 [12:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:32:49]wFMCommunicate OK [12:32:49]requested_item fd.num is exist - process it [12:32:49]SAM_PROTO_GetFieldsCounters [12:32:49]wFMCommunicate request_size=4 [12:32:49]MH_SAM_APDU [12:32:49]CAPDU: 80 13 00 00 [12:32:49]Write to MH i2c: E2 08 00 A5 17 80 13 00 00 00 00 00 00 38 [12:32:49]Write i2c OK [12:32:49]MH_I2C_Read... [12:32:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:49]Read from MH i2c: E2 [12:32:49]MH_I2C_Read... [12:32:49]Read from MH i2c: E2 62 00 [12:32:49]MH_I2C_Read... [12:32:49]Read from MH i2c: E2 62 00 A5 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FA 7B 02 00 0E 04 04 00 CF 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 20 [12:32:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FA 7B 02 00 0E 04 04 00 CF 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 [12:32:49]wFMCommunicate OK [12:32:49]SAM_PROTO_GetFieldsCounters done [12:32:49]requested_item shift.num is exist - process it [12:32:49]requested_item shift.opened is exist - process it [12:32:49]req_shift_opened [12:32:49]FM_GetShiftState [12:32:49]SAM_PROTO_GetShiftState [12:32:49]wFMCommunicate request_size=4 [12:32:49]MH_SAM_APDU [12:32:49]CAPDU: 80 13 01 00 [12:32:49]Write to MH i2c: E2 08 00 A6 17 80 13 01 00 00 00 00 00 3A [12:32:49]Write i2c OK [12:32:49]MH_I2C_Read... [12:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:49]Read from MH i2c: E2 [12:32:49]MH_I2C_Read... [12:32:49]Read from MH i2c: E2 0E 00 [12:32:49]MH_I2C_Read... [12:32:49]Read from MH i2c: E2 0E 00 A6 17 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 70 [12:32:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:32:49]wFMCommunicate OK [12:32:49]SAM_PROTO_GetShiftState done [12:32:49]FM_GetShiftState done [12:32:49]req_shift_opened done [12:32:49]requested_item shift.open_date is exist - process it [12:32:49]req_shift_open_date [12:32:49]req_shift_open_date done [12:32:49]produce_requested_data done [12:32:49]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162810,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:32:49]process_action_free close_receipt [12:32:49]json_value_free [12:32:49]json_value_free done [12:32:49]process_json_proto returns [12:32:49]Send response to host [12:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162810,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:32:49]free response buf [12:32:49]execute_script done [12:32:49]execute_script returns [12:32:49]free content buf [12:32:49]Sock 9.Close socket [12:32:49]Sock 9.Thread stoped [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:55]accept exits with 7 [12:37:55]New connection [12:37:55]New thread 3066879332 created [12:37:55]Thread 3066735972 joined [12:37:55]Waiting for new connection... [12:37:55] Sock 7.Parse request [12:37:55]Sock 7.Check first char [12:37:55]Sock 7.First char is OK [12:37:55]request: POST /json_proto HTTP/1.0 [12:37:55]Method: POST [12:37:55]URL: /json_proto [12:37:55]Method is POST - this is cgi request [12:37:55]url: /json_proto [12:37:55]query_string will be loaded in cgi processing [12:37:55]execute_cgi json_proto POST (null) [12:37:55]execute_cgi path=json_proto method=POST [12:37:55]POST find Content-Length [12:37:55]Host: 172.17.39.67:8080 [12:37:55]Content-Length: 676 [12:37:55]Content-Type: application/json [12:37:55] [12:37:55]POST finish read [12:37:55]Found Content-Length = 676 [12:37:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "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" ] } } [12:37:55]execute_script... [12:37: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)1319410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "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" ] } } [12:37:55]POST & json_proto [12:37:55]process_json_proto [12:37:55]json parsed OK: [12:37:55]protocol is kg_v1.0 [12:37:55]action value=close_receipt [12:37:55]process_action close_receipt [12:37:55]cmd_close_receipt [12:37:55]MH_GetDate [12:37:55]Write to MH i2c: F0 00 00 A7 17 AD [12:37:55]Write i2c OK [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: F0 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: F0 09 00 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: F0 09 00 A7 17 00 A4 C6 93 66 B6 85 93 66 4D [12:37:55]GetLastDocTimeStamp 1720960366 [12:37:55]current date 1720960676 [12:37:55]FM_GetShiftState [12:37:55]SAM_PROTO_GetShiftState [12:37:55]wFMCommunicate request_size=4 [12:37:55]MH_SAM_APDU [12:37:55]CAPDU: 80 13 01 00 [12:37:55]Write to MH i2c: E2 08 00 A8 17 80 13 01 00 00 00 00 00 3C [12:37:55]Write i2c OK [12:37:55]MH_I2C_Read... [12:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:55]Read from MH i2c: E2 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 0E 00 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 0E 00 A8 17 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 72 [12:37:55]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:37:55]wFMCommunicate OK [12:37:55]SAM_PROTO_GetShiftState done [12:37:55]FM_GetShiftState done [12:37:55]opened in 1720915483 [12:37:55]opened+sec_in_day 1721001883 [12:37:55]quantity*price = 100007 [12:37:55]sum+1 = 100009 [12:37:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 123 14.07.2024 12:37 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162811 ФПД: 75345809764473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123756&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162811&fm=75345809764473&tin=02508201610067®Number=0000000000090858&sum=100000 [12:37:56]StoreToDocumentArchive [12:37:56]shift 463 fd 162811 [12:37:56]save to /storage/0463/doc_00162811 [12:37:56]save last doc name /storage/0463/doc_00162811 to /storage/kkm_last_doc_name [12:37:56]save OK [12:37:56]Clear old archive folders... [12:37:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:37:56]tlvbuf is B6D96870 [12:37:56]SAM_PROTO_ClearQueue [12:37:56]wFMCommunicate request_size=4 [12:37:56]MH_SAM_APDU [12:37:56]CAPDU: 80 09 00 00 [12:37:56]Write to MH i2c: E2 08 00 B5 17 80 09 00 00 00 00 00 00 3E [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:56]Read from MH i2c: E2 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 03 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 03 00 B5 17 00 90 00 40 [12:37:56]RAPDU: 90 00 [12:37:56]wFMCommunicate OK [12:37:56]SAM_PROTO_ClearQueue done [12:37:56]KKMCreateOFDPacket [12:37:56]OFDProtocolAddRootSTLVToBuf [12:37:56]FM_MakeSignedData [12:37:56]FM_MakeSignedData [12:37:56]SAM_PROTO_SignData [12:37:56]wFMCommunicate request_size=4 [12:37:56]MH_SAM_APDU [12:37:56]CAPDU: 80 0D 01 02 [12:37:56]Write to MH i2c: E2 08 00 B6 17 80 0D 01 02 00 00 00 00 46 [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:56]Read from MH i2c: E2 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 03 00 [12:37:56]MH_I2C_Read... [12:37:56]Read from MH i2c: E2 03 00 B6 17 00 90 00 41 [12:37:56]RAPDU: 90 00 [12:37:56]wFMCommunicate OK [12:37:56]wFMCommunicate request_size=255 [12:37:56]MH_SAM_APDU [12:37:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 7B 00 00 00 F4 03 04 00 A4 C6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FB 7B 02 00 35 04 06 00 [12:37:56]Write to MH i2c: E2 02 01 B7 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 7B 00 00 00 F4 03 04 00 A4 C6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FB 7B 02 00 35 04 06 00 00 00 F6 [12:37:56]Write i2c OK [12:37:56]MH_I2C_Read... [12:37:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:57]Read from MH i2c: E2 [12:37:57]MH_I2C_Read... [12:37:57]Read from MH i2c: E2 03 00 [12:37:57]MH_I2C_Read... [12:37:57]Read from MH i2c: E2 03 00 B7 17 00 90 00 42 [12:37:57]RAPDU: 90 00 [12:37:57]wFMCommunicate OK [12:37:57]wFMCommunicate request_size=11 [12:37:57]MH_SAM_APDU [12:37:57]CAPDU: 80 0D 02 02 06 44 86 D0 39 F0 79 [12:37:57]Write to MH i2c: E2 0E 00 B8 17 80 0D 02 02 06 00 44 86 D0 39 F0 79 00 00 91 [12:37:57]Write i2c OK [12:37:57]MH_I2C_Read... [12:37:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:57]Read from MH i2c: E2 [12:37:57]MH_I2C_Read... [12:37:57]Read from MH i2c: E2 03 00 [12:37:57]MH_I2C_Read... [12:37:57]Read from MH i2c: E2 03 00 B8 17 00 90 00 43 [12:37:57]RAPDU: 90 00 [12:37:57]wFMCommunicate OK [12:37:57]wFMCommunicate request_size=4 [12:37:57]MH_SAM_APDU [12:37:57]CAPDU: 80 0D 03 02 [12:37:57]Write to MH i2c: E2 08 00 B9 17 80 0D 03 02 00 00 00 00 4B [12:37:57]Write i2c OK [12:37:57]MH_I2C_Read... [12:37:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:57]Read from MH i2c: E2 [12:37:57]MH_I2C_Read... [12:37:57]Read from MH i2c: E2 0B 00 [12:37:57]MH_I2C_Read... [12:37:57]Read from MH i2c: E2 0B 00 B9 17 00 45 21 79 5F C6 EA F9 8C 90 00 BF [12:37:57]RAPDU: 45 21 79 5F C6 EA F9 8C 90 00 [12:37:57]wFMCommunicate OK [12:37:57]SAM_PROTO_SignData done [12:37:57]FM_MakeSignedData done [12:37:57]CreateOFDProtocolMessage [12:37:57]wFMCommunicate request_size=4 [12:37:57]MH_SAM_APDU [12:37:57]CAPDU: 80 11 00 00 [12:37:57]Write to MH i2c: E2 08 00 BA 17 80 11 00 00 00 00 00 00 4B [12:37:57]Write i2c OK [12:37:57]MH_I2C_Read... [12:37:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:57]Read from MH i2c: E2 [12:37:57]MH_I2C_Read... [12:37:57]Read from MH i2c: E2 17 00 [12:37:57]MH_I2C_Read... [12:37:57]Read from MH i2c: E2 17 00 BA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AB [12:37:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:37:57]wFMCommunicate OK [12:37:57]CreateOFDProtocolMessage done [12:37:57]OFDSenderStorePacket 162811 [12:37:57]StoreOFDPacket docnum=162811 [12:37:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D9 BD 08 01 D1 DC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 7B 00 00 00 F4 03 04 00 A4 C6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FB 7B 02 00 35 04 06 00 44 86 D0 39 F0 79 45 21 79 5F C6 EA F9 8C [12:37:57]CheckFolder [12:37:57]dirname=/storage/ofd_packets [12:37:57]CheckFolder done [12:37:57]ProducePacketName [12:37:57]name=ofd_packets/00162811 [12:37:57]NVStorageSaveData ofd_packets/00162811 [12:37:57]File name is /storage/ofd_packets/00162811 [12:37:57]Write 302 bytes [12:37:57]NVStorageSaveData done [12:37:57]OFDSenderStorePacket done [12:37:57]KKMCreateOFDPacket done [12:37:57]NVStorageSaveData kkm_last_timestamp [12:37:57]File name is /storage/kkm_last_timestamp [12:37:57]Write 4 bytes [12:37:57]NVStorageSaveData done [12:37:57]ExternCall_PrintAddStr [12:37:57]wPrintStart [12:37:57]Write to MH i2c: 01 00 00 BB 17 D2 [12:37:57]Write i2c OK [12:37:57]MH_I2C_Read... [12:37:57]Read from MH i2c: 01 [12:37:57]MH_I2C_Read... [12:37:57]Read from MH i2c: 01 07 00 [12:37:57]MH_I2C_Read... [12:37:57]Read from MH i2c: 01 07 00 BB 17 00 00 00 00 00 FF 0F E7 [12:37:57]RasterBufferAndPrint [12:37:57]line Счет N : (1)1319410 [12:37:57]line ИНН: 02508201610067 [12:37:57]line Контрольно-Кассовый Чек [12:37:57]line ПРОДАЖА [12:37:57]line ТРК (МРК, ГНК) : 32 [12:37:57]line Товар: 2710124130 [12:37:57]line Super-92-К-5 [12:37:57]line 14.860 * 67.30 [12:37:57]line = 1000.08 [12:37:57]line НДС 12% НСП 1% [12:37:57]line > о реализуемом товаре [12:37:57]line ОКРУГЛЕНИЕ: -0.08 [12:37:57]line ИТОГО: 1000.00 [12:37:57]line Внесено: 1000.00 [12:37:57]line СДАЧА: 0.00 [12:37:57]line НСП 1% : 8.85 [12:37:57]line НДС 12% : 106.20 [12:37:57]line Наличными: 1000.00 [12:37:57]line Безнал.: 0.00 [12:37:57]line Место: АЗС № 140 "Партнер Нефть" [12:37:57]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:37:57]line СНО: Общий режим [12:37:57]line Чек 123 14.07.2024 12:37 [12:37:57]line Смена: 463 ФФД: 1.0 [12:37:57]line ЗНМ: 0300000129 [12:37:57]line РНМ: 0000000000090858 [12:37:57]line Версия ККМ: 001 [12:37:57]line ФМ: 0000000000874899 [12:37:57]line ФД: 162811 [12:37:57]line ФПД: 75345809764473 [12:37:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123756&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162811&fm=75345809764473&tin=02508201610067®Number=0000000000090858&sum=100000 [12:37:57]OFD Sender: Processing packet 162811 [packets to send 106, broken 105] [12:37:57]ProducePacketName [12:37:57]name=ofd_packets/00162811 [12:37:57]OFD Sender: To server: pG, [12:37:57]CommunicateWithHost lk.salyk.kg:30040 [12:37:57]ConnectInit lk.salyk.kg [12:37:57]written 0, free lines is 4095 [12:37:57]Connected sock=11 [12:37:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D9 BD 08 01 D1 DC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 7B 00 00 00 F4 03 04 00 A4 C6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FB 7B 02 00 35 04 06 00 44 86 D0 39 F0 79 45 21 79 5F C6 EA F9 8C [12:37:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 DD EB 47 00 47 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FB 7B 02 00 F4 03 04 00 B2 72 93 66 B6 04 01 00 00 FF 73 AA E7 A3 B5 29 6D [12:37:57]CommunicateWithHost err = 0 [12:37:57]CheckOFDResponse [12:37:57]1017 (14) - 77093643461234 [12:37:57]1041 (16) - 0000000000874899 [12:37:57]1040 (4) - 162811 [12:37:57]1012 (4) - 14.07.2024 06:39 [12:37:57]1206 (1) - 0 [12:37:57]OFD Sender: Remove packet 162811 [12:37:57]ProducePacketName [12:37:57]name=ofd_packets/00162811 [12:37:57]NVStorageDeleteData [12:37:58]Write to MH i2c: 01 00 00 E6 17 FD [12:37:58]Write i2c OK [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: 01 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: 01 07 00 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: 01 07 00 E6 17 00 00 00 00 00 E8 0C F8 [12:37:58]RasterBufferAndPrint [12:37:58]line [12:37:58]line [12:37:58]line [12:37:58]line [12:37:58]line [12:37:58]written 0, free lines is 3310 [12:37:58]MH_Cut [12:37:58]Write to MH i2c: D1 01 00 ED 17 01 D6 [12:37:58]Write i2c OK [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: D1 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: D1 01 00 [12:37:58]MH_I2C_Read... [12:37:58]Read from MH i2c: D1 01 00 ED 17 00 D5 [12:37:58]Write to MH i2c: 01 00 00 EE 17 05 [12:37:58]Write i2c OK [12:37:58]MH_I2C_Read... [12:37:58]OFD Sender: No OFD packet to send [12:37:58]*** Cut start [12:37:58]*** Purtial cut [12:37:58]*** CUTSNS_PIN = 0 [12:37:59]*** Stage 1: CUTSNS_PIN = 1 [12:38:00]Read from MH i2c: 01 [12:38:00]MH_I2C_Read... [12:38:00]*** Stop cut motor [12:38:00]*** Cut end [12:38:00]Read from MH i2c: 01 07 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: 01 07 00 EE 17 00 00 00 00 00 FF 0F 1A [12:38:00]process_action close_receipt done [12:38:00]requested_data is exist [12:38:00]produce_requested_data [12:38:00]requested_item fm.sn is exist - process it [12:38:00]wFMCommunicate request_size=4 [12:38:00]MH_SAM_APDU [12:38:00]CAPDU: 80 11 00 00 [12:38:00]Write to MH i2c: E2 08 00 EF 17 80 11 00 00 00 00 00 00 80 [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:00]Read from MH i2c: E2 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 17 00 [12:38:00]MH_I2C_Read... [12:38:00]Read from MH i2c: E2 17 00 EF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E0 [12:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:38:00]wFMCommunicate OK [12:38:00]requested_item fd.num is exist - process it [12:38:00]SAM_PROTO_GetFieldsCounters [12:38:00]wFMCommunicate request_size=4 [12:38:00]MH_SAM_APDU [12:38:00]CAPDU: 80 13 00 00 [12:38:00]Write to MH i2c: E2 08 00 F0 17 80 13 00 00 00 00 00 00 83 [12:38:00]Write i2c OK [12:38:00]MH_I2C_Read... [12:38:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:01]Read from MH i2c: E2 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 62 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 62 00 F0 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FB 7B 02 00 0E 04 04 00 CF 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 6F [12:38:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FB 7B 02 00 0E 04 04 00 CF 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 [12:38:01]wFMCommunicate OK [12:38:01]SAM_PROTO_GetFieldsCounters done [12:38:01]requested_item shift.num is exist - process it [12:38:01]requested_item shift.opened is exist - process it [12:38:01]req_shift_opened [12:38:01]FM_GetShiftState [12:38:01]SAM_PROTO_GetShiftState [12:38:01]wFMCommunicate request_size=4 [12:38:01]MH_SAM_APDU [12:38:01]CAPDU: 80 13 01 00 [12:38:01]Write to MH i2c: E2 08 00 F1 17 80 13 01 00 00 00 00 00 85 [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:01]Read from MH i2c: E2 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 0E 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 0E 00 F1 17 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BB [12:38:01]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:38:01]wFMCommunicate OK [12:38:01]SAM_PROTO_GetShiftState done [12:38:01]FM_GetShiftState done [12:38:01]req_shift_opened done [12:38:01]requested_item shift.open_date is exist - process it [12:38:01]req_shift_open_date [12:38:01]req_shift_open_date done [12:38:01]produce_requested_data done [12:38:01]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162811,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:38:01]process_action_free close_receipt [12:38:01]json_value_free [12:38:01]json_value_free done [12:38:01]process_json_proto returns [12:38:01]Send response to host [12:38:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162811,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:38:01]free response buf [12:38:01]execute_script done [12:38:01]execute_script returns [12:38:01]free content buf [12:38:01]Sock 7.Close socket [12:38:01]Sock 7.Thread stoped [12:38:01]accept exits with 9 [12:38:01]New connection [12:38:01]New thread 3066735972 created [12:38:01]Thread 3066879332 joined [12:38:01]Waiting for new connection... [12:38:01] Sock 9.Parse request [12:38:01]Sock 9.Check first char [12:38:01]Sock 9.First char is OK [12:38:01]request: POST /json_proto HTTP/1.0 [12:38:01]Method: POST [12:38:01]URL: /json_proto [12:38:01]Method is POST - this is cgi request [12:38:01]url: /json_proto [12:38:01]query_string will be loaded in cgi processing [12:38:01]execute_cgi json_proto POST (null) [12:38:01]execute_cgi path=json_proto method=POST [12:38:01]POST find Content-Length [12:38:01]Host: 172.17.39.67:8080 [12:38:01]Content-Length: 797 [12:38:01]Content-Type: application/json [12:38:01] [12:38:01]POST finish read [12:38:01]Found Content-Length = 797 [12:38:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 45.700, "sum" : 3075.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3075.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:01]execute_script... [12:38: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)1319409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 45.700, "sum" : 3075.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3075.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:01]POST & json_proto [12:38:01]process_json_proto [12:38:01]json parsed OK: [12:38:01]protocol is kg_v1.0 [12:38:01]action value=close_receipt [12:38:01]process_action close_receipt [12:38:01]cmd_close_receipt [12:38:01]MH_GetDate [12:38:01]Write to MH i2c: F0 00 00 F2 17 F8 [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: F0 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: F0 09 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: F0 09 00 F2 17 00 AA C6 93 66 B6 85 93 66 9E [12:38:01]GetLastDocTimeStamp 1720960676 [12:38:01]current date 1720960682 [12:38:01]FM_GetShiftState [12:38:01]SAM_PROTO_GetShiftState [12:38:01]wFMCommunicate request_size=4 [12:38:01]MH_SAM_APDU [12:38:01]CAPDU: 80 13 01 00 [12:38:01]Write to MH i2c: E2 08 00 F3 17 80 13 01 00 00 00 00 00 87 [12:38:01]Write i2c OK [12:38:01]MH_I2C_Read... [12:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:01]Read from MH i2c: E2 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 0E 00 [12:38:01]MH_I2C_Read... [12:38:01]Read from MH i2c: E2 0E 00 F3 17 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BD [12:38:01]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:38:01]wFMCommunicate OK [12:38:01]SAM_PROTO_GetShiftState done [12:38:01]FM_GetShiftState done [12:38:01]opened in 1720915483 [12:38:01]opened+sec_in_day 1721001883 [12:38:01]quantity*price = 307561 [12:38:01]sum+1 = 307562 [12:38:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3075.61 НСП 1% : 27.22 НДС 12% : 326.61 Наличными: 0.00 Безнал.: 3075.61 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 124 14.07.2024 12:38 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162812 ФПД: 2595854712766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123802&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162812&fm=2595854712766&tin=02508201610067®Number=0000000000090858&sum=307561 [12:38:03]StoreToDocumentArchive [12:38:03]shift 463 fd 162812 [12:38:03]save to /storage/0463/doc_00162812 [12:38:03]save last doc name /storage/0463/doc_00162812 to /storage/kkm_last_doc_name [12:38:03]save OK [12:38:03]Clear old archive folders... [12:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:38:03]tlvbuf is 01228080 [12:38:03]SAM_PROTO_ClearQueue [12:38:03]wFMCommunicate request_size=4 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 09 00 00 [12:38:03]Write to MH i2c: E2 08 00 00 18 80 09 00 00 00 00 00 00 8A [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]OFD Sender: No OFD packet to send [12:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 00 18 00 90 00 8C [12:38:03]RAPDU: 90 00 [12:38:03]wFMCommunicate OK [12:38:03]SAM_PROTO_ClearQueue done [12:38:03]KKMCreateOFDPacket [12:38:03]OFDProtocolAddRootSTLVToBuf [12:38:03]FM_MakeSignedData [12:38:03]FM_MakeSignedData [12:38:03]SAM_PROTO_SignData [12:38:03]wFMCommunicate request_size=4 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 0D 01 02 [12:38:03]Write to MH i2c: E2 08 00 01 18 80 0D 01 02 00 00 00 00 92 [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 01 18 00 90 00 8D [12:38:03]RAPDU: 90 00 [12:38:03]wFMCommunicate OK [12:38:03]wFMCommunicate request_size=255 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 B2 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 69 B1 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 B1 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 7F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 B1 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AA C6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FC 7B 02 00 35 04 06 00 [12:38:03]Write to MH i2c: E2 02 01 02 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 B2 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 69 B1 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 B1 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 7F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 B1 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AA C6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FC 7B 02 00 35 04 06 00 00 00 BA [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 02 18 00 90 00 8E [12:38:03]RAPDU: 90 00 [12:38:03]wFMCommunicate OK [12:38:03]wFMCommunicate request_size=11 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 0D 02 02 06 02 5C 64 FF 7F BE [12:38:03]Write to MH i2c: E2 0E 00 03 18 80 0D 02 02 06 00 02 5C 64 FF 7F BE 00 00 9F [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 03 00 03 18 00 90 00 8F [12:38:03]RAPDU: 90 00 [12:38:03]wFMCommunicate OK [12:38:03]wFMCommunicate request_size=4 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 0D 03 02 [12:38:03]Write to MH i2c: E2 08 00 04 18 80 0D 03 02 00 00 00 00 97 [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 0B 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 0B 00 04 18 00 F2 2C 6A 70 20 23 61 28 90 00 5C [12:38:03]RAPDU: F2 2C 6A 70 20 23 61 28 90 00 [12:38:03]wFMCommunicate OK [12:38:03]SAM_PROTO_SignData done [12:38:03]FM_MakeSignedData done [12:38:03]CreateOFDProtocolMessage [12:38:03]wFMCommunicate request_size=4 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 11 00 00 [12:38:03]Write to MH i2c: E2 08 00 05 18 80 11 00 00 00 00 00 00 97 [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 17 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 17 00 05 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F7 [12:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:38:03]wFMCommunicate OK [12:38:03]CreateOFDProtocolMessage done [12:38:03]OFDSenderStorePacket 162812 [12:38:03]StoreOFDPacket docnum=162812 [12:38:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8B BA 08 01 A2 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 B2 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 69 B1 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 B1 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 7F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 B1 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AA C6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FC 7B 02 00 35 04 06 00 02 5C 64 FF 7F BE F2 2C 6A 70 20 23 61 28 [12:38:03]CheckFolder [12:38:03]dirname=/storage/ofd_packets [12:38:03]CheckFolder done [12:38:03]ProducePacketName [12:38:03]name=ofd_packets/00162812 [12:38:03]NVStorageSaveData ofd_packets/00162812 [12:38:03]File name is /storage/ofd_packets/00162812 [12:38:03]Write 302 bytes [12:38:03]NVStorageSaveData done [12:38:03]OFDSenderStorePacket done [12:38:03]KKMCreateOFDPacket done [12:38:03]NVStorageSaveData kkm_last_timestamp [12:38:03]File name is /storage/kkm_last_timestamp [12:38:03]Write 4 bytes [12:38:03]NVStorageSaveData done [12:38:03]ExternCall_PrintAddStr [12:38:03]wPrintStart [12:38:03]Write to MH i2c: 01 00 00 06 18 1E [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: 01 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: 01 07 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: 01 07 00 06 18 00 00 00 00 00 FF 0F 33 [12:38:03]RasterBufferAndPrint [12:38:03]line Счет N : (1)1319409 [12:38:03]line ИНН: 02508201610067 [12:38:03]line Контрольно-Кассовый Чек [12:38:03]line ПРОДАЖА [12:38:03]line ТРК (МРК, ГНК) : 42 [12:38:03]line Товар: 2710124130 [12:38:03]line Super-92-К-5 [12:38:03]line 45.700 * 67.30 [12:38:03]line = 3075.61 [12:38:03]line НДС 12% НСП 1% [12:38:04]line > о реализуемом товаре [12:38:04]line ИТОГО: 3075.61 [12:38:04]line НСП 1% : 27.22 [12:38:04]line НДС 12% : 326.61 [12:38:04]line Наличными: 0.00 [12:38:04]line Безнал.: 3075.61 [12:38:04]line Место: АЗС № 140 "Партнер Нефть" [12:38:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:38:04]line СНО: Общий режим [12:38:04]line Чек 124 14.07.2024 12:38 [12:38:04]line Смена: 463 ФФД: 1.0 [12:38:04]line ЗНМ: 0300000129 [12:38:04]line РНМ: 0000000000090858 [12:38:04]line Версия ККМ: 001 [12:38:04]line Платежная система: O! деньги [12:38:04]line ФМ: 0000000000874899 [12:38:04]line ФД: 162812 [12:38:04]line ФПД: 2595854712766 [12:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123802&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162812&fm=2595854712766&tin=02508201610067®Number=0000000000090858&sum=307561 [12:38:04]OFD Sender: Processing packet 162812 [packets to send 106, broken 105] [12:38:04]ProducePacketName [12:38:04]name=ofd_packets/00162812 [12:38:04]OFD Sender: To server: pG, [12:38:04]CommunicateWithHost lk.salyk.kg:30040 [12:38:04]ConnectInit lk.salyk.kg [12:38:04]written 0, free lines is 4095 [12:38:04]Connected sock=10 [12:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8B BA 08 01 A2 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 B2 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 69 B1 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 B1 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 7F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 B1 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AA C6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FC 7B 02 00 35 04 06 00 02 5C 64 FF 7F BE F2 2C 6A 70 20 23 61 28 [12:38:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 20 2F 47 00 0A 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FC 7B 02 00 F4 03 04 00 B9 72 93 66 B6 04 01 00 00 1D FC 6E 8D 90 B7 24 3B [12:38:04]CommunicateWithHost err = 0 [12:38:04]CheckOFDResponse [12:38:04]1017 (14) - 77093643461234 [12:38:04]1041 (16) - 0000000000874899 [12:38:04]1040 (4) - 162812 [12:38:04]1012 (4) - 14.07.2024 06:39 [12:38:04]1206 (1) - 0 [12:38:04]OFD Sender: Remove packet 162812 [12:38:04]ProducePacketName [12:38:04]name=ofd_packets/00162812 [12:38:04]NVStorageDeleteData [12:38:04]Write to MH i2c: 01 00 00 30 18 48 [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: 01 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: 01 07 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: 01 07 00 30 18 00 00 00 00 00 03 0D 5F [12:38:04]RasterBufferAndPrint [12:38:04]line [12:38:04]line [12:38:04]line [12:38:04]line [12:38:04]line [12:38:04]written 0, free lines is 3343 [12:38:04]MH_Cut [12:38:04]Write to MH i2c: D1 01 00 37 18 01 21 [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: D1 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: D1 01 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: D1 01 00 37 18 00 20 [12:38:04]Write to MH i2c: 01 00 00 38 18 50 [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:05]OFD Sender: No OFD packet to send [12:38:05]*** Cut start [12:38:05]*** Purtial cut [12:38:05]*** Stage 1: CUTSNS_PIN = 1 [12:38:05]Read from MH i2c: 01 [12:38:05]MH_I2C_Read... [12:38:05]*** Stop cut motor [12:38:05]*** Cut end [12:38:05]Read from MH i2c: 01 07 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: 01 07 00 38 18 00 00 00 00 00 FF 0F 65 [12:38:05]process_action close_receipt done [12:38:05]requested_data is exist [12:38:05]produce_requested_data [12:38:05]requested_item fm.sn is exist - process it [12:38:05]wFMCommunicate request_size=4 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 11 00 00 [12:38:05]Write to MH i2c: E2 08 00 39 18 80 11 00 00 00 00 00 00 CB [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:05]Read from MH i2c: E2 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 17 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 17 00 39 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2B [12:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:38:05]wFMCommunicate OK [12:38:05]requested_item fd.num is exist - process it [12:38:05]SAM_PROTO_GetFieldsCounters [12:38:05]wFMCommunicate request_size=4 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 13 00 00 [12:38:05]Write to MH i2c: E2 08 00 3A 18 80 13 00 00 00 00 00 00 CE [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:05]Read from MH i2c: E2 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 62 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 62 00 3A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FC 7B 02 00 0E 04 04 00 CF 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 BE [12:38:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FC 7B 02 00 0E 04 04 00 CF 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 [12:38:05]wFMCommunicate OK [12:38:05]SAM_PROTO_GetFieldsCounters done [12:38:05]requested_item shift.num is exist - process it [12:38:05]requested_item shift.opened is exist - process it [12:38:05]req_shift_opened [12:38:05]FM_GetShiftState [12:38:05]SAM_PROTO_GetShiftState [12:38:05]wFMCommunicate request_size=4 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 13 01 00 [12:38:05]Write to MH i2c: E2 08 00 3B 18 80 13 01 00 00 00 00 00 D0 [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:06]Read from MH i2c: E2 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: E2 0E 00 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: E2 0E 00 3B 18 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 06 [12:38:06]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:38:06]wFMCommunicate OK [12:38:06]SAM_PROTO_GetShiftState done [12:38:06]FM_GetShiftState done [12:38:06]req_shift_opened done [12:38:06]requested_item shift.open_date is exist - process it [12:38:06]req_shift_open_date [12:38:06]req_shift_open_date done [12:38:06]produce_requested_data done [12:38:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162812,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:38:06]process_action_free close_receipt [12:38:06]json_value_free [12:38:06]json_value_free done [12:38:06]process_json_proto returns [12:38:06]Send response to host [12:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162812,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:38:06]free response buf [12:38:06]execute_script done [12:38:06]execute_script returns [12:38:06]free content buf [12:38:06]Sock 9.Close socket [12:38:06]Sock 9.Thread stoped [12:38:10]OFD Sender: No OFD packet to send [12:38:10]accept exits with 7 [12:38:10]New connection [12:38:10]New thread 3066879332 created [12:38:10]Thread 3066735972 joined [12:38:10]Waiting for new connection... [12:38:10] Sock 7.Parse request [12:38:10]Sock 7.Check first char [12:38:10]Sock 7.First char is OK [12:38:10]request: POST /json_proto HTTP/1.0 [12:38:10]Method: POST [12:38:10]URL: /json_proto [12:38:10]Method is POST - this is cgi request [12:38:10]url: /json_proto [12:38:10]query_string will be loaded in cgi processing [12:38:10]execute_cgi json_proto POST (null) [12:38:10]execute_cgi path=json_proto method=POST [12:38:10]POST find Content-Length [12:38:10]Host: 172.17.39.67:8080 [12:38:10]Content-Length: 678 [12:38:10]Content-Type: application/json [12:38:10] [12:38:10]POST finish read [12:38:10]Found Content-Length = 678 [12:38:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:10]execute_script... [12:38: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)1319411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:10]POST & json_proto [12:38:10]process_json_proto [12:38:10]json parsed OK: [12:38:10]protocol is kg_v1.0 [12:38:10]action value=close_receipt [12:38:10]process_action close_receipt [12:38:10]cmd_close_receipt [12:38:10]MH_GetDate [12:38:10]Write to MH i2c: F0 00 00 3C 18 43 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: F0 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: F0 09 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: F0 09 00 3C 18 00 B3 C6 93 66 B6 85 93 66 F2 [12:38:10]GetLastDocTimeStamp 1720960682 [12:38:10]current date 1720960691 [12:38:10]FM_GetShiftState [12:38:10]SAM_PROTO_GetShiftState [12:38:10]wFMCommunicate request_size=4 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 13 01 00 [12:38:10]Write to MH i2c: E2 08 00 3D 18 80 13 01 00 00 00 00 00 D2 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 0E 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 0E 00 3D 18 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 08 [12:38:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:38:10]wFMCommunicate OK [12:38:10]SAM_PROTO_GetShiftState done [12:38:10]FM_GetShiftState done [12:38:10]opened in 1720915483 [12:38:10]opened+sec_in_day 1721001883 [12:38:10]quantity*price = 50056 [12:38:10]sum+1 = 50058 [12:38:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 125 14.07.2024 12:38 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162813 ФПД: 260831542872118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123811&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162813&fm=260831542872118&tin=02508201610067®Number=0000000000090858&sum=50000 [12:38:11]StoreToDocumentArchive [12:38:11]shift 463 fd 162813 [12:38:11]save to /storage/0463/doc_00162813 [12:38:11]save last doc name /storage/0463/doc_00162813 to /storage/kkm_last_doc_name [12:38:11]save OK [12:38:11]Clear old archive folders... [12:38:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:11]tlvbuf is 01227DD0 [12:38:11]SAM_PROTO_ClearQueue [12:38:11]wFMCommunicate request_size=4 [12:38:11]MH_SAM_APDU [12:38:11]CAPDU: 80 09 00 00 [12:38:11]Write to MH i2c: E2 08 00 4A 18 80 09 00 00 00 00 00 00 D4 [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:11]Read from MH i2c: E2 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 03 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 03 00 4A 18 00 90 00 D6 [12:38:11]RAPDU: 90 00 [12:38:11]wFMCommunicate OK [12:38:11]SAM_PROTO_ClearQueue done [12:38:11]KKMCreateOFDPacket [12:38:11]OFDProtocolAddRootSTLVToBuf [12:38:11]FM_MakeSignedData [12:38:11]FM_MakeSignedData [12:38:11]SAM_PROTO_SignData [12:38:11]wFMCommunicate request_size=4 [12:38:11]MH_SAM_APDU [12:38:11]CAPDU: 80 0D 01 02 [12:38:11]Write to MH i2c: E2 08 00 4B 18 80 0D 01 02 00 00 00 00 DC [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:11]Read from MH i2c: E2 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 03 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 03 00 4B 18 00 90 00 D7 [12:38:11]RAPDU: 90 00 [12:38:11]wFMCommunicate OK [12:38:11]wFMCommunicate request_size=255 [12:38:11]MH_SAM_APDU [12:38: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 7D 00 00 00 F4 03 04 00 B3 C6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FD 7B 02 00 35 04 06 00 ED [12:38:11]Write to MH i2c: E2 02 01 4C 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 7D 00 00 00 F4 03 04 00 B3 C6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FD 7B 02 00 35 04 06 00 ED 00 00 BE [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:11]Read from MH i2c: E2 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 03 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 03 00 4C 18 00 90 00 D8 [12:38:11]RAPDU: 90 00 [12:38:11]wFMCommunicate OK [12:38:11]wFMCommunicate request_size=10 [12:38:11]MH_SAM_APDU [12:38:11]CAPDU: 80 0D 02 02 05 39 93 75 88 36 [12:38:11]Write to MH i2c: E2 0D 00 4D 18 80 0D 02 02 05 00 39 93 75 88 36 00 00 E8 [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:11]Read from MH i2c: E2 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 03 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [12:38:11]RAPDU: 90 00 [12:38:11]wFMCommunicate OK [12:38:11]wFMCommunicate request_size=4 [12:38:11]MH_SAM_APDU [12:38:11]CAPDU: 80 0D 03 02 [12:38:11]Write to MH i2c: E2 08 00 4E 18 80 0D 03 02 00 00 00 00 E1 [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:11]Read from MH i2c: E2 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 0B 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 0B 00 4E 18 00 F1 F4 4A 9C 21 E5 C4 83 90 00 FA [12:38:11]RAPDU: F1 F4 4A 9C 21 E5 C4 83 90 00 [12:38:11]wFMCommunicate OK [12:38:11]SAM_PROTO_SignData done [12:38:11]FM_MakeSignedData done [12:38:11]CreateOFDProtocolMessage [12:38:11]wFMCommunicate request_size=4 [12:38:11]MH_SAM_APDU [12:38:11]CAPDU: 80 11 00 00 [12:38:11]Write to MH i2c: E2 08 00 4F 18 80 11 00 00 00 00 00 00 E1 [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:11]Read from MH i2c: E2 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 17 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: E2 17 00 4F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 41 [12:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:38:11]wFMCommunicate OK [12:38:11]CreateOFDProtocolMessage done [12:38:11]OFDSenderStorePacket 162813 [12:38:11]StoreOFDPacket docnum=162813 [12:38:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 08 EC 07 01 AE 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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 7D 00 00 00 F4 03 04 00 B3 C6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FD 7B 02 00 35 04 06 00 ED 39 93 75 88 36 F1 F4 4A 9C 21 E5 C4 83 [12:38:11]CheckFolder [12:38:11]dirname=/storage/ofd_packets [12:38:11]CheckFolder done [12:38:11]ProducePacketName [12:38:11]name=ofd_packets/00162813 [12:38:11]NVStorageSaveData ofd_packets/00162813 [12:38:11]File name is /storage/ofd_packets/00162813 [12:38:11]Write 301 bytes [12:38:11]NVStorageSaveData done [12:38:11]OFDSenderStorePacket done [12:38:11]KKMCreateOFDPacket done [12:38:11]NVStorageSaveData kkm_last_timestamp [12:38:11]File name is /storage/kkm_last_timestamp [12:38:11]Write 4 bytes [12:38:11]NVStorageSaveData done [12:38:11]ExternCall_PrintAddStr [12:38:11]wPrintStart [12:38:11]Write to MH i2c: 01 00 00 50 18 68 [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: 01 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: 01 07 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: 01 07 00 50 18 00 00 00 00 00 FF 0F 7D [12:38:11]RasterBufferAndPrint [12:38:11]line Счет N : (1)1319411 [12:38:11]line ИНН: 02508201610067 [12:38:11]line Контрольно-Кассовый Чек [12:38:11]line ПРОДАЖА [12:38:11]line ТРК (МРК, ГНК) : 53 [12:38:11]line Товар: 2710124130 [12:38:11]line Аи-92-К-5 [12:38:11]line 7.550 * 66.30 [12:38:11]line = 500.57 [12:38:11]line НДС 12% НСП 1% [12:38:11]line > о реализуемом товаре [12:38:11]line ОКРУГЛЕНИЕ: -0.57 [12:38:11]line ИТОГО: 500.00 [12:38:11]line Внесено: 500.00 [12:38:11]line СДАЧА: 0.00 [12:38:11]line НСП 1% : 4.43 [12:38:11]line НДС 12% : 53.16 [12:38:11]line Наличными: 500.00 [12:38:11]line Безнал.: 0.00 [12:38:11]line Место: АЗС № 140 "Партнер Нефть" [12:38:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:38:12]line СНО: Общий режим [12:38:12]line Чек 125 14.07.2024 12:38 [12:38:12]line Смена: 463 ФФД: 1.0 [12:38:12]line ЗНМ: 0300000129 [12:38:12]line РНМ: 0000000000090858 [12:38:12]line Версия ККМ: 001 [12:38:12]line ФМ: 0000000000874899 [12:38:12]line ФД: 162813 [12:38:12]line ФПД: 260831542872118 [12:38:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T123811&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162813&fm=260831542872118&tin=02508201610067®Number=0000000000090858&sum=50000 [12:38:12]OFD Sender: Processing packet 162813 [packets to send 106, broken 105] [12:38:12]ProducePacketName [12:38:12]name=ofd_packets/00162813 [12:38:12]OFD Sender: To server: pG, [12:38:12]CommunicateWithHost lk.salyk.kg:30040 [12:38:12]ConnectInit lk.salyk.kg [12:38:12]written 0, free lines is 4095 [12:38:12]Connected sock=10 [12:38:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 08 EC 07 01 AE 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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 7D 00 00 00 F4 03 04 00 B3 C6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FD 7B 02 00 35 04 06 00 ED 39 93 75 88 36 F1 F4 4A 9C 21 E5 C4 83 [12:38:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 70 2F 47 00 CA A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FD 7B 02 00 F4 03 04 00 C0 72 93 66 B6 04 01 00 00 15 95 0C E2 CE D9 12 FF [12:38:12]CommunicateWithHost err = 0 [12:38:12]CheckOFDResponse [12:38:12]1017 (14) - 77093643461234 [12:38:12]1041 (16) - 0000000000874899 [12:38:12]1040 (4) - 162813 [12:38:12]1012 (4) - 14.07.2024 06:40 [12:38:12]1206 (1) - 0 [12:38:12]OFD Sender: Remove packet 162813 [12:38:12]ProducePacketName [12:38:12]name=ofd_packets/00162813 [12:38:12]NVStorageDeleteData [12:38:12]Write to MH i2c: 01 00 00 7B 18 93 [12:38:12]Write i2c OK [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: 01 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: 01 07 00 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: 01 07 00 7B 18 00 00 00 00 00 ED 0C 93 [12:38:12]RasterBufferAndPrint [12:38:12]line [12:38:12]line [12:38:12]line [12:38:12]line [12:38:12]line [12:38:12]written 0, free lines is 3327 [12:38:12]MH_Cut [12:38:12]Write to MH i2c: D1 01 00 82 18 01 6C [12:38:12]Write i2c OK [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: D1 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: D1 01 00 [12:38:12]MH_I2C_Read... [12:38:12]Read from MH i2c: D1 01 00 82 18 00 6B [12:38:12]Write to MH i2c: 01 00 00 83 18 9B [12:38:12]Write i2c OK [12:38:12]MH_I2C_Read... [12:38:13]OFD Sender: No OFD packet to send [12:38:13]*** Cut start [12:38:13]*** Purtial cut [12:38:13]*** CUTSNS_PIN = 0 [12:38:13]*** Stage 1: CUTSNS_PIN = 1 [12:38:15]Read from MH i2c: 01 [12:38:15]MH_I2C_Read... [12:38:15]*** Stop cut motor [12:38:15]*** Cut end [12:38:15]Read from MH i2c: 01 07 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: 01 07 00 83 18 00 00 00 00 00 FF 0F B0 [12:38:15]process_action close_receipt done [12:38:15]requested_data is exist [12:38:15]produce_requested_data [12:38:15]requested_item fm.sn is exist - process it [12:38:15]wFMCommunicate request_size=4 [12:38:15]MH_SAM_APDU [12:38:15]CAPDU: 80 11 00 00 [12:38:15]Write to MH i2c: E2 08 00 84 18 80 11 00 00 00 00 00 00 16 [12:38:15]Write i2c OK [12:38:15]MH_I2C_Read... [12:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:15]Read from MH i2c: E2 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 17 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 17 00 84 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 76 [12:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:38:15]wFMCommunicate OK [12:38:15]requested_item fd.num is exist - process it [12:38:15]SAM_PROTO_GetFieldsCounters [12:38:15]wFMCommunicate request_size=4 [12:38:15]MH_SAM_APDU [12:38:15]CAPDU: 80 13 00 00 [12:38:15]Write to MH i2c: E2 08 00 85 18 80 13 00 00 00 00 00 00 19 [12:38:15]Write i2c OK [12:38:15]MH_I2C_Read... [12:38:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:15]Read from MH i2c: E2 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 62 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 62 00 85 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FD 7B 02 00 0E 04 04 00 CF 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 0D [12:38:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FD 7B 02 00 0E 04 04 00 CF 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 [12:38:15]wFMCommunicate OK [12:38:15]SAM_PROTO_GetFieldsCounters done [12:38:15]requested_item shift.num is exist - process it [12:38:15]requested_item shift.opened is exist - process it [12:38:15]req_shift_opened [12:38:15]FM_GetShiftState [12:38:15]SAM_PROTO_GetShiftState [12:38:15]wFMCommunicate request_size=4 [12:38:15]MH_SAM_APDU [12:38:15]CAPDU: 80 13 01 00 [12:38:15]Write to MH i2c: E2 08 00 86 18 80 13 01 00 00 00 00 00 1B [12:38:15]Write i2c OK [12:38:15]MH_I2C_Read... [12:38:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:15]Read from MH i2c: E2 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 0E 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 0E 00 86 18 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 51 [12:38:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:38:15]wFMCommunicate OK [12:38:15]SAM_PROTO_GetShiftState done [12:38:15]FM_GetShiftState done [12:38:15]req_shift_opened done [12:38:15]requested_item shift.open_date is exist - process it [12:38:15]req_shift_open_date [12:38:15]req_shift_open_date done [12:38:15]produce_requested_data done [12:38:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162813,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:38:15]process_action_free close_receipt [12:38:15]json_value_free [12:38:15]json_value_free done [12:38:15]process_json_proto returns [12:38:15]Send response to host [12:38:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162813,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:38:15]free response buf [12:38:15]execute_script done [12:38:15]execute_script returns [12:38:15]free content buf [12:38:15]Sock 7.Close socket [12:38:15]Sock 7.Thread stoped [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:54]accept exits with 9 [12:42:54]New connection [12:42:54]New thread 3066735972 created [12:42:54]Thread 3066879332 joined [12:42:54]Waiting for new connection... [12:42:54] Sock 9.Parse request [12:42:54]Sock 9.Check first char [12:42:54]Sock 9.First char is OK [12:42:54]request: POST /json_proto HTTP/1.0 [12:42:54]Method: POST [12:42:54]URL: /json_proto [12:42:54]Method is POST - this is cgi request [12:42:54]url: /json_proto [12:42:54]query_string will be loaded in cgi processing [12:42:54]execute_cgi json_proto POST (null) [12:42:54]execute_cgi path=json_proto method=POST [12:42:54]POST find Content-Length [12:42:54]Host: 172.17.39.67:8080 [12:42:54]Content-Length: 1208 [12:42:54]Content-Type: application/json [12:42:54] [12:42:54]POST finish read [12:42:54]Found Content-Length = 1208 [12:42:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319412\u000A14.07.2024 12:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00419\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:54]execute_script... [12:42:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319412\u000A14.07.2024 12:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00419\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:54]POST & json_proto [12:42:54]process_json_proto [12:42:54]json parsed OK: [12:42:54]protocol is kg_v1.0 [12:42:54]action value=print_text [12:42:54]process_action print_text [12:42:54]cmd_print_text [12:42:54]ExternCall_PrintAddStr [12:42:54]wPrintStart [12:42:54]Write to MH i2c: 01 00 00 87 18 9F [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: 01 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: 01 07 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: 01 07 00 87 18 00 00 00 00 00 FF 0F B4 [12:42:54]RasterBufferAndPrint [12:42:54]line *****ТОВАРНЫЙ ЧЕК***** [12:42:54]line АЗС 140 [12:42:54]line Партнер нефть [12:42:54]line 02508201610067 [12:42:54]line Кассир : Дуйшенбек у Н. [12:42:54]line Счет N : (1)1319412 [12:42:54]line 14.07.2024 12:40 [12:42:54]line ПРОДАЖА [12:42:54]line ТРК (МРК, ГНК): 63 [12:42:54]line Вид ГСМ : 2710124130 [12:42:54]line Аи-92-К-5 [12:42:54]line 20.000 x 66.30 [12:42:54]line ИТОГ: 1326.00 [12:42:54]line Тип оплаты: Талоны: Топливная Карта [12:42:54]line 00419 [12:42:54]line ______________________ [12:42:54]line (подпись) [12:42:54]written 0, free lines is 4095 [12:42:54]Write to MH i2c: 01 00 00 9B 18 B3 [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: 01 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: 01 07 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: 01 07 00 9B 18 00 00 00 00 00 12 0E DA [12:42:54]RasterBufferAndPrint [12:42:54]line [12:42:54]line [12:42:54]line [12:42:54]line [12:42:54]line [12:42:54]written 0, free lines is 3604 [12:42:54]MH_Cut [12:42:54]Write to MH i2c: D1 01 00 A2 18 01 8C [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: D1 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: D1 01 00 [12:42:54]MH_I2C_Read... [12:42:54]Read from MH i2c: D1 01 00 A2 18 00 8B [12:42:54]Write to MH i2c: 01 00 00 A3 18 BB [12:42:54]Write i2c OK [12:42:54]MH_I2C_Read... [12:42:55]*** Cut start [12:42:55]*** Purtial cut [12:42:55]*** Stage 1: CUTSNS_PIN = 1 [12:42:55]Read from MH i2c: 01 [12:42:55]MH_I2C_Read... [12:42:55]*** Stop cut motor [12:42:55]*** Cut end [12:42:55]Read from MH i2c: 01 07 00 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: 01 07 00 A3 18 00 00 00 00 00 FF 0F D0 [12:42:55]process_action print_text done [12:42:55]requested_data is exist [12:42:55]produce_requested_data [12:42:55]requested_item fm.sn is exist - process it [12:42:55]wFMCommunicate request_size=4 [12:42:55]MH_SAM_APDU [12:42:55]CAPDU: 80 11 00 00 [12:42:55]Write to MH i2c: E2 08 00 A4 18 80 11 00 00 00 00 00 00 36 [12:42:55]Write i2c OK [12:42:55]MH_I2C_Read... [12:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:55]Read from MH i2c: E2 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: E2 17 00 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: E2 17 00 A4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 96 [12:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:42:55]wFMCommunicate OK [12:42:55]requested_item fd.num is exist - process it [12:42:55]SAM_PROTO_GetFieldsCounters [12:42:55]wFMCommunicate request_size=4 [12:42:55]MH_SAM_APDU [12:42:55]CAPDU: 80 13 00 00 [12:42:55]Write to MH i2c: E2 08 00 A5 18 80 13 00 00 00 00 00 00 39 [12:42:55]Write i2c OK [12:42:55]MH_I2C_Read... [12:42:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:55]Read from MH i2c: E2 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: E2 62 00 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: E2 62 00 A5 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FD 7B 02 00 0E 04 04 00 CF 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 2D [12:42:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FD 7B 02 00 0E 04 04 00 CF 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 [12:42:55]wFMCommunicate OK [12:42:55]SAM_PROTO_GetFieldsCounters done [12:42:55]requested_item shift.num is exist - process it [12:42:55]requested_item shift.opened is exist - process it [12:42:55]req_shift_opened [12:42:55]FM_GetShiftState [12:42:55]SAM_PROTO_GetShiftState [12:42:55]wFMCommunicate request_size=4 [12:42:55]MH_SAM_APDU [12:42:55]CAPDU: 80 13 01 00 [12:42:55]Write to MH i2c: E2 08 00 A6 18 80 13 01 00 00 00 00 00 3B [12:42:55]Write i2c OK [12:42:55]MH_I2C_Read... [12:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:55]Read from MH i2c: E2 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: E2 0E 00 [12:42:55]MH_I2C_Read... [12:42:55]Read from MH i2c: E2 0E 00 A6 18 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 71 [12:42:55]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:42:55]wFMCommunicate OK [12:42:55]SAM_PROTO_GetShiftState done [12:42:55]FM_GetShiftState done [12:42:55]req_shift_opened done [12:42:55]requested_item shift.open_date is exist - process it [12:42:55]req_shift_open_date [12:42:55]req_shift_open_date done [12:42:55]produce_requested_data done [12:42:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162813,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:42:55]process_action_free print_text [12:42:55]json_value_free [12:42:55]json_value_free done [12:42:55]process_json_proto returns [12:42:55]Send response to host [12:42:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162813,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:42:55]free response buf [12:42:55]execute_script done [12:42:55]execute_script returns [12:42:55]free content buf [12:42:55]Sock 9.Close socket [12:42:55]Sock 9.Thread stoped [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:35]accept exits with 7 [12:43:35]New connection [12:43:35]New thread 3066879332 created [12:43:35]Thread 3066735972 joined [12:43:35]Waiting for new connection... [12:43:35] Sock 7.Parse request [12:43:35]Sock 7.Check first char [12:43:35]Sock 7.First char is OK [12:43:35]request: POST /json_proto HTTP/1.0 [12:43:35]Method: POST [12:43:35]URL: /json_proto [12:43:35]Method is POST - this is cgi request [12:43:35]url: /json_proto [12:43:35]query_string will be loaded in cgi processing [12:43:35]execute_cgi json_proto POST (null) [12:43:35]execute_cgi path=json_proto method=POST [12:43:35]POST find Content-Length [12:43:35]Host: 172.17.39.67:8080 [12:43:35]Content-Length: 678 [12:43:35]Content-Type: application/json [12:43:35] [12:43:35]POST finish read [12:43:35]Found Content-Length = 678 [12:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:35]execute_script... [12:43: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)1319413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:35]POST & json_proto [12:43:35]process_json_proto [12:43:35]json parsed OK: [12:43:35]protocol is kg_v1.0 [12:43:35]action value=close_receipt [12:43:35]process_action close_receipt [12:43:35]cmd_close_receipt [12:43:35]MH_GetDate [12:43:35]Write to MH i2c: F0 00 00 A7 18 AE [12:43:35]Write i2c OK [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: F0 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: F0 09 00 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: F0 09 00 A7 18 00 F8 C7 93 66 B6 85 93 66 A3 [12:43:35]GetLastDocTimeStamp 1720960691 [12:43:35]current date 1720961016 [12:43:35]FM_GetShiftState [12:43:35]SAM_PROTO_GetShiftState [12:43:35]wFMCommunicate request_size=4 [12:43:35]MH_SAM_APDU [12:43:35]CAPDU: 80 13 01 00 [12:43:35]Write to MH i2c: E2 08 00 A8 18 80 13 01 00 00 00 00 00 3D [12:43:35]Write i2c OK [12:43:35]MH_I2C_Read... [12:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:35]Read from MH i2c: E2 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: E2 0E 00 [12:43:35]MH_I2C_Read... [12:43:35]Read from MH i2c: E2 0E 00 A8 18 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 73 [12:43:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:43:35]wFMCommunicate OK [12:43:35]SAM_PROTO_GetShiftState done [12:43:35]FM_GetShiftState done [12:43:35]opened in 1720915483 [12:43:35]opened+sec_in_day 1721001883 [12:43:35]quantity*price = 50056 [12:43:35]sum+1 = 50058 [12:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 126 14.07.2024 12:43 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162814 ФПД: 82847486498699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124336&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162814&fm=82847486498699&tin=02508201610067®Number=0000000000090858&sum=50000 [12:43:36]StoreToDocumentArchive [12:43:36]shift 463 fd 162814 [12:43:36]save to /storage/0463/doc_00162814 [12:43:36]save last doc name /storage/0463/doc_00162814 to /storage/kkm_last_doc_name [12:43:36]save OK [12:43:36]Clear old archive folders... [12:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:36]tlvbuf is 0121FFE0 [12:43:36]SAM_PROTO_ClearQueue [12:43:36]wFMCommunicate request_size=4 [12:43:36]MH_SAM_APDU [12:43:36]CAPDU: 80 09 00 00 [12:43:36]Write to MH i2c: E2 08 00 B5 18 80 09 00 00 00 00 00 00 3F [12:43:36]Write i2c OK [12:43:36]MH_I2C_Read... [12:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:36]Read from MH i2c: E2 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: E2 03 00 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: E2 03 00 B5 18 00 90 00 41 [12:43:36]RAPDU: 90 00 [12:43:36]wFMCommunicate OK [12:43:36]SAM_PROTO_ClearQueue done [12:43:36]KKMCreateOFDPacket [12:43:36]OFDProtocolAddRootSTLVToBuf [12:43:36]FM_MakeSignedData [12:43:36]FM_MakeSignedData [12:43:36]SAM_PROTO_SignData [12:43:36]wFMCommunicate request_size=4 [12:43:36]MH_SAM_APDU [12:43:36]CAPDU: 80 0D 01 02 [12:43:36]Write to MH i2c: E2 08 00 B6 18 80 0D 01 02 00 00 00 00 47 [12:43:36]Write i2c OK [12:43:36]MH_I2C_Read... [12:43:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:37]Read from MH i2c: E2 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 03 00 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 03 00 B6 18 00 90 00 42 [12:43:37]RAPDU: 90 00 [12:43:37]wFMCommunicate OK [12:43:37]wFMCommunicate request_size=255 [12:43:37]MH_SAM_APDU [12:43: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 7E 00 00 00 F4 03 04 00 F8 C7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FE 7B 02 00 35 04 06 00 4B [12:43:37]Write to MH i2c: E2 02 01 B7 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 7E 00 00 00 F4 03 04 00 F8 C7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FE 7B 02 00 35 04 06 00 4B 00 00 CF [12:43:37]Write i2c OK [12:43:37]MH_I2C_Read... [12:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:37]Read from MH i2c: E2 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 03 00 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 03 00 B7 18 00 90 00 43 [12:43:37]RAPDU: 90 00 [12:43:37]wFMCommunicate OK [12:43:37]wFMCommunicate request_size=10 [12:43:37]MH_SAM_APDU [12:43:37]CAPDU: 80 0D 02 02 05 59 6F 00 D7 8B [12:43:37]Write to MH i2c: E2 0D 00 B8 18 80 0D 02 02 05 00 59 6F 00 D7 8B 00 00 7E [12:43:37]Write i2c OK [12:43:37]MH_I2C_Read... [12:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:37]Read from MH i2c: E2 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 03 00 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 03 00 B8 18 00 90 00 44 [12:43:37]RAPDU: 90 00 [12:43:37]wFMCommunicate OK [12:43:37]wFMCommunicate request_size=4 [12:43:37]MH_SAM_APDU [12:43:37]CAPDU: 80 0D 03 02 [12:43:37]Write to MH i2c: E2 08 00 B9 18 80 0D 03 02 00 00 00 00 4C [12:43:37]Write i2c OK [12:43:37]MH_I2C_Read... [12:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:37]Read from MH i2c: E2 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 0B 00 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 0B 00 B9 18 00 BB 32 AD C7 DC 33 FD 80 90 00 3A [12:43:37]RAPDU: BB 32 AD C7 DC 33 FD 80 90 00 [12:43:37]wFMCommunicate OK [12:43:37]SAM_PROTO_SignData done [12:43:37]FM_MakeSignedData done [12:43:37]CreateOFDProtocolMessage [12:43:37]wFMCommunicate request_size=4 [12:43:37]MH_SAM_APDU [12:43:37]CAPDU: 80 11 00 00 [12:43:37]Write to MH i2c: E2 08 00 BA 18 80 11 00 00 00 00 00 00 4C [12:43:37]Write i2c OK [12:43:37]MH_I2C_Read... [12:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:37]Read from MH i2c: E2 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 17 00 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 17 00 BA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AC [12:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:43:37]wFMCommunicate OK [12:43:37]CreateOFDProtocolMessage done [12:43:37]OFDSenderStorePacket 162814 [12:43:37]StoreOFDPacket docnum=162814 [12:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 0D 1F 07 01 F4 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 7E 00 00 00 F4 03 04 00 F8 C7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FE 7B 02 00 35 04 06 00 4B 59 6F 00 D7 8B BB 32 AD C7 DC 33 FD 80 [12:43:37]CheckFolder [12:43:37]dirname=/storage/ofd_packets [12:43:37]CheckFolder done [12:43:37]ProducePacketName [12:43:37]name=ofd_packets/00162814 [12:43:37]NVStorageSaveData ofd_packets/00162814 [12:43:37]File name is /storage/ofd_packets/00162814 [12:43:37]Write 301 bytes [12:43:37]NVStorageSaveData done [12:43:37]OFDSenderStorePacket done [12:43:37]KKMCreateOFDPacket done [12:43:37]NVStorageSaveData kkm_last_timestamp [12:43:37]File name is /storage/kkm_last_timestamp [12:43:37]Write 4 bytes [12:43:37]NVStorageSaveData done [12:43:37]ExternCall_PrintAddStr [12:43:37]wPrintStart [12:43:37]Write to MH i2c: 01 00 00 BB 18 D3 [12:43:37]Write i2c OK [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: 01 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: 01 07 00 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: 01 07 00 BB 18 00 00 00 00 00 FF 0F E8 [12:43:37]RasterBufferAndPrint [12:43:37]line Счет N : (1)1319413 [12:43:37]line ИНН: 02508201610067 [12:43:37]line Контрольно-Кассовый Чек [12:43:37]line ПРОДАЖА [12:43:37]line ТРК (МРК, ГНК) : 53 [12:43:37]line Товар: 2710124130 [12:43:37]line Аи-92-К-5 [12:43:37]line 7.550 * 66.30 [12:43:37]line = 500.57 [12:43:37]line НДС 12% НСП 1% [12:43:37]line > о реализуемом товаре [12:43:37]line ОКРУГЛЕНИЕ: -0.57 [12:43:37]line ИТОГО: 500.00 [12:43:37]line Внесено: 500.00 [12:43:37]line СДАЧА: 0.00 [12:43:37]line НСП 1% : 4.43 [12:43:37]line НДС 12% : 53.16 [12:43:37]line Наличными: 500.00 [12:43:37]line Безнал.: 0.00 [12:43:37]line Место: АЗС № 140 "Партнер Нефть" [12:43:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:43:37]line СНО: Общий режим [12:43:37]line Чек 126 14.07.2024 12:43 [12:43:37]line Смена: 463 ФФД: 1.0 [12:43:37]line ЗНМ: 0300000129 [12:43:37]line РНМ: 0000000000090858 [12:43:37]line Версия ККМ: 001 [12:43:37]line ФМ: 0000000000874899 [12:43:37]line ФД: 162814 [12:43:37]line ФПД: 82847486498699 [12:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124336&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162814&fm=82847486498699&tin=02508201610067®Number=0000000000090858&sum=50000 [12:43:37]OFD Sender: Processing packet 162814 [packets to send 106, broken 105] [12:43:37]ProducePacketName [12:43:37]name=ofd_packets/00162814 [12:43:37]OFD Sender: To server: pG, [12:43:37]CommunicateWithHost lk.salyk.kg:30040 [12:43:37]ConnectInit lk.salyk.kg [12:43:37]written 0, free lines is 4095 [12:43:37]Connected sock=10 [12:43:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 0D 1F 07 01 F4 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 7E 00 00 00 F4 03 04 00 F8 C7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FE 7B 02 00 35 04 06 00 4B 59 6F 00 D7 8B BB 32 AD C7 DC 33 FD 80 [12:43:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 33 93 47 00 6B 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FE 7B 02 00 F4 03 04 00 06 74 93 66 B6 04 01 00 00 D6 FA FB 7D 0B 3A 41 21 [12:43:38]CommunicateWithHost err = 0 [12:43:38]CheckOFDResponse [12:43:38]1017 (14) - 77093643461234 [12:43:38]1041 (16) - 0000000000874899 [12:43:38]1040 (4) - 162814 [12:43:38]1012 (4) - 14.07.2024 06:45 [12:43:38]1206 (1) - 0 [12:43:38]OFD Sender: Remove packet 162814 [12:43:38]ProducePacketName [12:43:38]name=ofd_packets/00162814 [12:43:38]NVStorageDeleteData [12:43:38]Write to MH i2c: 01 00 00 E6 18 FE [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: 01 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: 01 07 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: 01 07 00 E6 18 00 00 00 00 00 E8 0C F9 [12:43:38]RasterBufferAndPrint [12:43:38]line [12:43:38]line [12:43:38]line [12:43:38]line [12:43:38]line [12:43:38]written 0, free lines is 3313 [12:43:38]MH_Cut [12:43:38]Write to MH i2c: D1 01 00 ED 18 01 D7 [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: D1 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: D1 01 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: D1 01 00 ED 18 00 D6 [12:43:38]Write to MH i2c: 01 00 00 EE 18 06 [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]OFD Sender: No OFD packet to send [12:43:39]*** Cut start [12:43:39]*** Purtial cut [12:43:39]*** CUTSNS_PIN = 0 [12:43:39]*** Stage 1: CUTSNS_PIN = 1 [12:43:41]Read from MH i2c: 01 [12:43:41]MH_I2C_Read... [12:43:41]*** Stop cut motor [12:43:41]*** Cut end [12:43:41]Read from MH i2c: 01 07 00 [12:43:41]MH_I2C_Read... [12:43:41]Read from MH i2c: 01 07 00 EE 18 00 00 00 00 00 FF 0F 1B [12:43:41]process_action close_receipt done [12:43:41]requested_data is exist [12:43:41]produce_requested_data [12:43:41]requested_item fm.sn is exist - process it [12:43:41]wFMCommunicate request_size=4 [12:43:41]MH_SAM_APDU [12:43:41]CAPDU: 80 11 00 00 [12:43:41]Write to MH i2c: E2 08 00 EF 18 80 11 00 00 00 00 00 00 81 [12:43:41]Write i2c OK [12:43:41]MH_I2C_Read... [12:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:41]Read from MH i2c: E2 [12:43:41]MH_I2C_Read... [12:43:41]Read from MH i2c: E2 17 00 [12:43:41]MH_I2C_Read... [12:43:41]Read from MH i2c: E2 17 00 EF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E1 [12:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:43:41]wFMCommunicate OK [12:43:41]requested_item fd.num is exist - process it [12:43:41]SAM_PROTO_GetFieldsCounters [12:43:41]wFMCommunicate request_size=4 [12:43:41]MH_SAM_APDU [12:43:41]CAPDU: 80 13 00 00 [12:43:41]Write to MH i2c: E2 08 00 F0 18 80 13 00 00 00 00 00 00 84 [12:43:41]Write i2c OK [12:43:41]MH_I2C_Read... [12:43:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:41]Read from MH i2c: E2 [12:43:41]MH_I2C_Read... [12:43:41]Read from MH i2c: E2 62 00 [12:43:41]MH_I2C_Read... [12:43:41]Read from MH i2c: E2 62 00 F0 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FE 7B 02 00 0E 04 04 00 CF 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 7C [12:43:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FE 7B 02 00 0E 04 04 00 CF 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 [12:43:41]wFMCommunicate OK [12:43:41]SAM_PROTO_GetFieldsCounters done [12:43:41]requested_item shift.num is exist - process it [12:43:41]requested_item shift.opened is exist - process it [12:43:41]req_shift_opened [12:43:41]FM_GetShiftState [12:43:41]SAM_PROTO_GetShiftState [12:43:41]wFMCommunicate request_size=4 [12:43:41]MH_SAM_APDU [12:43:41]CAPDU: 80 13 01 00 [12:43:41]Write to MH i2c: E2 08 00 F1 18 80 13 01 00 00 00 00 00 86 [12:43:41]Write i2c OK [12:43:41]MH_I2C_Read... [12:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:41]Read from MH i2c: E2 [12:43:41]MH_I2C_Read... [12:43:41]Read from MH i2c: E2 0E 00 [12:43:41]MH_I2C_Read... [12:43:41]Read from MH i2c: E2 0E 00 F1 18 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BC [12:43:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:43:41]wFMCommunicate OK [12:43:41]SAM_PROTO_GetShiftState done [12:43:41]FM_GetShiftState done [12:43:41]req_shift_opened done [12:43:41]requested_item shift.open_date is exist - process it [12:43:41]req_shift_open_date [12:43:41]req_shift_open_date done [12:43:41]produce_requested_data done [12:43:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162814,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:43:41]process_action_free close_receipt [12:43:41]json_value_free [12:43:41]json_value_free done [12:43:41]process_json_proto returns [12:43:41]Send response to host [12:43:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162814,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:43:41]free response buf [12:43:41]execute_script done [12:43:41]execute_script returns [12:43:41]free content buf [12:43:41]Sock 7.Close socket [12:43:41]Sock 7.Thread stoped [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:41]accept exits with 9 [12:49:41]New connection [12:49:41]New thread 3066735972 created [12:49:41]Thread 3066879332 joined [12:49:41]Waiting for new connection... [12:49:41] Sock 9.Parse request [12:49:41]Sock 9.Check first char [12:49:41]Sock 9.First char is OK [12:49:41]request: POST /json_proto HTTP/1.0 [12:49:41]Method: POST [12:49:41]URL: /json_proto [12:49:41]Method is POST - this is cgi request [12:49:41]url: /json_proto [12:49:41]query_string will be loaded in cgi processing [12:49:41]execute_cgi json_proto POST (null) [12:49:41]execute_cgi path=json_proto method=POST [12:49:41]POST find Content-Length [12:49:41]Host: 172.17.39.67:8080 [12:49:41]Content-Length: 818 [12:49:41]Content-Type: application/json [12:49:41] [12:49:41]POST finish read [12:49:41]Found Content-Length = 818 [12:49:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:41]execute_script... [12:49: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)1319414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:41]POST & json_proto [12:49:41]process_json_proto [12:49:41]json parsed OK: [12:49:41]protocol is kg_v1.0 [12:49:41]action value=close_receipt [12:49:41]process_action close_receipt [12:49:41]cmd_close_receipt [12:49:41]MH_GetDate [12:49:41]Write to MH i2c: F0 00 00 F2 18 F9 [12:49:41]Write i2c OK [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: F0 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: F0 09 00 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: F0 09 00 F2 18 00 66 C9 93 66 B6 85 93 66 5E [12:49:41]GetLastDocTimeStamp 1720961016 [12:49:41]current date 1720961382 [12:49:41]FM_GetShiftState [12:49:41]SAM_PROTO_GetShiftState [12:49:41]wFMCommunicate request_size=4 [12:49:41]MH_SAM_APDU [12:49:41]CAPDU: 80 13 01 00 [12:49:41]Write to MH i2c: E2 08 00 F3 18 80 13 01 00 00 00 00 00 88 [12:49:41]Write i2c OK [12:49:41]MH_I2C_Read... [12:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:41]Read from MH i2c: E2 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 0E 00 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 0E 00 F3 18 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BE [12:49:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:49:41]wFMCommunicate OK [12:49:41]SAM_PROTO_GetShiftState done [12:49:41]FM_GetShiftState done [12:49:41]opened in 1720915483 [12:49:41]opened+sec_in_day 1721001883 [12:49:41]quantity*price = 99914 [12:49:41]sum+1 = 99915 [12:49:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.14 НСП 1% : 8.84 НДС 12% : 106.10 Наличными: 0.00 Безнал.: 999.14 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 127 14.07.2024 12:49 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162815 ФПД: 20781594495781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124942&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162815&fm=20781594495781&tin=02508201610067®Number=0000000000090858&sum=99914 [12:49:42]StoreToDocumentArchive [12:49:42]shift 463 fd 162815 [12:49:42]save to /storage/0463/doc_00162815 [12:49:42]save last doc name /storage/0463/doc_00162815 to /storage/kkm_last_doc_name [12:49:42]save OK [12:49:42]Clear old archive folders... [12:49:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:42]tlvbuf is 012280B0 [12:49:42]SAM_PROTO_ClearQueue [12:49:42]wFMCommunicate request_size=4 [12:49:42]MH_SAM_APDU [12:49:42]CAPDU: 80 09 00 00 [12:49:42]Write to MH i2c: E2 08 00 00 19 80 09 00 00 00 00 00 00 8B [12:49:42]Write i2c OK [12:49:42]MH_I2C_Read... [12:49:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:42]Read from MH i2c: E2 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: E2 03 00 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: E2 03 00 00 19 00 90 00 8D [12:49:42]RAPDU: 90 00 [12:49:42]wFMCommunicate OK [12:49:42]SAM_PROTO_ClearQueue done [12:49:42]KKMCreateOFDPacket [12:49:42]OFDProtocolAddRootSTLVToBuf [12:49:42]FM_MakeSignedData [12:49:42]FM_MakeSignedData [12:49:42]SAM_PROTO_SignData [12:49:42]wFMCommunicate request_size=4 [12:49:42]MH_SAM_APDU [12:49:42]CAPDU: 80 0D 01 02 [12:49:42]Write to MH i2c: E2 08 00 01 19 80 0D 01 02 00 00 00 00 93 [12:49:42]Write i2c OK [12:49:42]MH_I2C_Read... [12:49:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 03 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 03 00 01 19 00 90 00 8E [12:49:43]RAPDU: 90 00 [12:49:43]wFMCommunicate OK [12:49:43]wFMCommunicate request_size=255 [12:49:43]MH_SAM_APDU [12:49: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 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 66 C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FF 7B 02 00 35 04 06 00 12 [12:49:43]Write to MH i2c: E2 02 01 02 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 66 C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FF 7B 02 00 35 04 06 00 12 00 00 50 [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 03 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 03 00 02 19 00 90 00 8F [12:49:43]RAPDU: 90 00 [12:49:43]wFMCommunicate OK [12:49:43]wFMCommunicate request_size=10 [12:49:43]MH_SAM_APDU [12:49:43]CAPDU: 80 0D 02 02 05 E6 97 8E CB 25 [12:49:43]Write to MH i2c: E2 0D 00 03 19 80 0D 02 02 05 00 E6 97 8E CB 25 00 00 9B [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 03 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 03 00 03 19 00 90 00 90 [12:49:43]RAPDU: 90 00 [12:49:43]wFMCommunicate OK [12:49:43]wFMCommunicate request_size=4 [12:49:43]MH_SAM_APDU [12:49:43]CAPDU: 80 0D 03 02 [12:49:43]Write to MH i2c: E2 08 00 04 19 80 0D 03 02 00 00 00 00 98 [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 0B 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 0B 00 04 19 00 AD 60 F2 34 C3 8F 1D 52 90 00 8D [12:49:43]RAPDU: AD 60 F2 34 C3 8F 1D 52 90 00 [12:49:43]wFMCommunicate OK [12:49:43]SAM_PROTO_SignData done [12:49:43]FM_MakeSignedData done [12:49:43]CreateOFDProtocolMessage [12:49:43]wFMCommunicate request_size=4 [12:49:43]MH_SAM_APDU [12:49:43]CAPDU: 80 11 00 00 [12:49:43]Write to MH i2c: E2 08 00 05 19 80 11 00 00 00 00 00 00 98 [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 17 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 17 00 05 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F8 [12:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:49:43]wFMCommunicate OK [12:49:43]CreateOFDProtocolMessage done [12:49:43]OFDSenderStorePacket 162815 [12:49:43]StoreOFDPacket docnum=162815 [12:49:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F6 A0 07 01 B2 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 66 C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FF 7B 02 00 35 04 06 00 12 E6 97 8E CB 25 AD 60 F2 34 C3 8F 1D 52 [12:49:43]CheckFolder [12:49:43]dirname=/storage/ofd_packets [12:49:43]CheckFolder done [12:49:43]ProducePacketName [12:49:43]name=ofd_packets/00162815 [12:49:43]NVStorageSaveData ofd_packets/00162815 [12:49:43]File name is /storage/ofd_packets/00162815 [12:49:43]Write 301 bytes [12:49:43]NVStorageSaveData done [12:49:43]OFDSenderStorePacket done [12:49:43]KKMCreateOFDPacket done [12:49:43]NVStorageSaveData kkm_last_timestamp [12:49:43]File name is /storage/kkm_last_timestamp [12:49:43]Write 4 bytes [12:49:43]NVStorageSaveData done [12:49:43]ExternCall_PrintAddStr [12:49:43]wPrintStart [12:49:43]Write to MH i2c: 01 00 00 06 19 1F [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: 01 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: 01 07 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: 01 07 00 06 19 00 00 00 00 00 FF 0F 34 [12:49:43]RasterBufferAndPrint [12:49:43]line Счет N : (1)1319414 [12:49:43]line ИНН: 02508201610067 [12:49:43]line Контрольно-Кассовый Чек [12:49:43]line ПРОДАЖА [12:49:43]line ТРК (МРК, ГНК) : 53 [12:49:43]line Товар: 2710124130 [12:49:43]line Аи-92-К-5 [12:49:43]line 15.070 * 66.30 [12:49:43]line = 999.14 [12:49:43]line НДС 12% НСП 1% [12:49:43]line > о реализуемом товаре [12:49:43]line ИТОГО: 999.14 [12:49:43]line НСП 1% : 8.84 [12:49:43]line НДС 12% : 106.10 [12:49:43]line Наличными: 0.00 [12:49:43]line Безнал.: 999.14 [12:49:43]line Место: АЗС № 140 "Партнер Нефть" [12:49:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:49:43]line СНО: Общий режим [12:49:43]line Чек 127 14.07.2024 12:49 [12:49:43]line Смена: 463 ФФД: 1.0 [12:49:43]line ЗНМ: 0300000129 [12:49:43]line РНМ: 0000000000090858 [12:49:43]line Версия ККМ: 001 [12:49:43]line Платежная система: Бакай Банк [12:49:43]line ФМ: 0000000000874899 [12:49:43]line ФД: 162815 [12:49:43]line ФПД: 20781594495781 [12:49:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T124942&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162815&fm=20781594495781&tin=02508201610067®Number=0000000000090858&sum=99914 [12:49:43]written 0, free lines is 4095 [12:49:43]OFD Sender: Processing packet 162815 [packets to send 106, broken 105] [12:49:43]ProducePacketName [12:49:43]name=ofd_packets/00162815 [12:49:43]OFD Sender: To server: pG, [12:49:43]CommunicateWithHost lk.salyk.kg:30040 [12:49:43]ConnectInit lk.salyk.kg [12:49:43]Connected sock=10 [12:49:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F6 A0 07 01 B2 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 66 C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FF 7B 02 00 35 04 06 00 12 E6 97 8E CB 25 AD 60 F2 34 C3 8F 1D 52 [12:49:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 10 83 47 00 27 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FF 7B 02 00 F4 03 04 00 74 75 93 66 B6 04 01 00 00 D3 71 2C AD A4 CC 4A DE [12:49:44]CommunicateWithHost err = 0 [12:49:44]CheckOFDResponse [12:49:44]1017 (14) - 77093643461234 [12:49:44]1041 (16) - 0000000000874899 [12:49:44]1040 (4) - 162815 [12:49:44]1012 (4) - 14.07.2024 06:51 [12:49:44]1206 (1) - 0 [12:49:44]OFD Sender: Remove packet 162815 [12:49:44]ProducePacketName [12:49:44]name=ofd_packets/00162815 [12:49:44]NVStorageDeleteData [12:49:44]Write to MH i2c: 01 00 00 30 19 49 [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: 01 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: 01 07 00 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: 01 07 00 30 19 00 00 00 00 00 EC 0C 48 [12:49:44]RasterBufferAndPrint [12:49:44]line [12:49:44]line [12:49:44]line [12:49:44]line [12:49:44]line [12:49:44]written 0, free lines is 3314 [12:49:44]MH_Cut [12:49:44]Write to MH i2c: D1 01 00 37 19 01 22 [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: D1 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: D1 01 00 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: D1 01 00 37 19 00 21 [12:49:44]Write to MH i2c: 01 00 00 38 19 51 [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:44]OFD Sender: No OFD packet to send [12:49:44]*** Cut start [12:49:44]*** Purtial cut [12:49:44]*** Stage 1: CUTSNS_PIN = 1 [12:49:45]Read from MH i2c: 01 [12:49:45]MH_I2C_Read... [12:49:45]*** Stop cut motor [12:49:45]*** Cut end [12:49:45]Read from MH i2c: 01 07 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: 01 07 00 38 19 00 00 00 00 00 FF 0F 66 [12:49:45]process_action close_receipt done [12:49:45]requested_data is exist [12:49:45]produce_requested_data [12:49:45]requested_item fm.sn is exist - process it [12:49:45]wFMCommunicate request_size=4 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 11 00 00 [12:49:45]Write to MH i2c: E2 08 00 39 19 80 11 00 00 00 00 00 00 CC [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 17 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 17 00 39 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2C [12:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:49:45]wFMCommunicate OK [12:49:45]requested_item fd.num is exist - process it [12:49:45]SAM_PROTO_GetFieldsCounters [12:49:45]wFMCommunicate request_size=4 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 13 00 00 [12:49:45]Write to MH i2c: E2 08 00 3A 19 80 13 00 00 00 00 00 00 CF [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 62 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 62 00 3A 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FF 7B 02 00 0E 04 04 00 CF 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 CB [12:49:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FF 7B 02 00 0E 04 04 00 CF 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 [12:49:45]wFMCommunicate OK [12:49:45]SAM_PROTO_GetFieldsCounters done [12:49:45]requested_item shift.num is exist - process it [12:49:45]requested_item shift.opened is exist - process it [12:49:45]req_shift_opened [12:49:45]FM_GetShiftState [12:49:45]SAM_PROTO_GetShiftState [12:49:45]wFMCommunicate request_size=4 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 13 01 00 [12:49:45]Write to MH i2c: E2 08 00 3B 19 80 13 01 00 00 00 00 00 D1 [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 0E 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 0E 00 3B 19 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 07 [12:49:45]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:49:45]wFMCommunicate OK [12:49:45]SAM_PROTO_GetShiftState done [12:49:45]FM_GetShiftState done [12:49:45]req_shift_opened done [12:49:45]requested_item shift.open_date is exist - process it [12:49:45]req_shift_open_date [12:49:45]req_shift_open_date done [12:49:45]produce_requested_data done [12:49:45]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162815,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:49:45]process_action_free close_receipt [12:49:45]json_value_free [12:49:45]json_value_free done [12:49:45]process_json_proto returns [12:49:45]Send response to host [12:49:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162815,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:49:45]free response buf [12:49:45]execute_script done [12:49:45]execute_script returns [12:49:45]free content buf [12:49:45]Sock 9.Close socket [12:49:45]Sock 9.Thread stoped [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]accept exits with 7 [12:51:09]New connection [12:51:09]New thread 3066879332 created [12:51:09]Thread 3066735972 joined [12:51:09]Waiting for new connection... [12:51:09] Sock 7.Parse request [12:51:09]Sock 7.Check first char [12:51:09]Sock 7.First char is OK [12:51:09]request: POST /json_proto HTTP/1.0 [12:51:09]Method: POST [12:51:09]URL: /json_proto [12:51:09]Method is POST - this is cgi request [12:51:09]url: /json_proto [12:51:09]query_string will be loaded in cgi processing [12:51:09]execute_cgi json_proto POST (null) [12:51:09]execute_cgi path=json_proto method=POST [12:51:09]POST find Content-Length [12:51:09]Host: 172.17.39.67:8080 [12:51:09]Content-Length: 683 [12:51:09]Content-Type: application/json [12:51:09] [12:51:09]POST finish read [12:51:09]Found Content-Length = 683 [12:51:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:09]execute_script... [12:51: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)1319417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:09]POST & json_proto [12:51:09]process_json_proto [12:51:09]json parsed OK: [12:51:09]protocol is kg_v1.0 [12:51:09]action value=close_receipt [12:51:09]process_action close_receipt [12:51:09]cmd_close_receipt [12:51:09]MH_GetDate [12:51:09]Write to MH i2c: F0 00 00 3C 19 44 [12:51:09]Write i2c OK [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: F0 [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: F0 09 00 [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: F0 09 00 3C 19 00 BE C9 93 66 B6 85 93 66 01 [12:51:09]GetLastDocTimeStamp 1720961382 [12:51:09]current date 1720961470 [12:51:09]FM_GetShiftState [12:51:09]SAM_PROTO_GetShiftState [12:51:09]wFMCommunicate request_size=4 [12:51:09]MH_SAM_APDU [12:51:09]CAPDU: 80 13 01 00 [12:51:09]Write to MH i2c: E2 08 00 3D 19 80 13 01 00 00 00 00 00 D3 [12:51:09]Write i2c OK [12:51:09]MH_I2C_Read... [12:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:09]Read from MH i2c: E2 [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: E2 0E 00 [12:51:09]MH_I2C_Read... [12:51:09]Read from MH i2c: E2 0E 00 3D 19 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 09 [12:51:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:51:09]wFMCommunicate OK [12:51:09]SAM_PROTO_GetShiftState done [12:51:09]FM_GetShiftState done [12:51:09]opened in 1720915483 [12:51:09]opened+sec_in_day 1721001883 [12:51:09]quantity*price = 50021 [12:51:09]sum+1 = 50022 [12:51:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 128 14.07.2024 12:51 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162816 ФПД: 65325760632737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125110&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162816&fm=65325760632737&tin=02508201610067®Number=0000000000090858&sum=50000 [12:51:10]StoreToDocumentArchive [12:51:10]shift 463 fd 162816 [12:51:10]save to /storage/0463/doc_00162816 [12:51:10]save last doc name /storage/0463/doc_00162816 to /storage/kkm_last_doc_name [12:51:10]save OK [12:51:10]Clear old archive folders... [12:51:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:51:10]tlvbuf is B6D96360 [12:51:10]SAM_PROTO_ClearQueue [12:51:10]wFMCommunicate request_size=4 [12:51:10]MH_SAM_APDU [12:51:10]CAPDU: 80 09 00 00 [12:51:10]Write to MH i2c: E2 08 00 4A 19 80 09 00 00 00 00 00 00 D5 [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:10]Read from MH i2c: E2 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 03 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 03 00 4A 19 00 90 00 D7 [12:51:10]RAPDU: 90 00 [12:51:10]wFMCommunicate OK [12:51:10]SAM_PROTO_ClearQueue done [12:51:10]KKMCreateOFDPacket [12:51:10]OFDProtocolAddRootSTLVToBuf [12:51:10]FM_MakeSignedData [12:51:10]FM_MakeSignedData [12:51:10]SAM_PROTO_SignData [12:51:10]wFMCommunicate request_size=4 [12:51:10]MH_SAM_APDU [12:51:10]CAPDU: 80 0D 01 02 [12:51:10]Write to MH i2c: E2 08 00 4B 19 80 0D 01 02 00 00 00 00 DD [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:10]Read from MH i2c: E2 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 03 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 03 00 4B 19 00 90 00 D8 [12:51:10]RAPDU: 90 00 [12:51:10]wFMCommunicate OK [12:51:10]wFMCommunicate request_size=255 [12:51:10]MH_SAM_APDU [12:51:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 80 00 00 00 F4 03 04 00 BE C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 00 7C 02 00 35 04 06 00 [12:51:10]Write to MH i2c: E2 02 01 4C 19 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 80 00 00 00 F4 03 04 00 BE C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 00 7C 02 00 35 04 06 00 00 00 DC [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:10]Read from MH i2c: E2 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 03 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 03 00 4C 19 00 90 00 D9 [12:51:10]RAPDU: 90 00 [12:51:10]wFMCommunicate OK [12:51:10]wFMCommunicate request_size=11 [12:51:10]MH_SAM_APDU [12:51:10]CAPDU: 80 0D 02 02 06 3B 69 D6 C1 D7 A1 [12:51:10]Write to MH i2c: E2 0E 00 4D 19 80 0D 02 02 06 00 3B 69 D6 C1 D7 A1 00 00 9F [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:10]Read from MH i2c: E2 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 03 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 03 00 4D 19 00 90 00 DA [12:51:10]RAPDU: 90 00 [12:51:10]wFMCommunicate OK [12:51:10]wFMCommunicate request_size=4 [12:51:10]MH_SAM_APDU [12:51:10]CAPDU: 80 0D 03 02 [12:51:10]Write to MH i2c: E2 08 00 4E 19 80 0D 03 02 00 00 00 00 E2 [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:10]Read from MH i2c: E2 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 0B 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 0B 00 4E 19 00 C6 EF 6E 13 03 C9 72 C8 90 00 1F [12:51:10]RAPDU: C6 EF 6E 13 03 C9 72 C8 90 00 [12:51:10]wFMCommunicate OK [12:51:10]SAM_PROTO_SignData done [12:51:10]FM_MakeSignedData done [12:51:10]CreateOFDProtocolMessage [12:51:10]wFMCommunicate request_size=4 [12:51:10]MH_SAM_APDU [12:51:10]CAPDU: 80 11 00 00 [12:51:10]Write to MH i2c: E2 08 00 4F 19 80 11 00 00 00 00 00 00 E2 [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:10]Read from MH i2c: E2 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 17 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: E2 17 00 4F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 42 [12:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:51:10]wFMCommunicate OK [12:51:10]CreateOFDProtocolMessage done [12:51:10]OFDSenderStorePacket 162816 [12:51:10]StoreOFDPacket docnum=162816 [12:51:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 78 70 08 01 B3 1D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 80 00 00 00 F4 03 04 00 BE C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 00 7C 02 00 35 04 06 00 3B 69 D6 C1 D7 A1 C6 EF 6E 13 03 C9 72 C8 [12:51:10]CheckFolder [12:51:10]dirname=/storage/ofd_packets [12:51:10]CheckFolder done [12:51:10]ProducePacketName [12:51:10]name=ofd_packets/00162816 [12:51:10]NVStorageSaveData ofd_packets/00162816 [12:51:10]File name is /storage/ofd_packets/00162816 [12:51:10]Write 302 bytes [12:51:10]NVStorageSaveData done [12:51:10]OFDSenderStorePacket done [12:51:10]KKMCreateOFDPacket done [12:51:10]NVStorageSaveData kkm_last_timestamp [12:51:10]File name is /storage/kkm_last_timestamp [12:51:10]Write 4 bytes [12:51:10]NVStorageSaveData done [12:51:10]ExternCall_PrintAddStr [12:51:10]wPrintStart [12:51:10]Write to MH i2c: 01 00 00 50 19 69 [12:51:10]Write i2c OK [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: 01 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: 01 07 00 [12:51:10]MH_I2C_Read... [12:51:10]Read from MH i2c: 01 07 00 50 19 00 00 00 00 00 FF 0F 7E [12:51:10]RasterBufferAndPrint [12:51:10]line Счет N : (1)1319417 [12:51:10]line ИНН: 02508201610067 [12:51:10]line Контрольно-Кассовый Чек [12:51:10]line ПРОДАЖА [12:51:10]line ТРК (МРК, ГНК) : 11 [12:51:10]line Товар: 2710194210 [12:51:10]line ДТ(л)-К-5 [12:51:10]line 6.890 * 72.60 [12:51:10]line = 500.21 [12:51:10]line НДС 12% НСП 1% [12:51:10]line > о реализуемом товаре [12:51:10]line ОКРУГЛЕНИЕ: -0.21 [12:51:10]line ИТОГО: 500.00 [12:51:10]line Внесено: 500.00 [12:51:10]line СДАЧА: 0.00 [12:51:10]line НСП 1% : 4.43 [12:51:10]line НДС 12% : 53.12 [12:51:10]line Наличными: 500.00 [12:51:10]line Безнал.: 0.00 [12:51:10]line Место: АЗС № 140 "Партнер Нефть" [12:51:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:51:10]line СНО: Общий режим [12:51:10]line Чек 128 14.07.2024 12:51 [12:51:10]line Смена: 463 ФФД: 1.0 [12:51:10]line ЗНМ: 0300000129 [12:51:10]line РНМ: 0000000000090858 [12:51:10]line Версия ККМ: 001 [12:51:10]line ФМ: 0000000000874899 [12:51:10]line ФД: 162816 [12:51:10]line ФПД: 65325760632737 [12:51:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125110&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162816&fm=65325760632737&tin=02508201610067®Number=0000000000090858&sum=50000 [12:51:11]OFD Sender: Processing packet 162816 [packets to send 106, broken 105] [12:51:11]ProducePacketName [12:51:11]name=ofd_packets/00162816 [12:51:11]OFD Sender: To server: pG, [12:51:11]CommunicateWithHost lk.salyk.kg:30040 [12:51:11]ConnectInit lk.salyk.kg [12:51:11]written 0, free lines is 4095 [12:51:11]Connected sock=10 [12:51:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 78 70 08 01 B3 1D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 80 00 00 00 F4 03 04 00 BE C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 00 7C 02 00 35 04 06 00 3B 69 D6 C1 D7 A1 C6 EF 6E 13 03 C9 72 C8 [12:51:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B4 A5 47 00 ED 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 00 7C 02 00 F4 03 04 00 CB 75 93 66 B6 04 01 00 00 39 13 68 31 AB C5 55 E6 [12:51:11]CommunicateWithHost err = 0 [12:51:11]CheckOFDResponse [12:51:11]1017 (14) - 77093643461234 [12:51:11]1041 (16) - 0000000000874899 [12:51:11]1040 (4) - 162816 [12:51:11]1012 (4) - 14.07.2024 06:52 [12:51:11]1206 (1) - 0 [12:51:11]OFD Sender: Remove packet 162816 [12:51:11]ProducePacketName [12:51:11]name=ofd_packets/00162816 [12:51:11]NVStorageDeleteData [12:51:11]Write to MH i2c: 01 00 00 7B 19 94 [12:51:11]Write i2c OK [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: 01 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: 01 07 00 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: 01 07 00 7B 19 00 00 00 00 00 EE 0C 95 [12:51:11]RasterBufferAndPrint [12:51:11]line [12:51:11]line [12:51:11]line [12:51:11]line [12:51:11]line [12:51:11]written 0, free lines is 3319 [12:51:11]MH_Cut [12:51:11]Write to MH i2c: D1 01 00 82 19 01 6D [12:51:11]Write i2c OK [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: D1 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: D1 01 00 [12:51:11]MH_I2C_Read... [12:51:11]Read from MH i2c: D1 01 00 82 19 00 6C [12:51:11]Write to MH i2c: 01 00 00 83 19 9C [12:51:11]Write i2c OK [12:51:11]MH_I2C_Read... [12:51:11]OFD Sender: No OFD packet to send [12:51:12]*** Cut start [12:51:12]*** Purtial cut [12:51:12]*** CUTSNS_PIN = 0 [12:51:12]*** Stage 1: CUTSNS_PIN = 1 [12:51:14]Read from MH i2c: 01 [12:51:14]MH_I2C_Read... [12:51:14]*** Stop cut motor [12:51:14]*** Cut end [12:51:14]Read from MH i2c: 01 07 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: 01 07 00 83 19 00 00 00 00 00 FF 0F B1 [12:51:14]process_action close_receipt done [12:51:14]requested_data is exist [12:51:14]produce_requested_data [12:51:14]requested_item fm.sn is exist - process it [12:51:14]wFMCommunicate request_size=4 [12:51:14]MH_SAM_APDU [12:51:14]CAPDU: 80 11 00 00 [12:51:14]Write to MH i2c: E2 08 00 84 19 80 11 00 00 00 00 00 00 17 [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:14]Read from MH i2c: E2 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 17 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 17 00 84 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 77 [12:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:51:14]wFMCommunicate OK [12:51:14]requested_item fd.num is exist - process it [12:51:14]SAM_PROTO_GetFieldsCounters [12:51:14]wFMCommunicate request_size=4 [12:51:14]MH_SAM_APDU [12:51:14]CAPDU: 80 13 00 00 [12:51:14]Write to MH i2c: E2 08 00 85 19 80 13 00 00 00 00 00 00 1A [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:14]Read from MH i2c: E2 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 62 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 62 00 85 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 00 7C 02 00 0E 04 04 00 CF 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 1B [12:51:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 00 7C 02 00 0E 04 04 00 CF 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 [12:51:14]wFMCommunicate OK [12:51:14]SAM_PROTO_GetFieldsCounters done [12:51:14]requested_item shift.num is exist - process it [12:51:14]requested_item shift.opened is exist - process it [12:51:14]req_shift_opened [12:51:14]FM_GetShiftState [12:51:14]SAM_PROTO_GetShiftState [12:51:14]wFMCommunicate request_size=4 [12:51:14]MH_SAM_APDU [12:51:14]CAPDU: 80 13 01 00 [12:51:14]Write to MH i2c: E2 08 00 86 19 80 13 01 00 00 00 00 00 1C [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:14]Read from MH i2c: E2 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 0E 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 0E 00 86 19 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 52 [12:51:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:51:14]wFMCommunicate OK [12:51:14]SAM_PROTO_GetShiftState done [12:51:14]FM_GetShiftState done [12:51:14]req_shift_opened done [12:51:14]requested_item shift.open_date is exist - process it [12:51:14]req_shift_open_date [12:51:14]req_shift_open_date done [12:51:14]produce_requested_data done [12:51:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162816,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:51:14]process_action_free close_receipt [12:51:14]json_value_free [12:51:14]json_value_free done [12:51:14]process_json_proto returns [12:51:14]Send response to host [12:51:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162816,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:51:14]free response buf [12:51:14]execute_script done [12:51:14]execute_script returns [12:51:14]free content buf [12:51:14]Sock 7.Close socket [12:51:14]Sock 7.Thread stoped [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:38]accept exits with 9 [12:51:38]New connection [12:51:38]New thread 3066735972 created [12:51:38]Thread 3066879332 joined [12:51:38]Waiting for new connection... [12:51:38] Sock 9.Parse request [12:51:38]Sock 9.Check first char [12:51:38]Sock 9.First char is OK [12:51:38]request: POST /json_proto HTTP/1.0 [12:51:38]Method: POST [12:51:38]URL: /json_proto [12:51:38]Method is POST - this is cgi request [12:51:38]url: /json_proto [12:51:38]query_string will be loaded in cgi processing [12:51:38]execute_cgi json_proto POST (null) [12:51:38]execute_cgi path=json_proto method=POST [12:51:38]POST find Content-Length [12:51:38]Host: 172.17.39.67:8080 [12:51:38]Content-Length: 801 [12:51:38]Content-Type: application/json [12:51:38] [12:51:38]POST finish read [12:51:38]Found Content-Length = 801 [12:51:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 3.900, "sum" : 290.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 290.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:38]execute_script... [12:51: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)1319416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 3.900, "sum" : 290.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 290.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:38]POST & json_proto [12:51:38]process_json_proto [12:51:38]json parsed OK: [12:51:38]protocol is kg_v1.0 [12:51:38]action value=close_receipt [12:51:38]process_action close_receipt [12:51:38]cmd_close_receipt [12:51:38]MH_GetDate [12:51:38]Write to MH i2c: F0 00 00 87 19 8F [12:51:38]Write i2c OK [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: F0 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: F0 09 00 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: F0 09 00 87 19 00 DC C9 93 66 B6 85 93 66 6A [12:51:38]GetLastDocTimeStamp 1720961470 [12:51:38]current date 1720961500 [12:51:38]FM_GetShiftState [12:51:38]SAM_PROTO_GetShiftState [12:51:38]wFMCommunicate request_size=4 [12:51:38]MH_SAM_APDU [12:51:38]CAPDU: 80 13 01 00 [12:51:38]Write to MH i2c: E2 08 00 88 19 80 13 01 00 00 00 00 00 1E [12:51:38]Write i2c OK [12:51:38]MH_I2C_Read... [12:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:38]Read from MH i2c: E2 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: E2 0E 00 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: E2 0E 00 88 19 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 54 [12:51:38]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:51:38]wFMCommunicate OK [12:51:38]SAM_PROTO_GetShiftState done [12:51:38]FM_GetShiftState done [12:51:38]opened in 1720915483 [12:51:38]opened+sec_in_day 1721001883 [12:51:38]quantity*price = 29016 [12:51:38]sum+1 = 29017 [12:51:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 290.16 НСП 1% : 2.57 НДС 12% : 30.81 Наличными: 0.00 Безнал.: 290.16 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 129 14.07.2024 12:51 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162817 ФПД: 89778758037495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125140&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162817&fm=89778758037495&tin=02508201610067®Number=0000000000090858&sum=29016 [12:51:39]StoreToDocumentArchive [12:51:39]shift 463 fd 162817 [12:51:39]save to /storage/0463/doc_00162817 [12:51:39]save last doc name /storage/0463/doc_00162817 to /storage/kkm_last_doc_name [12:51:39]save OK [12:51:39]Clear old archive folders... [12:51:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:39]tlvbuf is 012FBCE0 [12:51:39]SAM_PROTO_ClearQueue [12:51:39]wFMCommunicate request_size=4 [12:51:39]MH_SAM_APDU [12:51:39]CAPDU: 80 09 00 00 [12:51:39]Write to MH i2c: E2 08 00 95 19 80 09 00 00 00 00 00 00 20 [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:39]Read from MH i2c: E2 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 03 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 03 00 95 19 00 90 00 22 [12:51:39]RAPDU: 90 00 [12:51:39]wFMCommunicate OK [12:51:39]SAM_PROTO_ClearQueue done [12:51:39]KKMCreateOFDPacket [12:51:39]OFDProtocolAddRootSTLVToBuf [12:51:39]FM_MakeSignedData [12:51:39]FM_MakeSignedData [12:51:39]SAM_PROTO_SignData [12:51:39]wFMCommunicate request_size=4 [12:51:39]MH_SAM_APDU [12:51:39]CAPDU: 80 0D 01 02 [12:51:39]Write to MH i2c: E2 08 00 96 19 80 0D 01 02 00 00 00 00 28 [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:40]Read from MH i2c: E2 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 03 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 03 00 96 19 00 90 00 23 [12:51:40]RAPDU: 90 00 [12:51:40]wFMCommunicate OK [12:51:40]wFMCommunicate request_size=255 [12:51:40]MH_SAM_APDU [12:51:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 58 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 DC C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 01 7C 02 00 35 04 06 00 51 [12:51:40]Write to MH i2c: E2 02 01 97 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 58 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 DC C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 01 7C 02 00 35 04 06 00 51 00 00 F1 [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:40]Read from MH i2c: E2 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 03 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 03 00 97 19 00 90 00 24 [12:51:40]RAPDU: 90 00 [12:51:40]wFMCommunicate OK [12:51:40]wFMCommunicate request_size=10 [12:51:40]MH_SAM_APDU [12:51:40]CAPDU: 80 0D 02 02 05 A7 3E FB 2F F7 [12:51:40]Write to MH i2c: E2 0D 00 98 19 80 0D 02 02 05 00 A7 3E FB 2F F7 00 00 3B [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:40]Read from MH i2c: E2 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 03 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 03 00 98 19 00 90 00 25 [12:51:40]RAPDU: 90 00 [12:51:40]wFMCommunicate OK [12:51:40]wFMCommunicate request_size=4 [12:51:40]MH_SAM_APDU [12:51:40]CAPDU: 80 0D 03 02 [12:51:40]Write to MH i2c: E2 08 00 99 19 80 0D 03 02 00 00 00 00 2D [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:40]Read from MH i2c: E2 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 0B 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 0B 00 99 19 00 DE 2B 76 79 C8 4E 1B 7A 90 00 D1 [12:51:40]RAPDU: DE 2B 76 79 C8 4E 1B 7A 90 00 [12:51:40]wFMCommunicate OK [12:51:40]SAM_PROTO_SignData done [12:51:40]FM_MakeSignedData done [12:51:40]CreateOFDProtocolMessage [12:51:40]wFMCommunicate request_size=4 [12:51:40]MH_SAM_APDU [12:51:40]CAPDU: 80 11 00 00 [12:51:40]Write to MH i2c: E2 08 00 9A 19 80 11 00 00 00 00 00 00 2D [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:40]Read from MH i2c: E2 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 17 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: E2 17 00 9A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8D [12:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:51:40]wFMCommunicate OK [12:51:40]CreateOFDProtocolMessage done [12:51:40]OFDSenderStorePacket 162817 [12:51:40]StoreOFDPacket docnum=162817 [12:51:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B4 8E 07 01 C8 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 58 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 DC C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 01 7C 02 00 35 04 06 00 51 A7 3E FB 2F F7 DE 2B 76 79 C8 4E 1B 7A [12:51:40]CheckFolder [12:51:40]dirname=/storage/ofd_packets [12:51:40]CheckFolder done [12:51:40]ProducePacketName [12:51:40]name=ofd_packets/00162817 [12:51:40]NVStorageSaveData ofd_packets/00162817 [12:51:40]File name is /storage/ofd_packets/00162817 [12:51:40]Write 301 bytes [12:51:40]NVStorageSaveData done [12:51:40]OFDSenderStorePacket done [12:51:40]KKMCreateOFDPacket done [12:51:40]NVStorageSaveData kkm_last_timestamp [12:51:40]File name is /storage/kkm_last_timestamp [12:51:40]Write 4 bytes [12:51:40]NVStorageSaveData done [12:51:40]ExternCall_PrintAddStr [12:51:40]wPrintStart [12:51:40]Write to MH i2c: 01 00 00 9B 19 B4 [12:51:40]Write i2c OK [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: 01 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: 01 07 00 [12:51:40]MH_I2C_Read... [12:51:40]Read from MH i2c: 01 07 00 9B 19 00 00 00 00 00 FF 0F C9 [12:51:40]RasterBufferAndPrint [12:51:40]line Счет N : (1)1319416 [12:51:40]line ИНН: 02508201610067 [12:51:40]line Контрольно-Кассовый Чек [12:51:40]line ПРОДАЖА [12:51:40]line ТРК (МРК, ГНК) : 34 [12:51:40]line Товар: 2710124500 [12:51:40]line Аи-95-К-5 [12:51:40]line 3.900 * 74.40 [12:51:40]line = 290.16 [12:51:40]line НДС 12% НСП 1% [12:51:40]line > о реализуемом товаре [12:51:40]line ИТОГО: 290.16 [12:51:40]line НСП 1% : 2.57 [12:51:40]line НДС 12% : 30.81 [12:51:40]line Наличными: 0.00 [12:51:40]line Безнал.: 290.16 [12:51:40]line Место: АЗС № 140 "Партнер Нефть" [12:51:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:51:40]line СНО: Общий режим [12:51:40]line Чек 129 14.07.2024 12:51 [12:51:40]line Смена: 463 ФФД: 1.0 [12:51:40]line ЗНМ: 0300000129 [12:51:40]line РНМ: 0000000000090858 [12:51:40]line Версия ККМ: 001 [12:51:40]line Платежная система: O! деньги [12:51:40]line ФМ: 0000000000874899 [12:51:40]line ФД: 162817 [12:51:40]line ФПД: 89778758037495 [12:51:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125140&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162817&fm=89778758037495&tin=02508201610067®Number=0000000000090858&sum=29016 [12:51:40]written 0, free lines is 4095 [12:51:40]OFD Sender: Processing packet 162817 [packets to send 106, broken 105] [12:51:40]ProducePacketName [12:51:40]name=ofd_packets/00162817 [12:51:40]OFD Sender: To server: pG, [12:51:40]CommunicateWithHost lk.salyk.kg:30040 [12:51:40]ConnectInit lk.salyk.kg [12:51:40]Connected sock=10 [12:51:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B4 8E 07 01 C8 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 58 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 DC C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 01 7C 02 00 35 04 06 00 51 A7 3E FB 2F F7 DE 2B 76 79 C8 4E 1B 7A [12:51:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 77 77 47 00 01 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 01 7C 02 00 F4 03 04 00 E9 75 93 66 B6 04 01 00 00 76 3B F1 AC B1 43 B7 4B [12:51:41]CommunicateWithHost err = 0 [12:51:41]CheckOFDResponse [12:51:41]1017 (14) - 77093643461234 [12:51:41]1041 (16) - 0000000000874899 [12:51:41]1040 (4) - 162817 [12:51:41]1012 (4) - 14.07.2024 06:53 [12:51:41]1206 (1) - 0 [12:51:41]OFD Sender: Remove packet 162817 [12:51:41]ProducePacketName [12:51:41]name=ofd_packets/00162817 [12:51:41]NVStorageDeleteData [12:51:41]Write to MH i2c: 01 00 00 C5 19 DE [12:51:41]Write i2c OK [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: 01 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: 01 07 00 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: 01 07 00 C5 19 00 00 00 00 00 ED 0C DE [12:51:41]RasterBufferAndPrint [12:51:41]line [12:51:41]line [12:51:41]line [12:51:41]line [12:51:41]line [12:51:41]written 0, free lines is 3315 [12:51:41]MH_Cut [12:51:41]Write to MH i2c: D1 01 00 CC 19 01 B7 [12:51:41]Write i2c OK [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: D1 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: D1 01 00 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: D1 01 00 CC 19 00 B6 [12:51:41]Write to MH i2c: 01 00 00 CD 19 E6 [12:51:41]Write i2c OK [12:51:41]MH_I2C_Read... [12:51:41]OFD Sender: No OFD packet to send [12:51:42]*** Cut start [12:51:42]*** Purtial cut [12:51:42]*** Stage 1: CUTSNS_PIN = 1 [12:51:42]Read from MH i2c: 01 [12:51:42]MH_I2C_Read... [12:51:42]*** Stop cut motor [12:51:42]*** Cut end [12:51:42]Read from MH i2c: 01 07 00 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: 01 07 00 CD 19 00 00 00 00 00 FF 0F FB [12:51:42]process_action close_receipt done [12:51:42]requested_data is exist [12:51:42]produce_requested_data [12:51:42]requested_item fm.sn is exist - process it [12:51:42]wFMCommunicate request_size=4 [12:51:42]MH_SAM_APDU [12:51:42]CAPDU: 80 11 00 00 [12:51:42]Write to MH i2c: E2 08 00 CE 19 80 11 00 00 00 00 00 00 61 [12:51:42]Write i2c OK [12:51:42]MH_I2C_Read... [12:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:42]Read from MH i2c: E2 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 17 00 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 17 00 CE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C1 [12:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:51:42]wFMCommunicate OK [12:51:42]requested_item fd.num is exist - process it [12:51:42]SAM_PROTO_GetFieldsCounters [12:51:42]wFMCommunicate request_size=4 [12:51:42]MH_SAM_APDU [12:51:42]CAPDU: 80 13 00 00 [12:51:42]Write to MH i2c: E2 08 00 CF 19 80 13 00 00 00 00 00 00 64 [12:51:42]Write i2c OK [12:51:42]MH_I2C_Read... [12:51:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:42]Read from MH i2c: E2 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 62 00 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 62 00 CF 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 01 7C 02 00 0E 04 04 00 CF 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 69 [12:51:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 01 7C 02 00 0E 04 04 00 CF 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 [12:51:42]wFMCommunicate OK [12:51:42]SAM_PROTO_GetFieldsCounters done [12:51:42]requested_item shift.num is exist - process it [12:51:42]requested_item shift.opened is exist - process it [12:51:42]req_shift_opened [12:51:42]FM_GetShiftState [12:51:42]SAM_PROTO_GetShiftState [12:51:42]wFMCommunicate request_size=4 [12:51:42]MH_SAM_APDU [12:51:42]CAPDU: 80 13 01 00 [12:51:42]Write to MH i2c: E2 08 00 D0 19 80 13 01 00 00 00 00 00 66 [12:51:42]Write i2c OK [12:51:42]MH_I2C_Read... [12:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:42]Read from MH i2c: E2 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 0E 00 [12:51:42]MH_I2C_Read... [12:51:42]Read from MH i2c: E2 0E 00 D0 19 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9C [12:51:42]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:51:42]wFMCommunicate OK [12:51:42]SAM_PROTO_GetShiftState done [12:51:42]FM_GetShiftState done [12:51:42]req_shift_opened done [12:51:42]requested_item shift.open_date is exist - process it [12:51:42]req_shift_open_date [12:51:42]req_shift_open_date done [12:51:42]produce_requested_data done [12:51:42]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162817,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:51:42]process_action_free close_receipt [12:51:42]json_value_free [12:51:42]json_value_free done [12:51:42]process_json_proto returns [12:51:42]Send response to host [12:51:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162817,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:51:42]free response buf [12:51:42]execute_script done [12:51:42]execute_script returns [12:51:42]free content buf [12:51:42]Sock 9.Close socket [12:51:42]Sock 9.Thread stoped [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:07]accept exits with 7 [12:52:07]New connection [12:52:07]New thread 3066879332 created [12:52:07]Thread 3066735972 joined [12:52:07]Waiting for new connection... [12:52:07] Sock 7.Parse request [12:52:07]Sock 7.Check first char [12:52:07]Sock 7.First char is OK [12:52:07]request: POST /json_proto HTTP/1.0 [12:52:07]Method: POST [12:52:07]URL: /json_proto [12:52:07]Method is POST - this is cgi request [12:52:07]url: /json_proto [12:52:07]query_string will be loaded in cgi processing [12:52:07]execute_cgi json_proto POST (null) [12:52:07]execute_cgi path=json_proto method=POST [12:52:07]POST find Content-Length [12:52:07]Host: 172.17.39.67:8080 [12:52:07]Content-Length: 678 [12:52:07]Content-Type: application/json [12:52:07] [12:52:07]POST finish read [12:52:07]Found Content-Length = 678 [12:52:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:07]execute_script... [12:52: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)1319415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:07]POST & json_proto [12:52:07]process_json_proto [12:52:07]json parsed OK: [12:52:07]protocol is kg_v1.0 [12:52:07]action value=close_receipt [12:52:07]process_action close_receipt [12:52:07]cmd_close_receipt [12:52:07]MH_GetDate [12:52:07]Write to MH i2c: F0 00 00 D1 19 D9 [12:52:07]Write i2c OK [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: F0 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: F0 09 00 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: F0 09 00 D1 19 00 F8 C9 93 66 B6 85 93 66 D0 [12:52:07]GetLastDocTimeStamp 1720961500 [12:52:07]current date 1720961528 [12:52:07]FM_GetShiftState [12:52:07]SAM_PROTO_GetShiftState [12:52:07]wFMCommunicate request_size=4 [12:52:07]MH_SAM_APDU [12:52:07]CAPDU: 80 13 01 00 [12:52:07]Write to MH i2c: E2 08 00 D2 19 80 13 01 00 00 00 00 00 68 [12:52:07]Write i2c OK [12:52:07]MH_I2C_Read... [12:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:07]Read from MH i2c: E2 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 0E 00 [12:52:07]MH_I2C_Read... [12:52:07]Read from MH i2c: E2 0E 00 D2 19 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9E [12:52:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:52:07]wFMCommunicate OK [12:52:07]SAM_PROTO_GetShiftState done [12:52:07]FM_GetShiftState done [12:52:07]opened in 1720915483 [12:52:07]opened+sec_in_day 1721001883 [12:52:07]quantity*price = 50056 [12:52:07]sum+1 = 50058 [12:52:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 130 14.07.2024 12:52 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162818 ФПД: 118009572565333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125208&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162818&fm=118009572565333&tin=02508201610067®Number=0000000000090858&sum=50000 [12:52:08]StoreToDocumentArchive [12:52:08]shift 463 fd 162818 [12:52:08]save to /storage/0463/doc_00162818 [12:52:08]save last doc name /storage/0463/doc_00162818 to /storage/kkm_last_doc_name [12:52:08]save OK [12:52:08]Clear old archive folders... [12:52:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:08]tlvbuf is 013690E0 [12:52:08]SAM_PROTO_ClearQueue [12:52:08]wFMCommunicate request_size=4 [12:52:08]MH_SAM_APDU [12:52:08]CAPDU: 80 09 00 00 [12:52:08]Write to MH i2c: E2 08 00 DF 19 80 09 00 00 00 00 00 00 6A [12:52:08]Write i2c OK [12:52:08]MH_I2C_Read... [12:52:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:08]Read from MH i2c: E2 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: E2 03 00 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: E2 03 00 DF 19 00 90 00 6C [12:52:08]RAPDU: 90 00 [12:52:08]wFMCommunicate OK [12:52:08]SAM_PROTO_ClearQueue done [12:52:08]KKMCreateOFDPacket [12:52:08]OFDProtocolAddRootSTLVToBuf [12:52:08]FM_MakeSignedData [12:52:08]FM_MakeSignedData [12:52:08]SAM_PROTO_SignData [12:52:08]wFMCommunicate request_size=4 [12:52:08]MH_SAM_APDU [12:52:08]CAPDU: 80 0D 01 02 [12:52:08]Write to MH i2c: E2 08 00 E0 19 80 0D 01 02 00 00 00 00 72 [12:52:08]Write i2c OK [12:52:08]MH_I2C_Read... [12:52:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:08]Read from MH i2c: E2 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: E2 03 00 [12:52:08]MH_I2C_Read... [12:52:08]Read from MH i2c: E2 03 00 E0 19 00 90 00 6D [12:52:08]RAPDU: 90 00 [12:52:08]wFMCommunicate OK [12:52:08]wFMCommunicate request_size=255 [12:52:08]MH_SAM_APDU [12:52: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 82 00 00 00 F4 03 04 00 F8 C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 02 7C 02 00 35 04 06 00 6B [12:52:08]Write to MH i2c: E2 02 01 E1 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 82 00 00 00 F4 03 04 00 F8 C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 02 7C 02 00 35 04 06 00 6B 00 00 25 [12:52:08]Write i2c OK [12:52:08]MH_I2C_Read... [12:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:09]Read from MH i2c: E2 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 03 00 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 03 00 E1 19 00 90 00 6E [12:52:09]RAPDU: 90 00 [12:52:09]wFMCommunicate OK [12:52:09]wFMCommunicate request_size=10 [12:52:09]MH_SAM_APDU [12:52:09]CAPDU: 80 0D 02 02 05 54 3E A7 21 55 [12:52:09]Write to MH i2c: E2 0D 00 E2 19 80 0D 02 02 05 00 54 3E A7 21 55 00 00 2E [12:52:09]Write i2c OK [12:52:09]MH_I2C_Read... [12:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:09]Read from MH i2c: E2 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 03 00 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 03 00 E2 19 00 90 00 6F [12:52:09]RAPDU: 90 00 [12:52:09]wFMCommunicate OK [12:52:09]wFMCommunicate request_size=4 [12:52:09]MH_SAM_APDU [12:52:09]CAPDU: 80 0D 03 02 [12:52:09]Write to MH i2c: E2 08 00 E3 19 80 0D 03 02 00 00 00 00 77 [12:52:09]Write i2c OK [12:52:09]MH_I2C_Read... [12:52:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:09]Read from MH i2c: E2 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 0B 00 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 0B 00 E3 19 00 C6 57 85 E8 20 90 5A F9 90 00 05 [12:52:09]RAPDU: C6 57 85 E8 20 90 5A F9 90 00 [12:52:09]wFMCommunicate OK [12:52:09]SAM_PROTO_SignData done [12:52:09]FM_MakeSignedData done [12:52:09]CreateOFDProtocolMessage [12:52:09]wFMCommunicate request_size=4 [12:52:09]MH_SAM_APDU [12:52:09]CAPDU: 80 11 00 00 [12:52:09]Write to MH i2c: E2 08 00 E4 19 80 11 00 00 00 00 00 00 77 [12:52:09]Write i2c OK [12:52:09]MH_I2C_Read... [12:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:09]Read from MH i2c: E2 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 17 00 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: E2 17 00 E4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D7 [12:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:52:09]wFMCommunicate OK [12:52:09]CreateOFDProtocolMessage done [12:52:09]OFDSenderStorePacket 162818 [12:52:09]StoreOFDPacket docnum=162818 [12:52:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D2 90 07 01 0A 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 82 00 00 00 F4 03 04 00 F8 C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 02 7C 02 00 35 04 06 00 6B 54 3E A7 21 55 C6 57 85 E8 20 90 5A F9 [12:52:09]CheckFolder [12:52:09]dirname=/storage/ofd_packets [12:52:09]CheckFolder done [12:52:09]ProducePacketName [12:52:09]name=ofd_packets/00162818 [12:52:09]NVStorageSaveData ofd_packets/00162818 [12:52:09]File name is /storage/ofd_packets/00162818 [12:52:09]Write 301 bytes [12:52:09]NVStorageSaveData done [12:52:09]OFDSenderStorePacket done [12:52:09]KKMCreateOFDPacket done [12:52:09]NVStorageSaveData kkm_last_timestamp [12:52:09]File name is /storage/kkm_last_timestamp [12:52:09]Write 4 bytes [12:52:09]NVStorageSaveData done [12:52:09]ExternCall_PrintAddStr [12:52:09]wPrintStart [12:52:09]Write to MH i2c: 01 00 00 E5 19 FE [12:52:09]Write i2c OK [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: 01 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: 01 07 00 [12:52:09]MH_I2C_Read... [12:52:09]Read from MH i2c: 01 07 00 E5 19 00 00 00 00 00 FF 0F 13 [12:52:09]RasterBufferAndPrint [12:52:09]line Счет N : (1)1319415 [12:52:09]line ИНН: 02508201610067 [12:52:09]line Контрольно-Кассовый Чек [12:52:09]line ПРОДАЖА [12:52:09]line ТРК (МРК, ГНК) : 53 [12:52:09]line Товар: 2710124130 [12:52:09]line Аи-92-К-5 [12:52:09]line 7.550 * 66.30 [12:52:09]line = 500.57 [12:52:09]line НДС 12% НСП 1% [12:52:09]line > о реализуемом товаре [12:52:09]line ОКРУГЛЕНИЕ: -0.57 [12:52:09]line ИТОГО: 500.00 [12:52:09]line Внесено: 500.00 [12:52:09]line СДАЧА: 0.00 [12:52:09]line НСП 1% : 4.43 [12:52:09]line НДС 12% : 53.16 [12:52:09]line Наличными: 500.00 [12:52:09]line Безнал.: 0.00 [12:52:09]line Место: АЗС № 140 "Партнер Нефть" [12:52:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:52:09]line СНО: Общий режим [12:52:09]line Чек 130 14.07.2024 12:52 [12:52:09]line Смена: 463 ФФД: 1.0 [12:52:09]line ЗНМ: 0300000129 [12:52:09]line РНМ: 0000000000090858 [12:52:09]line Версия ККМ: 001 [12:52:09]line ФМ: 0000000000874899 [12:52:09]line ФД: 162818 [12:52:09]line ФПД: 118009572565333 [12:52:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125208&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162818&fm=118009572565333&tin=02508201610067®Number=0000000000090858&sum=50000 [12:52:09]OFD Sender: Processing packet 162818 [packets to send 106, broken 105] [12:52:09]ProducePacketName [12:52:09]name=ofd_packets/00162818 [12:52:09]OFD Sender: To server: pG, [12:52:09]CommunicateWithHost lk.salyk.kg:30040 [12:52:09]ConnectInit lk.salyk.kg [12:52:09]written 0, free lines is 4095 [12:52:09]Connected sock=10 [12:52:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D2 90 07 01 0A 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 82 00 00 00 F4 03 04 00 F8 C9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 02 7C 02 00 35 04 06 00 6B 54 3E A7 21 55 C6 57 85 E8 20 90 5A F9 [12:52:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E4 28 47 00 03 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 02 7C 02 00 F4 03 04 00 06 76 93 66 B6 04 01 00 00 66 44 B4 BA F8 F0 CC B2 [12:52:10]CommunicateWithHost err = 0 [12:52:10]CheckOFDResponse [12:52:10]1017 (14) - 77093643461234 [12:52:10]1041 (16) - 0000000000874899 [12:52:10]1040 (4) - 162818 [12:52:10]1012 (4) - 14.07.2024 06:53 [12:52:10]1206 (1) - 0 [12:52:10]OFD Sender: Remove packet 162818 [12:52:10]ProducePacketName [12:52:10]name=ofd_packets/00162818 [12:52:10]NVStorageDeleteData [12:52:10]Write to MH i2c: 01 00 00 10 1A 2A [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: 01 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: 01 07 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: 01 07 00 10 1A 00 00 00 00 00 EE 0C 2B [12:52:10]RasterBufferAndPrint [12:52:10]line [12:52:10]line [12:52:10]line [12:52:10]line [12:52:10]line [12:52:10]written 0, free lines is 3319 [12:52:10]MH_Cut [12:52:10]Write to MH i2c: D1 01 00 17 1A 01 03 [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: D1 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: D1 01 00 [12:52:10]MH_I2C_Read... [12:52:10]Read from MH i2c: D1 01 00 17 1A 00 02 [12:52:10]Write to MH i2c: 01 00 00 18 1A 32 [12:52:10]Write i2c OK [12:52:10]MH_I2C_Read... [12:52:10]OFD Sender: No OFD packet to send [12:52:10]*** Cut start [12:52:10]*** Purtial cut [12:52:10]*** CUTSNS_PIN = 0 [12:52:11]*** Stage 1: CUTSNS_PIN = 1 [12:52:12]Read from MH i2c: 01 [12:52:12]MH_I2C_Read... [12:52:12]*** Stop cut motor [12:52:12]*** Cut end [12:52:12]Read from MH i2c: 01 07 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: 01 07 00 18 1A 00 00 00 00 00 FF 0F 47 [12:52:12]process_action close_receipt done [12:52:12]requested_data is exist [12:52:12]produce_requested_data [12:52:12]requested_item fm.sn is exist - process it [12:52:12]wFMCommunicate request_size=4 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 11 00 00 [12:52:12]Write to MH i2c: E2 08 00 19 1A 80 11 00 00 00 00 00 00 AD [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:13]Read from MH i2c: E2 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: E2 17 00 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: E2 17 00 19 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0D [12:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:52:13]wFMCommunicate OK [12:52:13]requested_item fd.num is exist - process it [12:52:13]SAM_PROTO_GetFieldsCounters [12:52:13]wFMCommunicate request_size=4 [12:52:13]MH_SAM_APDU [12:52:13]CAPDU: 80 13 00 00 [12:52:13]Write to MH i2c: E2 08 00 1A 1A 80 13 00 00 00 00 00 00 B0 [12:52:13]Write i2c OK [12:52:13]MH_I2C_Read... [12:52:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:13]Read from MH i2c: E2 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: E2 62 00 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: E2 62 00 1A 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 02 7C 02 00 0E 04 04 00 CF 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 B9 [12:52:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 02 7C 02 00 0E 04 04 00 CF 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 [12:52:13]wFMCommunicate OK [12:52:13]SAM_PROTO_GetFieldsCounters done [12:52:13]requested_item shift.num is exist - process it [12:52:13]requested_item shift.opened is exist - process it [12:52:13]req_shift_opened [12:52:13]FM_GetShiftState [12:52:13]SAM_PROTO_GetShiftState [12:52:13]wFMCommunicate request_size=4 [12:52:13]MH_SAM_APDU [12:52:13]CAPDU: 80 13 01 00 [12:52:13]Write to MH i2c: E2 08 00 1B 1A 80 13 01 00 00 00 00 00 B2 [12:52:13]Write i2c OK [12:52:13]MH_I2C_Read... [12:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:13]Read from MH i2c: E2 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: E2 0E 00 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: E2 0E 00 1B 1A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E8 [12:52:13]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:52:13]wFMCommunicate OK [12:52:13]SAM_PROTO_GetShiftState done [12:52:13]FM_GetShiftState done [12:52:13]req_shift_opened done [12:52:13]requested_item shift.open_date is exist - process it [12:52:13]req_shift_open_date [12:52:13]req_shift_open_date done [12:52:13]produce_requested_data done [12:52:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162818,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:52:13]process_action_free close_receipt [12:52:13]json_value_free [12:52:13]json_value_free done [12:52:13]process_json_proto returns [12:52:13]Send response to host [12:52:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162818,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:52:13]free response buf [12:52:13]execute_script done [12:52:13]execute_script returns [12:52:13]free content buf [12:52:13]Sock 7.Close socket [12:52:13]Sock 7.Thread stoped [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:22]accept exits with 9 [12:52:22]New connection [12:52:22]New thread 3066735972 created [12:52:22]Thread 3066879332 joined [12:52:22]Waiting for new connection... [12:52:22] Sock 9.Parse request [12:52:22]Sock 9.Check first char [12:52:22]Sock 9.First char is OK [12:52:22]request: POST /json_proto HTTP/1.0 [12:52:22]Method: POST [12:52:22]URL: /json_proto [12:52:22]Method is POST - this is cgi request [12:52:22]url: /json_proto [12:52:22]query_string will be loaded in cgi processing [12:52:22]execute_cgi json_proto POST (null) [12:52:22]execute_cgi path=json_proto method=POST [12:52:22]POST find Content-Length [12:52:22]Host: 172.17.39.67:8080 [12:52:22]Content-Length: 678 [12:52:22]Content-Type: application/json [12:52:22] [12:52:22]POST finish read [12:52:22]Found Content-Length = 678 [12:52:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 6.190, "sum" : 460.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:22]execute_script... [12:52: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)1319418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 6.190, "sum" : 460.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:22]POST & json_proto [12:52:22]process_json_proto [12:52:22]json parsed OK: [12:52:22]protocol is kg_v1.0 [12:52:22]action value=close_receipt [12:52:22]process_action close_receipt [12:52:22]cmd_close_receipt [12:52:22]MH_GetDate [12:52:22]Write to MH i2c: F0 00 00 1C 1A 25 [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: F0 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: F0 09 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: F0 09 00 1C 1A 00 07 CA 93 66 B6 85 93 66 2C [12:52:22]GetLastDocTimeStamp 1720961528 [12:52:22]current date 1720961543 [12:52:22]FM_GetShiftState [12:52:22]SAM_PROTO_GetShiftState [12:52:22]wFMCommunicate request_size=4 [12:52:22]MH_SAM_APDU [12:52:22]CAPDU: 80 13 01 00 [12:52:22]Write to MH i2c: E2 08 00 1D 1A 80 13 01 00 00 00 00 00 B4 [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:22]Read from MH i2c: E2 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 0E 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: E2 0E 00 1D 1A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 EA [12:52:22]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:52:22]wFMCommunicate OK [12:52:22]SAM_PROTO_GetShiftState done [12:52:22]FM_GetShiftState done [12:52:22]opened in 1720915483 [12:52:22]opened+sec_in_day 1721001883 [12:52:22]quantity*price = 46053 [12:52:22]sum+1 = 46055 [12:52:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 460.00 Внесено: 460.00 СДАЧА: 0.00 НСП 1% : 4.08 НДС 12% : 48.91 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 131 14.07.2024 12:52 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162819 ФПД: 24417464695518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125223&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162819&fm=24417464695518&tin=02508201610067®Number=0000000000090858&sum=46000 [12:52:23]StoreToDocumentArchive [12:52:23]shift 463 fd 162819 [12:52:23]save to /storage/0463/doc_00162819 [12:52:23]save last doc name /storage/0463/doc_00162819 to /storage/kkm_last_doc_name [12:52:23]save OK [12:52:23]Clear old archive folders... [12:52:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:23]tlvbuf is 0123B240 [12:52:23]SAM_PROTO_ClearQueue [12:52:23]wFMCommunicate request_size=4 [12:52:23]MH_SAM_APDU [12:52:23]CAPDU: 80 09 00 00 [12:52:23]Write to MH i2c: E2 08 00 2A 1A 80 09 00 00 00 00 00 00 B6 [12:52:23]Write i2c OK [12:52:23]MH_I2C_Read... [12:52:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:23]Read from MH i2c: E2 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 03 00 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 03 00 2A 1A 00 90 00 B8 [12:52:23]RAPDU: 90 00 [12:52:23]wFMCommunicate OK [12:52:23]SAM_PROTO_ClearQueue done [12:52:23]KKMCreateOFDPacket [12:52:23]OFDProtocolAddRootSTLVToBuf [12:52:23]FM_MakeSignedData [12:52:23]FM_MakeSignedData [12:52:23]SAM_PROTO_SignData [12:52:23]wFMCommunicate request_size=4 [12:52:23]MH_SAM_APDU [12:52:23]CAPDU: 80 0D 01 02 [12:52:23]Write to MH i2c: E2 08 00 2B 1A 80 0D 01 02 00 00 00 00 BE [12:52:23]Write i2c OK [12:52:23]MH_I2C_Read... [12:52:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:23]Read from MH i2c: E2 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 03 00 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 03 00 2B 1A 00 90 00 B9 [12:52:23]RAPDU: 90 00 [12:52:23]wFMCommunicate OK [12:52:23]wFMCommunicate request_size=255 [12:52:23]MH_SAM_APDU [12:52:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2E 18 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E6 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 07 CA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 03 7C 02 00 35 04 06 00 16 [12:52:23]Write to MH i2c: E2 02 01 2C 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2E 18 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E6 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 07 CA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 03 7C 02 00 35 04 06 00 16 00 00 2B [12:52:23]Write i2c OK [12:52:23]MH_I2C_Read... [12:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:23]Read from MH i2c: E2 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 03 00 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 03 00 2C 1A 00 90 00 BA [12:52:23]RAPDU: 90 00 [12:52:23]wFMCommunicate OK [12:52:23]wFMCommunicate request_size=10 [12:52:23]MH_SAM_APDU [12:52:23]CAPDU: 80 0D 02 02 05 35 22 4F 3A DE [12:52:23]Write to MH i2c: E2 0D 00 2D 1A 80 0D 02 02 05 00 35 22 4F 3A DE 00 00 89 [12:52:23]Write i2c OK [12:52:23]MH_I2C_Read... [12:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:23]Read from MH i2c: E2 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 03 00 [12:52:23]MH_I2C_Read... [12:52:23]Read from MH i2c: E2 03 00 2D 1A 00 90 00 BB [12:52:23]RAPDU: 90 00 [12:52:23]wFMCommunicate OK [12:52:23]wFMCommunicate request_size=4 [12:52:23]MH_SAM_APDU [12:52:23]CAPDU: 80 0D 03 02 [12:52:24]Write to MH i2c: E2 08 00 2E 1A 80 0D 03 02 00 00 00 00 C3 [12:52:24]Write i2c OK [12:52:24]MH_I2C_Read... [12:52:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:24]Read from MH i2c: E2 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: E2 0B 00 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: E2 0B 00 2E 1A 00 E7 64 45 F6 A3 AB 10 B7 90 00 5F [12:52:24]RAPDU: E7 64 45 F6 A3 AB 10 B7 90 00 [12:52:24]wFMCommunicate OK [12:52:24]SAM_PROTO_SignData done [12:52:24]FM_MakeSignedData done [12:52:24]CreateOFDProtocolMessage [12:52:24]wFMCommunicate request_size=4 [12:52:24]MH_SAM_APDU [12:52:24]CAPDU: 80 11 00 00 [12:52:24]Write to MH i2c: E2 08 00 2F 1A 80 11 00 00 00 00 00 00 C3 [12:52:24]Write i2c OK [12:52:24]MH_I2C_Read... [12:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:24]Read from MH i2c: E2 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: E2 17 00 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: E2 17 00 2F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 23 [12:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:52:24]wFMCommunicate OK [12:52:24]CreateOFDProtocolMessage done [12:52:24]OFDSenderStorePacket 162819 [12:52:24]StoreOFDPacket docnum=162819 [12:52:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 77 2E 07 01 9C 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2E 18 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E6 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 07 CA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 03 7C 02 00 35 04 06 00 16 35 22 4F 3A DE E7 64 45 F6 A3 AB 10 B7 [12:52:24]CheckFolder [12:52:24]dirname=/storage/ofd_packets [12:52:24]CheckFolder done [12:52:24]ProducePacketName [12:52:24]name=ofd_packets/00162819 [12:52:24]NVStorageSaveData ofd_packets/00162819 [12:52:24]File name is /storage/ofd_packets/00162819 [12:52:24]Write 301 bytes [12:52:24]NVStorageSaveData done [12:52:24]OFDSenderStorePacket done [12:52:24]KKMCreateOFDPacket done [12:52:24]NVStorageSaveData kkm_last_timestamp [12:52:24]File name is /storage/kkm_last_timestamp [12:52:24]Write 4 bytes [12:52:24]NVStorageSaveData done [12:52:24]ExternCall_PrintAddStr [12:52:24]wPrintStart [12:52:24]Write to MH i2c: 01 00 00 30 1A 4A [12:52:24]Write i2c OK [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: 01 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: 01 07 00 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: 01 07 00 30 1A 00 00 00 00 00 FF 0F 5F [12:52:24]RasterBufferAndPrint [12:52:24]line Счет N : (1)1319418 [12:52:24]line ИНН: 02508201610067 [12:52:24]line Контрольно-Кассовый Чек [12:52:24]line ПРОДАЖА [12:52:24]line ТРК (МРК, ГНК) : 34 [12:52:24]line Товар: 2710124500 [12:52:24]line Аи-95-К-5 [12:52:24]line 6.190 * 74.40 [12:52:24]line = 460.54 [12:52:24]line НДС 12% НСП 1% [12:52:24]line > о реализуемом товаре [12:52:24]line ОКРУГЛЕНИЕ: -0.54 [12:52:24]line ИТОГО: 460.00 [12:52:24]line Внесено: 460.00 [12:52:24]line СДАЧА: 0.00 [12:52:24]line НСП 1% : 4.08 [12:52:24]line НДС 12% : 48.91 [12:52:24]line Наличными: 460.00 [12:52:24]line Безнал.: 0.00 [12:52:24]line Место: АЗС № 140 "Партнер Нефть" [12:52:24]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:52:24]line СНО: Общий режим [12:52:24]line Чек 131 14.07.2024 12:52 [12:52:24]line Смена: 463 ФФД: 1.0 [12:52:24]line ЗНМ: 0300000129 [12:52:24]line РНМ: 0000000000090858 [12:52:24]line Версия ККМ: 001 [12:52:24]line ФМ: 0000000000874899 [12:52:24]line ФД: 162819 [12:52:24]line ФПД: 24417464695518 [12:52:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125223&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162819&fm=24417464695518&tin=02508201610067®Number=0000000000090858&sum=46000 [12:52:24]OFD Sender: Processing packet 162819 [packets to send 106, broken 105] [12:52:24]ProducePacketName [12:52:24]name=ofd_packets/00162819 [12:52:24]OFD Sender: To server: pG, [12:52:24]CommunicateWithHost lk.salyk.kg:30040 [12:52:24]ConnectInit lk.salyk.kg [12:52:24]written 0, free lines is 4095 [12:52:24]Connected sock=10 [12:52:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 77 2E 07 01 9C 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2E 18 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E6 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 07 CA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 03 7C 02 00 35 04 06 00 16 35 22 4F 3A DE E7 64 45 F6 A3 AB 10 B7 [12:52:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8F 86 47 00 F3 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 34 38 39 39 10 04 04 00 03 7C 02 00 F4 03 04 00 15 76 93 66 B6 04 01 00 00 16 47 35 9F A5 BA 0F EF [12:52:24]CommunicateWithHost err = 0 [12:52:24]CheckOFDResponse [12:52:24]1017 (14) - 77093643461234 [12:52:24]1041 (16) - 0000000000874899 [12:52:24]1040 (4) - 162819 [12:52:24]1012 (4) - 14.07.2024 06:54 [12:52:24]1206 (1) - 0 [12:52:24]OFD Sender: Remove packet 162819 [12:52:24]ProducePacketName [12:52:24]name=ofd_packets/00162819 [12:52:24]NVStorageDeleteData [12:52:24]Write to MH i2c: 01 00 00 5B 1A 75 [12:52:24]Write i2c OK [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: 01 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: 01 07 00 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: 01 07 00 5B 1A 00 00 00 00 00 F1 0C 79 [12:52:24]RasterBufferAndPrint [12:52:24]line [12:52:24]line [12:52:24]line [12:52:24]line [12:52:24]line [12:52:24]written 0, free lines is 3322 [12:52:24]MH_Cut [12:52:24]Write to MH i2c: D1 01 00 62 1A 01 4E [12:52:24]Write i2c OK [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: D1 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: D1 01 00 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: D1 01 00 62 1A 00 4D [12:52:24]Write to MH i2c: 01 00 00 63 1A 7D [12:52:24]Write i2c OK [12:52:24]MH_I2C_Read... [12:52:25]OFD Sender: No OFD packet to send [12:52:25]*** Cut start [12:52:25]*** Purtial cut [12:52:25]*** Stage 1: CUTSNS_PIN = 1 [12:52:25]Read from MH i2c: 01 [12:52:25]MH_I2C_Read... [12:52:25]*** Stop cut motor [12:52:25]*** Cut end [12:52:25]Read from MH i2c: 01 07 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: 01 07 00 63 1A 00 00 00 00 00 FF 0F 92 [12:52:25]process_action close_receipt done [12:52:25]requested_data is exist [12:52:25]produce_requested_data [12:52:25]requested_item fm.sn is exist - process it [12:52:25]wFMCommunicate request_size=4 [12:52:25]MH_SAM_APDU [12:52:25]CAPDU: 80 11 00 00 [12:52:25]Write to MH i2c: E2 08 00 64 1A 80 11 00 00 00 00 00 00 F8 [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:25]Read from MH i2c: E2 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 17 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 17 00 64 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 58 [12:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:52:25]wFMCommunicate OK [12:52:25]requested_item fd.num is exist - process it [12:52:25]SAM_PROTO_GetFieldsCounters [12:52:25]wFMCommunicate request_size=4 [12:52:25]MH_SAM_APDU [12:52:25]CAPDU: 80 13 00 00 [12:52:25]Write to MH i2c: E2 08 00 65 1A 80 13 00 00 00 00 00 00 FB [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:26]Read from MH i2c: E2 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 62 00 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 62 00 65 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 03 7C 02 00 0E 04 04 00 CF 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 08 [12:52:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 03 7C 02 00 0E 04 04 00 CF 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 [12:52:26]wFMCommunicate OK [12:52:26]SAM_PROTO_GetFieldsCounters done [12:52:26]requested_item shift.num is exist - process it [12:52:26]requested_item shift.opened is exist - process it [12:52:26]req_shift_opened [12:52:26]FM_GetShiftState [12:52:26]SAM_PROTO_GetShiftState [12:52:26]wFMCommunicate request_size=4 [12:52:26]MH_SAM_APDU [12:52:26]CAPDU: 80 13 01 00 [12:52:26]Write to MH i2c: E2 08 00 66 1A 80 13 01 00 00 00 00 00 FD [12:52:26]Write i2c OK [12:52:26]MH_I2C_Read... [12:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:26]Read from MH i2c: E2 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 0E 00 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 0E 00 66 1A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 33 [12:52:26]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:52:26]wFMCommunicate OK [12:52:26]SAM_PROTO_GetShiftState done [12:52:26]FM_GetShiftState done [12:52:26]req_shift_opened done [12:52:26]requested_item shift.open_date is exist - process it [12:52:26]req_shift_open_date [12:52:26]req_shift_open_date done [12:52:26]produce_requested_data done [12:52:26]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162819,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:52:26]process_action_free close_receipt [12:52:26]json_value_free [12:52:26]json_value_free done [12:52:26]process_json_proto returns [12:52:26]Send response to host [12:52:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162819,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:52:26]free response buf [12:52:26]execute_script done [12:52:26]execute_script returns [12:52:26]free content buf [12:52:26]Sock 9.Close socket [12:52:26]Sock 9.Thread stoped [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:26]accept exits with 7 [12:53:26]New connection [12:53:26]New thread 3066879332 created [12:53:26]Thread 3066735972 joined [12:53:26]Waiting for new connection... [12:53:26] Sock 7.Parse request [12:53:26]Sock 7.Check first char [12:53:26]Sock 7.First char is OK [12:53:26]request: POST /json_proto HTTP/1.0 [12:53:26]Method: POST [12:53:26]URL: /json_proto [12:53:26]Method is POST - this is cgi request [12:53:26]url: /json_proto [12:53:26]query_string will be loaded in cgi processing [12:53:26]execute_cgi json_proto POST (null) [12:53:26]execute_cgi path=json_proto method=POST [12:53:26]POST find Content-Length [12:53:26]Host: 172.17.39.67:8080 [12:53:26]Content-Length: 683 [12:53:26]Content-Type: application/json [12:53:26] [12:53:26]POST finish read [12:53:26]Found Content-Length = 683 [12:53:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.920, "sum" : 720.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:26]execute_script... [12:53: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)1319419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.920, "sum" : 720.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:26]POST & json_proto [12:53:26]process_json_proto [12:53:26]json parsed OK: [12:53:26]protocol is kg_v1.0 [12:53:26]action value=close_receipt [12:53:26]process_action close_receipt [12:53:26]cmd_close_receipt [12:53:26]MH_GetDate [12:53:26]Write to MH i2c: F0 00 00 67 1A 70 [12:53:26]Write i2c OK [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: F0 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: F0 09 00 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: F0 09 00 67 1A 00 47 CA 93 66 B6 85 93 66 B7 [12:53:26]GetLastDocTimeStamp 1720961543 [12:53:26]current date 1720961607 [12:53:26]FM_GetShiftState [12:53:26]SAM_PROTO_GetShiftState [12:53:26]wFMCommunicate request_size=4 [12:53:26]MH_SAM_APDU [12:53:26]CAPDU: 80 13 01 00 [12:53:26]Write to MH i2c: E2 08 00 68 1A 80 13 01 00 00 00 00 00 FF [12:53:26]Write i2c OK [12:53:26]MH_I2C_Read... [12:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:26]Read from MH i2c: E2 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 0E 00 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 0E 00 68 1A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 35 [12:53:26]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:53:26]wFMCommunicate OK [12:53:26]SAM_PROTO_GetShiftState done [12:53:26]FM_GetShiftState done [12:53:26]opened in 1720915483 [12:53:26]opened+sec_in_day 1721001883 [12:53:26]quantity*price = 72019 [12:53:26]sum+1 = 72020 [12:53:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.37 НДС 12% : 76.48 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 132 14.07.2024 12:53 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162820 ФПД: 199689759184977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125327&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162820&fm=199689759184977&tin=02508201610067®Number=0000000000090858&sum=72000 [12:53:27]StoreToDocumentArchive [12:53:27]shift 463 fd 162820 [12:53:27]save to /storage/0463/doc_00162820 [12:53:27]save last doc name /storage/0463/doc_00162820 to /storage/kkm_last_doc_name [12:53:27]save OK [12:53:27]Clear old archive folders... [12:53:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:53:27]tlvbuf is 0134E050 [12:53:27]SAM_PROTO_ClearQueue [12:53:27]wFMCommunicate request_size=4 [12:53:27]MH_SAM_APDU [12:53:27]CAPDU: 80 09 00 00 [12:53:27]Write to MH i2c: E2 08 00 75 1A 80 09 00 00 00 00 00 00 01 [12:53:27]Write i2c OK [12:53:27]MH_I2C_Read... [12:53:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:27]Read from MH i2c: E2 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: E2 03 00 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: E2 03 00 75 1A 00 90 00 03 [12:53:27]RAPDU: 90 00 [12:53:27]wFMCommunicate OK [12:53:27]SAM_PROTO_ClearQueue done [12:53:27]KKMCreateOFDPacket [12:53:27]OFDProtocolAddRootSTLVToBuf [12:53:27]FM_MakeSignedData [12:53:27]FM_MakeSignedData [12:53:27]SAM_PROTO_SignData [12:53:27]wFMCommunicate request_size=4 [12:53:27]MH_SAM_APDU [12:53:27]CAPDU: 80 0D 01 02 [12:53:27]Write to MH i2c: E2 08 00 76 1A 80 0D 01 02 00 00 00 00 09 [12:53:27]Write i2c OK [12:53:27]MH_I2C_Read... [12:53:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:27]Read from MH i2c: E2 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: E2 03 00 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: E2 03 00 76 1A 00 90 00 04 [12:53:27]RAPDU: 90 00 [12:53:27]wFMCommunicate OK [12:53:27]wFMCommunicate request_size=255 [12:53:27]MH_SAM_APDU [12:53:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 26 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 53 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 40 19 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 47 CA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 04 7C 02 00 35 04 06 00 [12:53:27]Write to MH i2c: E2 02 01 77 1A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 26 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 53 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 40 19 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 47 CA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 04 7C 02 00 35 04 06 00 00 00 3B [12:53:27]Write i2c OK [12:53:27]MH_I2C_Read... [12:53:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:27]Read from MH i2c: E2 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: E2 03 00 [12:53:27]MH_I2C_Read... [12:53:27]Read from MH i2c: E2 03 00 77 1A 00 90 00 05 [12:53:27]RAPDU: 90 00 [12:53:27]wFMCommunicate OK [12:53:27]wFMCommunicate request_size=11 [12:53:27]MH_SAM_APDU [12:53:27]CAPDU: 80 0D 02 02 06 B5 9D E5 29 58 51 [12:53:27]Write to MH i2c: E2 0E 00 78 1A 80 0D 02 02 06 00 B5 9D E5 29 58 51 00 00 21 [12:53:27]Write i2c OK [12:53:27]MH_I2C_Read... [12:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:28]Read from MH i2c: E2 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 03 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 03 00 78 1A 00 90 00 06 [12:53:28]RAPDU: 90 00 [12:53:28]wFMCommunicate OK [12:53:28]wFMCommunicate request_size=4 [12:53:28]MH_SAM_APDU [12:53:28]CAPDU: 80 0D 03 02 [12:53:28]Write to MH i2c: E2 08 00 79 1A 80 0D 03 02 00 00 00 00 0E [12:53:28]Write i2c OK [12:53:28]MH_I2C_Read... [12:53:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:28]Read from MH i2c: E2 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 0B 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 0B 00 79 1A 00 1E 7E 44 99 A6 5D BE 46 90 00 8F [12:53:28]RAPDU: 1E 7E 44 99 A6 5D BE 46 90 00 [12:53:28]wFMCommunicate OK [12:53:28]SAM_PROTO_SignData done [12:53:28]FM_MakeSignedData done [12:53:28]CreateOFDProtocolMessage [12:53:28]wFMCommunicate request_size=4 [12:53:28]MH_SAM_APDU [12:53:28]CAPDU: 80 11 00 00 [12:53:28]Write to MH i2c: E2 08 00 7A 1A 80 11 00 00 00 00 00 00 0E [12:53:28]Write i2c OK [12:53:28]MH_I2C_Read... [12:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:28]Read from MH i2c: E2 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 17 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 17 00 7A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6E [12:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:53:28]wFMCommunicate OK [12:53:28]CreateOFDProtocolMessage done [12:53:28]OFDSenderStorePacket 162820 [12:53:28]StoreOFDPacket docnum=162820 [12:53:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4E 29 08 01 FA D3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 26 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 53 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 40 19 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 47 CA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 04 7C 02 00 35 04 06 00 B5 9D E5 29 58 51 1E 7E 44 99 A6 5D BE 46 [12:53:28]CheckFolder [12:53:28]dirname=/storage/ofd_packets [12:53:28]CheckFolder done [12:53:28]ProducePacketName [12:53:28]name=ofd_packets/00162820 [12:53:28]NVStorageSaveData ofd_packets/00162820 [12:53:28]File name is /storage/ofd_packets/00162820 [12:53:28]Write 302 bytes [12:53:28]NVStorageSaveData done [12:53:28]OFDSenderStorePacket done [12:53:28]KKMCreateOFDPacket done [12:53:28]NVStorageSaveData kkm_last_timestamp [12:53:28]File name is /storage/kkm_last_timestamp [12:53:28]Write 4 bytes [12:53:28]NVStorageSaveData done [12:53:28]ExternCall_PrintAddStr [12:53:28]wPrintStart [12:53:28]Write to MH i2c: 01 00 00 7B 1A 95 [12:53:28]Write i2c OK [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: 01 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: 01 07 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: 01 07 00 7B 1A 00 00 00 00 00 FF 0F AA [12:53:28]RasterBufferAndPrint [12:53:28]line Счет N : (1)1319419 [12:53:28]line ИНН: 02508201610067 [12:53:28]line Контрольно-Кассовый Чек [12:53:28]line ПРОДАЖА [12:53:28]line ТРК (МРК, ГНК) : 21 [12:53:28]line Товар: 2710194210 [12:53:28]line ДТ(л)-К-5 [12:53:28]line 9.920 * 72.60 [12:53:28]line = 720.19 [12:53:28]line НДС 12% НСП 1% [12:53:28]line > о реализуемом товаре [12:53:28]line ОКРУГЛЕНИЕ: -0.19 [12:53:28]line ИТОГО: 720.00 [12:53:28]line Внесено: 720.00 [12:53:28]line СДАЧА: 0.00 [12:53:28]line НСП 1% : 6.37 [12:53:28]line НДС 12% : 76.48 [12:53:28]line Наличными: 720.00 [12:53:28]line Безнал.: 0.00 [12:53:28]line Место: АЗС № 140 "Партнер Нефть" [12:53:28]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:53:28]line СНО: Общий режим [12:53:28]line Чек 132 14.07.2024 12:53 [12:53:28]line Смена: 463 ФФД: 1.0 [12:53:28]line ЗНМ: 0300000129 [12:53:28]line РНМ: 0000000000090858 [12:53:28]line Версия ККМ: 001 [12:53:28]line ФМ: 0000000000874899 [12:53:28]line ФД: 162820 [12:53:28]line ФПД: 199689759184977 [12:53:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125327&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162820&fm=199689759184977&tin=02508201610067®Number=0000000000090858&sum=72000 [12:53:28]OFD Sender: Processing packet 162820 [packets to send 106, broken 105] [12:53:28]ProducePacketName [12:53:28]name=ofd_packets/00162820 [12:53:28]OFD Sender: To server: pG, [12:53:28]CommunicateWithHost lk.salyk.kg:30040 [12:53:28]ConnectInit lk.salyk.kg [12:53:28]written 0, free lines is 4095 [12:53:28]Connected sock=10 [12:53:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4E 29 08 01 FA D3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 26 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 53 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 40 19 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 47 CA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 04 7C 02 00 35 04 06 00 B5 9D E5 29 58 51 1E 7E 44 99 A6 5D BE 46 [12:53:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 85 73 47 00 EA 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 04 7C 02 00 F4 03 04 00 55 76 93 66 B6 04 01 00 00 EA E4 92 14 B1 78 40 56 [12:53:28]CommunicateWithHost err = 0 [12:53:28]CheckOFDResponse [12:53:28]1017 (14) - 77093643461234 [12:53:28]1041 (16) - 0000000000874899 [12:53:28]1040 (4) - 162820 [12:53:28]1012 (4) - 14.07.2024 06:55 [12:53:28]1206 (1) - 0 [12:53:28]OFD Sender: Remove packet 162820 [12:53:28]ProducePacketName [12:53:28]name=ofd_packets/00162820 [12:53:28]NVStorageDeleteData [12:53:28]Write to MH i2c: 01 00 00 A6 1A C0 [12:53:28]Write i2c OK [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: 01 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: 01 07 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: 01 07 00 A6 1A 00 00 00 00 00 F5 0C C8 [12:53:28]RasterBufferAndPrint [12:53:28]line [12:53:28]line [12:53:28]line [12:53:28]line [12:53:28]line [12:53:28]written 0, free lines is 3325 [12:53:28]MH_Cut [12:53:28]Write to MH i2c: D1 01 00 AD 1A 01 99 [12:53:28]Write i2c OK [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: D1 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: D1 01 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: D1 01 00 AD 1A 00 98 [12:53:28]Write to MH i2c: 01 00 00 AE 1A C8 [12:53:28]Write i2c OK [12:53:28]MH_I2C_Read... [12:53:29]OFD Sender: No OFD packet to send [12:53:29]*** Cut start [12:53:29]*** Purtial cut [12:53:29]*** CUTSNS_PIN = 0 [12:53:29]*** Stage 1: CUTSNS_PIN = 1 [12:53:31]Read from MH i2c: 01 [12:53:31]MH_I2C_Read... [12:53:31]*** Stop cut motor [12:53:31]*** Cut end [12:53:31]Read from MH i2c: 01 07 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: 01 07 00 AE 1A 00 00 00 00 00 FF 0F DD [12:53:31]process_action close_receipt done [12:53:31]requested_data is exist [12:53:31]produce_requested_data [12:53:31]requested_item fm.sn is exist - process it [12:53:31]wFMCommunicate request_size=4 [12:53:31]MH_SAM_APDU [12:53:31]CAPDU: 80 11 00 00 [12:53:31]Write to MH i2c: E2 08 00 AF 1A 80 11 00 00 00 00 00 00 43 [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:31]Read from MH i2c: E2 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 17 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 17 00 AF 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A3 [12:53:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:53:31]wFMCommunicate OK [12:53:31]requested_item fd.num is exist - process it [12:53:31]SAM_PROTO_GetFieldsCounters [12:53:31]wFMCommunicate request_size=4 [12:53:31]MH_SAM_APDU [12:53:31]CAPDU: 80 13 00 00 [12:53:31]Write to MH i2c: E2 08 00 B0 1A 80 13 00 00 00 00 00 00 46 [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:31]Read from MH i2c: E2 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 62 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 62 00 B0 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 04 7C 02 00 0E 04 04 00 CF 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 57 [12:53:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 04 7C 02 00 0E 04 04 00 CF 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 [12:53:31]wFMCommunicate OK [12:53:31]SAM_PROTO_GetFieldsCounters done [12:53:31]requested_item shift.num is exist - process it [12:53:31]requested_item shift.opened is exist - process it [12:53:31]req_shift_opened [12:53:31]FM_GetShiftState [12:53:31]SAM_PROTO_GetShiftState [12:53:31]wFMCommunicate request_size=4 [12:53:31]MH_SAM_APDU [12:53:31]CAPDU: 80 13 01 00 [12:53:31]Write to MH i2c: E2 08 00 B1 1A 80 13 01 00 00 00 00 00 48 [12:53:31]Write i2c OK [12:53:31]MH_I2C_Read... [12:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:31]Read from MH i2c: E2 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 0E 00 [12:53:31]MH_I2C_Read... [12:53:31]Read from MH i2c: E2 0E 00 B1 1A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7E [12:53:31]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:53:31]wFMCommunicate OK [12:53:31]SAM_PROTO_GetShiftState done [12:53:31]FM_GetShiftState done [12:53:31]req_shift_opened done [12:53:31]requested_item shift.open_date is exist - process it [12:53:31]req_shift_open_date [12:53:31]req_shift_open_date done [12:53:31]produce_requested_data done [12:53:31]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162820,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:53:31]process_action_free close_receipt [12:53:31]json_value_free [12:53:31]json_value_free done [12:53:31]process_json_proto returns [12:53:31]Send response to host [12:53:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162820,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:53:31]free response buf [12:53:31]execute_script done [12:53:31]execute_script returns [12:53:31]free content buf [12:53:31]Sock 7.Close socket [12:53:31]Sock 7.Thread stoped [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:36]accept exits with 9 [12:58:36]New connection [12:58:36]New thread 3066735972 created [12:58:36]Thread 3066879332 joined [12:58:36]Waiting for new connection... [12:58:36] Sock 9.Parse request [12:58:36]Sock 9.Check first char [12:58:36]Sock 9.First char is OK [12:58:36]request: POST /json_proto HTTP/1.0 [12:58:36]Method: POST [12:58:36]URL: /json_proto [12:58:36]Method is POST - this is cgi request [12:58:36]url: /json_proto [12:58:36]query_string will be loaded in cgi processing [12:58:36]execute_cgi json_proto POST (null) [12:58:36]execute_cgi path=json_proto method=POST [12:58:36]POST find Content-Length [12:58:36]Host: 172.17.39.67:8080 [12:58:36]Content-Length: 678 [12:58:36]Content-Type: application/json [12:58:36] [12:58:36]POST finish read [12:58:36]Found Content-Length = 678 [12:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:36]execute_script... [12:58: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)1319420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:36]POST & json_proto [12:58:36]process_json_proto [12:58:36]json parsed OK: [12:58:36]protocol is kg_v1.0 [12:58:36]action value=close_receipt [12:58:36]process_action close_receipt [12:58:36]cmd_close_receipt [12:58:36]MH_GetDate [12:58:36]Write to MH i2c: F0 00 00 B2 1A BB [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: F0 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: F0 09 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: F0 09 00 B2 1A 00 7D CB 93 66 B6 85 93 66 39 [12:58:36]GetLastDocTimeStamp 1720961607 [12:58:36]current date 1720961917 [12:58:36]FM_GetShiftState [12:58:36]SAM_PROTO_GetShiftState [12:58:36]wFMCommunicate request_size=4 [12:58:36]MH_SAM_APDU [12:58:36]CAPDU: 80 13 01 00 [12:58:36]Write to MH i2c: E2 08 00 B3 1A 80 13 01 00 00 00 00 00 4A [12:58:36]Write i2c OK [12:58:36]MH_I2C_Read... [12:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:36]Read from MH i2c: E2 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 0E 00 [12:58:36]MH_I2C_Read... [12:58:36]Read from MH i2c: E2 0E 00 B3 1A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 80 [12:58:36]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:58:36]wFMCommunicate OK [12:58:36]SAM_PROTO_GetShiftState done [12:58:36]FM_GetShiftState done [12:58:36]opened in 1720915483 [12:58:36]opened+sec_in_day 1721001883 [12:58:36]quantity*price = 50071 [12:58:36]sum+1 = 50072 [12:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 133 14.07.2024 12:58 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162821 ФПД: 82308756630031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125837&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162821&fm=82308756630031&tin=02508201610067®Number=0000000000090858&sum=50000 [12:58:37]StoreToDocumentArchive [12:58:37]shift 463 fd 162821 [12:58:37]save to /storage/0463/doc_00162821 [12:58:37]save last doc name /storage/0463/doc_00162821 to /storage/kkm_last_doc_name [12:58:37]save OK [12:58:37]Clear old archive folders... [12:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:37]tlvbuf is 0125BC90 [12:58:37]SAM_PROTO_ClearQueue [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 09 00 00 [12:58:37]Write to MH i2c: E2 08 00 C0 1A 80 09 00 00 00 00 00 00 4C [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 C0 1A 00 90 00 4E [12:58:37]RAPDU: 90 00 [12:58:37]wFMCommunicate OK [12:58:37]SAM_PROTO_ClearQueue done [12:58:37]KKMCreateOFDPacket [12:58:37]OFDProtocolAddRootSTLVToBuf [12:58:37]FM_MakeSignedData [12:58:37]FM_MakeSignedData [12:58:37]SAM_PROTO_SignData [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 0D 01 02 [12:58:37]Write to MH i2c: E2 08 00 C1 1A 80 0D 01 02 00 00 00 00 54 [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 C1 1A 00 90 00 4F [12:58:37]RAPDU: 90 00 [12:58:37]wFMCommunicate OK [12:58:37]wFMCommunicate request_size=255 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 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 C5 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 85 00 00 00 F4 03 04 00 7D CB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 05 7C 02 00 35 04 06 00 4A [12:58:37]Write to MH i2c: E2 02 01 C2 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 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 C5 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 85 00 00 00 F4 03 04 00 7D CB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 05 7C 02 00 35 04 06 00 4A 00 00 7D [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 C2 1A 00 90 00 50 [12:58:37]RAPDU: 90 00 [12:58:37]wFMCommunicate OK [12:58:37]wFMCommunicate request_size=10 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 0D 02 02 05 DC 00 33 6A 0F [12:58:37]Write to MH i2c: E2 0D 00 C3 1A 80 0D 02 02 05 00 DC 00 33 6A 0F 00 00 E9 [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 03 00 C3 1A 00 90 00 51 [12:58:37]RAPDU: 90 00 [12:58:37]wFMCommunicate OK [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 0D 03 02 [12:58:37]Write to MH i2c: E2 08 00 C4 1A 80 0D 03 02 00 00 00 00 59 [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 0B 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 0B 00 C4 1A 00 CD 1B C7 48 CE 9A 76 DB 90 00 0A [12:58:37]RAPDU: CD 1B C7 48 CE 9A 76 DB 90 00 [12:58:37]wFMCommunicate OK [12:58:37]SAM_PROTO_SignData done [12:58:37]FM_MakeSignedData done [12:58:37]CreateOFDProtocolMessage [12:58:37]wFMCommunicate request_size=4 [12:58:37]MH_SAM_APDU [12:58:37]CAPDU: 80 11 00 00 [12:58:37]Write to MH i2c: E2 08 00 C5 1A 80 11 00 00 00 00 00 00 59 [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:37]Read from MH i2c: E2 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 17 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: E2 17 00 C5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B9 [12:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:58:37]wFMCommunicate OK [12:58:37]CreateOFDProtocolMessage done [12:58:37]OFDSenderStorePacket 162821 [12:58:37]StoreOFDPacket docnum=162821 [12:58:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 60 41 07 01 E9 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 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 C5 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 85 00 00 00 F4 03 04 00 7D CB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 05 7C 02 00 35 04 06 00 4A DC 00 33 6A 0F CD 1B C7 48 CE 9A 76 DB [12:58:37]CheckFolder [12:58:37]dirname=/storage/ofd_packets [12:58:37]CheckFolder done [12:58:37]ProducePacketName [12:58:37]name=ofd_packets/00162821 [12:58:37]NVStorageSaveData ofd_packets/00162821 [12:58:37]File name is /storage/ofd_packets/00162821 [12:58:37]Write 301 bytes [12:58:37]NVStorageSaveData done [12:58:37]OFDSenderStorePacket done [12:58:37]KKMCreateOFDPacket done [12:58:37]NVStorageSaveData kkm_last_timestamp [12:58:37]File name is /storage/kkm_last_timestamp [12:58:37]Write 4 bytes [12:58:37]NVStorageSaveData done [12:58:37]ExternCall_PrintAddStr [12:58:37]wPrintStart [12:58:37]Write to MH i2c: 01 00 00 C6 1A E0 [12:58:37]Write i2c OK [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: 01 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: 01 07 00 [12:58:37]MH_I2C_Read... [12:58:37]Read from MH i2c: 01 07 00 C6 1A 00 00 00 00 00 FF 0F F5 [12:58:37]RasterBufferAndPrint [12:58:37]line Счет N : (1)1319420 [12:58:37]line ИНН: 02508201610067 [12:58:37]line Контрольно-Кассовый Чек [12:58:37]line ПРОДАЖА [12:58:37]line ТРК (МРК, ГНК) : 34 [12:58:37]line Товар: 2710124500 [12:58:37]line Аи-95-К-5 [12:58:37]line 6.730 * 74.40 [12:58:37]line = 500.71 [12:58:37]line НДС 12% НСП 1% [12:58:37]line > о реализуемом товаре [12:58:37]line ОКРУГЛЕНИЕ: -0.71 [12:58:37]line ИТОГО: 500.00 [12:58:37]line Внесено: 500.00 [12:58:37]line СДАЧА: 0.00 [12:58:37]line НСП 1% : 4.43 [12:58:37]line НДС 12% : 53.17 [12:58:37]line Наличными: 500.00 [12:58:37]line Безнал.: 0.00 [12:58:37]line Место: АЗС № 140 "Партнер Нефть" [12:58:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:58:37]line СНО: Общий режим [12:58:37]line Чек 133 14.07.2024 12:58 [12:58:37]line Смена: 463 ФФД: 1.0 [12:58:37]line ЗНМ: 0300000129 [12:58:37]line РНМ: 0000000000090858 [12:58:37]line Версия ККМ: 001 [12:58:37]line ФМ: 0000000000874899 [12:58:37]line ФД: 162821 [12:58:37]line ФПД: 82308756630031 [12:58:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T125837&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162821&fm=82308756630031&tin=02508201610067®Number=0000000000090858&sum=50000 [12:58:37]written 0, free lines is 4095 [12:58:37]OFD Sender: Processing packet 162821 [packets to send 106, broken 105] [12:58:37]ProducePacketName [12:58:37]name=ofd_packets/00162821 [12:58:37]OFD Sender: To server: pG, [12:58:37]CommunicateWithHost lk.salyk.kg:30040 [12:58:37]ConnectInit lk.salyk.kg [12:58:38]Connected sock=10 [12:58:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 60 41 07 01 E9 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 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 C5 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 85 00 00 00 F4 03 04 00 7D CB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 05 7C 02 00 35 04 06 00 4A DC 00 33 6A 0F CD 1B C7 48 CE 9A 76 DB [12:58:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8E AF 47 00 BA 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 05 7C 02 00 F4 03 04 00 8A 77 93 66 B6 04 01 00 00 75 99 CE AF 2B 61 B3 F1 [12:58:38]CommunicateWithHost err = 0 [12:58:38]CheckOFDResponse [12:58:38]1017 (14) - 77093643461234 [12:58:38]1041 (16) - 0000000000874899 [12:58:38]1040 (4) - 162821 [12:58:38]1012 (4) - 14.07.2024 07:00 [12:58:38]1206 (1) - 0 [12:58:38]OFD Sender: Remove packet 162821 [12:58:38]ProducePacketName [12:58:38]name=ofd_packets/00162821 [12:58:38]NVStorageDeleteData [12:58:38]Write to MH i2c: 01 00 00 F1 1A 0B [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: 01 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: 01 07 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: 01 07 00 F1 1A 00 00 00 00 00 E3 0C 01 [12:58:38]RasterBufferAndPrint [12:58:38]line [12:58:38]line [12:58:38]line [12:58:38]line [12:58:38]line [12:58:38]written 0, free lines is 3305 [12:58:38]MH_Cut [12:58:38]Write to MH i2c: D1 01 00 F8 1A 01 E4 [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: D1 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: D1 01 00 [12:58:38]MH_I2C_Read... [12:58:38]Read from MH i2c: D1 01 00 F8 1A 00 E3 [12:58:38]Write to MH i2c: 01 00 00 F9 1A 13 [12:58:38]Write i2c OK [12:58:38]MH_I2C_Read... [12:58:38]OFD Sender: No OFD packet to send [12:58:39]*** Cut start [12:58:39]*** Purtial cut [12:58:39]*** Stage 1: CUTSNS_PIN = 1 [12:58:39]Read from MH i2c: 01 [12:58:39]MH_I2C_Read... [12:58:39]*** Stop cut motor [12:58:39]*** Cut end [12:58:39]Read from MH i2c: 01 07 00 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: 01 07 00 F9 1A 00 00 00 00 00 FF 0F 28 [12:58:39]process_action close_receipt done [12:58:39]requested_data is exist [12:58:39]produce_requested_data [12:58:39]requested_item fm.sn is exist - process it [12:58:39]wFMCommunicate request_size=4 [12:58:39]MH_SAM_APDU [12:58:39]CAPDU: 80 11 00 00 [12:58:39]Write to MH i2c: E2 08 00 FA 1A 80 11 00 00 00 00 00 00 8E [12:58:39]Write i2c OK [12:58:39]MH_I2C_Read... [12:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:39]Read from MH i2c: E2 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 17 00 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 17 00 FA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EE [12:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:58:39]wFMCommunicate OK [12:58:39]requested_item fd.num is exist - process it [12:58:39]SAM_PROTO_GetFieldsCounters [12:58:39]wFMCommunicate request_size=4 [12:58:39]MH_SAM_APDU [12:58:39]CAPDU: 80 13 00 00 [12:58:39]Write to MH i2c: E2 08 00 FB 1A 80 13 00 00 00 00 00 00 91 [12:58:39]Write i2c OK [12:58:39]MH_I2C_Read... [12:58:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:39]Read from MH i2c: E2 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 62 00 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 62 00 FB 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 05 7C 02 00 0E 04 04 00 CF 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 A6 [12:58:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 05 7C 02 00 0E 04 04 00 CF 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 [12:58:39]wFMCommunicate OK [12:58:39]SAM_PROTO_GetFieldsCounters done [12:58:39]requested_item shift.num is exist - process it [12:58:39]requested_item shift.opened is exist - process it [12:58:39]req_shift_opened [12:58:39]FM_GetShiftState [12:58:39]SAM_PROTO_GetShiftState [12:58:39]wFMCommunicate request_size=4 [12:58:39]MH_SAM_APDU [12:58:39]CAPDU: 80 13 01 00 [12:58:39]Write to MH i2c: E2 08 00 FC 1A 80 13 01 00 00 00 00 00 93 [12:58:39]Write i2c OK [12:58:39]MH_I2C_Read... [12:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:39]Read from MH i2c: E2 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 0E 00 [12:58:39]MH_I2C_Read... [12:58:39]Read from MH i2c: E2 0E 00 FC 1A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C9 [12:58:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [12:58:39]wFMCommunicate OK [12:58:39]SAM_PROTO_GetShiftState done [12:58:39]FM_GetShiftState done [12:58:39]req_shift_opened done [12:58:39]requested_item shift.open_date is exist - process it [12:58:39]req_shift_open_date [12:58:39]req_shift_open_date done [12:58:39]produce_requested_data done [12:58:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162821,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [12:58:39]process_action_free close_receipt [12:58:39]json_value_free [12:58:39]json_value_free done [12:58:39]process_json_proto returns [12:58:39]Send response to host [12:58:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162821,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [12:58:39]free response buf [12:58:39]execute_script done [12:58:39]execute_script returns [12:58:39]free content buf [12:58:39]Sock 9.Close socket [12:58:39]Sock 9.Thread stoped [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:50]accept exits with 7 [13:02:50]New connection [13:02:50]New thread 3066879332 created [13:02:50]Thread 3066735972 joined [13:02:50]Waiting for new connection... [13:02:50] Sock 7.Parse request [13:02:50]Sock 7.Check first char [13:02:50]Sock 7.First char is OK [13:02:50]request: POST /json_proto HTTP/1.0 [13:02:50]Method: POST [13:02:50]URL: /json_proto [13:02:50]Method is POST - this is cgi request [13:02:50]url: /json_proto [13:02:50]query_string will be loaded in cgi processing [13:02:50]execute_cgi json_proto POST (null) [13:02:50]execute_cgi path=json_proto method=POST [13:02:50]POST find Content-Length [13:02:50]Host: 172.17.39.67:8080 [13:02:50]Content-Length: 678 [13:02:50]Content-Type: application/json [13:02:50] [13:02:50]POST finish read [13:02:50]Found Content-Length = 678 [13:02:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:02:50]execute_script... [13:02: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)1319421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:02:50]POST & json_proto [13:02:50]process_json_proto [13:02:50]json parsed OK: [13:02:50]protocol is kg_v1.0 [13:02:50]action value=close_receipt [13:02:50]process_action close_receipt [13:02:50]cmd_close_receipt [13:02:50]MH_GetDate [13:02:50]Write to MH i2c: F0 00 00 FD 1A 06 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: F0 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: F0 09 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: F0 09 00 FD 1A 00 7B CC 93 66 B6 85 93 66 83 [13:02:50]GetLastDocTimeStamp 1720961917 [13:02:50]current date 1720962171 [13:02:50]FM_GetShiftState [13:02:50]SAM_PROTO_GetShiftState [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 13 01 00 [13:02:50]Write to MH i2c: E2 08 00 FE 1A 80 13 01 00 00 00 00 00 95 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 0E 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 0E 00 FE 1A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 CB [13:02:50]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:02:50]wFMCommunicate OK [13:02:50]SAM_PROTO_GetShiftState done [13:02:50]FM_GetShiftState done [13:02:50]opened in 1720915483 [13:02:50]opened+sec_in_day 1721001883 [13:02:50]quantity*price = 50056 [13:02:50]sum+1 = 50058 [13:02:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 134 14.07.2024 13:02 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162822 ФПД: 82924034536929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T130252&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162822&fm=82924034536929&tin=02508201610067®Number=0000000000090858&sum=50000 [13:02:52]StoreToDocumentArchive [13:02:52]shift 463 fd 162822 [13:02:52]save to /storage/0463/doc_00162822 [13:02:52]save last doc name /storage/0463/doc_00162822 to /storage/kkm_last_doc_name [13:02:52]save OK [13:02:52]Clear old archive folders... [13:02:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:52]tlvbuf is 01308150 [13:02:52]SAM_PROTO_ClearQueue [13:02:52]wFMCommunicate request_size=4 [13:02:52]MH_SAM_APDU [13:02:52]CAPDU: 80 09 00 00 [13:02:52]Write to MH i2c: E2 08 00 0B 1B 80 09 00 00 00 00 00 00 98 [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:52]Read from MH i2c: E2 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 03 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 03 00 0B 1B 00 90 00 9A [13:02:52]RAPDU: 90 00 [13:02:52]wFMCommunicate OK [13:02:52]SAM_PROTO_ClearQueue done [13:02:52]KKMCreateOFDPacket [13:02:52]OFDProtocolAddRootSTLVToBuf [13:02:52]FM_MakeSignedData [13:02:52]FM_MakeSignedData [13:02:52]SAM_PROTO_SignData [13:02:52]wFMCommunicate request_size=4 [13:02:52]MH_SAM_APDU [13:02:52]CAPDU: 80 0D 01 02 [13:02:52]Write to MH i2c: E2 08 00 0C 1B 80 0D 01 02 00 00 00 00 A0 [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:52]Read from MH i2c: E2 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 03 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 03 00 0C 1B 00 90 00 9B [13:02:52]RAPDU: 90 00 [13:02:52]wFMCommunicate OK [13:02:52]wFMCommunicate request_size=255 [13:02:52]MH_SAM_APDU [13:02: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 86 00 00 00 F4 03 04 00 7C CC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 06 7C 02 00 35 04 06 00 4B [13:02:52]Write to MH i2c: E2 02 01 0D 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 86 00 00 00 F4 03 04 00 7C CC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 06 7C 02 00 35 04 06 00 4B 00 00 C2 [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:52]Read from MH i2c: E2 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 03 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 03 00 0D 1B 00 90 00 9C [13:02:52]RAPDU: 90 00 [13:02:52]wFMCommunicate OK [13:02:52]wFMCommunicate request_size=10 [13:02:52]MH_SAM_APDU [13:02:52]CAPDU: 80 0D 02 02 05 6B 41 9F 35 E1 [13:02:52]Write to MH i2c: E2 0D 00 0E 1B 80 0D 02 02 05 00 6B 41 9F 35 E1 00 00 0E [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:52]Read from MH i2c: E2 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 03 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 03 00 0E 1B 00 90 00 9D [13:02:52]RAPDU: 90 00 [13:02:52]wFMCommunicate OK [13:02:52]wFMCommunicate request_size=4 [13:02:52]MH_SAM_APDU [13:02:52]CAPDU: 80 0D 03 02 [13:02:52]Write to MH i2c: E2 08 00 0F 1B 80 0D 03 02 00 00 00 00 A5 [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:52]Read from MH i2c: E2 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 0B 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 0B 00 0F 1B 00 BD 9B 56 78 D7 B3 DF 6F 90 00 A4 [13:02:52]RAPDU: BD 9B 56 78 D7 B3 DF 6F 90 00 [13:02:52]wFMCommunicate OK [13:02:52]SAM_PROTO_SignData done [13:02:52]FM_MakeSignedData done [13:02:52]CreateOFDProtocolMessage [13:02:52]wFMCommunicate request_size=4 [13:02:52]MH_SAM_APDU [13:02:52]CAPDU: 80 11 00 00 [13:02:52]Write to MH i2c: E2 08 00 10 1B 80 11 00 00 00 00 00 00 A5 [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:52]Read from MH i2c: E2 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 17 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 17 00 10 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 05 [13:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:02:52]wFMCommunicate OK [13:02:52]CreateOFDProtocolMessage done [13:02:52]OFDSenderStorePacket 162822 [13:02:52]StoreOFDPacket docnum=162822 [13:02:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D3 F7 07 01 C4 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 86 00 00 00 F4 03 04 00 7C CC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 06 7C 02 00 35 04 06 00 4B 6B 41 9F 35 E1 BD 9B 56 78 D7 B3 DF 6F [13:02:52]CheckFolder [13:02:52]dirname=/storage/ofd_packets [13:02:52]CheckFolder done [13:02:52]ProducePacketName [13:02:52]name=ofd_packets/00162822 [13:02:52]NVStorageSaveData ofd_packets/00162822 [13:02:52]File name is /storage/ofd_packets/00162822 [13:02:52]Write 301 bytes [13:02:52]NVStorageSaveData done [13:02:52]OFDSenderStorePacket done [13:02:52]KKMCreateOFDPacket done [13:02:52]NVStorageSaveData kkm_last_timestamp [13:02:52]File name is /storage/kkm_last_timestamp [13:02:52]Write 4 bytes [13:02:52]NVStorageSaveData done [13:02:52]ExternCall_PrintAddStr [13:02:52]wPrintStart [13:02:52]Write to MH i2c: 01 00 00 11 1B 2C [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: 01 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: 01 07 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: 01 07 00 11 1B 00 00 00 00 00 FF 0F 41 [13:02:52]RasterBufferAndPrint [13:02:52]line Счет N : (1)1319421 [13:02:52]line ИНН: 02508201610067 [13:02:52]line Контрольно-Кассовый Чек [13:02:52]line ПРОДАЖА [13:02:52]line ТРК (МРК, ГНК) : 53 [13:02:52]line Товар: 2710124130 [13:02:52]line Аи-92-К-5 [13:02:52]line 7.550 * 66.30 [13:02:52]line = 500.57 [13:02:52]line НДС 12% НСП 1% [13:02:52]line > о реализуемом товаре [13:02:52]line ОКРУГЛЕНИЕ: -0.57 [13:02:52]line ИТОГО: 500.00 [13:02:52]line Внесено: 500.00 [13:02:52]line СДАЧА: 0.00 [13:02:52]line НСП 1% : 4.43 [13:02:52]line НДС 12% : 53.16 [13:02:52]line Наличными: 500.00 [13:02:52]line Безнал.: 0.00 [13:02:52]line Место: АЗС № 140 "Партнер Нефть" [13:02:52]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:02:52]line СНО: Общий режим [13:02:52]line Чек 134 14.07.2024 13:02 [13:02:52]line Смена: 463 ФФД: 1.0 [13:02:52]line ЗНМ: 0300000129 [13:02:52]line РНМ: 0000000000090858 [13:02:52]line Версия ККМ: 001 [13:02:52]line ФМ: 0000000000874899 [13:02:52]line ФД: 162822 [13:02:52]line ФПД: 82924034536929 [13:02:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T130252&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162822&fm=82924034536929&tin=02508201610067®Number=0000000000090858&sum=50000 [13:02:52]OFD Sender: Processing packet 162822 [packets to send 106, broken 105] [13:02:52]ProducePacketName [13:02:52]name=ofd_packets/00162822 [13:02:52]OFD Sender: To server: pG, [13:02:52]CommunicateWithHost lk.salyk.kg:30040 [13:02:52]ConnectInit lk.salyk.kg [13:02:52]written 0, free lines is 4095 [13:02:53]Connected sock=10 [13:02:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D3 F7 07 01 C4 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 86 00 00 00 F4 03 04 00 7C CC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 06 7C 02 00 35 04 06 00 4B 6B 41 9F 35 E1 BD 9B 56 78 D7 B3 DF 6F [13:02:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 97 43 47 00 F0 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 06 7C 02 00 F4 03 04 00 89 78 93 66 B6 04 01 00 00 62 E9 D7 3F 20 B6 EC C3 [13:02:53]CommunicateWithHost err = 0 [13:02:53]CheckOFDResponse [13:02:53]1017 (14) - 77093643461234 [13:02:53]1041 (16) - 0000000000874899 [13:02:53]1040 (4) - 162822 [13:02:53]1012 (4) - 14.07.2024 07:04 [13:02:53]1206 (1) - 0 [13:02:53]OFD Sender: Remove packet 162822 [13:02:53]ProducePacketName [13:02:53]name=ofd_packets/00162822 [13:02:53]NVStorageDeleteData [13:02:53]Write to MH i2c: 01 00 00 3C 1B 57 [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: 01 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: 01 07 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: 01 07 00 3C 1B 00 00 00 00 00 F6 0C 60 [13:02:53]RasterBufferAndPrint [13:02:53]line [13:02:53]line [13:02:53]line [13:02:53]line [13:02:53]line [13:02:53]written 0, free lines is 3324 [13:02:53]MH_Cut [13:02:53]Write to MH i2c: D1 01 00 43 1B 01 30 [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: D1 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: D1 01 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: D1 01 00 43 1B 00 2F [13:02:53]Write to MH i2c: 01 00 00 44 1B 5F [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]OFD Sender: No OFD packet to send [13:02:54]*** Cut start [13:02:54]*** Purtial cut [13:02:54]*** CUTSNS_PIN = 0 [13:02:54]*** Stage 1: CUTSNS_PIN = 1 [13:02:56]Read from MH i2c: 01 [13:02:56]MH_I2C_Read... [13:02:56]*** Stop cut motor [13:02:56]*** Cut end [13:02:56]Read from MH i2c: 01 07 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: 01 07 00 44 1B 00 00 00 00 00 FF 0F 74 [13:02:56]process_action close_receipt done [13:02:56]requested_data is exist [13:02:56]produce_requested_data [13:02:56]requested_item fm.sn is exist - process it [13:02:56]wFMCommunicate request_size=4 [13:02:56]MH_SAM_APDU [13:02:56]CAPDU: 80 11 00 00 [13:02:56]Write to MH i2c: E2 08 00 45 1B 80 11 00 00 00 00 00 00 DA [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:56]Read from MH i2c: E2 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 17 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 17 00 45 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3A [13:02:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:02:56]wFMCommunicate OK [13:02:56]requested_item fd.num is exist - process it [13:02:56]SAM_PROTO_GetFieldsCounters [13:02:56]wFMCommunicate request_size=4 [13:02:56]MH_SAM_APDU [13:02:56]CAPDU: 80 13 00 00 [13:02:56]Write to MH i2c: E2 08 00 46 1B 80 13 00 00 00 00 00 00 DD [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:56]Read from MH i2c: E2 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 62 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 62 00 46 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 06 7C 02 00 0E 04 04 00 CF 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 F6 [13:02:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 06 7C 02 00 0E 04 04 00 CF 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 [13:02:56]wFMCommunicate OK [13:02:56]SAM_PROTO_GetFieldsCounters done [13:02:56]requested_item shift.num is exist - process it [13:02:56]requested_item shift.opened is exist - process it [13:02:56]req_shift_opened [13:02:56]FM_GetShiftState [13:02:56]SAM_PROTO_GetShiftState [13:02:56]wFMCommunicate request_size=4 [13:02:56]MH_SAM_APDU [13:02:56]CAPDU: 80 13 01 00 [13:02:56]Write to MH i2c: E2 08 00 47 1B 80 13 01 00 00 00 00 00 DF [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:56]Read from MH i2c: E2 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 0E 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 0E 00 47 1B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 15 [13:02:56]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:02:56]wFMCommunicate OK [13:02:56]SAM_PROTO_GetShiftState done [13:02:56]FM_GetShiftState done [13:02:56]req_shift_opened done [13:02:56]requested_item shift.open_date is exist - process it [13:02:56]req_shift_open_date [13:02:56]req_shift_open_date done [13:02:56]produce_requested_data done [13:02:56]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162822,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:02:56]process_action_free close_receipt [13:02:56]json_value_free [13:02:56]json_value_free done [13:02:56]process_json_proto returns [13:02:56]Send response to host [13:02:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162822,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:02:56]free response buf [13:02:56]execute_script done [13:02:56]execute_script returns [13:02:56]free content buf [13:02:56]Sock 7.Close socket [13:02:56]Sock 7.Thread stoped [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:07]accept exits with 9 [13:06:07]New connection [13:06:07]New thread 3066735972 created [13:06:07]Thread 3066879332 joined [13:06:07]Waiting for new connection... [13:06:07] Sock 9.Parse request [13:06:07]Sock 9.Check first char [13:06:07]Sock 9.First char is OK [13:06:07]request: POST /json_proto HTTP/1.0 [13:06:07]Method: POST [13:06:07]URL: /json_proto [13:06:07]Method is POST - this is cgi request [13:06:07]url: /json_proto [13:06:07]query_string will be loaded in cgi processing [13:06:07]execute_cgi json_proto POST (null) [13:06:07]execute_cgi path=json_proto method=POST [13:06:07]POST find Content-Length [13:06:07]Host: 172.17.39.67:8080 [13:06:07]Content-Length: 683 [13:06:07]Content-Type: application/json [13:06:07] [13:06:07]POST finish read [13:06:07]Found Content-Length = 683 [13:06:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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" ] } } [13:06:07]execute_script... [13:06: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)1319422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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" ] } } [13:06:07]POST & json_proto [13:06:07]process_json_proto [13:06:07]json parsed OK: [13:06:07]protocol is kg_v1.0 [13:06:07]action value=close_receipt [13:06:07]process_action close_receipt [13:06:07]cmd_close_receipt [13:06:07]MH_GetDate [13:06:07]Write to MH i2c: F0 00 00 48 1B 52 [13:06:07]Write i2c OK [13:06:07]MH_I2C_Read... [13:06:07]Read from MH i2c: F0 [13:06:07]MH_I2C_Read... [13:06:07]Read from MH i2c: F0 09 00 [13:06:07]MH_I2C_Read... [13:06:07]Read from MH i2c: F0 09 00 48 1B 00 40 CD 93 66 B6 85 93 66 95 [13:06:07]GetLastDocTimeStamp 1720962172 [13:06:07]current date 1720962368 [13:06:07]FM_GetShiftState [13:06:07]SAM_PROTO_GetShiftState [13:06:07]wFMCommunicate request_size=4 [13:06:07]MH_SAM_APDU [13:06:07]CAPDU: 80 13 01 00 [13:06:07]Write to MH i2c: E2 08 00 49 1B 80 13 01 00 00 00 00 00 E1 [13:06:07]Write i2c OK [13:06:07]MH_I2C_Read... [13:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:07]Read from MH i2c: E2 [13:06:07]MH_I2C_Read... [13:06:07]Read from MH i2c: E2 0E 00 [13:06:07]MH_I2C_Read... [13:06:07]Read from MH i2c: E2 0E 00 49 1B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 17 [13:06:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:06:07]wFMCommunicate OK [13:06:07]SAM_PROTO_GetShiftState done [13:06:07]FM_GetShiftState done [13:06:07]opened in 1720915483 [13:06:07]opened+sec_in_day 1721001883 [13:06:07]quantity*price = 150064 [13:06:07]sum+1 = 150066 [13:06:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 135 14.07.2024 13:06 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162823 ФПД: 238266233734112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T130609&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162823&fm=238266233734112&tin=02508201610067®Number=0000000000090858&sum=150000 [13:06:08]StoreToDocumentArchive [13:06:08]shift 463 fd 162823 [13:06:08]save to /storage/0463/doc_00162823 [13:06:08]save last doc name /storage/0463/doc_00162823 to /storage/kkm_last_doc_name [13:06:08]save OK [13:06:08]Clear old archive folders... [13:06:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:08]tlvbuf is 013565B0 [13:06:08]SAM_PROTO_ClearQueue [13:06:08]wFMCommunicate request_size=4 [13:06:08]MH_SAM_APDU [13:06:08]CAPDU: 80 09 00 00 [13:06:08]Write to MH i2c: E2 08 00 56 1B 80 09 00 00 00 00 00 00 E3 [13:06:08]Write i2c OK [13:06:08]MH_I2C_Read... [13:06:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:09]Read from MH i2c: E2 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: E2 03 00 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: E2 03 00 56 1B 00 90 00 E5 [13:06:09]RAPDU: 90 00 [13:06:09]wFMCommunicate OK [13:06:09]SAM_PROTO_ClearQueue done [13:06:09]KKMCreateOFDPacket [13:06:09]OFDProtocolAddRootSTLVToBuf [13:06:09]FM_MakeSignedData [13:06:09]FM_MakeSignedData [13:06:09]SAM_PROTO_SignData [13:06:09]wFMCommunicate request_size=4 [13:06:09]MH_SAM_APDU [13:06:09]CAPDU: 80 0D 01 02 [13:06:09]Write to MH i2c: E2 08 00 57 1B 80 0D 01 02 00 00 00 00 EB [13:06:09]Write i2c OK [13:06:09]MH_I2C_Read... [13:06:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:09]Read from MH i2c: E2 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: E2 03 00 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: E2 03 00 57 1B 00 90 00 E6 [13:06:09]RAPDU: 90 00 [13:06:09]wFMCommunicate OK [13:06:09]wFMCommunicate request_size=255 [13:06:09]MH_SAM_APDU [13:06: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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 40 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 87 00 00 00 F4 03 04 00 41 CD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 07 7C 02 00 35 04 06 00 D8 [13:06:09]Write to MH i2c: E2 02 01 58 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 40 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 87 00 00 00 F4 03 04 00 41 CD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 07 7C 02 00 35 04 06 00 D8 00 00 B1 [13:06:09]Write i2c OK [13:06:09]MH_I2C_Read... [13:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:09]Read from MH i2c: E2 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: E2 03 00 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: E2 03 00 58 1B 00 90 00 E7 [13:06:09]RAPDU: 90 00 [13:06:09]wFMCommunicate OK [13:06:09]wFMCommunicate request_size=10 [13:06:09]MH_SAM_APDU [13:06:09]CAPDU: 80 0D 02 02 05 B3 AE 39 43 E0 [13:06:09]Write to MH i2c: E2 0D 00 59 1B 80 0D 02 02 05 00 B3 AE 39 43 E0 00 00 B5 [13:06:09]Write i2c OK [13:06:09]MH_I2C_Read... [13:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:09]Read from MH i2c: E2 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: E2 03 00 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: E2 03 00 59 1B 00 90 00 E8 [13:06:09]RAPDU: 90 00 [13:06:09]wFMCommunicate OK [13:06:09]wFMCommunicate request_size=4 [13:06:09]MH_SAM_APDU [13:06:09]CAPDU: 80 0D 03 02 [13:06:09]Write to MH i2c: E2 08 00 5A 1B 80 0D 03 02 00 00 00 00 F0 [13:06:09]Write i2c OK [13:06:09]MH_I2C_Read... [13:06:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:09]Read from MH i2c: E2 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: E2 0B 00 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: E2 0B 00 5A 1B 00 43 14 5D E8 7B 3A CF 73 90 00 84 [13:06:09]RAPDU: 43 14 5D E8 7B 3A CF 73 90 00 [13:06:09]wFMCommunicate OK [13:06:09]SAM_PROTO_SignData done [13:06:09]FM_MakeSignedData done [13:06:09]CreateOFDProtocolMessage [13:06:09]wFMCommunicate request_size=4 [13:06:09]MH_SAM_APDU [13:06:09]CAPDU: 80 11 00 00 [13:06:09]Write to MH i2c: E2 08 00 5B 1B 80 11 00 00 00 00 00 00 F0 [13:06:09]Write i2c OK [13:06:09]MH_I2C_Read... [13:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:09]Read from MH i2c: E2 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: E2 17 00 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: E2 17 00 5B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 50 [13:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:06:09]wFMCommunicate OK [13:06:09]CreateOFDProtocolMessage done [13:06:09]OFDSenderStorePacket 162823 [13:06:09]StoreOFDPacket docnum=162823 [13:06:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4C A2 07 01 E4 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 40 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 87 00 00 00 F4 03 04 00 41 CD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 07 7C 02 00 35 04 06 00 D8 B3 AE 39 43 E0 43 14 5D E8 7B 3A CF 73 [13:06:09]CheckFolder [13:06:09]dirname=/storage/ofd_packets [13:06:09]CheckFolder done [13:06:09]ProducePacketName [13:06:09]name=ofd_packets/00162823 [13:06:09]NVStorageSaveData ofd_packets/00162823 [13:06:09]File name is /storage/ofd_packets/00162823 [13:06:09]Write 301 bytes [13:06:09]NVStorageSaveData done [13:06:09]OFDSenderStorePacket done [13:06:09]KKMCreateOFDPacket done [13:06:09]NVStorageSaveData kkm_last_timestamp [13:06:09]File name is /storage/kkm_last_timestamp [13:06:09]Write 4 bytes [13:06:09]NVStorageSaveData done [13:06:09]ExternCall_PrintAddStr [13:06:09]wPrintStart [13:06:09]Write to MH i2c: 01 00 00 5C 1B 77 [13:06:09]Write i2c OK [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: 01 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: 01 07 00 [13:06:09]MH_I2C_Read... [13:06:09]Read from MH i2c: 01 07 00 5C 1B 00 00 00 00 00 FF 0F 8C [13:06:09]RasterBufferAndPrint [13:06:09]line Счет N : (1)1319422 [13:06:09]line ИНН: 02508201610067 [13:06:09]line Контрольно-Кассовый Чек [13:06:09]line ПРОДАЖА [13:06:09]line ТРК (МРК, ГНК) : 44 [13:06:09]line Товар: 2710124500 [13:06:09]line Аи-95-К-5 [13:06:09]line 20.170 * 74.40 [13:06:09]line = 1500.65 [13:06:09]line НДС 12% НСП 1% [13:06:09]line > о реализуемом товаре [13:06:09]line ОКРУГЛЕНИЕ: -0.65 [13:06:09]line ИТОГО: 1500.00 [13:06:09]line Внесено: 1500.00 [13:06:09]line СДАЧА: 0.00 [13:06:09]line НСП 1% : 13.28 [13:06:09]line НДС 12% : 159.36 [13:06:09]line Наличными: 1500.00 [13:06:09]line Безнал.: 0.00 [13:06:09]line Место: АЗС № 140 "Партнер Нефть" [13:06:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:06:09]line СНО: Общий режим [13:06:09]line Чек 135 14.07.2024 13:06 [13:06:09]line Смена: 463 ФФД: 1.0 [13:06:09]line ЗНМ: 0300000129 [13:06:09]line РНМ: 0000000000090858 [13:06:09]line Версия ККМ: 001 [13:06:09]line ФМ: 0000000000874899 [13:06:09]line ФД: 162823 [13:06:09]line ФПД: 238266233734112 [13:06:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T130609&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162823&fm=238266233734112&tin=02508201610067®Number=0000000000090858&sum=150000 [13:06:09]OFD Sender: Processing packet 162823 [packets to send 106, broken 105] [13:06:09]ProducePacketName [13:06:09]name=ofd_packets/00162823 [13:06:09]OFD Sender: To server: pG, [13:06:09]CommunicateWithHost lk.salyk.kg:30040 [13:06:09]ConnectInit lk.salyk.kg [13:06:09]written 0, free lines is 4095 [13:06:09]Connected sock=10 [13:06:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4C A2 07 01 E4 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 40 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 87 00 00 00 F4 03 04 00 41 CD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 07 7C 02 00 35 04 06 00 D8 B3 AE 39 43 E0 43 14 5D E8 7B 3A CF 73 [13:06:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C4 04 47 00 9C E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 07 7C 02 00 F4 03 04 00 4E 79 93 66 B6 04 01 00 00 39 38 52 6C 0E E6 7E CB [13:06:10]CommunicateWithHost err = 0 [13:06:10]CheckOFDResponse [13:06:10]1017 (14) - 77093643461234 [13:06:10]1041 (16) - 0000000000874899 [13:06:10]1040 (4) - 162823 [13:06:10]1012 (4) - 14.07.2024 07:07 [13:06:10]1206 (1) - 0 [13:06:10]OFD Sender: Remove packet 162823 [13:06:10]ProducePacketName [13:06:10]name=ofd_packets/00162823 [13:06:10]NVStorageDeleteData [13:06:10]Write to MH i2c: 01 00 00 87 1B A2 [13:06:10]Write i2c OK [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: 01 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: 01 07 00 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: 01 07 00 87 1B 00 00 00 00 00 F1 0C A6 [13:06:10]RasterBufferAndPrint [13:06:10]line [13:06:10]line [13:06:10]line [13:06:10]line [13:06:10]line [13:06:10]written 0, free lines is 3319 [13:06:10]MH_Cut [13:06:10]Write to MH i2c: D1 01 00 8E 1B 01 7B [13:06:10]Write i2c OK [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: D1 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: D1 01 00 [13:06:10]MH_I2C_Read... [13:06:10]Read from MH i2c: D1 01 00 8E 1B 00 7A [13:06:10]Write to MH i2c: 01 00 00 8F 1B AA [13:06:10]Write i2c OK [13:06:10]MH_I2C_Read... [13:06:10]OFD Sender: No OFD packet to send [13:06:11]*** Cut start [13:06:11]*** Purtial cut [13:06:11]*** Stage 1: CUTSNS_PIN = 1 [13:06:11]Read from MH i2c: 01 [13:06:11]MH_I2C_Read... [13:06:11]*** Stop cut motor [13:06:11]*** Cut end [13:06:11]Read from MH i2c: 01 07 00 [13:06:11]MH_I2C_Read... [13:06:11]Read from MH i2c: 01 07 00 8F 1B 00 00 00 00 00 FF 0F BF [13:06:11]process_action close_receipt done [13:06:11]requested_data is exist [13:06:11]produce_requested_data [13:06:11]requested_item fm.sn is exist - process it [13:06:11]wFMCommunicate request_size=4 [13:06:11]MH_SAM_APDU [13:06:11]CAPDU: 80 11 00 00 [13:06:11]Write to MH i2c: E2 08 00 90 1B 80 11 00 00 00 00 00 00 25 [13:06:11]Write i2c OK [13:06:11]MH_I2C_Read... [13:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:11]Read from MH i2c: E2 [13:06:11]MH_I2C_Read... [13:06:11]Read from MH i2c: E2 17 00 [13:06:11]MH_I2C_Read... [13:06:11]Read from MH i2c: E2 17 00 90 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 85 [13:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:06:11]wFMCommunicate OK [13:06:11]requested_item fd.num is exist - process it [13:06:11]SAM_PROTO_GetFieldsCounters [13:06:11]wFMCommunicate request_size=4 [13:06:11]MH_SAM_APDU [13:06:11]CAPDU: 80 13 00 00 [13:06:11]Write to MH i2c: E2 08 00 91 1B 80 13 00 00 00 00 00 00 28 [13:06:11]Write i2c OK [13:06:11]MH_I2C_Read... [13:06:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:11]Read from MH i2c: E2 [13:06:11]MH_I2C_Read... [13:06:11]Read from MH i2c: E2 62 00 [13:06:11]MH_I2C_Read... [13:06:11]Read from MH i2c: E2 62 00 91 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 07 7C 02 00 0E 04 04 00 CF 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 45 [13:06:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 07 7C 02 00 0E 04 04 00 CF 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 [13:06:11]wFMCommunicate OK [13:06:11]SAM_PROTO_GetFieldsCounters done [13:06:11]requested_item shift.num is exist - process it [13:06:11]requested_item shift.opened is exist - process it [13:06:11]req_shift_opened [13:06:11]FM_GetShiftState [13:06:11]SAM_PROTO_GetShiftState [13:06:11]wFMCommunicate request_size=4 [13:06:11]MH_SAM_APDU [13:06:11]CAPDU: 80 13 01 00 [13:06:11]Write to MH i2c: E2 08 00 92 1B 80 13 01 00 00 00 00 00 2A [13:06:11]Write i2c OK [13:06:11]MH_I2C_Read... [13:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:11]Read from MH i2c: E2 [13:06:11]MH_I2C_Read... [13:06:11]Read from MH i2c: E2 0E 00 [13:06:11]MH_I2C_Read... [13:06:11]Read from MH i2c: E2 0E 00 92 1B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 60 [13:06:11]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:06:11]wFMCommunicate OK [13:06:11]SAM_PROTO_GetShiftState done [13:06:11]FM_GetShiftState done [13:06:11]req_shift_opened done [13:06:11]requested_item shift.open_date is exist - process it [13:06:11]req_shift_open_date [13:06:11]req_shift_open_date done [13:06:11]produce_requested_data done [13:06:11]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162823,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:06:11]process_action_free close_receipt [13:06:11]json_value_free [13:06:11]json_value_free done [13:06:11]process_json_proto returns [13:06:11]Send response to host [13:06:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162823,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:06:11]free response buf [13:06:11]execute_script done [13:06:11]execute_script returns [13:06:11]free content buf [13:06:11]Sock 9.Close socket [13:06:11]Sock 9.Thread stoped [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:19]accept exits with 7 [13:17:19]New connection [13:17:19]New thread 3066879332 created [13:17:19]Thread 3066735972 joined [13:17:19]Waiting for new connection... [13:17:19] Sock 7.Parse request [13:17:19]Sock 7.Check first char [13:17:19]Sock 7.First char is OK [13:17:19]request: POST /json_proto HTTP/1.0 [13:17:19]Method: POST [13:17:19]URL: /json_proto [13:17:19]Method is POST - this is cgi request [13:17:19]url: /json_proto [13:17:19]query_string will be loaded in cgi processing [13:17:19]execute_cgi json_proto POST (null) [13:17:19]execute_cgi path=json_proto method=POST [13:17:19]POST find Content-Length [13:17:19]Host: 172.17.39.67:8080 [13:17:19]Content-Length: 678 [13:17:19]Content-Type: application/json [13:17:19] [13:17:19]POST finish read [13:17:19]Found Content-Length = 678 [13:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:19]execute_script... [13: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)1319423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:19]POST & json_proto [13:17:19]process_json_proto [13:17:19]json parsed OK: [13:17:19]protocol is kg_v1.0 [13:17:19]action value=close_receipt [13:17:19]process_action close_receipt [13:17:19]cmd_close_receipt [13:17:19]MH_GetDate [13:17:19]Write to MH i2c: F0 00 00 93 1B 9D [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: F0 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: F0 09 00 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: F0 09 00 93 1B 00 E0 CF 93 66 B6 85 93 66 82 [13:17:19]GetLastDocTimeStamp 1720962369 [13:17:19]current date 1720963040 [13:17:19]FM_GetShiftState [13:17:19]SAM_PROTO_GetShiftState [13:17:19]wFMCommunicate request_size=4 [13:17:19]MH_SAM_APDU [13:17:19]CAPDU: 80 13 01 00 [13:17:19]Write to MH i2c: E2 08 00 94 1B 80 13 01 00 00 00 00 00 2C [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:19]Read from MH i2c: E2 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 0E 00 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 0E 00 94 1B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 62 [13:17:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:17:19]wFMCommunicate OK [13:17:19]SAM_PROTO_GetShiftState done [13:17:19]FM_GetShiftState done [13:17:19]opened in 1720915483 [13:17:19]opened+sec_in_day 1721001883 [13:17:19]quantity*price = 30033 [13:17:19]sum+1 = 30035 [13:17:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 136 14.07.2024 13:17 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162824 ФПД: 93451760155669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T131720&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162824&fm=93451760155669&tin=02508201610067®Number=0000000000090858&sum=30000 [13:17:20]StoreToDocumentArchive [13:17:20]shift 463 fd 162824 [13:17:20]save to /storage/0463/doc_00162824 [13:17:20]save last doc name /storage/0463/doc_00162824 to /storage/kkm_last_doc_name [13:17:20]save OK [13:17:20]Clear old archive folders... [13:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:20]tlvbuf is 01316C30 [13:17:20]SAM_PROTO_ClearQueue [13:17:20]wFMCommunicate request_size=4 [13:17:20]MH_SAM_APDU [13:17:20]CAPDU: 80 09 00 00 [13:17:20]Write to MH i2c: E2 08 00 A1 1B 80 09 00 00 00 00 00 00 2E [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:20]Read from MH i2c: E2 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 03 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 03 00 A1 1B 00 90 00 30 [13:17:20]RAPDU: 90 00 [13:17:20]wFMCommunicate OK [13:17:20]SAM_PROTO_ClearQueue done [13:17:20]KKMCreateOFDPacket [13:17:20]OFDProtocolAddRootSTLVToBuf [13:17:20]FM_MakeSignedData [13:17:20]FM_MakeSignedData [13:17:20]SAM_PROTO_SignData [13:17:20]wFMCommunicate request_size=4 [13:17:20]MH_SAM_APDU [13:17:20]CAPDU: 80 0D 01 02 [13:17:20]Write to MH i2c: E2 08 00 A2 1B 80 0D 01 02 00 00 00 00 36 [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:20]Read from MH i2c: E2 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 03 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 03 00 A2 1B 00 90 00 31 [13:17:20]RAPDU: 90 00 [13:17:20]wFMCommunicate OK [13:17:20]wFMCommunicate request_size=255 [13:17:20]MH_SAM_APDU [13: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 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 88 00 00 00 F4 03 04 00 E0 CF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 08 7C 02 00 35 04 06 00 54 [13:17:20]Write to MH i2c: E2 02 01 A3 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 88 00 00 00 F4 03 04 00 E0 CF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 08 7C 02 00 35 04 06 00 54 00 00 8B [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:20]Read from MH i2c: E2 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 03 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 03 00 A3 1B 00 90 00 32 [13:17:20]RAPDU: 90 00 [13:17:20]wFMCommunicate OK [13:17:20]wFMCommunicate request_size=10 [13:17:20]MH_SAM_APDU [13:17:20]CAPDU: 80 0D 02 02 05 FE 6E F7 BC 15 [13:17:20]Write to MH i2c: E2 0D 00 A4 1B 80 0D 02 02 05 00 FE 6E F7 BC 15 00 00 77 [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:20]Read from MH i2c: E2 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 03 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 03 00 A4 1B 00 90 00 33 [13:17:20]RAPDU: 90 00 [13:17:20]wFMCommunicate OK [13:17:20]wFMCommunicate request_size=4 [13:17:20]MH_SAM_APDU [13:17:20]CAPDU: 80 0D 03 02 [13:17:20]Write to MH i2c: E2 08 00 A5 1B 80 0D 03 02 00 00 00 00 3B [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:20]Read from MH i2c: E2 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 0B 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 0B 00 A5 1B 00 AF 59 27 39 88 A2 69 F2 90 00 29 [13:17:21]RAPDU: AF 59 27 39 88 A2 69 F2 90 00 [13:17:21]wFMCommunicate OK [13:17:21]SAM_PROTO_SignData done [13:17:21]FM_MakeSignedData done [13:17:21]CreateOFDProtocolMessage [13:17:21]wFMCommunicate request_size=4 [13:17:21]MH_SAM_APDU [13:17:21]CAPDU: 80 11 00 00 [13:17:21]Write to MH i2c: E2 08 00 A6 1B 80 11 00 00 00 00 00 00 3B [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 17 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 17 00 A6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9B [13:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:17:21]wFMCommunicate OK [13:17:21]CreateOFDProtocolMessage done [13:17:21]OFDSenderStorePacket 162824 [13:17:21]StoreOFDPacket docnum=162824 [13:17:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8C 3D 07 01 F4 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 88 00 00 00 F4 03 04 00 E0 CF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 08 7C 02 00 35 04 06 00 54 FE 6E F7 BC 15 AF 59 27 39 88 A2 69 F2 [13:17:21]CheckFolder [13:17:21]dirname=/storage/ofd_packets [13:17:21]CheckFolder done [13:17:21]ProducePacketName [13:17:21]name=ofd_packets/00162824 [13:17:21]NVStorageSaveData ofd_packets/00162824 [13:17:21]File name is /storage/ofd_packets/00162824 [13:17:21]Write 301 bytes [13:17:21]NVStorageSaveData done [13:17:21]OFDSenderStorePacket done [13:17:21]KKMCreateOFDPacket done [13:17:21]NVStorageSaveData kkm_last_timestamp [13:17:21]File name is /storage/kkm_last_timestamp [13:17:21]Write 4 bytes [13:17:21]NVStorageSaveData done [13:17:21]ExternCall_PrintAddStr [13:17:21]wPrintStart [13:17:21]Write to MH i2c: 01 00 00 A7 1B C2 [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: 01 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: 01 07 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: 01 07 00 A7 1B 00 00 00 00 00 FF 0F D7 [13:17:21]RasterBufferAndPrint [13:17:21]line Счет N : (1)1319423 [13:17:21]line ИНН: 02508201610067 [13:17:21]line Контрольно-Кассовый Чек [13:17:21]line ПРОДАЖА [13:17:21]line ТРК (МРК, ГНК) : 43 [13:17:21]line Товар: 2710124130 [13:17:21]line Аи-92-К-5 [13:17:21]line 4.530 * 66.30 [13:17:21]line = 300.34 [13:17:21]line НДС 12% НСП 1% [13:17:21]line > о реализуемом товаре [13:17:21]line ОКРУГЛЕНИЕ: -0.34 [13:17:21]line ИТОГО: 300.00 [13:17:21]line Внесено: 300.00 [13:17:21]line СДАЧА: 0.00 [13:17:21]line НСП 1% : 2.66 [13:17:21]line НДС 12% : 31.89 [13:17:21]line Наличными: 300.00 [13:17:21]line Безнал.: 0.00 [13:17:21]line Место: АЗС № 140 "Партнер Нефть" [13:17:21]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:17:21]line СНО: Общий режим [13:17:21]line Чек 136 14.07.2024 13:17 [13:17:21]line Смена: 463 ФФД: 1.0 [13:17:21]line ЗНМ: 0300000129 [13:17:21]line РНМ: 0000000000090858 [13:17:21]line Версия ККМ: 001 [13:17:21]line ФМ: 0000000000874899 [13:17:21]line ФД: 162824 [13:17:21]line ФПД: 93451760155669 [13:17:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T131720&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162824&fm=93451760155669&tin=02508201610067®Number=0000000000090858&sum=30000 [13:17:21]OFD Sender: Processing packet 162824 [packets to send 106, broken 105] [13:17:21]ProducePacketName [13:17:21]name=ofd_packets/00162824 [13:17:21]OFD Sender: To server: pG, [13:17:21]CommunicateWithHost lk.salyk.kg:30040 [13:17:21]ConnectInit lk.salyk.kg [13:17:21]written 0, free lines is 4095 [13:17:21]Connected sock=10 [13: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 34 38 39 39 0F 01 00 00 8C 3D 07 01 F4 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 88 00 00 00 F4 03 04 00 E0 CF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 08 7C 02 00 35 04 06 00 54 FE 6E F7 BC 15 AF 59 27 39 88 A2 69 F2 [13:17:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 45 7C 47 00 1B 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 08 7C 02 00 F4 03 04 00 EE 7B 93 66 B6 04 01 00 00 72 51 E8 90 67 7B 71 27 [13:17:21]CommunicateWithHost err = 0 [13:17:21]CheckOFDResponse [13:17:21]1017 (14) - 77093643461234 [13:17:21]1041 (16) - 0000000000874899 [13:17:21]1040 (4) - 162824 [13:17:21]1012 (4) - 14.07.2024 07:19 [13:17:21]1206 (1) - 0 [13:17:21]OFD Sender: Remove packet 162824 [13:17:21]ProducePacketName [13:17:21]name=ofd_packets/00162824 [13:17:21]NVStorageDeleteData [13:17:21]Write to MH i2c: 01 00 00 D2 1B ED [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: 01 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: 01 07 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: 01 07 00 D2 1B 00 00 00 00 00 DF 0C DF [13:17:21]RasterBufferAndPrint [13:17:21]line [13:17:21]line [13:17:21]line [13:17:21]line [13:17:21]line [13:17:21]written 0, free lines is 3301 [13:17:21]MH_Cut [13:17:21]Write to MH i2c: D1 01 00 D9 1B 01 C6 [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: D1 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: D1 01 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: D1 01 00 D9 1B 00 C5 [13:17:21]Write to MH i2c: 01 00 00 DA 1B F5 [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:22]OFD Sender: No OFD packet to send [13:17:22]*** Cut start [13:17:22]*** Purtial cut [13:17:22]*** CUTSNS_PIN = 0 [13:17:22]*** Stage 1: CUTSNS_PIN = 1 [13:17:24]Read from MH i2c: 01 [13:17:24]MH_I2C_Read... [13:17:24]*** Stop cut motor [13:17:24]*** Cut end [13:17:24]Read from MH i2c: 01 07 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: 01 07 00 DA 1B 00 00 00 00 00 FF 0F 0A [13:17:24]process_action close_receipt done [13:17:24]requested_data is exist [13:17:24]produce_requested_data [13:17:24]requested_item fm.sn is exist - process it [13:17:24]wFMCommunicate request_size=4 [13:17:24]MH_SAM_APDU [13:17:24]CAPDU: 80 11 00 00 [13:17:24]Write to MH i2c: E2 08 00 DB 1B 80 11 00 00 00 00 00 00 70 [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:24]Read from MH i2c: E2 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 17 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 17 00 DB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D0 [13:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:17:24]wFMCommunicate OK [13:17:24]requested_item fd.num is exist - process it [13:17:24]SAM_PROTO_GetFieldsCounters [13:17:24]wFMCommunicate request_size=4 [13:17:24]MH_SAM_APDU [13:17:24]CAPDU: 80 13 00 00 [13:17:24]Write to MH i2c: E2 08 00 DC 1B 80 13 00 00 00 00 00 00 73 [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:24]Read from MH i2c: E2 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 62 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 62 00 DC 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 08 7C 02 00 0E 04 04 00 CF 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 94 [13:17:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 08 7C 02 00 0E 04 04 00 CF 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 [13:17:24]wFMCommunicate OK [13:17:24]SAM_PROTO_GetFieldsCounters done [13:17:24]requested_item shift.num is exist - process it [13:17:24]requested_item shift.opened is exist - process it [13:17:24]req_shift_opened [13:17:24]FM_GetShiftState [13:17:24]SAM_PROTO_GetShiftState [13:17:24]wFMCommunicate request_size=4 [13:17:24]MH_SAM_APDU [13:17:24]CAPDU: 80 13 01 00 [13:17:24]Write to MH i2c: E2 08 00 DD 1B 80 13 01 00 00 00 00 00 75 [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:24]Read from MH i2c: E2 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 0E 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 0E 00 DD 1B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 AB [13:17:24]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:17:24]wFMCommunicate OK [13:17:24]SAM_PROTO_GetShiftState done [13:17:24]FM_GetShiftState done [13:17:24]req_shift_opened done [13:17:24]requested_item shift.open_date is exist - process it [13:17:24]req_shift_open_date [13:17:24]req_shift_open_date done [13:17:24]produce_requested_data done [13:17:24]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162824,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:17:24]process_action_free close_receipt [13:17:24]json_value_free [13:17:24]json_value_free done [13:17:24]process_json_proto returns [13:17:24]Send response to host [13:17:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162824,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:17:24]free response buf [13:17:24]execute_script done [13:17:24]execute_script returns [13:17:24]free content buf [13:17:24]Sock 7.Close socket [13:17:24]Sock 7.Thread stoped [13:17:27]OFD Sender: No OFD packet to send [13:17:32]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: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: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: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]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:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13: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:32]OFD Sender: No OFD packet to send [13:20:32]accept exits with 9 [13:20:32]New connection [13:20:32]New thread 3066735972 created [13:20:32]Thread 3066879332 joined [13:20:32]Waiting for new connection... [13:20:32] Sock 9.Parse request [13:20:32]Sock 9.Check first char [13:20:32]Sock 9.First char is OK [13:20:32]request: POST /json_proto HTTP/1.0 [13:20:32]Method: POST [13:20:32]URL: /json_proto [13:20:32]Method is POST - this is cgi request [13:20:32]url: /json_proto [13:20:32]query_string will be loaded in cgi processing [13:20:32]execute_cgi json_proto POST (null) [13:20:32]execute_cgi path=json_proto method=POST [13:20:32]POST find Content-Length [13:20:32]Host: 172.17.39.67:8080 [13:20:32]Content-Length: 688 [13:20:32]Content-Type: application/json [13:20:32] [13:20:32]POST finish read [13:20:32]Found Content-Length = 688 [13:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "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" ] } } [13:20:32]execute_script... [13:20:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "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" ] } } [13:20:32]POST & json_proto [13:20:32]process_json_proto [13:20:32]json parsed OK: [13:20:32]protocol is kg_v1.0 [13:20:32]action value=close_receipt [13:20:32]process_action close_receipt [13:20:32]cmd_close_receipt [13:20:32]MH_GetDate [13:20:32]Write to MH i2c: F0 00 00 DE 1B E8 [13:20:32]Write i2c OK [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: F0 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: F0 09 00 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: F0 09 00 DE 1B 00 A2 D0 93 66 B6 85 93 66 90 [13:20:32]GetLastDocTimeStamp 1720963040 [13:20:32]current date 1720963234 [13:20:32]FM_GetShiftState [13:20:32]SAM_PROTO_GetShiftState [13:20:32]wFMCommunicate request_size=4 [13:20:32]MH_SAM_APDU [13:20:32]CAPDU: 80 13 01 00 [13:20:32]Write to MH i2c: E2 08 00 DF 1B 80 13 01 00 00 00 00 00 77 [13:20:32]Write i2c OK [13:20:32]MH_I2C_Read... [13:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:32]Read from MH i2c: E2 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: E2 0E 00 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: E2 0E 00 DF 1B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 AD [13:20:32]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:20:32]wFMCommunicate OK [13:20:32]SAM_PROTO_GetShiftState done [13:20:32]FM_GetShiftState done [13:20:32]opened in 1720915483 [13:20:32]opened+sec_in_day 1721001883 [13:20:32]quantity*price = 150064 [13:20:32]sum+1 = 150065 [13:20:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 137 14.07.2024 13:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162825 ФПД: 124084488335208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132034&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162825&fm=124084488335208&tin=02508201610067®Number=0000000000090858&sum=150000 [13:20:34]StoreToDocumentArchive [13:20:34]shift 463 fd 162825 [13:20:34]save to /storage/0463/doc_00162825 [13:20:34]save last doc name /storage/0463/doc_00162825 to /storage/kkm_last_doc_name [13:20:34]save OK [13:20:34]Clear old archive folders... [13:20:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:20:34]tlvbuf is B6F46970 [13:20:34]SAM_PROTO_ClearQueue [13:20:34]wFMCommunicate request_size=4 [13:20:34]MH_SAM_APDU [13:20:34]CAPDU: 80 09 00 00 [13:20:34]Write to MH i2c: E2 08 00 EC 1B 80 09 00 00 00 00 00 00 79 [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:34]Read from MH i2c: E2 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 03 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 03 00 EC 1B 00 90 00 7B [13:20:34]RAPDU: 90 00 [13:20:34]wFMCommunicate OK [13:20:34]SAM_PROTO_ClearQueue done [13:20:34]KKMCreateOFDPacket [13:20:34]OFDProtocolAddRootSTLVToBuf [13:20:34]FM_MakeSignedData [13:20:34]FM_MakeSignedData [13:20:34]SAM_PROTO_SignData [13:20:34]wFMCommunicate request_size=4 [13:20:34]MH_SAM_APDU [13:20:34]CAPDU: 80 0D 01 02 [13:20:34]Write to MH i2c: E2 08 00 ED 1B 80 0D 01 02 00 00 00 00 81 [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:34]Read from MH i2c: E2 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 03 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 03 00 ED 1B 00 90 00 7C [13:20:34]RAPDU: 90 00 [13:20:34]wFMCommunicate OK [13:20:34]wFMCommunicate request_size=255 [13:20:34]MH_SAM_APDU [13:20:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 89 00 00 00 F4 03 04 00 A2 D0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 09 7C 02 00 35 04 06 00 [13:20:34]Write to MH i2c: E2 02 01 EE 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 89 00 00 00 F4 03 04 00 A2 D0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 09 7C 02 00 35 04 06 00 00 00 4E [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:34]Read from MH i2c: E2 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 03 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 03 00 EE 1B 00 90 00 7D [13:20:34]RAPDU: 90 00 [13:20:34]wFMCommunicate OK [13:20:34]wFMCommunicate request_size=11 [13:20:34]MH_SAM_APDU [13:20:34]CAPDU: 80 0D 02 02 06 70 DA AB D9 6F 68 [13:20:34]Write to MH i2c: E2 0E 00 EF 1B 80 0D 02 02 06 00 70 DA AB D9 6F 68 00 00 35 [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:34]Read from MH i2c: E2 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 03 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 03 00 EF 1B 00 90 00 7E [13:20:34]RAPDU: 90 00 [13:20:34]wFMCommunicate OK [13:20:34]wFMCommunicate request_size=4 [13:20:34]MH_SAM_APDU [13:20:34]CAPDU: 80 0D 03 02 [13:20:34]Write to MH i2c: E2 08 00 F0 1B 80 0D 03 02 00 00 00 00 86 [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:34]Read from MH i2c: E2 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 0B 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 0B 00 F0 1B 00 99 E2 A1 C7 7E 73 9C D9 90 00 D0 [13:20:34]RAPDU: 99 E2 A1 C7 7E 73 9C D9 90 00 [13:20:34]wFMCommunicate OK [13:20:34]SAM_PROTO_SignData done [13:20:34]FM_MakeSignedData done [13:20:34]CreateOFDProtocolMessage [13:20:34]wFMCommunicate request_size=4 [13:20:34]MH_SAM_APDU [13:20:34]CAPDU: 80 11 00 00 [13:20:34]Write to MH i2c: E2 08 00 F1 1B 80 11 00 00 00 00 00 00 86 [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:34]Read from MH i2c: E2 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 17 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: E2 17 00 F1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E6 [13:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:20:34]wFMCommunicate OK [13:20:34]CreateOFDProtocolMessage done [13:20:34]OFDSenderStorePacket 162825 [13:20:34]StoreOFDPacket docnum=162825 [13:20:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 08 A6 08 01 F7 D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 89 00 00 00 F4 03 04 00 A2 D0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 09 7C 02 00 35 04 06 00 70 DA AB D9 6F 68 99 E2 A1 C7 7E 73 9C D9 [13:20:34]CheckFolder [13:20:34]dirname=/storage/ofd_packets [13:20:34]CheckFolder done [13:20:34]ProducePacketName [13:20:34]name=ofd_packets/00162825 [13:20:34]NVStorageSaveData ofd_packets/00162825 [13:20:34]File name is /storage/ofd_packets/00162825 [13:20:34]Write 302 bytes [13:20:34]NVStorageSaveData done [13:20:34]OFDSenderStorePacket done [13:20:34]KKMCreateOFDPacket done [13:20:34]NVStorageSaveData kkm_last_timestamp [13:20:34]File name is /storage/kkm_last_timestamp [13:20:34]Write 4 bytes [13:20:34]NVStorageSaveData done [13:20:34]ExternCall_PrintAddStr [13:20:34]wPrintStart [13:20:34]Write to MH i2c: 01 00 00 F2 1B 0D [13:20:34]Write i2c OK [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: 01 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: 01 07 00 [13:20:34]MH_I2C_Read... [13:20:34]Read from MH i2c: 01 07 00 F2 1B 00 00 00 00 00 FF 0F 22 [13:20:34]RasterBufferAndPrint [13:20:34]line Счет N : (1)1319424 [13:20:34]line ИНН: 02508201610067 [13:20:34]line Контрольно-Кассовый Чек [13:20:34]line ПРОДАЖА [13:20:34]line ТРК (МРК, ГНК) : 11 [13:20:34]line Товар: 2710194210 [13:20:34]line ДТ(л)-К-5 [13:20:34]line 20.670 * 72.60 [13:20:34]line = 1500.64 [13:20:34]line НДС 12% НСП 1% [13:20:34]line > о реализуемом товаре [13:20:34]line ОКРУГЛЕНИЕ: -0.64 [13:20:34]line ИТОГО: 1500.00 [13:20:34]line Внесено: 1500.00 [13:20:34]line СДАЧА: 0.00 [13:20:34]line НСП 1% : 13.28 [13:20:34]line НДС 12% : 159.36 [13:20:34]line Наличными: 1500.00 [13:20:34]line Безнал.: 0.00 [13:20:34]line Место: АЗС № 140 "Партнер Нефть" [13:20:34]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:20:34]line СНО: Общий режим [13:20:34]line Чек 137 14.07.2024 13:20 [13:20:34]line Смена: 463 ФФД: 1.0 [13:20:34]line ЗНМ: 0300000129 [13:20:34]line РНМ: 0000000000090858 [13:20:34]line Версия ККМ: 001 [13:20:34]line ФМ: 0000000000874899 [13:20:34]line ФД: 162825 [13:20:34]line ФПД: 124084488335208 [13:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132034&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162825&fm=124084488335208&tin=02508201610067®Number=0000000000090858&sum=150000 [13:20:34]OFD Sender: Processing packet 162825 [packets to send 106, broken 105] [13:20:34]ProducePacketName [13:20:34]name=ofd_packets/00162825 [13:20:34]OFD Sender: To server: pG, [13:20:34]CommunicateWithHost lk.salyk.kg:30040 [13:20:34]ConnectInit lk.salyk.kg [13:20:35]written 0, free lines is 4095 [13:20:35]Connected sock=10 [13:20:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 08 A6 08 01 F7 D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 89 00 00 00 F4 03 04 00 A2 D0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 09 7C 02 00 35 04 06 00 70 DA AB D9 6F 68 99 E2 A1 C7 7E 73 9C D9 [13:20:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 01 DC 47 00 E8 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 09 7C 02 00 F4 03 04 00 AF 7C 93 66 B6 04 01 00 00 3C A4 B9 E4 BD 36 A1 CE [13:20:35]CommunicateWithHost err = 0 [13:20:35]CheckOFDResponse [13:20:35]1017 (14) - 77093643461234 [13:20:35]1041 (16) - 0000000000874899 [13:20:35]1040 (4) - 162825 [13:20:35]1012 (4) - 14.07.2024 07:22 [13:20:35]1206 (1) - 0 [13:20:35]OFD Sender: Remove packet 162825 [13:20:35]ProducePacketName [13:20:35]name=ofd_packets/00162825 [13:20:35]NVStorageDeleteData [13:20:35]Write to MH i2c: 01 00 00 1D 1C 39 [13:20:35]Write i2c OK [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: 01 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: 01 07 00 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: 01 07 00 1D 1C 00 00 00 00 00 F5 0C 41 [13:20:35]RasterBufferAndPrint [13:20:35]line [13:20:35]line [13:20:35]line [13:20:35]line [13:20:35]line [13:20:35]written 0, free lines is 3326 [13:20:35]MH_Cut [13:20:35]Write to MH i2c: D1 01 00 24 1C 01 12 [13:20:35]Write i2c OK [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: D1 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: D1 01 00 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: D1 01 00 24 1C 00 11 [13:20:35]Write to MH i2c: 01 00 00 25 1C 41 [13:20:35]Write i2c OK [13:20:35]MH_I2C_Read... [13:20:35]OFD Sender: No OFD packet to send [13:20:36]*** Cut start [13:20:36]*** Purtial cut [13:20:36]*** Stage 1: CUTSNS_PIN = 1 [13:20:36]Read from MH i2c: 01 [13:20:36]MH_I2C_Read... [13:20:36]*** Stop cut motor [13:20:36]*** Cut end [13:20:36]Read from MH i2c: 01 07 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: 01 07 00 25 1C 00 00 00 00 00 FF 0F 56 [13:20:36]process_action close_receipt done [13:20:36]requested_data is exist [13:20:36]produce_requested_data [13:20:36]requested_item fm.sn is exist - process it [13:20:36]wFMCommunicate request_size=4 [13:20:36]MH_SAM_APDU [13:20:36]CAPDU: 80 11 00 00 [13:20:36]Write to MH i2c: E2 08 00 26 1C 80 11 00 00 00 00 00 00 BC [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:36]Read from MH i2c: E2 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 17 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 17 00 26 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1C [13:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:20:36]wFMCommunicate OK [13:20:36]requested_item fd.num is exist - process it [13:20:36]SAM_PROTO_GetFieldsCounters [13:20:36]wFMCommunicate request_size=4 [13:20:36]MH_SAM_APDU [13:20:36]CAPDU: 80 13 00 00 [13:20:36]Write to MH i2c: E2 08 00 27 1C 80 13 00 00 00 00 00 00 BF [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:36]Read from MH i2c: E2 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 62 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 62 00 27 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 09 7C 02 00 0E 04 04 00 CF 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 E4 [13:20:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 09 7C 02 00 0E 04 04 00 CF 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 [13:20:36]wFMCommunicate OK [13:20:36]SAM_PROTO_GetFieldsCounters done [13:20:36]requested_item shift.num is exist - process it [13:20:36]requested_item shift.opened is exist - process it [13:20:36]req_shift_opened [13:20:36]FM_GetShiftState [13:20:36]SAM_PROTO_GetShiftState [13:20:36]wFMCommunicate request_size=4 [13:20:36]MH_SAM_APDU [13:20:36]CAPDU: 80 13 01 00 [13:20:36]Write to MH i2c: E2 08 00 28 1C 80 13 01 00 00 00 00 00 C1 [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:36]Read from MH i2c: E2 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 0E 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 0E 00 28 1C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F7 [13:20:36]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:20:36]wFMCommunicate OK [13:20:36]SAM_PROTO_GetShiftState done [13:20:36]FM_GetShiftState done [13:20:36]req_shift_opened done [13:20:36]requested_item shift.open_date is exist - process it [13:20:36]req_shift_open_date [13:20:36]req_shift_open_date done [13:20:36]produce_requested_data done [13:20:36]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162825,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:20:36]process_action_free close_receipt [13:20:36]json_value_free [13:20:36]json_value_free done [13:20:36]process_json_proto returns [13:20:36]Send response to host [13:20:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162825,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:20:36]free response buf [13:20:36]execute_script done [13:20:36]execute_script returns [13:20:36]free content buf [13:20:36]Sock 9.Close socket [13:20:36]Sock 9.Thread stoped [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:09]accept exits with 7 [13:25:09]New connection [13:25:09]New thread 3066879332 created [13:25:09]Thread 3066735972 joined [13:25:09]Waiting for new connection... [13:25:09] Sock 7.Parse request [13:25:09]Sock 7.Check first char [13:25:09]Sock 7.First char is OK [13:25:09]request: POST /json_proto HTTP/1.0 [13:25:09]Method: POST [13:25:09]URL: /json_proto [13:25:09]Method is POST - this is cgi request [13:25:09]url: /json_proto [13:25:09]query_string will be loaded in cgi processing [13:25:09]execute_cgi json_proto POST (null) [13:25:09]execute_cgi path=json_proto method=POST [13:25:09]POST find Content-Length [13:25:09]Host: 172.17.39.67:8080 [13:25:09]Content-Length: 987 [13:25:09]Content-Type: application/json [13:25:09] [13:25:09]POST finish read [13:25:09]Found Content-Length = 987 [13:25:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.60, "quantity" : 99.170, "sum" : 7100.57, "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 140\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 99.17 \u0441\u043E\u043C", "deposit" : 7100.00, "total" : 7100.00, "payments": [ { "type": 0, "sum" : 7100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:09]execute_script... [13:25: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)1319425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.60, "quantity" : 99.170, "sum" : 7100.57, "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 140\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 99.17 \u0441\u043E\u043C", "deposit" : 7100.00, "total" : 7100.00, "payments": [ { "type": 0, "sum" : 7100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:09]POST & json_proto [13:25:09]process_json_proto [13:25:09]json parsed OK: [13:25:09]protocol is kg_v1.0 [13:25:09]action value=close_receipt [13:25:09]process_action close_receipt [13:25:09]cmd_close_receipt [13:25:09]MH_GetDate [13:25:09]Write to MH i2c: F0 00 00 29 1C 34 [13:25:09]Write i2c OK [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: F0 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: F0 09 00 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: F0 09 00 29 1C 00 B6 D1 93 66 B6 85 93 66 F1 [13:25:09]GetLastDocTimeStamp 1720963234 [13:25:09]current date 1720963510 [13:25:09]FM_GetShiftState [13:25:09]SAM_PROTO_GetShiftState [13:25:09]wFMCommunicate request_size=4 [13:25:09]MH_SAM_APDU [13:25:09]CAPDU: 80 13 01 00 [13:25:09]Write to MH i2c: E2 08 00 2A 1C 80 13 01 00 00 00 00 00 C3 [13:25:09]Write i2c OK [13:25:09]MH_I2C_Read... [13:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:09]Read from MH i2c: E2 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: E2 0E 00 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: E2 0E 00 2A 1C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F9 [13:25:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:25:09]wFMCommunicate OK [13:25:09]SAM_PROTO_GetShiftState done [13:25:09]FM_GetShiftState done [13:25:09]opened in 1720915483 [13:25:09]opened+sec_in_day 1721001883 [13:25:09]quantity*price = 710057 [13:25:09]sum+1 = 710058 [13:25:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 7100.00 Внесено: 7100.00 СДАЧА: 0.00 НСП 1% : 62.84 НДС 12% : 754.04 Наличными: 7100.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 138 14.07.2024 13:25 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Дисконтная программа ДТ номер 140 сэкономлено 99.17 сом ФМ: 0000000000874899 ФД: 162826 ФПД: 153714424035092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132510&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162826&fm=153714424035092&tin=02508201610067®Number=0000000000090858&sum=710000 [13:25:10]StoreToDocumentArchive [13:25:10]shift 463 fd 162826 [13:25:10]save to /storage/0463/doc_00162826 [13:25:10]save last doc name /storage/0463/doc_00162826 to /storage/kkm_last_doc_name [13:25:10]save OK [13:25:10]Clear old archive folders... [13:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:25:10]tlvbuf is 012EC240 [13:25:10]SAM_PROTO_ClearQueue [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 09 00 00 [13:25:10]Write to MH i2c: E2 08 00 37 1C 80 09 00 00 00 00 00 00 C5 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 37 1C 00 90 00 C7 [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]SAM_PROTO_ClearQueue done [13:25:10]KKMCreateOFDPacket [13:25:10]OFDProtocolAddRootSTLVToBuf [13:25:10]FM_MakeSignedData [13:25:10]FM_MakeSignedData [13:25:10]SAM_PROTO_SignData [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 01 02 [13:25:10]Write to MH i2c: E2 08 00 38 1C 80 0D 01 02 00 00 00 00 CD [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 38 1C 00 90 00 C8 [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=255 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 62 83 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 A9 D5 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 D5 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 26 01 00 00 00 07 04 06 00 70 D5 0A 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 B6 D1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0A 7C 02 00 35 04 06 00 [13:25:10]Write to MH i2c: E2 02 01 39 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 62 83 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 A9 D5 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 D5 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 26 01 00 00 00 07 04 06 00 70 D5 0A 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 B6 D1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0A 7C 02 00 35 04 06 00 00 00 FC [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 39 1C 00 90 00 C9 [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=11 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 02 02 06 8B CD 6D A4 37 14 [13:25:10]Write to MH i2c: E2 0E 00 3A 1C 80 0D 02 02 06 00 8B CD 6D A4 37 14 00 00 90 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 3A 1C 00 90 00 CA [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 03 02 [13:25:10]Write to MH i2c: E2 08 00 3B 1C 80 0D 03 02 00 00 00 00 D2 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 0B 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 0B 00 3B 1C 00 7F CF B3 23 4C 37 81 70 90 00 6B [13:25:10]RAPDU: 7F CF B3 23 4C 37 81 70 90 00 [13:25:10]wFMCommunicate OK [13:25:10]SAM_PROTO_SignData done [13:25:10]FM_MakeSignedData done [13:25:10]CreateOFDProtocolMessage [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 11 00 00 [13:25:10]Write to MH i2c: E2 08 00 3C 1C 80 11 00 00 00 00 00 00 D2 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 17 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 17 00 3C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 32 [13:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:25:10]wFMCommunicate OK [13:25:10]CreateOFDProtocolMessage done [13:25:10]OFDSenderStorePacket 162826 [13:25:10]StoreOFDPacket docnum=162826 [13:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D8 2A 08 01 AA E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 62 83 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 A9 D5 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 D5 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 26 01 00 00 00 07 04 06 00 70 D5 0A 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 B6 D1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0A 7C 02 00 35 04 06 00 8B CD 6D A4 37 14 7F CF B3 23 4C 37 81 70 [13:25:10]CheckFolder [13:25:10]dirname=/storage/ofd_packets [13:25:10]CheckFolder done [13:25:10]ProducePacketName [13:25:10]name=ofd_packets/00162826 [13:25:10]NVStorageSaveData ofd_packets/00162826 [13:25:10]File name is /storage/ofd_packets/00162826 [13:25:10]Write 302 bytes [13:25:10]NVStorageSaveData done [13:25:10]OFDSenderStorePacket done [13:25:10]KKMCreateOFDPacket done [13:25:10]NVStorageSaveData kkm_last_timestamp [13:25:10]File name is /storage/kkm_last_timestamp [13:25:10]Write 4 bytes [13:25:10]NVStorageSaveData done [13:25:10]ExternCall_PrintAddStr [13:25:10]wPrintStart [13:25:10]Write to MH i2c: 01 00 00 3D 1C 59 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 07 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: 01 07 00 3D 1C 00 00 00 00 00 FF 0F 6E [13:25:10]RasterBufferAndPrint [13:25:10]line Счет N : (1)1319425 [13:25:10]line ИНН: 02508201610067 [13:25:10]line Контрольно-Кассовый Чек [13:25:10]line ПРОДАЖА [13:25:10]line ТРК (МРК, ГНК) : 51 [13:25:10]line Товар: 2710194210 [13:25:10]line ДТ(л)-К-5 [13:25:10]line 99.170 * 71.60 [13:25:10]line = 7100.57 [13:25:10]line НДС 12% НСП 1% [13:25:10]line > о реализуемом товаре [13:25:10]line ОКРУГЛЕНИЕ: -0.57 [13:25:10]line ИТОГО: 7100.00 [13:25:10]line Внесено: 7100.00 [13:25:10]line СДАЧА: 0.00 [13:25:10]line НСП 1% : 62.84 [13:25:10]line НДС 12% : 754.04 [13:25:10]line Наличными: 7100.00 [13:25:10]line Безнал.: 0.00 [13:25:10]line Место: АЗС № 140 "Партнер Нефть" [13:25:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:25:10]line СНО: Общий режим [13:25:10]line Чек 138 14.07.2024 13:25 [13:25:10]line Смена: 463 ФФД: 1.0 [13:25:10]line ЗНМ: 0300000129 [13:25:10]line РНМ: 0000000000090858 [13:25:10]line Версия ККМ: 001 [13:25:10]line [13:25:10]line Дисконтная программа [13:25:10]line ДТ [13:25:10]line номер 140 [13:25:10]line сэкономлено 99.17 сом [13:25:10]line ФМ: 0000000000874899 [13:25:10]line ФД: 162826 [13:25:10]line ФПД: 153714424035092 [13:25:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132510&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162826&fm=153714424035092&tin=02508201610067®Number=0000000000090858&sum=710000 [13:25:11]OFD Sender: Processing packet 162826 [packets to send 106, broken 105] [13:25:11]ProducePacketName [13:25:11]name=ofd_packets/00162826 [13:25:11]OFD Sender: To server: pG, [13:25:11]CommunicateWithHost lk.salyk.kg:30040 [13:25:11]ConnectInit lk.salyk.kg [13:25:11]written 0, free lines is 4095 [13:25:11]Connected sock=10 [13:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D8 2A 08 01 AA E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 62 83 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 A9 D5 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 D5 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 26 01 00 00 00 07 04 06 00 70 D5 0A 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 B6 D1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0A 7C 02 00 35 04 06 00 8B CD 6D A4 37 14 7F CF B3 23 4C 37 81 70 [13:25:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8F 07 47 00 C6 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0A 7C 02 00 F4 03 04 00 C3 7D 93 66 B6 04 01 00 00 79 D6 8D 51 C7 9F A7 F8 [13:25:11]CommunicateWithHost err = 0 [13:25:11]CheckOFDResponse [13:25:11]1017 (14) - 77093643461234 [13:25:11]1041 (16) - 0000000000874899 [13:25:11]1040 (4) - 162826 [13:25:11]1012 (4) - 14.07.2024 07:26 [13:25:11]1206 (1) - 0 [13:25:11]OFD Sender: Remove packet 162826 [13:25:11]ProducePacketName [13:25:11]name=ofd_packets/00162826 [13:25:11]NVStorageDeleteData [13:25:11]Write to MH i2c: 01 00 00 6D 1C 89 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 07 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 07 00 6D 1C 00 00 00 00 00 8D 0C 29 [13:25:11]RasterBufferAndPrint [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]written 0, free lines is 3219 [13:25:11]MH_Cut [13:25:11]Write to MH i2c: D1 01 00 74 1C 01 62 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 01 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 01 00 74 1C 00 61 [13:25:11]Write to MH i2c: 01 00 00 75 1C 91 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]OFD Sender: No OFD packet to send [13:25:12]*** Cut start [13:25:12]*** Purtial cut [13:25:12]*** CUTSNS_PIN = 0 [13:25:12]*** Stage 1: CUTSNS_PIN = 1 [13:25:14]Read from MH i2c: 01 [13:25:14]MH_I2C_Read... [13:25:14]*** Stop cut motor [13:25:14]*** Cut end [13:25:14]Read from MH i2c: 01 07 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: 01 07 00 75 1C 00 00 00 00 00 FF 0F A6 [13:25:14]process_action close_receipt done [13:25:14]requested_data is exist [13:25:14]produce_requested_data [13:25:14]requested_item fm.sn is exist - process it [13:25:14]wFMCommunicate request_size=4 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 11 00 00 [13:25:14]Write to MH i2c: E2 08 00 76 1C 80 11 00 00 00 00 00 00 0C [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 17 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 17 00 76 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6C [13:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:25:14]wFMCommunicate OK [13:25:14]requested_item fd.num is exist - process it [13:25:14]SAM_PROTO_GetFieldsCounters [13:25:14]wFMCommunicate request_size=4 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 13 00 00 [13:25:14]Write to MH i2c: E2 08 00 77 1C 80 13 00 00 00 00 00 00 0F [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 62 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 62 00 77 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0A 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [13:25:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0A 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:14]wFMCommunicate OK [13:25:14]SAM_PROTO_GetFieldsCounters done [13:25:14]requested_item shift.num is exist - process it [13:25:14]requested_item shift.opened is exist - process it [13:25:14]req_shift_opened [13:25:14]FM_GetShiftState [13:25:14]SAM_PROTO_GetShiftState [13:25:14]wFMCommunicate request_size=4 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 13 01 00 [13:25:14]Write to MH i2c: E2 08 00 78 1C 80 13 01 00 00 00 00 00 11 [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 0E 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 0E 00 78 1C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 47 [13:25:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:25:14]wFMCommunicate OK [13:25:14]SAM_PROTO_GetShiftState done [13:25:14]FM_GetShiftState done [13:25:14]req_shift_opened done [13:25:14]requested_item shift.open_date is exist - process it [13:25:14]req_shift_open_date [13:25:14]req_shift_open_date done [13:25:14]produce_requested_data done [13:25:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162826,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:25:14]process_action_free close_receipt [13:25:14]json_value_free [13:25:14]json_value_free done [13:25:14]process_json_proto returns [13:25:14]Send response to host [13:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162826,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:25:14]free response buf [13:25:14]execute_script done [13:25:14]execute_script returns [13:25:14]free content buf [13:25:14]Sock 7.Close socket [13:25:14]Sock 7.Thread stoped [13:25:16]OFD Sender: No OFD packet to send [13:25:17]accept exits with 9 [13:25:17]New connection [13:25:17]New thread 3066735972 created [13:25:17]Thread 3066879332 joined [13:25:17]Waiting for new connection... [13:25:17] Sock 9.Parse request [13:25:17]Sock 9.Check first char [13:25:17]Sock 9.First char is OK [13:25:17]request: POST /json_proto HTTP/1.0 [13:25:17]Method: POST [13:25:17]URL: /json_proto [13:25:17]Method is POST - this is cgi request [13:25:17]url: /json_proto [13:25:17]query_string will be loaded in cgi processing [13:25:17]execute_cgi json_proto POST (null) [13:25:17]execute_cgi path=json_proto method=POST [13:25:17]POST find Content-Length [13:25:17]Host: 172.17.39.67:8080 [13:25:17]Content-Length: 688 [13:25:17]Content-Type: application/json [13:25:17] [13:25:17]POST finish read [13:25:17]Found Content-Length = 688 [13:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 22.040, "sum" : 1600.10, "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" ] } } [13:25:17]execute_script... [13:25: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)1319426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 22.040, "sum" : 1600.10, "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" ] } } [13:25:17]POST & json_proto [13:25:17]process_json_proto [13:25:17]json parsed OK: [13:25:17]protocol is kg_v1.0 [13:25:17]action value=close_receipt [13:25:17]process_action close_receipt [13:25:17]cmd_close_receipt [13:25:17]MH_GetDate [13:25:17]Write to MH i2c: F0 00 00 79 1C 84 [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: F0 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: F0 09 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: F0 09 00 79 1C 00 BE D1 93 66 B6 85 93 66 49 [13:25:17]GetLastDocTimeStamp 1720963510 [13:25:17]current date 1720963518 [13:25:17]FM_GetShiftState [13:25:17]SAM_PROTO_GetShiftState [13:25:17]wFMCommunicate request_size=4 [13:25:17]MH_SAM_APDU [13:25:17]CAPDU: 80 13 01 00 [13:25:17]Write to MH i2c: E2 08 00 7A 1C 80 13 01 00 00 00 00 00 13 [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:17]Read from MH i2c: E2 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 0E 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 0E 00 7A 1C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 49 [13:25:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:25:17]wFMCommunicate OK [13:25:17]SAM_PROTO_GetShiftState done [13:25:17]FM_GetShiftState done [13:25:17]opened in 1720915483 [13:25:17]opened+sec_in_day 1721001883 [13:25:17]quantity*price = 160010 [13:25:17]sum+1 = 160011 [13:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 139 14.07.2024 13:25 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162827 ФПД: 45373563357192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132518&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162827&fm=45373563357192&tin=02508201610067®Number=0000000000090858&sum=160000 [13:25:18]StoreToDocumentArchive [13:25:18]shift 463 fd 162827 [13:25:18]save to /storage/0463/doc_00162827 [13:25:18]save last doc name /storage/0463/doc_00162827 to /storage/kkm_last_doc_name [13:25:18]save OK [13:25:18]Clear old archive folders... [13:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:25:18]tlvbuf is 0135C6E0 [13:25:18]SAM_PROTO_ClearQueue [13:25:18]wFMCommunicate request_size=4 [13:25:18]MH_SAM_APDU [13:25:18]CAPDU: 80 09 00 00 [13:25:18]Write to MH i2c: E2 08 00 87 1C 80 09 00 00 00 00 00 00 15 [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:18]Read from MH i2c: E2 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 03 00 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 03 00 87 1C 00 90 00 17 [13:25:18]RAPDU: 90 00 [13:25:18]wFMCommunicate OK [13:25:18]SAM_PROTO_ClearQueue done [13:25:18]KKMCreateOFDPacket [13:25:18]OFDProtocolAddRootSTLVToBuf [13:25:18]FM_MakeSignedData [13:25:18]FM_MakeSignedData [13:25:18]SAM_PROTO_SignData [13:25:18]wFMCommunicate request_size=4 [13:25:18]MH_SAM_APDU [13:25:18]CAPDU: 80 0D 01 02 [13:25:18]Write to MH i2c: E2 08 00 88 1C 80 0D 01 02 00 00 00 00 1D [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:18]Read from MH i2c: E2 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 03 00 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 03 00 88 1C 00 90 00 18 [13:25:18]RAPDU: 90 00 [13:25:18]wFMCommunicate OK [13:25:18]wFMCommunicate request_size=255 [13:25:18]MH_SAM_APDU [13:25:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 56 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0A 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 60 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 8B 00 00 00 F4 03 04 00 BE D1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0B 7C 02 00 35 04 06 00 [13:25:18]Write to MH i2c: E2 02 01 89 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 56 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0A 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 60 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 8B 00 00 00 F4 03 04 00 BE D1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0B 7C 02 00 35 04 06 00 00 00 58 [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:19]Read from MH i2c: E2 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 03 00 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 03 00 89 1C 00 90 00 19 [13:25:19]RAPDU: 90 00 [13:25:19]wFMCommunicate OK [13:25:19]wFMCommunicate request_size=11 [13:25:19]MH_SAM_APDU [13:25:19]CAPDU: 80 0D 02 02 06 29 44 5B 20 48 08 [13:25:19]Write to MH i2c: E2 0E 00 8A 1C 80 0D 02 02 06 00 29 44 5B 20 48 08 00 00 64 [13:25:19]Write i2c OK [13:25:19]MH_I2C_Read... [13:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:19]Read from MH i2c: E2 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 03 00 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 03 00 8A 1C 00 90 00 1A [13:25:19]RAPDU: 90 00 [13:25:19]wFMCommunicate OK [13:25:19]wFMCommunicate request_size=4 [13:25:19]MH_SAM_APDU [13:25:19]CAPDU: 80 0D 03 02 [13:25:19]Write to MH i2c: E2 08 00 8B 1C 80 0D 03 02 00 00 00 00 22 [13:25:19]Write i2c OK [13:25:19]MH_I2C_Read... [13:25:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:19]Read from MH i2c: E2 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 0B 00 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 0B 00 8B 1C 00 44 63 0B 0D C4 E0 2D 5B 90 00 0E [13:25:19]RAPDU: 44 63 0B 0D C4 E0 2D 5B 90 00 [13:25:19]wFMCommunicate OK [13:25:19]SAM_PROTO_SignData done [13:25:19]FM_MakeSignedData done [13:25:19]CreateOFDProtocolMessage [13:25:19]wFMCommunicate request_size=4 [13:25:19]MH_SAM_APDU [13:25:19]CAPDU: 80 11 00 00 [13:25:19]Write to MH i2c: E2 08 00 8C 1C 80 11 00 00 00 00 00 00 22 [13:25:19]Write i2c OK [13:25:19]MH_I2C_Read... [13:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:19]Read from MH i2c: E2 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 17 00 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: E2 17 00 8C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 82 [13:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:25:19]wFMCommunicate OK [13:25:19]CreateOFDProtocolMessage done [13:25:19]OFDSenderStorePacket 162827 [13:25:19]StoreOFDPacket docnum=162827 [13:25:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 CF 08 01 21 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 56 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0A 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 60 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 8B 00 00 00 F4 03 04 00 BE D1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0B 7C 02 00 35 04 06 00 29 44 5B 20 48 08 44 63 0B 0D C4 E0 2D 5B [13:25:19]CheckFolder [13:25:19]dirname=/storage/ofd_packets [13:25:19]CheckFolder done [13:25:19]ProducePacketName [13:25:19]name=ofd_packets/00162827 [13:25:19]NVStorageSaveData ofd_packets/00162827 [13:25:19]File name is /storage/ofd_packets/00162827 [13:25:19]Write 302 bytes [13:25:19]NVStorageSaveData done [13:25:19]OFDSenderStorePacket done [13:25:19]KKMCreateOFDPacket done [13:25:19]NVStorageSaveData kkm_last_timestamp [13:25:19]File name is /storage/kkm_last_timestamp [13:25:19]Write 4 bytes [13:25:19]NVStorageSaveData done [13:25:19]ExternCall_PrintAddStr [13:25:19]wPrintStart [13:25:19]Write to MH i2c: 01 00 00 8D 1C A9 [13:25:19]Write i2c OK [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: 01 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: 01 07 00 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: 01 07 00 8D 1C 00 00 00 00 00 FF 0F BE [13:25:19]RasterBufferAndPrint [13:25:19]line Счет N : (1)1319426 [13:25:19]line ИНН: 02508201610067 [13:25:19]line Контрольно-Кассовый Чек [13:25:19]line ПРОДАЖА [13:25:19]line ТРК (МРК, ГНК) : 21 [13:25:19]line Товар: 2710194210 [13:25:19]line ДТ(л)-К-5 [13:25:19]line 22.040 * 72.60 [13:25:19]line = 1600.10 [13:25:19]line НДС 12% НСП 1% [13:25:19]line > о реализуемом товаре [13:25:19]line ОКРУГЛЕНИЕ: -0.10 [13:25:19]line ИТОГО: 1600.00 [13:25:19]line Внесено: 1600.00 [13:25:19]line СДАЧА: 0.00 [13:25:19]line НСП 1% : 14.16 [13:25:19]line НДС 12% : 169.92 [13:25:19]line Наличными: 1600.00 [13:25:19]line Безнал.: 0.00 [13:25:19]line Место: АЗС № 140 "Партнер Нефть" [13:25:19]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:25:19]line СНО: Общий режим [13:25:19]line Чек 139 14.07.2024 13:25 [13:25:19]line Смена: 463 ФФД: 1.0 [13:25:19]line ЗНМ: 0300000129 [13:25:19]line РНМ: 0000000000090858 [13:25:19]line Версия ККМ: 001 [13:25:19]line ФМ: 0000000000874899 [13:25:19]line ФД: 162827 [13:25:19]line ФПД: 45373563357192 [13:25:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132518&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162827&fm=45373563357192&tin=02508201610067®Number=0000000000090858&sum=160000 [13:25:19]written 0, free lines is 4095 [13:25:19]OFD Sender: Processing packet 162827 [packets to send 106, broken 105] [13:25:19]ProducePacketName [13:25:19]name=ofd_packets/00162827 [13:25:19]OFD Sender: To server: pG, [13:25:19]CommunicateWithHost lk.salyk.kg:30040 [13:25:19]ConnectInit lk.salyk.kg [13:25:19]Connected sock=10 [13:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 CF 08 01 21 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 56 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0A 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 60 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 8B 00 00 00 F4 03 04 00 BE D1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0B 7C 02 00 35 04 06 00 29 44 5B 20 48 08 44 63 0B 0D C4 E0 2D 5B [13:25:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3C DD 47 00 51 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0B 7C 02 00 F4 03 04 00 CC 7D 93 66 B6 04 01 00 00 BF 23 9D F7 C9 60 D1 0C [13:25:19]CommunicateWithHost err = 0 [13:25:19]CheckOFDResponse [13:25:19]1017 (14) - 77093643461234 [13:25:19]1041 (16) - 0000000000874899 [13:25:19]1040 (4) - 162827 [13:25:19]1012 (4) - 14.07.2024 07:27 [13:25:19]1206 (1) - 0 [13:25:19]OFD Sender: Remove packet 162827 [13:25:19]ProducePacketName [13:25:19]name=ofd_packets/00162827 [13:25:19]NVStorageDeleteData [13:25:19]Write to MH i2c: 01 00 00 B8 1C D4 [13:25:19]Write i2c OK [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: 01 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: 01 07 00 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: 01 07 00 B8 1C 00 00 00 00 00 F7 0C DE [13:25:19]RasterBufferAndPrint [13:25:19]line [13:25:19]line [13:25:19]line [13:25:19]line [13:25:19]line [13:25:19]written 0, free lines is 3328 [13:25:19]MH_Cut [13:25:19]Write to MH i2c: D1 01 00 BF 1C 01 AD [13:25:19]Write i2c OK [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: D1 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: D1 01 00 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: D1 01 00 BF 1C 00 AC [13:25:19]Write to MH i2c: 01 00 00 C0 1C DC [13:25:19]Write i2c OK [13:25:19]MH_I2C_Read... [13:25:20]OFD Sender: No OFD packet to send [13:25:20]*** Cut start [13:25:20]*** Purtial cut [13:25:20]*** Stage 1: CUTSNS_PIN = 1 [13:25:20]Read from MH i2c: 01 [13:25:20]MH_I2C_Read... [13:25:20]*** Stop cut motor [13:25:20]*** Cut end [13:25:20]Read from MH i2c: 01 07 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: 01 07 00 C0 1C 00 00 00 00 00 FF 0F F1 [13:25:20]process_action close_receipt done [13:25:20]requested_data is exist [13:25:20]produce_requested_data [13:25:20]requested_item fm.sn is exist - process it [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 11 00 00 [13:25:20]Write to MH i2c: E2 08 00 C1 1C 80 11 00 00 00 00 00 00 57 [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 17 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 17 00 C1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B7 [13:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:25:20]wFMCommunicate OK [13:25:20]requested_item fd.num is exist - process it [13:25:20]SAM_PROTO_GetFieldsCounters [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 13 00 00 [13:25:20]Write to MH i2c: E2 08 00 C2 1C 80 13 00 00 00 00 00 00 5A [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 62 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 62 00 C2 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0B 7C 02 00 0E 04 04 00 CF 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 87 [13:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0B 7C 02 00 0E 04 04 00 CF 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 [13:25:20]wFMCommunicate OK [13:25:20]SAM_PROTO_GetFieldsCounters done [13:25:20]requested_item shift.num is exist - process it [13:25:20]requested_item shift.opened is exist - process it [13:25:20]req_shift_opened [13:25:20]FM_GetShiftState [13:25:20]SAM_PROTO_GetShiftState [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 13 01 00 [13:25:20]Write to MH i2c: E2 08 00 C3 1C 80 13 01 00 00 00 00 00 5C [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 0E 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 0E 00 C3 1C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 92 [13:25:20]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:25:20]wFMCommunicate OK [13:25:20]SAM_PROTO_GetShiftState done [13:25:20]FM_GetShiftState done [13:25:20]req_shift_opened done [13:25:20]requested_item shift.open_date is exist - process it [13:25:20]req_shift_open_date [13:25:20]req_shift_open_date done [13:25:20]produce_requested_data done [13:25:20]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162827,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:25:20]process_action_free close_receipt [13:25:20]json_value_free [13:25:20]json_value_free done [13:25:20]process_json_proto returns [13:25:20]Send response to host [13:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162827,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:25:20]free response buf [13:25:20]execute_script done [13:25:20]execute_script returns [13:25:20]free content buf [13:25:20]Sock 9.Close socket [13:25:20]Sock 9.Thread stoped [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:09]accept exits with 7 [13:26:09]New connection [13:26:09]New thread 3066879332 created [13:26:09]Thread 3066735972 joined [13:26:09]Waiting for new connection... [13:26:09] Sock 7.Parse request [13:26:09]Sock 7.Check first char [13:26:09]Sock 7.First char is OK [13:26:09]request: POST /json_proto HTTP/1.0 [13:26:09]Method: POST [13:26:09]URL: /json_proto [13:26:09]Method is POST - this is cgi request [13:26:09]url: /json_proto [13:26:09]query_string will be loaded in cgi processing [13:26:09]execute_cgi json_proto POST (null) [13:26:09]execute_cgi path=json_proto method=POST [13:26:09]POST find Content-Length [13:26:09]Host: 172.17.39.67:8080 [13:26:09]Content-Length: 678 [13:26:09]Content-Type: application/json [13:26:09] [13:26:09]POST finish read [13:26:09]Found Content-Length = 678 [13:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:26:09]execute_script... [13:26:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:26:09]POST & json_proto [13:26:09]process_json_proto [13:26:09]json parsed OK: [13:26:09]protocol is kg_v1.0 [13:26:09]action value=close_receipt [13:26:09]process_action close_receipt [13:26:09]cmd_close_receipt [13:26:09]MH_GetDate [13:26:09]Write to MH i2c: F0 00 00 C4 1C CF [13:26:09]Write i2c OK [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: F0 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: F0 09 00 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: F0 09 00 C4 1C 00 F2 D1 93 66 B6 85 93 66 C8 [13:26:09]GetLastDocTimeStamp 1720963518 [13:26:09]current date 1720963570 [13:26:09]FM_GetShiftState [13:26:09]SAM_PROTO_GetShiftState [13:26:09]wFMCommunicate request_size=4 [13:26:09]MH_SAM_APDU [13:26:09]CAPDU: 80 13 01 00 [13:26:09]Write to MH i2c: E2 08 00 C5 1C 80 13 01 00 00 00 00 00 5E [13:26:09]Write i2c OK [13:26:09]MH_I2C_Read... [13:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:09]Read from MH i2c: E2 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: E2 0E 00 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: E2 0E 00 C5 1C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 94 [13:26:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:26:09]wFMCommunicate OK [13:26:09]SAM_PROTO_GetShiftState done [13:26:09]FM_GetShiftState done [13:26:09]opened in 1720915483 [13:26:09]opened+sec_in_day 1721001883 [13:26:09]quantity*price = 50056 [13:26:09]sum+1 = 50058 [13:26:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 140 14.07.2024 13:26 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162828 ФПД: 210964114584374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132610&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162828&fm=210964114584374&tin=02508201610067®Number=0000000000090858&sum=50000 [13:26:10]StoreToDocumentArchive [13:26:10]shift 463 fd 162828 [13:26:10]save to /storage/0463/doc_00162828 [13:26:10]save last doc name /storage/0463/doc_00162828 to /storage/kkm_last_doc_name [13:26:10]save OK [13:26:10]Clear old archive folders... [13:26:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:10]tlvbuf is 012063F0 [13:26:10]SAM_PROTO_ClearQueue [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 09 00 00 [13:26:10]Write to MH i2c: E2 08 00 D2 1C 80 09 00 00 00 00 00 00 60 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 D2 1C 00 90 00 62 [13:26:10]RAPDU: 90 00 [13:26:10]wFMCommunicate OK [13:26:10]SAM_PROTO_ClearQueue done [13:26:10]KKMCreateOFDPacket [13:26:10]OFDProtocolAddRootSTLVToBuf [13:26:10]FM_MakeSignedData [13:26:10]FM_MakeSignedData [13:26:10]SAM_PROTO_SignData [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 0D 01 02 [13:26:10]Write to MH i2c: E2 08 00 D3 1C 80 0D 01 02 00 00 00 00 68 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 D3 1C 00 90 00 63 [13:26:10]RAPDU: 90 00 [13:26:10]wFMCommunicate OK [13:26:10]wFMCommunicate request_size=255 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 8C 00 00 00 F4 03 04 00 F2 D1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0C 7C 02 00 35 04 06 00 BF [13:26:10]Write to MH i2c: E2 02 01 D4 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 8C 00 00 00 F4 03 04 00 F2 D1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0C 7C 02 00 35 04 06 00 BF 00 00 85 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 D4 1C 00 90 00 64 [13:26:10]RAPDU: 90 00 [13:26:10]wFMCommunicate OK [13:26:10]wFMCommunicate request_size=10 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 0D 02 02 05 DE E9 1C 33 36 [13:26:10]Write to MH i2c: E2 0D 00 D5 1C 80 0D 02 02 05 00 DE E9 1C 33 36 00 00 C1 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 D5 1C 00 90 00 65 [13:26:10]RAPDU: 90 00 [13:26:10]wFMCommunicate OK [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 0D 03 02 [13:26:10]Write to MH i2c: E2 08 00 D6 1C 80 0D 03 02 00 00 00 00 6D [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 0B 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 0B 00 D6 1C 00 4F B8 65 BB BD 6C 1D 21 90 00 FC [13:26:10]RAPDU: 4F B8 65 BB BD 6C 1D 21 90 00 [13:26:10]wFMCommunicate OK [13:26:10]SAM_PROTO_SignData done [13:26:10]FM_MakeSignedData done [13:26:10]CreateOFDProtocolMessage [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 11 00 00 [13:26:10]Write to MH i2c: E2 08 00 D7 1C 80 11 00 00 00 00 00 00 6D [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 17 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 17 00 D7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CD [13:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:26:11]wFMCommunicate OK [13:26:11]CreateOFDProtocolMessage done [13:26:11]OFDSenderStorePacket 162828 [13:26:11]StoreOFDPacket docnum=162828 [13:26:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A8 25 07 01 11 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 8C 00 00 00 F4 03 04 00 F2 D1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0C 7C 02 00 35 04 06 00 BF DE E9 1C 33 36 4F B8 65 BB BD 6C 1D 21 [13:26:11]CheckFolder [13:26:11]dirname=/storage/ofd_packets [13:26:11]CheckFolder done [13:26:11]ProducePacketName [13:26:11]name=ofd_packets/00162828 [13:26:11]NVStorageSaveData ofd_packets/00162828 [13:26:11]File name is /storage/ofd_packets/00162828 [13:26:11]Write 301 bytes [13:26:11]NVStorageSaveData done [13:26:11]OFDSenderStorePacket done [13:26:11]KKMCreateOFDPacket done [13:26:11]NVStorageSaveData kkm_last_timestamp [13:26:11]File name is /storage/kkm_last_timestamp [13:26:11]Write 4 bytes [13:26:11]NVStorageSaveData done [13:26:11]ExternCall_PrintAddStr [13:26:11]wPrintStart [13:26:11]Write to MH i2c: 01 00 00 D8 1C F4 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 07 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 07 00 D8 1C 00 00 00 00 00 FF 0F 09 [13:26:11]RasterBufferAndPrint [13:26:11]line Счет N : (1)1319428 [13:26:11]line ИНН: 02508201610067 [13:26:11]line Контрольно-Кассовый Чек [13:26:11]line ПРОДАЖА [13:26:11]line ТРК (МРК, ГНК) : 43 [13:26:11]line Товар: 2710124130 [13:26:11]line Аи-92-К-5 [13:26:11]line 7.550 * 66.30 [13:26:11]line = 500.57 [13:26:11]line НДС 12% НСП 1% [13:26:11]line > о реализуемом товаре [13:26:11]line ОКРУГЛЕНИЕ: -0.57 [13:26:11]line ИТОГО: 500.00 [13:26:11]line Внесено: 500.00 [13:26:11]line СДАЧА: 0.00 [13:26:11]line НСП 1% : 4.43 [13:26:11]line НДС 12% : 53.16 [13:26:11]line Наличными: 500.00 [13:26:11]line Безнал.: 0.00 [13:26:11]line Место: АЗС № 140 "Партнер Нефть" [13:26:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:26:11]line СНО: Общий режим [13:26:11]line Чек 140 14.07.2024 13:26 [13:26:11]line Смена: 463 ФФД: 1.0 [13:26:11]line ЗНМ: 0300000129 [13:26:11]line РНМ: 0000000000090858 [13:26:11]line Версия ККМ: 001 [13:26:11]line ФМ: 0000000000874899 [13:26:11]line ФД: 162828 [13:26:11]line ФПД: 210964114584374 [13:26:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132610&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162828&fm=210964114584374&tin=02508201610067®Number=0000000000090858&sum=50000 [13:26:11]OFD Sender: Processing packet 162828 [packets to send 106, broken 105] [13:26:11]ProducePacketName [13:26:11]name=ofd_packets/00162828 [13:26:11]OFD Sender: To server: pG, [13:26:11]CommunicateWithHost lk.salyk.kg:30040 [13:26:11]ConnectInit lk.salyk.kg [13:26:11]written 0, free lines is 4095 [13:26:11]Connected sock=10 [13:26:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A8 25 07 01 11 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 8C 00 00 00 F4 03 04 00 F2 D1 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0C 7C 02 00 35 04 06 00 BF DE E9 1C 33 36 4F B8 65 BB BD 6C 1D 21 [13:26:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 06 BB 47 00 E6 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0C 7C 02 00 F4 03 04 00 00 7E 93 66 B6 04 01 00 00 C9 ED 25 0D B8 CB 02 38 [13:26:11]CommunicateWithHost err = 0 [13:26:11]CheckOFDResponse [13:26:11]1017 (14) - 77093643461234 [13:26:11]1041 (16) - 0000000000874899 [13:26:11]1040 (4) - 162828 [13:26:11]1012 (4) - 14.07.2024 07:28 [13:26:11]1206 (1) - 0 [13:26:11]OFD Sender: Remove packet 162828 [13:26:11]ProducePacketName [13:26:11]name=ofd_packets/00162828 [13:26:11]NVStorageDeleteData [13:26:11]Write to MH i2c: 01 00 00 03 1D 20 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 07 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 07 00 03 1D 00 00 00 00 00 EE 0C 21 [13:26:11]RasterBufferAndPrint [13:26:11]line [13:26:11]line [13:26:11]line [13:26:11]line [13:26:11]line [13:26:11]written 0, free lines is 3319 [13:26:11]MH_Cut [13:26:11]Write to MH i2c: D1 01 00 0A 1D 01 F9 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: D1 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: D1 01 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: D1 01 00 0A 1D 00 F8 [13:26:11]Write to MH i2c: 01 00 00 0B 1D 28 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:12]OFD Sender: No OFD packet to send [13:26:12]*** Cut start [13:26:12]*** Purtial cut [13:26:12]*** CUTSNS_PIN = 0 [13:26:12]*** Stage 1: CUTSNS_PIN = 1 [13:26:14]Read from MH i2c: 01 [13:26:14]MH_I2C_Read... [13:26:14]*** Stop cut motor [13:26:14]*** Cut end [13:26:14]Read from MH i2c: 01 07 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: 01 07 00 0B 1D 00 00 00 00 00 FF 0F 3D [13:26:14]process_action close_receipt done [13:26:14]requested_data is exist [13:26:14]produce_requested_data [13:26:14]requested_item fm.sn is exist - process it [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 11 00 00 [13:26:14]Write to MH i2c: E2 08 00 0C 1D 80 11 00 00 00 00 00 00 A3 [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 17 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 17 00 0C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 03 [13:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:26:14]wFMCommunicate OK [13:26:14]requested_item fd.num is exist - process it [13:26:14]SAM_PROTO_GetFieldsCounters [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 13 00 00 [13:26:14]Write to MH i2c: E2 08 00 0D 1D 80 13 00 00 00 00 00 00 A6 [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 62 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 62 00 0D 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0C 7C 02 00 0E 04 04 00 CF 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 D7 [13:26:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0C 7C 02 00 0E 04 04 00 CF 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 [13:26:14]wFMCommunicate OK [13:26:14]SAM_PROTO_GetFieldsCounters done [13:26:14]requested_item shift.num is exist - process it [13:26:14]requested_item shift.opened is exist - process it [13:26:14]req_shift_opened [13:26:14]FM_GetShiftState [13:26:14]SAM_PROTO_GetShiftState [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 13 01 00 [13:26:14]Write to MH i2c: E2 08 00 0E 1D 80 13 01 00 00 00 00 00 A8 [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 0E 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 0E 00 0E 1D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 DE [13:26:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:26:14]wFMCommunicate OK [13:26:14]SAM_PROTO_GetShiftState done [13:26:14]FM_GetShiftState done [13:26:14]req_shift_opened done [13:26:14]requested_item shift.open_date is exist - process it [13:26:14]req_shift_open_date [13:26:14]req_shift_open_date done [13:26:14]produce_requested_data done [13:26:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162828,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:26:14]process_action_free close_receipt [13:26:14]json_value_free [13:26:14]json_value_free done [13:26:14]process_json_proto returns [13:26:14]Send response to host [13:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162828,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:26:14]free response buf [13:26:14]execute_script done [13:26:14]execute_script returns [13:26:14]free content buf [13:26:14]Sock 7.Close socket [13:26:14]Sock 7.Thread stoped [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:31]accept exits with 9 [13:26:31]New connection [13:26:31]New thread 3066735972 created [13:26:31]Thread 3066879332 joined [13:26:31]Waiting for new connection... [13:26:31] Sock 9.Parse request [13:26:31]Sock 9.Check first char [13:26:31]Sock 9.First char is OK [13:26:31]request: POST /json_proto HTTP/1.0 [13:26:31]Method: POST [13:26:31]URL: /json_proto [13:26:31]Method is POST - this is cgi request [13:26:31]url: /json_proto [13:26:31]query_string will be loaded in cgi processing [13:26:31]execute_cgi json_proto POST (null) [13:26:31]execute_cgi path=json_proto method=POST [13:26:31]POST find Content-Length [13:26:31]Host: 172.17.39.67:8080 [13:26:31]Content-Length: 672 [13:26:31]Content-Type: application/json [13:26:31] [13:26:31]POST finish read [13:26:31]Found Content-Length = 672 [13:26:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 13.080, "sum" : 880.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 880.00, "total" : 880.00, "payments": [ { "type": 0, "sum" : 880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:31]execute_script... [13:26: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)1319427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 13.080, "sum" : 880.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 880.00, "total" : 880.00, "payments": [ { "type": 0, "sum" : 880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:31]POST & json_proto [13:26:31]process_json_proto [13:26:31]json parsed OK: [13:26:31]protocol is kg_v1.0 [13:26:31]action value=close_receipt [13:26:31]process_action close_receipt [13:26:31]cmd_close_receipt [13:26:31]MH_GetDate [13:26:31]Write to MH i2c: F0 00 00 0F 1D 1B [13:26:31]Write i2c OK [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: F0 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: F0 09 00 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: F0 09 00 0F 1D 00 08 D2 93 66 B6 85 93 66 2B [13:26:31]GetLastDocTimeStamp 1720963570 [13:26:31]current date 1720963592 [13:26:31]FM_GetShiftState [13:26:31]SAM_PROTO_GetShiftState [13:26:31]wFMCommunicate request_size=4 [13:26:31]MH_SAM_APDU [13:26:31]CAPDU: 80 13 01 00 [13:26:31]Write to MH i2c: E2 08 00 10 1D 80 13 01 00 00 00 00 00 AA [13:26:31]Write i2c OK [13:26:31]MH_I2C_Read... [13:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:31]Read from MH i2c: E2 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 0E 00 [13:26:31]MH_I2C_Read... [13:26:31]Read from MH i2c: E2 0E 00 10 1D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E0 [13:26:31]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:26:31]wFMCommunicate OK [13:26:31]SAM_PROTO_GetShiftState done [13:26:31]FM_GetShiftState done [13:26:31]opened in 1720915483 [13:26:31]opened+sec_in_day 1721001883 [13:26:31]quantity*price = 88028 [13:26:31]sum+1 = 88029 [13:26:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 880.00 Внесено: 880.00 СДАЧА: 0.00 НСП 1% : 7.79 НДС 12% : 93.48 Наличными: 880.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 141 14.07.2024 13:26 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162829 ФПД: 54440870419618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132632&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162829&fm=54440870419618&tin=02508201610067®Number=0000000000090858&sum=88000 [13:26:32]StoreToDocumentArchive [13:26:32]shift 463 fd 162829 [13:26:32]save to /storage/0463/doc_00162829 [13:26:32]save last doc name /storage/0463/doc_00162829 to /storage/kkm_last_doc_name [13:26:32]save OK [13:26:32]Clear old archive folders... [13:26:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:26:32]tlvbuf is 01316A30 [13:26:32]SAM_PROTO_ClearQueue [13:26:32]wFMCommunicate request_size=4 [13:26:32]MH_SAM_APDU [13:26:32]CAPDU: 80 09 00 00 [13:26:32]Write to MH i2c: E2 08 00 1D 1D 80 09 00 00 00 00 00 00 AC [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:32]Read from MH i2c: E2 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 1D 1D 00 90 00 AE [13:26:32]RAPDU: 90 00 [13:26:32]wFMCommunicate OK [13:26:32]SAM_PROTO_ClearQueue done [13:26:32]KKMCreateOFDPacket [13:26:32]OFDProtocolAddRootSTLVToBuf [13:26:32]FM_MakeSignedData [13:26:32]FM_MakeSignedData [13:26:32]SAM_PROTO_SignData [13:26:32]wFMCommunicate request_size=4 [13:26:32]MH_SAM_APDU [13:26:32]CAPDU: 80 0D 01 02 [13:26:32]Write to MH i2c: E2 08 00 1E 1D 80 0D 01 02 00 00 00 00 B4 [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:32]Read from MH i2c: E2 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 1E 1D 00 90 00 AF [13:26:32]RAPDU: 90 00 [13:26:32]wFMCommunicate OK [13:26:32]wFMCommunicate request_size=255 [13:26:32]MH_SAM_APDU [13:26:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 33 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 DC 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 08 D2 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0D 7C 02 00 35 04 06 00 [13:26:32]Write to MH i2c: E2 02 01 1F 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 33 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 DC 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 08 D2 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0D 7C 02 00 35 04 06 00 00 00 7E [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:32]Read from MH i2c: E2 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 1F 1D 00 90 00 B0 [13:26:32]RAPDU: 90 00 [13:26:32]wFMCommunicate OK [13:26:32]wFMCommunicate request_size=11 [13:26:32]MH_SAM_APDU [13:26:32]CAPDU: 80 0D 02 02 06 31 83 80 BE 1C A2 [13:26:32]Write to MH i2c: E2 0E 00 20 1D 80 0D 02 02 06 00 31 83 80 BE 1C A2 00 00 73 [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:32]Read from MH i2c: E2 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 [13:26:32]MH_I2C_Read... [13:26:32]Read from MH i2c: E2 03 00 20 1D 00 90 00 B1 [13:26:32]RAPDU: 90 00 [13:26:32]wFMCommunicate OK [13:26:32]wFMCommunicate request_size=4 [13:26:32]MH_SAM_APDU [13:26:32]CAPDU: 80 0D 03 02 [13:26:32]Write to MH i2c: E2 08 00 21 1D 80 0D 03 02 00 00 00 00 B9 [13:26:32]Write i2c OK [13:26:32]MH_I2C_Read... [13:26:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:33]Read from MH i2c: E2 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 0B 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 0B 00 21 1D 00 66 7F 9E 43 2F 62 4D 4D 90 00 AB [13:26:33]RAPDU: 66 7F 9E 43 2F 62 4D 4D 90 00 [13:26:33]wFMCommunicate OK [13:26:33]SAM_PROTO_SignData done [13:26:33]FM_MakeSignedData done [13:26:33]CreateOFDProtocolMessage [13:26:33]wFMCommunicate request_size=4 [13:26:33]MH_SAM_APDU [13:26:33]CAPDU: 80 11 00 00 [13:26:33]Write to MH i2c: E2 08 00 22 1D 80 11 00 00 00 00 00 00 B9 [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:33]Read from MH i2c: E2 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 17 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: E2 17 00 22 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 19 [13:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:26:33]wFMCommunicate OK [13:26:33]CreateOFDProtocolMessage done [13:26:33]OFDSenderStorePacket 162829 [13:26:33]StoreOFDPacket docnum=162829 [13:26:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AA B5 08 01 2C DD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 33 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 DC 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 08 D2 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0D 7C 02 00 35 04 06 00 31 83 80 BE 1C A2 66 7F 9E 43 2F 62 4D 4D [13:26:33]CheckFolder [13:26:33]dirname=/storage/ofd_packets [13:26:33]CheckFolder done [13:26:33]ProducePacketName [13:26:33]name=ofd_packets/00162829 [13:26:33]NVStorageSaveData ofd_packets/00162829 [13:26:33]File name is /storage/ofd_packets/00162829 [13:26:33]Write 302 bytes [13:26:33]NVStorageSaveData done [13:26:33]OFDSenderStorePacket done [13:26:33]KKMCreateOFDPacket done [13:26:33]NVStorageSaveData kkm_last_timestamp [13:26:33]File name is /storage/kkm_last_timestamp [13:26:33]Write 4 bytes [13:26:33]NVStorageSaveData done [13:26:33]ExternCall_PrintAddStr [13:26:33]wPrintStart [13:26:33]Write to MH i2c: 01 00 00 23 1D 40 [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: 01 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: 01 07 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: 01 07 00 23 1D 00 00 00 00 00 FF 0F 55 [13:26:33]RasterBufferAndPrint [13:26:33]line Счет N : (1)1319427 [13:26:33]line ИНН: 02508201610067 [13:26:33]line Контрольно-Кассовый Чек [13:26:33]line ПРОДАЖА [13:26:33]line ТРК (МРК, ГНК) : 62 [13:26:33]line Товар: 2710124130 [13:26:33]line Super-92-К-5 [13:26:33]line 13.080 * 67.30 [13:26:33]line = 880.28 [13:26:33]line НДС 12% НСП 1% [13:26:33]line > о реализуемом товаре [13:26:33]line ОКРУГЛЕНИЕ: -0.28 [13:26:33]line ИТОГО: 880.00 [13:26:33]line Внесено: 880.00 [13:26:33]line СДАЧА: 0.00 [13:26:33]line НСП 1% : 7.79 [13:26:33]line НДС 12% : 93.48 [13:26:33]line Наличными: 880.00 [13:26:33]line Безнал.: 0.00 [13:26:33]line Место: АЗС № 140 "Партнер Нефть" [13:26:33]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:26:33]line СНО: Общий режим [13:26:33]line Чек 141 14.07.2024 13:26 [13:26:33]line Смена: 463 ФФД: 1.0 [13:26:33]line ЗНМ: 0300000129 [13:26:33]line РНМ: 0000000000090858 [13:26:33]line Версия ККМ: 001 [13:26:33]line ФМ: 0000000000874899 [13:26:33]line ФД: 162829 [13:26:33]line ФПД: 54440870419618 [13:26:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T132632&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162829&fm=54440870419618&tin=02508201610067®Number=0000000000090858&sum=88000 [13:26:33]OFD Sender: Processing packet 162829 [packets to send 106, broken 105] [13:26:33]ProducePacketName [13:26:33]name=ofd_packets/00162829 [13:26:33]OFD Sender: To server: pG, [13:26:33]CommunicateWithHost lk.salyk.kg:30040 [13:26:33]ConnectInit lk.salyk.kg [13:26:33]written 0, free lines is 4095 [13:26:33]Connected sock=10 [13:26:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AA B5 08 01 2C DD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 33 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 DC 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 08 D2 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0D 7C 02 00 35 04 06 00 31 83 80 BE 1C A2 66 7F 9E 43 2F 62 4D 4D [13:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 53 F6 47 00 12 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0D 7C 02 00 F4 03 04 00 16 7E 93 66 B6 04 01 00 00 CF 15 B7 FF 8B FB F6 84 [13:26:33]CommunicateWithHost err = 0 [13:26:33]CheckOFDResponse [13:26:33]1017 (14) - 77093643461234 [13:26:33]1041 (16) - 0000000000874899 [13:26:33]1040 (4) - 162829 [13:26:33]1012 (4) - 14.07.2024 07:28 [13:26:33]1206 (1) - 0 [13:26:33]OFD Sender: Remove packet 162829 [13:26:33]ProducePacketName [13:26:33]name=ofd_packets/00162829 [13:26:33]NVStorageDeleteData [13:26:33]Write to MH i2c: 01 00 00 4E 1D 6B [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: 01 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: 01 07 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: 01 07 00 4E 1D 00 00 00 00 00 F9 0C 77 [13:26:33]RasterBufferAndPrint [13:26:33]line [13:26:33]line [13:26:33]line [13:26:33]line [13:26:33]line [13:26:33]written 0, free lines is 3327 [13:26:33]MH_Cut [13:26:33]Write to MH i2c: D1 01 00 55 1D 01 44 [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: D1 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: D1 01 00 [13:26:33]MH_I2C_Read... [13:26:33]Read from MH i2c: D1 01 00 55 1D 00 43 [13:26:33]Write to MH i2c: 01 00 00 56 1D 73 [13:26:33]Write i2c OK [13:26:33]MH_I2C_Read... [13:26:34]OFD Sender: No OFD packet to send [13:26:34]*** Cut start [13:26:34]*** Purtial cut [13:26:34]*** Stage 1: CUTSNS_PIN = 1 [13:26:34]Read from MH i2c: 01 [13:26:34]MH_I2C_Read... [13:26:34]*** Stop cut motor [13:26:34]*** Cut end [13:26:34]Read from MH i2c: 01 07 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: 01 07 00 56 1D 00 00 00 00 00 FF 0F 88 [13:26:34]process_action close_receipt done [13:26:34]requested_data is exist [13:26:34]produce_requested_data [13:26:34]requested_item fm.sn is exist - process it [13:26:34]wFMCommunicate request_size=4 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 11 00 00 [13:26:34]Write to MH i2c: E2 08 00 57 1D 80 11 00 00 00 00 00 00 EE [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:34]Read from MH i2c: E2 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 17 00 [13:26:34]MH_I2C_Read... [13:26:34]Read from MH i2c: E2 17 00 57 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4E [13:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:26:34]wFMCommunicate OK [13:26:34]requested_item fd.num is exist - process it [13:26:34]SAM_PROTO_GetFieldsCounters [13:26:34]wFMCommunicate request_size=4 [13:26:34]MH_SAM_APDU [13:26:34]CAPDU: 80 13 00 00 [13:26:34]Write to MH i2c: E2 08 00 58 1D 80 13 00 00 00 00 00 00 F1 [13:26:34]Write i2c OK [13:26:34]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 62 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 62 00 58 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0D 7C 02 00 0E 04 04 00 CF 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 26 [13:26:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0D 7C 02 00 0E 04 04 00 CF 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 [13:26:35]wFMCommunicate OK [13:26:35]SAM_PROTO_GetFieldsCounters done [13:26:35]requested_item shift.num is exist - process it [13:26:35]requested_item shift.opened is exist - process it [13:26:35]req_shift_opened [13:26:35]FM_GetShiftState [13:26:35]SAM_PROTO_GetShiftState [13:26:35]wFMCommunicate request_size=4 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 13 01 00 [13:26:35]Write to MH i2c: E2 08 00 59 1D 80 13 01 00 00 00 00 00 F3 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 0E 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 0E 00 59 1D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 29 [13:26:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:26:35]wFMCommunicate OK [13:26:35]SAM_PROTO_GetShiftState done [13:26:35]FM_GetShiftState done [13:26:35]req_shift_opened done [13:26:35]requested_item shift.open_date is exist - process it [13:26:35]req_shift_open_date [13:26:35]req_shift_open_date done [13:26:35]produce_requested_data done [13:26:35]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162829,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:26:35]process_action_free close_receipt [13:26:35]json_value_free [13:26:35]json_value_free done [13:26:35]process_json_proto returns [13:26:35]Send response to host [13:26:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162829,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:26:35]free response buf [13:26:35]execute_script done [13:26:35]execute_script returns [13:26:35]free content buf [13:26:35]Sock 9.Close socket [13:26:35]Sock 9.Thread stoped [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:37]accept exits with 7 [13:30:37]New connection [13:30:37]New thread 3066879332 created [13:30:37]Thread 3066735972 joined [13:30:37]Waiting for new connection... [13:30:37] Sock 7.Parse request [13:30:37]Sock 7.Check first char [13:30:37]Sock 7.First char is OK [13:30:37]request: POST /json_proto HTTP/1.0 [13:30:37]Method: POST [13:30:37]URL: /json_proto [13:30:37]Method is POST - this is cgi request [13:30:37]url: /json_proto [13:30:37]query_string will be loaded in cgi processing [13:30:37]execute_cgi json_proto POST (null) [13:30:37]execute_cgi path=json_proto method=POST [13:30:37]POST find Content-Length [13:30:37]Host: 172.17.39.67:8080 [13:30:37]Content-Length: 684 [13:30:37]Content-Type: application/json [13:30:37] [13:30:37]POST finish read [13:30:37]Found Content-Length = 684 [13:30:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.200, "sum" : 740.52, "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" ] } } [13:30:37]execute_script... [13: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)1319429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.200, "sum" : 740.52, "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" ] } } [13:30:37]POST & json_proto [13:30:37]process_json_proto [13:30:37]json parsed OK: [13:30:37]protocol is kg_v1.0 [13:30:37]action value=close_receipt [13:30:37]process_action close_receipt [13:30:37]cmd_close_receipt [13:30:37]MH_GetDate [13:30:37]Write to MH i2c: F0 00 00 5A 1D 66 [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: F0 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: F0 09 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: F0 09 00 5A 1D 00 FE D2 93 66 B6 85 93 66 6C [13:30:37]GetLastDocTimeStamp 1720963592 [13:30:37]current date 1720963838 [13:30:37]FM_GetShiftState [13:30:37]SAM_PROTO_GetShiftState [13:30:37]wFMCommunicate request_size=4 [13:30:37]MH_SAM_APDU [13:30:37]CAPDU: 80 13 01 00 [13:30:37]Write to MH i2c: E2 08 00 5B 1D 80 13 01 00 00 00 00 00 F5 [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:37]Read from MH i2c: E2 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 0E 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 0E 00 5B 1D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2B [13:30:37]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:30:37]wFMCommunicate OK [13:30:37]SAM_PROTO_GetShiftState done [13:30:37]FM_GetShiftState done [13:30:37]opened in 1720915483 [13:30:37]opened+sec_in_day 1721001883 [13:30:37]quantity*price = 74052 [13:30:37]sum+1 = 74053 [13:30:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.64 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 142 14.07.2024 13:30 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162830 ФПД: 114674417125763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133038&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162830&fm=114674417125763&tin=02508201610067®Number=0000000000090858&sum=74000 [13:30:38]StoreToDocumentArchive [13:30:38]shift 463 fd 162830 [13:30:38]save to /storage/0463/doc_00162830 [13:30:38]save last doc name /storage/0463/doc_00162830 to /storage/kkm_last_doc_name [13:30:38]save OK [13:30:38]Clear old archive folders... [13:30:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:30:38]tlvbuf is 01345C00 [13:30:38]SAM_PROTO_ClearQueue [13:30:38]wFMCommunicate request_size=4 [13:30:38]MH_SAM_APDU [13:30:38]CAPDU: 80 09 00 00 [13:30:38]Write to MH i2c: E2 08 00 68 1D 80 09 00 00 00 00 00 00 F7 [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:38]Read from MH i2c: E2 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 03 00 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 03 00 68 1D 00 90 00 F9 [13:30:38]RAPDU: 90 00 [13:30:38]wFMCommunicate OK [13:30:38]SAM_PROTO_ClearQueue done [13:30:38]KKMCreateOFDPacket [13:30:38]OFDProtocolAddRootSTLVToBuf [13:30:38]FM_MakeSignedData [13:30:38]FM_MakeSignedData [13:30:38]SAM_PROTO_SignData [13:30:38]wFMCommunicate request_size=4 [13:30:38]MH_SAM_APDU [13:30:38]CAPDU: 80 0D 01 02 [13:30:38]Write to MH i2c: E2 08 00 69 1D 80 0D 01 02 00 00 00 00 FF [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:38]Read from MH i2c: E2 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 03 00 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 03 00 69 1D 00 90 00 FA [13:30:38]RAPDU: 90 00 [13:30:38]wFMCommunicate OK [13:30:38]wFMCommunicate request_size=255 [13:30:38]MH_SAM_APDU [13:30:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D8 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 44 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 B8 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 8E 00 00 00 F4 03 04 00 FE D2 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0E 7C 02 00 35 04 06 00 [13:30:38]Write to MH i2c: E2 02 01 6A 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D8 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 44 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 B8 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 8E 00 00 00 F4 03 04 00 FE D2 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0E 7C 02 00 35 04 06 00 00 00 B1 [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:38]Read from MH i2c: E2 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 03 00 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 03 00 6A 1D 00 90 00 FB [13:30:38]RAPDU: 90 00 [13:30:38]wFMCommunicate OK [13:30:38]wFMCommunicate request_size=11 [13:30:38]MH_SAM_APDU [13:30:38]CAPDU: 80 0D 02 02 06 68 4B B7 E5 C9 83 [13:30:38]Write to MH i2c: E2 0E 00 6B 1D 80 0D 02 02 06 00 68 4B B7 E5 C9 83 00 00 A9 [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:38]Read from MH i2c: E2 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 03 00 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 03 00 6B 1D 00 90 00 FC [13:30:38]RAPDU: 90 00 [13:30:38]wFMCommunicate OK [13:30:38]wFMCommunicate request_size=4 [13:30:38]MH_SAM_APDU [13:30:38]CAPDU: 80 0D 03 02 [13:30:38]Write to MH i2c: E2 08 00 6C 1D 80 0D 03 02 00 00 00 00 04 [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:38]Read from MH i2c: E2 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 0B 00 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 0B 00 6C 1D 00 F9 4F 43 B7 2E 3D 32 A0 90 00 84 [13:30:38]RAPDU: F9 4F 43 B7 2E 3D 32 A0 90 00 [13:30:38]wFMCommunicate OK [13:30:38]SAM_PROTO_SignData done [13:30:38]FM_MakeSignedData done [13:30:38]CreateOFDProtocolMessage [13:30:38]wFMCommunicate request_size=4 [13:30:38]MH_SAM_APDU [13:30:38]CAPDU: 80 11 00 00 [13:30:38]Write to MH i2c: E2 08 00 6D 1D 80 11 00 00 00 00 00 00 04 [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:38]Read from MH i2c: E2 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 17 00 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: E2 17 00 6D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 64 [13:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:30:38]wFMCommunicate OK [13:30:38]CreateOFDProtocolMessage done [13:30:38]OFDSenderStorePacket 162830 [13:30:38]StoreOFDPacket docnum=162830 [13:30:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 DD C4 08 01 68 9A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D8 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 44 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 B8 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 8E 00 00 00 F4 03 04 00 FE D2 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0E 7C 02 00 35 04 06 00 68 4B B7 E5 C9 83 F9 4F 43 B7 2E 3D 32 A0 [13:30:38]CheckFolder [13:30:38]dirname=/storage/ofd_packets [13:30:38]CheckFolder done [13:30:38]ProducePacketName [13:30:38]name=ofd_packets/00162830 [13:30:38]NVStorageSaveData ofd_packets/00162830 [13:30:38]File name is /storage/ofd_packets/00162830 [13:30:38]Write 302 bytes [13:30:38]NVStorageSaveData done [13:30:38]OFDSenderStorePacket done [13:30:38]KKMCreateOFDPacket done [13:30:38]NVStorageSaveData kkm_last_timestamp [13:30:38]File name is /storage/kkm_last_timestamp [13:30:38]Write 4 bytes [13:30:38]NVStorageSaveData done [13:30:38]ExternCall_PrintAddStr [13:30:38]wPrintStart [13:30:38]Write to MH i2c: 01 00 00 6E 1D 8B [13:30:38]Write i2c OK [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: 01 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: 01 07 00 [13:30:38]MH_I2C_Read... [13:30:38]Read from MH i2c: 01 07 00 6E 1D 00 00 00 00 00 FF 0F A0 [13:30:38]RasterBufferAndPrint [13:30:38]line Счет N : (1)1319429 [13:30:38]line ИНН: 02508201610067 [13:30:38]line Контрольно-Кассовый Чек [13:30:38]line ПРОДАЖА [13:30:38]line ТРК (МРК, ГНК) : 31 [13:30:38]line Товар: 2710194210 [13:30:38]line ДТ(л)-К-5 [13:30:38]line 10.200 * 72.60 [13:30:38]line = 740.52 [13:30:38]line НДС 12% НСП 1% [13:30:38]line > о реализуемом товаре [13:30:38]line ОКРУГЛЕНИЕ: -0.52 [13:30:38]line ИТОГО: 740.00 [13:30:38]line Внесено: 740.00 [13:30:38]line СДАЧА: 0.00 [13:30:38]line НСП 1% : 6.55 [13:30:38]line НДС 12% : 78.64 [13:30:38]line Наличными: 740.00 [13:30:38]line Безнал.: 0.00 [13:30:38]line Место: АЗС № 140 "Партнер Нефть" [13:30:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:30:38]line СНО: Общий режим [13:30:38]line Чек 142 14.07.2024 13:30 [13:30:38]line Смена: 463 ФФД: 1.0 [13:30:38]line ЗНМ: 0300000129 [13:30:38]line РНМ: 0000000000090858 [13:30:38]line Версия ККМ: 001 [13:30:38]line ФМ: 0000000000874899 [13:30:38]line ФД: 162830 [13:30:38]line ФПД: 114674417125763 [13:30:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133038&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162830&fm=114674417125763&tin=02508201610067®Number=0000000000090858&sum=74000 [13:30:39]OFD Sender: Processing packet 162830 [packets to send 106, broken 105] [13:30:39]ProducePacketName [13:30:39]name=ofd_packets/00162830 [13:30:39]OFD Sender: To server: pG, [13:30:39]CommunicateWithHost lk.salyk.kg:30040 [13:30:39]ConnectInit lk.salyk.kg [13:30:39]written 0, free lines is 4095 [13:30:39]Connected sock=10 [13: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 34 38 39 39 10 01 00 00 DD C4 08 01 68 9A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D8 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 44 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 B8 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 8E 00 00 00 F4 03 04 00 FE D2 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0E 7C 02 00 35 04 06 00 68 4B B7 E5 C9 83 F9 4F 43 B7 2E 3D 32 A0 [13:30:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 32 E5 47 00 5A 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0E 7C 02 00 F4 03 04 00 0B 7F 93 66 B6 04 01 00 00 BD 36 7C D2 68 58 60 B9 [13:30:39]CommunicateWithHost err = 0 [13:30:39]CheckOFDResponse [13:30:39]1017 (14) - 77093643461234 [13:30:39]1041 (16) - 0000000000874899 [13:30:39]1040 (4) - 162830 [13:30:39]1012 (4) - 14.07.2024 07:32 [13:30:39]1206 (1) - 0 [13:30:39]OFD Sender: Remove packet 162830 [13:30:39]ProducePacketName [13:30:39]name=ofd_packets/00162830 [13:30:39]NVStorageDeleteData [13:30:39]Write to MH i2c: 01 00 00 99 1D B6 [13:30:39]Write i2c OK [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: 01 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: 01 07 00 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: 01 07 00 99 1D 00 00 00 00 00 DA 0C A3 [13:30:39]RasterBufferAndPrint [13:30:39]line [13:30:39]line [13:30:39]line [13:30:39]line [13:30:39]line [13:30:39]written 0, free lines is 3299 [13:30:39]MH_Cut [13:30:39]Write to MH i2c: D1 01 00 A0 1D 01 8F [13:30:39]Write i2c OK [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: D1 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: D1 01 00 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: D1 01 00 A0 1D 00 8E [13:30:39]Write to MH i2c: 01 00 00 A1 1D BE [13:30:39]Write i2c OK [13:30:39]MH_I2C_Read... [13:30:39]OFD Sender: No OFD packet to send [13:30:40]*** Cut start [13:30:40]*** Purtial cut [13:30:40]*** CUTSNS_PIN = 0 [13:30:40]*** Stage 1: CUTSNS_PIN = 1 [13:30:42]Read from MH i2c: 01 [13:30:42]MH_I2C_Read... [13:30:42]*** Stop cut motor [13:30:42]*** Cut end [13:30:42]Read from MH i2c: 01 07 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: 01 07 00 A1 1D 00 00 00 00 00 FF 0F D3 [13:30:42]process_action close_receipt done [13:30:42]requested_data is exist [13:30:42]produce_requested_data [13:30:42]requested_item fm.sn is exist - process it [13:30:42]wFMCommunicate request_size=4 [13:30:42]MH_SAM_APDU [13:30:42]CAPDU: 80 11 00 00 [13:30:42]Write to MH i2c: E2 08 00 A2 1D 80 11 00 00 00 00 00 00 39 [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 17 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 17 00 A2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 99 [13:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:30:42]wFMCommunicate OK [13:30:42]requested_item fd.num is exist - process it [13:30:42]SAM_PROTO_GetFieldsCounters [13:30:42]wFMCommunicate request_size=4 [13:30:42]MH_SAM_APDU [13:30:42]CAPDU: 80 13 00 00 [13:30:42]Write to MH i2c: E2 08 00 A3 1D 80 13 00 00 00 00 00 00 3C [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 62 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 62 00 A3 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0E 7C 02 00 0E 04 04 00 CF 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 75 [13:30:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0E 7C 02 00 0E 04 04 00 CF 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 [13:30:42]wFMCommunicate OK [13:30:42]SAM_PROTO_GetFieldsCounters done [13:30:42]requested_item shift.num is exist - process it [13:30:42]requested_item shift.opened is exist - process it [13:30:42]req_shift_opened [13:30:42]FM_GetShiftState [13:30:42]SAM_PROTO_GetShiftState [13:30:42]wFMCommunicate request_size=4 [13:30:42]MH_SAM_APDU [13:30:42]CAPDU: 80 13 01 00 [13:30:42]Write to MH i2c: E2 08 00 A4 1D 80 13 01 00 00 00 00 00 3E [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 [13:30:42]MH_I2C_Read... [13:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:42]Read from MH i2c: E2 0E 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: E2 0E 00 A4 1D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 74 [13:30:42]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:30:42]wFMCommunicate OK [13:30:42]SAM_PROTO_GetShiftState done [13:30:42]FM_GetShiftState done [13:30:42]req_shift_opened done [13:30:42]requested_item shift.open_date is exist - process it [13:30:42]req_shift_open_date [13:30:42]req_shift_open_date done [13:30:42]produce_requested_data done [13:30:42]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162830,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:30:42]process_action_free close_receipt [13:30:42]json_value_free [13:30:42]json_value_free done [13:30:42]process_json_proto returns [13:30:42]Send response to host [13:30:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162830,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:30:42]free response buf [13:30:42]execute_script done [13:30:42]execute_script returns [13:30:42]free content buf [13:30:42]Sock 7.Close socket [13:30:42]Sock 7.Thread stoped [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:13]accept exits with 9 [13:34:13]New connection [13:34:13]New thread 3066735972 created [13:34:13]Thread 3066879332 joined [13:34:13]Waiting for new connection... [13:34:13] Sock 9.Parse request [13:34:13]Sock 9.Check first char [13:34:13]Sock 9.First char is OK [13:34:13]request: POST /json_proto HTTP/1.0 [13:34:13]Method: POST [13:34:13]URL: /json_proto [13:34:13]Method is POST - this is cgi request [13:34:13]url: /json_proto [13:34:13]query_string will be loaded in cgi processing [13:34:13]execute_cgi json_proto POST (null) [13:34:13]execute_cgi path=json_proto method=POST [13:34:13]POST find Content-Length [13:34:13]Host: 172.17.39.67:8080 [13:34:13]Content-Length: 849 [13:34:13]Content-Type: application/json [13:34:13] [13:34:13]POST finish read [13:34:13]Found Content-Length = 849 [13:34:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 55.100, "sum" : 4000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:13]execute_script... [13:34: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)1319430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 55.100, "sum" : 4000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:13]POST & json_proto [13:34:13]process_json_proto [13:34:13]json parsed OK: [13:34:13]protocol is kg_v1.0 [13:34:13]action value=close_receipt [13:34:13]process_action close_receipt [13:34:13]cmd_close_receipt [13:34:13]MH_GetDate [13:34:13]Write to MH i2c: F0 00 00 A5 1D B1 [13:34:13]Write i2c OK [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: F0 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: F0 09 00 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: F0 09 00 A5 1D 00 D6 D3 93 66 B6 85 93 66 90 [13:34:13]GetLastDocTimeStamp 1720963838 [13:34:13]current date 1720964054 [13:34:13]FM_GetShiftState [13:34:13]SAM_PROTO_GetShiftState [13:34:13]wFMCommunicate request_size=4 [13:34:13]MH_SAM_APDU [13:34:13]CAPDU: 80 13 01 00 [13:34:13]Write to MH i2c: E2 08 00 A6 1D 80 13 01 00 00 00 00 00 40 [13:34:13]Write i2c OK [13:34:13]MH_I2C_Read... [13:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:13]Read from MH i2c: E2 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: E2 0E 00 [13:34:13]MH_I2C_Read... [13:34:13]Read from MH i2c: E2 0E 00 A6 1D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 76 [13:34:13]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:34:13]wFMCommunicate OK [13:34:13]SAM_PROTO_GetShiftState done [13:34:13]FM_GetShiftState done [13:34:13]opened in 1720915483 [13:34:13]opened+sec_in_day 1721001883 [13:34:13]quantity*price = 400026 [13:34:13]sum+1 = 400027 [13:34:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.26 НСП 1% : 35.40 НДС 12% : 424.81 Наличными: 0.00 Безнал.: 4000.26 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 143 14.07.2024 13:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162831 ФПД: 196868240193456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133414&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162831&fm=196868240193456&tin=02508201610067®Number=0000000000090858&sum=400026 [13:34:14]StoreToDocumentArchive [13:34:14]shift 463 fd 162831 [13:34:14]save to /storage/0463/doc_00162831 [13:34:14]save last doc name /storage/0463/doc_00162831 to /storage/kkm_last_doc_name [13:34:14]save OK [13:34:14]Clear old archive folders... [13:34:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:34:14]tlvbuf is B6EC8AF0 [13:34:14]SAM_PROTO_ClearQueue [13:34:14]wFMCommunicate request_size=4 [13:34:14]MH_SAM_APDU [13:34:14]CAPDU: 80 09 00 00 [13:34:14]Write to MH i2c: E2 08 00 B3 1D 80 09 00 00 00 00 00 00 42 [13:34:14]Write i2c OK [13:34:14]MH_I2C_Read... [13:34:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:14]Read from MH i2c: E2 [13:34:14]MH_I2C_Read... [13:34:14]Read from MH i2c: E2 03 00 [13:34:14]MH_I2C_Read... [13:34:14]Read from MH i2c: E2 03 00 B3 1D 00 90 00 44 [13:34:14]RAPDU: 90 00 [13:34:14]wFMCommunicate OK [13:34:14]SAM_PROTO_ClearQueue done [13:34:14]KKMCreateOFDPacket [13:34:14]OFDProtocolAddRootSTLVToBuf [13:34:14]FM_MakeSignedData [13:34:14]FM_MakeSignedData [13:34:14]SAM_PROTO_SignData [13:34:14]wFMCommunicate request_size=4 [13:34:14]MH_SAM_APDU [13:34:14]CAPDU: 80 0D 01 02 [13:34:14]Write to MH i2c: E2 08 00 B4 1D 80 0D 01 02 00 00 00 00 4A [13:34:14]Write i2c OK [13:34:14]MH_I2C_Read... [13:34:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:14]Read from MH i2c: E2 [13:34:14]MH_I2C_Read... [13:34:14]Read from MH i2c: E2 03 00 [13:34:14]MH_I2C_Read... [13:34:14]Read from MH i2c: E2 03 00 B4 1D 00 90 00 45 [13:34:14]RAPDU: 90 00 [13:34:14]wFMCommunicate OK [13:34:14]wFMCommunicate request_size=255 [13:34:14]MH_SAM_APDU [13:34:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 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 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D6 D3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0F 7C 02 00 35 04 06 00 [13:34:14]Write to MH i2c: E2 02 01 B5 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 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 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D6 D3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0F 7C 02 00 35 04 06 00 00 00 5F [13:34:14]Write i2c OK [13:34:14]MH_I2C_Read... [13:34:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:15]Read from MH i2c: E2 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: E2 03 00 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: E2 03 00 B5 1D 00 90 00 46 [13:34:15]RAPDU: 90 00 [13:34:15]wFMCommunicate OK [13:34:15]wFMCommunicate request_size=11 [13:34:15]MH_SAM_APDU [13:34:15]CAPDU: 80 0D 02 02 06 B3 0C F5 86 37 B0 [13:34:15]Write to MH i2c: E2 0E 00 B6 1D 80 0D 02 02 06 00 B3 0C F5 86 37 B0 00 00 7A [13:34:15]Write i2c OK [13:34:15]MH_I2C_Read... [13:34:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:15]Read from MH i2c: E2 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: E2 03 00 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: E2 03 00 B6 1D 00 90 00 47 [13:34:15]RAPDU: 90 00 [13:34:15]wFMCommunicate OK [13:34:15]wFMCommunicate request_size=4 [13:34:15]MH_SAM_APDU [13:34:15]CAPDU: 80 0D 03 02 [13:34:15]Write to MH i2c: E2 08 00 B7 1D 80 0D 03 02 00 00 00 00 4F [13:34:15]Write i2c OK [13:34:15]MH_I2C_Read... [13:34:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:15]OFD Sender: No OFD packet to send [13:34:15]Read from MH i2c: E2 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: E2 0B 00 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: E2 0B 00 B7 1D 00 99 B3 CF EF 40 0B BF 8E 90 00 F2 [13:34:15]RAPDU: 99 B3 CF EF 40 0B BF 8E 90 00 [13:34:15]wFMCommunicate OK [13:34:15]SAM_PROTO_SignData done [13:34:15]FM_MakeSignedData done [13:34:15]CreateOFDProtocolMessage [13:34:15]wFMCommunicate request_size=4 [13:34:15]MH_SAM_APDU [13:34:15]CAPDU: 80 11 00 00 [13:34:15]Write to MH i2c: E2 08 00 B8 1D 80 11 00 00 00 00 00 00 4F [13:34:15]Write i2c OK [13:34:15]MH_I2C_Read... [13:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:15]Read from MH i2c: E2 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: E2 17 00 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: E2 17 00 B8 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AF [13:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:34:15]wFMCommunicate OK [13:34:15]CreateOFDProtocolMessage done [13:34:15]OFDSenderStorePacket 162831 [13:34:15]StoreOFDPacket docnum=162831 [13:34:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A4 60 08 01 DC A2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 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 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D6 D3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0F 7C 02 00 35 04 06 00 B3 0C F5 86 37 B0 99 B3 CF EF 40 0B BF 8E [13:34:15]CheckFolder [13:34:15]dirname=/storage/ofd_packets [13:34:15]CheckFolder done [13:34:15]ProducePacketName [13:34:15]name=ofd_packets/00162831 [13:34:15]NVStorageSaveData ofd_packets/00162831 [13:34:15]File name is /storage/ofd_packets/00162831 [13:34:15]Write 302 bytes [13:34:15]NVStorageSaveData done [13:34:15]OFDSenderStorePacket done [13:34:15]KKMCreateOFDPacket done [13:34:15]NVStorageSaveData kkm_last_timestamp [13:34:15]File name is /storage/kkm_last_timestamp [13:34:15]Write 4 bytes [13:34:15]NVStorageSaveData done [13:34:15]ExternCall_PrintAddStr [13:34:15]wPrintStart [13:34:15]Write to MH i2c: 01 00 00 B9 1D D6 [13:34:15]Write i2c OK [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: 01 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: 01 07 00 [13:34:15]MH_I2C_Read... [13:34:15]Read from MH i2c: 01 07 00 B9 1D 00 00 00 00 00 FF 0F EB [13:34:15]RasterBufferAndPrint [13:34:15]line Счет N : (1)1319430 [13:34:15]line ИНН: 02508201610067 [13:34:15]line Контрольно-Кассовый Чек [13:34:15]line ПРОДАЖА [13:34:15]line ТРК (МРК, ГНК) : 11 [13:34:15]line Товар: 2710194210 [13:34:15]line ДТ(л)-К-5 [13:34:15]line 55.100 * 72.60 [13:34:15]line = 4000.26 [13:34:15]line НДС 12% НСП 1% [13:34:15]line > о реализуемом товаре [13:34:15]line ИТОГО: 4000.26 [13:34:15]line НСП 1% : 35.40 [13:34:15]line НДС 12% : 424.81 [13:34:15]line Наличными: 0.00 [13:34:15]line Безнал.: 4000.26 [13:34:15]line Место: АЗС № 140 "Партнер Нефть" [13:34:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:34:15]line СНО: Общий режим [13:34:15]line Чек 143 14.07.2024 13:34 [13:34:15]line Смена: 463 ФФД: 1.0 [13:34:15]line ЗНМ: 0300000129 [13:34:15]line РНМ: 0000000000090858 [13:34:15]line Версия ККМ: 001 [13:34:15]line Платежная система: АКБ Кыргызстан [13:34:15]line ФМ: 0000000000874899 [13:34:15]line ФД: 162831 [13:34:15]line ФПД: 196868240193456 [13:34:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133414&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162831&fm=196868240193456&tin=02508201610067®Number=0000000000090858&sum=400026 [13:34:15]OFD Sender: Processing packet 162831 [packets to send 106, broken 105] [13:34:15]ProducePacketName [13:34:15]name=ofd_packets/00162831 [13:34:15]OFD Sender: To server: pG, [13:34:15]CommunicateWithHost lk.salyk.kg:30040 [13:34:15]ConnectInit lk.salyk.kg [13:34:15]written 0, free lines is 4095 [13:34:15]Connected sock=7 [13:34:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A4 60 08 01 DC A2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 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 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D6 D3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0F 7C 02 00 35 04 06 00 B3 0C F5 86 37 B0 99 B3 CF EF 40 0B BF 8E [13:34:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E7 BD 47 00 DA DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0F 7C 02 00 F4 03 04 00 E4 7F 93 66 B6 04 01 00 00 22 23 56 EA 04 33 6D FD [13:34:15]CommunicateWithHost err = 0 [13:34:15]CheckOFDResponse [13:34:15]1017 (14) - 77093643461234 [13:34:15]1041 (16) - 0000000000874899 [13:34:15]1040 (4) - 162831 [13:34:15]1012 (4) - 14.07.2024 07:36 [13:34:15]1206 (1) - 0 [13:34:15]OFD Sender: Remove packet 162831 [13:34:15]ProducePacketName [13:34:15]name=ofd_packets/00162831 [13:34:15]NVStorageDeleteData [13:34:16]Write to MH i2c: 01 00 00 E3 1D 00 [13:34:16]Write i2c OK [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: 01 [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: 01 07 00 [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: 01 07 00 E3 1D 00 00 00 00 00 F9 0C 0C [13:34:16]RasterBufferAndPrint [13:34:16]line [13:34:16]line [13:34:16]line [13:34:16]line [13:34:16]line [13:34:16]written 0, free lines is 3328 [13:34:16]MH_Cut [13:34:16]Write to MH i2c: D1 01 00 EA 1D 01 D9 [13:34:16]Write i2c OK [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: D1 [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: D1 01 00 [13:34:16]MH_I2C_Read... [13:34:16]Read from MH i2c: D1 01 00 EA 1D 00 D8 [13:34:16]Write to MH i2c: 01 00 00 EB 1D 08 [13:34:16]Write i2c OK [13:34:16]MH_I2C_Read... [13:34:16]OFD Sender: No OFD packet to send [13:34:16]*** Cut start [13:34:16]*** Purtial cut [13:34:16]*** Stage 1: CUTSNS_PIN = 1 [13:34:17]Read from MH i2c: 01 [13:34:17]MH_I2C_Read... [13:34:17]*** Stop cut motor [13:34:17]*** Cut end [13:34:17]Read from MH i2c: 01 07 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: 01 07 00 EB 1D 00 00 00 00 00 FF 0F 1D [13:34:17]process_action close_receipt done [13:34:17]requested_data is exist [13:34:17]produce_requested_data [13:34:17]requested_item fm.sn is exist - process it [13:34:17]wFMCommunicate request_size=4 [13:34:17]MH_SAM_APDU [13:34:17]CAPDU: 80 11 00 00 [13:34:17]Write to MH i2c: E2 08 00 EC 1D 80 11 00 00 00 00 00 00 83 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:17]Read from MH i2c: E2 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 17 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 17 00 EC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E3 [13:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:34:17]wFMCommunicate OK [13:34:17]requested_item fd.num is exist - process it [13:34:17]SAM_PROTO_GetFieldsCounters [13:34:17]wFMCommunicate request_size=4 [13:34:17]MH_SAM_APDU [13:34:17]CAPDU: 80 13 00 00 [13:34:17]Write to MH i2c: E2 08 00 ED 1D 80 13 00 00 00 00 00 00 86 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:17]Read from MH i2c: E2 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 62 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 62 00 ED 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0F 7C 02 00 0E 04 04 00 CF 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 C3 [13:34:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0F 7C 02 00 0E 04 04 00 CF 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 [13:34:17]wFMCommunicate OK [13:34:17]SAM_PROTO_GetFieldsCounters done [13:34:17]requested_item shift.num is exist - process it [13:34:17]requested_item shift.opened is exist - process it [13:34:17]req_shift_opened [13:34:17]FM_GetShiftState [13:34:17]SAM_PROTO_GetShiftState [13:34:17]wFMCommunicate request_size=4 [13:34:17]MH_SAM_APDU [13:34:17]CAPDU: 80 13 01 00 [13:34:17]Write to MH i2c: E2 08 00 EE 1D 80 13 01 00 00 00 00 00 88 [13:34:17]Write i2c OK [13:34:17]MH_I2C_Read... [13:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:17]Read from MH i2c: E2 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 0E 00 [13:34:17]MH_I2C_Read... [13:34:17]Read from MH i2c: E2 0E 00 EE 1D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BE [13:34:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:34:17]wFMCommunicate OK [13:34:17]SAM_PROTO_GetShiftState done [13:34:17]FM_GetShiftState done [13:34:17]req_shift_opened done [13:34:17]requested_item shift.open_date is exist - process it [13:34:17]req_shift_open_date [13:34:17]req_shift_open_date done [13:34:17]produce_requested_data done [13:34:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162831,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:34:17]process_action_free close_receipt [13:34:17]json_value_free [13:34:17]json_value_free done [13:34:17]process_json_proto returns [13:34:17]Send response to host [13:34:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162831,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:34:17]free response buf [13:34:17]execute_script done [13:34:17]execute_script returns [13:34:17]free content buf [13:34:17]Sock 9.Close socket [13:34:17]Sock 9.Thread stoped [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]accept exits with 10 [13:39:01]New connection [13:39:01]New thread 3066879332 created [13:39:01]Thread 3066735972 joined [13:39:01]Waiting for new connection... [13:39:01] Sock 10.Parse request [13:39:01]Sock 10.Check first char [13:39:01]Sock 10.First char is OK [13:39:01]request: POST /json_proto HTTP/1.0 [13:39:01]Method: POST [13:39:01]URL: /json_proto [13:39:01]Method is POST - this is cgi request [13:39:01]url: /json_proto [13:39:01]query_string will be loaded in cgi processing [13:39:01]execute_cgi json_proto POST (null) [13:39:01]execute_cgi path=json_proto method=POST [13:39:01]POST find Content-Length [13:39:01]Host: 172.17.39.67:8080 [13:39:01]Content-Length: 671 [13:39:01]Content-Type: application/json [13:39:01] [13:39:01]POST finish read [13:39:01]Found Content-Length = 671 [13:39:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 8.920, "sum" : 600.32, "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" ] } } [13:39:01]execute_script... [13:39:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 8.920, "sum" : 600.32, "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" ] } } [13:39:01]POST & json_proto [13:39:01]process_json_proto [13:39:01]json parsed OK: [13:39:01]protocol is kg_v1.0 [13:39:01]action value=close_receipt [13:39:01]process_action close_receipt [13:39:01]cmd_close_receipt [13:39:01]MH_GetDate [13:39:01]Write to MH i2c: F0 00 00 EF 1D FB [13:39:01]Write i2c OK [13:39:01]MH_I2C_Read... [13:39:01]Read from MH i2c: F0 [13:39:01]MH_I2C_Read... [13:39:01]Read from MH i2c: F0 09 00 [13:39:01]MH_I2C_Read... [13:39:01]Read from MH i2c: F0 09 00 EF 1D 00 F6 D4 93 66 B6 85 93 66 FB [13:39:01]GetLastDocTimeStamp 1720964054 [13:39:01]current date 1720964342 [13:39:01]FM_GetShiftState [13:39:01]SAM_PROTO_GetShiftState [13:39:01]wFMCommunicate request_size=4 [13:39:01]MH_SAM_APDU [13:39:01]CAPDU: 80 13 01 00 [13:39:01]Write to MH i2c: E2 08 00 F0 1D 80 13 01 00 00 00 00 00 8A [13:39:01]Write i2c OK [13:39:01]MH_I2C_Read... [13:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:01]Read from MH i2c: E2 [13:39:01]MH_I2C_Read... [13:39:01]Read from MH i2c: E2 0E 00 [13:39:01]MH_I2C_Read... [13:39:01]Read from MH i2c: E2 0E 00 F0 1D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C0 [13:39:01]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:39:01]wFMCommunicate OK [13:39:01]SAM_PROTO_GetShiftState done [13:39:01]FM_GetShiftState done [13:39:01]opened in 1720915483 [13:39:01]opened+sec_in_day 1721001883 [13:39:01]quantity*price = 60031 [13:39:01]sum+1 = 60033 [13:39:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 144 14.07.2024 13:39 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162832 ФПД: 269343928576655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133902&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162832&fm=269343928576655&tin=02508201610067®Number=0000000000090858&sum=60000 [13:39:02]StoreToDocumentArchive [13:39:02]shift 463 fd 162832 [13:39:02]save to /storage/0463/doc_00162832 [13:39:02]save last doc name /storage/0463/doc_00162832 to /storage/kkm_last_doc_name [13:39:02]save OK [13:39:02]Clear old archive folders... [13:39:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:39:02]tlvbuf is 0131F280 [13:39:02]SAM_PROTO_ClearQueue [13:39:02]wFMCommunicate request_size=4 [13:39:02]MH_SAM_APDU [13:39:02]CAPDU: 80 09 00 00 [13:39:02]Write to MH i2c: E2 08 00 FD 1D 80 09 00 00 00 00 00 00 8C [13:39:02]Write i2c OK [13:39:02]MH_I2C_Read... [13:39:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:02]Read from MH i2c: E2 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 FD 1D 00 90 00 8E [13:39:02]RAPDU: 90 00 [13:39:02]wFMCommunicate OK [13:39:02]SAM_PROTO_ClearQueue done [13:39:02]KKMCreateOFDPacket [13:39:02]OFDProtocolAddRootSTLVToBuf [13:39:02]FM_MakeSignedData [13:39:02]FM_MakeSignedData [13:39:02]SAM_PROTO_SignData [13:39:02]wFMCommunicate request_size=4 [13:39:02]MH_SAM_APDU [13:39:02]CAPDU: 80 0D 01 02 [13:39:02]Write to MH i2c: E2 08 00 FE 1D 80 0D 01 02 00 00 00 00 94 [13:39:02]Write i2c OK [13:39:02]MH_I2C_Read... [13:39:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:02]Read from MH i2c: E2 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 FE 1D 00 90 00 8F [13:39:02]RAPDU: 90 00 [13:39:02]wFMCommunicate OK [13:39:02]wFMCommunicate request_size=255 [13:39:02]MH_SAM_APDU [13:39:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 22 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 80 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 90 00 00 00 F4 03 04 00 F6 D4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 10 7C 02 00 35 04 06 00 [13:39:02]Write to MH i2c: E2 02 01 FF 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 22 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 80 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 90 00 00 00 F4 03 04 00 F6 D4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 10 7C 02 00 35 04 06 00 00 00 FB [13:39:02]Write i2c OK [13:39:02]MH_I2C_Read... [13:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:02]Read from MH i2c: E2 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 [13:39:02]MH_I2C_Read... [13:39:02]Read from MH i2c: E2 03 00 FF 1D 00 90 00 90 [13:39:02]RAPDU: 90 00 [13:39:02]wFMCommunicate OK [13:39:02]wFMCommunicate request_size=11 [13:39:02]MH_SAM_APDU [13:39:02]CAPDU: 80 0D 02 02 06 F4 F7 85 2F 6A 8F [13:39:02]Write to MH i2c: E2 0E 00 00 1E 80 0D 02 02 06 00 F4 F7 85 2F 6A 8F 00 00 3C [13:39:02]Write i2c OK [13:39:02]MH_I2C_Read... [13:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:03]Read from MH i2c: E2 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: E2 03 00 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: E2 03 00 00 1E 00 90 00 92 [13:39:03]RAPDU: 90 00 [13:39:03]wFMCommunicate OK [13:39:03]wFMCommunicate request_size=4 [13:39:03]MH_SAM_APDU [13:39:03]CAPDU: 80 0D 03 02 [13:39:03]Write to MH i2c: E2 08 00 01 1E 80 0D 03 02 00 00 00 00 9A [13:39:03]Write i2c OK [13:39:03]MH_I2C_Read... [13:39:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:03]Read from MH i2c: E2 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: E2 0B 00 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: E2 0B 00 01 1E 00 3F EC 82 88 85 E0 BA BE 90 00 AD [13:39:03]RAPDU: 3F EC 82 88 85 E0 BA BE 90 00 [13:39:03]wFMCommunicate OK [13:39:03]SAM_PROTO_SignData done [13:39:03]FM_MakeSignedData done [13:39:03]CreateOFDProtocolMessage [13:39:03]wFMCommunicate request_size=4 [13:39:03]MH_SAM_APDU [13:39:03]CAPDU: 80 11 00 00 [13:39:03]Write to MH i2c: E2 08 00 02 1E 80 11 00 00 00 00 00 00 9A [13:39:03]Write i2c OK [13:39:03]MH_I2C_Read... [13:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:03]Read from MH i2c: E2 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: E2 17 00 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: E2 17 00 02 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FA [13:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:39:03]wFMCommunicate OK [13:39:03]CreateOFDProtocolMessage done [13:39:03]OFDSenderStorePacket 162832 [13:39:03]StoreOFDPacket docnum=162832 [13:39:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 55 13 08 01 2E B5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 22 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 80 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 90 00 00 00 F4 03 04 00 F6 D4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 10 7C 02 00 35 04 06 00 F4 F7 85 2F 6A 8F 3F EC 82 88 85 E0 BA BE [13:39:03]CheckFolder [13:39:03]dirname=/storage/ofd_packets [13:39:03]CheckFolder done [13:39:03]ProducePacketName [13:39:03]name=ofd_packets/00162832 [13:39:03]NVStorageSaveData ofd_packets/00162832 [13:39:03]File name is /storage/ofd_packets/00162832 [13:39:03]Write 302 bytes [13:39:03]NVStorageSaveData done [13:39:03]OFDSenderStorePacket done [13:39:03]KKMCreateOFDPacket done [13:39:03]NVStorageSaveData kkm_last_timestamp [13:39:03]File name is /storage/kkm_last_timestamp [13:39:03]Write 4 bytes [13:39:03]NVStorageSaveData done [13:39:03]ExternCall_PrintAddStr [13:39:03]wPrintStart [13:39:03]Write to MH i2c: 01 00 00 03 1E 21 [13:39:03]Write i2c OK [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: 01 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: 01 07 00 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: 01 07 00 03 1E 00 00 00 00 00 FF 0F 36 [13:39:03]RasterBufferAndPrint [13:39:03]line Счет N : (1)1319431 [13:39:03]line ИНН: 02508201610067 [13:39:03]line Контрольно-Кассовый Чек [13:39:03]line ПРОДАЖА [13:39:03]line ТРК (МРК, ГНК) : 42 [13:39:03]line Товар: 2710124130 [13:39:03]line Super-92-К-5 [13:39:03]line 8.920 * 67.30 [13:39:03]line = 600.32 [13:39:03]line НДС 12% НСП 1% [13:39:03]line > о реализуемом товаре [13:39:03]line ОКРУГЛЕНИЕ: -0.32 [13:39:03]line ИТОГО: 600.00 [13:39:03]line Внесено: 600.00 [13:39:03]line СДАЧА: 0.00 [13:39:03]line НСП 1% : 5.31 [13:39:03]line НДС 12% : 63.75 [13:39:03]line Наличными: 600.00 [13:39:03]line Безнал.: 0.00 [13:39:03]line Место: АЗС № 140 "Партнер Нефть" [13:39:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:39:03]line СНО: Общий режим [13:39:03]line Чек 144 14.07.2024 13:39 [13:39:03]line Смена: 463 ФФД: 1.0 [13:39:03]line ЗНМ: 0300000129 [13:39:03]line РНМ: 0000000000090858 [13:39:03]line Версия ККМ: 001 [13:39:03]line ФМ: 0000000000874899 [13:39:03]line ФД: 162832 [13:39:03]line ФПД: 269343928576655 [13:39:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133902&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162832&fm=269343928576655&tin=02508201610067®Number=0000000000090858&sum=60000 [13:39:03]OFD Sender: Processing packet 162832 [packets to send 106, broken 105] [13:39:03]ProducePacketName [13:39:03]name=ofd_packets/00162832 [13:39:03]OFD Sender: To server: pG, [13:39:03]CommunicateWithHost lk.salyk.kg:30040 [13:39:03]ConnectInit lk.salyk.kg [13:39:03]written 0, free lines is 4095 [13:39:03]Connected sock=11 [13:39:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 55 13 08 01 2E B5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 22 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 80 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 90 00 00 00 F4 03 04 00 F6 D4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 10 7C 02 00 35 04 06 00 F4 F7 85 2F 6A 8F 3F EC 82 88 85 E0 BA BE [13:39:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 68 FD 47 00 75 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 10 7C 02 00 F4 03 04 00 04 81 93 66 B6 04 01 00 00 65 F7 6B EC 91 46 2E 35 [13:39:03]CommunicateWithHost err = 0 [13:39:03]CheckOFDResponse [13:39:03]1017 (14) - 77093643461234 [13:39:03]1041 (16) - 0000000000874899 [13:39:03]1040 (4) - 162832 [13:39:03]1012 (4) - 14.07.2024 07:40 [13:39:03]1206 (1) - 0 [13:39:03]OFD Sender: Remove packet 162832 [13:39:03]ProducePacketName [13:39:03]name=ofd_packets/00162832 [13:39:03]NVStorageDeleteData [13:39:03]Write to MH i2c: 01 00 00 2E 1E 4C [13:39:03]Write i2c OK [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: 01 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: 01 07 00 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: 01 07 00 2E 1E 00 00 00 00 00 EA 0C 49 [13:39:03]RasterBufferAndPrint [13:39:03]line [13:39:03]line [13:39:03]line [13:39:03]line [13:39:03]line [13:39:03]written 0, free lines is 3312 [13:39:03]MH_Cut [13:39:03]Write to MH i2c: D1 01 00 35 1E 01 25 [13:39:03]Write i2c OK [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: D1 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: D1 01 00 [13:39:03]MH_I2C_Read... [13:39:03]Read from MH i2c: D1 01 00 35 1E 00 24 [13:39:03]Write to MH i2c: 01 00 00 36 1E 54 [13:39:03]Write i2c OK [13:39:03]MH_I2C_Read... [13:39:04]OFD Sender: No OFD packet to send [13:39:04]*** Cut start [13:39:04]*** Purtial cut [13:39:04]*** CUTSNS_PIN = 0 [13:39:04]*** Stage 1: CUTSNS_PIN = 1 [13:39:06]Read from MH i2c: 01 [13:39:06]MH_I2C_Read... [13:39:06]*** Stop cut motor [13:39:06]*** Cut end [13:39:06]Read from MH i2c: 01 07 00 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: 01 07 00 36 1E 00 00 00 00 00 FF 0F 69 [13:39:06]process_action close_receipt done [13:39:06]requested_data is exist [13:39:06]produce_requested_data [13:39:06]requested_item fm.sn is exist - process it [13:39:06]wFMCommunicate request_size=4 [13:39:06]MH_SAM_APDU [13:39:06]CAPDU: 80 11 00 00 [13:39:06]Write to MH i2c: E2 08 00 37 1E 80 11 00 00 00 00 00 00 CF [13:39:06]Write i2c OK [13:39:06]MH_I2C_Read... [13:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:06]Read from MH i2c: E2 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 17 00 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 17 00 37 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2F [13:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:39:06]wFMCommunicate OK [13:39:06]requested_item fd.num is exist - process it [13:39:06]SAM_PROTO_GetFieldsCounters [13:39:06]wFMCommunicate request_size=4 [13:39:06]MH_SAM_APDU [13:39:06]CAPDU: 80 13 00 00 [13:39:06]Write to MH i2c: E2 08 00 38 1E 80 13 00 00 00 00 00 00 D2 [13:39:06]Write i2c OK [13:39:06]MH_I2C_Read... [13:39:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:06]Read from MH i2c: E2 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 62 00 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 62 00 38 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 10 7C 02 00 0E 04 04 00 CF 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 13 [13:39:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 10 7C 02 00 0E 04 04 00 CF 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 [13:39:06]wFMCommunicate OK [13:39:06]SAM_PROTO_GetFieldsCounters done [13:39:06]requested_item shift.num is exist - process it [13:39:06]requested_item shift.opened is exist - process it [13:39:06]req_shift_opened [13:39:06]FM_GetShiftState [13:39:06]SAM_PROTO_GetShiftState [13:39:06]wFMCommunicate request_size=4 [13:39:06]MH_SAM_APDU [13:39:06]CAPDU: 80 13 01 00 [13:39:06]Write to MH i2c: E2 08 00 39 1E 80 13 01 00 00 00 00 00 D4 [13:39:06]Write i2c OK [13:39:06]MH_I2C_Read... [13:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:06]Read from MH i2c: E2 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 0E 00 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 0E 00 39 1E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 0A [13:39:06]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:39:06]wFMCommunicate OK [13:39:06]SAM_PROTO_GetShiftState done [13:39:06]FM_GetShiftState done [13:39:06]req_shift_opened done [13:39:06]requested_item shift.open_date is exist - process it [13:39:06]req_shift_open_date [13:39:06]req_shift_open_date done [13:39:06]produce_requested_data done [13:39:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162832,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:39:06]process_action_free close_receipt [13:39:06]json_value_free [13:39:06]json_value_free done [13:39:06]process_json_proto returns [13:39:06]Send response to host [13:39:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162832,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:39:06]free response buf [13:39:06]execute_script done [13:39:06]execute_script returns [13:39:06]free content buf [13:39:06]Sock 10.Close socket [13:39:06]Sock 10.Thread stoped [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:51]accept exits with 7 [13:39:51]New connection [13:39:51]New thread 3066735972 created [13:39:51]Thread 3066879332 joined [13:39:51]Waiting for new connection... [13:39:51] Sock 7.Parse request [13:39:51]Sock 7.Check first char [13:39:51]Sock 7.First char is OK [13:39:51]request: POST /json_proto HTTP/1.0 [13:39:51]Method: POST [13:39:51]URL: /json_proto [13:39:51]Method is POST - this is cgi request [13:39:51]url: /json_proto [13:39:51]query_string will be loaded in cgi processing [13:39:51]execute_cgi json_proto POST (null) [13:39:51]execute_cgi path=json_proto method=POST [13:39:51]POST find Content-Length [13:39:51]Host: 172.17.39.67:8080 [13:39:51]Content-Length: 648 [13:39:51]Content-Type: application/json [13:39:51] [13:39:51]POST finish read [13:39:51]Found Content-Length = 648 [13:39:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.000, "sum" : 1452.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:51]execute_script... [13:39: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)1319432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.000, "sum" : 1452.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:51]POST & json_proto [13:39:51]process_json_proto [13:39:51]json parsed OK: [13:39:51]protocol is kg_v1.0 [13:39:51]action value=close_receipt [13:39:51]process_action close_receipt [13:39:51]cmd_close_receipt [13:39:51]MH_GetDate [13:39:51]Write to MH i2c: F0 00 00 3A 1E 47 [13:39:51]Write i2c OK [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: F0 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: F0 09 00 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: F0 09 00 3A 1E 00 28 D5 93 66 B6 85 93 66 7A [13:39:51]GetLastDocTimeStamp 1720964342 [13:39:51]current date 1720964392 [13:39:51]FM_GetShiftState [13:39:51]SAM_PROTO_GetShiftState [13:39:51]wFMCommunicate request_size=4 [13:39:51]MH_SAM_APDU [13:39:51]CAPDU: 80 13 01 00 [13:39:51]Write to MH i2c: E2 08 00 3B 1E 80 13 01 00 00 00 00 00 D6 [13:39:51]Write i2c OK [13:39:51]MH_I2C_Read... [13:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:51]Read from MH i2c: E2 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 0E 00 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 0E 00 3B 1E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 0C [13:39:51]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:39:51]wFMCommunicate OK [13:39:51]SAM_PROTO_GetShiftState done [13:39:51]FM_GetShiftState done [13:39:51]opened in 1720915483 [13:39:51]opened+sec_in_day 1721001883 [13:39:51]quantity*price = 145200 [13:39:51]sum+1 = 145201 [13:39:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1452.00 НСП 1% : 12.85 НДС 12% : 154.19 Наличными: 1452.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 145 14.07.2024 13:39 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162833 ФПД: 145386149227686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133952&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162833&fm=145386149227686&tin=02508201610067®Number=0000000000090858&sum=145200 [13:39:52]StoreToDocumentArchive [13:39:52]shift 463 fd 162833 [13:39:52]save to /storage/0463/doc_00162833 [13:39:52]save last doc name /storage/0463/doc_00162833 to /storage/kkm_last_doc_name [13:39:52]save OK [13:39:52]Clear old archive folders... [13:39:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:39:52]tlvbuf is 01316890 [13:39:52]SAM_PROTO_ClearQueue [13:39:52]wFMCommunicate request_size=4 [13:39:52]MH_SAM_APDU [13:39:52]CAPDU: 80 09 00 00 [13:39:52]Write to MH i2c: E2 08 00 48 1E 80 09 00 00 00 00 00 00 D8 [13:39:52]Write i2c OK [13:39:52]MH_I2C_Read... [13:39:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:52]Read from MH i2c: E2 [13:39:52]MH_I2C_Read... [13:39:52]Read from MH i2c: E2 03 00 [13:39:52]MH_I2C_Read... [13:39:52]Read from MH i2c: E2 03 00 48 1E 00 90 00 DA [13:39:52]RAPDU: 90 00 [13:39:52]wFMCommunicate OK [13:39:52]SAM_PROTO_ClearQueue done [13:39:52]KKMCreateOFDPacket [13:39:52]OFDProtocolAddRootSTLVToBuf [13:39:52]FM_MakeSignedData [13:39:52]FM_MakeSignedData [13:39:52]SAM_PROTO_SignData [13:39:52]wFMCommunicate request_size=4 [13:39:52]MH_SAM_APDU [13:39:52]CAPDU: 80 0D 01 02 [13:39:52]Write to MH i2c: E2 08 00 49 1E 80 0D 01 02 00 00 00 00 E0 [13:39:52]Write i2c OK [13:39:52]MH_I2C_Read... [13:39:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:52]Read from MH i2c: E2 [13:39:52]MH_I2C_Read... [13:39:52]Read from MH i2c: E2 03 00 [13:39:52]MH_I2C_Read... [13:39:52]Read from MH i2c: E2 03 00 49 1E 00 90 00 DB [13:39:52]RAPDU: 90 00 [13:39:52]wFMCommunicate OK [13:39:52]wFMCommunicate request_size=255 [13:39:52]MH_SAM_APDU [13:39:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 30 37 02 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 28 D5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 11 7C 02 00 35 04 06 00 [13:39:52]Write to MH i2c: E2 02 01 4A 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 30 37 02 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 28 D5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 11 7C 02 00 35 04 06 00 00 00 BF [13:39:52]Write i2c OK [13:39:52]MH_I2C_Read... [13:39:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:52]Read from MH i2c: E2 [13:39:52]MH_I2C_Read... [13:39:52]Read from MH i2c: E2 03 00 [13:39:52]MH_I2C_Read... [13:39:52]Read from MH i2c: E2 03 00 4A 1E 00 90 00 DC [13:39:52]RAPDU: 90 00 [13:39:52]wFMCommunicate OK [13:39:52]wFMCommunicate request_size=11 [13:39:52]MH_SAM_APDU [13:39:52]CAPDU: 80 0D 02 02 06 84 3A 59 C7 AC A6 [13:39:52]Write to MH i2c: E2 0E 00 4B 1E 80 0D 02 02 06 00 84 3A 59 C7 AC A6 00 00 1F [13:39:52]Write i2c OK [13:39:52]MH_I2C_Read... [13:39:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:52]Read from MH i2c: E2 [13:39:52]MH_I2C_Read... [13:39:52]Read from MH i2c: E2 03 00 [13:39:52]MH_I2C_Read... [13:39:52]Read from MH i2c: E2 03 00 4B 1E 00 90 00 DD [13:39:52]RAPDU: 90 00 [13:39:52]wFMCommunicate OK [13:39:52]wFMCommunicate request_size=4 [13:39:52]MH_SAM_APDU [13:39:52]CAPDU: 80 0D 03 02 [13:39:52]Write to MH i2c: E2 08 00 4C 1E 80 0D 03 02 00 00 00 00 E5 [13:39:52]Write i2c OK [13:39:52]MH_I2C_Read... [13:39:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:53]Read from MH i2c: E2 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: E2 0B 00 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: E2 0B 00 4C 1E 00 C2 0D C4 64 5F 82 4F D1 90 00 DE [13:39:53]RAPDU: C2 0D C4 64 5F 82 4F D1 90 00 [13:39:53]wFMCommunicate OK [13:39:53]SAM_PROTO_SignData done [13:39:53]FM_MakeSignedData done [13:39:53]CreateOFDProtocolMessage [13:39:53]wFMCommunicate request_size=4 [13:39:53]MH_SAM_APDU [13:39:53]CAPDU: 80 11 00 00 [13:39:53]Write to MH i2c: E2 08 00 4D 1E 80 11 00 00 00 00 00 00 E5 [13:39:53]Write i2c OK [13:39:53]MH_I2C_Read... [13:39:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:53]Read from MH i2c: E2 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: E2 17 00 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: E2 17 00 4D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 45 [13:39:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:39:53]wFMCommunicate OK [13:39:53]CreateOFDProtocolMessage done [13:39:53]OFDSenderStorePacket 162833 [13:39:53]StoreOFDPacket docnum=162833 [13:39:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E3 50 08 01 2A D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 30 37 02 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 28 D5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 11 7C 02 00 35 04 06 00 84 3A 59 C7 AC A6 C2 0D C4 64 5F 82 4F D1 [13:39:53]CheckFolder [13:39:53]dirname=/storage/ofd_packets [13:39:53]CheckFolder done [13:39:53]ProducePacketName [13:39:53]name=ofd_packets/00162833 [13:39:53]NVStorageSaveData ofd_packets/00162833 [13:39:53]File name is /storage/ofd_packets/00162833 [13:39:53]Write 302 bytes [13:39:53]NVStorageSaveData done [13:39:53]OFDSenderStorePacket done [13:39:53]KKMCreateOFDPacket done [13:39:53]NVStorageSaveData kkm_last_timestamp [13:39:53]File name is /storage/kkm_last_timestamp [13:39:53]Write 4 bytes [13:39:53]NVStorageSaveData done [13:39:53]ExternCall_PrintAddStr [13:39:53]wPrintStart [13:39:53]Write to MH i2c: 01 00 00 4E 1E 6C [13:39:53]Write i2c OK [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: 01 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: 01 07 00 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: 01 07 00 4E 1E 00 00 00 00 00 FF 0F 81 [13:39:53]RasterBufferAndPrint [13:39:53]line Счет N : (1)1319432 [13:39:53]line ИНН: 02508201610067 [13:39:53]line Контрольно-Кассовый Чек [13:39:53]line ПРОДАЖА [13:39:53]line ТРК (МРК, ГНК) : 11 [13:39:53]line Товар: 2710194210 [13:39:53]line ДТ(л)-К-5 [13:39:53]line 20.000 * 72.60 [13:39:53]line = 1452.00 [13:39:53]line НДС 12% НСП 1% [13:39:53]line > о реализуемом товаре [13:39:53]line ИТОГО: 1452.00 [13:39:53]line НСП 1% : 12.85 [13:39:53]line НДС 12% : 154.19 [13:39:53]line Наличными: 1452.00 [13:39:53]line Безнал.: 0.00 [13:39:53]line Место: АЗС № 140 "Партнер Нефть" [13:39:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:39:53]line СНО: Общий режим [13:39:53]line Чек 145 14.07.2024 13:39 [13:39:53]line Смена: 463 ФФД: 1.0 [13:39:53]line ЗНМ: 0300000129 [13:39:53]line РНМ: 0000000000090858 [13:39:53]line Версия ККМ: 001 [13:39:53]line ФМ: 0000000000874899 [13:39:53]line ФД: 162833 [13:39:53]line ФПД: 145386149227686 [13:39:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T133952&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162833&fm=145386149227686&tin=02508201610067®Number=0000000000090858&sum=145200 [13:39:53]OFD Sender: Processing packet 162833 [packets to send 106, broken 105] [13:39:53]ProducePacketName [13:39:53]name=ofd_packets/00162833 [13:39:53]OFD Sender: To server: pG, [13:39:53]CommunicateWithHost lk.salyk.kg:30040 [13:39:53]ConnectInit lk.salyk.kg [13:39:53]written 0, free lines is 4095 [13:39:53]Connected sock=10 [13:39:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E3 50 08 01 2A D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 30 37 02 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 28 D5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 11 7C 02 00 35 04 06 00 84 3A 59 C7 AC A6 C2 0D C4 64 5F 82 4F D1 [13:39:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 67 32 47 00 3C D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 11 7C 02 00 F4 03 04 00 36 81 93 66 B6 04 01 00 00 19 15 28 ED B2 93 5C 7C [13:39:53]CommunicateWithHost err = 0 [13:39:53]CheckOFDResponse [13:39:53]1017 (14) - 77093643461234 [13:39:53]1041 (16) - 0000000000874899 [13:39:53]1040 (4) - 162833 [13:39:53]1012 (4) - 14.07.2024 07:41 [13:39:53]1206 (1) - 0 [13:39:53]OFD Sender: Remove packet 162833 [13:39:53]ProducePacketName [13:39:53]name=ofd_packets/00162833 [13:39:53]NVStorageDeleteData [13:39:53]Write to MH i2c: 01 00 00 76 1E 94 [13:39:53]Write i2c OK [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: 01 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: 01 07 00 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: 01 07 00 76 1E 00 00 00 00 00 22 0D CA [13:39:53]RasterBufferAndPrint [13:39:53]line [13:39:53]line [13:39:53]line [13:39:53]line [13:39:53]line [13:39:53]written 0, free lines is 3368 [13:39:53]MH_Cut [13:39:53]Write to MH i2c: D1 01 00 7D 1E 01 6D [13:39:53]Write i2c OK [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: D1 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: D1 01 00 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: D1 01 00 7D 1E 00 6C [13:39:53]Write to MH i2c: 01 00 00 7E 1E 9C [13:39:53]Write i2c OK [13:39:53]MH_I2C_Read... [13:39:54]OFD Sender: No OFD packet to send [13:39:54]*** Cut start [13:39:54]*** Purtial cut [13:39:54]*** Stage 1: CUTSNS_PIN = 1 [13:39:54]Read from MH i2c: 01 [13:39:54]MH_I2C_Read... [13:39:54]*** Stop cut motor [13:39:54]*** Cut end [13:39:54]Read from MH i2c: 01 07 00 [13:39:54]MH_I2C_Read... [13:39:54]Read from MH i2c: 01 07 00 7E 1E 00 00 00 00 00 FF 0F B1 [13:39:54]process_action close_receipt done [13:39:54]requested_data is exist [13:39:54]produce_requested_data [13:39:54]requested_item fm.sn is exist - process it [13:39:54]wFMCommunicate request_size=4 [13:39:54]MH_SAM_APDU [13:39:54]CAPDU: 80 11 00 00 [13:39:54]Write to MH i2c: E2 08 00 7F 1E 80 11 00 00 00 00 00 00 17 [13:39:54]Write i2c OK [13:39:54]MH_I2C_Read... [13:39:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:54]Read from MH i2c: E2 [13:39:54]MH_I2C_Read... [13:39:54]Read from MH i2c: E2 17 00 [13:39:54]MH_I2C_Read... [13:39:54]Read from MH i2c: E2 17 00 7F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 77 [13:39:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:39:54]wFMCommunicate OK [13:39:54]requested_item fd.num is exist - process it [13:39:54]SAM_PROTO_GetFieldsCounters [13:39:54]wFMCommunicate request_size=4 [13:39:54]MH_SAM_APDU [13:39:54]CAPDU: 80 13 00 00 [13:39:54]Write to MH i2c: E2 08 00 80 1E 80 13 00 00 00 00 00 00 1A [13:39:54]Write i2c OK [13:39:54]MH_I2C_Read... [13:39:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:55]Read from MH i2c: E2 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 62 00 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 62 00 80 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 11 7C 02 00 0E 04 04 00 CF 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 5F [13:39:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 11 7C 02 00 0E 04 04 00 CF 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 [13:39:55]wFMCommunicate OK [13:39:55]SAM_PROTO_GetFieldsCounters done [13:39:55]requested_item shift.num is exist - process it [13:39:55]requested_item shift.opened is exist - process it [13:39:55]req_shift_opened [13:39:55]FM_GetShiftState [13:39:55]SAM_PROTO_GetShiftState [13:39:55]wFMCommunicate request_size=4 [13:39:55]MH_SAM_APDU [13:39:55]CAPDU: 80 13 01 00 [13:39:55]Write to MH i2c: E2 08 00 81 1E 80 13 01 00 00 00 00 00 1C [13:39:55]Write i2c OK [13:39:55]MH_I2C_Read... [13:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:55]Read from MH i2c: E2 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 0E 00 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 0E 00 81 1E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 52 [13:39:55]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:39:55]wFMCommunicate OK [13:39:55]SAM_PROTO_GetShiftState done [13:39:55]FM_GetShiftState done [13:39:55]req_shift_opened done [13:39:55]requested_item shift.open_date is exist - process it [13:39:55]req_shift_open_date [13:39:55]req_shift_open_date done [13:39:55]produce_requested_data done [13:39:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162833,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:39:55]process_action_free close_receipt [13:39:55]json_value_free [13:39:55]json_value_free done [13:39:55]process_json_proto returns [13:39:55]Send response to host [13:39:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162833,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:39:55]free response buf [13:39:55]execute_script done [13:39:55]execute_script returns [13:39:55]free content buf [13:39:55]Sock 7.Close socket [13:39:55]Sock 7.Thread stoped [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:30]accept exits with 9 [13:40:30]New connection [13:40:30]New thread 3066879332 created [13:40:30]Thread 3066735972 joined [13:40:30]Waiting for new connection... [13:40:30] Sock 9.Parse request [13:40:30]Sock 9.Check first char [13:40:30]Sock 9.First char is OK [13:40:30]request: POST /json_proto HTTP/1.0 [13:40:30]Method: POST [13:40:30]URL: /json_proto [13:40:30]Method is POST - this is cgi request [13:40:30]url: /json_proto [13:40:30]query_string will be loaded in cgi processing [13:40:30]execute_cgi json_proto POST (null) [13:40:30]execute_cgi path=json_proto method=POST [13:40:30]POST find Content-Length [13:40:30]Host: 172.17.39.67:8080 [13:40:30]Content-Length: 646 [13:40:30]Content-Type: application/json [13:40:30] [13:40:30]POST finish read [13:40:30]Found Content-Length = 646 [13:40:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.000, "sum" : 726.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 726.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:30]execute_script... [13:40: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)1319433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.000, "sum" : 726.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 726.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:30]POST & json_proto [13:40:30]process_json_proto [13:40:30]json parsed OK: [13:40:30]protocol is kg_v1.0 [13:40:30]action value=close_receipt [13:40:30]process_action close_receipt [13:40:30]cmd_close_receipt [13:40:30]MH_GetDate [13:40:30]Write to MH i2c: F0 00 00 82 1E 8F [13:40:30]Write i2c OK [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: F0 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: F0 09 00 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: F0 09 00 82 1E 00 4F D5 93 66 B6 85 93 66 E9 [13:40:30]GetLastDocTimeStamp 1720964392 [13:40:30]current date 1720964431 [13:40:30]FM_GetShiftState [13:40:30]SAM_PROTO_GetShiftState [13:40:30]wFMCommunicate request_size=4 [13:40:30]MH_SAM_APDU [13:40:30]CAPDU: 80 13 01 00 [13:40:30]Write to MH i2c: E2 08 00 83 1E 80 13 01 00 00 00 00 00 1E [13:40:30]Write i2c OK [13:40:30]MH_I2C_Read... [13:40:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:30]Read from MH i2c: E2 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: E2 0E 00 [13:40:30]MH_I2C_Read... [13:40:30]Read from MH i2c: E2 0E 00 83 1E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 54 [13:40:30]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:40:30]wFMCommunicate OK [13:40:30]SAM_PROTO_GetShiftState done [13:40:30]FM_GetShiftState done [13:40:30]opened in 1720915483 [13:40:30]opened+sec_in_day 1721001883 [13:40:30]quantity*price = 72600 [13:40:30]sum+1 = 72601 [13:40:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 726.00 НСП 1% : 6.42 НДС 12% : 77.10 Наличными: 726.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 146 14.07.2024 13:40 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162834 ФПД: 187795125043731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134031&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162834&fm=187795125043731&tin=02508201610067®Number=0000000000090858&sum=72600 [13:40:31]StoreToDocumentArchive [13:40:31]shift 463 fd 162834 [13:40:31]save to /storage/0463/doc_00162834 [13:40:31]save last doc name /storage/0463/doc_00162834 to /storage/kkm_last_doc_name [13:40:31]save OK [13:40:31]Clear old archive folders... [13:40:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:40:31]tlvbuf is 01227E90 [13:40:31]SAM_PROTO_ClearQueue [13:40:31]wFMCommunicate request_size=4 [13:40:31]MH_SAM_APDU [13:40:31]CAPDU: 80 09 00 00 [13:40:31]Write to MH i2c: E2 08 00 90 1E 80 09 00 00 00 00 00 00 20 [13:40:31]Write i2c OK [13:40:31]MH_I2C_Read... [13:40:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:31]Read from MH i2c: E2 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 03 00 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 03 00 90 1E 00 90 00 22 [13:40:31]RAPDU: 90 00 [13:40:31]wFMCommunicate OK [13:40:31]SAM_PROTO_ClearQueue done [13:40:31]KKMCreateOFDPacket [13:40:31]OFDProtocolAddRootSTLVToBuf [13:40:31]FM_MakeSignedData [13:40:31]FM_MakeSignedData [13:40:31]SAM_PROTO_SignData [13:40:31]wFMCommunicate request_size=4 [13:40:31]MH_SAM_APDU [13:40:31]CAPDU: 80 0D 01 02 [13:40:31]Write to MH i2c: E2 08 00 91 1E 80 0D 01 02 00 00 00 00 28 [13:40:31]Write i2c OK [13:40:31]MH_I2C_Read... [13:40:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:31]Read from MH i2c: E2 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 03 00 [13:40:31]MH_I2C_Read... [13:40:31]Read from MH i2c: E2 03 00 91 1E 00 90 00 23 [13:40:31]RAPDU: 90 00 [13:40:31]wFMCommunicate OK [13:40:31]wFMCommunicate request_size=255 [13:40:31]MH_SAM_APDU [13:40:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 98 1B 01 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 4F D5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 12 7C 02 00 35 04 06 00 [13:40:31]Write to MH i2c: E2 02 01 92 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 98 1B 01 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 4F D5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 12 7C 02 00 35 04 06 00 00 00 19 [13:40:31]Write i2c OK [13:40:31]MH_I2C_Read... [13:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:32]Read from MH i2c: E2 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 03 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 03 00 92 1E 00 90 00 24 [13:40:32]RAPDU: 90 00 [13:40:32]wFMCommunicate OK [13:40:32]wFMCommunicate request_size=11 [13:40:32]MH_SAM_APDU [13:40:32]CAPDU: 80 0D 02 02 06 AA CC 75 B8 02 13 [13:40:32]Write to MH i2c: E2 0E 00 93 1E 80 0D 02 02 06 00 AA CC 75 B8 02 13 00 00 EF [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:32]Read from MH i2c: E2 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 03 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 03 00 93 1E 00 90 00 25 [13:40:32]RAPDU: 90 00 [13:40:32]wFMCommunicate OK [13:40:32]wFMCommunicate request_size=4 [13:40:32]MH_SAM_APDU [13:40:32]CAPDU: 80 0D 03 02 [13:40:32]Write to MH i2c: E2 08 00 94 1E 80 0D 03 02 00 00 00 00 2D [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:32]Read from MH i2c: E2 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 0B 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 0B 00 94 1E 00 DA 3C 6C 69 49 28 24 5D 90 00 0B [13:40:32]RAPDU: DA 3C 6C 69 49 28 24 5D 90 00 [13:40:32]wFMCommunicate OK [13:40:32]SAM_PROTO_SignData done [13:40:32]FM_MakeSignedData done [13:40:32]CreateOFDProtocolMessage [13:40:32]wFMCommunicate request_size=4 [13:40:32]MH_SAM_APDU [13:40:32]CAPDU: 80 11 00 00 [13:40:32]Write to MH i2c: E2 08 00 95 1E 80 11 00 00 00 00 00 00 2D [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:32]Read from MH i2c: E2 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 17 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 17 00 95 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8D [13:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:40:32]wFMCommunicate OK [13:40:32]CreateOFDProtocolMessage done [13:40:32]OFDSenderStorePacket 162834 [13:40:32]StoreOFDPacket docnum=162834 [13:40:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BD D6 08 01 1E C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 98 1B 01 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 4F D5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 12 7C 02 00 35 04 06 00 AA CC 75 B8 02 13 DA 3C 6C 69 49 28 24 5D [13:40:32]CheckFolder [13:40:32]dirname=/storage/ofd_packets [13:40:32]CheckFolder done [13:40:32]ProducePacketName [13:40:32]name=ofd_packets/00162834 [13:40:32]NVStorageSaveData ofd_packets/00162834 [13:40:32]File name is /storage/ofd_packets/00162834 [13:40:32]Write 302 bytes [13:40:32]NVStorageSaveData done [13:40:32]OFDSenderStorePacket done [13:40:32]KKMCreateOFDPacket done [13:40:32]NVStorageSaveData kkm_last_timestamp [13:40:32]File name is /storage/kkm_last_timestamp [13:40:32]Write 4 bytes [13:40:32]NVStorageSaveData done [13:40:32]ExternCall_PrintAddStr [13:40:32]wPrintStart [13:40:32]Write to MH i2c: 01 00 00 96 1E B4 [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: 01 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: 01 07 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: 01 07 00 96 1E 00 00 00 00 00 FF 0F C9 [13:40:32]RasterBufferAndPrint [13:40:32]line Счет N : (1)1319433 [13:40:32]line ИНН: 02508201610067 [13:40:32]line Контрольно-Кассовый Чек [13:40:32]line ПРОДАЖА [13:40:32]line ТРК (МРК, ГНК) : 11 [13:40:32]line Товар: 2710194210 [13:40:32]line ДТ(л)-К-5 [13:40:32]line 10.000 * 72.60 [13:40:32]line = 726.00 [13:40:32]line НДС 12% НСП 1% [13:40:32]line > о реализуемом товаре [13:40:32]line ИТОГО: 726.00 [13:40:32]line НСП 1% : 6.42 [13:40:32]line НДС 12% : 77.10 [13:40:32]line Наличными: 726.00 [13:40:32]line Безнал.: 0.00 [13:40:32]line Место: АЗС № 140 "Партнер Нефть" [13:40:32]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:40:32]line СНО: Общий режим [13:40:32]line Чек 146 14.07.2024 13:40 [13:40:32]line Смена: 463 ФФД: 1.0 [13:40:32]line ЗНМ: 0300000129 [13:40:32]line РНМ: 0000000000090858 [13:40:32]line Версия ККМ: 001 [13:40:32]line ФМ: 0000000000874899 [13:40:32]line ФД: 162834 [13:40:32]line ФПД: 187795125043731 [13:40:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134031&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162834&fm=187795125043731&tin=02508201610067®Number=0000000000090858&sum=72600 [13:40:32]OFD Sender: Processing packet 162834 [packets to send 106, broken 105] [13:40:32]ProducePacketName [13:40:32]name=ofd_packets/00162834 [13:40:32]OFD Sender: To server: pG, [13:40:32]CommunicateWithHost lk.salyk.kg:30040 [13:40:32]ConnectInit lk.salyk.kg [13:40:32]written 0, free lines is 4095 [13:40:32]Connected sock=10 [13:40:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BD D6 08 01 1E C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 98 1B 01 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 4F D5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 12 7C 02 00 35 04 06 00 AA CC 75 B8 02 13 DA 3C 6C 69 49 28 24 5D [13:40:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E6 29 47 00 B4 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 12 7C 02 00 F4 03 04 00 5D 81 93 66 B6 04 01 00 00 61 AC 0B DC E9 74 03 02 [13:40:33]CommunicateWithHost err = 0 [13:40:33]CheckOFDResponse [13:40:33]1017 (14) - 77093643461234 [13:40:33]1041 (16) - 0000000000874899 [13:40:33]1040 (4) - 162834 [13:40:33]1012 (4) - 14.07.2024 07:42 [13:40:33]1206 (1) - 0 [13:40:33]OFD Sender: Remove packet 162834 [13:40:33]ProducePacketName [13:40:33]name=ofd_packets/00162834 [13:40:33]NVStorageDeleteData [13:40:33]Write to MH i2c: 01 00 00 BE 1E DC [13:40:33]Write i2c OK [13:40:33]MH_I2C_Read... [13:40:33]Read from MH i2c: 01 [13:40:33]MH_I2C_Read... [13:40:33]Read from MH i2c: 01 07 00 [13:40:33]MH_I2C_Read... [13:40:33]Read from MH i2c: 01 07 00 BE 1E 00 00 00 00 00 08 0D F8 [13:40:33]RasterBufferAndPrint [13:40:33]line [13:40:33]line [13:40:33]line [13:40:33]line [13:40:33]line [13:40:33]written 0, free lines is 3342 [13:40:33]MH_Cut [13:40:33]Write to MH i2c: D1 01 00 C5 1E 01 B5 [13:40:33]Write i2c OK [13:40:33]MH_I2C_Read... [13:40:33]Read from MH i2c: D1 [13:40:33]MH_I2C_Read... [13:40:33]Read from MH i2c: D1 01 00 [13:40:33]MH_I2C_Read... [13:40:33]Read from MH i2c: D1 01 00 C5 1E 00 B4 [13:40:33]Write to MH i2c: 01 00 00 C6 1E E4 [13:40:33]Write i2c OK [13:40:33]MH_I2C_Read... [13:40:33]OFD Sender: No OFD packet to send [13:40:33]*** Cut start [13:40:33]*** Purtial cut [13:40:33]*** CUTSNS_PIN = 0 [13:40:34]*** Stage 1: CUTSNS_PIN = 1 [13:40:35]Read from MH i2c: 01 [13:40:35]MH_I2C_Read... [13:40:35]*** Stop cut motor [13:40:35]Read from MH i2c: 01 07 00 [13:40:35]MH_I2C_Read... [13:40:35]*** Cut end [13:40:35]Read from MH i2c: 01 07 00 C6 1E 00 00 00 00 00 FF 0F F9 [13:40:35]process_action close_receipt done [13:40:35]requested_data is exist [13:40:35]produce_requested_data [13:40:35]requested_item fm.sn is exist - process it [13:40:35]wFMCommunicate request_size=4 [13:40:35]MH_SAM_APDU [13:40:35]CAPDU: 80 11 00 00 [13:40:35]Write to MH i2c: E2 08 00 C7 1E 80 11 00 00 00 00 00 00 5F [13:40:35]Write i2c OK [13:40:35]MH_I2C_Read... [13:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:35]Read from MH i2c: E2 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: E2 17 00 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: E2 17 00 C7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BF [13:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:40:35]wFMCommunicate OK [13:40:35]requested_item fd.num is exist - process it [13:40:35]SAM_PROTO_GetFieldsCounters [13:40:35]wFMCommunicate request_size=4 [13:40:35]MH_SAM_APDU [13:40:35]CAPDU: 80 13 00 00 [13:40:35]Write to MH i2c: E2 08 00 C8 1E 80 13 00 00 00 00 00 00 62 [13:40:35]Write i2c OK [13:40:35]MH_I2C_Read... [13:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:36]Read from MH i2c: E2 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 62 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 62 00 C8 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 12 7C 02 00 0E 04 04 00 CF 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 AB [13:40:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 12 7C 02 00 0E 04 04 00 CF 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 [13:40:36]wFMCommunicate OK [13:40:36]SAM_PROTO_GetFieldsCounters done [13:40:36]requested_item shift.num is exist - process it [13:40:36]requested_item shift.opened is exist - process it [13:40:36]req_shift_opened [13:40:36]FM_GetShiftState [13:40:36]SAM_PROTO_GetShiftState [13:40:36]wFMCommunicate request_size=4 [13:40:36]MH_SAM_APDU [13:40:36]CAPDU: 80 13 01 00 [13:40:36]Write to MH i2c: E2 08 00 C9 1E 80 13 01 00 00 00 00 00 64 [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:36]Read from MH i2c: E2 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 0E 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 0E 00 C9 1E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9A [13:40:36]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:40:36]wFMCommunicate OK [13:40:36]SAM_PROTO_GetShiftState done [13:40:36]FM_GetShiftState done [13:40:36]req_shift_opened done [13:40:36]requested_item shift.open_date is exist - process it [13:40:36]req_shift_open_date [13:40:36]req_shift_open_date done [13:40:36]produce_requested_data done [13:40:36]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162834,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:40:36]process_action_free close_receipt [13:40:36]json_value_free [13:40:36]json_value_free done [13:40:36]process_json_proto returns [13:40:36]Send response to host [13:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162834,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:40:36]free response buf [13:40:36]execute_script done [13:40:36]execute_script returns [13:40:36]free content buf [13:40:36]Sock 9.Close socket [13:40:36]Sock 9.Thread stoped [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:22]accept exits with 7 [13:46:22]New connection [13:46:22]New thread 3066735972 created [13:46:22]Thread 3066879332 joined [13:46:22]Waiting for new connection... [13:46:22] Sock 7.Parse request [13:46:22]Sock 7.Check first char [13:46:22]Sock 7.First char is OK [13:46:22]request: POST /json_proto HTTP/1.0 [13:46:22]Method: POST [13:46:22]URL: /json_proto [13:46:22]Method is POST - this is cgi request [13:46:22]url: /json_proto [13:46:22]query_string will be loaded in cgi processing [13:46:22]execute_cgi json_proto POST (null) [13:46:22]execute_cgi path=json_proto method=POST [13:46:22]POST find Content-Length [13:46:22]Host: 172.17.39.67:8080 [13:46:22]Content-Length: 683 [13:46:22]Content-Type: application/json [13:46:22] [13:46:22]POST finish read [13:46:22]Found Content-Length = 683 [13:46:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "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" ] } } [13:46:22]execute_script... [13:46:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "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" ] } } [13:46:22]POST & json_proto [13:46:22]process_json_proto [13:46:22]json parsed OK: [13:46:22]protocol is kg_v1.0 [13:46:22]action value=close_receipt [13:46:22]process_action close_receipt [13:46:22]cmd_close_receipt [13:46:22]MH_GetDate [13:46:22]Write to MH i2c: F0 00 00 CA 1E D7 [13:46:22]Write i2c OK [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: F0 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: F0 09 00 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: F0 09 00 CA 1E 00 AF D6 93 66 B6 85 93 66 92 [13:46:22]GetLastDocTimeStamp 1720964431 [13:46:22]current date 1720964783 [13:46:22]FM_GetShiftState [13:46:22]SAM_PROTO_GetShiftState [13:46:22]wFMCommunicate request_size=4 [13:46:22]MH_SAM_APDU [13:46:22]CAPDU: 80 13 01 00 [13:46:22]Write to MH i2c: E2 08 00 CB 1E 80 13 01 00 00 00 00 00 66 [13:46:22]Write i2c OK [13:46:22]MH_I2C_Read... [13:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:22]Read from MH i2c: E2 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: E2 0E 00 [13:46:22]MH_I2C_Read... [13:46:22]Read from MH i2c: E2 0E 00 CB 1E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9C [13:46:22]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:46:22]wFMCommunicate OK [13:46:22]SAM_PROTO_GetShiftState done [13:46:22]FM_GetShiftState done [13:46:22]opened in 1720915483 [13:46:22]opened+sec_in_day 1721001883 [13:46:22]quantity*price = 60040 [13:46:22]sum+1 = 60041 [13:46:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 147 14.07.2024 13:46 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162835 ФПД: 86391419506111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134623&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162835&fm=86391419506111&tin=02508201610067®Number=0000000000090858&sum=60000 [13:46:23]StoreToDocumentArchive [13:46:23]shift 463 fd 162835 [13:46:23]save to /storage/0463/doc_00162835 [13:46:23]save last doc name /storage/0463/doc_00162835 to /storage/kkm_last_doc_name [13:46:23]save OK [13:46:23]Clear old archive folders... [13:46:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:46:23]tlvbuf is 013168D0 [13:46:23]SAM_PROTO_ClearQueue [13:46:23]wFMCommunicate request_size=4 [13:46:23]MH_SAM_APDU [13:46:23]CAPDU: 80 09 00 00 [13:46:23]Write to MH i2c: E2 08 00 D8 1E 80 09 00 00 00 00 00 00 68 [13:46:23]Write i2c OK [13:46:23]MH_I2C_Read... [13:46:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:23]Read from MH i2c: E2 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 03 00 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 03 00 D8 1E 00 90 00 6A [13:46:23]RAPDU: 90 00 [13:46:23]wFMCommunicate OK [13:46:23]SAM_PROTO_ClearQueue done [13:46:23]KKMCreateOFDPacket [13:46:23]OFDProtocolAddRootSTLVToBuf [13:46:23]FM_MakeSignedData [13:46:23]FM_MakeSignedData [13:46:23]SAM_PROTO_SignData [13:46:23]wFMCommunicate request_size=4 [13:46:23]MH_SAM_APDU [13:46:23]CAPDU: 80 0D 01 02 [13:46:23]Write to MH i2c: E2 08 00 D9 1E 80 0D 01 02 00 00 00 00 70 [13:46:23]Write i2c OK [13:46:23]MH_I2C_Read... [13:46:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:23]Read from MH i2c: E2 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 03 00 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 03 00 D9 1E 00 90 00 6B [13:46:23]RAPDU: 90 00 [13:46:23]wFMCommunicate OK [13:46:23]wFMCommunicate request_size=255 [13:46:23]MH_SAM_APDU [13:46:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 AF D6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 13 7C 02 00 35 04 06 00 [13:46:23]Write to MH i2c: E2 02 01 DA 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 AF D6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 13 7C 02 00 35 04 06 00 00 00 3A [13:46:23]Write i2c OK [13:46:23]MH_I2C_Read... [13:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:23]Read from MH i2c: E2 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 03 00 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 03 00 DA 1E 00 90 00 6C [13:46:23]RAPDU: 90 00 [13:46:23]wFMCommunicate OK [13:46:23]wFMCommunicate request_size=11 [13:46:23]MH_SAM_APDU [13:46:23]CAPDU: 80 0D 02 02 06 4E 92 91 DF 0D BF [13:46:23]Write to MH i2c: E2 0E 00 DB 1E 80 0D 02 02 06 00 4E 92 91 DF 0D BF 00 00 9B [13:46:23]Write i2c OK [13:46:23]MH_I2C_Read... [13:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:23]Read from MH i2c: E2 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 03 00 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 03 00 DB 1E 00 90 00 6D [13:46:23]RAPDU: 90 00 [13:46:23]wFMCommunicate OK [13:46:23]wFMCommunicate request_size=4 [13:46:23]MH_SAM_APDU [13:46:23]CAPDU: 80 0D 03 02 [13:46:23]Write to MH i2c: E2 08 00 DC 1E 80 0D 03 02 00 00 00 00 75 [13:46:23]Write i2c OK [13:46:23]MH_I2C_Read... [13:46:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:23]Read from MH i2c: E2 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 0B 00 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 0B 00 DC 1E 00 F2 C6 18 07 D0 6E 02 CE 90 00 5B [13:46:23]RAPDU: F2 C6 18 07 D0 6E 02 CE 90 00 [13:46:23]wFMCommunicate OK [13:46:23]SAM_PROTO_SignData done [13:46:23]FM_MakeSignedData done [13:46:23]CreateOFDProtocolMessage [13:46:23]wFMCommunicate request_size=4 [13:46:23]MH_SAM_APDU [13:46:23]CAPDU: 80 11 00 00 [13:46:23]Write to MH i2c: E2 08 00 DD 1E 80 11 00 00 00 00 00 00 75 [13:46:23]Write i2c OK [13:46:23]MH_I2C_Read... [13:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:23]Read from MH i2c: E2 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 17 00 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: E2 17 00 DD 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D5 [13:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:46:23]wFMCommunicate OK [13:46:23]CreateOFDProtocolMessage done [13:46:23]OFDSenderStorePacket 162835 [13:46:23]StoreOFDPacket docnum=162835 [13:46:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B7 13 08 01 8F A7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 AF D6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 13 7C 02 00 35 04 06 00 4E 92 91 DF 0D BF F2 C6 18 07 D0 6E 02 CE [13:46:23]CheckFolder [13:46:23]dirname=/storage/ofd_packets [13:46:23]CheckFolder done [13:46:23]ProducePacketName [13:46:23]name=ofd_packets/00162835 [13:46:23]NVStorageSaveData ofd_packets/00162835 [13:46:23]File name is /storage/ofd_packets/00162835 [13:46:23]Write 302 bytes [13:46:23]NVStorageSaveData done [13:46:23]OFDSenderStorePacket done [13:46:23]KKMCreateOFDPacket done [13:46:23]NVStorageSaveData kkm_last_timestamp [13:46:23]File name is /storage/kkm_last_timestamp [13:46:23]Write 4 bytes [13:46:23]NVStorageSaveData done [13:46:23]ExternCall_PrintAddStr [13:46:23]wPrintStart [13:46:23]Write to MH i2c: 01 00 00 DE 1E FC [13:46:23]Write i2c OK [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: 01 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: 01 07 00 [13:46:23]MH_I2C_Read... [13:46:23]Read from MH i2c: 01 07 00 DE 1E 00 00 00 00 00 FF 0F 11 [13:46:23]RasterBufferAndPrint [13:46:23]line Счет N : (1)1319434 [13:46:23]line ИНН: 02508201610067 [13:46:23]line Контрольно-Кассовый Чек [13:46:23]line ПРОДАЖА [13:46:23]line ТРК (МРК, ГНК) : 21 [13:46:23]line Товар: 2710194210 [13:46:23]line ДТ(л)-К-5 [13:46:23]line 8.270 * 72.60 [13:46:23]line = 600.40 [13:46:23]line НДС 12% НСП 1% [13:46:23]line > о реализуемом товаре [13:46:23]line ОКРУГЛЕНИЕ: -0.40 [13:46:23]line ИТОГО: 600.00 [13:46:23]line Внесено: 600.00 [13:46:23]line СДАЧА: 0.00 [13:46:23]line НСП 1% : 5.31 [13:46:23]line НДС 12% : 63.76 [13:46:23]line Наличными: 600.00 [13:46:23]line Безнал.: 0.00 [13:46:23]line Место: АЗС № 140 "Партнер Нефть" [13:46:23]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:46:23]line СНО: Общий режим [13:46:23]line Чек 147 14.07.2024 13:46 [13:46:23]line Смена: 463 ФФД: 1.0 [13:46:23]line ЗНМ: 0300000129 [13:46:23]line РНМ: 0000000000090858 [13:46:23]line Версия ККМ: 001 [13:46:23]line ФМ: 0000000000874899 [13:46:23]line ФД: 162835 [13:46:23]line ФПД: 86391419506111 [13:46:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T134623&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162835&fm=86391419506111&tin=02508201610067®Number=0000000000090858&sum=60000 [13:46:24]OFD Sender: Processing packet 162835 [packets to send 106, broken 105] [13:46:24]ProducePacketName [13:46:24]name=ofd_packets/00162835 [13:46:24]OFD Sender: To server: pG, [13:46:24]CommunicateWithHost lk.salyk.kg:30040 [13:46:24]ConnectInit lk.salyk.kg [13:46:24]written 0, free lines is 4095 [13:46:24]Connected sock=10 [13:46:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B7 13 08 01 8F A7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 AF D6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 13 7C 02 00 35 04 06 00 4E 92 91 DF 0D BF F2 C6 18 07 D0 6E 02 CE [13:46:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 06 0A 47 00 9C 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 13 7C 02 00 F4 03 04 00 BD 82 93 66 B6 04 01 00 00 B9 4B CE B5 B1 EE C2 DC [13:46:24]CommunicateWithHost err = 0 [13:46:24]CheckOFDResponse [13:46:24]1017 (14) - 77093643461234 [13:46:24]1041 (16) - 0000000000874899 [13:46:24]1040 (4) - 162835 [13:46:24]1012 (4) - 14.07.2024 07:48 [13:46:24]1206 (1) - 0 [13:46:24]OFD Sender: Remove packet 162835 [13:46:24]ProducePacketName [13:46:24]name=ofd_packets/00162835 [13:46:24]NVStorageDeleteData [13:46:24]Write to MH i2c: 01 00 00 09 1F 28 [13:46:24]Write i2c OK [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: 01 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: 01 07 00 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: 01 07 00 09 1F 00 00 00 00 00 CD 0C 08 [13:46:24]RasterBufferAndPrint [13:46:24]line [13:46:24]line [13:46:24]line [13:46:24]line [13:46:24]line [13:46:24]written 0, free lines is 3287 [13:46:24]MH_Cut [13:46:24]Write to MH i2c: D1 01 00 10 1F 01 01 [13:46:24]Write i2c OK [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: D1 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: D1 01 00 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: D1 01 00 10 1F 00 00 [13:46:24]Write to MH i2c: 01 00 00 11 1F 30 [13:46:24]Write i2c OK [13:46:24]MH_I2C_Read... [13:46:25]OFD Sender: No OFD packet to send [13:46:25]*** Cut start [13:46:25]*** Purtial cut [13:46:25]*** Stage 1: CUTSNS_PIN = 1 [13:46:25]Read from MH i2c: 01 [13:46:25]MH_I2C_Read... [13:46:25]*** Stop cut motor [13:46:25]*** Cut end [13:46:25]Read from MH i2c: 01 07 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: 01 07 00 11 1F 00 00 00 00 00 FF 0F 45 [13:46:25]process_action close_receipt done [13:46:25]requested_data is exist [13:46:25]produce_requested_data [13:46:25]requested_item fm.sn is exist - process it [13:46:25]wFMCommunicate request_size=4 [13:46:25]MH_SAM_APDU [13:46:25]CAPDU: 80 11 00 00 [13:46:25]Write to MH i2c: E2 08 00 12 1F 80 11 00 00 00 00 00 00 AB [13:46:25]Write i2c OK [13:46:25]MH_I2C_Read... [13:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:25]Read from MH i2c: E2 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 17 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 17 00 12 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0B [13:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:46:25]wFMCommunicate OK [13:46:25]requested_item fd.num is exist - process it [13:46:25]SAM_PROTO_GetFieldsCounters [13:46:25]wFMCommunicate request_size=4 [13:46:25]MH_SAM_APDU [13:46:25]CAPDU: 80 13 00 00 [13:46:25]Write to MH i2c: E2 08 00 13 1F 80 13 00 00 00 00 00 00 AE [13:46:25]Write i2c OK [13:46:25]MH_I2C_Read... [13:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:25]Read from MH i2c: E2 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 62 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 62 00 13 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 13 7C 02 00 0E 04 04 00 CF 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 FB [13:46:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 13 7C 02 00 0E 04 04 00 CF 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 [13:46:25]wFMCommunicate OK [13:46:25]SAM_PROTO_GetFieldsCounters done [13:46:25]requested_item shift.num is exist - process it [13:46:25]requested_item shift.opened is exist - process it [13:46:25]req_shift_opened [13:46:25]FM_GetShiftState [13:46:25]SAM_PROTO_GetShiftState [13:46:25]wFMCommunicate request_size=4 [13:46:25]MH_SAM_APDU [13:46:25]CAPDU: 80 13 01 00 [13:46:25]Write to MH i2c: E2 08 00 14 1F 80 13 01 00 00 00 00 00 B0 [13:46:25]Write i2c OK [13:46:25]MH_I2C_Read... [13:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:25]Read from MH i2c: E2 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 0E 00 [13:46:25]MH_I2C_Read... [13:46:25]Read from MH i2c: E2 0E 00 14 1F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E6 [13:46:25]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:46:25]wFMCommunicate OK [13:46:25]SAM_PROTO_GetShiftState done [13:46:25]FM_GetShiftState done [13:46:25]req_shift_opened done [13:46:25]requested_item shift.open_date is exist - process it [13:46:25]req_shift_open_date [13:46:25]req_shift_open_date done [13:46:25]produce_requested_data done [13:46:25]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162835,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:46:25]process_action_free close_receipt [13:46:25]json_value_free [13:46:25]json_value_free done [13:46:25]process_json_proto returns [13:46:25]Send response to host [13:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162835,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:46:25]free response buf [13:46:25]execute_script done [13:46:25]execute_script returns [13:46:25]free content buf [13:46:25]Sock 7.Close socket [13:46:25]Sock 7.Thread stoped [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:29]accept exits with 9 [13:50:29]New connection [13:50:29]New thread 3066879332 created [13:50:29]Thread 3066735972 joined [13:50:29]Waiting for new connection... [13:50:29] Sock 9.Parse request [13:50:29]Sock 9.Check first char [13:50:29]Sock 9.First char is OK [13:50:29]request: POST /json_proto HTTP/1.0 [13:50:29]Method: POST [13:50:29]URL: /json_proto [13:50:29]Method is POST - this is cgi request [13:50:29]url: /json_proto [13:50:29]query_string will be loaded in cgi processing [13:50:29]execute_cgi json_proto POST (null) [13:50:29]execute_cgi path=json_proto method=POST [13:50:29]POST find Content-Length [13:50:29]Host: 172.17.39.67:8080 [13:50:29]Content-Length: 678 [13:50:29]Content-Type: application/json [13:50:29] [13:50:29]POST finish read [13:50:29]Found Content-Length = 678 [13:50:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:50:29]execute_script... [13:50:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:50:29]POST & json_proto [13:50:29]process_json_proto [13:50:29]json parsed OK: [13:50:29]protocol is kg_v1.0 [13:50:29]action value=close_receipt [13:50:29]process_action close_receipt [13:50:29]cmd_close_receipt [13:50:29]MH_GetDate [13:50:29]Write to MH i2c: F0 00 00 15 1F 23 [13:50:29]Write i2c OK [13:50:29]MH_I2C_Read... [13:50:29]Read from MH i2c: F0 [13:50:29]MH_I2C_Read... [13:50:29]Read from MH i2c: F0 09 00 [13:50:29]MH_I2C_Read... [13:50:29]Read from MH i2c: F0 09 00 15 1F 00 A6 D7 93 66 B6 85 93 66 D6 [13:50:29]GetLastDocTimeStamp 1720964783 [13:50:29]current date 1720965030 [13:50:29]FM_GetShiftState [13:50:29]SAM_PROTO_GetShiftState [13:50:29]wFMCommunicate request_size=4 [13:50:29]MH_SAM_APDU [13:50:29]CAPDU: 80 13 01 00 [13:50:29]Write to MH i2c: E2 08 00 16 1F 80 13 01 00 00 00 00 00 B2 [13:50:29]Write i2c OK [13:50:29]MH_I2C_Read... [13:50:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:29]Read from MH i2c: E2 [13:50:29]MH_I2C_Read... [13:50:29]Read from MH i2c: E2 0E 00 [13:50:29]MH_I2C_Read... [13:50:29]Read from MH i2c: E2 0E 00 16 1F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E8 [13:50:29]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:50:29]wFMCommunicate OK [13:50:29]SAM_PROTO_GetShiftState done [13:50:29]FM_GetShiftState done [13:50:29]opened in 1720915483 [13:50:29]opened+sec_in_day 1721001883 [13:50:29]quantity*price = 50056 [13:50:29]sum+1 = 50058 [13:50:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 148 14.07.2024 13:50 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162836 ФПД: 270137832568829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T135030&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162836&fm=270137832568829&tin=02508201610067®Number=0000000000090858&sum=50000 [13:50:30]StoreToDocumentArchive [13:50:30]shift 463 fd 162836 [13:50:30]save to /storage/0463/doc_00162836 [13:50:30]save last doc name /storage/0463/doc_00162836 to /storage/kkm_last_doc_name [13:50:30]save OK [13:50:30]Clear old archive folders... [13:50:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:50:30]tlvbuf is 01235820 [13:50:30]SAM_PROTO_ClearQueue [13:50:30]wFMCommunicate request_size=4 [13:50:30]MH_SAM_APDU [13:50:30]CAPDU: 80 09 00 00 [13:50:30]Write to MH i2c: E2 08 00 23 1F 80 09 00 00 00 00 00 00 B4 [13:50:30]Write i2c OK [13:50:30]MH_I2C_Read... [13:50:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:30]OFD Sender: No OFD packet to send [13:50:30]Read from MH i2c: E2 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: E2 03 00 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: E2 03 00 23 1F 00 90 00 B6 [13:50:30]RAPDU: 90 00 [13:50:30]wFMCommunicate OK [13:50:30]SAM_PROTO_ClearQueue done [13:50:30]KKMCreateOFDPacket [13:50:30]OFDProtocolAddRootSTLVToBuf [13:50:30]FM_MakeSignedData [13:50:30]FM_MakeSignedData [13:50:30]SAM_PROTO_SignData [13:50:30]wFMCommunicate request_size=4 [13:50:30]MH_SAM_APDU [13:50:30]CAPDU: 80 0D 01 02 [13:50:30]Write to MH i2c: E2 08 00 24 1F 80 0D 01 02 00 00 00 00 BC [13:50:30]Write i2c OK [13:50:30]MH_I2C_Read... [13:50:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:30]Read from MH i2c: E2 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: E2 03 00 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: E2 03 00 24 1F 00 90 00 B7 [13:50:30]RAPDU: 90 00 [13:50:30]wFMCommunicate OK [13:50:30]wFMCommunicate request_size=255 [13:50:30]MH_SAM_APDU [13:50:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 94 00 00 00 F4 03 04 00 A6 D7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 14 7C 02 00 35 04 06 00 F5 [13:50:30]Write to MH i2c: E2 02 01 25 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 94 00 00 00 F4 03 04 00 A6 D7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 14 7C 02 00 35 04 06 00 F5 00 00 D9 [13:50:30]Write i2c OK [13:50:30]MH_I2C_Read... [13:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:30]Read from MH i2c: E2 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: E2 03 00 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: E2 03 00 25 1F 00 90 00 B8 [13:50:30]RAPDU: 90 00 [13:50:30]wFMCommunicate OK [13:50:30]wFMCommunicate request_size=10 [13:50:30]MH_SAM_APDU [13:50:30]CAPDU: 80 0D 02 02 05 B0 5D 8C F7 FD [13:50:30]Write to MH i2c: E2 0D 00 26 1F 80 0D 02 02 05 00 B0 5D 8C F7 FD 00 00 56 [13:50:30]Write i2c OK [13:50:30]MH_I2C_Read... [13:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:30]Read from MH i2c: E2 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: E2 03 00 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: E2 03 00 26 1F 00 90 00 B9 [13:50:30]RAPDU: 90 00 [13:50:30]wFMCommunicate OK [13:50:30]wFMCommunicate request_size=4 [13:50:30]MH_SAM_APDU [13:50:30]CAPDU: 80 0D 03 02 [13:50:30]Write to MH i2c: E2 08 00 27 1F 80 0D 03 02 00 00 00 00 C1 [13:50:30]Write i2c OK [13:50:30]MH_I2C_Read... [13:50:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:30]Read from MH i2c: E2 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: E2 0B 00 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: E2 0B 00 27 1F 00 FA 0C 0B FD 20 26 B6 BC 90 00 88 [13:50:30]RAPDU: FA 0C 0B FD 20 26 B6 BC 90 00 [13:50:30]wFMCommunicate OK [13:50:30]SAM_PROTO_SignData done [13:50:30]FM_MakeSignedData done [13:50:30]CreateOFDProtocolMessage [13:50:30]wFMCommunicate request_size=4 [13:50:30]MH_SAM_APDU [13:50:30]CAPDU: 80 11 00 00 [13:50:30]Write to MH i2c: E2 08 00 28 1F 80 11 00 00 00 00 00 00 C1 [13:50:30]Write i2c OK [13:50:30]MH_I2C_Read... [13:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:30]Read from MH i2c: E2 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: E2 17 00 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: E2 17 00 28 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 21 [13:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:50:30]wFMCommunicate OK [13:50:30]CreateOFDProtocolMessage done [13:50:30]OFDSenderStorePacket 162836 [13:50:30]StoreOFDPacket docnum=162836 [13:50:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 05 1D 07 01 2D 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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 94 00 00 00 F4 03 04 00 A6 D7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 14 7C 02 00 35 04 06 00 F5 B0 5D 8C F7 FD FA 0C 0B FD 20 26 B6 BC [13:50:30]CheckFolder [13:50:30]dirname=/storage/ofd_packets [13:50:30]CheckFolder done [13:50:30]ProducePacketName [13:50:30]name=ofd_packets/00162836 [13:50:30]NVStorageSaveData ofd_packets/00162836 [13:50:30]File name is /storage/ofd_packets/00162836 [13:50:30]Write 301 bytes [13:50:30]NVStorageSaveData done [13:50:30]OFDSenderStorePacket done [13:50:30]KKMCreateOFDPacket done [13:50:30]NVStorageSaveData kkm_last_timestamp [13:50:30]File name is /storage/kkm_last_timestamp [13:50:30]Write 4 bytes [13:50:30]NVStorageSaveData done [13:50:30]ExternCall_PrintAddStr [13:50:30]wPrintStart [13:50:30]Write to MH i2c: 01 00 00 29 1F 48 [13:50:30]Write i2c OK [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: 01 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: 01 07 00 [13:50:30]MH_I2C_Read... [13:50:30]Read from MH i2c: 01 07 00 29 1F 00 00 00 00 00 FF 0F 5D [13:50:30]RasterBufferAndPrint [13:50:30]line Счет N : (1)1319435 [13:50:30]line ИНН: 02508201610067 [13:50:30]line Контрольно-Кассовый Чек [13:50:30]line ПРОДАЖА [13:50:30]line ТРК (МРК, ГНК) : 53 [13:50:30]line Товар: 2710124130 [13:50:30]line Аи-92-К-5 [13:50:30]line 7.550 * 66.30 [13:50:30]line = 500.57 [13:50:30]line НДС 12% НСП 1% [13:50:30]line > о реализуемом товаре [13:50:30]line ОКРУГЛЕНИЕ: -0.57 [13:50:30]line ИТОГО: 500.00 [13:50:30]line Внесено: 500.00 [13:50:30]line СДАЧА: 0.00 [13:50:30]line НСП 1% : 4.43 [13:50:30]line НДС 12% : 53.16 [13:50:30]line Наличными: 500.00 [13:50:30]line Безнал.: 0.00 [13:50:30]line Место: АЗС № 140 "Партнер Нефть" [13:50:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:50:30]line СНО: Общий режим [13:50:30]line Чек 148 14.07.2024 13:50 [13:50:30]line Смена: 463 ФФД: 1.0 [13:50:30]line ЗНМ: 0300000129 [13:50:30]line РНМ: 0000000000090858 [13:50:30]line Версия ККМ: 001 [13:50:30]line ФМ: 0000000000874899 [13:50:30]line ФД: 162836 [13:50:30]line ФПД: 270137832568829 [13:50:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T135030&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162836&fm=270137832568829&tin=02508201610067®Number=0000000000090858&sum=50000 [13:50:31]OFD Sender: Processing packet 162836 [packets to send 106, broken 105] [13:50:31]ProducePacketName [13:50:31]name=ofd_packets/00162836 [13:50:31]OFD Sender: To server: pG, [13:50:31]CommunicateWithHost lk.salyk.kg:30040 [13:50:31]ConnectInit lk.salyk.kg [13:50:31]written 0, free lines is 4095 [13:50:31]Connected sock=10 [13:50:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 05 1D 07 01 2D 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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 94 00 00 00 F4 03 04 00 A6 D7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 14 7C 02 00 35 04 06 00 F5 B0 5D 8C F7 FD FA 0C 0B FD 20 26 B6 BC [13:50:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 91 8C 47 00 E7 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 34 38 39 39 10 04 04 00 14 7C 02 00 F4 03 04 00 B3 83 93 66 B6 04 01 00 00 81 42 D7 13 CC 9A 8C 28 [13:50:31]CommunicateWithHost err = 0 [13:50:31]CheckOFDResponse [13:50:31]1017 (14) - 77093643461234 [13:50:31]1041 (16) - 0000000000874899 [13:50:31]1040 (4) - 162836 [13:50:31]1012 (4) - 14.07.2024 07:52 [13:50:31]1206 (1) - 0 [13:50:31]OFD Sender: Remove packet 162836 [13:50:31]ProducePacketName [13:50:31]name=ofd_packets/00162836 [13:50:31]NVStorageDeleteData [13:50:31]Write to MH i2c: 01 00 00 54 1F 73 [13:50:31]Write i2c OK [13:50:31]MH_I2C_Read... [13:50:31]Read from MH i2c: 01 [13:50:31]MH_I2C_Read... [13:50:31]Read from MH i2c: 01 07 00 [13:50:31]MH_I2C_Read... [13:50:31]Read from MH i2c: 01 07 00 54 1F 00 00 00 00 00 E4 0C 6A [13:50:31]RasterBufferAndPrint [13:50:31]line [13:50:31]line [13:50:31]line [13:50:31]line [13:50:31]line [13:50:31]written 0, free lines is 3306 [13:50:31]MH_Cut [13:50:31]Write to MH i2c: D1 01 00 5B 1F 01 4C [13:50:31]Write i2c OK [13:50:31]MH_I2C_Read... [13:50:31]Read from MH i2c: D1 [13:50:31]MH_I2C_Read... [13:50:31]Read from MH i2c: D1 01 00 [13:50:31]MH_I2C_Read... [13:50:31]Read from MH i2c: D1 01 00 5B 1F 00 4B [13:50:31]Write to MH i2c: 01 00 00 5C 1F 7B [13:50:31]Write i2c OK [13:50:31]MH_I2C_Read... [13:50:31]OFD Sender: No OFD packet to send [13:50:32]*** Cut start [13:50:32]*** Purtial cut [13:50:32]*** CUTSNS_PIN = 0 [13:50:32]*** Stage 1: CUTSNS_PIN = 1 [13:50:34]Read from MH i2c: 01 [13:50:34]MH_I2C_Read... [13:50:34]*** Stop cut motor [13:50:34]*** Cut end [13:50:34]Read from MH i2c: 01 07 00 [13:50:34]MH_I2C_Read... [13:50:34]Read from MH i2c: 01 07 00 5C 1F 00 00 00 00 00 FF 0F 90 [13:50:34]process_action close_receipt done [13:50:34]requested_data is exist [13:50:34]produce_requested_data [13:50:34]requested_item fm.sn is exist - process it [13:50:34]wFMCommunicate request_size=4 [13:50:34]MH_SAM_APDU [13:50:34]CAPDU: 80 11 00 00 [13:50:34]Write to MH i2c: E2 08 00 5D 1F 80 11 00 00 00 00 00 00 F6 [13:50:34]Write i2c OK [13:50:34]MH_I2C_Read... [13:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:34]Read from MH i2c: E2 [13:50:34]MH_I2C_Read... [13:50:34]Read from MH i2c: E2 17 00 [13:50:34]MH_I2C_Read... [13:50:34]Read from MH i2c: E2 17 00 5D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 56 [13:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:50:34]wFMCommunicate OK [13:50:34]requested_item fd.num is exist - process it [13:50:34]SAM_PROTO_GetFieldsCounters [13:50:34]wFMCommunicate request_size=4 [13:50:34]MH_SAM_APDU [13:50:34]CAPDU: 80 13 00 00 [13:50:34]Write to MH i2c: E2 08 00 5E 1F 80 13 00 00 00 00 00 00 F9 [13:50:34]Write i2c OK [13:50:34]MH_I2C_Read... [13:50:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:34]Read from MH i2c: E2 [13:50:34]MH_I2C_Read... [13:50:34]Read from MH i2c: E2 62 00 [13:50:34]MH_I2C_Read... [13:50:34]Read from MH i2c: E2 62 00 5E 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 14 7C 02 00 0E 04 04 00 CF 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 4A [13: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 14 7C 02 00 0E 04 04 00 CF 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 [13:50:34]wFMCommunicate OK [13:50:34]SAM_PROTO_GetFieldsCounters done [13:50:34]requested_item shift.num is exist - process it [13:50:34]requested_item shift.opened is exist - process it [13:50:34]req_shift_opened [13:50:34]FM_GetShiftState [13:50:34]SAM_PROTO_GetShiftState [13:50:34]wFMCommunicate request_size=4 [13:50:34]MH_SAM_APDU [13:50:34]CAPDU: 80 13 01 00 [13:50:34]Write to MH i2c: E2 08 00 5F 1F 80 13 01 00 00 00 00 00 FB [13:50:34]Write i2c OK [13:50:34]MH_I2C_Read... [13:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:34]Read from MH i2c: E2 [13:50:34]MH_I2C_Read... [13:50:34]Read from MH i2c: E2 0E 00 [13:50:34]MH_I2C_Read... [13:50:34]Read from MH i2c: E2 0E 00 5F 1F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 31 [13:50:34]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:50:34]wFMCommunicate OK [13:50:34]SAM_PROTO_GetShiftState done [13:50:34]FM_GetShiftState done [13:50:34]req_shift_opened done [13:50:34]requested_item shift.open_date is exist - process it [13:50:34]req_shift_open_date [13:50:34]req_shift_open_date done [13:50:34]produce_requested_data done [13:50:34]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162836,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:50:34]process_action_free close_receipt [13:50:34]json_value_free [13:50:34]json_value_free done [13:50:34]process_json_proto returns [13:50:34]Send response to host [13:50:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162836,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:50:34]free response buf [13:50:34]execute_script done [13:50:34]execute_script returns [13:50:34]free content buf [13:50:34]Sock 9.Close socket [13:50:34]Sock 9.Thread stoped [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:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:46]accept exits with 7 [13:54:46]New connection [13:54:46]New thread 3066735972 created [13:54:46]Thread 3066879332 joined [13:54:46]Waiting for new connection... [13:54:46] Sock 7.Parse request [13:54:46]Sock 7.Check first char [13:54:46]Sock 7.First char is OK [13:54:46]request: POST /json_proto HTTP/1.0 [13:54:46]Method: POST [13:54:46]URL: /json_proto [13:54:46]Method is POST - this is cgi request [13:54:46]url: /json_proto [13:54:46]query_string will be loaded in cgi processing [13:54:46]execute_cgi json_proto POST (null) [13:54:46]execute_cgi path=json_proto method=POST [13:54:46]POST find Content-Length [13:54:46]Host: 172.17.39.67:8080 [13:54:46]Content-Length: 678 [13:54:46]Content-Type: application/json [13:54:46] [13:54:46]POST finish read [13:54:46]Found Content-Length = 678 [13:54:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "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:54:46]execute_script... [13:54: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)1319436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "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:54:46]POST & json_proto [13:54:46]process_json_proto [13:54:46]json parsed OK: [13:54:46]protocol is kg_v1.0 [13:54:46]action value=close_receipt [13:54:46]process_action close_receipt [13:54:46]cmd_close_receipt [13:54:46]MH_GetDate [13:54:46]Write to MH i2c: F0 00 00 60 1F 6E [13:54:46]Write i2c OK [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: F0 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: F0 09 00 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: F0 09 00 60 1F 00 A7 D8 93 66 B6 85 93 66 23 [13:54:46]GetLastDocTimeStamp 1720965030 [13:54:46]current date 1720965287 [13:54:46]FM_GetShiftState [13:54:46]SAM_PROTO_GetShiftState [13:54:46]wFMCommunicate request_size=4 [13:54:46]MH_SAM_APDU [13:54:46]CAPDU: 80 13 01 00 [13:54:46]Write to MH i2c: E2 08 00 61 1F 80 13 01 00 00 00 00 00 FD [13:54:46]Write i2c OK [13:54:46]MH_I2C_Read... [13:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:46]Read from MH i2c: E2 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: E2 0E 00 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: E2 0E 00 61 1F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 33 [13:54:46]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:54:46]wFMCommunicate OK [13:54:46]SAM_PROTO_GetShiftState done [13:54:46]FM_GetShiftState done [13:54:46]opened in 1720915483 [13:54:46]opened+sec_in_day 1721001883 [13:54:46]quantity*price = 40045 [13:54:46]sum+1 = 40046 [13:54:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 149 14.07.2024 13:54 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162837 ФПД: 106725813043096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T135447&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162837&fm=106725813043096&tin=02508201610067®Number=0000000000090858&sum=40000 [13:54:47]StoreToDocumentArchive [13:54:47]shift 463 fd 162837 [13:54:47]save to /storage/0463/doc_00162837 [13:54:47]save last doc name /storage/0463/doc_00162837 to /storage/kkm_last_doc_name [13:54:47]save OK [13:54:47]Clear old archive folders... [13:54:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:47]tlvbuf is B6F468C0 [13:54:47]SAM_PROTO_ClearQueue [13:54:47]wFMCommunicate request_size=4 [13:54:47]MH_SAM_APDU [13:54:47]CAPDU: 80 09 00 00 [13:54:47]Write to MH i2c: E2 08 00 6E 1F 80 09 00 00 00 00 00 00 FF [13:54:47]Write i2c OK [13:54:47]MH_I2C_Read... [13:54:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:47]Read from MH i2c: E2 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 03 00 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 03 00 6E 1F 00 90 00 01 [13:54:47]RAPDU: 90 00 [13:54:47]wFMCommunicate OK [13:54:47]SAM_PROTO_ClearQueue done [13:54:47]KKMCreateOFDPacket [13:54:47]OFDProtocolAddRootSTLVToBuf [13:54:47]FM_MakeSignedData [13:54:47]FM_MakeSignedData [13:54:47]SAM_PROTO_SignData [13:54:47]wFMCommunicate request_size=4 [13:54:47]MH_SAM_APDU [13:54:47]CAPDU: 80 0D 01 02 [13:54:47]Write to MH i2c: E2 08 00 6F 1F 80 0D 01 02 00 00 00 00 07 [13:54:47]Write i2c OK [13:54:47]MH_I2C_Read... [13:54:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:47]Read from MH i2c: E2 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 03 00 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 03 00 6F 1F 00 90 00 02 [13:54:47]RAPDU: 90 00 [13:54:47]wFMCommunicate OK [13:54:47]wFMCommunicate request_size=255 [13:54:47]MH_SAM_APDU [13:54: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 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A7 D8 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 15 7C 02 00 35 04 06 00 61 [13:54:47]Write to MH i2c: E2 02 01 70 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A7 D8 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 15 7C 02 00 35 04 06 00 61 00 00 73 [13:54:47]Write i2c OK [13:54:47]MH_I2C_Read... [13:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:47]Read from MH i2c: E2 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 03 00 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 03 00 70 1F 00 90 00 03 [13:54:47]RAPDU: 90 00 [13:54:47]wFMCommunicate OK [13:54:47]wFMCommunicate request_size=10 [13:54:47]MH_SAM_APDU [13:54:47]CAPDU: 80 0D 02 02 05 11 0A 2C BF 98 [13:54:47]Write to MH i2c: E2 0D 00 71 1F 80 0D 02 02 05 00 11 0A 2C BF 98 00 00 B2 [13:54:47]Write i2c OK [13:54:47]MH_I2C_Read... [13:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:47]Read from MH i2c: E2 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 03 00 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 03 00 71 1F 00 90 00 04 [13:54:47]RAPDU: 90 00 [13:54:47]wFMCommunicate OK [13:54:47]wFMCommunicate request_size=4 [13:54:47]MH_SAM_APDU [13:54:47]CAPDU: 80 0D 03 02 [13:54:47]Write to MH i2c: E2 08 00 72 1F 80 0D 03 02 00 00 00 00 0C [13:54:47]Write i2c OK [13:54:47]MH_I2C_Read... [13:54:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:47]Read from MH i2c: E2 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 0B 00 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 0B 00 72 1F 00 66 67 02 5C 75 EA C2 08 90 00 61 [13:54:47]RAPDU: 66 67 02 5C 75 EA C2 08 90 00 [13:54:47]wFMCommunicate OK [13:54:47]SAM_PROTO_SignData done [13:54:47]FM_MakeSignedData done [13:54:47]CreateOFDProtocolMessage [13:54:47]wFMCommunicate request_size=4 [13:54:47]MH_SAM_APDU [13:54:47]CAPDU: 80 11 00 00 [13:54:47]Write to MH i2c: E2 08 00 73 1F 80 11 00 00 00 00 00 00 0C [13:54:47]Write i2c OK [13:54:47]MH_I2C_Read... [13:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:47]Read from MH i2c: E2 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 17 00 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: E2 17 00 73 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6C [13:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:54:47]wFMCommunicate OK [13:54:47]CreateOFDProtocolMessage done [13:54:47]OFDSenderStorePacket 162837 [13:54:47]StoreOFDPacket docnum=162837 [13:54:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 0F 09 07 01 D7 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A7 D8 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 15 7C 02 00 35 04 06 00 61 11 0A 2C BF 98 66 67 02 5C 75 EA C2 08 [13:54:47]CheckFolder [13:54:47]dirname=/storage/ofd_packets [13:54:47]CheckFolder done [13:54:47]ProducePacketName [13:54:47]name=ofd_packets/00162837 [13:54:47]NVStorageSaveData ofd_packets/00162837 [13:54:47]File name is /storage/ofd_packets/00162837 [13:54:47]Write 301 bytes [13:54:47]NVStorageSaveData done [13:54:47]OFDSenderStorePacket done [13:54:47]KKMCreateOFDPacket done [13:54:47]NVStorageSaveData kkm_last_timestamp [13:54:47]File name is /storage/kkm_last_timestamp [13:54:47]Write 4 bytes [13:54:47]NVStorageSaveData done [13:54:47]ExternCall_PrintAddStr [13:54:47]wPrintStart [13:54:47]Write to MH i2c: 01 00 00 74 1F 93 [13:54:47]Write i2c OK [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: 01 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: 01 07 00 [13:54:47]MH_I2C_Read... [13:54:47]Read from MH i2c: 01 07 00 74 1F 00 00 00 00 00 FF 0F A8 [13:54:47]RasterBufferAndPrint [13:54:47]line Счет N : (1)1319436 [13:54:47]line ИНН: 02508201610067 [13:54:47]line Контрольно-Кассовый Чек [13:54:47]line ПРОДАЖА [13:54:47]line ТРК (МРК, ГНК) : 33 [13:54:47]line Товар: 2710124130 [13:54:47]line Аи-92-К-5 [13:54:47]line 6.040 * 66.30 [13:54:47]line = 400.45 [13:54:47]line НДС 12% НСП 1% [13:54:47]line > о реализуемом товаре [13:54:47]line ОКРУГЛЕНИЕ: -0.45 [13:54:47]line ИТОГО: 400.00 [13:54:47]line Внесено: 400.00 [13:54:47]line СДАЧА: 0.00 [13:54:47]line НСП 1% : 3.54 [13:54:47]line НДС 12% : 42.53 [13:54:47]line Наличными: 400.00 [13:54:47]line Безнал.: 0.00 [13:54:47]line Место: АЗС № 140 "Партнер Нефть" [13:54:47]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:54:47]line СНО: Общий режим [13:54:47]line Чек 149 14.07.2024 13:54 [13:54:47]line Смена: 463 ФФД: 1.0 [13:54:47]line ЗНМ: 0300000129 [13:54:47]line РНМ: 0000000000090858 [13:54:47]line Версия ККМ: 001 [13:54:47]line ФМ: 0000000000874899 [13:54:47]line ФД: 162837 [13:54:47]line ФПД: 106725813043096 [13:54:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T135447&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162837&fm=106725813043096&tin=02508201610067®Number=0000000000090858&sum=40000 [13:54:47]written 0, free lines is 4095 [13:54:47]OFD Sender: Processing packet 162837 [packets to send 106, broken 105] [13:54:47]ProducePacketName [13:54:47]name=ofd_packets/00162837 [13:54:47]OFD Sender: To server: pG, [13:54:47]CommunicateWithHost lk.salyk.kg:30040 [13:54:47]ConnectInit lk.salyk.kg [13:54:48]Connected sock=11 [13:54:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 0F 09 07 01 D7 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A7 D8 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 15 7C 02 00 35 04 06 00 61 11 0A 2C BF 98 66 67 02 5C 75 EA C2 08 [13:54:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 42 DD 47 00 6E 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 15 7C 02 00 F4 03 04 00 B4 84 93 66 B6 04 01 00 00 74 A9 74 48 53 AA 98 1E [13:54:48]CommunicateWithHost err = 0 [13:54:48]CheckOFDResponse [13:54:48]1017 (14) - 77093643461234 [13:54:48]1041 (16) - 0000000000874899 [13:54:48]1040 (4) - 162837 [13:54:48]1012 (4) - 14.07.2024 07:56 [13:54:48]1206 (1) - 0 [13:54:48]OFD Sender: Remove packet 162837 [13:54:48]ProducePacketName [13:54:48]name=ofd_packets/00162837 [13:54:48]NVStorageDeleteData [13:54:48]Write to MH i2c: 01 00 00 9F 1F BE [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: 01 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: 01 07 00 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: 01 07 00 9F 1F 00 00 00 00 00 DF 0C B0 [13:54:48]RasterBufferAndPrint [13:54:48]line [13:54:48]line [13:54:48]line [13:54:48]line [13:54:48]line [13:54:48]written 0, free lines is 3301 [13:54:48]MH_Cut [13:54:48]Write to MH i2c: D1 01 00 A6 1F 01 97 [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: D1 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: D1 01 00 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: D1 01 00 A6 1F 00 96 [13:54:48]Write to MH i2c: 01 00 00 A7 1F C6 [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]OFD Sender: No OFD packet to send [13:54:49]*** Cut start [13:54:49]*** Purtial cut [13:54:49]*** Stage 1: CUTSNS_PIN = 1 [13:54:49]Read from MH i2c: 01 [13:54:49]MH_I2C_Read... [13:54:49]*** Stop cut motor [13:54:49]*** Cut end [13:54:49]Read from MH i2c: 01 07 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: 01 07 00 A7 1F 00 00 00 00 00 FF 0F DB [13:54:49]process_action close_receipt done [13:54:49]requested_data is exist [13:54:49]produce_requested_data [13:54:49]requested_item fm.sn is exist - process it [13:54:49]wFMCommunicate request_size=4 [13:54:49]MH_SAM_APDU [13:54:49]CAPDU: 80 11 00 00 [13:54:49]Write to MH i2c: E2 08 00 A8 1F 80 11 00 00 00 00 00 00 41 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 17 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 17 00 A8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A1 [13:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:54:49]wFMCommunicate OK [13:54:49]requested_item fd.num is exist - process it [13:54:49]SAM_PROTO_GetFieldsCounters [13:54:49]wFMCommunicate request_size=4 [13:54:49]MH_SAM_APDU [13:54:49]CAPDU: 80 13 00 00 [13:54:49]Write to MH i2c: E2 08 00 A9 1F 80 13 00 00 00 00 00 00 44 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 62 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 62 00 A9 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 15 7C 02 00 0E 04 04 00 CF 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 99 [13:54:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 15 7C 02 00 0E 04 04 00 CF 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 [13:54:49]wFMCommunicate OK [13:54:49]SAM_PROTO_GetFieldsCounters done [13:54:49]requested_item shift.num is exist - process it [13:54:49]requested_item shift.opened is exist - process it [13:54:49]req_shift_opened [13:54:49]FM_GetShiftState [13:54:49]SAM_PROTO_GetShiftState [13:54:49]wFMCommunicate request_size=4 [13:54:49]MH_SAM_APDU [13:54:49]CAPDU: 80 13 01 00 [13:54:49]Write to MH i2c: E2 08 00 AA 1F 80 13 01 00 00 00 00 00 46 [13:54:49]Write i2c OK [13:54:49]MH_I2C_Read... [13:54:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:49]Read from MH i2c: E2 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 0E 00 [13:54:49]MH_I2C_Read... [13:54:49]Read from MH i2c: E2 0E 00 AA 1F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7C [13:54:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:54:49]wFMCommunicate OK [13:54:49]SAM_PROTO_GetShiftState done [13:54:49]FM_GetShiftState done [13:54:49]req_shift_opened done [13:54:49]requested_item shift.open_date is exist - process it [13:54:49]req_shift_open_date [13:54:49]req_shift_open_date done [13:54:49]produce_requested_data done [13:54:49]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162837,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:54:49]process_action_free close_receipt [13:54:49]json_value_free [13:54:49]json_value_free done [13:54:49]process_json_proto returns [13:54:49]Send response to host [13:54:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162837,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:54:49]free response buf [13:54:49]execute_script done [13:54:49]execute_script returns [13:54:49]free content buf [13:54:49]Sock 7.Close socket [13:54:49]Sock 7.Thread stoped [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:13]accept exits with 9 [13:59:13]New connection [13:59:13]New thread 3066879332 created [13:59:13]Thread 3066735972 joined [13:59:13]Waiting for new connection... [13:59:13] Sock 9.Parse request [13:59:13]Sock 9.Check first char [13:59:13]Sock 9.First char is OK [13:59:13]request: POST /json_proto HTTP/1.0 [13:59:13]Method: POST [13:59:13]URL: /json_proto [13:59:13]Method is POST - this is cgi request [13:59:13]url: /json_proto [13:59:13]query_string will be loaded in cgi processing [13:59:13]execute_cgi json_proto POST (null) [13:59:13]execute_cgi path=json_proto method=POST [13:59:13]POST find Content-Length [13:59:13]Host: 172.17.39.67:8080 [13:59:13]Content-Length: 849 [13:59:13]Content-Type: application/json [13:59:13] [13:59:13]POST finish read [13:59:13]Found Content-Length = 849 [13:59:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 52.350, "sum" : 3800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3800.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:13]execute_script... [13:59: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)1319437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 52.350, "sum" : 3800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3800.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:13]POST & json_proto [13:59:13]process_json_proto [13:59:13]json parsed OK: [13:59:13]protocol is kg_v1.0 [13:59:13]action value=close_receipt [13:59:13]process_action close_receipt [13:59:13]cmd_close_receipt [13:59:13]MH_GetDate [13:59:13]Write to MH i2c: F0 00 00 AB 1F B9 [13:59:13]Write i2c OK [13:59:13]MH_I2C_Read... [13:59:13]Read from MH i2c: F0 [13:59:13]MH_I2C_Read... [13:59:13]Read from MH i2c: F0 09 00 [13:59:13]MH_I2C_Read... [13:59:13]Read from MH i2c: F0 09 00 AB 1F 00 B3 D9 93 66 B6 85 93 66 7B [13:59:13]GetLastDocTimeStamp 1720965287 [13:59:13]current date 1720965555 [13:59:13]FM_GetShiftState [13:59:13]SAM_PROTO_GetShiftState [13:59:13]wFMCommunicate request_size=4 [13:59:13]MH_SAM_APDU [13:59:13]CAPDU: 80 13 01 00 [13:59:13]Write to MH i2c: E2 08 00 AC 1F 80 13 01 00 00 00 00 00 48 [13:59:13]Write i2c OK [13:59:13]MH_I2C_Read... [13:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:13]Read from MH i2c: E2 [13:59:13]MH_I2C_Read... [13:59:13]Read from MH i2c: E2 0E 00 [13:59:13]MH_I2C_Read... [13:59:13]Read from MH i2c: E2 0E 00 AC 1F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7E [13:59:13]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:59:13]wFMCommunicate OK [13:59:13]SAM_PROTO_GetShiftState done [13:59:13]FM_GetShiftState done [13:59:13]opened in 1720915483 [13:59:13]opened+sec_in_day 1721001883 [13:59:13]quantity*price = 380061 [13:59:13]sum+1 = 380062 [13:59:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3800.61 НСП 1% : 33.63 НДС 12% : 403.60 Наличными: 0.00 Безнал.: 3800.61 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 150 14.07.2024 13:59 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162838 ФПД: 73514916601074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T135915&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162838&fm=73514916601074&tin=02508201610067®Number=0000000000090858&sum=380061 [13:59:15]StoreToDocumentArchive [13:59:15]shift 463 fd 162838 [13:59:15]save to /storage/0463/doc_00162838 [13:59:15]save last doc name /storage/0463/doc_00162838 to /storage/kkm_last_doc_name [13:59:15]save OK [13:59:15]Clear old archive folders... [13:59:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:59:15]tlvbuf is 01235500 [13:59:15]SAM_PROTO_ClearQueue [13:59:15]wFMCommunicate request_size=4 [13:59:15]MH_SAM_APDU [13:59:15]CAPDU: 80 09 00 00 [13:59:15]Write to MH i2c: E2 08 00 B9 1F 80 09 00 00 00 00 00 00 4A [13:59:15]Write i2c OK [13:59:15]MH_I2C_Read... [13:59:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:15]Read from MH i2c: E2 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: E2 03 00 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: E2 03 00 B9 1F 00 90 00 4C [13:59:15]RAPDU: 90 00 [13:59:15]wFMCommunicate OK [13:59:15]SAM_PROTO_ClearQueue done [13:59:15]KKMCreateOFDPacket [13:59:15]OFDProtocolAddRootSTLVToBuf [13:59:15]FM_MakeSignedData [13:59:15]FM_MakeSignedData [13:59:15]SAM_PROTO_SignData [13:59:15]wFMCommunicate request_size=4 [13:59:15]MH_SAM_APDU [13:59:15]CAPDU: 80 0D 01 02 [13:59:15]Write to MH i2c: E2 08 00 BA 1F 80 0D 01 02 00 00 00 00 52 [13:59:15]Write i2c OK [13:59:15]MH_I2C_Read... [13:59:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:15]Read from MH i2c: E2 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: E2 03 00 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: E2 03 00 BA 1F 00 90 00 4D [13:59:15]RAPDU: 90 00 [13:59:15]wFMCommunicate OK [13:59:15]wFMCommunicate request_size=255 [13:59:15]MH_SAM_APDU [13:59:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7E CC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9D CC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 9D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D CC 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 B3 D9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 16 7C 02 00 35 04 06 00 [13:59:15]Write to MH i2c: E2 02 01 BB 1F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7E CC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9D CC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 9D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D CC 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 B3 D9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 16 7C 02 00 35 04 06 00 00 00 A9 [13:59:15]Write i2c OK [13:59:15]MH_I2C_Read... [13:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:15]Read from MH i2c: E2 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: E2 03 00 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: E2 03 00 BB 1F 00 90 00 4E [13:59:15]RAPDU: 90 00 [13:59:15]wFMCommunicate OK [13:59:15]wFMCommunicate request_size=11 [13:59:15]MH_SAM_APDU [13:59:15]CAPDU: 80 0D 02 02 06 42 DC 86 7D 5C F2 [13:59:15]Write to MH i2c: E2 0E 00 BC 1F 80 0D 02 02 06 00 42 DC 86 7D 5C F2 00 00 D0 [13:59:15]Write i2c OK [13:59:15]MH_I2C_Read... [13:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:15]Read from MH i2c: E2 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: E2 03 00 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: E2 03 00 BC 1F 00 90 00 4F [13:59:15]RAPDU: 90 00 [13:59:15]wFMCommunicate OK [13:59:15]wFMCommunicate request_size=4 [13:59:15]MH_SAM_APDU [13:59:15]CAPDU: 80 0D 03 02 [13:59:15]Write to MH i2c: E2 08 00 BD 1F 80 0D 03 02 00 00 00 00 57 [13:59:15]Write i2c OK [13:59:15]MH_I2C_Read... [13:59:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:15]Read from MH i2c: E2 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: E2 0B 00 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: E2 0B 00 BD 1F 00 4A C3 67 67 3C 2E 42 66 90 00 45 [13:59:15]RAPDU: 4A C3 67 67 3C 2E 42 66 90 00 [13:59:15]wFMCommunicate OK [13:59:15]SAM_PROTO_SignData done [13:59:15]FM_MakeSignedData done [13:59:15]CreateOFDProtocolMessage [13:59:15]wFMCommunicate request_size=4 [13:59:15]MH_SAM_APDU [13:59:15]CAPDU: 80 11 00 00 [13:59:15]Write to MH i2c: E2 08 00 BE 1F 80 11 00 00 00 00 00 00 57 [13:59:15]Write i2c OK [13:59:15]MH_I2C_Read... [13:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:15]Read from MH i2c: E2 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: E2 17 00 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: E2 17 00 BE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B7 [13:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:59:15]wFMCommunicate OK [13:59:15]CreateOFDProtocolMessage done [13:59:15]OFDSenderStorePacket 162838 [13:59:15]StoreOFDPacket docnum=162838 [13:59:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8D D6 08 01 69 E9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7E CC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9D CC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 9D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D CC 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 B3 D9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 16 7C 02 00 35 04 06 00 42 DC 86 7D 5C F2 4A C3 67 67 3C 2E 42 66 [13:59:15]CheckFolder [13:59:15]dirname=/storage/ofd_packets [13:59:15]CheckFolder done [13:59:15]ProducePacketName [13:59:15]name=ofd_packets/00162838 [13:59:15]NVStorageSaveData ofd_packets/00162838 [13:59:15]File name is /storage/ofd_packets/00162838 [13:59:15]Write 302 bytes [13:59:15]NVStorageSaveData done [13:59:15]OFDSenderStorePacket done [13:59:15]KKMCreateOFDPacket done [13:59:15]NVStorageSaveData kkm_last_timestamp [13:59:15]File name is /storage/kkm_last_timestamp [13:59:15]Write 4 bytes [13:59:15]NVStorageSaveData done [13:59:15]ExternCall_PrintAddStr [13:59:15]wPrintStart [13:59:15]Write to MH i2c: 01 00 00 BF 1F DE [13:59:15]Write i2c OK [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: 01 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: 01 07 00 [13:59:15]MH_I2C_Read... [13:59:15]Read from MH i2c: 01 07 00 BF 1F 00 00 00 00 00 FF 0F F3 [13:59:15]RasterBufferAndPrint [13:59:15]line Счет N : (1)1319437 [13:59:15]line ИНН: 02508201610067 [13:59:15]line Контрольно-Кассовый Чек [13:59:15]line ПРОДАЖА [13:59:15]line ТРК (МРК, ГНК) : 31 [13:59:15]line Товар: 2710194210 [13:59:15]line ДТ(л)-К-5 [13:59:15]line 52.350 * 72.60 [13:59:15]line = 3800.61 [13:59:15]line НДС 12% НСП 1% [13:59:15]line > о реализуемом товаре [13:59:15]line ИТОГО: 3800.61 [13:59:15]line НСП 1% : 33.63 [13:59:15]line НДС 12% : 403.60 [13:59:15]line Наличными: 0.00 [13:59:15]line Безнал.: 3800.61 [13:59:15]line Место: АЗС № 140 "Партнер Нефть" [13:59:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:59:15]line СНО: Общий режим [13:59:15]line Чек 150 14.07.2024 13:59 [13:59:15]line Смена: 463 ФФД: 1.0 [13:59:15]line ЗНМ: 0300000129 [13:59:15]line РНМ: 0000000000090858 [13:59:15]line Версия ККМ: 001 [13:59:15]line Платежная система: АКБ Кыргызстан [13:59:15]line ФМ: 0000000000874899 [13:59:15]line ФД: 162838 [13:59:15]line ФПД: 73514916601074 [13:59:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T135915&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162838&fm=73514916601074&tin=02508201610067®Number=0000000000090858&sum=380061 [13:59:15]OFD Sender: Processing packet 162838 [packets to send 106, broken 105] [13:59:15]ProducePacketName [13:59:15]name=ofd_packets/00162838 [13:59:15]OFD Sender: To server: pG, [13:59:15]CommunicateWithHost lk.salyk.kg:30040 [13:59:15]ConnectInit lk.salyk.kg [13:59:15]written 0, free lines is 4095 [13:59:16]Connected sock=10 [13:59:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8D D6 08 01 69 E9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7E CC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9D CC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 9D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D CC 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 B3 D9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 16 7C 02 00 35 04 06 00 42 DC 86 7D 5C F2 4A C3 67 67 3C 2E 42 66 [13:59:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 69 8B 47 00 02 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 16 7C 02 00 F4 03 04 00 C0 85 93 66 B6 04 01 00 00 53 4B BB DD EA 93 C1 2D [13:59:16]CommunicateWithHost err = 0 [13:59:16]CheckOFDResponse [13:59:16]1017 (14) - 77093643461234 [13:59:16]1041 (16) - 0000000000874899 [13:59:16]1040 (4) - 162838 [13:59:16]1012 (4) - 14.07.2024 08:01 [13:59:16]1206 (1) - 0 [13:59:16]OFD Sender: Remove packet 162838 [13:59:16]ProducePacketName [13:59:16]name=ofd_packets/00162838 [13:59:16]NVStorageDeleteData [13:59:16]Write to MH i2c: 01 00 00 E9 1F 08 [13:59:16]Write i2c OK [13:59:16]MH_I2C_Read... [13:59:16]Read from MH i2c: 01 [13:59:16]MH_I2C_Read... [13:59:16]Read from MH i2c: 01 07 00 [13:59:16]MH_I2C_Read... [13:59:16]Read from MH i2c: 01 07 00 E9 1F 00 00 00 00 00 F5 0C 10 [13:59:16]RasterBufferAndPrint [13:59:16]line [13:59:16]line [13:59:16]line [13:59:16]line [13:59:16]line [13:59:16]written 0, free lines is 3323 [13:59:16]MH_Cut [13:59:16]Write to MH i2c: D1 01 00 F0 1F 01 E1 [13:59:16]Write i2c OK [13:59:16]MH_I2C_Read... [13:59:16]Read from MH i2c: D1 [13:59:16]MH_I2C_Read... [13:59:16]Read from MH i2c: D1 01 00 [13:59:16]MH_I2C_Read... [13:59:16]Read from MH i2c: D1 01 00 F0 1F 00 E0 [13:59:16]Write to MH i2c: 01 00 00 F1 1F 10 [13:59:16]Write i2c OK [13:59:16]MH_I2C_Read... [13:59:16]OFD Sender: No OFD packet to send [13:59:17]*** Cut start [13:59:17]*** Purtial cut [13:59:17]*** CUTSNS_PIN = 0 [13:59:17]*** Stage 1: CUTSNS_PIN = 1 [13:59:19]Read from MH i2c: 01 [13:59:19]MH_I2C_Read... [13:59:19]*** Stop cut motor [13:59:19]*** Cut end [13:59:19]Read from MH i2c: 01 07 00 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: 01 07 00 F1 1F 00 00 00 00 00 FF 0F 25 [13:59:19]process_action close_receipt done [13:59:19]requested_data is exist [13:59:19]produce_requested_data [13:59:19]requested_item fm.sn is exist - process it [13:59:19]wFMCommunicate request_size=4 [13:59:19]MH_SAM_APDU [13:59:19]CAPDU: 80 11 00 00 [13:59:19]Write to MH i2c: E2 08 00 F2 1F 80 11 00 00 00 00 00 00 8B [13:59:19]Write i2c OK [13:59:19]MH_I2C_Read... [13:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:19]Read from MH i2c: E2 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 17 00 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 17 00 F2 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EB [13:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:59:19]wFMCommunicate OK [13:59:19]requested_item fd.num is exist - process it [13:59:19]SAM_PROTO_GetFieldsCounters [13:59:19]wFMCommunicate request_size=4 [13:59:19]MH_SAM_APDU [13:59:19]CAPDU: 80 13 00 00 [13:59:19]Write to MH i2c: E2 08 00 F3 1F 80 13 00 00 00 00 00 00 8E [13:59:19]Write i2c OK [13:59:19]MH_I2C_Read... [13:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:19]Read from MH i2c: E2 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 62 00 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 62 00 F3 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 16 7C 02 00 0E 04 04 00 CF 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 E7 [13:59:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 16 7C 02 00 0E 04 04 00 CF 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 [13:59:19]wFMCommunicate OK [13:59:19]SAM_PROTO_GetFieldsCounters done [13:59:19]requested_item shift.num is exist - process it [13:59:19]requested_item shift.opened is exist - process it [13:59:19]req_shift_opened [13:59:19]FM_GetShiftState [13:59:19]SAM_PROTO_GetShiftState [13:59:19]wFMCommunicate request_size=4 [13:59:19]MH_SAM_APDU [13:59:19]CAPDU: 80 13 01 00 [13:59:19]Write to MH i2c: E2 08 00 F4 1F 80 13 01 00 00 00 00 00 90 [13:59:19]Write i2c OK [13:59:19]MH_I2C_Read... [13:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:19]Read from MH i2c: E2 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 0E 00 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 0E 00 F4 1F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C6 [13:59:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [13:59:19]wFMCommunicate OK [13:59:19]SAM_PROTO_GetShiftState done [13:59:19]FM_GetShiftState done [13:59:19]req_shift_opened done [13:59:19]requested_item shift.open_date is exist - process it [13:59:19]req_shift_open_date [13:59:19]req_shift_open_date done [13:59:19]produce_requested_data done [13:59:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162838,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [13:59:19]process_action_free close_receipt [13:59:19]json_value_free [13:59:19]json_value_free done [13:59:19]process_json_proto returns [13:59:19]Send response to host [13:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162838,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [13:59:19]free response buf [13:59:19]execute_script done [13:59:19]execute_script returns [13:59:19]free content buf [13:59:19]Sock 9.Close socket [13:59:19]Sock 9.Thread stoped [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]accept exits with 7 [14:02:06]New connection [14:02:06]New thread 3066735972 created [14:02:06]Thread 3066879332 joined [14:02:06]Waiting for new connection... [14:02:06] Sock 7.Parse request [14:02:06]Sock 7.Check first char [14:02:06]Sock 7.First char is OK [14:02:06]request: POST /json_proto HTTP/1.0 [14:02:06]Method: POST [14:02:06]URL: /json_proto [14:02:06]Method is POST - this is cgi request [14:02:06]url: /json_proto [14:02:06]query_string will be loaded in cgi processing [14:02:06]execute_cgi json_proto POST (null) [14:02:06]execute_cgi path=json_proto method=POST [14:02:06]POST find Content-Length [14:02:06]Host: 172.17.39.67:8080 [14:02:06]Content-Length: 683 [14:02:06]Content-Type: application/json [14:02:06] [14:02:06]POST finish read [14:02:06]Found Content-Length = 683 [14:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 22.630, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:06]execute_script... [14:02: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)1319438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 22.630, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:06]POST & json_proto [14:02:06]process_json_proto [14:02:06]json parsed OK: [14:02:06]protocol is kg_v1.0 [14:02:06]action value=close_receipt [14:02:06]process_action close_receipt [14:02:06]cmd_close_receipt [14:02:06]MH_GetDate [14:02:06]Write to MH i2c: F0 00 00 F5 1F 03 [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: F0 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: F0 09 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: F0 09 00 F5 1F 00 60 DA 93 66 B6 85 93 66 73 [14:02:06]GetLastDocTimeStamp 1720965555 [14:02:06]current date 1720965728 [14:02:06]FM_GetShiftState [14:02:06]SAM_PROTO_GetShiftState [14:02:06]wFMCommunicate request_size=4 [14:02:06]MH_SAM_APDU [14:02:06]CAPDU: 80 13 01 00 [14:02:06]Write to MH i2c: E2 08 00 F6 1F 80 13 01 00 00 00 00 00 92 [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:06]Read from MH i2c: E2 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: E2 0E 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: E2 0E 00 F6 1F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C8 [14:02:06]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:02:06]wFMCommunicate OK [14:02:06]SAM_PROTO_GetShiftState done [14:02:06]FM_GetShiftState done [14:02:06]opened in 1720915483 [14:02:06]opened+sec_in_day 1721001883 [14:02:06]quantity*price = 150036 [14:02:06]sum+1 = 150038 [14:02:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 151 14.07.2024 14:02 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162839 ФПД: 11525119031879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140208&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162839&fm=11525119031879&tin=02508201610067®Number=0000000000090858&sum=150000 [14:02:07]StoreToDocumentArchive [14:02:07]shift 463 fd 162839 [14:02:07]save to /storage/0463/doc_00162839 [14:02:07]save last doc name /storage/0463/doc_00162839 to /storage/kkm_last_doc_name [14:02:07]save OK [14:02:07]Clear old archive folders... [14:02:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:07]tlvbuf is 012359F0 [14:02:07]SAM_PROTO_ClearQueue [14:02:07]wFMCommunicate request_size=4 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 09 00 00 [14:02:07]Write to MH i2c: E2 08 00 03 20 80 09 00 00 00 00 00 00 95 [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 03 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 03 00 03 20 00 90 00 97 [14:02:07]RAPDU: 90 00 [14:02:07]wFMCommunicate OK [14:02:07]SAM_PROTO_ClearQueue done [14:02:07]KKMCreateOFDPacket [14:02:07]OFDProtocolAddRootSTLVToBuf [14:02:07]FM_MakeSignedData [14:02:07]FM_MakeSignedData [14:02:07]SAM_PROTO_SignData [14:02:07]wFMCommunicate request_size=4 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 0D 01 02 [14:02:07]Write to MH i2c: E2 08 00 04 20 80 0D 01 02 00 00 00 00 9D [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 03 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 03 00 04 20 00 90 00 98 [14:02:07]RAPDU: 90 00 [14:02:07]wFMCommunicate OK [14:02:07]wFMCommunicate request_size=255 [14:02:07]MH_SAM_APDU [14:02: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 66 58 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 15 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 97 00 00 00 F4 03 04 00 60 DA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 17 7C 02 00 35 04 06 00 0A [14:02:07]Write to MH i2c: E2 02 01 05 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 58 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 15 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 97 00 00 00 F4 03 04 00 60 DA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 17 7C 02 00 35 04 06 00 0A 00 00 36 [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:08]Read from MH i2c: E2 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 03 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 03 00 05 20 00 90 00 99 [14:02:08]RAPDU: 90 00 [14:02:08]wFMCommunicate OK [14:02:08]wFMCommunicate request_size=10 [14:02:08]MH_SAM_APDU [14:02:08]CAPDU: 80 0D 02 02 05 7B 66 A0 3A 47 [14:02:08]Write to MH i2c: E2 0D 00 06 20 80 0D 02 02 05 00 7B 66 A0 3A 47 00 00 AC [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:08]Read from MH i2c: E2 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 03 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 03 00 06 20 00 90 00 9A [14:02:08]RAPDU: 90 00 [14:02:08]wFMCommunicate OK [14:02:08]wFMCommunicate request_size=4 [14:02:08]MH_SAM_APDU [14:02:08]CAPDU: 80 0D 03 02 [14:02:08]Write to MH i2c: E2 08 00 07 20 80 0D 03 02 00 00 00 00 A2 [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:08]Read from MH i2c: E2 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 0B 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 0B 00 07 20 00 AD CB D2 15 19 DF C0 60 90 00 1A [14:02:08]RAPDU: AD CB D2 15 19 DF C0 60 90 00 [14:02:08]wFMCommunicate OK [14:02:08]SAM_PROTO_SignData done [14:02:08]FM_MakeSignedData done [14:02:08]CreateOFDProtocolMessage [14:02:08]wFMCommunicate request_size=4 [14:02:08]MH_SAM_APDU [14:02:08]CAPDU: 80 11 00 00 [14:02:08]Write to MH i2c: E2 08 00 08 20 80 11 00 00 00 00 00 00 A2 [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:08]Read from MH i2c: E2 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 17 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: E2 17 00 08 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 02 [14:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:02:08]wFMCommunicate OK [14:02:08]CreateOFDProtocolMessage done [14:02:08]OFDSenderStorePacket 162839 [14:02:08]StoreOFDPacket docnum=162839 [14:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E7 33 07 01 AB 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 58 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 15 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 97 00 00 00 F4 03 04 00 60 DA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 17 7C 02 00 35 04 06 00 0A 7B 66 A0 3A 47 AD CB D2 15 19 DF C0 60 [14:02:08]CheckFolder [14:02:08]dirname=/storage/ofd_packets [14:02:08]CheckFolder done [14:02:08]ProducePacketName [14:02:08]name=ofd_packets/00162839 [14:02:08]NVStorageSaveData ofd_packets/00162839 [14:02:08]File name is /storage/ofd_packets/00162839 [14:02:08]Write 301 bytes [14:02:08]NVStorageSaveData done [14:02:08]OFDSenderStorePacket done [14:02:08]KKMCreateOFDPacket done [14:02:08]NVStorageSaveData kkm_last_timestamp [14:02:08]File name is /storage/kkm_last_timestamp [14:02:08]Write 4 bytes [14:02:08]NVStorageSaveData done [14:02:08]ExternCall_PrintAddStr [14:02:08]wPrintStart [14:02:08]Write to MH i2c: 01 00 00 09 20 29 [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: 01 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: 01 07 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: 01 07 00 09 20 00 00 00 00 00 FF 0F 3E [14:02:08]RasterBufferAndPrint [14:02:08]line Счет N : (1)1319438 [14:02:08]line ИНН: 02508201610067 [14:02:08]line Контрольно-Кассовый Чек [14:02:08]line ПРОДАЖА [14:02:08]line ТРК (МРК, ГНК) : 53 [14:02:08]line Товар: 2710124130 [14:02:08]line Аи-92-К-5 [14:02:08]line 22.630 * 66.30 [14:02:08]line = 1500.37 [14:02:08]line НДС 12% НСП 1% [14:02:08]line > о реализуемом товаре [14:02:08]line ОКРУГЛЕНИЕ: -0.37 [14:02:08]line ИТОГО: 1500.00 [14:02:08]line Внесено: 1500.00 [14:02:08]line СДАЧА: 0.00 [14:02:08]line НСП 1% : 13.28 [14:02:08]line НДС 12% : 159.33 [14:02:08]line Наличными: 1500.00 [14:02:08]line Безнал.: 0.00 [14:02:08]line Место: АЗС № 140 "Партнер Нефть" [14:02:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:02:08]line СНО: Общий режим [14:02:08]line Чек 151 14.07.2024 14:02 [14:02:08]line Смена: 463 ФФД: 1.0 [14:02:08]line ЗНМ: 0300000129 [14:02:08]line РНМ: 0000000000090858 [14:02:08]line Версия ККМ: 001 [14:02:08]line ФМ: 0000000000874899 [14:02:08]line ФД: 162839 [14:02:08]line ФПД: 11525119031879 [14:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140208&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162839&fm=11525119031879&tin=02508201610067®Number=0000000000090858&sum=150000 [14:02:08]OFD Sender: Processing packet 162839 [packets to send 106, broken 105] [14:02:08]ProducePacketName [14:02:08]name=ofd_packets/00162839 [14:02:08]OFD Sender: To server: pG, [14:02:08]CommunicateWithHost lk.salyk.kg:30040 [14:02:08]ConnectInit lk.salyk.kg [14:02:08]written 0, free lines is 4095 [14:02:08]Connected sock=10 [14:02:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E7 33 07 01 AB 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 58 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 15 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 97 00 00 00 F4 03 04 00 60 DA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 17 7C 02 00 35 04 06 00 0A 7B 66 A0 3A 47 AD CB D2 15 19 DF C0 60 [14:02:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 35 48 47 00 72 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 17 7C 02 00 F4 03 04 00 6D 86 93 66 B6 04 01 00 00 E2 DD 64 80 1A 40 32 92 [14:02:09]CommunicateWithHost err = 0 [14:02:09]CheckOFDResponse [14:02:09]1017 (14) - 77093643461234 [14:02:09]1041 (16) - 0000000000874899 [14:02:09]1040 (4) - 162839 [14:02:09]1012 (4) - 14.07.2024 08:03 [14:02:09]1206 (1) - 0 [14:02:09]OFD Sender: Remove packet 162839 [14:02:09]ProducePacketName [14:02:09]name=ofd_packets/00162839 [14:02:09]NVStorageDeleteData [14:02:09]Write to MH i2c: 01 00 00 34 20 54 [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: 01 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: 01 07 00 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: 01 07 00 34 20 00 00 00 00 00 E8 0C 4F [14:02:09]RasterBufferAndPrint [14:02:09]line [14:02:09]line [14:02:09]line [14:02:09]line [14:02:09]line [14:02:09]written 0, free lines is 3313 [14:02:09]MH_Cut [14:02:09]Write to MH i2c: D1 01 00 3B 20 01 2D [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: D1 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: D1 01 00 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: D1 01 00 3B 20 00 2C [14:02:09]Write to MH i2c: 01 00 00 3C 20 5C [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:09]OFD Sender: No OFD packet to send [14:02:09]*** Cut start [14:02:09]*** Purtial cut [14:02:09]*** Stage 1: CUTSNS_PIN = 1 [14:02:10]Read from MH i2c: 01 [14:02:10]MH_I2C_Read... [14:02:10]*** Stop cut motor [14:02:10]*** Cut end [14:02:10]Read from MH i2c: 01 07 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: 01 07 00 3C 20 00 00 00 00 00 FF 0F 71 [14:02:10]process_action close_receipt done [14:02:10]requested_data is exist [14:02:10]produce_requested_data [14:02:10]requested_item fm.sn is exist - process it [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 11 00 00 [14:02:10]Write to MH i2c: E2 08 00 3D 20 80 11 00 00 00 00 00 00 D7 [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 17 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 17 00 3D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 37 [14:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:02:10]wFMCommunicate OK [14:02:10]requested_item fd.num is exist - process it [14:02:10]SAM_PROTO_GetFieldsCounters [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 13 00 00 [14:02:10]Write to MH i2c: E2 08 00 3E 20 80 13 00 00 00 00 00 00 DA [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 62 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 62 00 3E 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 17 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [14:02:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 17 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:10]wFMCommunicate OK [14:02:10]SAM_PROTO_GetFieldsCounters done [14:02:10]requested_item shift.num is exist - process it [14:02:10]requested_item shift.opened is exist - process it [14:02:10]req_shift_opened [14:02:10]FM_GetShiftState [14:02:10]SAM_PROTO_GetShiftState [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 13 01 00 [14:02:10]Write to MH i2c: E2 08 00 3F 20 80 13 01 00 00 00 00 00 DC [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 0E 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 0E 00 3F 20 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 12 [14:02:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:02:10]wFMCommunicate OK [14:02:10]SAM_PROTO_GetShiftState done [14:02:10]FM_GetShiftState done [14:02:10]req_shift_opened done [14:02:10]requested_item shift.open_date is exist - process it [14:02:10]req_shift_open_date [14:02:10]req_shift_open_date done [14:02:10]produce_requested_data done [14:02:10]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162839,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:02:10]process_action_free close_receipt [14:02:10]json_value_free [14:02:10]json_value_free done [14:02:10]process_json_proto returns [14:02:10]Send response to host [14:02:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162839,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:02:10]free response buf [14:02:10]execute_script done [14:02:10]execute_script returns [14:02:10]free content buf [14:02:10]Sock 7.Close socket [14:02:10]Sock 7.Thread stoped [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:22]accept exits with 9 [14:04:22]New connection [14:04:22]New thread 3066879332 created [14:04:22]Thread 3066735972 joined [14:04:22]Waiting for new connection... [14:04:22] Sock 9.Parse request [14:04:22]Sock 9.Check first char [14:04:22]Sock 9.First char is OK [14:04:22]request: POST /json_proto HTTP/1.0 [14:04:22]Method: POST [14:04:22]URL: /json_proto [14:04:22]Method is POST - this is cgi request [14:04:22]url: /json_proto [14:04:22]query_string will be loaded in cgi processing [14:04:22]execute_cgi json_proto POST (null) [14:04:22]execute_cgi path=json_proto method=POST [14:04:22]POST find Content-Length [14:04:22]Host: 172.17.39.67:8080 [14:04:22]Content-Length: 849 [14:04:22]Content-Type: application/json [14:04:22] [14:04:22]POST finish read [14:04:22]Found Content-Length = 849 [14:04:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:22]execute_script... [14:04: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)1319439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:22]POST & json_proto [14:04:22]process_json_proto [14:04:22]json parsed OK: [14:04:22]protocol is kg_v1.0 [14:04:22]action value=close_receipt [14:04:22]process_action close_receipt [14:04:22]cmd_close_receipt [14:04:22]MH_GetDate [14:04:22]Write to MH i2c: F0 00 00 40 20 4F [14:04:22]Write i2c OK [14:04:22]MH_I2C_Read... [14:04:22]Read from MH i2c: F0 [14:04:22]MH_I2C_Read... [14:04:22]Read from MH i2c: F0 09 00 [14:04:22]MH_I2C_Read... [14:04:22]Read from MH i2c: F0 09 00 40 20 00 E8 DA 93 66 B6 85 93 66 47 [14:04:22]GetLastDocTimeStamp 1720965728 [14:04:22]current date 1720965864 [14:04:22]FM_GetShiftState [14:04:22]SAM_PROTO_GetShiftState [14:04:22]wFMCommunicate request_size=4 [14:04:22]MH_SAM_APDU [14:04:22]CAPDU: 80 13 01 00 [14:04:22]Write to MH i2c: E2 08 00 41 20 80 13 01 00 00 00 00 00 DE [14:04:22]Write i2c OK [14:04:22]MH_I2C_Read... [14:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:23]Read from MH i2c: E2 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 0E 00 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 0E 00 41 20 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 14 [14:04:23]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:04:23]wFMCommunicate OK [14:04:23]SAM_PROTO_GetShiftState done [14:04:23]FM_GetShiftState done [14:04:23]opened in 1720915483 [14:04:23]opened+sec_in_day 1721001883 [14:04:23]quantity*price = 300055 [14:04:23]sum+1 = 300057 [14:04:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 152 14.07.2024 14:04 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162840 ФПД: 27861894930887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140424&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162840&fm=27861894930887&tin=02508201610067®Number=0000000000090858&sum=300056 [14:04:24]StoreToDocumentArchive [14:04:24]shift 463 fd 162840 [14:04:24]save to /storage/0463/doc_00162840 [14:04:24]save last doc name /storage/0463/doc_00162840 to /storage/kkm_last_doc_name [14:04:24]save OK [14:04:24]Clear old archive folders... [14:04:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:04:24]tlvbuf is 0134DBC0 [14:04:24]SAM_PROTO_ClearQueue [14:04:24]wFMCommunicate request_size=4 [14:04:24]MH_SAM_APDU [14:04:24]CAPDU: 80 09 00 00 [14:04:24]Write to MH i2c: E2 08 00 4E 20 80 09 00 00 00 00 00 00 E0 [14:04:24]Write i2c OK [14:04:24]MH_I2C_Read... [14:04:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:24]Read from MH i2c: E2 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 03 00 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 03 00 4E 20 00 90 00 E2 [14:04:24]RAPDU: 90 00 [14:04:24]wFMCommunicate OK [14:04:24]SAM_PROTO_ClearQueue done [14:04:24]KKMCreateOFDPacket [14:04:24]OFDProtocolAddRootSTLVToBuf [14:04:24]FM_MakeSignedData [14:04:24]FM_MakeSignedData [14:04:24]SAM_PROTO_SignData [14:04:24]wFMCommunicate request_size=4 [14:04:24]MH_SAM_APDU [14:04:24]CAPDU: 80 0D 01 02 [14:04:24]Write to MH i2c: E2 08 00 4F 20 80 0D 01 02 00 00 00 00 E8 [14:04:24]Write i2c OK [14:04:24]MH_I2C_Read... [14:04:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:24]Read from MH i2c: E2 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 03 00 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 03 00 4F 20 00 90 00 E3 [14:04:24]RAPDU: 90 00 [14:04:24]wFMCommunicate OK [14:04:24]wFMCommunicate request_size=255 [14:04:24]MH_SAM_APDU [14:04:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E8 DA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 18 7C 02 00 35 04 06 00 [14:04:24]Write to MH i2c: E2 02 01 50 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E8 DA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 18 7C 02 00 35 04 06 00 00 00 F0 [14:04:24]Write i2c OK [14:04:24]MH_I2C_Read... [14:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:24]Read from MH i2c: E2 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 03 00 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 03 00 50 20 00 90 00 E4 [14:04:24]RAPDU: 90 00 [14:04:24]wFMCommunicate OK [14:04:24]wFMCommunicate request_size=11 [14:04:24]MH_SAM_APDU [14:04:24]CAPDU: 80 0D 02 02 06 19 57 1A 59 A1 C7 [14:04:24]Write to MH i2c: E2 0E 00 51 20 80 0D 02 02 06 00 19 57 1A 59 A1 C7 00 00 42 [14:04:24]Write i2c OK [14:04:24]MH_I2C_Read... [14:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:24]Read from MH i2c: E2 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 03 00 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 03 00 51 20 00 90 00 E5 [14:04:24]RAPDU: 90 00 [14:04:24]wFMCommunicate OK [14:04:24]wFMCommunicate request_size=4 [14:04:24]MH_SAM_APDU [14:04:24]CAPDU: 80 0D 03 02 [14:04:24]Write to MH i2c: E2 08 00 52 20 80 0D 03 02 00 00 00 00 ED [14:04:24]Write i2c OK [14:04:24]MH_I2C_Read... [14:04:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:24]Read from MH i2c: E2 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 0B 00 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 0B 00 52 20 00 5C 4B CB 2B 1C 51 52 B0 90 00 FA [14:04:24]RAPDU: 5C 4B CB 2B 1C 51 52 B0 90 00 [14:04:24]wFMCommunicate OK [14:04:24]SAM_PROTO_SignData done [14:04:24]FM_MakeSignedData done [14:04:24]CreateOFDProtocolMessage [14:04:24]wFMCommunicate request_size=4 [14:04:24]MH_SAM_APDU [14:04:24]CAPDU: 80 11 00 00 [14:04:24]Write to MH i2c: E2 08 00 53 20 80 11 00 00 00 00 00 00 ED [14:04:24]Write i2c OK [14:04:24]MH_I2C_Read... [14:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:24]Read from MH i2c: E2 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 17 00 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 17 00 53 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4D [14:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:04:24]wFMCommunicate OK [14:04:24]CreateOFDProtocolMessage done [14:04:24]OFDSenderStorePacket 162840 [14:04:24]StoreOFDPacket docnum=162840 [14:04:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 45 05 08 01 96 92 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E8 DA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 18 7C 02 00 35 04 06 00 19 57 1A 59 A1 C7 5C 4B CB 2B 1C 51 52 B0 [14:04:24]CheckFolder [14:04:24]dirname=/storage/ofd_packets [14:04:24]CheckFolder done [14:04:24]ProducePacketName [14:04:24]name=ofd_packets/00162840 [14:04:24]NVStorageSaveData ofd_packets/00162840 [14:04:24]File name is /storage/ofd_packets/00162840 [14:04:24]Write 302 bytes [14:04:24]NVStorageSaveData done [14:04:24]OFDSenderStorePacket done [14:04:24]KKMCreateOFDPacket done [14:04:24]NVStorageSaveData kkm_last_timestamp [14:04:24]File name is /storage/kkm_last_timestamp [14:04:24]Write 4 bytes [14:04:24]NVStorageSaveData done [14:04:24]ExternCall_PrintAddStr [14:04:24]wPrintStart [14:04:24]Write to MH i2c: 01 00 00 54 20 74 [14:04:24]Write i2c OK [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: 01 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: 01 07 00 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: 01 07 00 54 20 00 00 00 00 00 FF 0F 89 [14:04:24]RasterBufferAndPrint [14:04:24]line Счет N : (1)1319439 [14:04:24]line ИНН: 02508201610067 [14:04:24]line Контрольно-Кассовый Чек [14:04:24]line ПРОДАЖА [14:04:24]line ТРК (МРК, ГНК) : 11 [14:04:24]line Товар: 2710194210 [14:04:24]line ДТ(л)-К-5 [14:04:24]line 41.330 * 72.60 [14:04:24]line = 3000.56 [14:04:24]line НДС 12% НСП 1% [14:04:24]line > о реализуемом товаре [14:04:24]line ИТОГО: 3000.56 [14:04:24]line НСП 1% : 26.55 [14:04:24]line НДС 12% : 318.64 [14:04:24]line Наличными: 0.00 [14:04:24]line Безнал.: 3000.56 [14:04:24]line Место: АЗС № 140 "Партнер Нефть" [14:04:24]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:04:24]line СНО: Общий режим [14:04:24]line Чек 152 14.07.2024 14:04 [14:04:24]line Смена: 463 ФФД: 1.0 [14:04:24]line ЗНМ: 0300000129 [14:04:24]line РНМ: 0000000000090858 [14:04:24]line Версия ККМ: 001 [14:04:24]line Платежная система: АКБ Кыргызстан [14:04:24]line ФМ: 0000000000874899 [14:04:24]line ФД: 162840 [14:04:24]line ФПД: 27861894930887 [14:04:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140424&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162840&fm=27861894930887&tin=02508201610067®Number=0000000000090858&sum=300056 [14:04:24]OFD Sender: Processing packet 162840 [packets to send 106, broken 105] [14:04:24]ProducePacketName [14:04:24]name=ofd_packets/00162840 [14:04:24]OFD Sender: To server: pG, [14:04:24]CommunicateWithHost lk.salyk.kg:30040 [14:04:24]ConnectInit lk.salyk.kg [14:04:25]written 0, free lines is 4095 [14:04:25]Connected sock=10 [14:04:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 45 05 08 01 96 92 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E8 DA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 18 7C 02 00 35 04 06 00 19 57 1A 59 A1 C7 5C 4B CB 2B 1C 51 52 B0 [14:04:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 80 C4 47 00 94 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 18 7C 02 00 F4 03 04 00 F5 86 93 66 B6 04 01 00 00 A1 0B A7 D8 24 67 8E 87 [14:04:25]CommunicateWithHost err = 0 [14:04:25]CheckOFDResponse [14:04:25]1017 (14) - 77093643461234 [14:04:25]1041 (16) - 0000000000874899 [14:04:25]1040 (4) - 162840 [14:04:25]1012 (4) - 14.07.2024 08:06 [14:04:25]1206 (1) - 0 [14:04:25]OFD Sender: Remove packet 162840 [14:04:25]ProducePacketName [14:04:25]name=ofd_packets/00162840 [14:04:25]NVStorageDeleteData [14:04:25]Write to MH i2c: 01 00 00 7E 20 9E [14:04:25]Write i2c OK [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: 01 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: 01 07 00 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: 01 07 00 7E 20 00 00 00 00 00 03 0D B5 [14:04:25]RasterBufferAndPrint [14:04:25]line [14:04:25]line [14:04:25]line [14:04:25]line [14:04:25]line [14:04:25]written 0, free lines is 3337 [14:04:25]MH_Cut [14:04:25]Write to MH i2c: D1 01 00 85 20 01 77 [14:04:25]Write i2c OK [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: D1 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: D1 01 00 [14:04:25]MH_I2C_Read... [14:04:25]Read from MH i2c: D1 01 00 85 20 00 76 [14:04:25]Write to MH i2c: 01 00 00 86 20 A6 [14:04:25]Write i2c OK [14:04:25]MH_I2C_Read... [14:04:25]OFD Sender: No OFD packet to send [14:04:26]*** Cut start [14:04:26]*** Purtial cut [14:04:26]*** CUTSNS_PIN = 0 [14:04:26]*** Stage 1: CUTSNS_PIN = 1 [14:04:28]Read from MH i2c: 01 [14:04:28]MH_I2C_Read... [14:04:28]*** Stop cut motor [14:04:28]*** Cut end [14:04:28]Read from MH i2c: 01 07 00 [14:04:28]MH_I2C_Read... [14:04:28]Read from MH i2c: 01 07 00 86 20 00 00 00 00 00 FF 0F BB [14:04:28]process_action close_receipt done [14:04:28]requested_data is exist [14:04:28]produce_requested_data [14:04:28]requested_item fm.sn is exist - process it [14:04:28]wFMCommunicate request_size=4 [14:04:28]MH_SAM_APDU [14:04:28]CAPDU: 80 11 00 00 [14:04:28]Write to MH i2c: E2 08 00 87 20 80 11 00 00 00 00 00 00 21 [14:04:28]Write i2c OK [14:04:28]MH_I2C_Read... [14:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:28]Read from MH i2c: E2 [14:04:28]MH_I2C_Read... [14:04:28]Read from MH i2c: E2 17 00 [14:04:28]MH_I2C_Read... [14:04:28]Read from MH i2c: E2 17 00 87 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 81 [14:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:04:28]wFMCommunicate OK [14:04:28]requested_item fd.num is exist - process it [14:04:28]SAM_PROTO_GetFieldsCounters [14:04:28]wFMCommunicate request_size=4 [14:04:28]MH_SAM_APDU [14:04:28]CAPDU: 80 13 00 00 [14:04:28]Write to MH i2c: E2 08 00 88 20 80 13 00 00 00 00 00 00 24 [14:04:28]Write i2c OK [14:04:28]MH_I2C_Read... [14:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:28]Read from MH i2c: E2 [14:04:28]MH_I2C_Read... [14:04:28]Read from MH i2c: E2 62 00 [14:04:28]MH_I2C_Read... [14:04:28]Read from MH i2c: E2 62 00 88 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 18 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [14:04:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 18 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:28]wFMCommunicate OK [14:04:28]SAM_PROTO_GetFieldsCounters done [14:04:28]requested_item shift.num is exist - process it [14:04:28]requested_item shift.opened is exist - process it [14:04:28]req_shift_opened [14:04:28]FM_GetShiftState [14:04:28]SAM_PROTO_GetShiftState [14:04:28]wFMCommunicate request_size=4 [14:04:28]MH_SAM_APDU [14:04:28]CAPDU: 80 13 01 00 [14:04:28]Write to MH i2c: E2 08 00 89 20 80 13 01 00 00 00 00 00 26 [14:04:28]Write i2c OK [14:04:28]MH_I2C_Read... [14:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:28]Read from MH i2c: E2 [14:04:28]MH_I2C_Read... [14:04:28]Read from MH i2c: E2 0E 00 [14:04:28]MH_I2C_Read... [14:04:28]Read from MH i2c: E2 0E 00 89 20 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5C [14:04:28]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:04:28]wFMCommunicate OK [14:04:28]SAM_PROTO_GetShiftState done [14:04:28]FM_GetShiftState done [14:04:28]req_shift_opened done [14:04:28]requested_item shift.open_date is exist - process it [14:04:28]req_shift_open_date [14:04:28]req_shift_open_date done [14:04:28]produce_requested_data done [14:04:28]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162840,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:04:28]process_action_free close_receipt [14:04:28]json_value_free [14:04:28]json_value_free done [14:04:28]process_json_proto returns [14:04:28]Send response to host [14:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162840,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:04:28]free response buf [14:04:28]execute_script done [14:04:28]execute_script returns [14:04:28]free content buf [14:04:28]Sock 9.Close socket [14:04:28]Sock 9.Thread stoped [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:41]accept exits with 7 [14:04:41]New connection [14:04:41]New thread 3066735972 created [14:04:41]Thread 3066879332 joined [14:04:41]Waiting for new connection... [14:04:41] Sock 7.Parse request [14:04:41]Sock 7.Check first char [14:04:41]Sock 7.First char is OK [14:04:41]request: POST /json_proto HTTP/1.0 [14:04:41]Method: POST [14:04:41]URL: /json_proto [14:04:41]Method is POST - this is cgi request [14:04:41]url: /json_proto [14:04:41]query_string will be loaded in cgi processing [14:04:41]execute_cgi json_proto POST (null) [14:04:41]execute_cgi path=json_proto method=POST [14:04:41]POST find Content-Length [14:04:41]Host: 172.17.39.67:8080 [14:04:41]Content-Length: 683 [14:04:41]Content-Type: application/json [14:04:41] [14:04:41]POST finish read [14:04:41]Found Content-Length = 683 [14:04:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:04:41]execute_script... [14:04: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)1319440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:04:41]POST & json_proto [14:04:41]process_json_proto [14:04:41]json parsed OK: [14:04:41]protocol is kg_v1.0 [14:04:41]action value=close_receipt [14:04:41]process_action close_receipt [14:04:41]cmd_close_receipt [14:04:41]MH_GetDate [14:04:41]Write to MH i2c: F0 00 00 8A 20 99 [14:04:41]Write i2c OK [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: F0 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: F0 09 00 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: F0 09 00 8A 20 00 FA DA 93 66 B6 85 93 66 A3 [14:04:41]GetLastDocTimeStamp 1720965864 [14:04:41]current date 1720965882 [14:04:41]FM_GetShiftState [14:04:41]SAM_PROTO_GetShiftState [14:04:41]wFMCommunicate request_size=4 [14:04:41]MH_SAM_APDU [14:04:41]CAPDU: 80 13 01 00 [14:04:41]Write to MH i2c: E2 08 00 8B 20 80 13 01 00 00 00 00 00 28 [14:04:41]Write i2c OK [14:04:41]MH_I2C_Read... [14:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:41]Read from MH i2c: E2 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 0E 00 [14:04:41]MH_I2C_Read... [14:04:41]Read from MH i2c: E2 0E 00 8B 20 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5E [14:04:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:04:41]wFMCommunicate OK [14:04:41]SAM_PROTO_GetShiftState done [14:04:41]FM_GetShiftState done [14:04:41]opened in 1720915483 [14:04:41]opened+sec_in_day 1721001883 [14:04:41]quantity*price = 100046 [14:04:41]sum+1 = 100048 [14:04:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 153 14.07.2024 14:04 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162841 ФПД: 91519902292494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140442&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162841&fm=91519902292494&tin=02508201610067®Number=0000000000090858&sum=100000 [14:04:42]StoreToDocumentArchive [14:04:42]shift 463 fd 162841 [14:04:42]save to /storage/0463/doc_00162841 [14:04:42]save last doc name /storage/0463/doc_00162841 to /storage/kkm_last_doc_name [14:04:42]save OK [14:04:42]Clear old archive folders... [14:04:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:42]tlvbuf is 0134E6F0 [14:04:42]SAM_PROTO_ClearQueue [14:04:42]wFMCommunicate request_size=4 [14:04:42]MH_SAM_APDU [14:04:42]CAPDU: 80 09 00 00 [14:04:42]Write to MH i2c: E2 08 00 98 20 80 09 00 00 00 00 00 00 2A [14:04:42]Write i2c OK [14:04:42]MH_I2C_Read... [14:04:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:42]Read from MH i2c: E2 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 03 00 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 03 00 98 20 00 90 00 2C [14:04:42]RAPDU: 90 00 [14:04:42]wFMCommunicate OK [14:04:42]SAM_PROTO_ClearQueue done [14:04:42]KKMCreateOFDPacket [14:04:42]OFDProtocolAddRootSTLVToBuf [14:04:42]FM_MakeSignedData [14:04:42]FM_MakeSignedData [14:04:42]SAM_PROTO_SignData [14:04:42]wFMCommunicate request_size=4 [14:04:42]MH_SAM_APDU [14:04:42]CAPDU: 80 0D 01 02 [14:04:42]Write to MH i2c: E2 08 00 99 20 80 0D 01 02 00 00 00 00 32 [14:04:42]Write i2c OK [14:04:42]MH_I2C_Read... [14:04:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:42]Read from MH i2c: E2 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 03 00 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 03 00 99 20 00 90 00 2D [14:04:42]RAPDU: 90 00 [14:04:42]wFMCommunicate OK [14:04:42]wFMCommunicate request_size=255 [14:04:42]MH_SAM_APDU [14:04:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 FA DA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 19 7C 02 00 35 04 06 00 53 [14:04:42]Write to MH i2c: E2 02 01 9A 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 FA DA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 19 7C 02 00 35 04 06 00 53 00 00 5E [14:04:42]Write i2c OK [14:04:42]MH_I2C_Read... [14:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:42]Read from MH i2c: E2 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 03 00 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 03 00 9A 20 00 90 00 2E [14:04:42]RAPDU: 90 00 [14:04:42]wFMCommunicate OK [14:04:42]wFMCommunicate request_size=10 [14:04:42]MH_SAM_APDU [14:04:42]CAPDU: 80 0D 02 02 05 3C A3 44 1A 0E [14:04:42]Write to MH i2c: E2 0D 00 9B 20 80 0D 02 02 05 00 3C A3 44 1A 0E 00 00 8A [14:04:42]Write i2c OK [14:04:42]MH_I2C_Read... [14:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:42]Read from MH i2c: E2 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 03 00 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 03 00 9B 20 00 90 00 2F [14:04:42]RAPDU: 90 00 [14:04:42]wFMCommunicate OK [14:04:42]wFMCommunicate request_size=4 [14:04:42]MH_SAM_APDU [14:04:42]CAPDU: 80 0D 03 02 [14:04:42]Write to MH i2c: E2 08 00 9C 20 80 0D 03 02 00 00 00 00 37 [14:04:42]Write i2c OK [14:04:42]MH_I2C_Read... [14:04:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:42]Read from MH i2c: E2 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 0B 00 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 0B 00 9C 20 00 10 F7 90 71 61 A3 CC 87 90 00 97 [14:04:42]RAPDU: 10 F7 90 71 61 A3 CC 87 90 00 [14:04:42]wFMCommunicate OK [14:04:42]SAM_PROTO_SignData done [14:04:42]FM_MakeSignedData done [14:04:42]CreateOFDProtocolMessage [14:04:42]wFMCommunicate request_size=4 [14:04:42]MH_SAM_APDU [14:04:42]CAPDU: 80 11 00 00 [14:04:42]Write to MH i2c: E2 08 00 9D 20 80 11 00 00 00 00 00 00 37 [14:04:42]Write i2c OK [14:04:42]MH_I2C_Read... [14:04:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:42]Read from MH i2c: E2 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 17 00 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: E2 17 00 9D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 97 [14:04:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:04:42]wFMCommunicate OK [14:04:42]CreateOFDProtocolMessage done [14:04:42]OFDSenderStorePacket 162841 [14:04:42]StoreOFDPacket docnum=162841 [14:04:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 CC 5A 07 01 DA 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 FA DA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 19 7C 02 00 35 04 06 00 53 3C A3 44 1A 0E 10 F7 90 71 61 A3 CC 87 [14:04:42]CheckFolder [14:04:42]dirname=/storage/ofd_packets [14:04:42]CheckFolder done [14:04:42]ProducePacketName [14:04:42]name=ofd_packets/00162841 [14:04:42]NVStorageSaveData ofd_packets/00162841 [14:04:42]File name is /storage/ofd_packets/00162841 [14:04:42]Write 301 bytes [14:04:42]NVStorageSaveData done [14:04:42]OFDSenderStorePacket done [14:04:42]KKMCreateOFDPacket done [14:04:42]NVStorageSaveData kkm_last_timestamp [14:04:42]File name is /storage/kkm_last_timestamp [14:04:42]Write 4 bytes [14:04:42]NVStorageSaveData done [14:04:42]ExternCall_PrintAddStr [14:04:42]wPrintStart [14:04:42]Write to MH i2c: 01 00 00 9E 20 BE [14:04:42]Write i2c OK [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: 01 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: 01 07 00 [14:04:42]MH_I2C_Read... [14:04:42]Read from MH i2c: 01 07 00 9E 20 00 00 00 00 00 FF 0F D3 [14:04:42]RasterBufferAndPrint [14:04:42]line Счет N : (1)1319440 [14:04:42]line ИНН: 02508201610067 [14:04:42]line Контрольно-Кассовый Чек [14:04:42]line ПРОДАЖА [14:04:42]line ТРК (МРК, ГНК) : 43 [14:04:42]line Товар: 2710124130 [14:04:42]line Аи-92-К-5 [14:04:42]line 15.090 * 66.30 [14:04:42]line = 1000.47 [14:04:42]line НДС 12% НСП 1% [14:04:42]line > о реализуемом товаре [14:04:42]line ОКРУГЛЕНИЕ: -0.47 [14:04:42]line ИТОГО: 1000.00 [14:04:42]line Внесено: 1000.00 [14:04:42]line СДАЧА: 0.00 [14:04:42]line НСП 1% : 8.85 [14:04:42]line НДС 12% : 106.24 [14:04:42]line Наличными: 1000.00 [14:04:42]line Безнал.: 0.00 [14:04:42]line Место: АЗС № 140 "Партнер Нефть" [14:04:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:04:42]line СНО: Общий режим [14:04:42]line Чек 153 14.07.2024 14:04 [14:04:42]line Смена: 463 ФФД: 1.0 [14:04:42]line ЗНМ: 0300000129 [14:04:42]line РНМ: 0000000000090858 [14:04:42]line Версия ККМ: 001 [14:04:42]line ФМ: 0000000000874899 [14:04:42]line ФД: 162841 [14:04:42]line ФПД: 91519902292494 [14:04:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140442&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162841&fm=91519902292494&tin=02508201610067®Number=0000000000090858&sum=100000 [14:04:43]OFD Sender: Processing packet 162841 [packets to send 106, broken 105] [14:04:43]ProducePacketName [14:04:43]name=ofd_packets/00162841 [14:04:43]OFD Sender: To server: pG, [14:04:43]CommunicateWithHost lk.salyk.kg:30040 [14:04:43]ConnectInit lk.salyk.kg [14:04:43]written 0, free lines is 4095 [14:04:43]Connected sock=10 [14:04:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 CC 5A 07 01 DA 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 FA DA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 19 7C 02 00 35 04 06 00 53 3C A3 44 1A 0E 10 F7 90 71 61 A3 CC 87 [14:04:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 51 3E 47 00 31 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 19 7C 02 00 F4 03 04 00 08 87 93 66 B6 04 01 00 00 7F C1 AD 3A D6 BF F8 A8 [14:04:43]CommunicateWithHost err = 0 [14:04:43]CheckOFDResponse [14:04:43]1017 (14) - 77093643461234 [14:04:43]1041 (16) - 0000000000874899 [14:04:43]1040 (4) - 162841 [14:04:43]1012 (4) - 14.07.2024 08:06 [14:04:43]1206 (1) - 0 [14:04:43]OFD Sender: Remove packet 162841 [14:04:43]ProducePacketName [14:04:43]name=ofd_packets/00162841 [14:04:43]NVStorageDeleteData [14:04:43]Write to MH i2c: 01 00 00 C9 20 E9 [14:04:43]Write i2c OK [14:04:43]MH_I2C_Read... [14:04:43]Read from MH i2c: 01 [14:04:43]MH_I2C_Read... [14:04:43]Read from MH i2c: 01 07 00 [14:04:43]MH_I2C_Read... [14:04:43]Read from MH i2c: 01 07 00 C9 20 00 00 00 00 00 EA 0C E6 [14:04:43]RasterBufferAndPrint [14:04:43]line [14:04:43]line [14:04:43]line [14:04:43]line [14:04:43]line [14:04:43]written 0, free lines is 3312 [14:04:43]MH_Cut [14:04:43]Write to MH i2c: D1 01 00 D0 20 01 C2 [14:04:43]Write i2c OK [14:04:43]MH_I2C_Read... [14:04:43]Read from MH i2c: D1 [14:04:43]MH_I2C_Read... [14:04:43]Read from MH i2c: D1 01 00 [14:04:43]MH_I2C_Read... [14:04:43]Read from MH i2c: D1 01 00 D0 20 00 C1 [14:04:43]Write to MH i2c: 01 00 00 D1 20 F1 [14:04:43]Write i2c OK [14:04:43]MH_I2C_Read... [14:04:44]OFD Sender: No OFD packet to send [14:04:44]*** Cut start [14:04:44]*** Purtial cut [14:04:44]*** Stage 1: CUTSNS_PIN = 1 [14:04:44]Read from MH i2c: 01 [14:04:44]MH_I2C_Read... [14:04:44]*** Stop cut motor [14:04:44]*** Cut end [14:04:44]Read from MH i2c: 01 07 00 [14:04:44]MH_I2C_Read... [14:04:44]Read from MH i2c: 01 07 00 D1 20 00 00 00 00 00 FF 0F 06 [14:04:44]process_action close_receipt done [14:04:44]requested_data is exist [14:04:44]produce_requested_data [14:04:44]requested_item fm.sn is exist - process it [14:04:44]wFMCommunicate request_size=4 [14:04:44]MH_SAM_APDU [14:04:44]CAPDU: 80 11 00 00 [14:04:44]Write to MH i2c: E2 08 00 D2 20 80 11 00 00 00 00 00 00 6C [14:04:44]Write i2c OK [14:04:44]MH_I2C_Read... [14:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:44]Read from MH i2c: E2 [14:04:44]MH_I2C_Read... [14:04:44]Read from MH i2c: E2 17 00 [14:04:44]MH_I2C_Read... [14:04:44]Read from MH i2c: E2 17 00 D2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CC [14:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:04:44]wFMCommunicate OK [14:04:44]requested_item fd.num is exist - process it [14:04:44]SAM_PROTO_GetFieldsCounters [14:04:44]wFMCommunicate request_size=4 [14:04:44]MH_SAM_APDU [14:04:44]CAPDU: 80 13 00 00 [14:04:44]Write to MH i2c: E2 08 00 D3 20 80 13 00 00 00 00 00 00 6F [14:04:44]Write i2c OK [14:04:44]MH_I2C_Read... [14:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:44]Read from MH i2c: E2 [14:04:44]MH_I2C_Read... [14:04:44]Read from MH i2c: E2 62 00 [14:04:44]MH_I2C_Read... [14:04:44]Read from MH i2c: E2 62 00 D3 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 19 7C 02 00 0E 04 04 00 CF 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 D4 [14:04:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 19 7C 02 00 0E 04 04 00 CF 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 [14:04:44]wFMCommunicate OK [14:04:44]SAM_PROTO_GetFieldsCounters done [14:04:44]requested_item shift.num is exist - process it [14:04:44]requested_item shift.opened is exist - process it [14:04:44]req_shift_opened [14:04:44]FM_GetShiftState [14:04:44]SAM_PROTO_GetShiftState [14:04:44]wFMCommunicate request_size=4 [14:04:44]MH_SAM_APDU [14:04:44]CAPDU: 80 13 01 00 [14:04:44]Write to MH i2c: E2 08 00 D4 20 80 13 01 00 00 00 00 00 71 [14:04:44]Write i2c OK [14:04:44]MH_I2C_Read... [14:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:44]Read from MH i2c: E2 [14:04:44]MH_I2C_Read... [14:04:44]Read from MH i2c: E2 0E 00 [14:04:44]MH_I2C_Read... [14:04:44]Read from MH i2c: E2 0E 00 D4 20 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A7 [14:04:44]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:04:44]wFMCommunicate OK [14:04:44]SAM_PROTO_GetShiftState done [14:04:44]FM_GetShiftState done [14:04:44]req_shift_opened done [14:04:44]requested_item shift.open_date is exist - process it [14:04:44]req_shift_open_date [14:04:44]req_shift_open_date done [14:04:44]produce_requested_data done [14:04:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162841,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:04:44]process_action_free close_receipt [14:04:44]json_value_free [14:04:44]json_value_free done [14:04:44]process_json_proto returns [14:04:44]Send response to host [14:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162841,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:04:44]free response buf [14:04:44]execute_script done [14:04:44]execute_script returns [14:04:44]free content buf [14:04:44]Sock 7.Close socket [14:04:44]Sock 7.Thread stoped [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]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: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:13]accept exits with 9 [14:08:13]New connection [14:08:13]New thread 3066879332 created [14:08:13]Thread 3066735972 joined [14:08:13]Waiting for new connection... [14:08:13] Sock 9.Parse request [14:08:13]Sock 9.Check first char [14:08:13]Sock 9.First char is OK [14:08:13]request: POST /json_proto HTTP/1.0 [14:08:13]Method: POST [14:08:13]URL: /json_proto [14:08:13]Method is POST - this is cgi request [14:08:13]url: /json_proto [14:08:13]query_string will be loaded in cgi processing [14:08:13]execute_cgi json_proto POST (null) [14:08:13]execute_cgi path=json_proto method=POST [14:08:13]POST find Content-Length [14:08:13]Host: 172.17.39.67:8080 [14:08:13]Content-Length: 802 [14:08:13]Content-Type: application/json [14:08:13] [14:08:13]POST finish read [14:08:13]Found Content-Length = 802 [14:08:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:13]execute_script... [14:08: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)1319441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:13]POST & json_proto [14:08:13]process_json_proto [14:08:13]json parsed OK: [14:08:13]protocol is kg_v1.0 [14:08:13]action value=close_receipt [14:08:13]process_action close_receipt [14:08:13]cmd_close_receipt [14:08:13]MH_GetDate [14:08:13]Write to MH i2c: F0 00 00 D5 20 E4 [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: F0 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: F0 09 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: F0 09 00 D5 20 00 CF DB 93 66 B6 85 93 66 C4 [14:08:13]GetLastDocTimeStamp 1720965882 [14:08:13]current date 1720966095 [14:08:13]FM_GetShiftState [14:08:13]SAM_PROTO_GetShiftState [14:08:13]wFMCommunicate request_size=4 [14:08:13]MH_SAM_APDU [14:08:13]CAPDU: 80 13 01 00 [14:08:13]Write to MH i2c: E2 08 00 D6 20 80 13 01 00 00 00 00 00 73 [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:13]Read from MH i2c: E2 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 0E 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: E2 0E 00 D6 20 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A9 [14:08:13]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:08:13]wFMCommunicate OK [14:08:13]SAM_PROTO_GetShiftState done [14:08:13]FM_GetShiftState done [14:08:13]opened in 1720915483 [14:08:13]opened+sec_in_day 1721001883 [14:08:13]quantity*price = 66300 [14:08:13]sum+1 = 66301 [14:08:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 0.00 Безнал.: 663.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 154 14.07.2024 14:08 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162842 ФПД: 275698749159017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140815&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162842&fm=275698749159017&tin=02508201610067®Number=0000000000090858&sum=66300 [14:08:14]StoreToDocumentArchive [14:08:14]shift 463 fd 162842 [14:08:14]save to /storage/0463/doc_00162842 [14:08:14]save last doc name /storage/0463/doc_00162842 to /storage/kkm_last_doc_name [14:08:14]save OK [14:08:14]Clear old archive folders... [14:08:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:14]tlvbuf is 0122D270 [14:08:14]SAM_PROTO_ClearQueue [14:08:14]wFMCommunicate request_size=4 [14:08:14]MH_SAM_APDU [14:08:14]CAPDU: 80 09 00 00 [14:08:14]Write to MH i2c: E2 08 00 E3 20 80 09 00 00 00 00 00 00 75 [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:14]Read from MH i2c: E2 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 03 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 03 00 E3 20 00 90 00 77 [14:08:14]RAPDU: 90 00 [14:08:14]wFMCommunicate OK [14:08:14]SAM_PROTO_ClearQueue done [14:08:14]KKMCreateOFDPacket [14:08:14]OFDProtocolAddRootSTLVToBuf [14:08:14]FM_MakeSignedData [14:08:14]FM_MakeSignedData [14:08:14]SAM_PROTO_SignData [14:08:14]wFMCommunicate request_size=4 [14:08:14]MH_SAM_APDU [14:08:14]CAPDU: 80 0D 01 02 [14:08:14]Write to MH i2c: E2 08 00 E4 20 80 0D 01 02 00 00 00 00 7D [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:15]Read from MH i2c: E2 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 E4 20 00 90 00 78 [14:08:15]RAPDU: 90 00 [14:08:15]wFMCommunicate OK [14:08:15]wFMCommunicate request_size=255 [14:08:15]MH_SAM_APDU [14:08: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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 CF DB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1A 7C 02 00 35 04 06 00 FA [14:08:15]Write to MH i2c: E2 02 01 E5 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 CF DB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1A 7C 02 00 35 04 06 00 FA 00 00 54 [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:15]Read from MH i2c: E2 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 E5 20 00 90 00 79 [14:08:15]RAPDU: 90 00 [14:08:15]wFMCommunicate OK [14:08:15]wFMCommunicate request_size=10 [14:08:15]MH_SAM_APDU [14:08:15]CAPDU: 80 0D 02 02 05 BF 1E 02 36 69 [14:08:15]Write to MH i2c: E2 0D 00 E6 20 80 0D 02 02 05 00 BF 1E 02 36 69 00 00 08 [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:15]Read from MH i2c: E2 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 03 00 E6 20 00 90 00 7A [14:08:15]RAPDU: 90 00 [14:08:15]wFMCommunicate OK [14:08:15]wFMCommunicate request_size=4 [14:08:15]MH_SAM_APDU [14:08:15]CAPDU: 80 0D 03 02 [14:08:15]Write to MH i2c: E2 08 00 E7 20 80 0D 03 02 00 00 00 00 82 [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:15]Read from MH i2c: E2 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 0B 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 0B 00 E7 20 00 AB 1F 65 39 E2 91 69 90 90 00 57 [14:08:15]RAPDU: AB 1F 65 39 E2 91 69 90 90 00 [14:08:15]wFMCommunicate OK [14:08:15]SAM_PROTO_SignData done [14:08:15]FM_MakeSignedData done [14:08:15]CreateOFDProtocolMessage [14:08:15]wFMCommunicate request_size=4 [14:08:15]MH_SAM_APDU [14:08:15]CAPDU: 80 11 00 00 [14:08:15]Write to MH i2c: E2 08 00 E8 20 80 11 00 00 00 00 00 00 82 [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:15]Read from MH i2c: E2 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 17 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 17 00 E8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E2 [14:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:08:15]wFMCommunicate OK [14:08:15]CreateOFDProtocolMessage done [14:08:15]OFDSenderStorePacket 162842 [14:08:15]StoreOFDPacket docnum=162842 [14:08:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8E 2E 07 01 72 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 CF DB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1A 7C 02 00 35 04 06 00 FA BF 1E 02 36 69 AB 1F 65 39 E2 91 69 90 [14:08:15]CheckFolder [14:08:15]dirname=/storage/ofd_packets [14:08:15]CheckFolder done [14:08:15]ProducePacketName [14:08:15]name=ofd_packets/00162842 [14:08:15]NVStorageSaveData ofd_packets/00162842 [14:08:15]File name is /storage/ofd_packets/00162842 [14:08:15]Write 301 bytes [14:08:15]NVStorageSaveData done [14:08:15]OFDSenderStorePacket done [14:08:15]KKMCreateOFDPacket done [14:08:15]NVStorageSaveData kkm_last_timestamp [14:08:15]File name is /storage/kkm_last_timestamp [14:08:15]Write 4 bytes [14:08:15]NVStorageSaveData done [14:08:15]ExternCall_PrintAddStr [14:08:15]wPrintStart [14:08:15]Write to MH i2c: 01 00 00 E9 20 09 [14:08:15]Write i2c OK [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: 01 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: 01 07 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: 01 07 00 E9 20 00 00 00 00 00 FF 0F 1E [14:08:15]RasterBufferAndPrint [14:08:15]line Счет N : (1)1319441 [14:08:15]line ИНН: 02508201610067 [14:08:15]line Контрольно-Кассовый Чек [14:08:15]line ПРОДАЖА [14:08:15]line ТРК (МРК, ГНК) : 43 [14:08:15]line Товар: 2710124130 [14:08:15]line Аи-92-К-5 [14:08:15]line 10.000 * 66.30 [14:08:15]line = 663.00 [14:08:15]line НДС 12% НСП 1% [14:08:15]line > о реализуемом товаре [14:08:15]line ИТОГО: 663.00 [14:08:15]line НСП 1% : 5.87 [14:08:15]line НДС 12% : 70.41 [14:08:15]line Наличными: 0.00 [14:08:15]line Безнал.: 663.00 [14:08:15]line Место: АЗС № 140 "Партнер Нефть" [14:08:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:08:15]line СНО: Общий режим [14:08:15]line Чек 154 14.07.2024 14:08 [14:08:15]line Смена: 463 ФФД: 1.0 [14:08:15]line ЗНМ: 0300000129 [14:08:15]line РНМ: 0000000000090858 [14:08:15]line Версия ККМ: 001 [14:08:15]line Платежная система: O! деньги [14:08:15]line ФМ: 0000000000874899 [14:08:15]line ФД: 162842 [14:08:15]line ФПД: 275698749159017 [14:08:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T140815&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162842&fm=275698749159017&tin=02508201610067®Number=0000000000090858&sum=66300 [14:08:15]written 0, free lines is 4095 [14:08:15]OFD Sender: Processing packet 162842 [packets to send 106, broken 105] [14:08:15]ProducePacketName [14:08:15]name=ofd_packets/00162842 [14:08:15]OFD Sender: To server: pG, [14:08:15]CommunicateWithHost lk.salyk.kg:30040 [14:08:15]ConnectInit lk.salyk.kg [14:08:15]Connected sock=10 [14:08:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8E 2E 07 01 72 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 CF DB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1A 7C 02 00 35 04 06 00 FA BF 1E 02 36 69 AB 1F 65 39 E2 91 69 90 [14:08:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 37 98 47 00 21 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1A 7C 02 00 F4 03 04 00 DC 87 93 66 B6 04 01 00 00 15 2B 89 A0 22 EC 99 BD [14:08:15]CommunicateWithHost err = 0 [14:08:15]CheckOFDResponse [14:08:15]1017 (14) - 77093643461234 [14:08:15]1041 (16) - 0000000000874899 [14:08:15]1040 (4) - 162842 [14:08:15]1012 (4) - 14.07.2024 08:10 [14:08:15]1206 (1) - 0 [14:08:15]OFD Sender: Remove packet 162842 [14:08:15]ProducePacketName [14:08:15]name=ofd_packets/00162842 [14:08:15]NVStorageDeleteData [14:08:16]Write to MH i2c: 01 00 00 13 21 34 [14:08:16]Write i2c OK [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: 01 [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: 01 07 00 [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: 01 07 00 13 21 00 00 00 00 00 ED 0C 34 [14:08:16]RasterBufferAndPrint [14:08:16]line [14:08:16]line [14:08:16]line [14:08:16]line [14:08:16]line [14:08:16]written 0, free lines is 3315 [14:08:16]MH_Cut [14:08:16]Write to MH i2c: D1 01 00 1A 21 01 0D [14:08:16]Write i2c OK [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: D1 [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: D1 01 00 [14:08:16]MH_I2C_Read... [14:08:16]Read from MH i2c: D1 01 00 1A 21 00 0C [14:08:16]Write to MH i2c: 01 00 00 1B 21 3C [14:08:16]Write i2c OK [14:08:16]MH_I2C_Read... [14:08:16]OFD Sender: No OFD packet to send [14:08:16]*** Cut start [14:08:16]*** Purtial cut [14:08:16]*** CUTSNS_PIN = 0 [14:08:17]*** Stage 1: CUTSNS_PIN = 1 [14:08:18]Read from MH i2c: 01 [14:08:18]MH_I2C_Read... [14:08:18]*** Stop cut motor [14:08:18]*** Cut end [14:08:18]Read from MH i2c: 01 07 00 [14:08:18]MH_I2C_Read... [14:08:18]Read from MH i2c: 01 07 00 1B 21 00 00 00 00 00 FF 0F 51 [14:08:18]process_action close_receipt done [14:08:18]requested_data is exist [14:08:18]produce_requested_data [14:08:18]requested_item fm.sn is exist - process it [14:08:18]wFMCommunicate request_size=4 [14:08:18]MH_SAM_APDU [14:08:18]CAPDU: 80 11 00 00 [14:08:18]Write to MH i2c: E2 08 00 1C 21 80 11 00 00 00 00 00 00 B7 [14:08:18]Write i2c OK [14:08:18]MH_I2C_Read... [14:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:19]Read from MH i2c: E2 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 17 00 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 17 00 1C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 17 [14:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:08:19]wFMCommunicate OK [14:08:19]requested_item fd.num is exist - process it [14:08:19]SAM_PROTO_GetFieldsCounters [14:08:19]wFMCommunicate request_size=4 [14:08:19]MH_SAM_APDU [14:08:19]CAPDU: 80 13 00 00 [14:08:19]Write to MH i2c: E2 08 00 1D 21 80 13 00 00 00 00 00 00 BA [14:08:19]Write i2c OK [14:08:19]MH_I2C_Read... [14:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:19]Read from MH i2c: E2 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 62 00 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 62 00 1D 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1A 7C 02 00 0E 04 04 00 CF 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 23 [14:08:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1A 7C 02 00 0E 04 04 00 CF 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 [14:08:19]wFMCommunicate OK [14:08:19]SAM_PROTO_GetFieldsCounters done [14:08:19]requested_item shift.num is exist - process it [14:08:19]requested_item shift.opened is exist - process it [14:08:19]req_shift_opened [14:08:19]FM_GetShiftState [14:08:19]SAM_PROTO_GetShiftState [14:08:19]wFMCommunicate request_size=4 [14:08:19]MH_SAM_APDU [14:08:19]CAPDU: 80 13 01 00 [14:08:19]Write to MH i2c: E2 08 00 1E 21 80 13 01 00 00 00 00 00 BC [14:08:19]Write i2c OK [14:08:19]MH_I2C_Read... [14:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:19]Read from MH i2c: E2 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 0E 00 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 0E 00 1E 21 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F2 [14:08:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:08:19]wFMCommunicate OK [14:08:19]SAM_PROTO_GetShiftState done [14:08:19]FM_GetShiftState done [14:08:19]req_shift_opened done [14:08:19]requested_item shift.open_date is exist - process it [14:08:19]req_shift_open_date [14:08:19]req_shift_open_date done [14:08:19]produce_requested_data done [14:08:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162842,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:08:19]process_action_free close_receipt [14:08:19]json_value_free [14:08:19]json_value_free done [14:08:19]process_json_proto returns [14:08:19]Send response to host [14:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162842,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:08:19]free response buf [14:08:19]execute_script done [14:08:19]execute_script returns [14:08:19]free content buf [14:08:19]Sock 9.Close socket [14:08:19]Sock 9.Thread stoped [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:22]accept exits with 7 [14:16:22]New connection [14:16:22]New thread 3066735972 created [14:16:22]Thread 3066879332 joined [14:16:22]Waiting for new connection... [14:16:22] Sock 7.Parse request [14:16:22]Sock 7.Check first char [14:16:22]Sock 7.First char is OK [14:16:22]request: POST /json_proto HTTP/1.0 [14:16:22]Method: POST [14:16:22]URL: /json_proto [14:16:22]Method is POST - this is cgi request [14:16:22]url: /json_proto [14:16:22]query_string will be loaded in cgi processing [14:16:22]execute_cgi json_proto POST (null) [14:16:22]execute_cgi path=json_proto method=POST [14:16:22]POST find Content-Length [14:16:22]Host: 172.17.39.67:8080 [14:16:22]Content-Length: 849 [14:16:22]Content-Type: application/json [14:16:22] [14:16:22]POST finish read [14:16:22]Found Content-Length = 849 [14:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 67.080, "sum" : 4870.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4870.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:22]execute_script... [14:16:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 67.080, "sum" : 4870.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4870.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:22]POST & json_proto [14:16:22]process_json_proto [14:16:22]json parsed OK: [14:16:22]protocol is kg_v1.0 [14:16:22]action value=close_receipt [14:16:22]process_action close_receipt [14:16:22]cmd_close_receipt [14:16:22]MH_GetDate [14:16:22]Write to MH i2c: F0 00 00 1F 21 2F [14:16:22]Write i2c OK [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: F0 [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: F0 09 00 [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: F0 09 00 1F 21 00 B8 DD 93 66 B6 85 93 66 FA [14:16:22]GetLastDocTimeStamp 1720966095 [14:16:22]current date 1720966584 [14:16:22]FM_GetShiftState [14:16:22]SAM_PROTO_GetShiftState [14:16:22]wFMCommunicate request_size=4 [14:16:22]MH_SAM_APDU [14:16:22]CAPDU: 80 13 01 00 [14:16:22]Write to MH i2c: E2 08 00 20 21 80 13 01 00 00 00 00 00 BE [14:16:22]Write i2c OK [14:16:22]MH_I2C_Read... [14:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:22]Read from MH i2c: E2 [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: E2 0E 00 [14:16:22]MH_I2C_Read... [14:16:22]Read from MH i2c: E2 0E 00 20 21 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F4 [14:16:22]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:16:22]wFMCommunicate OK [14:16:22]SAM_PROTO_GetShiftState done [14:16:22]FM_GetShiftState done [14:16:22]opened in 1720915483 [14:16:22]opened+sec_in_day 1721001883 [14:16:22]quantity*price = 487000 [14:16:22]sum+1 = 487002 [14:16:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4870.01 НСП 1% : 43.10 НДС 12% : 517.17 Наличными: 0.00 Безнал.: 4870.01 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 155 14.07.2024 14:16 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162843 ФПД: 213843494227397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141624&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162843&fm=213843494227397&tin=02508201610067®Number=0000000000090858&sum=487001 [14:16:24]StoreToDocumentArchive [14:16:24]shift 463 fd 162843 [14:16:24]save to /storage/0463/doc_00162843 [14:16:24]save last doc name /storage/0463/doc_00162843 to /storage/kkm_last_doc_name [14:16:24]save OK [14:16:24]Clear old archive folders... [14:16:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:16:24]tlvbuf is 0123F6A0 [14:16:24]SAM_PROTO_ClearQueue [14:16:24]wFMCommunicate request_size=4 [14:16:24]MH_SAM_APDU [14:16:24]CAPDU: 80 09 00 00 [14:16:24]Write to MH i2c: E2 08 00 2D 21 80 09 00 00 00 00 00 00 C0 [14:16:24]Write i2c OK [14:16:24]MH_I2C_Read... [14:16:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:24]Read from MH i2c: E2 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 03 00 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 03 00 2D 21 00 90 00 C2 [14:16:24]RAPDU: 90 00 [14:16:24]wFMCommunicate OK [14:16:24]SAM_PROTO_ClearQueue done [14:16:24]KKMCreateOFDPacket [14:16:24]OFDProtocolAddRootSTLVToBuf [14:16:24]FM_MakeSignedData [14:16:24]FM_MakeSignedData [14:16:24]SAM_PROTO_SignData [14:16:24]wFMCommunicate request_size=4 [14:16:24]MH_SAM_APDU [14:16:24]CAPDU: 80 0D 01 02 [14:16:24]Write to MH i2c: E2 08 00 2E 21 80 0D 01 02 00 00 00 00 C8 [14:16:24]Write i2c OK [14:16:24]MH_I2C_Read... [14:16:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:24]Read from MH i2c: E2 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 03 00 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 03 00 2E 21 00 90 00 C3 [14:16:24]RAPDU: 90 00 [14:16:24]wFMCommunicate OK [14:16:24]wFMCommunicate request_size=255 [14:16:24]MH_SAM_APDU [14:16:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 06 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 59 6E 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 6E 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 CA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 6E 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B8 DD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1B 7C 02 00 35 04 06 00 [14:16:24]Write to MH i2c: E2 02 01 2F 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 06 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 59 6E 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 6E 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 CA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 6E 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B8 DD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1B 7C 02 00 35 04 06 00 00 00 57 [14:16:24]Write i2c OK [14:16:24]MH_I2C_Read... [14:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:24]Read from MH i2c: E2 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 03 00 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 03 00 2F 21 00 90 00 C4 [14:16:24]RAPDU: 90 00 [14:16:24]wFMCommunicate OK [14:16:24]wFMCommunicate request_size=11 [14:16:24]MH_SAM_APDU [14:16:24]CAPDU: 80 0D 02 02 06 C2 7D 51 82 CD C5 [14:16:24]Write to MH i2c: E2 0E 00 30 21 80 0D 02 02 06 00 C2 7D 51 82 CD C5 00 00 7B [14:16:24]Write i2c OK [14:16:24]MH_I2C_Read... [14:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:24]Read from MH i2c: E2 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 03 00 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 03 00 30 21 00 90 00 C5 [14:16:24]RAPDU: 90 00 [14:16:24]wFMCommunicate OK [14:16:24]wFMCommunicate request_size=4 [14:16:24]MH_SAM_APDU [14:16:24]CAPDU: 80 0D 03 02 [14:16:24]Write to MH i2c: E2 08 00 31 21 80 0D 03 02 00 00 00 00 CD [14:16:24]Write i2c OK [14:16:24]MH_I2C_Read... [14:16:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:24]Read from MH i2c: E2 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 0B 00 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 0B 00 31 21 00 B8 51 BB 4C B8 3E 67 74 90 00 AF [14:16:24]RAPDU: B8 51 BB 4C B8 3E 67 74 90 00 [14:16:24]wFMCommunicate OK [14:16:24]SAM_PROTO_SignData done [14:16:24]FM_MakeSignedData done [14:16:24]CreateOFDProtocolMessage [14:16:24]wFMCommunicate request_size=4 [14:16:24]MH_SAM_APDU [14:16:24]CAPDU: 80 11 00 00 [14:16:24]Write to MH i2c: E2 08 00 32 21 80 11 00 00 00 00 00 00 CD [14:16:24]Write i2c OK [14:16:24]MH_I2C_Read... [14:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:24]Read from MH i2c: E2 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 17 00 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: E2 17 00 32 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2D [14:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:16:24]wFMCommunicate OK [14:16:24]CreateOFDProtocolMessage done [14:16:24]OFDSenderStorePacket 162843 [14:16:24]StoreOFDPacket docnum=162843 [14:16:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 0F 37 08 01 65 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 06 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 59 6E 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 6E 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 CA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 6E 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B8 DD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1B 7C 02 00 35 04 06 00 C2 7D 51 82 CD C5 B8 51 BB 4C B8 3E 67 74 [14:16:24]CheckFolder [14:16:24]dirname=/storage/ofd_packets [14:16:24]CheckFolder done [14:16:24]ProducePacketName [14:16:24]name=ofd_packets/00162843 [14:16:24]NVStorageSaveData ofd_packets/00162843 [14:16:24]File name is /storage/ofd_packets/00162843 [14:16:24]Write 302 bytes [14:16:24]NVStorageSaveData done [14:16:24]OFDSenderStorePacket done [14:16:24]KKMCreateOFDPacket done [14:16:24]NVStorageSaveData kkm_last_timestamp [14:16:24]File name is /storage/kkm_last_timestamp [14:16:24]Write 4 bytes [14:16:24]NVStorageSaveData done [14:16:24]ExternCall_PrintAddStr [14:16:24]wPrintStart [14:16:24]Write to MH i2c: 01 00 00 33 21 54 [14:16:24]Write i2c OK [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: 01 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: 01 07 00 [14:16:24]MH_I2C_Read... [14:16:24]Read from MH i2c: 01 07 00 33 21 00 00 00 00 00 FF 0F 69 [14:16:24]RasterBufferAndPrint [14:16:24]line Счет N : (1)1319442 [14:16:24]line ИНН: 02508201610067 [14:16:24]line Контрольно-Кассовый Чек [14:16:24]line ПРОДАЖА [14:16:24]line ТРК (МРК, ГНК) : 11 [14:16:24]line Товар: 2710194210 [14:16:24]line ДТ(л)-К-5 [14:16:24]line 67.080 * 72.60 [14:16:24]line = 4870.01 [14:16:24]line НДС 12% НСП 1% [14:16:24]line > о реализуемом товаре [14:16:24]line ИТОГО: 4870.01 [14:16:24]line НСП 1% : 43.10 [14:16:24]line НДС 12% : 517.17 [14:16:24]line Наличными: 0.00 [14:16:24]line Безнал.: 4870.01 [14:16:24]line Место: АЗС № 140 "Партнер Нефть" [14:16:24]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:16:24]line СНО: Общий режим [14:16:24]line Чек 155 14.07.2024 14:16 [14:16:24]line Смена: 463 ФФД: 1.0 [14:16:24]line ЗНМ: 0300000129 [14:16:24]line РНМ: 0000000000090858 [14:16:24]line Версия ККМ: 001 [14:16:24]line Платежная система: АКБ Кыргызстан [14:16:24]line ФМ: 0000000000874899 [14:16:24]line ФД: 162843 [14:16:24]line ФПД: 213843494227397 [14:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141624&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162843&fm=213843494227397&tin=02508201610067®Number=0000000000090858&sum=487001 [14:16:24]OFD Sender: Processing packet 162843 [packets to send 106, broken 105] [14:16:24]ProducePacketName [14:16:24]name=ofd_packets/00162843 [14:16:24]OFD Sender: To server: pG, [14:16:24]CommunicateWithHost lk.salyk.kg:30040 [14:16:24]ConnectInit lk.salyk.kg [14:16:24]written 0, free lines is 4095 [14:16:25]Connected sock=11 [14:16:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 0F 37 08 01 65 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 06 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 59 6E 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 6E 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 CA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 6E 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B8 DD 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1B 7C 02 00 35 04 06 00 C2 7D 51 82 CD C5 B8 51 BB 4C B8 3E 67 74 [14:16:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E5 94 47 00 14 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1B 7C 02 00 F4 03 04 00 C5 89 93 66 B6 04 01 00 00 AE 6A A1 95 64 B2 46 C9 [14:16:25]CommunicateWithHost err = 0 [14:16:25]CheckOFDResponse [14:16:25]1017 (14) - 77093643461234 [14:16:25]1041 (16) - 0000000000874899 [14:16:25]1040 (4) - 162843 [14:16:25]1012 (4) - 14.07.2024 08:18 [14:16:25]1206 (1) - 0 [14:16:25]OFD Sender: Remove packet 162843 [14:16:25]ProducePacketName [14:16:25]name=ofd_packets/00162843 [14:16:25]NVStorageDeleteData [14:16:25]Write to MH i2c: 01 00 00 5D 21 7E [14:16:25]Write i2c OK [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: 01 [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: 01 07 00 [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: 01 07 00 5D 21 00 00 00 00 00 FF 0C 90 [14:16:25]RasterBufferAndPrint [14:16:25]line [14:16:25]line [14:16:25]line [14:16:25]line [14:16:25]line [14:16:25]written 0, free lines is 3333 [14:16:25]MH_Cut [14:16:25]Write to MH i2c: D1 01 00 64 21 01 57 [14:16:25]Write i2c OK [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: D1 [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: D1 01 00 [14:16:25]MH_I2C_Read... [14:16:25]Read from MH i2c: D1 01 00 64 21 00 56 [14:16:25]Write to MH i2c: 01 00 00 65 21 86 [14:16:25]Write i2c OK [14:16:25]MH_I2C_Read... [14:16:25]OFD Sender: No OFD packet to send [14:16:26]*** Cut start [14:16:26]*** Purtial cut [14:16:26]*** Stage 1: CUTSNS_PIN = 1 [14:16:26]Read from MH i2c: 01 [14:16:26]MH_I2C_Read... [14:16:26]*** Stop cut motor [14:16:26]*** Cut end [14:16:26]Read from MH i2c: 01 07 00 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: 01 07 00 65 21 00 00 00 00 00 FF 0F 9B [14:16:26]process_action close_receipt done [14:16:26]requested_data is exist [14:16:26]produce_requested_data [14:16:26]requested_item fm.sn is exist - process it [14:16:26]wFMCommunicate request_size=4 [14:16:26]MH_SAM_APDU [14:16:26]CAPDU: 80 11 00 00 [14:16:26]Write to MH i2c: E2 08 00 66 21 80 11 00 00 00 00 00 00 01 [14:16:26]Write i2c OK [14:16:26]MH_I2C_Read... [14:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:26]Read from MH i2c: E2 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 17 00 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 17 00 66 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 61 [14:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:16:26]wFMCommunicate OK [14:16:26]requested_item fd.num is exist - process it [14:16:26]SAM_PROTO_GetFieldsCounters [14:16:26]wFMCommunicate request_size=4 [14:16:26]MH_SAM_APDU [14:16:26]CAPDU: 80 13 00 00 [14:16:26]Write to MH i2c: E2 08 00 67 21 80 13 00 00 00 00 00 00 04 [14:16:26]Write i2c OK [14:16:26]MH_I2C_Read... [14:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:26]Read from MH i2c: E2 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 62 00 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 62 00 67 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1B 7C 02 00 0E 04 04 00 CF 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 71 [14:16:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1B 7C 02 00 0E 04 04 00 CF 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 [14:16:26]wFMCommunicate OK [14:16:26]SAM_PROTO_GetFieldsCounters done [14:16:26]requested_item shift.num is exist - process it [14:16:26]requested_item shift.opened is exist - process it [14:16:26]req_shift_opened [14:16:26]FM_GetShiftState [14:16:26]SAM_PROTO_GetShiftState [14:16:26]wFMCommunicate request_size=4 [14:16:26]MH_SAM_APDU [14:16:26]CAPDU: 80 13 01 00 [14:16:26]Write to MH i2c: E2 08 00 68 21 80 13 01 00 00 00 00 00 06 [14:16:26]Write i2c OK [14:16:26]MH_I2C_Read... [14:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:26]Read from MH i2c: E2 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 0E 00 [14:16:26]MH_I2C_Read... [14:16:26]Read from MH i2c: E2 0E 00 68 21 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3C [14:16:26]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:16:26]wFMCommunicate OK [14:16:26]SAM_PROTO_GetShiftState done [14:16:26]FM_GetShiftState done [14:16:26]req_shift_opened done [14:16:26]requested_item shift.open_date is exist - process it [14:16:26]req_shift_open_date [14:16:26]req_shift_open_date done [14:16:26]produce_requested_data done [14:16:26]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162843,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:16:26]process_action_free close_receipt [14:16:26]json_value_free [14:16:26]json_value_free done [14:16:26]process_json_proto returns [14:16:26]Send response to host [14:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162843,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:16:26]free response buf [14:16:26]execute_script done [14:16:26]execute_script returns [14:16:26]free content buf [14:16:26]Sock 7.Close socket [14:16:26]Sock 7.Thread stoped [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: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: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:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:24]accept exits with 9 [14:18:24]New connection [14:18:24]New thread 3066879332 created [14:18:24]Thread 3066735972 joined [14:18:24]Waiting for new connection... [14:18:24] Sock 9.Parse request [14:18:24]Sock 9.Check first char [14:18:24]Sock 9.First char is OK [14:18:24]request: POST /json_proto HTTP/1.0 [14:18:24]Method: POST [14:18:24]URL: /json_proto [14:18:24]Method is POST - this is cgi request [14:18:24]url: /json_proto [14:18:24]query_string will be loaded in cgi processing [14:18:24]execute_cgi json_proto POST (null) [14:18:24]execute_cgi path=json_proto method=POST [14:18:24]POST find Content-Length [14:18:24]Host: 172.17.39.67:8080 [14:18:24]Content-Length: 688 [14:18:24]Content-Type: application/json [14:18:24] [14:18:24]POST finish read [14:18:24]Found Content-Length = 688 [14:18:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 39.950, "sum" : 2900.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2900.00, "total" : 2900.00, "payments": [ { "type": 0, "sum" : 2900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:24]execute_script... [14:18: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)1319443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 39.950, "sum" : 2900.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2900.00, "total" : 2900.00, "payments": [ { "type": 0, "sum" : 2900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:24]POST & json_proto [14:18:24]process_json_proto [14:18:24]json parsed OK: [14:18:24]protocol is kg_v1.0 [14:18:24]action value=close_receipt [14:18:24]process_action close_receipt [14:18:24]cmd_close_receipt [14:18:24]MH_GetDate [14:18:24]Write to MH i2c: F0 00 00 69 21 79 [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: F0 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: F0 09 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: F0 09 00 69 21 00 32 DE 93 66 B6 85 93 66 BF [14:18:24]GetLastDocTimeStamp 1720966584 [14:18:24]current date 1720966706 [14:18:24]FM_GetShiftState [14:18:24]SAM_PROTO_GetShiftState [14:18:24]wFMCommunicate request_size=4 [14:18:24]MH_SAM_APDU [14:18:24]CAPDU: 80 13 01 00 [14:18:24]Write to MH i2c: E2 08 00 6A 21 80 13 01 00 00 00 00 00 08 [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:25]Read from MH i2c: E2 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: E2 0E 00 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: E2 0E 00 6A 21 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3E [14:18:25]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:18:25]wFMCommunicate OK [14:18:25]SAM_PROTO_GetShiftState done [14:18:25]FM_GetShiftState done [14:18:25]opened in 1720915483 [14:18:25]opened+sec_in_day 1721001883 [14:18:25]quantity*price = 290037 [14:18:25]sum+1 = 290038 [14:18:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 2900.00 Внесено: 2900.00 СДАЧА: 0.00 НСП 1% : 25.67 НДС 12% : 308.00 Наличными: 2900.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 156 14.07.2024 14:18 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162844 ФПД: 235032956083826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141826&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162844&fm=235032956083826&tin=02508201610067®Number=0000000000090858&sum=290000 [14:18:26]StoreToDocumentArchive [14:18:26]shift 463 fd 162844 [14:18:26]save to /storage/0463/doc_00162844 [14:18:26]save last doc name /storage/0463/doc_00162844 to /storage/kkm_last_doc_name [14:18:26]save OK [14:18:26]Clear old archive folders... [14:18:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:18:26]tlvbuf is 0123BC00 [14:18:26]SAM_PROTO_ClearQueue [14:18:26]wFMCommunicate request_size=4 [14:18:26]MH_SAM_APDU [14:18:26]CAPDU: 80 09 00 00 [14:18:26]Write to MH i2c: E2 08 00 77 21 80 09 00 00 00 00 00 00 0A [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:26]Read from MH i2c: E2 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 03 00 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 03 00 77 21 00 90 00 0C [14:18:26]RAPDU: 90 00 [14:18:26]wFMCommunicate OK [14:18:26]SAM_PROTO_ClearQueue done [14:18:26]KKMCreateOFDPacket [14:18:26]OFDProtocolAddRootSTLVToBuf [14:18:26]FM_MakeSignedData [14:18:26]FM_MakeSignedData [14:18:26]SAM_PROTO_SignData [14:18:26]wFMCommunicate request_size=4 [14:18:26]MH_SAM_APDU [14:18:26]CAPDU: 80 0D 01 02 [14:18:26]Write to MH i2c: E2 08 00 78 21 80 0D 01 02 00 00 00 00 12 [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:26]Read from MH i2c: E2 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 03 00 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 03 00 78 21 00 90 00 0D [14:18:26]RAPDU: 90 00 [14:18:26]wFMCommunicate OK [14:18:26]wFMCommunicate request_size=255 [14:18:26]MH_SAM_APDU [14:18:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F5 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 78 00 00 00 00 07 04 06 00 D0 6C 04 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 32 DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1C 7C 02 00 35 04 06 00 [14:18:26]Write to MH i2c: E2 02 01 79 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F5 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 78 00 00 00 00 07 04 06 00 D0 6C 04 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 32 DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1C 7C 02 00 35 04 06 00 00 00 58 [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:26]Read from MH i2c: E2 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 03 00 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 03 00 79 21 00 90 00 0E [14:18:26]RAPDU: 90 00 [14:18:26]wFMCommunicate OK [14:18:26]wFMCommunicate request_size=11 [14:18:26]MH_SAM_APDU [14:18:26]CAPDU: 80 0D 02 02 06 D5 C2 DF DB 9E 72 [14:18:26]Write to MH i2c: E2 0E 00 7A 21 80 0D 02 02 06 00 D5 C2 DF DB 9E 72 00 00 82 [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:26]Read from MH i2c: E2 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 03 00 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 03 00 7A 21 00 90 00 0F [14:18:26]RAPDU: 90 00 [14:18:26]wFMCommunicate OK [14:18:26]wFMCommunicate request_size=4 [14:18:26]MH_SAM_APDU [14:18:26]CAPDU: 80 0D 03 02 [14:18:26]Write to MH i2c: E2 08 00 7B 21 80 0D 03 02 00 00 00 00 17 [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:26]Read from MH i2c: E2 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 0B 00 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 0B 00 7B 21 00 AD 1B 62 AB FF 99 7E 23 90 00 26 [14:18:26]RAPDU: AD 1B 62 AB FF 99 7E 23 90 00 [14:18:26]wFMCommunicate OK [14:18:26]SAM_PROTO_SignData done [14:18:26]FM_MakeSignedData done [14:18:26]CreateOFDProtocolMessage [14:18:26]wFMCommunicate request_size=4 [14:18:26]MH_SAM_APDU [14:18:26]CAPDU: 80 11 00 00 [14:18:26]Write to MH i2c: E2 08 00 7C 21 80 11 00 00 00 00 00 00 17 [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:26]Read from MH i2c: E2 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 17 00 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 17 00 7C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 77 [14:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:18:26]wFMCommunicate OK [14:18:26]CreateOFDProtocolMessage done [14:18:26]OFDSenderStorePacket 162844 [14:18:26]StoreOFDPacket docnum=162844 [14:18:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 DF 18 08 01 D9 0B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F5 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 78 00 00 00 00 07 04 06 00 D0 6C 04 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 32 DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1C 7C 02 00 35 04 06 00 D5 C2 DF DB 9E 72 AD 1B 62 AB FF 99 7E 23 [14:18:26]CheckFolder [14:18:26]dirname=/storage/ofd_packets [14:18:26]CheckFolder done [14:18:26]ProducePacketName [14:18:26]name=ofd_packets/00162844 [14:18:26]NVStorageSaveData ofd_packets/00162844 [14:18:26]File name is /storage/ofd_packets/00162844 [14:18:26]Write 302 bytes [14:18:26]NVStorageSaveData done [14:18:26]OFDSenderStorePacket done [14:18:26]KKMCreateOFDPacket done [14:18:26]NVStorageSaveData kkm_last_timestamp [14:18:26]File name is /storage/kkm_last_timestamp [14:18:26]Write 4 bytes [14:18:26]NVStorageSaveData done [14:18:26]ExternCall_PrintAddStr [14:18:26]wPrintStart [14:18:26]Write to MH i2c: 01 00 00 7D 21 9E [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: 01 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: 01 07 00 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: 01 07 00 7D 21 00 00 00 00 00 FF 0F B3 [14:18:26]RasterBufferAndPrint [14:18:26]line Счет N : (1)1319443 [14:18:26]line ИНН: 02508201610067 [14:18:26]line Контрольно-Кассовый Чек [14:18:26]line ПРОДАЖА [14:18:26]line ТРК (МРК, ГНК) : 61 [14:18:26]line Товар: 2710194210 [14:18:26]line ДТ(л)-К-5 [14:18:26]line 39.950 * 72.60 [14:18:26]line = 2900.37 [14:18:26]line НДС 12% НСП 1% [14:18:26]line > о реализуемом товаре [14:18:26]line ОКРУГЛЕНИЕ: -0.37 [14:18:26]line ИТОГО: 2900.00 [14:18:26]line Внесено: 2900.00 [14:18:26]line СДАЧА: 0.00 [14:18:26]line НСП 1% : 25.67 [14:18:26]line НДС 12% : 308.00 [14:18:26]line Наличными: 2900.00 [14:18:26]line Безнал.: 0.00 [14:18:26]line Место: АЗС № 140 "Партнер Нефть" [14:18:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:18:26]line СНО: Общий режим [14:18:26]line Чек 156 14.07.2024 14:18 [14:18:26]line Смена: 463 ФФД: 1.0 [14:18:26]line ЗНМ: 0300000129 [14:18:26]line РНМ: 0000000000090858 [14:18:26]line Версия ККМ: 001 [14:18:26]line ФМ: 0000000000874899 [14:18:26]line ФД: 162844 [14:18:26]line ФПД: 235032956083826 [14:18:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141826&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162844&fm=235032956083826&tin=02508201610067®Number=0000000000090858&sum=290000 [14:18:27]OFD Sender: Processing packet 162844 [packets to send 106, broken 105] [14:18:27]ProducePacketName [14:18:27]name=ofd_packets/00162844 [14:18:27]OFD Sender: To server: pG, [14:18:27]CommunicateWithHost lk.salyk.kg:30040 [14:18:27]ConnectInit lk.salyk.kg [14:18:27]written 0, free lines is 4095 [14:18:27]Connected sock=10 [14:18:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 DF 18 08 01 D9 0B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F5 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 78 00 00 00 00 07 04 06 00 D0 6C 04 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 32 DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1C 7C 02 00 35 04 06 00 D5 C2 DF DB 9E 72 AD 1B 62 AB FF 99 7E 23 [14:18:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C9 78 47 00 CF DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1C 7C 02 00 F4 03 04 00 3F 8A 93 66 B6 04 01 00 00 3E 7B 6E 18 2F 3B DC B0 [14:18:27]CommunicateWithHost err = 0 [14:18:27]CheckOFDResponse [14:18:27]1017 (14) - 77093643461234 [14:18:27]1041 (16) - 0000000000874899 [14:18:27]1040 (4) - 162844 [14:18:27]1012 (4) - 14.07.2024 08:20 [14:18:27]1206 (1) - 0 [14:18:27]OFD Sender: Remove packet 162844 [14:18:27]ProducePacketName [14:18:27]name=ofd_packets/00162844 [14:18:27]NVStorageDeleteData [14:18:27]Write to MH i2c: 01 00 00 A8 21 C9 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: 01 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: 01 07 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: 01 07 00 A8 21 00 00 00 00 00 FC 0C D8 [14:18:27]RasterBufferAndPrint [14:18:27]line [14:18:27]line [14:18:27]line [14:18:27]line [14:18:27]line [14:18:27]written 0, free lines is 3330 [14:18:27]MH_Cut [14:18:27]Write to MH i2c: D1 01 00 AF 21 01 A2 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: D1 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: D1 01 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: D1 01 00 AF 21 00 A1 [14:18:27]Write to MH i2c: 01 00 00 B0 21 D1 [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]OFD Sender: No OFD packet to send [14:18:28]*** Cut start [14:18:28]*** Purtial cut [14:18:28]*** CUTSNS_PIN = 0 [14:18:28]*** Stage 1: CUTSNS_PIN = 1 [14:18:30]Read from MH i2c: 01 [14:18:30]MH_I2C_Read... [14:18:30]*** Stop cut motor [14:18:30]*** Cut end [14:18:30]Read from MH i2c: 01 07 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: 01 07 00 B0 21 00 00 00 00 00 FF 0F E6 [14:18:30]process_action close_receipt done [14:18:30]requested_data is exist [14:18:30]produce_requested_data [14:18:30]requested_item fm.sn is exist - process it [14:18:30]wFMCommunicate request_size=4 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 11 00 00 [14:18:30]Write to MH i2c: E2 08 00 B1 21 80 11 00 00 00 00 00 00 4C [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 17 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 17 00 B1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AC [14:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:18:30]wFMCommunicate OK [14:18:30]requested_item fd.num is exist - process it [14:18:30]SAM_PROTO_GetFieldsCounters [14:18:30]wFMCommunicate request_size=4 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 13 00 00 [14:18:30]Write to MH i2c: E2 08 00 B2 21 80 13 00 00 00 00 00 00 4F [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 62 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 62 00 B2 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1C 7C 02 00 0E 04 04 00 CF 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 C0 [14:18:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1C 7C 02 00 0E 04 04 00 CF 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 [14:18:30]wFMCommunicate OK [14:18:30]SAM_PROTO_GetFieldsCounters done [14:18:30]requested_item shift.num is exist - process it [14:18:30]requested_item shift.opened is exist - process it [14:18:30]req_shift_opened [14:18:30]FM_GetShiftState [14:18:30]SAM_PROTO_GetShiftState [14:18:30]wFMCommunicate request_size=4 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 13 01 00 [14:18:30]Write to MH i2c: E2 08 00 B3 21 80 13 01 00 00 00 00 00 51 [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 0E 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 0E 00 B3 21 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 87 [14:18:30]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:18:30]wFMCommunicate OK [14:18:30]SAM_PROTO_GetShiftState done [14:18:30]FM_GetShiftState done [14:18:30]req_shift_opened done [14:18:30]requested_item shift.open_date is exist - process it [14:18:30]req_shift_open_date [14:18:30]req_shift_open_date done [14:18:30]produce_requested_data done [14:18:30]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162844,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:18:30]process_action_free close_receipt [14:18:30]json_value_free [14:18:30]json_value_free done [14:18:30]process_json_proto returns [14:18:30]Send response to host [14:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162844,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:18:30]free response buf [14:18:30]execute_script done [14:18:30]execute_script returns [14:18:30]free content buf [14:18:30]Sock 9.Close socket [14:18:30]Sock 9.Thread stoped [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:08]accept exits with 7 [14:19:08]New connection [14:19:08]New thread 3066735972 created [14:19:08]Thread 3066879332 joined [14:19:08]Waiting for new connection... [14:19:08] Sock 7.Parse request [14:19:08]Sock 7.Check first char [14:19:08]Sock 7.First char is OK [14:19:08]request: POST /json_proto HTTP/1.0 [14:19:08]Method: POST [14:19:08]URL: /json_proto [14:19:08]Method is POST - this is cgi request [14:19:08]url: /json_proto [14:19:08]query_string will be loaded in cgi processing [14:19:08]execute_cgi json_proto POST (null) [14:19:08]execute_cgi path=json_proto method=POST [14:19:08]POST find Content-Length [14:19:08]Host: 172.17.39.67:8080 [14:19:08]Content-Length: 688 [14:19:08]Content-Type: application/json [14:19:08] [14:19:08]POST finish read [14:19:08]Found Content-Length = 688 [14:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 16.350, "sum" : 1187.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1187.00, "payments": [ { "type": 0, "sum" : 1187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:08]execute_script... [14:19: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)1319445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 16.350, "sum" : 1187.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1187.00, "payments": [ { "type": 0, "sum" : 1187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:08]POST & json_proto [14:19:08]process_json_proto [14:19:08]json parsed OK: [14:19:08]protocol is kg_v1.0 [14:19:08]action value=close_receipt [14:19:08]process_action close_receipt [14:19:08]cmd_close_receipt [14:19:08]MH_GetDate [14:19:08]Write to MH i2c: F0 00 00 B4 21 C4 [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: F0 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: F0 09 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: F0 09 00 B4 21 00 5E DE 93 66 B6 85 93 66 36 [14:19:08]GetLastDocTimeStamp 1720966706 [14:19:08]current date 1720966750 [14:19:08]FM_GetShiftState [14:19:08]SAM_PROTO_GetShiftState [14:19:08]wFMCommunicate request_size=4 [14:19:08]MH_SAM_APDU [14:19:08]CAPDU: 80 13 01 00 [14:19:08]Write to MH i2c: E2 08 00 B5 21 80 13 01 00 00 00 00 00 53 [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:08]Read from MH i2c: E2 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 0E 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 0E 00 B5 21 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 89 [14:19:08]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:19:08]wFMCommunicate OK [14:19:08]SAM_PROTO_GetShiftState done [14:19:08]FM_GetShiftState done [14:19:08]opened in 1720915483 [14:19:08]opened+sec_in_day 1721001883 [14:19:08]quantity*price = 118701 [14:19:08]sum+1 = 118702 [14:19:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1187.00 Внесено: 1200.00 СДАЧА: 13.00 НСП 1% : 10.50 НДС 12% : 126.05 Наличными: 1187.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 157 14.07.2024 14:19 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162845 ФПД: 113418187890197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141910&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162845&fm=113418187890197&tin=02508201610067®Number=0000000000090858&sum=118700 [14:19:10]StoreToDocumentArchive [14:19:10]shift 463 fd 162845 [14:19:10]save to /storage/0463/doc_00162845 [14:19:10]save last doc name /storage/0463/doc_00162845 to /storage/kkm_last_doc_name [14:19:10]save OK [14:19:10]Clear old archive folders... [14:19:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:19:10]tlvbuf is 01346330 [14:19:10]SAM_PROTO_ClearQueue [14:19:10]wFMCommunicate request_size=4 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 09 00 00 [14:19:10]Write to MH i2c: E2 08 00 C2 21 80 09 00 00 00 00 00 00 55 [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 03 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 03 00 C2 21 00 90 00 57 [14:19:10]RAPDU: 90 00 [14:19:10]wFMCommunicate OK [14:19:10]SAM_PROTO_ClearQueue done [14:19:10]KKMCreateOFDPacket [14:19:10]OFDProtocolAddRootSTLVToBuf [14:19:10]FM_MakeSignedData [14:19:10]FM_MakeSignedData [14:19:10]SAM_PROTO_SignData [14:19:10]wFMCommunicate request_size=4 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 0D 01 02 [14:19:10]Write to MH i2c: E2 08 00 C3 21 80 0D 01 02 00 00 00 00 5D [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 03 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 03 00 C3 21 00 90 00 58 [14:19:10]RAPDU: 90 00 [14:19:10]wFMCommunicate OK [14:19:10]wFMCommunicate request_size=255 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DE 3F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AD CF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC CF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 31 00 00 00 00 07 04 06 00 AC CF 01 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 5E DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1D 7C 02 00 35 04 06 00 [14:19:10]Write to MH i2c: E2 02 01 C4 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DE 3F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AD CF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC CF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 31 00 00 00 00 07 04 06 00 AC CF 01 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 5E DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1D 7C 02 00 35 04 06 00 00 00 87 [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 03 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 03 00 C4 21 00 90 00 59 [14:19:10]RAPDU: 90 00 [14:19:10]wFMCommunicate OK [14:19:10]wFMCommunicate request_size=11 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 0D 02 02 06 67 27 3A CC DE 15 [14:19:10]Write to MH i2c: E2 0E 00 C5 21 80 0D 02 02 06 00 67 27 3A CC DE 15 00 00 F3 [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 03 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 03 00 C5 21 00 90 00 5A [14:19:10]RAPDU: 90 00 [14:19:10]wFMCommunicate OK [14:19:10]wFMCommunicate request_size=4 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 0D 03 02 [14:19:10]Write to MH i2c: E2 08 00 C6 21 80 0D 03 02 00 00 00 00 62 [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 0B 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 0B 00 C6 21 00 DC E5 7B 63 F1 83 67 1D 90 00 FA [14:19:10]RAPDU: DC E5 7B 63 F1 83 67 1D 90 00 [14:19:10]wFMCommunicate OK [14:19:10]SAM_PROTO_SignData done [14:19:10]FM_MakeSignedData done [14:19:10]CreateOFDProtocolMessage [14:19:10]wFMCommunicate request_size=4 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 11 00 00 [14:19:10]Write to MH i2c: E2 08 00 C7 21 80 11 00 00 00 00 00 00 62 [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 17 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 17 00 C7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C2 [14:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:19:10]wFMCommunicate OK [14:19:10]CreateOFDProtocolMessage done [14:19:10]OFDSenderStorePacket 162845 [14:19:10]StoreOFDPacket docnum=162845 [14:19:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 72 F1 08 01 BC 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DE 3F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AD CF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC CF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 31 00 00 00 00 07 04 06 00 AC CF 01 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 5E DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1D 7C 02 00 35 04 06 00 67 27 3A CC DE 15 DC E5 7B 63 F1 83 67 1D [14:19:10]CheckFolder [14:19:10]dirname=/storage/ofd_packets [14:19:10]CheckFolder done [14:19:10]ProducePacketName [14:19:10]name=ofd_packets/00162845 [14:19:10]NVStorageSaveData ofd_packets/00162845 [14:19:10]File name is /storage/ofd_packets/00162845 [14:19:10]Write 302 bytes [14:19:10]NVStorageSaveData done [14:19:10]OFDSenderStorePacket done [14:19:10]KKMCreateOFDPacket done [14:19:10]NVStorageSaveData kkm_last_timestamp [14:19:10]File name is /storage/kkm_last_timestamp [14:19:10]Write 4 bytes [14:19:10]NVStorageSaveData done [14:19:10]ExternCall_PrintAddStr [14:19:10]wPrintStart [14:19:10]Write to MH i2c: 01 00 00 C8 21 E9 [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: 01 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: 01 07 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: 01 07 00 C8 21 00 00 00 00 00 FF 0F FE [14:19:10]RasterBufferAndPrint [14:19:10]line Счет N : (1)1319445 [14:19:10]line ИНН: 02508201610067 [14:19:10]line Контрольно-Кассовый Чек [14:19:10]line ПРОДАЖА [14:19:10]line ТРК (МРК, ГНК) : 11 [14:19:10]line Товар: 2710194210 [14:19:10]line ДТ(л)-К-5 [14:19:10]line 16.350 * 72.60 [14:19:10]line = 1187.01 [14:19:10]line НДС 12% НСП 1% [14:19:10]line > о реализуемом товаре [14:19:10]line ОКРУГЛЕНИЕ: -0.01 [14:19:10]line ИТОГО: 1187.00 [14:19:10]line Внесено: 1200.00 [14:19:10]line СДАЧА: 13.00 [14:19:10]line НСП 1% : 10.50 [14:19:10]line НДС 12% : 126.05 [14:19:10]line Наличными: 1187.00 [14:19:10]line Безнал.: 0.00 [14:19:10]line Место: АЗС № 140 "Партнер Нефть" [14:19:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:19:10]line СНО: Общий режим [14:19:10]line Чек 157 14.07.2024 14:19 [14:19:10]line Смена: 463 ФФД: 1.0 [14:19:10]line ЗНМ: 0300000129 [14:19:10]line РНМ: 0000000000090858 [14:19:10]line Версия ККМ: 001 [14:19:10]line ФМ: 0000000000874899 [14:19:10]line ФД: 162845 [14:19:10]line ФПД: 113418187890197 [14:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141910&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162845&fm=113418187890197&tin=02508201610067®Number=0000000000090858&sum=118700 [14:19:10]OFD Sender: Processing packet 162845 [packets to send 106, broken 105] [14:19:10]ProducePacketName [14:19:10]name=ofd_packets/00162845 [14:19:10]OFD Sender: To server: pG, [14:19:10]CommunicateWithHost lk.salyk.kg:30040 [14:19:10]ConnectInit lk.salyk.kg [14:19:10]written 0, free lines is 4095 [14:19:11]Connected sock=10 [14:19:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 72 F1 08 01 BC 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DE 3F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AD CF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC CF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 31 00 00 00 00 07 04 06 00 AC CF 01 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 5E DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1D 7C 02 00 35 04 06 00 67 27 3A CC DE 15 DC E5 7B 63 F1 83 67 1D [14:19:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4E 9F 47 00 C8 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1D 7C 02 00 F4 03 04 00 6B 8A 93 66 B6 04 01 00 00 A2 9B D6 45 97 F1 C3 29 [14:19:11]CommunicateWithHost err = 0 [14:19:11]CheckOFDResponse [14:19:11]1017 (14) - 77093643461234 [14:19:11]1041 (16) - 0000000000874899 [14:19:11]1040 (4) - 162845 [14:19:11]1012 (4) - 14.07.2024 08:20 [14:19:11]1206 (1) - 0 [14:19:11]OFD Sender: Remove packet 162845 [14:19:11]ProducePacketName [14:19:11]name=ofd_packets/00162845 [14:19:11]NVStorageDeleteData [14:19:11]Write to MH i2c: 01 00 00 F3 21 14 [14:19:11]Write i2c OK [14:19:11]MH_I2C_Read... [14:19:11]Read from MH i2c: 01 [14:19:11]MH_I2C_Read... [14:19:11]Read from MH i2c: 01 07 00 [14:19:11]MH_I2C_Read... [14:19:11]Read from MH i2c: 01 07 00 F3 21 00 00 00 00 00 E3 0C 0A [14:19:11]RasterBufferAndPrint [14:19:11]line [14:19:11]line [14:19:11]line [14:19:11]line [14:19:11]line [14:19:11]written 0, free lines is 3308 [14:19:11]MH_Cut [14:19:11]Write to MH i2c: D1 01 00 FA 21 01 ED [14:19:11]Write i2c OK [14:19:11]MH_I2C_Read... [14:19:11]Read from MH i2c: D1 [14:19:11]MH_I2C_Read... [14:19:11]Read from MH i2c: D1 01 00 [14:19:11]MH_I2C_Read... [14:19:11]Read from MH i2c: D1 01 00 FA 21 00 EC [14:19:11]Write to MH i2c: 01 00 00 FB 21 1C [14:19:11]Write i2c OK [14:19:11]MH_I2C_Read... [14:19:11]OFD Sender: No OFD packet to send [14:19:12]*** Cut start [14:19:12]*** Purtial cut [14:19:12]*** Stage 1: CUTSNS_PIN = 1 [14:19:12]Read from MH i2c: 01 [14:19:12]MH_I2C_Read... [14:19:12]*** Stop cut motor [14:19:12]*** Cut end [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 FB 21 00 00 00 00 00 FF 0F 31 [14:19:12]process_action close_receipt done [14:19:12]requested_data is exist [14:19:12]produce_requested_data [14:19:12]requested_item fm.sn is exist - process it [14:19:12]wFMCommunicate request_size=4 [14:19:12]MH_SAM_APDU [14:19:12]CAPDU: 80 11 00 00 [14:19:12]Write to MH i2c: E2 08 00 FC 21 80 11 00 00 00 00 00 00 97 [14:19:12]Write i2c OK [14:19:12]MH_I2C_Read... [14:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:12]Read from MH i2c: E2 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: E2 17 00 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: E2 17 00 FC 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F7 [14:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:19:12]wFMCommunicate OK [14:19:12]requested_item fd.num is exist - process it [14:19:12]SAM_PROTO_GetFieldsCounters [14:19:12]wFMCommunicate request_size=4 [14:19:12]MH_SAM_APDU [14:19:12]CAPDU: 80 13 00 00 [14:19:12]Write to MH i2c: E2 08 00 FD 21 80 13 00 00 00 00 00 00 9A [14:19:12]Write i2c OK [14:19:12]MH_I2C_Read... [14:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:12]Read from MH i2c: E2 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: E2 62 00 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: E2 62 00 FD 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1D 7C 02 00 0E 04 04 00 CF 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 0F [14:19:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1D 7C 02 00 0E 04 04 00 CF 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 [14:19:12]wFMCommunicate OK [14:19:12]SAM_PROTO_GetFieldsCounters done [14:19:12]requested_item shift.num is exist - process it [14:19:12]requested_item shift.opened is exist - process it [14:19:12]req_shift_opened [14:19:12]FM_GetShiftState [14:19:12]SAM_PROTO_GetShiftState [14:19:12]wFMCommunicate request_size=4 [14:19:12]MH_SAM_APDU [14:19:12]CAPDU: 80 13 01 00 [14:19:12]Write to MH i2c: E2 08 00 FE 21 80 13 01 00 00 00 00 00 9C [14:19:12]Write i2c OK [14:19:12]MH_I2C_Read... [14:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:12]Read from MH i2c: E2 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: E2 0E 00 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: E2 0E 00 FE 21 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D2 [14:19:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:19:12]wFMCommunicate OK [14:19:12]SAM_PROTO_GetShiftState done [14:19:12]FM_GetShiftState done [14:19:12]req_shift_opened done [14:19:12]requested_item shift.open_date is exist - process it [14:19:12]req_shift_open_date [14:19:12]req_shift_open_date done [14:19:12]produce_requested_data done [14:19:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162845,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:19:12]process_action_free close_receipt [14:19:12]json_value_free [14:19:12]json_value_free done [14:19:12]process_json_proto returns [14:19:12]Send response to host [14:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162845,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:19:12]free response buf [14:19:12]execute_script done [14:19:12]execute_script returns [14:19:12]free content buf [14:19:12]Sock 7.Close socket [14:19:12]Sock 7.Thread stoped [14:19:12]accept exits with 9 [14:19:12]New connection [14:19:12]New thread 3066879332 created [14:19:12]Thread 3066735972 joined [14:19:12]Waiting for new connection... [14:19:12] Sock 9.Parse request [14:19:12]Sock 9.Check first char [14:19:12]Sock 9.First char is OK [14:19:12]request: POST /json_proto HTTP/1.0 [14:19:12]Method: POST [14:19:12]URL: /json_proto [14:19:12]Method is POST - this is cgi request [14:19:12]url: /json_proto [14:19:12]query_string will be loaded in cgi processing [14:19:12]execute_cgi json_proto POST (null) [14:19:12]execute_cgi path=json_proto method=POST [14:19:12]POST find Content-Length [14:19:12]Host: 172.17.39.67:8080 [14:19:12]Content-Length: 684 [14:19:12]Content-Type: application/json [14:19:12] [14:19:12]POST finish read [14:19:12]Found Content-Length = 684 [14:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.060, "sum" : 730.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:12]execute_script... [14:19:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.060, "sum" : 730.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:12]POST & json_proto [14:19:12]process_json_proto [14:19:12]json parsed OK: [14:19:12]protocol is kg_v1.0 [14:19:12]action value=close_receipt [14:19:12]process_action close_receipt [14:19:12]cmd_close_receipt [14:19:12]MH_GetDate [14:19:12]Write to MH i2c: F0 00 00 FF 21 0F [14:19:12]Write i2c OK [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: F0 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: F0 09 00 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: F0 09 00 FF 21 00 62 DE 93 66 B6 85 93 66 85 [14:19:12]GetLastDocTimeStamp 1720966750 [14:19:12]current date 1720966754 [14:19:12]FM_GetShiftState [14:19:12]SAM_PROTO_GetShiftState [14:19:12]wFMCommunicate request_size=4 [14:19:12]MH_SAM_APDU [14:19:12]CAPDU: 80 13 01 00 [14:19:12]Write to MH i2c: E2 08 00 00 22 80 13 01 00 00 00 00 00 9F [14:19:12]Write i2c OK [14:19:12]MH_I2C_Read... [14:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:12]Read from MH i2c: E2 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: E2 0E 00 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: E2 0E 00 00 22 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D5 [14:19:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:19:12]wFMCommunicate OK [14:19:12]SAM_PROTO_GetShiftState done [14:19:12]FM_GetShiftState done [14:19:12]opened in 1720915483 [14:19:12]opened+sec_in_day 1721001883 [14:19:12]quantity*price = 73035 [14:19:12]sum+1 = 73037 [14:19:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.56 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 158 14.07.2024 14:19 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162846 ФПД: 101254904861015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141914&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162846&fm=101254904861015&tin=02508201610067®Number=0000000000090858&sum=73000 [14:19:14]StoreToDocumentArchive [14:19:14]shift 463 fd 162846 [14:19:14]save to /storage/0463/doc_00162846 [14:19:14]save last doc name /storage/0463/doc_00162846 to /storage/kkm_last_doc_name [14:19:14]save OK [14:19:14]Clear old archive folders... [14:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:19:14]tlvbuf is B6D96070 [14:19:14]SAM_PROTO_ClearQueue [14:19:14]wFMCommunicate request_size=4 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 09 00 00 [14:19:14]Write to MH i2c: E2 08 00 0D 22 80 09 00 00 00 00 00 00 A1 [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 0D 22 00 90 00 A3 [14:19:14]RAPDU: 90 00 [14:19:14]wFMCommunicate OK [14:19:14]SAM_PROTO_ClearQueue done [14:19:14]KKMCreateOFDPacket [14:19:14]OFDProtocolAddRootSTLVToBuf [14:19:14]FM_MakeSignedData [14:19:14]FM_MakeSignedData [14:19:14]SAM_PROTO_SignData [14:19:14]wFMCommunicate request_size=4 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 0D 01 02 [14:19:14]Write to MH i2c: E2 08 00 0E 22 80 0D 01 02 00 00 00 00 A9 [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 0E 22 00 90 00 A4 [14:19:14]RAPDU: 90 00 [14:19:14]wFMCommunicate OK [14:19:14]wFMCommunicate request_size=255 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4C 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1E 00 00 00 00 07 04 06 00 28 1D 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 62 DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1E 7C 02 00 35 04 06 00 [14:19:14]Write to MH i2c: E2 02 01 0F 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4C 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1E 00 00 00 00 07 04 06 00 28 1D 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 62 DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1E 7C 02 00 35 04 06 00 00 00 16 [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 0F 22 00 90 00 A5 [14:19:14]RAPDU: 90 00 [14:19:14]wFMCommunicate OK [14:19:14]wFMCommunicate request_size=11 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 0D 02 02 06 5C 17 3E A2 D1 57 [14:19:14]Write to MH i2c: E2 0E 00 10 22 80 0D 02 02 06 00 5C 17 3E A2 D1 57 00 00 33 [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 10 22 00 90 00 A6 [14:19:14]RAPDU: 90 00 [14:19:14]wFMCommunicate OK [14:19:14]wFMCommunicate request_size=4 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 0D 03 02 [14:19:14]Write to MH i2c: E2 08 00 11 22 80 0D 03 02 00 00 00 00 AE [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 0B 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 0B 00 11 22 00 A3 92 73 B2 3C 70 39 76 90 00 64 [14:19:14]RAPDU: A3 92 73 B2 3C 70 39 76 90 00 [14:19:14]wFMCommunicate OK [14:19:14]SAM_PROTO_SignData done [14:19:14]FM_MakeSignedData done [14:19:14]CreateOFDProtocolMessage [14:19:14]wFMCommunicate request_size=4 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 11 00 00 [14:19:14]Write to MH i2c: E2 08 00 12 22 80 11 00 00 00 00 00 00 AE [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 17 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 17 00 12 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0E [14:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:19:14]wFMCommunicate OK [14:19:14]CreateOFDProtocolMessage done [14:19:14]OFDSenderStorePacket 162846 [14:19:14]StoreOFDPacket docnum=162846 [14:19:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 81 43 08 01 17 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4C 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1E 00 00 00 00 07 04 06 00 28 1D 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 62 DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1E 7C 02 00 35 04 06 00 5C 17 3E A2 D1 57 A3 92 73 B2 3C 70 39 76 [14:19:14]CheckFolder [14:19:14]dirname=/storage/ofd_packets [14:19:14]CheckFolder done [14:19:14]ProducePacketName [14:19:14]name=ofd_packets/00162846 [14:19:14]NVStorageSaveData ofd_packets/00162846 [14:19:14]File name is /storage/ofd_packets/00162846 [14:19:14]Write 302 bytes [14:19:14]NVStorageSaveData done [14:19:14]OFDSenderStorePacket done [14:19:14]KKMCreateOFDPacket done [14:19:14]NVStorageSaveData kkm_last_timestamp [14:19:14]File name is /storage/kkm_last_timestamp [14:19:14]Write 4 bytes [14:19:14]NVStorageSaveData done [14:19:14]ExternCall_PrintAddStr [14:19:14]wPrintStart [14:19:14]Write to MH i2c: 01 00 00 13 22 35 [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: 01 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: 01 07 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: 01 07 00 13 22 00 00 00 00 00 FF 0F 4A [14:19:14]RasterBufferAndPrint [14:19:14]line Счет N : (1)1319447 [14:19:14]line ИНН: 02508201610067 [14:19:14]line Контрольно-Кассовый Чек [14:19:14]line ПРОДАЖА [14:19:14]line ТРК (МРК, ГНК) : 51 [14:19:14]line Товар: 2710194210 [14:19:14]line ДТ(л)-К-5 [14:19:14]line 10.060 * 72.60 [14:19:14]line = 730.36 [14:19:14]line НДС 12% НСП 1% [14:19:15]line > о реализуемом товаре [14:19:15]line ОКРУГЛЕНИЕ: -0.36 [14:19:15]line ИТОГО: 730.00 [14:19:15]line Внесено: 730.00 [14:19:15]line СДАЧА: 0.00 [14:19:15]line НСП 1% : 6.46 [14:19:15]line НДС 12% : 77.56 [14:19:15]line Наличными: 730.00 [14:19:15]line Безнал.: 0.00 [14:19:15]line Место: АЗС № 140 "Партнер Нефть" [14:19:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:19:15]line СНО: Общий режим [14:19:15]line Чек 158 14.07.2024 14:19 [14:19:15]line Смена: 463 ФФД: 1.0 [14:19:15]line ЗНМ: 0300000129 [14:19:15]line РНМ: 0000000000090858 [14:19:15]line Версия ККМ: 001 [14:19:15]line ФМ: 0000000000874899 [14:19:15]line ФД: 162846 [14:19:15]line ФПД: 101254904861015 [14:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141914&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162846&fm=101254904861015&tin=02508201610067®Number=0000000000090858&sum=73000 [14:19:15]OFD Sender: Processing packet 162846 [packets to send 106, broken 105] [14:19:15]ProducePacketName [14:19:15]name=ofd_packets/00162846 [14:19:15]OFD Sender: To server: pG, [14:19:15]CommunicateWithHost lk.salyk.kg:30040 [14:19:15]ConnectInit lk.salyk.kg [14:19:15]written 0, free lines is 4095 [14:19:15]Connected sock=10 [14:19:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 81 43 08 01 17 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4C 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1E 00 00 00 00 07 04 06 00 28 1D 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 62 DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1E 7C 02 00 35 04 06 00 5C 17 3E A2 D1 57 A3 92 73 B2 3C 70 39 76 [14:19:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9D DA 47 00 4F F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1E 7C 02 00 F4 03 04 00 70 8A 93 66 B6 04 01 00 00 82 B5 B3 BF DA F1 04 2B [14:19:15]CommunicateWithHost err = 0 [14:19:15]CheckOFDResponse [14:19:15]1017 (14) - 77093643461234 [14:19:15]1041 (16) - 0000000000874899 [14:19:15]1040 (4) - 162846 [14:19:15]1012 (4) - 14.07.2024 08:21 [14:19:15]1206 (1) - 0 [14:19:15]OFD Sender: Remove packet 162846 [14:19:15]ProducePacketName [14:19:15]name=ofd_packets/00162846 [14:19:15]NVStorageDeleteData [14:19:15]Write to MH i2c: 01 00 00 3E 22 60 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 07 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 07 00 3E 22 00 00 00 00 00 DE 0C 51 [14:19:15]RasterBufferAndPrint [14:19:15]line [14:19:15]line [14:19:15]line [14:19:15]line [14:19:15]line [14:19:15]written 0, free lines is 3309 [14:19:15]MH_Cut [14:19:15]Write to MH i2c: D1 01 00 45 22 01 39 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: D1 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: D1 01 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: D1 01 00 45 22 00 38 [14:19:15]Write to MH i2c: 01 00 00 46 22 68 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:16]OFD Sender: No OFD packet to send [14:19:16]*** Cut start [14:19:16]*** Purtial cut [14:19:16]*** CUTSNS_PIN = 0 [14:19:16]*** Stage 1: CUTSNS_PIN = 1 [14:19:18]Read from MH i2c: 01 [14:19:18]MH_I2C_Read... [14:19:18]*** Stop cut motor [14:19:18]*** Cut end [14:19:18]Read from MH i2c: 01 07 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: 01 07 00 46 22 00 00 00 00 00 FF 0F 7D [14:19:18]process_action close_receipt done [14:19:18]requested_data is exist [14:19:18]produce_requested_data [14:19:18]requested_item fm.sn is exist - process it [14:19:18]wFMCommunicate request_size=4 [14:19:18]MH_SAM_APDU [14:19:18]CAPDU: 80 11 00 00 [14:19:18]Write to MH i2c: E2 08 00 47 22 80 11 00 00 00 00 00 00 E3 [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:18]Read from MH i2c: E2 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 17 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 17 00 47 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 43 [14:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:19:18]wFMCommunicate OK [14:19:18]requested_item fd.num is exist - process it [14:19:18]SAM_PROTO_GetFieldsCounters [14:19:18]wFMCommunicate request_size=4 [14:19:18]MH_SAM_APDU [14:19:18]CAPDU: 80 13 00 00 [14:19:18]Write to MH i2c: E2 08 00 48 22 80 13 00 00 00 00 00 00 E6 [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:18]Read from MH i2c: E2 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 62 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 62 00 48 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1E 7C 02 00 0E 04 04 00 CF 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 5F [14:19:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1E 7C 02 00 0E 04 04 00 CF 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 [14:19:18]wFMCommunicate OK [14:19:18]SAM_PROTO_GetFieldsCounters done [14:19:18]requested_item shift.num is exist - process it [14:19:18]requested_item shift.opened is exist - process it [14:19:18]req_shift_opened [14:19:18]FM_GetShiftState [14:19:18]SAM_PROTO_GetShiftState [14:19:18]wFMCommunicate request_size=4 [14:19:18]MH_SAM_APDU [14:19:18]CAPDU: 80 13 01 00 [14:19:18]Write to MH i2c: E2 08 00 49 22 80 13 01 00 00 00 00 00 E8 [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:18]Read from MH i2c: E2 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 0E 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 0E 00 49 22 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1E [14:19:18]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:19:18]wFMCommunicate OK [14:19:18]SAM_PROTO_GetShiftState done [14:19:18]FM_GetShiftState done [14:19:18]req_shift_opened done [14:19:18]requested_item shift.open_date is exist - process it [14:19:18]req_shift_open_date [14:19:18]req_shift_open_date done [14:19:18]produce_requested_data done [14:19:18]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162846,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:19:18]process_action_free close_receipt [14:19:18]json_value_free [14:19:18]json_value_free done [14:19:18]process_json_proto returns [14:19:18]Send response to host [14:19:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162846,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:19:18]free response buf [14:19:18]execute_script done [14:19:18]execute_script returns [14:19:18]free content buf [14:19:18]Sock 9.Close socket [14:19:18]Sock 9.Thread stoped [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:39]accept exits with 7 [14:19:39]New connection [14:19:39]New thread 3066735972 created [14:19:39]Thread 3066879332 joined [14:19:39]Waiting for new connection... [14:19:39] Sock 7.Parse request [14:19:39]Sock 7.Check first char [14:19:39]Sock 7.First char is OK [14:19:39]request: POST /json_proto HTTP/1.0 [14:19:39]Method: POST [14:19:39]URL: /json_proto [14:19:39]Method is POST - this is cgi request [14:19:39]url: /json_proto [14:19:39]query_string will be loaded in cgi processing [14:19:39]execute_cgi json_proto POST (null) [14:19:39]execute_cgi path=json_proto method=POST [14:19:39]POST find Content-Length [14:19:39]Host: 172.17.39.67:8080 [14:19:39]Content-Length: 688 [14:19:39]Content-Type: application/json [14:19:39] [14:19:39]POST finish read [14:19:39]Found Content-Length = 688 [14:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "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" ] } } [14:19:39]execute_script... [14:19:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "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" ] } } [14:19:39]POST & json_proto [14:19:39]process_json_proto [14:19:39]json parsed OK: [14:19:39]protocol is kg_v1.0 [14:19:39]action value=close_receipt [14:19:39]process_action close_receipt [14:19:39]cmd_close_receipt [14:19:39]MH_GetDate [14:19:39]Write to MH i2c: F0 00 00 4A 22 5B [14:19:39]Write i2c OK [14:19:39]MH_I2C_Read... [14:19:39]Read from MH i2c: F0 [14:19:39]MH_I2C_Read... [14:19:39]Read from MH i2c: F0 09 00 [14:19:39]MH_I2C_Read... [14:19:39]Read from MH i2c: F0 09 00 4A 22 00 7C DE 93 66 B6 85 93 66 EB [14:19:39]GetLastDocTimeStamp 1720966754 [14:19:39]current date 1720966780 [14:19:39]FM_GetShiftState [14:19:39]SAM_PROTO_GetShiftState [14:19:39]wFMCommunicate request_size=4 [14:19:39]MH_SAM_APDU [14:19:39]CAPDU: 80 13 01 00 [14:19:39]Write to MH i2c: E2 08 00 4B 22 80 13 01 00 00 00 00 00 EA [14:19:39]Write i2c OK [14:19:39]MH_I2C_Read... [14:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:39]Read from MH i2c: E2 [14:19:39]MH_I2C_Read... [14:19:39]Read from MH i2c: E2 0E 00 [14:19:39]MH_I2C_Read... [14:19:39]Read from MH i2c: E2 0E 00 4B 22 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 20 [14:19:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:19:39]wFMCommunicate OK [14:19:39]SAM_PROTO_GetShiftState done [14:19:39]FM_GetShiftState done [14:19:39]opened in 1720915483 [14:19:39]opened+sec_in_day 1721001883 [14:19:39]quantity*price = 200013 [14:19:39]sum+1 = 200014 [14:19:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 159 14.07.2024 14:19 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162847 ФПД: 216545727148803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141940&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162847&fm=216545727148803&tin=02508201610067®Number=0000000000090858&sum=200000 [14:19:40]StoreToDocumentArchive [14:19:40]shift 463 fd 162847 [14:19:40]save to /storage/0463/doc_00162847 [14:19:40]save last doc name /storage/0463/doc_00162847 to /storage/kkm_last_doc_name [14:19:40]save OK [14:19:40]Clear old archive folders... [14:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:19:40]tlvbuf is B6F464D0 [14:19:40]SAM_PROTO_ClearQueue [14:19:40]wFMCommunicate request_size=4 [14:19:40]MH_SAM_APDU [14:19:40]CAPDU: 80 09 00 00 [14:19:40]Write to MH i2c: E2 08 00 58 22 80 09 00 00 00 00 00 00 EC [14:19:40]Write i2c OK [14:19:40]MH_I2C_Read... [14:19:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:40]Read from MH i2c: E2 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: E2 03 00 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: E2 03 00 58 22 00 90 00 EE [14:19:40]RAPDU: 90 00 [14:19:40]wFMCommunicate OK [14:19:40]SAM_PROTO_ClearQueue done [14:19:40]KKMCreateOFDPacket [14:19:40]OFDProtocolAddRootSTLVToBuf [14:19:40]FM_MakeSignedData [14:19:40]FM_MakeSignedData [14:19:40]SAM_PROTO_SignData [14:19:40]wFMCommunicate request_size=4 [14:19:40]MH_SAM_APDU [14:19:40]CAPDU: 80 0D 01 02 [14:19:40]Write to MH i2c: E2 08 00 59 22 80 0D 01 02 00 00 00 00 F4 [14:19:40]Write i2c OK [14:19:40]MH_I2C_Read... [14:19:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:40]Read from MH i2c: E2 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: E2 03 00 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: E2 03 00 59 22 00 90 00 EF [14:19:40]RAPDU: 90 00 [14:19:40]wFMCommunicate OK [14:19:40]wFMCommunicate request_size=255 [14:19:40]MH_SAM_APDU [14:19:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 7C DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1F 7C 02 00 35 04 06 00 [14:19:40]Write to MH i2c: E2 02 01 5A 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 7C DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1F 7C 02 00 35 04 06 00 00 00 62 [14:19:40]Write i2c OK [14:19:40]MH_I2C_Read... [14:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:41]Read from MH i2c: E2 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 03 00 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 03 00 5A 22 00 90 00 F0 [14:19:41]RAPDU: 90 00 [14:19:41]wFMCommunicate OK [14:19:41]wFMCommunicate request_size=11 [14:19:41]MH_SAM_APDU [14:19:41]CAPDU: 80 0D 02 02 06 C4 F2 7B 24 F3 03 [14:19:41]Write to MH i2c: E2 0E 00 5B 22 80 0D 02 02 06 00 C4 F2 7B 24 F3 03 00 00 4E [14:19:41]Write i2c OK [14:19:41]MH_I2C_Read... [14:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:41]Read from MH i2c: E2 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 03 00 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 03 00 5B 22 00 90 00 F1 [14:19:41]RAPDU: 90 00 [14:19:41]wFMCommunicate OK [14:19:41]wFMCommunicate request_size=4 [14:19:41]MH_SAM_APDU [14:19:41]CAPDU: 80 0D 03 02 [14:19:41]Write to MH i2c: E2 08 00 5C 22 80 0D 03 02 00 00 00 00 F9 [14:19:41]Write i2c OK [14:19:41]MH_I2C_Read... [14:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:41]Read from MH i2c: E2 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 0B 00 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 0B 00 5C 22 00 BA F2 F9 78 DF 85 CD D5 90 00 1D [14:19:41]RAPDU: BA F2 F9 78 DF 85 CD D5 90 00 [14:19:41]wFMCommunicate OK [14:19:41]SAM_PROTO_SignData done [14:19:41]FM_MakeSignedData done [14:19:41]CreateOFDProtocolMessage [14:19:41]wFMCommunicate request_size=4 [14:19:41]MH_SAM_APDU [14:19:41]CAPDU: 80 11 00 00 [14:19:41]Write to MH i2c: E2 08 00 5D 22 80 11 00 00 00 00 00 00 F9 [14:19:41]Write i2c OK [14:19:41]MH_I2C_Read... [14:19:41]OFD Sender: No OFD packet to send [14:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:41]Read from MH i2c: E2 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 17 00 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: E2 17 00 5D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 59 [14:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:19:41]wFMCommunicate OK [14:19:41]CreateOFDProtocolMessage done [14:19:41]OFDSenderStorePacket 162847 [14:19:41]StoreOFDPacket docnum=162847 [14:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B9 56 08 01 57 F0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 7C DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1F 7C 02 00 35 04 06 00 C4 F2 7B 24 F3 03 BA F2 F9 78 DF 85 CD D5 [14:19:41]CheckFolder [14:19:41]dirname=/storage/ofd_packets [14:19:41]CheckFolder done [14:19:41]ProducePacketName [14:19:41]name=ofd_packets/00162847 [14:19:41]NVStorageSaveData ofd_packets/00162847 [14:19:41]File name is /storage/ofd_packets/00162847 [14:19:41]Write 302 bytes [14:19:41]NVStorageSaveData done [14:19:41]OFDSenderStorePacket done [14:19:41]KKMCreateOFDPacket done [14:19:41]NVStorageSaveData kkm_last_timestamp [14:19:41]File name is /storage/kkm_last_timestamp [14:19:41]Write 4 bytes [14:19:41]NVStorageSaveData done [14:19:41]ExternCall_PrintAddStr [14:19:41]wPrintStart [14:19:41]Write to MH i2c: 01 00 00 5E 22 80 [14:19:41]Write i2c OK [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: 01 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: 01 07 00 [14:19:41]MH_I2C_Read... [14:19:41]Read from MH i2c: 01 07 00 5E 22 00 00 00 00 00 FF 0F 95 [14:19:41]RasterBufferAndPrint [14:19:41]line Счет N : (1)1319446 [14:19:41]line ИНН: 02508201610067 [14:19:41]line Контрольно-Кассовый Чек [14:19:41]line ПРОДАЖА [14:19:41]line ТРК (МРК, ГНК) : 31 [14:19:41]line Товар: 2710194210 [14:19:41]line ДТ(л)-К-5 [14:19:41]line 27.550 * 72.60 [14:19:41]line = 2000.13 [14:19:41]line НДС 12% НСП 1% [14:19:41]line > о реализуемом товаре [14:19:41]line ОКРУГЛЕНИЕ: -0.13 [14:19:41]line ИТОГО: 2000.00 [14:19:41]line Внесено: 2000.00 [14:19:41]line СДАЧА: 0.00 [14:19:41]line НСП 1% : 17.70 [14:19:41]line НДС 12% : 212.40 [14:19:41]line Наличными: 2000.00 [14:19:41]line Безнал.: 0.00 [14:19:41]line Место: АЗС № 140 "Партнер Нефть" [14:19:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:19:41]line СНО: Общий режим [14:19:41]line Чек 159 14.07.2024 14:19 [14:19:41]line Смена: 463 ФФД: 1.0 [14:19:41]line ЗНМ: 0300000129 [14:19:41]line РНМ: 0000000000090858 [14:19:41]line Версия ККМ: 001 [14:19:41]line ФМ: 0000000000874899 [14:19:41]line ФД: 162847 [14:19:41]line ФПД: 216545727148803 [14:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T141940&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162847&fm=216545727148803&tin=02508201610067®Number=0000000000090858&sum=200000 [14:19:41]OFD Sender: Processing packet 162847 [packets to send 106, broken 105] [14:19:41]ProducePacketName [14:19:41]name=ofd_packets/00162847 [14:19:41]OFD Sender: To server: pG, [14:19:41]CommunicateWithHost lk.salyk.kg:30040 [14:19:41]ConnectInit lk.salyk.kg [14:19:41]written 0, free lines is 4095 [14:19:41]Connected sock=10 [14:19:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B9 56 08 01 57 F0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 7C DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1F 7C 02 00 35 04 06 00 C4 F2 7B 24 F3 03 BA F2 F9 78 DF 85 CD D5 [14:19:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3D 45 47 00 62 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1F 7C 02 00 F4 03 04 00 8A 8A 93 66 B6 04 01 00 00 AE DC 25 3D B9 76 41 81 [14:19:41]CommunicateWithHost err = 0 [14:19:41]CheckOFDResponse [14:19:41]1017 (14) - 77093643461234 [14:19:41]1041 (16) - 0000000000874899 [14:19:41]1040 (4) - 162847 [14:19:41]1012 (4) - 14.07.2024 08:21 [14:19:41]1206 (1) - 0 [14:19:41]OFD Sender: Remove packet 162847 [14:19:41]ProducePacketName [14:19:41]name=ofd_packets/00162847 [14:19:41]NVStorageDeleteData [14:19:42]Write to MH i2c: 01 00 00 89 22 AB [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: 01 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: 01 07 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: 01 07 00 89 22 00 00 00 00 00 F0 0C AE [14:19:42]RasterBufferAndPrint [14:19:42]line [14:19:42]line [14:19:42]line [14:19:42]line [14:19:42]line [14:19:42]written 0, free lines is 3321 [14:19:42]MH_Cut [14:19:42]Write to MH i2c: D1 01 00 90 22 01 84 [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: D1 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: D1 01 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: D1 01 00 90 22 00 83 [14:19:42]Write to MH i2c: 01 00 00 91 22 B3 [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:42]OFD Sender: No OFD packet to send [14:19:42]*** Cut start [14:19:42]*** Purtial cut [14:19:42]*** Stage 1: CUTSNS_PIN = 1 [14:19:42]Read from MH i2c: 01 [14:19:42]MH_I2C_Read... [14:19:42]*** Stop cut motor [14:19:42]*** Cut end [14:19:42]Read from MH i2c: 01 07 00 [14:19:42]MH_I2C_Read... [14:19:42]Read from MH i2c: 01 07 00 91 22 00 00 00 00 00 FF 0F C8 [14:19:42]process_action close_receipt done [14:19:42]requested_data is exist [14:19:42]produce_requested_data [14:19:42]requested_item fm.sn is exist - process it [14:19:42]wFMCommunicate request_size=4 [14:19:42]MH_SAM_APDU [14:19:42]CAPDU: 80 11 00 00 [14:19:42]Write to MH i2c: E2 08 00 92 22 80 11 00 00 00 00 00 00 2E [14:19:42]Write i2c OK [14:19:42]MH_I2C_Read... [14:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:43]Read from MH i2c: E2 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: E2 17 00 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: E2 17 00 92 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8E [14:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:19:43]wFMCommunicate OK [14:19:43]requested_item fd.num is exist - process it [14:19:43]SAM_PROTO_GetFieldsCounters [14:19:43]wFMCommunicate request_size=4 [14:19:43]MH_SAM_APDU [14:19:43]CAPDU: 80 13 00 00 [14:19:43]Write to MH i2c: E2 08 00 93 22 80 13 00 00 00 00 00 00 31 [14:19:43]Write i2c OK [14:19:43]MH_I2C_Read... [14:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:43]Read from MH i2c: E2 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: E2 62 00 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: E2 62 00 93 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [14:19:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:43]wFMCommunicate OK [14:19:43]SAM_PROTO_GetFieldsCounters done [14:19:43]requested_item shift.num is exist - process it [14:19:43]requested_item shift.opened is exist - process it [14:19:43]req_shift_opened [14:19:43]FM_GetShiftState [14:19:43]SAM_PROTO_GetShiftState [14:19:43]wFMCommunicate request_size=4 [14:19:43]MH_SAM_APDU [14:19:43]CAPDU: 80 13 01 00 [14:19:43]Write to MH i2c: E2 08 00 94 22 80 13 01 00 00 00 00 00 33 [14:19:43]Write i2c OK [14:19:43]MH_I2C_Read... [14:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:43]Read from MH i2c: E2 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: E2 0E 00 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: E2 0E 00 94 22 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 69 [14:19:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:19:43]wFMCommunicate OK [14:19:43]SAM_PROTO_GetShiftState done [14:19:43]FM_GetShiftState done [14:19:43]req_shift_opened done [14:19:43]requested_item shift.open_date is exist - process it [14:19:43]req_shift_open_date [14:19:43]req_shift_open_date done [14:19:43]produce_requested_data done [14:19:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162847,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:19:43]process_action_free close_receipt [14:19:43]json_value_free [14:19:43]json_value_free done [14:19:43]process_json_proto returns [14:19:43]Send response to host [14:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162847,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:19:43]free response buf [14:19:43]execute_script done [14:19:43]execute_script returns [14:19:43]free content buf [14:19:43]Sock 7.Close socket [14:19:43]Sock 7.Thread stoped [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:38]accept exits with 9 [14:21:38]New connection [14:21:38]New thread 3066879332 created [14:21:38]Thread 3066735972 joined [14:21:38]Waiting for new connection... [14:21:38] Sock 9.Parse request [14:21:38]Sock 9.Check first char [14:21:38]Sock 9.First char is OK [14:21:38]request: POST /json_proto HTTP/1.0 [14:21:38]Method: POST [14:21:38]URL: /json_proto [14:21:38]Method is POST - this is cgi request [14:21:38]url: /json_proto [14:21:38]query_string will be loaded in cgi processing [14:21:38]execute_cgi json_proto POST (null) [14:21:38]execute_cgi path=json_proto method=POST [14:21:38]POST find Content-Length [14:21:38]Host: 172.17.39.67:8080 [14:21:38]Content-Length: 688 [14:21:38]Content-Type: application/json [14:21:38] [14:21:38]POST finish read [14:21:38]Found Content-Length = 688 [14:21:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 19.220, "sum" : 1395.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1395.00, "total" : 1395.00, "payments": [ { "type": 0, "sum" : 1395.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:38]execute_script... [14:21: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)1319449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 19.220, "sum" : 1395.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1395.00, "total" : 1395.00, "payments": [ { "type": 0, "sum" : 1395.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:38]POST & json_proto [14:21:38]process_json_proto [14:21:38]json parsed OK: [14:21:38]protocol is kg_v1.0 [14:21:38]action value=close_receipt [14:21:38]process_action close_receipt [14:21:38]cmd_close_receipt [14:21:38]MH_GetDate [14:21:38]Write to MH i2c: F0 00 00 95 22 A6 [14:21:38]Write i2c OK [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: F0 [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: F0 09 00 [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: F0 09 00 95 22 00 F4 DE 93 66 B6 85 93 66 AE [14:21:38]GetLastDocTimeStamp 1720966780 [14:21:38]current date 1720966900 [14:21:38]FM_GetShiftState [14:21:38]SAM_PROTO_GetShiftState [14:21:38]wFMCommunicate request_size=4 [14:21:38]MH_SAM_APDU [14:21:38]CAPDU: 80 13 01 00 [14:21:38]Write to MH i2c: E2 08 00 96 22 80 13 01 00 00 00 00 00 35 [14:21:38]Write i2c OK [14:21:38]MH_I2C_Read... [14:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:38]Read from MH i2c: E2 [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: E2 0E 00 [14:21:38]MH_I2C_Read... [14:21:38]Read from MH i2c: E2 0E 00 96 22 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6B [14:21:38]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:21:38]wFMCommunicate OK [14:21:38]SAM_PROTO_GetShiftState done [14:21:38]FM_GetShiftState done [14:21:38]opened in 1720915483 [14:21:38]opened+sec_in_day 1721001883 [14:21:38]quantity*price = 139537 [14:21:38]sum+1 = 139538 [14:21:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1395.00 Внесено: 1395.00 СДАЧА: 0.00 НСП 1% : 12.35 НДС 12% : 148.18 Наличными: 1395.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 160 14.07.2024 14:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162848 ФПД: 189284949819922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T142140&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162848&fm=189284949819922&tin=02508201610067®Number=0000000000090858&sum=139500 [14:21:39]StoreToDocumentArchive [14:21:39]shift 463 fd 162848 [14:21:39]save to /storage/0463/doc_00162848 [14:21:39]save last doc name /storage/0463/doc_00162848 to /storage/kkm_last_doc_name [14:21:39]save OK [14:21:39]Clear old archive folders... [14:21:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:21:39]tlvbuf is B6F43790 [14:21:39]SAM_PROTO_ClearQueue [14:21:39]wFMCommunicate request_size=4 [14:21:39]MH_SAM_APDU [14:21:39]CAPDU: 80 09 00 00 [14:21:39]Write to MH i2c: E2 08 00 A3 22 80 09 00 00 00 00 00 00 37 [14:21:39]Write i2c OK [14:21:39]MH_I2C_Read... [14:21:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 A3 22 00 90 00 39 [14:21:40]RAPDU: 90 00 [14:21:40]wFMCommunicate OK [14:21:40]SAM_PROTO_ClearQueue done [14:21:40]KKMCreateOFDPacket [14:21:40]OFDProtocolAddRootSTLVToBuf [14:21:40]FM_MakeSignedData [14:21:40]FM_MakeSignedData [14:21:40]SAM_PROTO_SignData [14:21:40]wFMCommunicate request_size=4 [14:21:40]MH_SAM_APDU [14:21:40]CAPDU: 80 0D 01 02 [14:21:40]Write to MH i2c: E2 08 00 A4 22 80 0D 01 02 00 00 00 00 3F [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 A4 22 00 90 00 3A [14:21:40]RAPDU: 90 00 [14:21:40]wFMCommunicate OK [14:21:40]wFMCommunicate request_size=255 [14:21:40]MH_SAM_APDU [14:21:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 4B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 11 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 20 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 39 00 00 00 00 07 04 06 00 EC 20 02 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 F4 DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 20 7C 02 00 35 04 06 00 [14:21:40]Write to MH i2c: E2 02 01 A5 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 4B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 11 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 20 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 39 00 00 00 00 07 04 06 00 EC 20 02 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 F4 DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 20 7C 02 00 35 04 06 00 00 00 88 [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 A5 22 00 90 00 3B [14:21:40]RAPDU: 90 00 [14:21:40]wFMCommunicate OK [14:21:40]wFMCommunicate request_size=11 [14:21:40]MH_SAM_APDU [14:21:40]CAPDU: 80 0D 02 02 06 AC 27 56 32 02 12 [14:21:40]Write to MH i2c: E2 0E 00 A6 22 80 0D 02 02 06 00 AC 27 56 32 02 12 00 00 BD [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 03 00 A6 22 00 90 00 3C [14:21:40]RAPDU: 90 00 [14:21:40]wFMCommunicate OK [14:21:40]wFMCommunicate request_size=4 [14:21:40]MH_SAM_APDU [14:21:40]CAPDU: 80 0D 03 02 [14:21:40]Write to MH i2c: E2 08 00 A7 22 80 0D 03 02 00 00 00 00 44 [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 0B 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 0B 00 A7 22 00 78 DF D5 02 78 B2 A8 F6 90 00 3B [14:21:40]RAPDU: 78 DF D5 02 78 B2 A8 F6 90 00 [14:21:40]wFMCommunicate OK [14:21:40]SAM_PROTO_SignData done [14:21:40]FM_MakeSignedData done [14:21:40]CreateOFDProtocolMessage [14:21:40]wFMCommunicate request_size=4 [14:21:40]MH_SAM_APDU [14:21:40]CAPDU: 80 11 00 00 [14:21:40]Write to MH i2c: E2 08 00 A8 22 80 11 00 00 00 00 00 00 44 [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:40]Read from MH i2c: E2 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 17 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: E2 17 00 A8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A4 [14:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:21:40]wFMCommunicate OK [14:21:40]CreateOFDProtocolMessage done [14:21:40]OFDSenderStorePacket 162848 [14:21:40]StoreOFDPacket docnum=162848 [14:21:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 3D 2B 08 01 2C 57 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 4B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 11 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 20 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 39 00 00 00 00 07 04 06 00 EC 20 02 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 F4 DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 20 7C 02 00 35 04 06 00 AC 27 56 32 02 12 78 DF D5 02 78 B2 A8 F6 [14:21:40]CheckFolder [14:21:40]dirname=/storage/ofd_packets [14:21:40]CheckFolder done [14:21:40]ProducePacketName [14:21:40]name=ofd_packets/00162848 [14:21:40]NVStorageSaveData ofd_packets/00162848 [14:21:40]File name is /storage/ofd_packets/00162848 [14:21:40]Write 302 bytes [14:21:40]NVStorageSaveData done [14:21:40]OFDSenderStorePacket done [14:21:40]KKMCreateOFDPacket done [14:21:40]NVStorageSaveData kkm_last_timestamp [14:21:40]File name is /storage/kkm_last_timestamp [14:21:40]Write 4 bytes [14:21:40]NVStorageSaveData done [14:21:40]ExternCall_PrintAddStr [14:21:40]wPrintStart [14:21:40]Write to MH i2c: 01 00 00 A9 22 CB [14:21:40]Write i2c OK [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: 01 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: 01 07 00 [14:21:40]MH_I2C_Read... [14:21:40]Read from MH i2c: 01 07 00 A9 22 00 00 00 00 00 FF 0F E0 [14:21:40]RasterBufferAndPrint [14:21:40]line Счет N : (1)1319449 [14:21:40]line ИНН: 02508201610067 [14:21:40]line Контрольно-Кассовый Чек [14:21:40]line ПРОДАЖА [14:21:40]line ТРК (МРК, ГНК) : 21 [14:21:40]line Товар: 2710194210 [14:21:40]line ДТ(л)-К-5 [14:21:40]line 19.220 * 72.60 [14:21:40]line = 1395.37 [14:21:40]line НДС 12% НСП 1% [14:21:40]line > о реализуемом товаре [14:21:40]line ОКРУГЛЕНИЕ: -0.37 [14:21:40]line ИТОГО: 1395.00 [14:21:40]line Внесено: 1395.00 [14:21:40]line СДАЧА: 0.00 [14:21:40]line НСП 1% : 12.35 [14:21:40]line НДС 12% : 148.18 [14:21:40]line Наличными: 1395.00 [14:21:40]line Безнал.: 0.00 [14:21:40]line Место: АЗС № 140 "Партнер Нефть" [14:21:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:21:40]line СНО: Общий режим [14:21:40]line Чек 160 14.07.2024 14:21 [14:21:40]line Смена: 463 ФФД: 1.0 [14:21:40]line ЗНМ: 0300000129 [14:21:40]line РНМ: 0000000000090858 [14:21:40]line Версия ККМ: 001 [14:21:40]line ФМ: 0000000000874899 [14:21:40]line ФД: 162848 [14:21:40]line ФПД: 189284949819922 [14:21:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T142140&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162848&fm=189284949819922&tin=02508201610067®Number=0000000000090858&sum=139500 [14:21:40]OFD Sender: Processing packet 162848 [packets to send 106, broken 105] [14:21:40]ProducePacketName [14:21:40]name=ofd_packets/00162848 [14:21:40]OFD Sender: To server: pG, [14:21:40]CommunicateWithHost lk.salyk.kg:30040 [14:21:40]ConnectInit lk.salyk.kg [14:21:40]written 0, free lines is 4095 [14:21:40]Connected sock=10 [14:21:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 3D 2B 08 01 2C 57 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 4B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 11 21 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 20 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 39 00 00 00 00 07 04 06 00 EC 20 02 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 F4 DE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 20 7C 02 00 35 04 06 00 AC 27 56 32 02 12 78 DF D5 02 78 B2 A8 F6 [14:21:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C0 5F 47 00 07 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 20 7C 02 00 F4 03 04 00 01 8B 93 66 B6 04 01 00 00 F3 B6 9D 6B 62 22 E3 9F [14:21:41]CommunicateWithHost err = 0 [14:21:41]CheckOFDResponse [14:21:41]1017 (14) - 77093643461234 [14:21:41]1041 (16) - 0000000000874899 [14:21:41]1040 (4) - 162848 [14:21:41]1012 (4) - 14.07.2024 08:23 [14:21:41]1206 (1) - 0 [14:21:41]OFD Sender: Remove packet 162848 [14:21:41]ProducePacketName [14:21:41]name=ofd_packets/00162848 [14:21:41]NVStorageDeleteData [14:21:41]Write to MH i2c: 01 00 00 D4 22 F6 [14:21:41]Write i2c OK [14:21:41]MH_I2C_Read... [14:21:41]Read from MH i2c: 01 [14:21:41]MH_I2C_Read... [14:21:41]Read from MH i2c: 01 07 00 [14:21:41]MH_I2C_Read... [14:21:41]Read from MH i2c: 01 07 00 D4 22 00 00 00 00 00 E2 0C EB [14:21:41]RasterBufferAndPrint [14:21:41]line [14:21:41]line [14:21:41]line [14:21:41]line [14:21:41]line [14:21:41]written 0, free lines is 3304 [14:21:41]MH_Cut [14:21:41]Write to MH i2c: D1 01 00 DB 22 01 CF [14:21:41]Write i2c OK [14:21:41]MH_I2C_Read... [14:21:41]Read from MH i2c: D1 [14:21:41]MH_I2C_Read... [14:21:41]Read from MH i2c: D1 01 00 [14:21:41]MH_I2C_Read... [14:21:41]Read from MH i2c: D1 01 00 DB 22 00 CE [14:21:41]Write to MH i2c: 01 00 00 DC 22 FE [14:21:41]Write i2c OK [14:21:41]MH_I2C_Read... [14:21:41]OFD Sender: No OFD packet to send [14:21:42]*** Cut start [14:21:42]*** Purtial cut [14:21:42]*** CUTSNS_PIN = 0 [14:21:42]*** Stage 1: CUTSNS_PIN = 1 [14:21:44]Read from MH i2c: 01 [14:21:44]MH_I2C_Read... [14:21:44]*** Stop cut motor [14:21:44]*** Cut end [14:21:44]Read from MH i2c: 01 07 00 [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: 01 07 00 DC 22 00 00 00 00 00 FF 0F 13 [14:21:44]process_action close_receipt done [14:21:44]requested_data is exist [14:21:44]produce_requested_data [14:21:44]requested_item fm.sn is exist - process it [14:21:44]wFMCommunicate request_size=4 [14:21:44]MH_SAM_APDU [14:21:44]CAPDU: 80 11 00 00 [14:21:44]Write to MH i2c: E2 08 00 DD 22 80 11 00 00 00 00 00 00 79 [14:21:44]Write i2c OK [14:21:44]MH_I2C_Read... [14:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:44]Read from MH i2c: E2 [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: E2 17 00 [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: E2 17 00 DD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D9 [14:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:21:44]wFMCommunicate OK [14:21:44]requested_item fd.num is exist - process it [14:21:44]SAM_PROTO_GetFieldsCounters [14:21:44]wFMCommunicate request_size=4 [14:21:44]MH_SAM_APDU [14:21:44]CAPDU: 80 13 00 00 [14:21:44]Write to MH i2c: E2 08 00 DE 22 80 13 00 00 00 00 00 00 7C [14:21:44]Write i2c OK [14:21:44]MH_I2C_Read... [14:21:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:44]Read from MH i2c: E2 [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: E2 62 00 [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: E2 62 00 DE 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 20 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [14:21:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 20 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:44]wFMCommunicate OK [14:21:44]SAM_PROTO_GetFieldsCounters done [14:21:44]requested_item shift.num is exist - process it [14:21:44]requested_item shift.opened is exist - process it [14:21:44]req_shift_opened [14:21:44]FM_GetShiftState [14:21:44]SAM_PROTO_GetShiftState [14:21:44]wFMCommunicate request_size=4 [14:21:44]MH_SAM_APDU [14:21:44]CAPDU: 80 13 01 00 [14:21:44]Write to MH i2c: E2 08 00 DF 22 80 13 01 00 00 00 00 00 7E [14:21:44]Write i2c OK [14:21:44]MH_I2C_Read... [14:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:44]Read from MH i2c: E2 [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: E2 0E 00 [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: E2 0E 00 DF 22 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B4 [14:21:44]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:21:44]wFMCommunicate OK [14:21:44]SAM_PROTO_GetShiftState done [14:21:44]FM_GetShiftState done [14:21:44]req_shift_opened done [14:21:44]requested_item shift.open_date is exist - process it [14:21:44]req_shift_open_date [14:21:44]req_shift_open_date done [14:21:44]produce_requested_data done [14:21:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162848,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:21:44]process_action_free close_receipt [14:21:44]json_value_free [14:21:44]json_value_free done [14:21:44]process_json_proto returns [14:21:44]Send response to host [14:21:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162848,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:21:44]free response buf [14:21:44]execute_script done [14:21:44]execute_script returns [14:21:44]free content buf [14:21:44]Sock 9.Close socket [14:21:44]Sock 9.Thread stoped [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:53]accept exits with 7 [14:27:53]New connection [14:27:53]New thread 3066735972 created [14:27:53]Thread 3066879332 joined [14:27:53]Waiting for new connection... [14:27:53] Sock 7.Parse request [14:27:53]Sock 7.Check first char [14:27:53]Sock 7.First char is OK [14:27:53]request: POST /json_proto HTTP/1.0 [14:27:53]Method: POST [14:27:53]URL: /json_proto [14:27:53]Method is POST - this is cgi request [14:27:53]url: /json_proto [14:27:53]query_string will be loaded in cgi processing [14:27:53]execute_cgi json_proto POST (null) [14:27:53]execute_cgi path=json_proto method=POST [14:27:53]POST find Content-Length [14:27:53]Host: 172.17.39.67:8080 [14:27:53]Content-Length: 683 [14:27:53]Content-Type: application/json [14:27:53] [14:27:53]POST finish read [14:27:53]Found Content-Length = 683 [14:27:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:53]execute_script... [14:27:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:53]POST & json_proto [14:27:53]process_json_proto [14:27:53]json parsed OK: [14:27:53]protocol is kg_v1.0 [14:27:53]action value=close_receipt [14:27:53]process_action close_receipt [14:27:53]cmd_close_receipt [14:27:53]MH_GetDate [14:27:53]Write to MH i2c: F0 00 00 E0 22 F1 [14:27:53]Write i2c OK [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: F0 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: F0 09 00 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: F0 09 00 E0 22 00 6B E0 93 66 B6 85 93 66 72 [14:27:53]GetLastDocTimeStamp 1720966900 [14:27:53]current date 1720967275 [14:27:53]FM_GetShiftState [14:27:53]SAM_PROTO_GetShiftState [14:27:53]wFMCommunicate request_size=4 [14:27:53]MH_SAM_APDU [14:27:53]CAPDU: 80 13 01 00 [14:27:53]Write to MH i2c: E2 08 00 E1 22 80 13 01 00 00 00 00 00 80 [14:27:53]Write i2c OK [14:27:53]MH_I2C_Read... [14:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:53]Read from MH i2c: E2 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: E2 0E 00 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: E2 0E 00 E1 22 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B6 [14:27:53]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:27:53]wFMCommunicate OK [14:27:53]SAM_PROTO_GetShiftState done [14:27:53]FM_GetShiftState done [14:27:53]opened in 1720915483 [14:27:53]opened+sec_in_day 1721001883 [14:27:53]quantity*price = 60040 [14:27:53]sum+1 = 60041 [14:27:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 161 14.07.2024 14:27 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162849 ФПД: 64642944337929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T142755&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162849&fm=64642944337929&tin=02508201610067®Number=0000000000090858&sum=60000 [14:27:54]StoreToDocumentArchive [14:27:54]shift 463 fd 162849 [14:27:54]save to /storage/0463/doc_00162849 [14:27:54]save last doc name /storage/0463/doc_00162849 to /storage/kkm_last_doc_name [14:27:54]save OK [14:27:54]Clear old archive folders... [14:27:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:27:54]tlvbuf is 01316D50 [14:27:54]SAM_PROTO_ClearQueue [14:27:54]wFMCommunicate request_size=4 [14:27:54]MH_SAM_APDU [14:27:54]CAPDU: 80 09 00 00 [14:27:54]Write to MH i2c: E2 08 00 EE 22 80 09 00 00 00 00 00 00 82 [14:27:54]Write i2c OK [14:27:54]MH_I2C_Read... [14:27:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:55]Read from MH i2c: E2 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 03 00 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 03 00 EE 22 00 90 00 84 [14:27:55]RAPDU: 90 00 [14:27:55]wFMCommunicate OK [14:27:55]SAM_PROTO_ClearQueue done [14:27:55]KKMCreateOFDPacket [14:27:55]OFDProtocolAddRootSTLVToBuf [14:27:55]FM_MakeSignedData [14:27:55]FM_MakeSignedData [14:27:55]SAM_PROTO_SignData [14:27:55]wFMCommunicate request_size=4 [14:27:55]MH_SAM_APDU [14:27:55]CAPDU: 80 0D 01 02 [14:27:55]Write to MH i2c: E2 08 00 EF 22 80 0D 01 02 00 00 00 00 8A [14:27:55]Write i2c OK [14:27:55]MH_I2C_Read... [14:27:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:55]Read from MH i2c: E2 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 03 00 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 03 00 EF 22 00 90 00 85 [14:27:55]RAPDU: 90 00 [14:27:55]wFMCommunicate OK [14:27:55]wFMCommunicate request_size=255 [14:27:55]MH_SAM_APDU [14:27:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 6B E0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 21 7C 02 00 35 04 06 00 [14:27:55]Write to MH i2c: E2 02 01 F0 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 6B E0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 21 7C 02 00 35 04 06 00 00 00 36 [14:27:55]Write i2c OK [14:27:55]MH_I2C_Read... [14:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:55]Read from MH i2c: E2 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 03 00 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 03 00 F0 22 00 90 00 86 [14:27:55]RAPDU: 90 00 [14:27:55]wFMCommunicate OK [14:27:55]wFMCommunicate request_size=11 [14:27:55]MH_SAM_APDU [14:27:55]CAPDU: 80 0D 02 02 06 3A CA DB BC 08 09 [14:27:55]Write to MH i2c: E2 0E 00 F1 22 80 0D 02 02 06 00 3A CA DB BC 08 09 00 00 45 [14:27:55]Write i2c OK [14:27:55]MH_I2C_Read... [14:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:55]Read from MH i2c: E2 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 03 00 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 03 00 F1 22 00 90 00 87 [14:27:55]RAPDU: 90 00 [14:27:55]wFMCommunicate OK [14:27:55]wFMCommunicate request_size=4 [14:27:55]MH_SAM_APDU [14:27:55]CAPDU: 80 0D 03 02 [14:27:55]Write to MH i2c: E2 08 00 F2 22 80 0D 03 02 00 00 00 00 8F [14:27:55]Write i2c OK [14:27:55]MH_I2C_Read... [14:27:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:55]Read from MH i2c: E2 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 0B 00 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 0B 00 F2 22 00 0F 47 F8 1D CA E0 96 1F 90 00 5A [14:27:55]RAPDU: 0F 47 F8 1D CA E0 96 1F 90 00 [14:27:55]wFMCommunicate OK [14:27:55]SAM_PROTO_SignData done [14:27:55]FM_MakeSignedData done [14:27:55]CreateOFDProtocolMessage [14:27:55]wFMCommunicate request_size=4 [14:27:55]MH_SAM_APDU [14:27:55]CAPDU: 80 11 00 00 [14:27:55]Write to MH i2c: E2 08 00 F3 22 80 11 00 00 00 00 00 00 8F [14:27:55]Write i2c OK [14:27:55]MH_I2C_Read... [14:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:55]Read from MH i2c: E2 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 17 00 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 17 00 F3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EF [14:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:27:55]wFMCommunicate OK [14:27:55]CreateOFDProtocolMessage done [14:27:55]OFDSenderStorePacket 162849 [14:27:55]StoreOFDPacket docnum=162849 [14:27:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 15 5F 08 01 83 F5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 6B E0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 21 7C 02 00 35 04 06 00 3A CA DB BC 08 09 0F 47 F8 1D CA E0 96 1F [14:27:55]CheckFolder [14:27:55]dirname=/storage/ofd_packets [14:27:55]CheckFolder done [14:27:55]ProducePacketName [14:27:55]name=ofd_packets/00162849 [14:27:55]NVStorageSaveData ofd_packets/00162849 [14:27:55]File name is /storage/ofd_packets/00162849 [14:27:55]Write 302 bytes [14:27:55]NVStorageSaveData done [14:27:55]OFDSenderStorePacket done [14:27:55]KKMCreateOFDPacket done [14:27:55]NVStorageSaveData kkm_last_timestamp [14:27:55]File name is /storage/kkm_last_timestamp [14:27:55]Write 4 bytes [14:27:55]NVStorageSaveData done [14:27:55]ExternCall_PrintAddStr [14:27:55]wPrintStart [14:27:55]Write to MH i2c: 01 00 00 F4 22 16 [14:27:55]Write i2c OK [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: 01 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: 01 07 00 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: 01 07 00 F4 22 00 00 00 00 00 FF 0F 2B [14:27:55]RasterBufferAndPrint [14:27:55]line Счет N : (1)1319451 [14:27:55]line ИНН: 02508201610067 [14:27:55]line Контрольно-Кассовый Чек [14:27:55]line ПРОДАЖА [14:27:55]line ТРК (МРК, ГНК) : 21 [14:27:55]line Товар: 2710194210 [14:27:55]line ДТ(л)-К-5 [14:27:55]line 8.270 * 72.60 [14:27:55]line = 600.40 [14:27:55]line НДС 12% НСП 1% [14:27:55]line > о реализуемом товаре [14:27:55]line ОКРУГЛЕНИЕ: -0.40 [14:27:55]line ИТОГО: 600.00 [14:27:55]line Внесено: 600.00 [14:27:55]line СДАЧА: 0.00 [14:27:55]line НСП 1% : 5.31 [14:27:55]line НДС 12% : 63.76 [14:27:55]line Наличными: 600.00 [14:27:55]line Безнал.: 0.00 [14:27:55]line Место: АЗС № 140 "Партнер Нефть" [14:27:55]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:27:55]line СНО: Общий режим [14:27:55]line Чек 161 14.07.2024 14:27 [14:27:55]line Смена: 463 ФФД: 1.0 [14:27:55]line ЗНМ: 0300000129 [14:27:55]line РНМ: 0000000000090858 [14:27:55]line Версия ККМ: 001 [14:27:55]line ФМ: 0000000000874899 [14:27:55]line ФД: 162849 [14:27:55]line ФПД: 64642944337929 [14:27:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T142755&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162849&fm=64642944337929&tin=02508201610067®Number=0000000000090858&sum=60000 [14:27:55]OFD Sender: Processing packet 162849 [packets to send 106, broken 105] [14:27:55]ProducePacketName [14:27:55]name=ofd_packets/00162849 [14:27:55]OFD Sender: To server: pG, [14:27:55]CommunicateWithHost lk.salyk.kg:30040 [14:27:55]ConnectInit lk.salyk.kg [14:27:55]written 0, free lines is 4095 [14:27:55]Connected sock=10 [14:27:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 15 5F 08 01 83 F5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 6B E0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 21 7C 02 00 35 04 06 00 3A CA DB BC 08 09 0F 47 F8 1D CA E0 96 1F [14:27:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8B 2B 47 00 1A 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 21 7C 02 00 F4 03 04 00 78 8C 93 66 B6 04 01 00 00 CA DA C7 43 F8 C0 9C B7 [14:27:56]CommunicateWithHost err = 0 [14:27:56]CheckOFDResponse [14:27:56]1017 (14) - 77093643461234 [14:27:56]1041 (16) - 0000000000874899 [14:27:56]1040 (4) - 162849 [14:27:56]1012 (4) - 14.07.2024 08:29 [14:27:56]1206 (1) - 0 [14:27:56]OFD Sender: Remove packet 162849 [14:27:56]ProducePacketName [14:27:56]name=ofd_packets/00162849 [14:27:56]NVStorageDeleteData [14:27:56]Write to MH i2c: 01 00 00 1F 23 42 [14:27:56]Write i2c OK [14:27:56]MH_I2C_Read... [14:27:56]Read from MH i2c: 01 [14:27:56]MH_I2C_Read... [14:27:56]Read from MH i2c: 01 07 00 [14:27:56]MH_I2C_Read... [14:27:56]Read from MH i2c: 01 07 00 1F 23 00 00 00 00 00 D7 0C 2C [14:27:56]RasterBufferAndPrint [14:27:56]line [14:27:56]line [14:27:56]line [14:27:56]line [14:27:56]line [14:27:56]written 0, free lines is 3293 [14:27:56]MH_Cut [14:27:56]Write to MH i2c: D1 01 00 26 23 01 1B [14:27:56]Write i2c OK [14:27:56]MH_I2C_Read... [14:27:56]Read from MH i2c: D1 [14:27:56]MH_I2C_Read... [14:27:56]Read from MH i2c: D1 01 00 [14:27:56]MH_I2C_Read... [14:27:56]Read from MH i2c: D1 01 00 26 23 00 1A [14:27:56]Write to MH i2c: 01 00 00 27 23 4A [14:27:56]Write i2c OK [14:27:56]MH_I2C_Read... [14:27:56]OFD Sender: No OFD packet to send [14:27:57]*** Cut start [14:27:57]*** Purtial cut [14:27:57]*** Stage 1: CUTSNS_PIN = 1 [14:27:57]Read from MH i2c: 01 [14:27:57]MH_I2C_Read... [14:27:57]*** Stop cut motor [14:27:57]*** Cut end [14:27:57]Read from MH i2c: 01 07 00 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: 01 07 00 27 23 00 00 00 00 00 FF 0F 5F [14:27:57]process_action close_receipt done [14:27:57]requested_data is exist [14:27:57]produce_requested_data [14:27:57]requested_item fm.sn is exist - process it [14:27:57]wFMCommunicate request_size=4 [14:27:57]MH_SAM_APDU [14:27:57]CAPDU: 80 11 00 00 [14:27:57]Write to MH i2c: E2 08 00 28 23 80 11 00 00 00 00 00 00 C5 [14:27:57]Write i2c OK [14:27:57]MH_I2C_Read... [14:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:57]Read from MH i2c: E2 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 17 00 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 17 00 28 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 25 [14:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:27:57]wFMCommunicate OK [14:27:57]requested_item fd.num is exist - process it [14:27:57]SAM_PROTO_GetFieldsCounters [14:27:57]wFMCommunicate request_size=4 [14:27:57]MH_SAM_APDU [14:27:57]CAPDU: 80 13 00 00 [14:27:57]Write to MH i2c: E2 08 00 29 23 80 13 00 00 00 00 00 00 C8 [14:27:57]Write i2c OK [14:27:57]MH_I2C_Read... [14:27:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:57]Read from MH i2c: E2 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 62 00 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 62 00 29 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 21 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [14:27:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 21 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:57]wFMCommunicate OK [14:27:57]SAM_PROTO_GetFieldsCounters done [14:27:57]requested_item shift.num is exist - process it [14:27:57]requested_item shift.opened is exist - process it [14:27:57]req_shift_opened [14:27:57]FM_GetShiftState [14:27:57]SAM_PROTO_GetShiftState [14:27:57]wFMCommunicate request_size=4 [14:27:57]MH_SAM_APDU [14:27:57]CAPDU: 80 13 01 00 [14:27:57]Write to MH i2c: E2 08 00 2A 23 80 13 01 00 00 00 00 00 CA [14:27:57]Write i2c OK [14:27:57]MH_I2C_Read... [14:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:57]Read from MH i2c: E2 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 0E 00 [14:27:57]MH_I2C_Read... [14:27:57]Read from MH i2c: E2 0E 00 2A 23 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 00 [14:27:57]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:27:57]wFMCommunicate OK [14:27:57]SAM_PROTO_GetShiftState done [14:27:57]FM_GetShiftState done [14:27:57]req_shift_opened done [14:27:57]requested_item shift.open_date is exist - process it [14:27:57]req_shift_open_date [14:27:57]req_shift_open_date done [14:27:57]produce_requested_data done [14:27:57]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162849,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:27:57]process_action_free close_receipt [14:27:57]json_value_free [14:27:57]json_value_free done [14:27:57]process_json_proto returns [14:27:57]Send response to host [14:27:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162849,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:27:57]free response buf [14:27:57]execute_script done [14:27:57]execute_script returns [14:27:57]free content buf [14:27:57]Sock 7.Close socket [14:27:57]Sock 7.Thread stoped [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [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]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:41]accept exits with 9 [14:34:41]New connection [14:34:41]New thread 3066879332 created [14:34:41]Thread 3066735972 joined [14:34:41]Waiting for new connection... [14:34:41] Sock 9.Parse request [14:34:41]Sock 9.Check first char [14:34:41]Sock 9.First char is OK [14:34:41]request: POST /json_proto HTTP/1.0 [14:34:41]Method: POST [14:34:41]URL: /json_proto [14:34:41]Method is POST - this is cgi request [14:34:41]url: /json_proto [14:34:41]query_string will be loaded in cgi processing [14:34:41]execute_cgi json_proto POST (null) [14:34:41]execute_cgi path=json_proto method=POST [14:34:41]POST find Content-Length [14:34:41]Host: 172.17.39.67:8080 [14:34:41]Content-Length: 678 [14:34:41]Content-Type: application/json [14:34:41] [14:34:41]POST finish read [14:34:41]Found Content-Length = 678 [14:34:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:34:41]execute_script... [14:34:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:34:41]POST & json_proto [14:34:41]process_json_proto [14:34:41]json parsed OK: [14:34:41]protocol is kg_v1.0 [14:34:41]action value=close_receipt [14:34:41]process_action close_receipt [14:34:41]cmd_close_receipt [14:34:41]MH_GetDate [14:34:41]Write to MH i2c: F0 00 00 2B 23 3D [14:34:41]Write i2c OK [14:34:41]MH_I2C_Read... [14:34:41]Read from MH i2c: F0 [14:34:41]MH_I2C_Read... [14:34:41]Read from MH i2c: F0 09 00 [14:34:41]MH_I2C_Read... [14:34:41]Read from MH i2c: F0 09 00 2B 23 00 02 E2 93 66 B6 85 93 66 57 [14:34:41]GetLastDocTimeStamp 1720967275 [14:34:41]current date 1720967682 [14:34:41]FM_GetShiftState [14:34:41]SAM_PROTO_GetShiftState [14:34:41]wFMCommunicate request_size=4 [14:34:41]MH_SAM_APDU [14:34:41]CAPDU: 80 13 01 00 [14:34:41]Write to MH i2c: E2 08 00 2C 23 80 13 01 00 00 00 00 00 CC [14:34:41]Write i2c OK [14:34:41]MH_I2C_Read... [14:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:41]Read from MH i2c: E2 [14:34:41]MH_I2C_Read... [14:34:41]Read from MH i2c: E2 0E 00 [14:34:41]MH_I2C_Read... [14:34:41]Read from MH i2c: E2 0E 00 2C 23 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 02 [14:34:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:34:41]wFMCommunicate OK [14:34:41]SAM_PROTO_GetShiftState done [14:34:41]FM_GetShiftState done [14:34:41]opened in 1720915483 [14:34:41]opened+sec_in_day 1721001883 [14:34:41]quantity*price = 50056 [14:34:41]sum+1 = 50058 [14:34:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 162 14.07.2024 14:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162850 ФПД: 248375774196724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143442&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162850&fm=248375774196724&tin=02508201610067®Number=0000000000090858&sum=50000 [14:34:42]StoreToDocumentArchive [14:34:42]shift 463 fd 162850 [14:34:42]save to /storage/0463/doc_00162850 [14:34:42]save last doc name /storage/0463/doc_00162850 to /storage/kkm_last_doc_name [14:34:42]save OK [14:34:42]Clear old archive folders... [14:34:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:42]tlvbuf is 01220130 [14:34:42]SAM_PROTO_ClearQueue [14:34:42]wFMCommunicate request_size=4 [14:34:42]MH_SAM_APDU [14:34:42]CAPDU: 80 09 00 00 [14:34:42]Write to MH i2c: E2 08 00 39 23 80 09 00 00 00 00 00 00 CE [14:34:42]Write i2c OK [14:34:42]MH_I2C_Read... [14:34:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:42]Read from MH i2c: E2 [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: E2 03 00 [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: E2 03 00 39 23 00 90 00 D0 [14:34:42]RAPDU: 90 00 [14:34:42]wFMCommunicate OK [14:34:42]SAM_PROTO_ClearQueue done [14:34:42]KKMCreateOFDPacket [14:34:42]OFDProtocolAddRootSTLVToBuf [14:34:42]FM_MakeSignedData [14:34:42]FM_MakeSignedData [14:34:42]SAM_PROTO_SignData [14:34:42]wFMCommunicate request_size=4 [14:34:42]MH_SAM_APDU [14:34:42]CAPDU: 80 0D 01 02 [14:34:42]Write to MH i2c: E2 08 00 3A 23 80 0D 01 02 00 00 00 00 D6 [14:34:42]Write i2c OK [14:34:42]MH_I2C_Read... [14:34:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:42]Read from MH i2c: E2 [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: E2 03 00 [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: E2 03 00 3A 23 00 90 00 D1 [14:34:42]RAPDU: 90 00 [14:34:42]wFMCommunicate OK [14:34:42]wFMCommunicate request_size=255 [14:34:42]MH_SAM_APDU [14:34:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 A2 00 00 00 F4 03 04 00 02 E2 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 22 7C 02 00 35 04 06 00 E1 [14:34:42]Write to MH i2c: E2 02 01 3B 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 A2 00 00 00 F4 03 04 00 02 E2 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 22 7C 02 00 35 04 06 00 E1 00 00 62 [14:34:42]Write i2c OK [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: E2 [14:34:42]MH_I2C_Read... [14:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:42]Read from MH i2c: E2 03 00 [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: E2 03 00 3B 23 00 90 00 D2 [14:34:42]RAPDU: 90 00 [14:34:42]wFMCommunicate OK [14:34:42]wFMCommunicate request_size=10 [14:34:42]MH_SAM_APDU [14:34:42]CAPDU: 80 0D 02 02 05 E5 7D CA B3 F4 [14:34:42]Write to MH i2c: E2 0D 00 3C 23 80 0D 02 02 05 00 E5 7D CA B3 F4 00 00 B6 [14:34:42]Write i2c OK [14:34:42]MH_I2C_Read... [14:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:42]Read from MH i2c: E2 [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: E2 03 00 [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: E2 03 00 3C 23 00 90 00 D3 [14:34:42]RAPDU: 90 00 [14:34:42]wFMCommunicate OK [14:34:42]wFMCommunicate request_size=4 [14:34:42]MH_SAM_APDU [14:34:42]CAPDU: 80 0D 03 02 [14:34:42]Write to MH i2c: E2 08 00 3D 23 80 0D 03 02 00 00 00 00 DB [14:34:42]Write i2c OK [14:34:42]MH_I2C_Read... [14:34:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:42]Read from MH i2c: E2 [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: E2 0B 00 [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: E2 0B 00 3D 23 00 A0 30 1B 6E 59 91 E8 17 90 00 1E [14:34:42]RAPDU: A0 30 1B 6E 59 91 E8 17 90 00 [14:34:42]wFMCommunicate OK [14:34:42]SAM_PROTO_SignData done [14:34:42]FM_MakeSignedData done [14:34:42]CreateOFDProtocolMessage [14:34:42]wFMCommunicate request_size=4 [14:34:42]MH_SAM_APDU [14:34:42]CAPDU: 80 11 00 00 [14:34:42]Write to MH i2c: E2 08 00 3E 23 80 11 00 00 00 00 00 00 DB [14:34:42]Write i2c OK [14:34:42]MH_I2C_Read... [14:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:42]Read from MH i2c: E2 [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: E2 17 00 [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: E2 17 00 3E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3B [14:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:34:42]wFMCommunicate OK [14:34:42]CreateOFDProtocolMessage done [14:34:42]OFDSenderStorePacket 162850 [14:34:42]StoreOFDPacket docnum=162850 [14:34:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 54 73 07 01 FD DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 A2 00 00 00 F4 03 04 00 02 E2 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 22 7C 02 00 35 04 06 00 E1 E5 7D CA B3 F4 A0 30 1B 6E 59 91 E8 17 [14:34:42]CheckFolder [14:34:42]dirname=/storage/ofd_packets [14:34:42]CheckFolder done [14:34:42]ProducePacketName [14:34:42]name=ofd_packets/00162850 [14:34:42]NVStorageSaveData ofd_packets/00162850 [14:34:42]File name is /storage/ofd_packets/00162850 [14:34:42]Write 301 bytes [14:34:42]NVStorageSaveData done [14:34:42]OFDSenderStorePacket done [14:34:42]KKMCreateOFDPacket done [14:34:42]NVStorageSaveData kkm_last_timestamp [14:34:42]File name is /storage/kkm_last_timestamp [14:34:42]Write 4 bytes [14:34:42]NVStorageSaveData done [14:34:42]ExternCall_PrintAddStr [14:34:42]wPrintStart [14:34:42]Write to MH i2c: 01 00 00 3F 23 62 [14:34:42]Write i2c OK [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: 01 [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: 01 07 00 [14:34:42]MH_I2C_Read... [14:34:42]Read from MH i2c: 01 07 00 3F 23 00 00 00 00 00 FF 0F 77 [14:34:42]RasterBufferAndPrint [14:34:42]line Счет N : (1)1319452 [14:34:42]line ИНН: 02508201610067 [14:34:42]line Контрольно-Кассовый Чек [14:34:42]line ПРОДАЖА [14:34:42]line ТРК (МРК, ГНК) : 53 [14:34:42]line Товар: 2710124130 [14:34:42]line Аи-92-К-5 [14:34:42]line 7.550 * 66.30 [14:34:42]line = 500.57 [14:34:42]line НДС 12% НСП 1% [14:34:42]line > о реализуемом товаре [14:34:42]line ОКРУГЛЕНИЕ: -0.57 [14:34:42]line ИТОГО: 500.00 [14:34:42]line Внесено: 500.00 [14:34:42]line СДАЧА: 0.00 [14:34:42]line НСП 1% : 4.43 [14:34:42]line НДС 12% : 53.16 [14:34:42]line Наличными: 500.00 [14:34:42]line Безнал.: 0.00 [14:34:42]line Место: АЗС № 140 "Партнер Нефть" [14:34:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:34:42]line СНО: Общий режим [14:34:42]line Чек 162 14.07.2024 14:34 [14:34:42]line Смена: 463 ФФД: 1.0 [14:34:42]line ЗНМ: 0300000129 [14:34:42]line РНМ: 0000000000090858 [14:34:42]line Версия ККМ: 001 [14:34:42]line ФМ: 0000000000874899 [14:34:42]line ФД: 162850 [14:34:42]line ФПД: 248375774196724 [14:34:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T143442&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162850&fm=248375774196724&tin=02508201610067®Number=0000000000090858&sum=50000 [14:34:43]OFD Sender: Processing packet 162850 [packets to send 106, broken 105] [14:34:43]ProducePacketName [14:34:43]name=ofd_packets/00162850 [14:34:43]OFD Sender: To server: pG, [14:34:43]CommunicateWithHost lk.salyk.kg:30040 [14:34:43]ConnectInit lk.salyk.kg [14:34:43]written 0, free lines is 4095 [14:34:43]Connected sock=10 [14:34:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 54 73 07 01 FD DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 A2 00 00 00 F4 03 04 00 02 E2 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 22 7C 02 00 35 04 06 00 E1 E5 7D CA B3 F4 A0 30 1B 6E 59 91 E8 17 [14:34:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4B 48 47 00 4D 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 22 7C 02 00 F4 03 04 00 10 8E 93 66 B6 04 01 00 00 58 2A 0C DB 73 21 6C 32 [14:34:43]CommunicateWithHost err = 0 [14:34:43]CheckOFDResponse [14:34:43]1017 (14) - 77093643461234 [14:34:43]1041 (16) - 0000000000874899 [14:34:43]1040 (4) - 162850 [14:34:43]1012 (4) - 14.07.2024 08:36 [14:34:43]1206 (1) - 0 [14:34:43]OFD Sender: Remove packet 162850 [14:34:43]ProducePacketName [14:34:43]name=ofd_packets/00162850 [14:34:43]NVStorageDeleteData [14:34:43]Write to MH i2c: 01 00 00 6A 23 8D [14:34:43]Write i2c OK [14:34:43]MH_I2C_Read... [14:34:43]Read from MH i2c: 01 [14:34:43]MH_I2C_Read... [14:34:43]Read from MH i2c: 01 07 00 [14:34:43]MH_I2C_Read... [14:34:43]Read from MH i2c: 01 07 00 6A 23 00 00 00 00 00 02 0D A3 [14:34:43]RasterBufferAndPrint [14:34:43]line [14:34:43]line [14:34:43]line [14:34:43]line [14:34:43]line [14:34:43]written 0, free lines is 3336 [14:34:43]MH_Cut [14:34:43]Write to MH i2c: D1 01 00 71 23 01 66 [14:34:43]Write i2c OK [14:34:43]MH_I2C_Read... [14:34:43]Read from MH i2c: D1 [14:34:43]MH_I2C_Read... [14:34:43]Read from MH i2c: D1 01 00 [14:34:43]MH_I2C_Read... [14:34:43]Read from MH i2c: D1 01 00 71 23 00 65 [14:34:43]Write to MH i2c: 01 00 00 72 23 95 [14:34:43]Write i2c OK [14:34:43]MH_I2C_Read... [14:34:44]OFD Sender: No OFD packet to send [14:34:44]*** Cut start [14:34:44]*** Purtial cut [14:34:44]*** CUTSNS_PIN = 0 [14:34:44]*** Stage 1: CUTSNS_PIN = 1 [14:34:46]Read from MH i2c: 01 [14:34:46]MH_I2C_Read... [14:34:46]*** Stop cut motor [14:34:46]*** Cut end [14:34:46]Read from MH i2c: 01 07 00 [14:34:46]MH_I2C_Read... [14:34:46]Read from MH i2c: 01 07 00 72 23 00 00 00 00 00 FF 0F AA [14:34:46]process_action close_receipt done [14:34:46]requested_data is exist [14:34:46]produce_requested_data [14:34:46]requested_item fm.sn is exist - process it [14:34:46]wFMCommunicate request_size=4 [14:34:46]MH_SAM_APDU [14:34:46]CAPDU: 80 11 00 00 [14:34:46]Write to MH i2c: E2 08 00 73 23 80 11 00 00 00 00 00 00 10 [14:34:46]Write i2c OK [14:34:46]MH_I2C_Read... [14:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:46]Read from MH i2c: E2 [14:34:46]MH_I2C_Read... [14:34:46]Read from MH i2c: E2 17 00 [14:34:46]MH_I2C_Read... [14:34:46]Read from MH i2c: E2 17 00 73 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 70 [14:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:34:46]wFMCommunicate OK [14:34:46]requested_item fd.num is exist - process it [14:34:46]SAM_PROTO_GetFieldsCounters [14:34:46]wFMCommunicate request_size=4 [14:34:46]MH_SAM_APDU [14:34:46]CAPDU: 80 13 00 00 [14:34:46]Write to MH i2c: E2 08 00 74 23 80 13 00 00 00 00 00 00 13 [14:34:46]Write i2c OK [14:34:46]MH_I2C_Read... [14:34:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:46]Read from MH i2c: E2 [14:34:46]MH_I2C_Read... [14:34:46]Read from MH i2c: E2 62 00 [14:34:46]MH_I2C_Read... [14:34:46]Read from MH i2c: E2 62 00 74 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 22 7C 02 00 0E 04 04 00 CF 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 9C [14:34:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 22 7C 02 00 0E 04 04 00 CF 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 [14:34:46]wFMCommunicate OK [14:34:46]SAM_PROTO_GetFieldsCounters done [14:34:46]requested_item shift.num is exist - process it [14:34:46]requested_item shift.opened is exist - process it [14:34:46]req_shift_opened [14:34:46]FM_GetShiftState [14:34:46]SAM_PROTO_GetShiftState [14:34:46]wFMCommunicate request_size=4 [14:34:46]MH_SAM_APDU [14:34:46]CAPDU: 80 13 01 00 [14:34:46]Write to MH i2c: E2 08 00 75 23 80 13 01 00 00 00 00 00 15 [14:34:46]Write i2c OK [14:34:46]MH_I2C_Read... [14:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:46]Read from MH i2c: E2 [14:34:46]MH_I2C_Read... [14:34:46]Read from MH i2c: E2 0E 00 [14:34:46]MH_I2C_Read... [14:34:46]Read from MH i2c: E2 0E 00 75 23 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4B [14:34:46]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:34:46]wFMCommunicate OK [14:34:46]SAM_PROTO_GetShiftState done [14:34:46]FM_GetShiftState done [14:34:46]req_shift_opened done [14:34:46]requested_item shift.open_date is exist - process it [14:34:46]req_shift_open_date [14:34:46]req_shift_open_date done [14:34:46]produce_requested_data done [14:34:46]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162850,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:34:46]process_action_free close_receipt [14:34:46]json_value_free [14:34:46]json_value_free done [14:34:46]process_json_proto returns [14:34:46]Send response to host [14:34:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162850,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:34:46]free response buf [14:34:46]execute_script done [14:34:46]execute_script returns [14:34:46]free content buf [14:34:46]Sock 9.Close socket [14:34:46]Sock 9.Thread stoped [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]accept exits with 7 [14:40:14]New connection [14:40:14]New thread 3066735972 created [14:40:14]Thread 3066879332 joined [14:40:14]Waiting for new connection... [14:40:14] Sock 7.Parse request [14:40:14]Sock 7.Check first char [14:40:14]Sock 7.First char is OK [14:40:14]request: POST /json_proto HTTP/1.0 [14:40:14]Method: POST [14:40:14]URL: /json_proto [14:40:14]Method is POST - this is cgi request [14:40:14]url: /json_proto [14:40:14]query_string will be loaded in cgi processing [14:40:14]execute_cgi json_proto POST (null) [14:40:14]execute_cgi path=json_proto method=POST [14:40:14]POST find Content-Length [14:40:14]Host: 172.17.39.67:8080 [14:40:14]Content-Length: 678 [14:40:14]Content-Type: application/json [14:40:14] [14:40:14]POST finish read [14:40:14]Found Content-Length = 678 [14:40:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:40:14]execute_script... [14:40: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)1319453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:40:14]POST & json_proto [14:40:14]process_json_proto [14:40:14]json parsed OK: [14:40:14]protocol is kg_v1.0 [14:40:14]action value=close_receipt [14:40:14]process_action close_receipt [14:40:14]cmd_close_receipt [14:40:14]MH_GetDate [14:40:14]Write to MH i2c: F0 00 00 76 23 88 [14:40:14]Write i2c OK [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: F0 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: F0 09 00 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: F0 09 00 76 23 00 4F E3 93 66 B6 85 93 66 F0 [14:40:14]GetLastDocTimeStamp 1720967682 [14:40:14]current date 1720968015 [14:40:14]FM_GetShiftState [14:40:14]SAM_PROTO_GetShiftState [14:40:14]wFMCommunicate request_size=4 [14:40:14]MH_SAM_APDU [14:40:14]CAPDU: 80 13 01 00 [14:40:14]Write to MH i2c: E2 08 00 77 23 80 13 01 00 00 00 00 00 17 [14:40:14]Write i2c OK [14:40:14]MH_I2C_Read... [14:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:14]Read from MH i2c: E2 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 0E 00 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 0E 00 77 23 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4D [14:40:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:40:14]wFMCommunicate OK [14:40:14]SAM_PROTO_GetShiftState done [14:40:14]FM_GetShiftState done [14:40:14]opened in 1720915483 [14:40:14]opened+sec_in_day 1721001883 [14:40:14]quantity*price = 50056 [14:40:14]sum+1 = 50058 [14:40:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 163 14.07.2024 14:40 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162851 ФПД: 164360839822383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T144015&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162851&fm=164360839822383&tin=02508201610067®Number=0000000000090858&sum=50000 [14:40:15]StoreToDocumentArchive [14:40:15]shift 463 fd 162851 [14:40:15]save to /storage/0463/doc_00162851 [14:40:15]save last doc name /storage/0463/doc_00162851 to /storage/kkm_last_doc_name [14:40:15]save OK [14:40:15]Clear old archive folders... [14:40:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:15]tlvbuf is 0130C450 [14:40:15]SAM_PROTO_ClearQueue [14:40:15]wFMCommunicate request_size=4 [14:40:15]MH_SAM_APDU [14:40:15]CAPDU: 80 09 00 00 [14:40:15]Write to MH i2c: E2 08 00 84 23 80 09 00 00 00 00 00 00 19 [14:40:15]Write i2c OK [14:40:15]MH_I2C_Read... [14:40:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:15]Read from MH i2c: E2 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 03 00 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 03 00 84 23 00 90 00 1B [14:40:15]RAPDU: 90 00 [14:40:15]wFMCommunicate OK [14:40:15]SAM_PROTO_ClearQueue done [14:40:15]KKMCreateOFDPacket [14:40:15]OFDProtocolAddRootSTLVToBuf [14:40:15]FM_MakeSignedData [14:40:15]FM_MakeSignedData [14:40:15]SAM_PROTO_SignData [14:40:15]wFMCommunicate request_size=4 [14:40:15]MH_SAM_APDU [14:40:15]CAPDU: 80 0D 01 02 [14:40:15]Write to MH i2c: E2 08 00 85 23 80 0D 01 02 00 00 00 00 21 [14:40:15]Write i2c OK [14:40:15]MH_I2C_Read... [14:40:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:15]Read from MH i2c: E2 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 03 00 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 03 00 85 23 00 90 00 1C [14:40:15]RAPDU: 90 00 [14:40:15]wFMCommunicate OK [14:40:15]wFMCommunicate request_size=255 [14:40:15]MH_SAM_APDU [14:40: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 A3 00 00 00 F4 03 04 00 4F E3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 23 7C 02 00 35 04 06 00 95 [14:40:15]Write to MH i2c: E2 02 01 86 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 A3 00 00 00 F4 03 04 00 4F E3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 23 7C 02 00 35 04 06 00 95 00 00 B1 [14:40:15]Write i2c OK [14:40:15]MH_I2C_Read... [14:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:15]Read from MH i2c: E2 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 03 00 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 03 00 86 23 00 90 00 1D [14:40:15]RAPDU: 90 00 [14:40:15]wFMCommunicate OK [14:40:15]wFMCommunicate request_size=10 [14:40:15]MH_SAM_APDU [14:40:15]CAPDU: 80 0D 02 02 05 7C 3D 78 FC 2F [14:40:15]Write to MH i2c: E2 0D 00 87 23 80 0D 02 02 05 00 7C 3D 78 FC 2F 00 00 8A [14:40:15]Write i2c OK [14:40:15]MH_I2C_Read... [14:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:15]Read from MH i2c: E2 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 03 00 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 03 00 87 23 00 90 00 1E [14:40:15]RAPDU: 90 00 [14:40:15]wFMCommunicate OK [14:40:15]wFMCommunicate request_size=4 [14:40:15]MH_SAM_APDU [14:40:15]CAPDU: 80 0D 03 02 [14:40:15]Write to MH i2c: E2 08 00 88 23 80 0D 03 02 00 00 00 00 26 [14:40:15]Write i2c OK [14:40:15]MH_I2C_Read... [14:40:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:15]Read from MH i2c: E2 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 0B 00 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 0B 00 88 23 00 FF B8 55 7F 13 A7 BC 56 90 00 7E [14:40:15]RAPDU: FF B8 55 7F 13 A7 BC 56 90 00 [14:40:15]wFMCommunicate OK [14:40:15]SAM_PROTO_SignData done [14:40:15]FM_MakeSignedData done [14:40:15]CreateOFDProtocolMessage [14:40:15]wFMCommunicate request_size=4 [14:40:15]MH_SAM_APDU [14:40:15]CAPDU: 80 11 00 00 [14:40:15]Write to MH i2c: E2 08 00 89 23 80 11 00 00 00 00 00 00 26 [14:40:15]Write i2c OK [14:40:15]MH_I2C_Read... [14:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:15]Read from MH i2c: E2 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 17 00 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: E2 17 00 89 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 86 [14:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:40:15]wFMCommunicate OK [14:40:15]CreateOFDProtocolMessage done [14:40:15]OFDSenderStorePacket 162851 [14:40:15]StoreOFDPacket docnum=162851 [14:40:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3E 54 07 01 C5 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 A3 00 00 00 F4 03 04 00 4F E3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 23 7C 02 00 35 04 06 00 95 7C 3D 78 FC 2F FF B8 55 7F 13 A7 BC 56 [14:40:15]CheckFolder [14:40:15]dirname=/storage/ofd_packets [14:40:15]CheckFolder done [14:40:15]ProducePacketName [14:40:15]name=ofd_packets/00162851 [14:40:15]NVStorageSaveData ofd_packets/00162851 [14:40:15]File name is /storage/ofd_packets/00162851 [14:40:15]Write 301 bytes [14:40:15]NVStorageSaveData done [14:40:15]OFDSenderStorePacket done [14:40:15]KKMCreateOFDPacket done [14:40:15]NVStorageSaveData kkm_last_timestamp [14:40:15]File name is /storage/kkm_last_timestamp [14:40:15]Write 4 bytes [14:40:15]NVStorageSaveData done [14:40:15]ExternCall_PrintAddStr [14:40:15]wPrintStart [14:40:15]Write to MH i2c: 01 00 00 8A 23 AD [14:40:15]Write i2c OK [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: 01 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: 01 07 00 [14:40:15]MH_I2C_Read... [14:40:15]Read from MH i2c: 01 07 00 8A 23 00 00 00 00 00 FF 0F C2 [14:40:15]RasterBufferAndPrint [14:40:15]line Счет N : (1)1319453 [14:40:15]line ИНН: 02508201610067 [14:40:15]line Контрольно-Кассовый Чек [14:40:15]line ПРОДАЖА [14:40:15]line ТРК (МРК, ГНК) : 63 [14:40:15]line Товар: 2710124130 [14:40:15]line Аи-92-К-5 [14:40:15]line 7.550 * 66.30 [14:40:15]line = 500.57 [14:40:15]line НДС 12% НСП 1% [14:40:15]line > о реализуемом товаре [14:40:15]line ОКРУГЛЕНИЕ: -0.57 [14:40:15]line ИТОГО: 500.00 [14:40:15]line Внесено: 500.00 [14:40:15]line СДАЧА: 0.00 [14:40:15]line НСП 1% : 4.43 [14:40:15]line НДС 12% : 53.16 [14:40:15]line Наличными: 500.00 [14:40:15]line Безнал.: 0.00 [14:40:15]line Место: АЗС № 140 "Партнер Нефть" [14:40:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:40:15]line СНО: Общий режим [14:40:15]line Чек 163 14.07.2024 14:40 [14:40:15]line Смена: 463 ФФД: 1.0 [14:40:15]line ЗНМ: 0300000129 [14:40:15]line РНМ: 0000000000090858 [14:40:15]line Версия ККМ: 001 [14:40:15]line ФМ: 0000000000874899 [14:40:15]line ФД: 162851 [14:40:15]line ФПД: 164360839822383 [14:40:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T144015&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162851&fm=164360839822383&tin=02508201610067®Number=0000000000090858&sum=50000 [14:40:16]OFD Sender: Processing packet 162851 [packets to send 106, broken 105] [14:40:16]ProducePacketName [14:40:16]name=ofd_packets/00162851 [14:40:16]OFD Sender: To server: pG, [14:40:16]CommunicateWithHost lk.salyk.kg:30040 [14:40:16]ConnectInit lk.salyk.kg [14:40:16]written 0, free lines is 4095 [14:40:16]Connected sock=9 [14:40:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3E 54 07 01 C5 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 A3 00 00 00 F4 03 04 00 4F E3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 23 7C 02 00 35 04 06 00 95 7C 3D 78 FC 2F FF B8 55 7F 13 A7 BC 56 [14:40:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 58 E0 47 00 64 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 23 7C 02 00 F4 03 04 00 5C 8F 93 66 B6 04 01 00 00 59 CF 2B BA 8B BE BB 76 [14:40:16]CommunicateWithHost err = 0 [14:40:16]CheckOFDResponse [14:40:16]1017 (14) - 77093643461234 [14:40:16]1041 (16) - 0000000000874899 [14:40:16]1040 (4) - 162851 [14:40:16]1012 (4) - 14.07.2024 08:42 [14:40:16]1206 (1) - 0 [14:40:16]OFD Sender: Remove packet 162851 [14:40:16]ProducePacketName [14:40:16]name=ofd_packets/00162851 [14:40:16]NVStorageDeleteData [14:40:16]Write to MH i2c: 01 00 00 B5 23 D8 [14:40:16]Write i2c OK [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: 01 [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: 01 07 00 [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: 01 07 00 B5 23 00 00 00 00 00 F1 0C DC [14:40:16]RasterBufferAndPrint [14:40:16]line [14:40:16]line [14:40:16]line [14:40:16]line [14:40:16]line [14:40:16]written 0, free lines is 3319 [14:40:16]MH_Cut [14:40:16]Write to MH i2c: D1 01 00 BC 23 01 B1 [14:40:16]Write i2c OK [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: D1 [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: D1 01 00 [14:40:16]MH_I2C_Read... [14:40:16]Read from MH i2c: D1 01 00 BC 23 00 B0 [14:40:16]Write to MH i2c: 01 00 00 BD 23 E0 [14:40:16]Write i2c OK [14:40:16]MH_I2C_Read... [14:40:16]OFD Sender: No OFD packet to send [14:40:17]*** Cut start [14:40:17]*** Purtial cut [14:40:17]*** Stage 1: CUTSNS_PIN = 1 [14:40:17]Read from MH i2c: 01 [14:40:17]MH_I2C_Read... [14:40:17]*** Stop cut motor [14:40:17]*** Cut end [14:40:17]Read from MH i2c: 01 07 00 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: 01 07 00 BD 23 00 00 00 00 00 FF 0F F5 [14:40:17]process_action close_receipt done [14:40:17]requested_data is exist [14:40:17]produce_requested_data [14:40:17]requested_item fm.sn is exist - process it [14:40:17]wFMCommunicate request_size=4 [14:40:17]MH_SAM_APDU [14:40:17]CAPDU: 80 11 00 00 [14:40:17]Write to MH i2c: E2 08 00 BE 23 80 11 00 00 00 00 00 00 5B [14:40:17]Write i2c OK [14:40:17]MH_I2C_Read... [14:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:17]Read from MH i2c: E2 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: E2 17 00 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: E2 17 00 BE 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BB [14:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:40:17]wFMCommunicate OK [14:40:17]requested_item fd.num is exist - process it [14:40:17]SAM_PROTO_GetFieldsCounters [14:40:17]wFMCommunicate request_size=4 [14:40:17]MH_SAM_APDU [14:40:17]CAPDU: 80 13 00 00 [14:40:17]Write to MH i2c: E2 08 00 BF 23 80 13 00 00 00 00 00 00 5E [14:40:17]Write i2c OK [14:40:17]MH_I2C_Read... [14:40:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:17]Read from MH i2c: E2 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: E2 62 00 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: E2 62 00 BF 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 23 7C 02 00 0E 04 04 00 CF 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 EB [14:40:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 23 7C 02 00 0E 04 04 00 CF 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 [14:40:17]wFMCommunicate OK [14:40:17]SAM_PROTO_GetFieldsCounters done [14:40:17]requested_item shift.num is exist - process it [14:40:17]requested_item shift.opened is exist - process it [14:40:17]req_shift_opened [14:40:17]FM_GetShiftState [14:40:17]SAM_PROTO_GetShiftState [14:40:17]wFMCommunicate request_size=4 [14:40:17]MH_SAM_APDU [14:40:17]CAPDU: 80 13 01 00 [14:40:17]Write to MH i2c: E2 08 00 C0 23 80 13 01 00 00 00 00 00 60 [14:40:17]Write i2c OK [14:40:17]MH_I2C_Read... [14:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:17]Read from MH i2c: E2 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: E2 0E 00 [14:40:17]MH_I2C_Read... [14:40:17]Read from MH i2c: E2 0E 00 C0 23 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 96 [14:40:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:40:17]wFMCommunicate OK [14:40:17]SAM_PROTO_GetShiftState done [14:40:17]FM_GetShiftState done [14:40:17]req_shift_opened done [14:40:17]requested_item shift.open_date is exist - process it [14:40:17]req_shift_open_date [14:40:17]req_shift_open_date done [14:40:17]produce_requested_data done [14:40:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162851,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:40:17]process_action_free close_receipt [14:40:17]json_value_free [14:40:17]json_value_free done [14:40:17]process_json_proto returns [14:40:17]Send response to host [14:40:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162851,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:40:17]free response buf [14:40:17]execute_script done [14:40:17]execute_script returns [14:40:17]free content buf [14:40:17]Sock 7.Close socket [14:40:17]Sock 7.Thread stoped [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:06]accept exits with 10 [14:47:06]New connection [14:47:06]New thread 3066879332 created [14:47:06]Thread 3066735972 joined [14:47:06]Waiting for new connection... [14:47:06] Sock 10.Parse request [14:47:06]Sock 10.Check first char [14:47:06]Sock 10.First char is OK [14:47:06]request: POST /json_proto HTTP/1.0 [14:47:06]Method: POST [14:47:06]URL: /json_proto [14:47:06]Method is POST - this is cgi request [14:47:06]url: /json_proto [14:47:06]query_string will be loaded in cgi processing [14:47:06]execute_cgi json_proto POST (null) [14:47:06]execute_cgi path=json_proto method=POST [14:47:06]POST find Content-Length [14:47:06]Host: 172.17.39.67:8080 [14:47:06]Content-Length: 678 [14:47:06]Content-Type: application/json [14:47:06] [14:47:06]POST finish read [14:47:06]Found Content-Length = 678 [14:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 8.070, "sum" : 600.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:06]execute_script... [14:47: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)1319455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 8.070, "sum" : 600.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:06]POST & json_proto [14:47:06]process_json_proto [14:47:06]json parsed OK: [14:47:06]protocol is kg_v1.0 [14:47:06]action value=close_receipt [14:47:06]process_action close_receipt [14:47:06]cmd_close_receipt [14:47:06]MH_GetDate [14:47:06]Write to MH i2c: F0 00 00 C1 23 D3 [14:47:06]Write i2c OK [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: F0 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: F0 09 00 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: F0 09 00 C1 23 00 EC E4 93 66 B6 85 93 66 D9 [14:47:06]GetLastDocTimeStamp 1720968015 [14:47:06]current date 1720968428 [14:47:06]FM_GetShiftState [14:47:06]SAM_PROTO_GetShiftState [14:47:06]wFMCommunicate request_size=4 [14:47:06]MH_SAM_APDU [14:47:06]CAPDU: 80 13 01 00 [14:47:06]Write to MH i2c: E2 08 00 C2 23 80 13 01 00 00 00 00 00 62 [14:47:06]Write i2c OK [14:47:06]MH_I2C_Read... [14:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:06]Read from MH i2c: E2 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: E2 0E 00 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: E2 0E 00 C2 23 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 98 [14:47:06]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:47:06]wFMCommunicate OK [14:47:06]SAM_PROTO_GetShiftState done [14:47:06]FM_GetShiftState done [14:47:06]opened in 1720915483 [14:47:06]opened+sec_in_day 1721001883 [14:47:06]quantity*price = 60040 [14:47:06]sum+1 = 60042 [14:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 164 14.07.2024 14:47 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162852 ФПД: 102795854464639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T144708&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162852&fm=102795854464639&tin=02508201610067®Number=0000000000090858&sum=60000 [14:47:08]StoreToDocumentArchive [14:47:08]shift 463 fd 162852 [14:47:08]save to /storage/0463/doc_00162852 [14:47:08]save last doc name /storage/0463/doc_00162852 to /storage/kkm_last_doc_name [14:47:08]save OK [14:47:08]Clear old archive folders... [14:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:08]tlvbuf is 01343C70 [14:47:08]SAM_PROTO_ClearQueue [14:47:08]wFMCommunicate request_size=4 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 09 00 00 [14:47:08]Write to MH i2c: E2 08 00 CF 23 80 09 00 00 00 00 00 00 64 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 CF 23 00 90 00 66 [14:47:08]RAPDU: 90 00 [14:47:08]wFMCommunicate OK [14:47:08]SAM_PROTO_ClearQueue done [14:47:08]KKMCreateOFDPacket [14:47:08]OFDProtocolAddRootSTLVToBuf [14:47:08]FM_MakeSignedData [14:47:08]FM_MakeSignedData [14:47:08]SAM_PROTO_SignData [14:47:08]wFMCommunicate request_size=4 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 0D 01 02 [14:47:08]Write to MH i2c: E2 08 00 D0 23 80 0D 01 02 00 00 00 00 6C [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 D0 23 00 90 00 67 [14:47:08]RAPDU: 90 00 [14:47:08]wFMCommunicate OK [14:47:08]wFMCommunicate request_size=255 [14:47:08]MH_SAM_APDU [14:47: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 86 1F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 89 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 EC E4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 24 7C 02 00 35 04 06 00 5D [14:47:08]Write to MH i2c: E2 02 01 D1 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 1F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 89 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 EC E4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 24 7C 02 00 35 04 06 00 5D 00 00 B6 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 D1 23 00 90 00 68 [14:47:08]RAPDU: 90 00 [14:47:08]wFMCommunicate OK [14:47:08]wFMCommunicate request_size=10 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 0D 02 02 05 7E 06 63 C6 7F [14:47:08]Write to MH i2c: E2 0D 00 D2 23 80 0D 02 02 05 00 7E 06 63 C6 7F 00 00 A5 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 03 00 D2 23 00 90 00 69 [14:47:08]RAPDU: 90 00 [14:47:08]wFMCommunicate OK [14:47:08]wFMCommunicate request_size=4 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 0D 03 02 [14:47:08]Write to MH i2c: E2 08 00 D3 23 80 0D 03 02 00 00 00 00 71 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 0B 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 0B 00 D3 23 00 F7 1A 44 E3 B9 AB A6 1D 90 00 D1 [14:47:08]RAPDU: F7 1A 44 E3 B9 AB A6 1D 90 00 [14:47:08]wFMCommunicate OK [14:47:08]SAM_PROTO_SignData done [14:47:08]FM_MakeSignedData done [14:47:08]CreateOFDProtocolMessage [14:47:08]wFMCommunicate request_size=4 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 11 00 00 [14:47:08]Write to MH i2c: E2 08 00 D4 23 80 11 00 00 00 00 00 00 71 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 17 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 17 00 D4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D1 [14:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:47:08]wFMCommunicate OK [14:47:08]CreateOFDProtocolMessage done [14:47:08]OFDSenderStorePacket 162852 [14:47:08]StoreOFDPacket docnum=162852 [14:47:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3F 47 07 01 3F 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 1F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 89 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 EC E4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 24 7C 02 00 35 04 06 00 5D 7E 06 63 C6 7F F7 1A 44 E3 B9 AB A6 1D [14:47:08]CheckFolder [14:47:08]dirname=/storage/ofd_packets [14:47:08]CheckFolder done [14:47:08]ProducePacketName [14:47:08]name=ofd_packets/00162852 [14:47:08]NVStorageSaveData ofd_packets/00162852 [14:47:08]File name is /storage/ofd_packets/00162852 [14:47:08]Write 301 bytes [14:47:08]NVStorageSaveData done [14:47:08]OFDSenderStorePacket done [14:47:08]KKMCreateOFDPacket done [14:47:08]NVStorageSaveData kkm_last_timestamp [14:47:08]File name is /storage/kkm_last_timestamp [14:47:08]Write 4 bytes [14:47:08]NVStorageSaveData done [14:47:08]ExternCall_PrintAddStr [14:47:08]wPrintStart [14:47:08]Write to MH i2c: 01 00 00 D5 23 F8 [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: 01 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: 01 07 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: 01 07 00 D5 23 00 00 00 00 00 FF 0F 0D [14:47:08]RasterBufferAndPrint [14:47:08]line Счет N : (1)1319455 [14:47:08]line ИНН: 02508201610067 [14:47:08]line Контрольно-Кассовый Чек [14:47:08]line ПРОДАЖА [14:47:08]line ТРК (МРК, ГНК) : 44 [14:47:08]line Товар: 2710124500 [14:47:08]line Аи-95-К-5 [14:47:08]line 8.070 * 74.40 [14:47:08]line = 600.41 [14:47:08]line НДС 12% НСП 1% [14:47:08]line > о реализуемом товаре [14:47:08]line ОКРУГЛЕНИЕ: -0.41 [14:47:08]line ИТОГО: 600.00 [14:47:08]line Внесено: 600.00 [14:47:08]line СДАЧА: 0.00 [14:47:08]line НСП 1% : 5.31 [14:47:08]line НДС 12% : 63.76 [14:47:08]line Наличными: 600.00 [14:47:08]line Безнал.: 0.00 [14:47:08]line Место: АЗС № 140 "Партнер Нефть" [14:47:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:47:08]line СНО: Общий режим [14:47:08]line Чек 164 14.07.2024 14:47 [14:47:08]line Смена: 463 ФФД: 1.0 [14:47:08]line ЗНМ: 0300000129 [14:47:08]line РНМ: 0000000000090858 [14:47:08]line Версия ККМ: 001 [14:47:08]line ФМ: 0000000000874899 [14:47:08]line ФД: 162852 [14:47:08]line ФПД: 102795854464639 [14:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T144708&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162852&fm=102795854464639&tin=02508201610067®Number=0000000000090858&sum=60000 [14:47:08]OFD Sender: Processing packet 162852 [packets to send 106, broken 105] [14:47:08]ProducePacketName [14:47:08]name=ofd_packets/00162852 [14:47:08]OFD Sender: To server: pG, [14:47:08]CommunicateWithHost lk.salyk.kg:30040 [14:47:08]ConnectInit lk.salyk.kg [14:47:08]written 0, free lines is 4095 [14:47:08]Connected sock=9 [14:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3F 47 07 01 3F 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 1F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 89 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 EC E4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 24 7C 02 00 35 04 06 00 5D 7E 06 63 C6 7F F7 1A 44 E3 B9 AB A6 1D [14:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B3 57 47 00 BD 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 24 7C 02 00 F4 03 04 00 F9 90 93 66 B6 04 01 00 00 03 FA 3A 0C 68 C1 58 53 [14:47:09]CommunicateWithHost err = 0 [14:47:09]CheckOFDResponse [14:47:09]1017 (14) - 77093643461234 [14:47:09]1041 (16) - 0000000000874899 [14:47:09]1040 (4) - 162852 [14:47:09]1012 (4) - 14.07.2024 08:48 [14:47:09]1206 (1) - 0 [14:47:09]OFD Sender: Remove packet 162852 [14:47:09]ProducePacketName [14:47:09]name=ofd_packets/00162852 [14:47:09]NVStorageDeleteData [14:47:09]Write to MH i2c: 01 00 00 00 24 24 [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: 01 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: 01 07 00 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: 01 07 00 00 24 00 00 00 00 00 EA 0C 21 [14:47:09]RasterBufferAndPrint [14:47:09]line [14:47:09]line [14:47:09]line [14:47:09]line [14:47:09]line [14:47:09]written 0, free lines is 3312 [14:47:09]MH_Cut [14:47:09]Write to MH i2c: D1 01 00 07 24 01 FD [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: D1 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: D1 01 00 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: D1 01 00 07 24 00 FC [14:47:09]Write to MH i2c: 01 00 00 08 24 2C [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]OFD Sender: No OFD packet to send [14:47:10]*** Cut start [14:47:10]*** Purtial cut [14:47:10]*** CUTSNS_PIN = 0 [14:47:10]*** Stage 1: CUTSNS_PIN = 1 [14:47:12]Read from MH i2c: 01 [14:47:12]MH_I2C_Read... [14:47:12]*** Stop cut motor [14:47:12]*** Cut end [14:47:12]Read from MH i2c: 01 07 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 08 24 00 00 00 00 00 FF 0F 41 [14:47:12]process_action close_receipt done [14:47:12]requested_data is exist [14:47:12]produce_requested_data [14:47:12]requested_item fm.sn is exist - process it [14:47:12]wFMCommunicate request_size=4 [14:47:12]MH_SAM_APDU [14:47:12]CAPDU: 80 11 00 00 [14:47:12]Write to MH i2c: E2 08 00 09 24 80 11 00 00 00 00 00 00 A7 [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:12]Read from MH i2c: E2 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 17 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 17 00 09 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 07 [14:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:47:12]wFMCommunicate OK [14:47:12]requested_item fd.num is exist - process it [14:47:12]SAM_PROTO_GetFieldsCounters [14:47:12]wFMCommunicate request_size=4 [14:47:12]MH_SAM_APDU [14:47:12]CAPDU: 80 13 00 00 [14:47:12]Write to MH i2c: E2 08 00 0A 24 80 13 00 00 00 00 00 00 AA [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:12]Read from MH i2c: E2 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 62 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 62 00 0A 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 24 7C 02 00 0E 04 04 00 CF 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 3B [14:47:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 24 7C 02 00 0E 04 04 00 CF 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 [14:47:12]wFMCommunicate OK [14:47:12]SAM_PROTO_GetFieldsCounters done [14:47:12]requested_item shift.num is exist - process it [14:47:12]requested_item shift.opened is exist - process it [14:47:12]req_shift_opened [14:47:12]FM_GetShiftState [14:47:12]SAM_PROTO_GetShiftState [14:47:12]wFMCommunicate request_size=4 [14:47:12]MH_SAM_APDU [14:47:12]CAPDU: 80 13 01 00 [14:47:12]Write to MH i2c: E2 08 00 0B 24 80 13 01 00 00 00 00 00 AC [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:12]Read from MH i2c: E2 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 0E 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 0E 00 0B 24 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E2 [14:47:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:47:12]wFMCommunicate OK [14:47:12]SAM_PROTO_GetShiftState done [14:47:12]FM_GetShiftState done [14:47:12]req_shift_opened done [14:47:12]requested_item shift.open_date is exist - process it [14:47:12]req_shift_open_date [14:47:12]req_shift_open_date done [14:47:12]produce_requested_data done [14:47:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162852,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:47:12]process_action_free close_receipt [14:47:12]json_value_free [14:47:12]json_value_free done [14:47:12]process_json_proto returns [14:47:12]Send response to host [14:47:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162852,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:47:12]free response buf [14:47:12]execute_script done [14:47:12]execute_script returns [14:47:12]free content buf [14:47:12]Sock 10.Close socket [14:47:12]Sock 10.Thread stoped [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:03]accept exits with 7 [14:49:03]New connection [14:49:03]New thread 3066735972 created [14:49:03]Thread 3066879332 joined [14:49:03]Waiting for new connection... [14:49:03] Sock 7.Parse request [14:49:03]Sock 7.Check first char [14:49:03]Sock 7.First char is OK [14:49:03]request: POST /json_proto HTTP/1.0 [14:49:03]Method: POST [14:49:03]URL: /json_proto [14:49:03]Method is POST - this is cgi request [14:49:03]url: /json_proto [14:49:03]query_string will be loaded in cgi processing [14:49:03]execute_cgi json_proto POST (null) [14:49:03]execute_cgi path=json_proto method=POST [14:49:03]POST find Content-Length [14:49:03]Host: 172.17.39.67:8080 [14:49:03]Content-Length: 678 [14:49:03]Content-Type: application/json [14:49:03] [14:49:03]POST finish read [14:49:03]Found Content-Length = 678 [14:49:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:49:03]execute_script... [14:49:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:49:03]POST & json_proto [14:49:03]process_json_proto [14:49:03]json parsed OK: [14:49:03]protocol is kg_v1.0 [14:49:03]action value=close_receipt [14:49:03]process_action close_receipt [14:49:03]cmd_close_receipt [14:49:03]MH_GetDate [14:49:03]Write to MH i2c: F0 00 00 0C 24 1F [14:49:03]Write i2c OK [14:49:03]MH_I2C_Read... [14:49:03]Read from MH i2c: F0 [14:49:03]MH_I2C_Read... [14:49:03]Read from MH i2c: F0 09 00 [14:49:03]MH_I2C_Read... [14:49:03]Read from MH i2c: F0 09 00 0C 24 00 60 E5 93 66 B6 85 93 66 9A [14:49:03]GetLastDocTimeStamp 1720968428 [14:49:03]current date 1720968544 [14:49:03]FM_GetShiftState [14:49:03]SAM_PROTO_GetShiftState [14:49:03]wFMCommunicate request_size=4 [14:49:03]MH_SAM_APDU [14:49:03]CAPDU: 80 13 01 00 [14:49:03]Write to MH i2c: E2 08 00 0D 24 80 13 01 00 00 00 00 00 AE [14:49:03]Write i2c OK [14:49:03]MH_I2C_Read... [14:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:03]Read from MH i2c: E2 [14:49:03]MH_I2C_Read... [14:49:03]Read from MH i2c: E2 0E 00 [14:49:03]MH_I2C_Read... [14:49:03]Read from MH i2c: E2 0E 00 0D 24 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E4 [14:49:03]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:49:03]wFMCommunicate OK [14:49:03]SAM_PROTO_GetShiftState done [14:49:03]FM_GetShiftState done [14:49:03]opened in 1720915483 [14:49:03]opened+sec_in_day 1721001883 [14:49:03]quantity*price = 50056 [14:49:03]sum+1 = 50058 [14:49:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 165 14.07.2024 14:49 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162853 ФПД: 86013544817301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T144904&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162853&fm=86013544817301&tin=02508201610067®Number=0000000000090858&sum=50000 [14:49:04]StoreToDocumentArchive [14:49:04]shift 463 fd 162853 [14:49:04]save to /storage/0463/doc_00162853 [14:49:04]save last doc name /storage/0463/doc_00162853 to /storage/kkm_last_doc_name [14:49:04]save OK [14:49:04]Clear old archive folders... [14:49:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:04]tlvbuf is 012FC170 [14:49:04]SAM_PROTO_ClearQueue [14:49:04]wFMCommunicate request_size=4 [14:49:04]MH_SAM_APDU [14:49:04]CAPDU: 80 09 00 00 [14:49:04]Write to MH i2c: E2 08 00 1A 24 80 09 00 00 00 00 00 00 B0 [14:49:04]Write i2c OK [14:49:04]MH_I2C_Read... [14:49:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:04]Read from MH i2c: E2 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 03 00 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 03 00 1A 24 00 90 00 B2 [14:49:04]RAPDU: 90 00 [14:49:04]wFMCommunicate OK [14:49:04]SAM_PROTO_ClearQueue done [14:49:04]KKMCreateOFDPacket [14:49:04]OFDProtocolAddRootSTLVToBuf [14:49:04]FM_MakeSignedData [14:49:04]FM_MakeSignedData [14:49:04]SAM_PROTO_SignData [14:49:04]wFMCommunicate request_size=4 [14:49:04]MH_SAM_APDU [14:49:04]CAPDU: 80 0D 01 02 [14:49:04]Write to MH i2c: E2 08 00 1B 24 80 0D 01 02 00 00 00 00 B8 [14:49:04]Write i2c OK [14:49:04]MH_I2C_Read... [14:49:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:04]Read from MH i2c: E2 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 03 00 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 03 00 1B 24 00 90 00 B3 [14:49:04]RAPDU: 90 00 [14:49:04]wFMCommunicate OK [14:49:04]wFMCommunicate request_size=255 [14:49:04]MH_SAM_APDU [14:49: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 A5 00 00 00 F4 03 04 00 60 E5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 25 7C 02 00 35 04 06 00 4E [14:49:04]Write to MH i2c: E2 02 01 1C 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 A5 00 00 00 F4 03 04 00 60 E5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 25 7C 02 00 35 04 06 00 4E 00 00 18 [14:49:04]Write i2c OK [14:49:04]MH_I2C_Read... [14:49:04]OFD Sender: No OFD packet to send [14:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:04]Read from MH i2c: E2 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 03 00 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 03 00 1C 24 00 90 00 B4 [14:49:04]RAPDU: 90 00 [14:49:04]wFMCommunicate OK [14:49:04]wFMCommunicate request_size=10 [14:49:04]MH_SAM_APDU [14:49:04]CAPDU: 80 0D 02 02 05 3A 96 C8 E2 95 [14:49:04]Write to MH i2c: E2 0D 00 1D 24 80 0D 02 02 05 00 3A 96 C8 E2 95 00 00 D4 [14:49:04]Write i2c OK [14:49:04]MH_I2C_Read... [14:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:04]Read from MH i2c: E2 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 03 00 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 03 00 1D 24 00 90 00 B5 [14:49:04]RAPDU: 90 00 [14:49:04]wFMCommunicate OK [14:49:04]wFMCommunicate request_size=4 [14:49:04]MH_SAM_APDU [14:49:04]CAPDU: 80 0D 03 02 [14:49:04]Write to MH i2c: E2 08 00 1E 24 80 0D 03 02 00 00 00 00 BD [14:49:04]Write i2c OK [14:49:04]MH_I2C_Read... [14:49:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:05]Read from MH i2c: E2 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: E2 0B 00 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: E2 0B 00 1E 24 00 52 16 34 DA 04 06 DC 4A 90 00 64 [14:49:05]RAPDU: 52 16 34 DA 04 06 DC 4A 90 00 [14:49:05]wFMCommunicate OK [14:49:05]SAM_PROTO_SignData done [14:49:05]FM_MakeSignedData done [14:49:05]CreateOFDProtocolMessage [14:49:05]wFMCommunicate request_size=4 [14:49:05]MH_SAM_APDU [14:49:05]CAPDU: 80 11 00 00 [14:49:05]Write to MH i2c: E2 08 00 1F 24 80 11 00 00 00 00 00 00 BD [14:49:05]Write i2c OK [14:49:05]MH_I2C_Read... [14:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:05]Read from MH i2c: E2 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: E2 17 00 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: E2 17 00 1F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1D [14:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:49:05]wFMCommunicate OK [14:49:05]CreateOFDProtocolMessage done [14:49:05]OFDSenderStorePacket 162853 [14:49:05]StoreOFDPacket docnum=162853 [14:49:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C5 B1 07 01 51 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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 A5 00 00 00 F4 03 04 00 60 E5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 25 7C 02 00 35 04 06 00 4E 3A 96 C8 E2 95 52 16 34 DA 04 06 DC 4A [14:49:05]CheckFolder [14:49:05]dirname=/storage/ofd_packets [14:49:05]CheckFolder done [14:49:05]ProducePacketName [14:49:05]name=ofd_packets/00162853 [14:49:05]NVStorageSaveData ofd_packets/00162853 [14:49:05]File name is /storage/ofd_packets/00162853 [14:49:05]Write 301 bytes [14:49:05]NVStorageSaveData done [14:49:05]OFDSenderStorePacket done [14:49:05]KKMCreateOFDPacket done [14:49:05]NVStorageSaveData kkm_last_timestamp [14:49:05]File name is /storage/kkm_last_timestamp [14:49:05]Write 4 bytes [14:49:05]NVStorageSaveData done [14:49:05]ExternCall_PrintAddStr [14:49:05]wPrintStart [14:49:05]Write to MH i2c: 01 00 00 20 24 44 [14:49:05]Write i2c OK [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: 01 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: 01 07 00 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: 01 07 00 20 24 00 00 00 00 00 FF 0F 59 [14:49:05]RasterBufferAndPrint [14:49:05]line Счет N : (1)1319456 [14:49:05]line ИНН: 02508201610067 [14:49:05]line Контрольно-Кассовый Чек [14:49:05]line ПРОДАЖА [14:49:05]line ТРК (МРК, ГНК) : 33 [14:49:05]line Товар: 2710124130 [14:49:05]line Аи-92-К-5 [14:49:05]line 7.550 * 66.30 [14:49:05]line = 500.57 [14:49:05]line НДС 12% НСП 1% [14:49:05]line > о реализуемом товаре [14:49:05]line ОКРУГЛЕНИЕ: -0.57 [14:49:05]line ИТОГО: 500.00 [14:49:05]line Внесено: 500.00 [14:49:05]line СДАЧА: 0.00 [14:49:05]line НСП 1% : 4.43 [14:49:05]line НДС 12% : 53.16 [14:49:05]line Наличными: 500.00 [14:49:05]line Безнал.: 0.00 [14:49:05]line Место: АЗС № 140 "Партнер Нефть" [14:49:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:49:05]line СНО: Общий режим [14:49:05]line Чек 165 14.07.2024 14:49 [14:49:05]line Смена: 463 ФФД: 1.0 [14:49:05]line ЗНМ: 0300000129 [14:49:05]line РНМ: 0000000000090858 [14:49:05]line Версия ККМ: 001 [14:49:05]line ФМ: 0000000000874899 [14:49:05]line ФД: 162853 [14:49:05]line ФПД: 86013544817301 [14:49:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T144904&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162853&fm=86013544817301&tin=02508201610067®Number=0000000000090858&sum=50000 [14:49:05]OFD Sender: Processing packet 162853 [packets to send 106, broken 105] [14:49:05]ProducePacketName [14:49:05]name=ofd_packets/00162853 [14:49:05]OFD Sender: To server: pG, [14:49:05]CommunicateWithHost lk.salyk.kg:30040 [14:49:05]ConnectInit lk.salyk.kg [14:49:05]written 0, free lines is 4095 [14:49:05]Connected sock=10 [14:49:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C5 B1 07 01 51 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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 A5 00 00 00 F4 03 04 00 60 E5 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 25 7C 02 00 35 04 06 00 4E 3A 96 C8 E2 95 52 16 34 DA 04 06 DC 4A [14:49:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 30 FC 47 00 9D 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 25 7C 02 00 F4 03 04 00 6E 91 93 66 B6 04 01 00 00 45 CD 35 37 58 5B DD 94 [14:49:05]CommunicateWithHost err = 0 [14:49:05]CheckOFDResponse [14:49:05]1017 (14) - 77093643461234 [14:49:05]1041 (16) - 0000000000874899 [14:49:05]1040 (4) - 162853 [14:49:05]1012 (4) - 14.07.2024 08:50 [14:49:05]1206 (1) - 0 [14:49:05]OFD Sender: Remove packet 162853 [14:49:05]ProducePacketName [14:49:05]name=ofd_packets/00162853 [14:49:05]NVStorageDeleteData [14:49:05]Write to MH i2c: 01 00 00 4B 24 6F [14:49:05]Write i2c OK [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: 01 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: 01 07 00 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: 01 07 00 4B 24 00 00 00 00 00 E8 0C 6A [14:49:05]RasterBufferAndPrint [14:49:05]line [14:49:05]line [14:49:05]line [14:49:05]line [14:49:05]line [14:49:05]written 0, free lines is 3313 [14:49:05]MH_Cut [14:49:05]Write to MH i2c: D1 01 00 52 24 01 48 [14:49:05]Write i2c OK [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: D1 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: D1 01 00 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: D1 01 00 52 24 00 47 [14:49:05]Write to MH i2c: 01 00 00 53 24 77 [14:49:05]Write i2c OK [14:49:05]MH_I2C_Read... [14:49:06]OFD Sender: No OFD packet to send [14:49:06]*** Cut start [14:49:06]*** Purtial cut [14:49:06]*** Stage 1: CUTSNS_PIN = 1 [14:49:06]Read from MH i2c: 01 [14:49:06]MH_I2C_Read... [14:49:06]*** Stop cut motor [14:49:06]*** Cut end [14:49:06]Read from MH i2c: 01 07 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: 01 07 00 53 24 00 00 00 00 00 FF 0F 8C [14:49:06]process_action close_receipt done [14:49:06]requested_data is exist [14:49:06]produce_requested_data [14:49:06]requested_item fm.sn is exist - process it [14:49:06]wFMCommunicate request_size=4 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 11 00 00 [14:49:06]Write to MH i2c: E2 08 00 54 24 80 11 00 00 00 00 00 00 F2 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:06]Read from MH i2c: E2 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 17 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 17 00 54 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 52 [14:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:49:06]wFMCommunicate OK [14:49:06]requested_item fd.num is exist - process it [14:49:06]SAM_PROTO_GetFieldsCounters [14:49:06]wFMCommunicate request_size=4 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 13 00 00 [14:49:06]Write to MH i2c: E2 08 00 55 24 80 13 00 00 00 00 00 00 F5 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 62 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 62 00 55 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 25 7C 02 00 0E 04 04 00 CF 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 8A [14:49:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 25 7C 02 00 0E 04 04 00 CF 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 [14:49:07]wFMCommunicate OK [14:49:07]SAM_PROTO_GetFieldsCounters done [14:49:07]requested_item shift.num is exist - process it [14:49:07]requested_item shift.opened is exist - process it [14:49:07]req_shift_opened [14:49:07]FM_GetShiftState [14:49:07]SAM_PROTO_GetShiftState [14:49:07]wFMCommunicate request_size=4 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 13 01 00 [14:49:07]Write to MH i2c: E2 08 00 56 24 80 13 01 00 00 00 00 00 F7 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 0E 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 0E 00 56 24 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2D [14:49:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:49:07]wFMCommunicate OK [14:49:07]SAM_PROTO_GetShiftState done [14:49:07]FM_GetShiftState done [14:49:07]req_shift_opened done [14:49:07]requested_item shift.open_date is exist - process it [14:49:07]req_shift_open_date [14:49:07]req_shift_open_date done [14:49:07]produce_requested_data done [14:49:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162853,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:49:07]process_action_free close_receipt [14:49:07]json_value_free [14:49:07]json_value_free done [14:49:07]process_json_proto returns [14:49:07]Send response to host [14:49:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162853,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:49:07]free response buf [14:49:07]execute_script done [14:49:07]execute_script returns [14:49:07]free content buf [14:49:07]Sock 7.Close socket [14:49:07]Sock 7.Thread stoped [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]accept exits with 9 [14:57:41]New connection [14:57:41]New thread 3066879332 created [14:57:41]Thread 3066735972 joined [14:57:41]Waiting for new connection... [14:57:41] Sock 9.Parse request [14:57:41]Sock 9.Check first char [14:57:41]Sock 9.First char is OK [14:57:41]request: POST /json_proto HTTP/1.0 [14:57:41]Method: POST [14:57:41]URL: /json_proto [14:57:41]Method is POST - this is cgi request [14:57:41]url: /json_proto [14:57:41]query_string will be loaded in cgi processing [14:57:41]execute_cgi json_proto POST (null) [14:57:41]execute_cgi path=json_proto method=POST [14:57:41]POST find Content-Length [14:57:41]Host: 172.17.39.67:8080 [14:57:41]Content-Length: 648 [14:57:41]Content-Type: application/json [14:57:41] [14:57:41]POST finish read [14:57:41]Found Content-Length = 648 [14:57:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 60.000, "sum" : 4356.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4356.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:41]execute_script... [14:57:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 60.000, "sum" : 4356.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4356.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:41]POST & json_proto [14:57:41]process_json_proto [14:57:41]json parsed OK: [14:57:41]protocol is kg_v1.0 [14:57:41]action value=close_receipt [14:57:41]process_action close_receipt [14:57:41]cmd_close_receipt [14:57:41]MH_GetDate [14:57:41]Write to MH i2c: F0 00 00 57 24 6A [14:57:41]Write i2c OK [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: F0 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: F0 09 00 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: F0 09 00 57 24 00 66 E7 93 66 B6 85 93 66 ED [14:57:41]GetLastDocTimeStamp 1720968544 [14:57:41]current date 1720969062 [14:57:41]FM_GetShiftState [14:57:41]SAM_PROTO_GetShiftState [14:57:41]wFMCommunicate request_size=4 [14:57:41]MH_SAM_APDU [14:57:41]CAPDU: 80 13 01 00 [14:57:41]Write to MH i2c: E2 08 00 58 24 80 13 01 00 00 00 00 00 F9 [14:57:41]Write i2c OK [14:57:41]MH_I2C_Read... [14:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:41]Read from MH i2c: E2 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 0E 00 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 0E 00 58 24 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2F [14:57:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:57:41]wFMCommunicate OK [14:57:41]SAM_PROTO_GetShiftState done [14:57:41]FM_GetShiftState done [14:57:41]opened in 1720915483 [14:57:41]opened+sec_in_day 1721001883 [14:57:41]quantity*price = 435600 [14:57:41]sum+1 = 435601 [14:57:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4356.00 НСП 1% : 38.55 НДС 12% : 462.58 Наличными: 4356.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 166 14.07.2024 14:57 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162854 ФПД: 206242371456254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T145742&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162854&fm=206242371456254&tin=02508201610067®Number=0000000000090858&sum=435600 [14:57:42]StoreToDocumentArchive [14:57:42]shift 463 fd 162854 [14:57:42]save to /storage/0463/doc_00162854 [14:57:42]save last doc name /storage/0463/doc_00162854 to /storage/kkm_last_doc_name [14:57:42]save OK [14:57:42]Clear old archive folders... [14:57:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:57:42]tlvbuf is 01387560 [14:57:42]SAM_PROTO_ClearQueue [14:57:42]wFMCommunicate request_size=4 [14:57:42]MH_SAM_APDU [14:57:42]CAPDU: 80 09 00 00 [14:57:42]Write to MH i2c: E2 08 00 65 24 80 09 00 00 00 00 00 00 FB [14:57:42]Write i2c OK [14:57:42]MH_I2C_Read... [14:57:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:42]Read from MH i2c: E2 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: E2 03 00 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: E2 03 00 65 24 00 90 00 FD [14:57:42]RAPDU: 90 00 [14:57:42]wFMCommunicate OK [14:57:42]SAM_PROTO_ClearQueue done [14:57:42]KKMCreateOFDPacket [14:57:42]OFDProtocolAddRootSTLVToBuf [14:57:42]FM_MakeSignedData [14:57:42]FM_MakeSignedData [14:57:42]SAM_PROTO_SignData [14:57:42]wFMCommunicate request_size=4 [14:57:42]MH_SAM_APDU [14:57:42]CAPDU: 80 0D 01 02 [14:57:42]Write to MH i2c: E2 08 00 66 24 80 0D 01 02 00 00 00 00 03 [14:57:42]Write i2c OK [14:57:42]MH_I2C_Read... [14:57:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:42]Read from MH i2c: E2 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: E2 03 00 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: E2 03 00 66 24 00 90 00 FE [14:57:42]RAPDU: 90 00 [14:57:42]wFMCommunicate OK [14:57:42]wFMCommunicate request_size=255 [14:57:42]MH_SAM_APDU [14:57:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A5 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A5 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 B4 00 00 00 00 07 04 06 00 90 A5 06 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 66 E7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7C 02 00 35 04 06 00 [14:57:42]Write to MH i2c: E2 02 01 67 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A5 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A5 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 B4 00 00 00 00 07 04 06 00 90 A5 06 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 66 E7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7C 02 00 35 04 06 00 00 00 B1 [14:57:42]Write i2c OK [14:57:42]MH_I2C_Read... [14:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:42]Read from MH i2c: E2 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: E2 03 00 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: E2 03 00 67 24 00 90 00 FF [14:57:42]RAPDU: 90 00 [14:57:42]wFMCommunicate OK [14:57:42]wFMCommunicate request_size=11 [14:57:42]MH_SAM_APDU [14:57:42]CAPDU: 80 0D 02 02 06 BB 93 8B 49 CC FE [14:57:42]Write to MH i2c: E2 0E 00 68 24 80 0D 02 02 06 00 BB 93 8B 49 CC FE 00 00 FE [14:57:42]Write i2c OK [14:57:42]MH_I2C_Read... [14:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:42]Read from MH i2c: E2 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: E2 03 00 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: E2 03 00 68 24 00 90 00 00 [14:57:42]RAPDU: 90 00 [14:57:42]wFMCommunicate OK [14:57:42]wFMCommunicate request_size=4 [14:57:42]MH_SAM_APDU [14:57:42]CAPDU: 80 0D 03 02 [14:57:42]Write to MH i2c: E2 08 00 69 24 80 0D 03 02 00 00 00 00 08 [14:57:42]Write i2c OK [14:57:42]MH_I2C_Read... [14:57:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:43]Read from MH i2c: E2 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: E2 0B 00 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: E2 0B 00 69 24 00 98 18 08 D6 09 41 40 DD 90 00 FE [14:57:43]RAPDU: 98 18 08 D6 09 41 40 DD 90 00 [14:57:43]wFMCommunicate OK [14:57:43]SAM_PROTO_SignData done [14:57:43]FM_MakeSignedData done [14:57:43]CreateOFDProtocolMessage [14:57:43]wFMCommunicate request_size=4 [14:57:43]MH_SAM_APDU [14:57:43]CAPDU: 80 11 00 00 [14:57:43]Write to MH i2c: E2 08 00 6A 24 80 11 00 00 00 00 00 00 08 [14:57:43]Write i2c OK [14:57:43]MH_I2C_Read... [14:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:43]Read from MH i2c: E2 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: E2 17 00 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: E2 17 00 6A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 68 [14:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:57:43]wFMCommunicate OK [14:57:43]CreateOFDProtocolMessage done [14:57:43]OFDSenderStorePacket 162854 [14:57:43]StoreOFDPacket docnum=162854 [14:57:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 2A 7E 08 01 11 43 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A5 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A5 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 B4 00 00 00 00 07 04 06 00 90 A5 06 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 66 E7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7C 02 00 35 04 06 00 BB 93 8B 49 CC FE 98 18 08 D6 09 41 40 DD [14:57:43]CheckFolder [14:57:43]dirname=/storage/ofd_packets [14:57:43]CheckFolder done [14:57:43]ProducePacketName [14:57:43]name=ofd_packets/00162854 [14:57:43]NVStorageSaveData ofd_packets/00162854 [14:57:43]File name is /storage/ofd_packets/00162854 [14:57:43]Write 302 bytes [14:57:43]NVStorageSaveData done [14:57:43]OFDSenderStorePacket done [14:57:43]KKMCreateOFDPacket done [14:57:43]NVStorageSaveData kkm_last_timestamp [14:57:43]File name is /storage/kkm_last_timestamp [14:57:43]Write 4 bytes [14:57:43]NVStorageSaveData done [14:57:43]ExternCall_PrintAddStr [14:57:43]wPrintStart [14:57:43]Write to MH i2c: 01 00 00 6B 24 8F [14:57:43]Write i2c OK [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: 01 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: 01 07 00 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: 01 07 00 6B 24 00 00 00 00 00 FF 0F A4 [14:57:43]RasterBufferAndPrint [14:57:43]line Счет N : (1)1319457 [14:57:43]line ИНН: 02508201610067 [14:57:43]line Контрольно-Кассовый Чек [14:57:43]line ПРОДАЖА [14:57:43]line ТРК (МРК, ГНК) : 21 [14:57:43]line Товар: 2710194210 [14:57:43]line ДТ(л)-К-5 [14:57:43]line 60.000 * 72.60 [14:57:43]line = 4356.00 [14:57:43]line НДС 12% НСП 1% [14:57:43]line > о реализуемом товаре [14:57:43]line ИТОГО: 4356.00 [14:57:43]line НСП 1% : 38.55 [14:57:43]line НДС 12% : 462.58 [14:57:43]line Наличными: 4356.00 [14:57:43]line Безнал.: 0.00 [14:57:43]line Место: АЗС № 140 "Партнер Нефть" [14:57:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:57:43]line СНО: Общий режим [14:57:43]line Чек 166 14.07.2024 14:57 [14:57:43]line Смена: 463 ФФД: 1.0 [14:57:43]line ЗНМ: 0300000129 [14:57:43]line РНМ: 0000000000090858 [14:57:43]line Версия ККМ: 001 [14:57:43]line ФМ: 0000000000874899 [14:57:43]line ФД: 162854 [14:57:43]line ФПД: 206242371456254 [14:57:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T145742&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162854&fm=206242371456254&tin=02508201610067®Number=0000000000090858&sum=435600 [14:57:43]OFD Sender: Processing packet 162854 [packets to send 106, broken 105] [14:57:43]ProducePacketName [14:57:43]name=ofd_packets/00162854 [14:57:43]OFD Sender: To server: pG, [14:57:43]CommunicateWithHost lk.salyk.kg:30040 [14:57:43]ConnectInit lk.salyk.kg [14:57:43]written 0, free lines is 4095 [14:57:43]Connected sock=10 [14: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 34 38 39 39 10 01 00 00 2A 7E 08 01 11 43 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A5 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A5 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 B4 00 00 00 00 07 04 06 00 90 A5 06 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 66 E7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7C 02 00 35 04 06 00 BB 93 8B 49 CC FE 98 18 08 D6 09 41 40 DD [14:57:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 38 0B 47 00 81 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7C 02 00 F4 03 04 00 74 93 93 66 B6 04 01 00 00 DF 7D A7 0D 05 EF D8 4B [14:57:43]CommunicateWithHost err = 0 [14:57:43]CheckOFDResponse [14:57:43]1017 (14) - 77093643461234 [14:57:43]1041 (16) - 0000000000874899 [14:57:43]1040 (4) - 162854 [14:57:43]1012 (4) - 14.07.2024 08:59 [14:57:43]1206 (1) - 0 [14:57:43]OFD Sender: Remove packet 162854 [14:57:43]ProducePacketName [14:57:43]name=ofd_packets/00162854 [14:57:43]NVStorageDeleteData [14:57:43]Write to MH i2c: 01 00 00 93 24 B7 [14:57:43]Write i2c OK [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: 01 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: 01 07 00 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: 01 07 00 93 24 00 00 00 00 00 1A 0D E5 [14:57:43]RasterBufferAndPrint [14:57:43]line [14:57:43]line [14:57:43]line [14:57:43]line [14:57:43]line [14:57:43]written 0, free lines is 3360 [14:57:43]MH_Cut [14:57:43]Write to MH i2c: D1 01 00 9A 24 01 90 [14:57:43]Write i2c OK [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: D1 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: D1 01 00 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: D1 01 00 9A 24 00 8F [14:57:43]Write to MH i2c: 01 00 00 9B 24 BF [14:57:43]Write i2c OK [14:57:43]MH_I2C_Read... [14:57:44]OFD Sender: No OFD packet to send [14:57:44]*** Cut start [14:57:44]*** Purtial cut [14:57:44]*** CUTSNS_PIN = 0 [14:57:44]*** Stage 1: CUTSNS_PIN = 1 [14:57:46]Read from MH i2c: 01 [14:57:46]MH_I2C_Read... [14:57:46]*** Stop cut motor [14:57:46]*** Cut end [14:57:46]Read from MH i2c: 01 07 00 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: 01 07 00 9B 24 00 00 00 00 00 FF 0F D4 [14:57:46]process_action close_receipt done [14:57:46]requested_data is exist [14:57:46]produce_requested_data [14:57:46]requested_item fm.sn is exist - process it [14:57:46]wFMCommunicate request_size=4 [14:57:46]MH_SAM_APDU [14:57:46]CAPDU: 80 11 00 00 [14:57:46]Write to MH i2c: E2 08 00 9C 24 80 11 00 00 00 00 00 00 3A [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:46]Read from MH i2c: E2 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 17 00 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 17 00 9C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9A [14:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:57:46]wFMCommunicate OK [14:57:46]requested_item fd.num is exist - process it [14:57:46]SAM_PROTO_GetFieldsCounters [14:57:46]wFMCommunicate request_size=4 [14:57:46]MH_SAM_APDU [14:57:46]CAPDU: 80 13 00 00 [14:57:46]Write to MH i2c: E2 08 00 9D 24 80 13 00 00 00 00 00 00 3D [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:46]Read from MH i2c: E2 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 62 00 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 62 00 9D 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 26 7C 02 00 0E 04 04 00 CF 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 D6 [14:57:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 26 7C 02 00 0E 04 04 00 CF 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 [14:57:46]wFMCommunicate OK [14:57:46]SAM_PROTO_GetFieldsCounters done [14:57:46]requested_item shift.num is exist - process it [14:57:46]requested_item shift.opened is exist - process it [14:57:46]req_shift_opened [14:57:46]FM_GetShiftState [14:57:46]SAM_PROTO_GetShiftState [14:57:46]wFMCommunicate request_size=4 [14:57:46]MH_SAM_APDU [14:57:46]CAPDU: 80 13 01 00 [14:57:46]Write to MH i2c: E2 08 00 9E 24 80 13 01 00 00 00 00 00 3F [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:46]Read from MH i2c: E2 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 0E 00 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 0E 00 9E 24 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 75 [14:57:46]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [14:57:46]wFMCommunicate OK [14:57:46]SAM_PROTO_GetShiftState done [14:57:46]FM_GetShiftState done [14:57:46]req_shift_opened done [14:57:46]requested_item shift.open_date is exist - process it [14:57:46]req_shift_open_date [14:57:46]req_shift_open_date done [14:57:46]produce_requested_data done [14:57:46]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162854,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [14:57:46]process_action_free close_receipt [14:57:46]json_value_free [14:57:46]json_value_free done [14:57:46]process_json_proto returns [14:57:46]Send response to host [14:57:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162854,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [14:57:46]free response buf [14:57:46]execute_script done [14:57:46]execute_script returns [14:57:46]free content buf [14:57:46]Sock 9.Close socket [14:57:46]Sock 9.Thread stoped [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]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:19]OFD Sender: No OFD packet to send [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:38]accept exits with 7 [15:01:38]New connection [15:01:38]New thread 3066735972 created [15:01:38]Thread 3066879332 joined [15:01:38]Waiting for new connection... [15:01:38] Sock 7.Parse request [15:01:38]Sock 7.Check first char [15:01:38]Sock 7.First char is OK [15:01:38]request: POST /json_proto HTTP/1.0 [15:01:38]Method: POST [15:01:38]URL: /json_proto [15:01:38]Method is POST - this is cgi request [15:01:38]url: /json_proto [15:01:38]query_string will be loaded in cgi processing [15:01:38]execute_cgi json_proto POST (null) [15:01:38]execute_cgi path=json_proto method=POST [15:01:38]POST find Content-Length [15:01:38]Host: 172.17.39.67:8080 [15:01:38]Content-Length: 1203 [15:01:38]Content-Type: application/json [15:01:38] [15:01:38]POST finish read [15:01:38]Found Content-Length = 1203 [15:01:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319458\u000A14.07.2024 14:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 3630.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474988\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:38]execute_script... [15:01:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319458\u000A14.07.2024 14:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 3630.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474988\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:38]POST & json_proto [15:01:38]process_json_proto [15:01:38]json parsed OK: [15:01:38]protocol is kg_v1.0 [15:01:38]action value=print_text [15:01:38]process_action print_text [15:01:38]cmd_print_text [15:01:38]ExternCall_PrintAddStr [15:01:38]wPrintStart [15:01:38]Write to MH i2c: 01 00 00 9F 24 C3 [15:01:38]Write i2c OK [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: 01 [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: 01 07 00 [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: 01 07 00 9F 24 00 00 00 00 00 FF 0F D8 [15:01:38]RasterBufferAndPrint [15:01:38]line *****ТОВАРНЫЙ ЧЕК***** [15:01:38]line АЗС 140 [15:01:38]line Партнер нефть [15:01:38]line 02508201610067 [15:01:38]line Кассир : Дуйшенбек у Н. [15:01:38]line Счет N : (1)1319458 [15:01:38]line 14.07.2024 14:59 [15:01:38]line ПРОДАЖА [15:01:38]line ТРК (МРК, ГНК): 11 [15:01:38]line Вид ГСМ : 2710194210 [15:01:38]line ДТ(л)-К-5 [15:01:38]line 50.000 x 72.60 [15:01:38]line ИТОГ: 3630.00 [15:01:38]line Тип оплаты: Талоны: Партнер нефть [15:01:38]line 3474988 [15:01:38]line ______________________ [15:01:38]line (подпись) [15:01:38]written 0, free lines is 4095 [15:01:38]Write to MH i2c: 01 00 00 B3 24 D7 [15:01:38]Write i2c OK [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: 01 [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: 01 07 00 [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: 01 07 00 B3 24 00 00 00 00 00 13 0E FF [15:01:38]RasterBufferAndPrint [15:01:38]line [15:01:38]line [15:01:38]line [15:01:38]line [15:01:38]line [15:01:38]written 0, free lines is 3605 [15:01:38]MH_Cut [15:01:38]Write to MH i2c: D1 01 00 BA 24 01 B0 [15:01:38]Write i2c OK [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: D1 [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: D1 01 00 [15:01:38]MH_I2C_Read... [15:01:38]Read from MH i2c: D1 01 00 BA 24 00 AF [15:01:38]Write to MH i2c: 01 00 00 BB 24 DF [15:01:38]Write i2c OK [15:01:38]MH_I2C_Read... [15:01:38]*** Cut start [15:01:38]*** Purtial cut [15:01:38]*** Stage 1: CUTSNS_PIN = 1 [15:01:39]Read from MH i2c: 01 [15:01:39]MH_I2C_Read... [15:01:39]*** Stop cut motor [15:01:39]*** Cut end [15:01:39]Read from MH i2c: 01 07 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: 01 07 00 BB 24 00 00 00 00 00 FF 0F F4 [15:01:39]process_action print_text done [15:01:39]requested_data is exist [15:01:39]produce_requested_data [15:01:39]requested_item fm.sn is exist - process it [15:01:39]wFMCommunicate request_size=4 [15:01:39]MH_SAM_APDU [15:01:39]CAPDU: 80 11 00 00 [15:01:39]Write to MH i2c: E2 08 00 BC 24 80 11 00 00 00 00 00 00 5A [15:01:39]Write i2c OK [15:01:39]MH_I2C_Read... [15:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:39]Read from MH i2c: E2 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 17 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 17 00 BC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BA [15:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:01:39]wFMCommunicate OK [15:01:39]requested_item fd.num is exist - process it [15:01:39]SAM_PROTO_GetFieldsCounters [15:01:39]wFMCommunicate request_size=4 [15:01:39]MH_SAM_APDU [15:01:39]CAPDU: 80 13 00 00 [15:01:39]Write to MH i2c: E2 08 00 BD 24 80 13 00 00 00 00 00 00 5D [15:01:39]Write i2c OK [15:01:39]MH_I2C_Read... [15:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:39]Read from MH i2c: E2 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 62 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 62 00 BD 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 26 7C 02 00 0E 04 04 00 CF 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 F6 [15:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 26 7C 02 00 0E 04 04 00 CF 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 [15:01:39]wFMCommunicate OK [15:01:39]SAM_PROTO_GetFieldsCounters done [15:01:39]requested_item shift.num is exist - process it [15:01:39]requested_item shift.opened is exist - process it [15:01:39]req_shift_opened [15:01:39]FM_GetShiftState [15:01:39]SAM_PROTO_GetShiftState [15:01:39]wFMCommunicate request_size=4 [15:01:39]MH_SAM_APDU [15:01:39]CAPDU: 80 13 01 00 [15:01:39]Write to MH i2c: E2 08 00 BE 24 80 13 01 00 00 00 00 00 5F [15:01:39]Write i2c OK [15:01:39]MH_I2C_Read... [15:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:39]Read from MH i2c: E2 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 0E 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 0E 00 BE 24 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 95 [15:01:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:01:39]wFMCommunicate OK [15:01:39]SAM_PROTO_GetShiftState done [15:01:39]FM_GetShiftState done [15:01:39]req_shift_opened done [15:01:39]requested_item shift.open_date is exist - process it [15:01:39]req_shift_open_date [15:01:39]req_shift_open_date done [15:01:39]produce_requested_data done [15:01:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162854,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:01:39]process_action_free print_text [15:01:39]json_value_free [15:01:39]json_value_free done [15:01:39]process_json_proto returns [15:01:39]Send response to host [15:01:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162854,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:01:39]free response buf [15:01:39]execute_script done [15:01:39]execute_script returns [15:01:39]free content buf [15:01:39]Sock 7.Close socket [15:01:39]Sock 7.Thread stoped [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: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:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:34]accept exits with 9 [15:05:34]New connection [15:05:34]New thread 3066879332 created [15:05:34]Thread 3066735972 joined [15:05:34]Waiting for new connection... [15:05:34] Sock 9.Parse request [15:05:34]Sock 9.Check first char [15:05:34]Sock 9.First char is OK [15:05:34]request: POST /json_proto HTTP/1.0 [15:05:34]Method: POST [15:05:34]URL: /json_proto [15:05:34]Method is POST - this is cgi request [15:05:34]url: /json_proto [15:05:34]query_string will be loaded in cgi processing [15:05:34]execute_cgi json_proto POST (null) [15:05:34]execute_cgi path=json_proto method=POST [15:05:34]POST find Content-Length [15:05:34]Host: 172.17.39.67:8080 [15:05:34]Content-Length: 678 [15:05:34]Content-Type: application/json [15:05:34] [15:05:34]POST finish read [15:05:34]Found Content-Length = 678 [15:05:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "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:05:34]execute_script... [15:05: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)1319459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "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:05:34]POST & json_proto [15:05:34]process_json_proto [15:05:34]json parsed OK: [15:05:34]protocol is kg_v1.0 [15:05:34]action value=close_receipt [15:05:34]process_action close_receipt [15:05:34]cmd_close_receipt [15:05:34]MH_GetDate [15:05:34]Write to MH i2c: F0 00 00 BF 24 D2 [15:05:34]Write i2c OK [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: F0 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: F0 09 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: F0 09 00 BF 24 00 40 E9 93 66 B6 85 93 66 31 [15:05:34]GetLastDocTimeStamp 1720969062 [15:05:34]current date 1720969536 [15:05:34]FM_GetShiftState [15:05:34]SAM_PROTO_GetShiftState [15:05:34]wFMCommunicate request_size=4 [15:05:34]MH_SAM_APDU [15:05:34]CAPDU: 80 13 01 00 [15:05:34]Write to MH i2c: E2 08 00 C0 24 80 13 01 00 00 00 00 00 61 [15:05:34]Write i2c OK [15:05:34]MH_I2C_Read... [15:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:34]Read from MH i2c: E2 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 0E 00 [15:05:34]MH_I2C_Read... [15:05:34]Read from MH i2c: E2 0E 00 C0 24 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 97 [15:05:34]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:05:34]wFMCommunicate OK [15:05:34]SAM_PROTO_GetShiftState done [15:05:34]FM_GetShiftState done [15:05:34]opened in 1720915483 [15:05:34]opened+sec_in_day 1721001883 [15:05:34]quantity*price = 40045 [15:05:34]sum+1 = 40046 [15:05:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 167 14.07.2024 15:05 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162855 ФПД: 129435715370325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150536&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162855&fm=129435715370325&tin=02508201610067®Number=0000000000090858&sum=40000 [15:05:36]StoreToDocumentArchive [15:05:36]shift 463 fd 162855 [15:05:36]save to /storage/0463/doc_00162855 [15:05:36]save last doc name /storage/0463/doc_00162855 to /storage/kkm_last_doc_name [15:05:36]save OK [15:05:36]Clear old archive folders... [15:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:36]tlvbuf is 0123B6A0 [15:05:36]SAM_PROTO_ClearQueue [15:05:36]wFMCommunicate request_size=4 [15:05:36]MH_SAM_APDU [15:05:36]CAPDU: 80 09 00 00 [15:05:36]Write to MH i2c: E2 08 00 CD 24 80 09 00 00 00 00 00 00 63 [15:05:36]Write i2c OK [15:05:36]MH_I2C_Read... [15:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:36]Read from MH i2c: E2 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 03 00 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 03 00 CD 24 00 90 00 65 [15:05:36]RAPDU: 90 00 [15:05:36]wFMCommunicate OK [15:05:36]SAM_PROTO_ClearQueue done [15:05:36]KKMCreateOFDPacket [15:05:36]OFDProtocolAddRootSTLVToBuf [15:05:36]FM_MakeSignedData [15:05:36]FM_MakeSignedData [15:05:36]SAM_PROTO_SignData [15:05:36]wFMCommunicate request_size=4 [15:05:36]MH_SAM_APDU [15:05:36]CAPDU: 80 0D 01 02 [15:05:36]Write to MH i2c: E2 08 00 CE 24 80 0D 01 02 00 00 00 00 6B [15:05:36]Write i2c OK [15:05:36]MH_I2C_Read... [15:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:36]Read from MH i2c: E2 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 03 00 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 03 00 CE 24 00 90 00 66 [15:05:36]RAPDU: 90 00 [15:05:36]wFMCommunicate OK [15:05:36]wFMCommunicate request_size=255 [15:05:36]MH_SAM_APDU [15:05: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 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 40 E9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7C 02 00 35 04 06 00 75 [15:05:36]Write to MH i2c: E2 02 01 CF 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 40 E9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7C 02 00 35 04 06 00 75 00 00 B9 [15:05:36]Write i2c OK [15:05:36]MH_I2C_Read... [15:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:36]Read from MH i2c: E2 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 03 00 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 03 00 CF 24 00 90 00 67 [15:05:36]RAPDU: 90 00 [15:05:36]wFMCommunicate OK [15:05:36]wFMCommunicate request_size=10 [15:05:36]MH_SAM_APDU [15:05:36]CAPDU: 80 0D 02 02 05 B8 99 D5 FD 55 [15:05:36]Write to MH i2c: E2 0D 00 D0 24 80 0D 02 02 05 00 B8 99 D5 FD 55 00 00 F0 [15:05:36]Write i2c OK [15:05:36]MH_I2C_Read... [15:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:36]Read from MH i2c: E2 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 03 00 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 03 00 D0 24 00 90 00 68 [15:05:36]RAPDU: 90 00 [15:05:36]wFMCommunicate OK [15:05:36]wFMCommunicate request_size=4 [15:05:36]MH_SAM_APDU [15:05:36]CAPDU: 80 0D 03 02 [15:05:36]Write to MH i2c: E2 08 00 D1 24 80 0D 03 02 00 00 00 00 70 [15:05:36]Write i2c OK [15:05:36]MH_I2C_Read... [15:05:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:36]Read from MH i2c: E2 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 0B 00 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 0B 00 D1 24 00 EC 72 99 7E B9 59 7B EB 90 00 5E [15:05:36]RAPDU: EC 72 99 7E B9 59 7B EB 90 00 [15:05:36]wFMCommunicate OK [15:05:36]SAM_PROTO_SignData done [15:05:36]FM_MakeSignedData done [15:05:36]CreateOFDProtocolMessage [15:05:36]wFMCommunicate request_size=4 [15:05:36]MH_SAM_APDU [15:05:36]CAPDU: 80 11 00 00 [15:05:36]Write to MH i2c: E2 08 00 D2 24 80 11 00 00 00 00 00 00 70 [15:05:36]Write i2c OK [15:05:36]MH_I2C_Read... [15:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:36]Read from MH i2c: E2 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 17 00 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: E2 17 00 D2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D0 [15:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:05:36]wFMCommunicate OK [15:05:36]CreateOFDProtocolMessage done [15:05:36]OFDSenderStorePacket 162855 [15:05:36]StoreOFDPacket docnum=162855 [15:05:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F8 FE 07 01 FA AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 40 E9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7C 02 00 35 04 06 00 75 B8 99 D5 FD 55 EC 72 99 7E B9 59 7B EB [15:05:36]CheckFolder [15:05:36]dirname=/storage/ofd_packets [15:05:36]CheckFolder done [15:05:36]ProducePacketName [15:05:36]name=ofd_packets/00162855 [15:05:36]NVStorageSaveData ofd_packets/00162855 [15:05:36]File name is /storage/ofd_packets/00162855 [15:05:36]Write 301 bytes [15:05:36]NVStorageSaveData done [15:05:36]OFDSenderStorePacket done [15:05:36]KKMCreateOFDPacket done [15:05:36]NVStorageSaveData kkm_last_timestamp [15:05:36]File name is /storage/kkm_last_timestamp [15:05:36]Write 4 bytes [15:05:36]NVStorageSaveData done [15:05:36]ExternCall_PrintAddStr [15:05:36]wPrintStart [15:05:36]Write to MH i2c: 01 00 00 D3 24 F7 [15:05:36]Write i2c OK [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: 01 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: 01 07 00 [15:05:36]MH_I2C_Read... [15:05:36]Read from MH i2c: 01 07 00 D3 24 00 00 00 00 00 FF 0F 0C [15:05:36]RasterBufferAndPrint [15:05:36]line Счет N : (1)1319459 [15:05:36]line ИНН: 02508201610067 [15:05:36]line Контрольно-Кассовый Чек [15:05:36]line ПРОДАЖА [15:05:36]line ТРК (МРК, ГНК) : 33 [15:05:36]line Товар: 2710124130 [15:05:36]line Аи-92-К-5 [15:05:36]line 6.040 * 66.30 [15:05:36]line = 400.45 [15:05:36]line НДС 12% НСП 1% [15:05:36]line > о реализуемом товаре [15:05:36]line ОКРУГЛЕНИЕ: -0.45 [15:05:36]line ИТОГО: 400.00 [15:05:36]line Внесено: 400.00 [15:05:36]line СДАЧА: 0.00 [15:05:36]line НСП 1% : 3.54 [15:05:36]line НДС 12% : 42.53 [15:05:36]line Наличными: 400.00 [15:05:36]line Безнал.: 0.00 [15:05:36]line Место: АЗС № 140 "Партнер Нефть" [15:05:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:05:36]line СНО: Общий режим [15:05:36]line Чек 167 14.07.2024 15:05 [15:05:36]line Смена: 463 ФФД: 1.0 [15:05:36]line ЗНМ: 0300000129 [15:05:36]line РНМ: 0000000000090858 [15:05:36]line Версия ККМ: 001 [15:05:36]line ФМ: 0000000000874899 [15:05:36]line ФД: 162855 [15:05:36]line ФПД: 129435715370325 [15:05:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150536&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162855&fm=129435715370325&tin=02508201610067®Number=0000000000090858&sum=40000 [15:05:36]OFD Sender: Processing packet 162855 [packets to send 106, broken 105] [15:05:36]ProducePacketName [15:05:36]name=ofd_packets/00162855 [15:05:36]OFD Sender: To server: pG, [15:05:36]CommunicateWithHost lk.salyk.kg:30040 [15:05:36]ConnectInit lk.salyk.kg [15:05:36]written 0, free lines is 4095 [15:05:37]Connected sock=10 [15:05:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F8 FE 07 01 FA AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 40 E9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7C 02 00 35 04 06 00 75 B8 99 D5 FD 55 EC 72 99 7E B9 59 7B EB [15:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 57 54 47 00 14 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7C 02 00 F4 03 04 00 4D 95 93 66 B6 04 01 00 00 1D 61 5B 84 28 45 99 B3 [15:05:37]CommunicateWithHost err = 0 [15:05:37]CheckOFDResponse [15:05:37]1017 (14) - 77093643461234 [15:05:37]1041 (16) - 0000000000874899 [15:05:37]1040 (4) - 162855 [15:05:37]1012 (4) - 14.07.2024 09:07 [15:05:37]1206 (1) - 0 [15:05:37]OFD Sender: Remove packet 162855 [15:05:37]ProducePacketName [15:05:37]name=ofd_packets/00162855 [15:05:37]NVStorageDeleteData [15:05:37]Write to MH i2c: 01 00 00 FE 24 22 [15:05:37]Write i2c OK [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: 01 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: 01 07 00 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: 01 07 00 FE 24 00 00 00 00 00 F1 0C 26 [15:05:37]RasterBufferAndPrint [15:05:37]line [15:05:37]line [15:05:37]line [15:05:37]line [15:05:37]line [15:05:37]written 0, free lines is 3322 [15:05:37]MH_Cut [15:05:37]Write to MH i2c: D1 01 00 05 25 01 FC [15:05:37]Write i2c OK [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: D1 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: D1 01 00 [15:05:37]MH_I2C_Read... [15:05:37]Read from MH i2c: D1 01 00 05 25 00 FB [15:05:37]Write to MH i2c: 01 00 00 06 25 2B [15:05:37]Write i2c OK [15:05:37]MH_I2C_Read... [15:05:37]OFD Sender: No OFD packet to send [15:05:38]*** Cut start [15:05:38]*** Purtial cut [15:05:38]*** CUTSNS_PIN = 0 [15:05:38]*** Stage 1: CUTSNS_PIN = 1 [15:05:40]Read from MH i2c: 01 [15:05:40]MH_I2C_Read... [15:05:40]*** Stop cut motor [15:05:40]*** Cut end [15:05:40]Read from MH i2c: 01 07 00 [15:05:40]MH_I2C_Read... [15:05:40]Read from MH i2c: 01 07 00 06 25 00 00 00 00 00 FF 0F 40 [15:05:40]process_action close_receipt done [15:05:40]requested_data is exist [15:05:40]produce_requested_data [15:05:40]requested_item fm.sn is exist - process it [15:05:40]wFMCommunicate request_size=4 [15:05:40]MH_SAM_APDU [15:05:40]CAPDU: 80 11 00 00 [15:05:40]Write to MH i2c: E2 08 00 07 25 80 11 00 00 00 00 00 00 A6 [15:05:40]Write i2c OK [15:05:40]MH_I2C_Read... [15:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:40]Read from MH i2c: E2 [15:05:40]MH_I2C_Read... [15:05:40]Read from MH i2c: E2 17 00 [15:05:40]MH_I2C_Read... [15:05:40]Read from MH i2c: E2 17 00 07 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 06 [15:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:05:40]wFMCommunicate OK [15:05:40]requested_item fd.num is exist - process it [15:05:40]SAM_PROTO_GetFieldsCounters [15:05:40]wFMCommunicate request_size=4 [15:05:40]MH_SAM_APDU [15:05:40]CAPDU: 80 13 00 00 [15:05:40]Write to MH i2c: E2 08 00 08 25 80 13 00 00 00 00 00 00 A9 [15:05:40]Write i2c OK [15:05:40]MH_I2C_Read... [15:05:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:40]Read from MH i2c: E2 [15:05:40]MH_I2C_Read... [15:05:40]Read from MH i2c: E2 62 00 [15:05:40]MH_I2C_Read... [15:05:40]Read from MH i2c: E2 62 00 08 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 27 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [15:05:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 27 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:40]wFMCommunicate OK [15:05:40]SAM_PROTO_GetFieldsCounters done [15:05:40]requested_item shift.num is exist - process it [15:05:40]requested_item shift.opened is exist - process it [15:05:40]req_shift_opened [15:05:40]FM_GetShiftState [15:05:40]SAM_PROTO_GetShiftState [15:05:40]wFMCommunicate request_size=4 [15:05:40]MH_SAM_APDU [15:05:40]CAPDU: 80 13 01 00 [15:05:40]Write to MH i2c: E2 08 00 09 25 80 13 01 00 00 00 00 00 AB [15:05:40]Write i2c OK [15:05:40]MH_I2C_Read... [15:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:40]Read from MH i2c: E2 [15:05:40]MH_I2C_Read... [15:05:40]Read from MH i2c: E2 0E 00 [15:05:40]MH_I2C_Read... [15:05:40]Read from MH i2c: E2 0E 00 09 25 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E1 [15:05:40]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:05:40]wFMCommunicate OK [15:05:40]SAM_PROTO_GetShiftState done [15:05:40]FM_GetShiftState done [15:05:40]req_shift_opened done [15:05:40]requested_item shift.open_date is exist - process it [15:05:40]req_shift_open_date [15:05:40]req_shift_open_date done [15:05:40]produce_requested_data done [15:05:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162855,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:05:40]process_action_free close_receipt [15:05:40]json_value_free [15:05:40]json_value_free done [15:05:40]process_json_proto returns [15:05:40]Send response to host [15:05:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162855,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:05:40]free response buf [15:05:40]execute_script done [15:05:40]execute_script returns [15:05:40]free content buf [15:05:40]Sock 9.Close socket [15:05:40]Sock 9.Thread stoped [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:08:58]accept exits with 7 [15:08:58]New connection [15:08:58]New thread 3066735972 created [15:08:58]Thread 3066879332 joined [15:08:58]Waiting for new connection... [15:08:58] Sock 7.Parse request [15:08:58]Sock 7.Check first char [15:08:58]Sock 7.First char is OK [15:08:58]request: POST /json_proto HTTP/1.0 [15:08:58]Method: POST [15:08:58]URL: /json_proto [15:08:58]Method is POST - this is cgi request [15:08:58]url: /json_proto [15:08:58]query_string will be loaded in cgi processing [15:08:58]execute_cgi json_proto POST (null) [15:08:58]execute_cgi path=json_proto method=POST [15:08:58]POST find Content-Length [15:08:58]Host: 172.17.39.67:8080 [15:08:58]Content-Length: 818 [15:08:58]Content-Type: application/json [15:08:58] [15:08:58]POST finish read [15:08:58]Found Content-Length = 818 [15:08:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:58]execute_script... [15:08: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)1319461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:58]POST & json_proto [15:08:58]process_json_proto [15:08:58]json parsed OK: [15:08:58]protocol is kg_v1.0 [15:08:58]action value=close_receipt [15:08:58]process_action close_receipt [15:08:58]cmd_close_receipt [15:08:58]MH_GetDate [15:08:58]Write to MH i2c: F0 00 00 0A 25 1E [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: F0 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: F0 09 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: F0 09 00 0A 25 00 0C EA 93 66 B6 85 93 66 4A [15:08:58]GetLastDocTimeStamp 1720969536 [15:08:58]current date 1720969740 [15:08:58]FM_GetShiftState [15:08:58]SAM_PROTO_GetShiftState [15:08:58]wFMCommunicate request_size=4 [15:08:58]MH_SAM_APDU [15:08:58]CAPDU: 80 13 01 00 [15:08:58]Write to MH i2c: E2 08 00 0B 25 80 13 01 00 00 00 00 00 AD [15:08:58]Write i2c OK [15:08:58]MH_I2C_Read... [15:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:58]Read from MH i2c: E2 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 0E 00 [15:08:58]MH_I2C_Read... [15:08:58]Read from MH i2c: E2 0E 00 0B 25 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E3 [15:08:58]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:08:58]wFMCommunicate OK [15:08:58]SAM_PROTO_GetShiftState done [15:08:58]FM_GetShiftState done [15:08:58]opened in 1720915483 [15:08:58]opened+sec_in_day 1721001883 [15:08:58]quantity*price = 66300 [15:08:58]sum+1 = 66301 [15:08:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 0.00 Безнал.: 663.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 168 14.07.2024 15:09 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162856 ФПД: 144375764525415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150900&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162856&fm=144375764525415&tin=02508201610067®Number=0000000000090858&sum=66300 [15:08:59]StoreToDocumentArchive [15:08:59]shift 463 fd 162856 [15:08:59]save to /storage/0463/doc_00162856 [15:08:59]save last doc name /storage/0463/doc_00162856 to /storage/kkm_last_doc_name [15:08:59]save OK [15:08:59]Clear old archive folders... [15:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:59]tlvbuf is 01316520 [15:08:59]SAM_PROTO_ClearQueue [15:08:59]wFMCommunicate request_size=4 [15:08:59]MH_SAM_APDU [15:08:59]CAPDU: 80 09 00 00 [15:08:59]Write to MH i2c: E2 08 00 18 25 80 09 00 00 00 00 00 00 AF [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:59]Read from MH i2c: E2 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 03 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 03 00 18 25 00 90 00 B1 [15:08:59]RAPDU: 90 00 [15:08:59]wFMCommunicate OK [15:08:59]SAM_PROTO_ClearQueue done [15:08:59]KKMCreateOFDPacket [15:08:59]OFDProtocolAddRootSTLVToBuf [15:08:59]FM_MakeSignedData [15:08:59]FM_MakeSignedData [15:08:59]SAM_PROTO_SignData [15:08:59]wFMCommunicate request_size=4 [15:08:59]MH_SAM_APDU [15:08:59]CAPDU: 80 0D 01 02 [15:08:59]Write to MH i2c: E2 08 00 19 25 80 0D 01 02 00 00 00 00 B7 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:59]Read from MH i2c: E2 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 03 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 03 00 19 25 00 90 00 B2 [15:08:59]RAPDU: 90 00 [15:08:59]wFMCommunicate OK [15:08:59]wFMCommunicate request_size=255 [15:08:59]MH_SAM_APDU [15:08: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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 0C EA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7C 02 00 35 04 06 00 83 [15:08:59]Write to MH i2c: E2 02 01 1A 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 0C EA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7C 02 00 35 04 06 00 83 00 00 7F [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 03 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 03 00 1A 25 00 90 00 B3 [15:09:00]RAPDU: 90 00 [15:09:00]wFMCommunicate OK [15:09:00]wFMCommunicate request_size=10 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 0D 02 02 05 4F 1A 28 A1 67 [15:09:00]Write to MH i2c: E2 0D 00 1B 25 80 0D 02 02 05 00 4F 1A 28 A1 67 00 00 5D [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 03 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 03 00 1B 25 00 90 00 B4 [15:09:00]RAPDU: 90 00 [15:09:00]wFMCommunicate OK [15:09:00]wFMCommunicate request_size=4 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 0D 03 02 [15:09:00]Write to MH i2c: E2 08 00 1C 25 80 0D 03 02 00 00 00 00 BC [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 0B 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 0B 00 1C 25 00 93 32 27 EA A8 C4 5F 5B 90 00 B9 [15:09:00]RAPDU: 93 32 27 EA A8 C4 5F 5B 90 00 [15:09:00]wFMCommunicate OK [15:09:00]SAM_PROTO_SignData done [15:09:00]FM_MakeSignedData done [15:09:00]CreateOFDProtocolMessage [15:09:00]wFMCommunicate request_size=4 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 11 00 00 [15:09:00]Write to MH i2c: E2 08 00 1D 25 80 11 00 00 00 00 00 00 BC [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 17 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 17 00 1D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1C [15:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:09:00]wFMCommunicate OK [15:09:00]CreateOFDProtocolMessage done [15:09:00]OFDSenderStorePacket 162856 [15:09:00]StoreOFDPacket docnum=162856 [15:09:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E1 28 07 01 E5 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 0C EA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7C 02 00 35 04 06 00 83 4F 1A 28 A1 67 93 32 27 EA A8 C4 5F 5B [15:09:00]CheckFolder [15:09:00]dirname=/storage/ofd_packets [15:09:00]CheckFolder done [15:09:00]ProducePacketName [15:09:00]name=ofd_packets/00162856 [15:09:00]NVStorageSaveData ofd_packets/00162856 [15:09:00]File name is /storage/ofd_packets/00162856 [15:09:00]Write 301 bytes [15:09:00]NVStorageSaveData done [15:09:00]OFDSenderStorePacket done [15:09:00]KKMCreateOFDPacket done [15:09:00]NVStorageSaveData kkm_last_timestamp [15:09:00]File name is /storage/kkm_last_timestamp [15:09:00]Write 4 bytes [15:09:00]NVStorageSaveData done [15:09:00]ExternCall_PrintAddStr [15:09:00]wPrintStart [15:09:00]Write to MH i2c: 01 00 00 1E 25 43 [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: 01 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: 01 07 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: 01 07 00 1E 25 00 00 00 00 00 FF 0F 58 [15:09:00]RasterBufferAndPrint [15:09:00]line Счет N : (1)1319461 [15:09:00]line ИНН: 02508201610067 [15:09:00]line Контрольно-Кассовый Чек [15:09:00]line ПРОДАЖА [15:09:00]line ТРК (МРК, ГНК) : 53 [15:09:00]line Товар: 2710124130 [15:09:00]line Аи-92-К-5 [15:09:00]line 10.000 * 66.30 [15:09:00]line = 663.00 [15:09:00]line НДС 12% НСП 1% [15:09:00]line > о реализуемом товаре [15:09:00]line ИТОГО: 663.00 [15:09:00]line НСП 1% : 5.87 [15:09:00]line НДС 12% : 70.41 [15:09:00]line Наличными: 0.00 [15:09:00]line Безнал.: 663.00 [15:09:00]line Место: АЗС № 140 "Партнер Нефть" [15:09:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:09:00]line СНО: Общий режим [15:09:00]line Чек 168 14.07.2024 15:09 [15:09:00]line Смена: 463 ФФД: 1.0 [15:09:00]line ЗНМ: 0300000129 [15:09:00]line РНМ: 0000000000090858 [15:09:00]line Версия ККМ: 001 [15:09:00]line Платежная система: Бакай Банк [15:09:00]line ФМ: 0000000000874899 [15:09:00]line ФД: 162856 [15:09:00]line ФПД: 144375764525415 [15:09:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150900&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162856&fm=144375764525415&tin=02508201610067®Number=0000000000090858&sum=66300 [15:09:00]written 0, free lines is 4095 [15:09:00]OFD Sender: Processing packet 162856 [packets to send 106, broken 105] [15:09:00]ProducePacketName [15:09:00]name=ofd_packets/00162856 [15:09:00]OFD Sender: To server: pG, [15:09:00]CommunicateWithHost lk.salyk.kg:30040 [15:09:00]ConnectInit lk.salyk.kg [15:09:00]Connected sock=10 [15:09:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E1 28 07 01 E5 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 0C EA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7C 02 00 35 04 06 00 83 4F 1A 28 A1 67 93 32 27 EA A8 C4 5F 5B [15:09:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5E 2C 47 00 E2 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7C 02 00 F4 03 04 00 19 96 93 66 B6 04 01 00 00 4D D9 55 D5 FE B1 62 E1 [15:09:00]CommunicateWithHost err = 0 [15:09:00]CheckOFDResponse [15:09:00]1017 (14) - 77093643461234 [15:09:00]1041 (16) - 0000000000874899 [15:09:00]1040 (4) - 162856 [15:09:00]1012 (4) - 14.07.2024 09:10 [15:09:00]1206 (1) - 0 [15:09:00]OFD Sender: Remove packet 162856 [15:09:00]ProducePacketName [15:09:00]name=ofd_packets/00162856 [15:09:00]NVStorageDeleteData [15:09:01]Write to MH i2c: 01 00 00 48 25 6D [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: 01 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: 01 07 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: 01 07 00 48 25 00 00 00 00 00 F3 0C 73 [15:09:01]RasterBufferAndPrint [15:09:01]line [15:09:01]line [15:09:01]line [15:09:01]line [15:09:01]line [15:09:01]written 0, free lines is 3321 [15:09:01]MH_Cut [15:09:01]Write to MH i2c: D1 01 00 4F 25 01 46 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: D1 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: D1 01 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: D1 01 00 4F 25 00 45 [15:09:01]Write to MH i2c: 01 00 00 50 25 75 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]OFD Sender: No OFD packet to send [15:09:01]*** Cut start [15:09:01]*** Purtial cut [15:09:01]*** Stage 1: CUTSNS_PIN = 1 [15:09:02]Read from MH i2c: 01 [15:09:02]MH_I2C_Read... [15:09:02]*** Stop cut motor [15:09:02]*** Cut end [15:09:02]Read from MH i2c: 01 07 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 07 00 50 25 00 00 00 00 00 FF 0F 8A [15:09:02]process_action close_receipt done [15:09:02]requested_data is exist [15:09:02]produce_requested_data [15:09:02]requested_item fm.sn is exist - process it [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 11 00 00 [15:09:02]Write to MH i2c: E2 08 00 51 25 80 11 00 00 00 00 00 00 F0 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 17 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 17 00 51 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 50 [15:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:09:02]wFMCommunicate OK [15:09:02]requested_item fd.num is exist - process it [15:09:02]SAM_PROTO_GetFieldsCounters [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 13 00 00 [15:09:02]Write to MH i2c: E2 08 00 52 25 80 13 00 00 00 00 00 00 F3 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 62 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 62 00 52 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 28 7C 02 00 0E 04 04 00 CF 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 94 [15:09:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 28 7C 02 00 0E 04 04 00 CF 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 [15:09:02]wFMCommunicate OK [15:09:02]SAM_PROTO_GetFieldsCounters done [15:09:02]requested_item shift.num is exist - process it [15:09:02]requested_item shift.opened is exist - process it [15:09:02]req_shift_opened [15:09:02]FM_GetShiftState [15:09:02]SAM_PROTO_GetShiftState [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 13 01 00 [15:09:02]Write to MH i2c: E2 08 00 53 25 80 13 01 00 00 00 00 00 F5 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 0E 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 0E 00 53 25 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2B [15:09:02]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:09:02]wFMCommunicate OK [15:09:02]SAM_PROTO_GetShiftState done [15:09:02]FM_GetShiftState done [15:09:02]req_shift_opened done [15:09:02]requested_item shift.open_date is exist - process it [15:09:02]req_shift_open_date [15:09:02]req_shift_open_date done [15:09:02]produce_requested_data done [15:09:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162856,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:09:02]process_action_free close_receipt [15:09:02]json_value_free [15:09:02]json_value_free done [15:09:02]process_json_proto returns [15:09:02]Send response to host [15:09:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162856,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:09:02]free response buf [15:09:02]execute_script done [15:09:02]execute_script returns [15:09:02]free content buf [15:09:02]Sock 7.Close socket [15:09:02]Sock 7.Thread stoped [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]accept exits with 9 [15:09:16]New connection [15:09:16]New thread 3066879332 created [15:09:16]Thread 3066735972 joined [15:09:16]Waiting for new connection... [15:09:16] Sock 9.Parse request [15:09:16]Sock 9.Check first char [15:09:16]Sock 9.First char is OK [15:09:16]request: POST /json_proto HTTP/1.0 [15:09:16]Method: POST [15:09:16]URL: /json_proto [15:09:16]Method is POST - this is cgi request [15:09:16]url: /json_proto [15:09:16]query_string will be loaded in cgi processing [15:09:16]execute_cgi json_proto POST (null) [15:09:16]execute_cgi path=json_proto method=POST [15:09:16]POST find Content-Length [15:09:16]Host: 172.17.39.67:8080 [15:09:16]Content-Length: 987 [15:09:16]Content-Type: application/json [15:09:16] [15:09:16]POST finish read [15:09:16]Found Content-Length = 987 [15:09:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.60, "quantity" : 81.010, "sum" : 5800.32, "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 140\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 81.01 \u0441\u043E\u043C", "deposit" : 5800.00, "total" : 5800.00, "payments": [ { "type": 0, "sum" : 5800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:16]execute_script... [15:09: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)1319460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.60, "quantity" : 81.010, "sum" : 5800.32, "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 140\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 81.01 \u0441\u043E\u043C", "deposit" : 5800.00, "total" : 5800.00, "payments": [ { "type": 0, "sum" : 5800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:16]POST & json_proto [15:09:16]process_json_proto [15:09:16]json parsed OK: [15:09:16]protocol is kg_v1.0 [15:09:16]action value=close_receipt [15:09:16]process_action close_receipt [15:09:16]cmd_close_receipt [15:09:16]MH_GetDate [15:09:16]Write to MH i2c: F0 00 00 54 25 68 [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: F0 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: F0 09 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: F0 09 00 54 25 00 1D EA 93 66 B6 85 93 66 A5 [15:09:16]GetLastDocTimeStamp 1720969740 [15:09:16]current date 1720969757 [15:09:16]FM_GetShiftState [15:09:16]SAM_PROTO_GetShiftState [15:09:16]wFMCommunicate request_size=4 [15:09:16]MH_SAM_APDU [15:09:16]CAPDU: 80 13 01 00 [15:09:16]Write to MH i2c: E2 08 00 55 25 80 13 01 00 00 00 00 00 F7 [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:16]Read from MH i2c: E2 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 0E 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 0E 00 55 25 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2D [15:09:16]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:09:16]wFMCommunicate OK [15:09:16]SAM_PROTO_GetShiftState done [15:09:16]FM_GetShiftState done [15:09:16]opened in 1720915483 [15:09:16]opened+sec_in_day 1721001883 [15:09:16]quantity*price = 580031 [15:09:16]sum+1 = 580033 [15:09:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 5800.00 Внесено: 5800.00 СДАЧА: 0.00 НСП 1% : 51.33 НДС 12% : 615.96 Наличными: 5800.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 169 14.07.2024 15:09 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Дисконтная программа ДТ номер 140 сэкономлено 81.01 сом ФМ: 0000000000874899 ФД: 162857 ФПД: 34459921037685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150917&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162857&fm=34459921037685&tin=02508201610067®Number=0000000000090858&sum=580000 [15:09:17]StoreToDocumentArchive [15:09:17]shift 463 fd 162857 [15:09:17]save to /storage/0463/doc_00162857 [15:09:17]save last doc name /storage/0463/doc_00162857 to /storage/kkm_last_doc_name [15:09:17]save OK [15:09:17]Clear old archive folders... [15:09:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:09:17]tlvbuf is 013436A0 [15:09:17]SAM_PROTO_ClearQueue [15:09:17]wFMCommunicate request_size=4 [15:09:17]MH_SAM_APDU [15:09:17]CAPDU: 80 09 00 00 [15:09:17]Write to MH i2c: E2 08 00 62 25 80 09 00 00 00 00 00 00 F9 [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 62 25 00 90 00 FB [15:09:17]RAPDU: 90 00 [15:09:17]wFMCommunicate OK [15:09:17]SAM_PROTO_ClearQueue done [15:09:17]KKMCreateOFDPacket [15:09:17]OFDProtocolAddRootSTLVToBuf [15:09:17]FM_MakeSignedData [15:09:17]FM_MakeSignedData [15:09:17]SAM_PROTO_SignData [15:09:17]wFMCommunicate request_size=4 [15:09:17]MH_SAM_APDU [15:09:17]CAPDU: 80 0D 01 02 [15:09:17]Write to MH i2c: E2 08 00 63 25 80 0D 01 02 00 00 00 00 01 [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 63 25 00 90 00 FC [15:09:17]RAPDU: 90 00 [15:09:17]wFMCommunicate OK [15:09:17]wFMCommunicate request_size=255 [15:09:17]MH_SAM_APDU [15:09:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 3C 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 C0 D9 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 D9 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C F0 00 00 00 00 07 04 06 00 A0 D9 08 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 1D EA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7C 02 00 35 04 06 00 [15:09:17]Write to MH i2c: E2 02 01 64 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 3C 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 C0 D9 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 D9 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C F0 00 00 00 00 07 04 06 00 A0 D9 08 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 1D EA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7C 02 00 35 04 06 00 00 00 8A [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 64 25 00 90 00 FD [15:09:17]RAPDU: 90 00 [15:09:17]wFMCommunicate OK [15:09:17]wFMCommunicate request_size=11 [15:09:17]MH_SAM_APDU [15:09:17]CAPDU: 80 0D 02 02 06 1F 57 53 5A 39 75 [15:09:17]Write to MH i2c: E2 0E 00 65 25 80 0D 02 02 06 00 1F 57 53 5A 39 75 00 00 E1 [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 65 25 00 90 00 FE [15:09:17]RAPDU: 90 00 [15:09:17]wFMCommunicate OK [15:09:17]wFMCommunicate request_size=4 [15:09:17]MH_SAM_APDU [15:09:17]CAPDU: 80 0D 03 02 [15:09:17]Write to MH i2c: E2 08 00 66 25 80 0D 03 02 00 00 00 00 06 [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 0B 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 0B 00 66 25 00 5A E1 DD ED 41 74 FD 85 90 00 43 [15:09:17]RAPDU: 5A E1 DD ED 41 74 FD 85 90 00 [15:09:17]wFMCommunicate OK [15:09:17]SAM_PROTO_SignData done [15:09:17]FM_MakeSignedData done [15:09:17]CreateOFDProtocolMessage [15:09:17]wFMCommunicate request_size=4 [15:09:17]MH_SAM_APDU [15:09:17]CAPDU: 80 11 00 00 [15:09:17]Write to MH i2c: E2 08 00 67 25 80 11 00 00 00 00 00 00 06 [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 17 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 17 00 67 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 66 [15:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:09:17]wFMCommunicate OK [15:09:17]CreateOFDProtocolMessage done [15:09:17]OFDSenderStorePacket 162857 [15:09:17]StoreOFDPacket docnum=162857 [15:09:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4B D6 08 01 C7 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 3C 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 C0 D9 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 D9 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C F0 00 00 00 00 07 04 06 00 A0 D9 08 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 1D EA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7C 02 00 35 04 06 00 1F 57 53 5A 39 75 5A E1 DD ED 41 74 FD 85 [15:09:17]CheckFolder [15:09:17]dirname=/storage/ofd_packets [15:09:17]CheckFolder done [15:09:17]ProducePacketName [15:09:17]name=ofd_packets/00162857 [15:09:17]NVStorageSaveData ofd_packets/00162857 [15:09:17]File name is /storage/ofd_packets/00162857 [15:09:17]Write 302 bytes [15:09:17]NVStorageSaveData done [15:09:17]OFDSenderStorePacket done [15:09:17]KKMCreateOFDPacket done [15:09:17]NVStorageSaveData kkm_last_timestamp [15:09:17]File name is /storage/kkm_last_timestamp [15:09:17]Write 4 bytes [15:09:17]NVStorageSaveData done [15:09:17]ExternCall_PrintAddStr [15:09:17]wPrintStart [15:09:17]Write to MH i2c: 01 00 00 68 25 8D [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: 01 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: 01 07 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: 01 07 00 68 25 00 00 00 00 00 FF 0F A2 [15:09:17]RasterBufferAndPrint [15:09:17]line Счет N : (1)1319460 [15:09:17]line ИНН: 02508201610067 [15:09:17]line Контрольно-Кассовый Чек [15:09:17]line ПРОДАЖА [15:09:17]line ТРК (МРК, ГНК) : 21 [15:09:17]line Товар: 2710194210 [15:09:17]line ДТ(л)-К-5 [15:09:17]line 81.010 * 71.60 [15:09:17]line = 5800.32 [15:09:17]line НДС 12% НСП 1% [15:09:17]line > о реализуемом товаре [15:09:17]line ОКРУГЛЕНИЕ: -0.32 [15:09:17]line ИТОГО: 5800.00 [15:09:17]line Внесено: 5800.00 [15:09:17]line СДАЧА: 0.00 [15:09:17]line НСП 1% : 51.33 [15:09:17]line НДС 12% : 615.96 [15:09:17]line Наличными: 5800.00 [15:09:17]line Безнал.: 0.00 [15:09:17]line Место: АЗС № 140 "Партнер Нефть" [15:09:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:09:17]line СНО: Общий режим [15:09:17]line Чек 169 14.07.2024 15:09 [15:09:17]line Смена: 463 ФФД: 1.0 [15:09:17]line ЗНМ: 0300000129 [15:09:17]line РНМ: 0000000000090858 [15:09:17]line Версия ККМ: 001 [15:09:17]line [15:09:17]line Дисконтная программа [15:09:17]line ДТ [15:09:17]line номер 140 [15:09:17]line сэкономлено 81.01 сом [15:09:17]line ФМ: 0000000000874899 [15:09:17]line ФД: 162857 [15:09:17]line ФПД: 34459921037685 [15:09:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T150917&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162857&fm=34459921037685&tin=02508201610067®Number=0000000000090858&sum=580000 [15:09:18]OFD Sender: Processing packet 162857 [packets to send 106, broken 105] [15:09:18]ProducePacketName [15:09:18]name=ofd_packets/00162857 [15:09:18]OFD Sender: To server: pG, [15:09:18]CommunicateWithHost lk.salyk.kg:30040 [15:09:18]ConnectInit lk.salyk.kg [15:09:18]written 0, free lines is 4095 [15:09:18]Connected sock=10 [15:09:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4B D6 08 01 C7 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 3C 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 C0 D9 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 D9 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C F0 00 00 00 00 07 04 06 00 A0 D9 08 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 1D EA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7C 02 00 35 04 06 00 1F 57 53 5A 39 75 5A E1 DD ED 41 74 FD 85 [15:09:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E5 5E 47 00 11 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7C 02 00 F4 03 04 00 2B 96 93 66 B6 04 01 00 00 3F FC 00 43 83 43 E2 52 [15:09:18]CommunicateWithHost err = 0 [15:09:18]CheckOFDResponse [15:09:18]1017 (14) - 77093643461234 [15:09:18]1041 (16) - 0000000000874899 [15:09:18]1040 (4) - 162857 [15:09:18]1012 (4) - 14.07.2024 09:11 [15:09:18]1206 (1) - 0 [15:09:18]OFD Sender: Remove packet 162857 [15:09:18]ProducePacketName [15:09:18]name=ofd_packets/00162857 [15:09:18]NVStorageDeleteData [15:09:18]Write to MH i2c: 01 00 00 98 25 BD [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: 01 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: 01 07 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: 01 07 00 98 25 00 00 00 00 00 97 0C 67 [15:09:18]RasterBufferAndPrint [15:09:18]line [15:09:18]line [15:09:18]line [15:09:18]line [15:09:18]line [15:09:18]written 0, free lines is 3229 [15:09:18]MH_Cut [15:09:18]Write to MH i2c: D1 01 00 9F 25 01 96 [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: D1 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: D1 01 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: D1 01 00 9F 25 00 95 [15:09:18]Write to MH i2c: 01 00 00 A0 25 C5 [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:19]OFD Sender: No OFD packet to send [15:09:19]*** Cut start [15:09:19]*** Purtial cut [15:09:19]*** CUTSNS_PIN = 0 [15:09:19]*** Stage 1: CUTSNS_PIN = 1 [15:09:21]Read from MH i2c: 01 [15:09:21]MH_I2C_Read... [15:09:21]*** Stop cut motor [15:09:21]*** Cut end [15:09:21]Read from MH i2c: 01 07 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: 01 07 00 A0 25 00 00 00 00 00 FF 0F DA [15:09:21]process_action close_receipt done [15:09:21]requested_data is exist [15:09:21]produce_requested_data [15:09:21]requested_item fm.sn is exist - process it [15:09:21]wFMCommunicate request_size=4 [15:09:21]MH_SAM_APDU [15:09:21]CAPDU: 80 11 00 00 [15:09:21]Write to MH i2c: E2 08 00 A1 25 80 11 00 00 00 00 00 00 40 [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:21]Read from MH i2c: E2 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 17 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 17 00 A1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A0 [15:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:09:21]wFMCommunicate OK [15:09:21]requested_item fd.num is exist - process it [15:09:21]SAM_PROTO_GetFieldsCounters [15:09:21]wFMCommunicate request_size=4 [15:09:21]MH_SAM_APDU [15:09:21]CAPDU: 80 13 00 00 [15:09:21]Write to MH i2c: E2 08 00 A2 25 80 13 00 00 00 00 00 00 43 [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:21]Read from MH i2c: E2 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 62 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 62 00 A2 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 29 7C 02 00 0E 04 04 00 CF 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 E8 [15:09:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 29 7C 02 00 0E 04 04 00 CF 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 [15:09:21]wFMCommunicate OK [15:09:21]SAM_PROTO_GetFieldsCounters done [15:09:21]requested_item shift.num is exist - process it [15:09:21]requested_item shift.opened is exist - process it [15:09:21]req_shift_opened [15:09:21]FM_GetShiftState [15:09:21]SAM_PROTO_GetShiftState [15:09:21]wFMCommunicate request_size=4 [15:09:21]MH_SAM_APDU [15:09:21]CAPDU: 80 13 01 00 [15:09:21]Write to MH i2c: E2 08 00 A3 25 80 13 01 00 00 00 00 00 45 [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:21]Read from MH i2c: E2 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 0E 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 0E 00 A3 25 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7B [15:09:21]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:09:21]wFMCommunicate OK [15:09:21]SAM_PROTO_GetShiftState done [15:09:21]FM_GetShiftState done [15:09:21]req_shift_opened done [15:09:21]requested_item shift.open_date is exist - process it [15:09:21]req_shift_open_date [15:09:21]req_shift_open_date done [15:09:21]produce_requested_data done [15:09:21]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162857,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:09:21]process_action_free close_receipt [15:09:21]json_value_free [15:09:21]json_value_free done [15:09:21]process_json_proto returns [15:09:21]Send response to host [15:09:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162857,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:09:21]free response buf [15:09:21]execute_script done [15:09:21]execute_script returns [15:09:21]free content buf [15:09:21]Sock 9.Close socket [15:09:21]Sock 9.Thread stoped [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]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:16]accept exits with 7 [15:16:16]New connection [15:16:16]New thread 3066735972 created [15:16:16]Thread 3066879332 joined [15:16:16]Waiting for new connection... [15:16:16] Sock 7.Parse request [15:16:16]Sock 7.Check first char [15:16:16]Sock 7.First char is OK [15:16:16]request: POST /json_proto HTTP/1.0 [15:16:16]Method: POST [15:16:16]URL: /json_proto [15:16:16]Method is POST - this is cgi request [15:16:16]url: /json_proto [15:16:16]query_string will be loaded in cgi processing [15:16:16]execute_cgi json_proto POST (null) [15:16:16]execute_cgi path=json_proto method=POST [15:16:16]POST find Content-Length [15:16:16]Host: 172.17.39.67:8080 [15:16:16]Content-Length: 849 [15:16:16]Content-Type: application/json [15:16:16] [15:16:16]POST finish read [15:16:16]Found Content-Length = 849 [15:16:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 65.850, "sum" : 4780.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4780.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:16]execute_script... [15:16:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 65.850, "sum" : 4780.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4780.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:16]POST & json_proto [15:16:16]process_json_proto [15:16:16]json parsed OK: [15:16:16]protocol is kg_v1.0 [15:16:16]action value=close_receipt [15:16:16]process_action close_receipt [15:16:16]cmd_close_receipt [15:16:16]MH_GetDate [15:16:16]Write to MH i2c: F0 00 00 A4 25 B8 [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: F0 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: F0 09 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: F0 09 00 A4 25 00 C1 EB 93 66 B6 85 93 66 9A [15:16:16]GetLastDocTimeStamp 1720969757 [15:16:16]current date 1720970177 [15:16:16]FM_GetShiftState [15:16:16]SAM_PROTO_GetShiftState [15:16:16]wFMCommunicate request_size=4 [15:16:16]MH_SAM_APDU [15:16:16]CAPDU: 80 13 01 00 [15:16:16]Write to MH i2c: E2 08 00 A5 25 80 13 01 00 00 00 00 00 47 [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:16]Read from MH i2c: E2 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0E 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: E2 0E 00 A5 25 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7D [15:16:16]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:16:16]wFMCommunicate OK [15:16:16]SAM_PROTO_GetShiftState done [15:16:16]FM_GetShiftState done [15:16:16]opened in 1720915483 [15:16:16]opened+sec_in_day 1721001883 [15:16:16]quantity*price = 478071 [15:16:16]sum+1 = 478072 [15:16:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4780.71 НСП 1% : 42.31 НДС 12% : 507.69 Наличными: 0.00 Безнал.: 4780.71 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 170 14.07.2024 15:16 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162858 ФПД: 268632179204924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151617&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162858&fm=268632179204924&tin=02508201610067®Number=0000000000090858&sum=478071 [15:16:17]StoreToDocumentArchive [15:16:17]shift 463 fd 162858 [15:16:17]save to /storage/0463/doc_00162858 [15:16:17]save last doc name /storage/0463/doc_00162858 to /storage/kkm_last_doc_name [15:16:17]save OK [15:16:17]Clear old archive folders... [15:16:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:16:17]tlvbuf is B6F43300 [15:16:17]SAM_PROTO_ClearQueue [15:16:17]wFMCommunicate request_size=4 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 09 00 00 [15:16:17]Write to MH i2c: E2 08 00 B2 25 80 09 00 00 00 00 00 00 49 [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 B2 25 00 90 00 4B [15:16:17]RAPDU: 90 00 [15:16:17]wFMCommunicate OK [15:16:17]SAM_PROTO_ClearQueue done [15:16:17]KKMCreateOFDPacket [15:16:17]OFDProtocolAddRootSTLVToBuf [15:16:17]FM_MakeSignedData [15:16:17]FM_MakeSignedData [15:16:17]SAM_PROTO_SignData [15:16:17]wFMCommunicate request_size=4 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 0D 01 02 [15:16:17]Write to MH i2c: E2 08 00 B3 25 80 0D 01 02 00 00 00 00 51 [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 B3 25 00 90 00 4C [15:16:17]RAPDU: 90 00 [15:16:17]wFMCommunicate OK [15:16:17]wFMCommunicate request_size=255 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3A 01 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 77 4B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 4B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 C6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 4B 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C1 EB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7C 02 00 35 04 06 00 [15:16:17]Write to MH i2c: E2 02 01 B4 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3A 01 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 77 4B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 4B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 C6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 4B 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C1 EB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7C 02 00 35 04 06 00 00 00 2C [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 B4 25 00 90 00 4D [15:16:17]RAPDU: 90 00 [15:16:17]wFMCommunicate OK [15:16:17]wFMCommunicate request_size=11 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 0D 02 02 06 F4 51 CD 9D E3 3C [15:16:17]Write to MH i2c: E2 0E 00 B5 25 80 0D 02 02 06 00 F4 51 CD 9D E3 3C 00 00 2E [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 03 00 B5 25 00 90 00 4E [15:16:17]RAPDU: 90 00 [15:16:17]wFMCommunicate OK [15:16:17]wFMCommunicate request_size=4 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 0D 03 02 [15:16:17]Write to MH i2c: E2 08 00 B6 25 80 0D 03 02 00 00 00 00 56 [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 0B 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 0B 00 B6 25 00 5C 49 E3 E4 25 FA CA 50 90 00 FC [15:16:17]RAPDU: 5C 49 E3 E4 25 FA CA 50 90 00 [15:16:17]wFMCommunicate OK [15:16:17]SAM_PROTO_SignData done [15:16:17]FM_MakeSignedData done [15:16:17]CreateOFDProtocolMessage [15:16:17]wFMCommunicate request_size=4 [15:16:17]MH_SAM_APDU [15:16:17]CAPDU: 80 11 00 00 [15:16:17]Write to MH i2c: E2 08 00 B7 25 80 11 00 00 00 00 00 00 56 [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 17 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 17 00 B7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B6 [15:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:16:17]wFMCommunicate OK [15:16:17]CreateOFDProtocolMessage done [15:16:17]OFDSenderStorePacket 162858 [15:16:17]StoreOFDPacket docnum=162858 [15:16:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A8 BE 08 01 D1 B4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3A 01 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 77 4B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 4B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 C6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 4B 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C1 EB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7C 02 00 35 04 06 00 F4 51 CD 9D E3 3C 5C 49 E3 E4 25 FA CA 50 [15:16:17]CheckFolder [15:16:17]dirname=/storage/ofd_packets [15:16:17]CheckFolder done [15:16:17]ProducePacketName [15:16:17]name=ofd_packets/00162858 [15:16:17]NVStorageSaveData ofd_packets/00162858 [15:16:17]File name is /storage/ofd_packets/00162858 [15:16:17]Write 302 bytes [15:16:17]NVStorageSaveData done [15:16:17]OFDSenderStorePacket done [15:16:17]KKMCreateOFDPacket done [15:16:17]NVStorageSaveData kkm_last_timestamp [15:16:17]File name is /storage/kkm_last_timestamp [15:16:17]Write 4 bytes [15:16:17]NVStorageSaveData done [15:16:17]ExternCall_PrintAddStr [15:16:17]wPrintStart [15:16:17]Write to MH i2c: 01 00 00 B8 25 DD [15:16:17]Write i2c OK [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: 01 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: 01 07 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: 01 07 00 B8 25 00 00 00 00 00 FF 0F F2 [15:16:17]RasterBufferAndPrint [15:16:17]line Счет N : (1)1319462 [15:16:17]line ИНН: 02508201610067 [15:16:17]line Контрольно-Кассовый Чек [15:16:17]line ПРОДАЖА [15:16:17]line ТРК (МРК, ГНК) : 21 [15:16:17]line Товар: 2710194210 [15:16:17]line ДТ(л)-К-5 [15:16:17]line 65.850 * 72.60 [15:16:17]line = 4780.71 [15:16:17]line НДС 12% НСП 1% [15:16:17]line > о реализуемом товаре [15:16:17]line ИТОГО: 4780.71 [15:16:17]line НСП 1% : 42.31 [15:16:17]line НДС 12% : 507.69 [15:16:17]line Наличными: 0.00 [15:16:17]line Безнал.: 4780.71 [15:16:17]line Место: АЗС № 140 "Партнер Нефть" [15:16:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:16:17]line СНО: Общий режим [15:16:17]line Чек 170 14.07.2024 15:16 [15:16:17]line Смена: 463 ФФД: 1.0 [15:16:17]line ЗНМ: 0300000129 [15:16:17]line РНМ: 0000000000090858 [15:16:17]line Версия ККМ: 001 [15:16:17]line Платежная система: АКБ Кыргызстан [15:16:17]line ФМ: 0000000000874899 [15:16:17]line ФД: 162858 [15:16:17]line ФПД: 268632179204924 [15:16:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151617&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162858&fm=268632179204924&tin=02508201610067®Number=0000000000090858&sum=478071 [15:16:18]OFD Sender: Processing packet 162858 [packets to send 106, broken 105] [15:16:18]ProducePacketName [15:16:18]name=ofd_packets/00162858 [15:16:18]OFD Sender: To server: pG, [15:16:18]CommunicateWithHost lk.salyk.kg:30040 [15:16:18]ConnectInit lk.salyk.kg [15:16:18]written 0, free lines is 4095 [15:16:18]Connected sock=10 [15:16:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A8 BE 08 01 D1 B4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3A 01 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 77 4B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 4B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 C6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 4B 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C1 EB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7C 02 00 35 04 06 00 F4 51 CD 9D E3 3C 5C 49 E3 E4 25 FA CA 50 [15:16:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9C 69 47 00 D2 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7C 02 00 F4 03 04 00 CF 97 93 66 B6 04 01 00 00 71 62 3A 73 B8 B9 95 4E [15:16:18]CommunicateWithHost err = 0 [15:16:18]CheckOFDResponse [15:16:18]1017 (14) - 77093643461234 [15:16:18]1041 (16) - 0000000000874899 [15:16:18]1040 (4) - 162858 [15:16:18]1012 (4) - 14.07.2024 09:18 [15:16:18]1206 (1) - 0 [15:16:18]OFD Sender: Remove packet 162858 [15:16:18]ProducePacketName [15:16:18]name=ofd_packets/00162858 [15:16:18]NVStorageDeleteData [15:16:18]Write to MH i2c: 01 00 00 E2 25 07 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: 01 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: 01 07 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: 01 07 00 E2 25 00 00 00 00 00 01 0D 1C [15:16:18]RasterBufferAndPrint [15:16:18]line [15:16:18]line [15:16:18]line [15:16:18]line [15:16:18]line [15:16:18]written 0, free lines is 3335 [15:16:18]MH_Cut [15:16:18]Write to MH i2c: D1 01 00 E9 25 01 E0 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: D1 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: D1 01 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: D1 01 00 E9 25 00 DF [15:16:18]Write to MH i2c: 01 00 00 EA 25 0F [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:19]OFD Sender: No OFD packet to send [15:16:19]*** Cut start [15:16:19]*** Purtial cut [15:16:19]*** Stage 1: CUTSNS_PIN = 1 [15:16:19]Read from MH i2c: 01 [15:16:19]MH_I2C_Read... [15:16:19]*** Stop cut motor [15:16:19]*** Cut end [15:16:19]Read from MH i2c: 01 07 00 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: 01 07 00 EA 25 00 00 00 00 00 FF 0F 24 [15:16:19]process_action close_receipt done [15:16:19]requested_data is exist [15:16:19]produce_requested_data [15:16:19]requested_item fm.sn is exist - process it [15:16:19]wFMCommunicate request_size=4 [15:16:19]MH_SAM_APDU [15:16:19]CAPDU: 80 11 00 00 [15:16:19]Write to MH i2c: E2 08 00 EB 25 80 11 00 00 00 00 00 00 8A [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:19]Read from MH i2c: E2 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: E2 17 00 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: E2 17 00 EB 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EA [15:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:16:19]wFMCommunicate OK [15:16:19]requested_item fd.num is exist - process it [15:16:19]SAM_PROTO_GetFieldsCounters [15:16:19]wFMCommunicate request_size=4 [15:16:19]MH_SAM_APDU [15:16:19]CAPDU: 80 13 00 00 [15:16:19]Write to MH i2c: E2 08 00 EC 25 80 13 00 00 00 00 00 00 8D [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:19]Read from MH i2c: E2 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: E2 62 00 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: E2 62 00 EC 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2A 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [15:16:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2A 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:19]wFMCommunicate OK [15:16:19]SAM_PROTO_GetFieldsCounters done [15:16:19]requested_item shift.num is exist - process it [15:16:19]requested_item shift.opened is exist - process it [15:16:19]req_shift_opened [15:16:19]FM_GetShiftState [15:16:19]SAM_PROTO_GetShiftState [15:16:19]wFMCommunicate request_size=4 [15:16:19]MH_SAM_APDU [15:16:19]CAPDU: 80 13 01 00 [15:16:19]Write to MH i2c: E2 08 00 ED 25 80 13 01 00 00 00 00 00 8F [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:19]Read from MH i2c: E2 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: E2 0E 00 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: E2 0E 00 ED 25 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C5 [15:16:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:16:19]wFMCommunicate OK [15:16:19]SAM_PROTO_GetShiftState done [15:16:19]FM_GetShiftState done [15:16:19]req_shift_opened done [15:16:19]requested_item shift.open_date is exist - process it [15:16:19]req_shift_open_date [15:16:19]req_shift_open_date done [15:16:19]produce_requested_data done [15:16:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162858,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:16:19]process_action_free close_receipt [15:16:19]json_value_free [15:16:19]json_value_free done [15:16:19]process_json_proto returns [15:16:19]Send response to host [15:16:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162858,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:16:19]free response buf [15:16:19]execute_script done [15:16:19]execute_script returns [15:16:19]free content buf [15:16:19]Sock 7.Close socket [15:16:19]Sock 7.Thread stoped [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:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]accept exits with 9 [15:19:44]New connection [15:19:44]New thread 3066879332 created [15:19:44]Thread 3066735972 joined [15:19:44]Waiting for new connection... [15:19:44] Sock 9.Parse request [15:19:44]Sock 9.Check first char [15:19:44]Sock 9.First char is OK [15:19:44]request: POST /json_proto HTTP/1.0 [15:19:44]Method: POST [15:19:44]URL: /json_proto [15:19:44]Method is POST - this is cgi request [15:19:44]url: /json_proto [15:19:44]query_string will be loaded in cgi processing [15:19:44]execute_cgi json_proto POST (null) [15:19:44]execute_cgi path=json_proto method=POST [15:19:44]POST find Content-Length [15:19:44]Host: 172.17.39.67:8080 [15:19:44]Content-Length: 849 [15:19:44]Content-Type: application/json [15:19:44] [15:19:44]POST finish read [15:19:44]Found Content-Length = 849 [15:19:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:44]execute_script... [15:19:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:44]POST & json_proto [15:19:44]process_json_proto [15:19:44]json parsed OK: [15:19:44]protocol is kg_v1.0 [15:19:44]action value=close_receipt [15:19:44]process_action close_receipt [15:19:44]cmd_close_receipt [15:19:44]MH_GetDate [15:19:44]Write to MH i2c: F0 00 00 EE 25 02 [15:19:44]Write i2c OK [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: F0 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: F0 09 00 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: F0 09 00 EE 25 00 91 EC 93 66 B6 85 93 66 B5 [15:19:44]GetLastDocTimeStamp 1720970177 [15:19:44]current date 1720970385 [15:19:44]FM_GetShiftState [15:19:44]SAM_PROTO_GetShiftState [15:19:44]wFMCommunicate request_size=4 [15:19:44]MH_SAM_APDU [15:19:44]CAPDU: 80 13 01 00 [15:19:44]Write to MH i2c: E2 08 00 EF 25 80 13 01 00 00 00 00 00 91 [15:19:44]Write i2c OK [15:19:44]MH_I2C_Read... [15:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:44]Read from MH i2c: E2 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 0E 00 [15:19:44]MH_I2C_Read... [15:19:44]Read from MH i2c: E2 0E 00 EF 25 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C7 [15:19:44]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:19:44]wFMCommunicate OK [15:19:44]SAM_PROTO_GetShiftState done [15:19:44]FM_GetShiftState done [15:19:44]opened in 1720915483 [15:19:44]opened+sec_in_day 1721001883 [15:19:44]quantity*price = 300055 [15:19:44]sum+1 = 300057 [15:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 171 14.07.2024 15:19 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162859 ФПД: 80409435482417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151945&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162859&fm=80409435482417&tin=02508201610067®Number=0000000000090858&sum=300056 [15:19:45]StoreToDocumentArchive [15:19:45]shift 463 fd 162859 [15:19:45]save to /storage/0463/doc_00162859 [15:19:45]save last doc name /storage/0463/doc_00162859 to /storage/kkm_last_doc_name [15:19:45]save OK [15:19:45]Clear old archive folders... [15:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:19:45]tlvbuf is 0130BE70 [15:19:45]SAM_PROTO_ClearQueue [15:19:45]wFMCommunicate request_size=4 [15:19:45]MH_SAM_APDU [15:19:45]CAPDU: 80 09 00 00 [15:19:45]Write to MH i2c: E2 08 00 FC 25 80 09 00 00 00 00 00 00 93 [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:45]Read from MH i2c: E2 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 FC 25 00 90 00 95 [15:19:45]RAPDU: 90 00 [15:19:45]wFMCommunicate OK [15:19:45]SAM_PROTO_ClearQueue done [15:19:45]KKMCreateOFDPacket [15:19:45]OFDProtocolAddRootSTLVToBuf [15:19:45]FM_MakeSignedData [15:19:45]FM_MakeSignedData [15:19:45]SAM_PROTO_SignData [15:19:45]wFMCommunicate request_size=4 [15:19:45]MH_SAM_APDU [15:19:45]CAPDU: 80 0D 01 02 [15:19:45]Write to MH i2c: E2 08 00 FD 25 80 0D 01 02 00 00 00 00 9B [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:45]Read from MH i2c: E2 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 FD 25 00 90 00 96 [15:19:45]RAPDU: 90 00 [15:19:45]wFMCommunicate OK [15:19:45]wFMCommunicate request_size=255 [15:19:45]MH_SAM_APDU [15:19:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 91 EC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7C 02 00 35 04 06 00 [15:19:45]Write to MH i2c: E2 02 01 FE 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 91 EC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7C 02 00 35 04 06 00 00 00 84 [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:45]Read from MH i2c: E2 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 FE 25 00 90 00 97 [15:19:45]RAPDU: 90 00 [15:19:45]wFMCommunicate OK [15:19:45]wFMCommunicate request_size=11 [15:19:45]MH_SAM_APDU [15:19:45]CAPDU: 80 0D 02 02 06 49 21 C7 D6 A9 31 [15:19:45]Write to MH i2c: E2 0E 00 FF 25 80 0D 02 02 06 00 49 21 C7 D6 A9 31 00 00 8B [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:45]Read from MH i2c: E2 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 03 00 FF 25 00 90 00 98 [15:19:45]RAPDU: 90 00 [15:19:45]wFMCommunicate OK [15:19:45]wFMCommunicate request_size=4 [15:19:45]MH_SAM_APDU [15:19:45]CAPDU: 80 0D 03 02 [15:19:45]Write to MH i2c: E2 08 00 00 26 80 0D 03 02 00 00 00 00 A1 [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:45]Read from MH i2c: E2 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 0B 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 0B 00 00 26 00 C5 48 62 51 88 81 B9 3D 90 00 61 [15:19:45]RAPDU: C5 48 62 51 88 81 B9 3D 90 00 [15:19:45]wFMCommunicate OK [15:19:45]SAM_PROTO_SignData done [15:19:45]FM_MakeSignedData done [15:19:45]CreateOFDProtocolMessage [15:19:45]wFMCommunicate request_size=4 [15:19:45]MH_SAM_APDU [15:19:45]CAPDU: 80 11 00 00 [15:19:45]Write to MH i2c: E2 08 00 01 26 80 11 00 00 00 00 00 00 A1 [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:45]Read from MH i2c: E2 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 17 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: E2 17 00 01 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 01 [15:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:19:45]wFMCommunicate OK [15:19:45]CreateOFDProtocolMessage done [15:19:45]OFDSenderStorePacket 162859 [15:19:45]StoreOFDPacket docnum=162859 [15:19:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6A 64 08 01 BA 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 91 EC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7C 02 00 35 04 06 00 49 21 C7 D6 A9 31 C5 48 62 51 88 81 B9 3D [15:19:45]CheckFolder [15:19:45]dirname=/storage/ofd_packets [15:19:45]CheckFolder done [15:19:45]ProducePacketName [15:19:45]name=ofd_packets/00162859 [15:19:45]NVStorageSaveData ofd_packets/00162859 [15:19:45]File name is /storage/ofd_packets/00162859 [15:19:45]Write 302 bytes [15:19:45]NVStorageSaveData done [15:19:45]OFDSenderStorePacket done [15:19:45]KKMCreateOFDPacket done [15:19:45]NVStorageSaveData kkm_last_timestamp [15:19:45]File name is /storage/kkm_last_timestamp [15:19:45]Write 4 bytes [15:19:45]NVStorageSaveData done [15:19:45]ExternCall_PrintAddStr [15:19:45]wPrintStart [15:19:45]Write to MH i2c: 01 00 00 02 26 28 [15:19:45]Write i2c OK [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: 01 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: 01 07 00 [15:19:45]MH_I2C_Read... [15:19:45]Read from MH i2c: 01 07 00 02 26 00 00 00 00 00 FF 0F 3D [15:19:45]RasterBufferAndPrint [15:19:45]line Счет N : (1)1319463 [15:19:45]line ИНН: 02508201610067 [15:19:45]line Контрольно-Кассовый Чек [15:19:45]line ПРОДАЖА [15:19:45]line ТРК (МРК, ГНК) : 11 [15:19:45]line Товар: 2710194210 [15:19:45]line ДТ(л)-К-5 [15:19:45]line 41.330 * 72.60 [15:19:45]line = 3000.56 [15:19:45]line НДС 12% НСП 1% [15:19:45]line > о реализуемом товаре [15:19:45]line ИТОГО: 3000.56 [15:19:45]line НСП 1% : 26.55 [15:19:45]line НДС 12% : 318.64 [15:19:45]line Наличными: 0.00 [15:19:45]line Безнал.: 3000.56 [15:19:45]line Место: АЗС № 140 "Партнер Нефть" [15:19:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:19:45]line СНО: Общий режим [15:19:45]line Чек 171 14.07.2024 15:19 [15:19:45]line Смена: 463 ФФД: 1.0 [15:19:45]line ЗНМ: 0300000129 [15:19:45]line РНМ: 0000000000090858 [15:19:45]line Версия ККМ: 001 [15:19:45]line Платежная система: АКБ Кыргызстан [15:19:45]line ФМ: 0000000000874899 [15:19:45]line ФД: 162859 [15:19:45]line ФПД: 80409435482417 [15:19:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T151945&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162859&fm=80409435482417&tin=02508201610067®Number=0000000000090858&sum=300056 [15:19:46]OFD Sender: Processing packet 162859 [packets to send 106, broken 105] [15:19:46]ProducePacketName [15:19:46]name=ofd_packets/00162859 [15:19:46]OFD Sender: To server: pG, [15:19:46]CommunicateWithHost lk.salyk.kg:30040 [15:19:46]ConnectInit lk.salyk.kg [15:19:46]written 0, free lines is 4095 [15:19:46]Connected sock=10 [15:19:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6A 64 08 01 BA 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 91 EC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7C 02 00 35 04 06 00 49 21 C7 D6 A9 31 C5 48 62 51 88 81 B9 3D [15:19:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3E 2A 47 00 F1 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7C 02 00 F4 03 04 00 9F 98 93 66 B6 04 01 00 00 4D B1 5F 2A 69 A9 65 AD [15:19:46]CommunicateWithHost err = 0 [15:19:46]CheckOFDResponse [15:19:46]1017 (14) - 77093643461234 [15:19:46]1041 (16) - 0000000000874899 [15:19:46]1040 (4) - 162859 [15:19:46]1012 (4) - 14.07.2024 09:21 [15:19:46]1206 (1) - 0 [15:19:46]OFD Sender: Remove packet 162859 [15:19:46]ProducePacketName [15:19:46]name=ofd_packets/00162859 [15:19:46]NVStorageDeleteData [15:19:46]Write to MH i2c: 01 00 00 2C 26 52 [15:19:46]Write i2c OK [15:19:46]MH_I2C_Read... [15:19:46]Read from MH i2c: 01 [15:19:46]MH_I2C_Read... [15:19:46]Read from MH i2c: 01 07 00 [15:19:46]MH_I2C_Read... [15:19:46]Read from MH i2c: 01 07 00 2C 26 00 00 00 00 00 FB 0C 60 [15:19:46]RasterBufferAndPrint [15:19:46]line [15:19:46]line [15:19:46]line [15:19:46]line [15:19:46]line [15:19:46]written 0, free lines is 3332 [15:19:46]MH_Cut [15:19:46]Write to MH i2c: D1 01 00 33 26 01 2B [15:19:46]Write i2c OK [15:19:46]MH_I2C_Read... [15:19:46]Read from MH i2c: D1 [15:19:46]MH_I2C_Read... [15:19:46]Read from MH i2c: D1 01 00 [15:19:46]MH_I2C_Read... [15:19:46]Read from MH i2c: D1 01 00 33 26 00 2A [15:19:46]Write to MH i2c: 01 00 00 34 26 5A [15:19:46]Write i2c OK [15:19:46]MH_I2C_Read... [15:19:46]OFD Sender: No OFD packet to send [15:19:47]*** Cut start [15:19:47]*** Purtial cut [15:19:47]*** CUTSNS_PIN = 0 [15:19:47]*** Stage 1: CUTSNS_PIN = 1 [15:19:49]Read from MH i2c: 01 [15:19:49]MH_I2C_Read... [15:19:49]*** Stop cut motor [15:19:49]*** Cut end [15:19:49]Read from MH i2c: 01 07 00 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: 01 07 00 34 26 00 00 00 00 00 FF 0F 6F [15:19:49]process_action close_receipt done [15:19:49]requested_data is exist [15:19:49]produce_requested_data [15:19:49]requested_item fm.sn is exist - process it [15:19:49]wFMCommunicate request_size=4 [15:19:49]MH_SAM_APDU [15:19:49]CAPDU: 80 11 00 00 [15:19:49]Write to MH i2c: E2 08 00 35 26 80 11 00 00 00 00 00 00 D5 [15:19:49]Write i2c OK [15:19:49]MH_I2C_Read... [15:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:49]Read from MH i2c: E2 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 17 00 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 17 00 35 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 35 [15:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:19:49]wFMCommunicate OK [15:19:49]requested_item fd.num is exist - process it [15:19:49]SAM_PROTO_GetFieldsCounters [15:19:49]wFMCommunicate request_size=4 [15:19:49]MH_SAM_APDU [15:19:49]CAPDU: 80 13 00 00 [15:19:49]Write to MH i2c: E2 08 00 36 26 80 13 00 00 00 00 00 00 D8 [15:19:49]Write i2c OK [15:19:49]MH_I2C_Read... [15:19:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:49]Read from MH i2c: E2 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 62 00 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 62 00 36 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2B 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [15:19:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2B 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:49]wFMCommunicate OK [15:19:49]SAM_PROTO_GetFieldsCounters done [15:19:49]requested_item shift.num is exist - process it [15:19:49]requested_item shift.opened is exist - process it [15:19:49]req_shift_opened [15:19:49]FM_GetShiftState [15:19:49]SAM_PROTO_GetShiftState [15:19:49]wFMCommunicate request_size=4 [15:19:49]MH_SAM_APDU [15:19:49]CAPDU: 80 13 01 00 [15:19:49]Write to MH i2c: E2 08 00 37 26 80 13 01 00 00 00 00 00 DA [15:19:49]Write i2c OK [15:19:49]MH_I2C_Read... [15:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:49]Read from MH i2c: E2 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 0E 00 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 0E 00 37 26 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 10 [15:19:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:19:49]wFMCommunicate OK [15:19:49]SAM_PROTO_GetShiftState done [15:19:49]FM_GetShiftState done [15:19:49]req_shift_opened done [15:19:49]requested_item shift.open_date is exist - process it [15:19:49]req_shift_open_date [15:19:49]req_shift_open_date done [15:19:49]produce_requested_data done [15:19:49]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162859,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:19:49]process_action_free close_receipt [15:19:49]json_value_free [15:19:49]json_value_free done [15:19:49]process_json_proto returns [15:19:49]Send response to host [15:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162859,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:19:49]free response buf [15:19:49]execute_script done [15:19:49]execute_script returns [15:19:49]free content buf [15:19:49]Sock 9.Close socket [15:19:49]Sock 9.Thread stoped [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:35]accept exits with 7 [15:26:35]New connection [15:26:35]New thread 3066735972 created [15:26:35]Thread 3066879332 joined [15:26:35]Waiting for new connection... [15:26:35] Sock 7.Parse request [15:26:35]Sock 7.Check first char [15:26:35]Sock 7.First char is OK [15:26:35]request: POST /json_proto HTTP/1.0 [15:26:35]Method: POST [15:26:35]URL: /json_proto [15:26:35]Method is POST - this is cgi request [15:26:35]url: /json_proto [15:26:35]query_string will be loaded in cgi processing [15:26:35]execute_cgi json_proto POST (null) [15:26:35]execute_cgi path=json_proto method=POST [15:26:35]POST find Content-Length [15:26:35]Host: 172.17.39.67:8080 [15:26:35]Content-Length: 688 [15:26:35]Content-Type: application/json [15:26:35] [15:26:35]POST finish read [15:26:35]Found Content-Length = 688 [15:26:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:35]execute_script... [15:26: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)1319464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:35]POST & json_proto [15:26:35]process_json_proto [15:26:35]json parsed OK: [15:26:35]protocol is kg_v1.0 [15:26:35]action value=close_receipt [15:26:35]process_action close_receipt [15:26:35]cmd_close_receipt [15:26:35]MH_GetDate [15:26:35]Write to MH i2c: F0 00 00 38 26 4D [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: F0 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: F0 09 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: F0 09 00 38 26 00 2D EE 93 66 B6 85 93 66 9E [15:26:35]GetLastDocTimeStamp 1720970385 [15:26:35]current date 1720970797 [15:26:35]FM_GetShiftState [15:26:35]SAM_PROTO_GetShiftState [15:26:35]wFMCommunicate request_size=4 [15:26:35]MH_SAM_APDU [15:26:35]CAPDU: 80 13 01 00 [15:26:35]Write to MH i2c: E2 08 00 39 26 80 13 01 00 00 00 00 00 DC [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:35]Read from MH i2c: E2 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 0E 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: E2 0E 00 39 26 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 12 [15:26:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:26:35]wFMCommunicate OK [15:26:35]SAM_PROTO_GetShiftState done [15:26:35]FM_GetShiftState done [15:26:35]opened in 1720915483 [15:26:35]opened+sec_in_day 1721001883 [15:26:35]quantity*price = 150064 [15:26:35]sum+1 = 150065 [15:26:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 172 14.07.2024 15:26 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162860 ФПД: 243512930866023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152637&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162860&fm=243512930866023&tin=02508201610067®Number=0000000000090858&sum=150000 [15:26:36]StoreToDocumentArchive [15:26:36]shift 463 fd 162860 [15:26:36]save to /storage/0463/doc_00162860 [15:26:36]save last doc name /storage/0463/doc_00162860 to /storage/kkm_last_doc_name [15:26:36]save OK [15:26:36]Clear old archive folders... [15:26:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:26:36]tlvbuf is 0134E600 [15:26:36]SAM_PROTO_ClearQueue [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 09 00 00 [15:26:36]Write to MH i2c: E2 08 00 46 26 80 09 00 00 00 00 00 00 DE [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 03 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 03 00 46 26 00 90 00 E0 [15:26:36]RAPDU: 90 00 [15:26:36]wFMCommunicate OK [15:26:36]SAM_PROTO_ClearQueue done [15:26:36]KKMCreateOFDPacket [15:26:36]OFDProtocolAddRootSTLVToBuf [15:26:36]FM_MakeSignedData [15:26:36]FM_MakeSignedData [15:26:36]SAM_PROTO_SignData [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 0D 01 02 [15:26:36]Write to MH i2c: E2 08 00 47 26 80 0D 01 02 00 00 00 00 E6 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 03 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 03 00 47 26 00 90 00 E1 [15:26:36]RAPDU: 90 00 [15:26:36]wFMCommunicate OK [15:26:36]wFMCommunicate request_size=255 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 2D EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7C 02 00 35 04 06 00 [15:26:36]Write to MH i2c: E2 02 01 48 26 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 2D EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7C 02 00 35 04 06 00 00 00 A2 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:37]Read from MH i2c: E2 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 03 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 03 00 48 26 00 90 00 E2 [15:26:37]RAPDU: 90 00 [15:26:37]wFMCommunicate OK [15:26:37]wFMCommunicate request_size=11 [15:26:37]MH_SAM_APDU [15:26:37]CAPDU: 80 0D 02 02 06 DD 79 45 BE 13 67 [15:26:37]Write to MH i2c: E2 0E 00 49 26 80 0D 02 02 06 00 DD 79 45 BE 13 67 00 00 C8 [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:37]Read from MH i2c: E2 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 03 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 03 00 49 26 00 90 00 E3 [15:26:37]RAPDU: 90 00 [15:26:37]wFMCommunicate OK [15:26:37]wFMCommunicate request_size=4 [15:26:37]MH_SAM_APDU [15:26:37]CAPDU: 80 0D 03 02 [15:26:37]Write to MH i2c: E2 08 00 4A 26 80 0D 03 02 00 00 00 00 EB [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:37]Read from MH i2c: E2 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 0B 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 0B 00 4A 26 00 A2 1A 8D 4B AD 47 AC 66 90 00 86 [15:26:37]RAPDU: A2 1A 8D 4B AD 47 AC 66 90 00 [15:26:37]wFMCommunicate OK [15:26:37]SAM_PROTO_SignData done [15:26:37]FM_MakeSignedData done [15:26:37]CreateOFDProtocolMessage [15:26:37]wFMCommunicate request_size=4 [15:26:37]MH_SAM_APDU [15:26:37]CAPDU: 80 11 00 00 [15:26:37]Write to MH i2c: E2 08 00 4B 26 80 11 00 00 00 00 00 00 EB [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:37]Read from MH i2c: E2 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 17 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 17 00 4B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4B [15:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:26:37]wFMCommunicate OK [15:26:37]CreateOFDProtocolMessage done [15:26:37]OFDSenderStorePacket 162860 [15:26:37]StoreOFDPacket docnum=162860 [15:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 DA 78 08 01 21 1C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 2D EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7C 02 00 35 04 06 00 DD 79 45 BE 13 67 A2 1A 8D 4B AD 47 AC 66 [15:26:37]CheckFolder [15:26:37]dirname=/storage/ofd_packets [15:26:37]CheckFolder done [15:26:37]ProducePacketName [15:26:37]name=ofd_packets/00162860 [15:26:37]NVStorageSaveData ofd_packets/00162860 [15:26:37]File name is /storage/ofd_packets/00162860 [15:26:37]Write 302 bytes [15:26:37]NVStorageSaveData done [15:26:37]OFDSenderStorePacket done [15:26:37]KKMCreateOFDPacket done [15:26:37]NVStorageSaveData kkm_last_timestamp [15:26:37]File name is /storage/kkm_last_timestamp [15:26:37]Write 4 bytes [15:26:37]NVStorageSaveData done [15:26:37]ExternCall_PrintAddStr [15:26:37]wPrintStart [15:26:37]Write to MH i2c: 01 00 00 4C 26 72 [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 07 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: 01 07 00 4C 26 00 00 00 00 00 FF 0F 87 [15:26:37]RasterBufferAndPrint [15:26:37]line Счет N : (1)1319464 [15:26:37]line ИНН: 02508201610067 [15:26:37]line Контрольно-Кассовый Чек [15:26:37]line ПРОДАЖА [15:26:37]line ТРК (МРК, ГНК) : 41 [15:26:37]line Товар: 2710194210 [15:26:37]line ДТ(л)-К-5 [15:26:37]line 20.670 * 72.60 [15:26:37]line = 1500.64 [15:26:37]line НДС 12% НСП 1% [15:26:37]line > о реализуемом товаре [15:26:37]line ОКРУГЛЕНИЕ: -0.64 [15:26:37]line ИТОГО: 1500.00 [15:26:37]line Внесено: 1500.00 [15:26:37]line СДАЧА: 0.00 [15:26:37]line НСП 1% : 13.28 [15:26:37]line НДС 12% : 159.36 [15:26:37]line Наличными: 1500.00 [15:26:37]line Безнал.: 0.00 [15:26:37]line Место: АЗС № 140 "Партнер Нефть" [15:26:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:26:37]line СНО: Общий режим [15:26:37]line Чек 172 14.07.2024 15:26 [15:26:37]line Смена: 463 ФФД: 1.0 [15:26:37]line ЗНМ: 0300000129 [15:26:37]line РНМ: 0000000000090858 [15:26:37]line Версия ККМ: 001 [15:26:37]line ФМ: 0000000000874899 [15:26:37]line ФД: 162860 [15:26:37]line ФПД: 243512930866023 [15:26:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152637&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162860&fm=243512930866023&tin=02508201610067®Number=0000000000090858&sum=150000 [15:26:37]OFD Sender: Processing packet 162860 [packets to send 106, broken 105] [15:26:37]ProducePacketName [15:26:37]name=ofd_packets/00162860 [15:26:37]OFD Sender: To server: pG, [15:26:37]CommunicateWithHost lk.salyk.kg:30040 [15:26:37]ConnectInit lk.salyk.kg [15:26:37]written 0, free lines is 4095 [15:26:37]Connected sock=10 [15:26:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 DA 78 08 01 21 1C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 2D EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7C 02 00 35 04 06 00 DD 79 45 BE 13 67 A2 1A 8D 4B AD 47 AC 66 [15:26:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D5 FD 47 00 D3 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7C 02 00 F4 03 04 00 3A 9A 93 66 B6 04 01 00 00 E2 69 EC EC A5 F6 9F D6 [15:26:37]CommunicateWithHost err = 0 [15:26:37]CheckOFDResponse [15:26:37]1017 (14) - 77093643461234 [15:26:37]1041 (16) - 0000000000874899 [15:26:37]1040 (4) - 162860 [15:26:37]1012 (4) - 14.07.2024 09:28 [15:26:37]1206 (1) - 0 [15:26:37]OFD Sender: Remove packet 162860 [15:26:37]ProducePacketName [15:26:37]name=ofd_packets/00162860 [15:26:37]NVStorageDeleteData [15:26:38]Write to MH i2c: 01 00 00 77 26 9D [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: 01 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: 01 07 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: 01 07 00 77 26 00 00 00 00 00 F3 0C A3 [15:26:38]RasterBufferAndPrint [15:26:38]line [15:26:38]line [15:26:38]line [15:26:38]line [15:26:38]line [15:26:38]written 0, free lines is 3324 [15:26:38]MH_Cut [15:26:38]Write to MH i2c: D1 01 00 7E 26 01 76 [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: D1 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: D1 01 00 [15:26:38]MH_I2C_Read... [15:26:38]Read from MH i2c: D1 01 00 7E 26 00 75 [15:26:38]Write to MH i2c: 01 00 00 7F 26 A5 [15:26:38]Write i2c OK [15:26:38]MH_I2C_Read... [15:26:38]OFD Sender: No OFD packet to send [15:26:38]*** Cut start [15:26:38]*** Purtial cut [15:26:38]*** Stage 1: CUTSNS_PIN = 1 [15:26:39]Read from MH i2c: 01 [15:26:39]MH_I2C_Read... [15:26:39]*** Stop cut motor [15:26:39]*** Cut end [15:26:39]Read from MH i2c: 01 07 00 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: 01 07 00 7F 26 00 00 00 00 00 FF 0F BA [15:26:39]process_action close_receipt done [15:26:39]requested_data is exist [15:26:39]produce_requested_data [15:26:39]requested_item fm.sn is exist - process it [15:26:39]wFMCommunicate request_size=4 [15:26:39]MH_SAM_APDU [15:26:39]CAPDU: 80 11 00 00 [15:26:39]Write to MH i2c: E2 08 00 80 26 80 11 00 00 00 00 00 00 20 [15:26:39]Write i2c OK [15:26:39]MH_I2C_Read... [15:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:39]Read from MH i2c: E2 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: E2 17 00 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: E2 17 00 80 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 80 [15:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:26:39]wFMCommunicate OK [15:26:39]requested_item fd.num is exist - process it [15:26:39]SAM_PROTO_GetFieldsCounters [15:26:39]wFMCommunicate request_size=4 [15:26:39]MH_SAM_APDU [15:26:39]CAPDU: 80 13 00 00 [15:26:39]Write to MH i2c: E2 08 00 81 26 80 13 00 00 00 00 00 00 23 [15:26:39]Write i2c OK [15:26:39]MH_I2C_Read... [15:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:39]Read from MH i2c: E2 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: E2 62 00 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: E2 62 00 81 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2C 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [15:26:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2C 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:39]wFMCommunicate OK [15:26:39]SAM_PROTO_GetFieldsCounters done [15:26:39]requested_item shift.num is exist - process it [15:26:39]requested_item shift.opened is exist - process it [15:26:39]req_shift_opened [15:26:39]FM_GetShiftState [15:26:39]SAM_PROTO_GetShiftState [15:26:39]wFMCommunicate request_size=4 [15:26:39]MH_SAM_APDU [15:26:39]CAPDU: 80 13 01 00 [15:26:39]Write to MH i2c: E2 08 00 82 26 80 13 01 00 00 00 00 00 25 [15:26:39]Write i2c OK [15:26:39]MH_I2C_Read... [15:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:39]Read from MH i2c: E2 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: E2 0E 00 [15:26:39]MH_I2C_Read... [15:26:39]Read from MH i2c: E2 0E 00 82 26 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5B [15:26:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:26:39]wFMCommunicate OK [15:26:39]SAM_PROTO_GetShiftState done [15:26:39]FM_GetShiftState done [15:26:39]req_shift_opened done [15:26:39]requested_item shift.open_date is exist - process it [15:26:39]req_shift_open_date [15:26:39]req_shift_open_date done [15:26:39]produce_requested_data done [15:26:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162860,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:26:39]process_action_free close_receipt [15:26:39]json_value_free [15:26:39]json_value_free done [15:26:39]process_json_proto returns [15:26:39]Send response to host [15:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162860,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:26:39]free response buf [15:26:39]execute_script done [15:26:39]execute_script returns [15:26:39]free content buf [15:26:39]Sock 7.Close socket [15:26:39]Sock 7.Thread stoped [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:46]accept exits with 9 [15:27:46]New connection [15:27:46]New thread 3066879332 created [15:27:46]Thread 3066735972 joined [15:27:46]Waiting for new connection... [15:27:46] Sock 9.Parse request [15:27:46]Sock 9.Check first char [15:27:46]Sock 9.First char is OK [15:27:46]request: POST /json_proto HTTP/1.0 [15:27:46]Method: POST [15:27:46]URL: /json_proto [15:27:46]Method is POST - this is cgi request [15:27:46]url: /json_proto [15:27:46]query_string will be loaded in cgi processing [15:27:46]execute_cgi json_proto POST (null) [15:27:46]execute_cgi path=json_proto method=POST [15:27:46]POST find Content-Length [15:27:46]Host: 172.17.39.67:8080 [15:27:46]Content-Length: 678 [15:27:46]Content-Type: application/json [15:27:46] [15:27:46]POST finish read [15:27:46]Found Content-Length = 678 [15:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "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" ] } } [15:27:46]execute_script... [15:27:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "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" ] } } [15:27:46]POST & json_proto [15:27:46]process_json_proto [15:27:46]json parsed OK: [15:27:46]protocol is kg_v1.0 [15:27:46]action value=close_receipt [15:27:46]process_action close_receipt [15:27:46]cmd_close_receipt [15:27:46]MH_GetDate [15:27:46]Write to MH i2c: F0 00 00 83 26 98 [15:27:46]Write i2c OK [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: F0 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: F0 09 00 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: F0 09 00 83 26 00 74 EE 93 66 B6 85 93 66 30 [15:27:46]GetLastDocTimeStamp 1720970797 [15:27:46]current date 1720970868 [15:27:46]FM_GetShiftState [15:27:46]SAM_PROTO_GetShiftState [15:27:46]wFMCommunicate request_size=4 [15:27:46]MH_SAM_APDU [15:27:46]CAPDU: 80 13 01 00 [15:27:46]Write to MH i2c: E2 08 00 84 26 80 13 01 00 00 00 00 00 27 [15:27:46]Write i2c OK [15:27:46]MH_I2C_Read... [15:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:46]Read from MH i2c: E2 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: E2 0E 00 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: E2 0E 00 84 26 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5D [15:27:46]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:27:46]wFMCommunicate OK [15:27:46]SAM_PROTO_GetShiftState done [15:27:46]FM_GetShiftState done [15:27:46]opened in 1720915483 [15:27:46]opened+sec_in_day 1721001883 [15:27:46]quantity*price = 60001 [15:27:46]sum+1 = 60003 [15:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 173 14.07.2024 15:27 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162861 ФПД: 249155191447489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152748&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162861&fm=249155191447489&tin=02508201610067®Number=0000000000090858&sum=60000 [15:27:47]StoreToDocumentArchive [15:27:47]shift 463 fd 162861 [15:27:47]save to /storage/0463/doc_00162861 [15:27:47]save last doc name /storage/0463/doc_00162861 to /storage/kkm_last_doc_name [15:27:47]save OK [15:27:47]Clear old archive folders... [15:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:47]tlvbuf is 0124CA30 [15:27:47]SAM_PROTO_ClearQueue [15:27:47]wFMCommunicate request_size=4 [15:27:47]MH_SAM_APDU [15:27:47]CAPDU: 80 09 00 00 [15:27:47]Write to MH i2c: E2 08 00 91 26 80 09 00 00 00 00 00 00 29 [15:27:47]Write i2c OK [15:27:47]MH_I2C_Read... [15:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:47]Read from MH i2c: E2 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 03 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 03 00 91 26 00 90 00 2B [15:27:47]RAPDU: 90 00 [15:27:47]wFMCommunicate OK [15:27:47]SAM_PROTO_ClearQueue done [15:27:47]KKMCreateOFDPacket [15:27:47]OFDProtocolAddRootSTLVToBuf [15:27:47]FM_MakeSignedData [15:27:47]FM_MakeSignedData [15:27:47]SAM_PROTO_SignData [15:27:47]wFMCommunicate request_size=4 [15:27:47]MH_SAM_APDU [15:27:47]CAPDU: 80 0D 01 02 [15:27:47]Write to MH i2c: E2 08 00 92 26 80 0D 01 02 00 00 00 00 31 [15:27:47]Write i2c OK [15:27:47]MH_I2C_Read... [15:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:47]Read from MH i2c: E2 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 03 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 03 00 92 26 00 90 00 2C [15:27:47]RAPDU: 90 00 [15:27:47]wFMCommunicate OK [15:27:47]wFMCommunicate request_size=255 [15:27:47]MH_SAM_APDU [15:27:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 AD 00 00 00 F4 03 04 00 74 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2D 7C 02 00 35 04 06 00 E2 [15:27:47]Write to MH i2c: E2 02 01 93 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 AD 00 00 00 F4 03 04 00 74 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2D 7C 02 00 35 04 06 00 E2 00 00 1F [15:27:47]Write i2c OK [15:27:47]MH_I2C_Read... [15:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:47]Read from MH i2c: E2 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 03 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 03 00 93 26 00 90 00 2D [15:27:47]RAPDU: 90 00 [15:27:47]wFMCommunicate OK [15:27:47]wFMCommunicate request_size=10 [15:27:47]MH_SAM_APDU [15:27:47]CAPDU: 80 0D 02 02 05 9A F6 AE 1F C1 [15:27:47]Write to MH i2c: E2 0D 00 94 26 80 0D 02 02 05 00 9A F6 AE 1F C1 00 00 5C [15:27:47]Write i2c OK [15:27:47]MH_I2C_Read... [15:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:47]Read from MH i2c: E2 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 03 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 03 00 94 26 00 90 00 2E [15:27:47]RAPDU: 90 00 [15:27:47]wFMCommunicate OK [15:27:47]wFMCommunicate request_size=4 [15:27:47]MH_SAM_APDU [15:27:47]CAPDU: 80 0D 03 02 [15:27:47]Write to MH i2c: E2 08 00 95 26 80 0D 03 02 00 00 00 00 36 [15:27:47]Write i2c OK [15:27:47]MH_I2C_Read... [15:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:47]Read from MH i2c: E2 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 0B 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 0B 00 95 26 00 70 B3 EB 33 DF E1 C6 BD 90 00 BB [15:27:47]RAPDU: 70 B3 EB 33 DF E1 C6 BD 90 00 [15:27:47]wFMCommunicate OK [15:27:47]SAM_PROTO_SignData done [15:27:47]FM_MakeSignedData done [15:27:47]CreateOFDProtocolMessage [15:27:47]wFMCommunicate request_size=4 [15:27:47]MH_SAM_APDU [15:27:47]CAPDU: 80 11 00 00 [15:27:47]Write to MH i2c: E2 08 00 96 26 80 11 00 00 00 00 00 00 36 [15:27:47]Write i2c OK [15:27:47]MH_I2C_Read... [15:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:48]Read from MH i2c: E2 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 17 00 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 17 00 96 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 96 [15:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:27:48]wFMCommunicate OK [15:27:48]CreateOFDProtocolMessage done [15:27:48]OFDSenderStorePacket 162861 [15:27:48]StoreOFDPacket docnum=162861 [15:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C2 34 07 01 E0 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 AD 00 00 00 F4 03 04 00 74 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2D 7C 02 00 35 04 06 00 E2 9A F6 AE 1F C1 70 B3 EB 33 DF E1 C6 BD [15:27:48]CheckFolder [15:27:48]dirname=/storage/ofd_packets [15:27:48]CheckFolder done [15:27:48]ProducePacketName [15:27:48]name=ofd_packets/00162861 [15:27:48]NVStorageSaveData ofd_packets/00162861 [15:27:48]File name is /storage/ofd_packets/00162861 [15:27:48]Write 301 bytes [15:27:48]NVStorageSaveData done [15:27:48]OFDSenderStorePacket done [15:27:48]KKMCreateOFDPacket done [15:27:48]NVStorageSaveData kkm_last_timestamp [15:27:48]File name is /storage/kkm_last_timestamp [15:27:48]Write 4 bytes [15:27:48]NVStorageSaveData done [15:27:48]ExternCall_PrintAddStr [15:27:48]wPrintStart [15:27:48]Write to MH i2c: 01 00 00 97 26 BD [15:27:48]Write i2c OK [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: 01 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: 01 07 00 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: 01 07 00 97 26 00 00 00 00 00 FF 0F D2 [15:27:48]RasterBufferAndPrint [15:27:48]line Счет N : (1)1319465 [15:27:48]line ИНН: 02508201610067 [15:27:48]line Контрольно-Кассовый Чек [15:27:48]line ПРОДАЖА [15:27:48]line ТРК (МРК, ГНК) : 63 [15:27:48]line Товар: 2710124130 [15:27:48]line Аи-92-К-5 [15:27:48]line 9.050 * 66.30 [15:27:48]line = 600.02 [15:27:48]line НДС 12% НСП 1% [15:27:48]line > о реализуемом товаре [15:27:48]line ОКРУГЛЕНИЕ: -0.02 [15:27:48]line ИТОГО: 600.00 [15:27:48]line Внесено: 600.00 [15:27:48]line СДАЧА: 0.00 [15:27:48]line НСП 1% : 5.31 [15:27:48]line НДС 12% : 63.72 [15:27:48]line Наличными: 600.00 [15:27:48]line Безнал.: 0.00 [15:27:48]line Место: АЗС № 140 "Партнер Нефть" [15:27:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:27:48]line СНО: Общий режим [15:27:48]line Чек 173 14.07.2024 15:27 [15:27:48]line Смена: 463 ФФД: 1.0 [15:27:48]line ЗНМ: 0300000129 [15:27:48]line РНМ: 0000000000090858 [15:27:48]line Версия ККМ: 001 [15:27:48]line ФМ: 0000000000874899 [15:27:48]line ФД: 162861 [15:27:48]line ФПД: 249155191447489 [15:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152748&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162861&fm=249155191447489&tin=02508201610067®Number=0000000000090858&sum=60000 [15:27:48]OFD Sender: Processing packet 162861 [packets to send 106, broken 105] [15:27:48]ProducePacketName [15:27:48]name=ofd_packets/00162861 [15:27:48]OFD Sender: To server: pG, [15:27:48]CommunicateWithHost lk.salyk.kg:30040 [15:27:48]ConnectInit lk.salyk.kg [15:27:48]written 0, free lines is 4095 [15:27:48]Connected sock=10 [15:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C2 34 07 01 E0 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 AD 00 00 00 F4 03 04 00 74 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2D 7C 02 00 35 04 06 00 E2 9A F6 AE 1F C1 70 B3 EB 33 DF E1 C6 BD [15:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 32 37 47 00 4A C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2D 7C 02 00 F4 03 04 00 81 9A 93 66 B6 04 01 00 00 EB 3A 1D FA E8 37 56 C9 [15:27:48]CommunicateWithHost err = 0 [15:27:48]CheckOFDResponse [15:27:48]1017 (14) - 77093643461234 [15:27:48]1041 (16) - 0000000000874899 [15:27:48]1040 (4) - 162861 [15:27:48]1012 (4) - 14.07.2024 09:29 [15:27:48]1206 (1) - 0 [15:27:48]OFD Sender: Remove packet 162861 [15:27:48]ProducePacketName [15:27:48]name=ofd_packets/00162861 [15:27:48]NVStorageDeleteData [15:27:48]Write to MH i2c: 01 00 00 C2 26 E8 [15:27:48]Write i2c OK [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: 01 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: 01 07 00 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: 01 07 00 C2 26 00 00 00 00 00 DA 0C D5 [15:27:48]RasterBufferAndPrint [15:27:48]line [15:27:48]line [15:27:48]line [15:27:48]line [15:27:48]line [15:27:48]written 0, free lines is 3296 [15:27:48]MH_Cut [15:27:48]Write to MH i2c: D1 01 00 C9 26 01 C1 [15:27:48]Write i2c OK [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: D1 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: D1 01 00 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: D1 01 00 C9 26 00 C0 [15:27:48]Write to MH i2c: 01 00 00 CA 26 F0 [15:27:48]Write i2c OK [15:27:48]MH_I2C_Read... [15:27:49]OFD Sender: No OFD packet to send [15:27:49]*** Cut start [15:27:49]*** Purtial cut [15:27:49]*** CUTSNS_PIN = 0 [15:27:49]*** Stage 1: CUTSNS_PIN = 1 [15:27:51]Read from MH i2c: 01 [15:27:51]MH_I2C_Read... [15:27:51]*** Stop cut motor [15:27:51]*** Cut end [15:27:51]Read from MH i2c: 01 07 00 [15:27:51]MH_I2C_Read... [15:27:51]Read from MH i2c: 01 07 00 CA 26 00 00 00 00 00 FF 0F 05 [15:27:51]process_action close_receipt done [15:27:51]requested_data is exist [15:27:51]produce_requested_data [15:27:51]requested_item fm.sn is exist - process it [15:27:51]wFMCommunicate request_size=4 [15:27:51]MH_SAM_APDU [15:27:51]CAPDU: 80 11 00 00 [15:27:51]Write to MH i2c: E2 08 00 CB 26 80 11 00 00 00 00 00 00 6B [15:27:51]Write i2c OK [15:27:51]MH_I2C_Read... [15:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:51]Read from MH i2c: E2 [15:27:51]MH_I2C_Read... [15:27:51]Read from MH i2c: E2 17 00 [15:27:51]MH_I2C_Read... [15:27:51]Read from MH i2c: E2 17 00 CB 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CB [15:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:27:51]wFMCommunicate OK [15:27:51]requested_item fd.num is exist - process it [15:27:51]SAM_PROTO_GetFieldsCounters [15:27:51]wFMCommunicate request_size=4 [15:27:51]MH_SAM_APDU [15:27:51]CAPDU: 80 13 00 00 [15:27:51]Write to MH i2c: E2 08 00 CC 26 80 13 00 00 00 00 00 00 6E [15:27:51]Write i2c OK [15:27:51]MH_I2C_Read... [15:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:51]Read from MH i2c: E2 [15:27:51]MH_I2C_Read... [15:27:51]Read from MH i2c: E2 62 00 [15:27:51]MH_I2C_Read... [15:27:51]Read from MH i2c: E2 62 00 CC 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2D 7C 02 00 0E 04 04 00 CF 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 23 [15:27:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2D 7C 02 00 0E 04 04 00 CF 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 [15:27:51]wFMCommunicate OK [15:27:51]SAM_PROTO_GetFieldsCounters done [15:27:51]requested_item shift.num is exist - process it [15:27:51]requested_item shift.opened is exist - process it [15:27:51]req_shift_opened [15:27:51]FM_GetShiftState [15:27:51]SAM_PROTO_GetShiftState [15:27:51]wFMCommunicate request_size=4 [15:27:51]MH_SAM_APDU [15:27:51]CAPDU: 80 13 01 00 [15:27:51]Write to MH i2c: E2 08 00 CD 26 80 13 01 00 00 00 00 00 70 [15:27:51]Write i2c OK [15:27:51]MH_I2C_Read... [15:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:51]Read from MH i2c: E2 [15:27:51]MH_I2C_Read... [15:27:51]Read from MH i2c: E2 0E 00 [15:27:51]MH_I2C_Read... [15:27:51]Read from MH i2c: E2 0E 00 CD 26 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A6 [15:27:51]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:27:51]wFMCommunicate OK [15:27:51]SAM_PROTO_GetShiftState done [15:27:51]FM_GetShiftState done [15:27:51]req_shift_opened done [15:27:51]requested_item shift.open_date is exist - process it [15:27:51]req_shift_open_date [15:27:51]req_shift_open_date done [15:27:51]produce_requested_data done [15:27:51]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162861,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:27:51]process_action_free close_receipt [15:27:51]json_value_free [15:27:51]json_value_free done [15:27:51]process_json_proto returns [15:27:51]Send response to host [15:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162861,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:27:51]free response buf [15:27:51]execute_script done [15:27:51]execute_script returns [15:27:51]free content buf [15:27:51]Sock 9.Close socket [15:27:51]Sock 9.Thread stoped [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:27:59]accept exits with 7 [15:27:59]New connection [15:27:59]New thread 3066735972 created [15:27:59]Thread 3066879332 joined [15:27:59]Waiting for new connection... [15:27:59] Sock 7.Parse request [15:27:59]Sock 7.Check first char [15:27:59]Sock 7.First char is OK [15:27:59]request: POST /json_proto HTTP/1.0 [15:27:59]Method: POST [15:27:59]URL: /json_proto [15:27:59]Method is POST - this is cgi request [15:27:59]url: /json_proto [15:27:59]query_string will be loaded in cgi processing [15:27:59]execute_cgi json_proto POST (null) [15:27:59]execute_cgi path=json_proto method=POST [15:27:59]POST find Content-Length [15:27:59]Host: 172.17.39.67:8080 [15:27:59]Content-Length: 688 [15:27:59]Content-Type: application/json [15:27:59] [15:27:59]POST finish read [15:27:59]Found Content-Length = 688 [15:27:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:59]execute_script... [15:27: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)1319466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:59]POST & json_proto [15:27:59]process_json_proto [15:27:59]json parsed OK: [15:27:59]protocol is kg_v1.0 [15:27:59]action value=close_receipt [15:27:59]process_action close_receipt [15:27:59]cmd_close_receipt [15:27:59]MH_GetDate [15:27:59]Write to MH i2c: F0 00 00 CE 26 E3 [15:27:59]Write i2c OK [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: F0 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: F0 09 00 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: F0 09 00 CE 26 00 81 EE 93 66 B6 85 93 66 88 [15:27:59]GetLastDocTimeStamp 1720970868 [15:27:59]current date 1720970881 [15:27:59]FM_GetShiftState [15:27:59]SAM_PROTO_GetShiftState [15:27:59]wFMCommunicate request_size=4 [15:27:59]MH_SAM_APDU [15:27:59]CAPDU: 80 13 01 00 [15:27:59]Write to MH i2c: E2 08 00 CF 26 80 13 01 00 00 00 00 00 72 [15:27:59]Write i2c OK [15:27:59]MH_I2C_Read... [15:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:59]Read from MH i2c: E2 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 0E 00 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 0E 00 CF 26 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A8 [15:27:59]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:27:59]wFMCommunicate OK [15:27:59]SAM_PROTO_GetShiftState done [15:27:59]FM_GetShiftState done [15:27:59]opened in 1720915483 [15:27:59]opened+sec_in_day 1721001883 [15:27:59]quantity*price = 300055 [15:27:59]sum+1 = 300057 [15:27:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 174 14.07.2024 15:28 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162862 ФПД: 113099012548485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152801&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162862&fm=113099012548485&tin=02508201610067®Number=0000000000090858&sum=300000 [15:28:00]StoreToDocumentArchive [15:28:00]shift 463 fd 162862 [15:28:00]save to /storage/0463/doc_00162862 [15:28:00]save last doc name /storage/0463/doc_00162862 to /storage/kkm_last_doc_name [15:28:00]save OK [15:28:00]Clear old archive folders... [15:28:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:28:01]tlvbuf is 012FC4E0 [15:28:01]SAM_PROTO_ClearQueue [15:28:01]wFMCommunicate request_size=4 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 09 00 00 [15:28:01]Write to MH i2c: E2 08 00 DC 26 80 09 00 00 00 00 00 00 74 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 DC 26 00 90 00 76 [15:28:01]RAPDU: 90 00 [15:28:01]wFMCommunicate OK [15:28:01]SAM_PROTO_ClearQueue done [15:28:01]KKMCreateOFDPacket [15:28:01]OFDProtocolAddRootSTLVToBuf [15:28:01]FM_MakeSignedData [15:28:01]FM_MakeSignedData [15:28:01]SAM_PROTO_SignData [15:28:01]wFMCommunicate request_size=4 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 0D 01 02 [15:28:01]Write to MH i2c: E2 08 00 DD 26 80 0D 01 02 00 00 00 00 7C [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 DD 26 00 90 00 77 [15:28:01]RAPDU: 90 00 [15:28:01]wFMCommunicate OK [15:28:01]wFMCommunicate request_size=255 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 81 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7C 02 00 35 04 06 00 [15:28:01]Write to MH i2c: E2 02 01 DE 26 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 81 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7C 02 00 35 04 06 00 00 00 EB [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 DE 26 00 90 00 78 [15:28:01]RAPDU: 90 00 [15:28:01]wFMCommunicate OK [15:28:01]wFMCommunicate request_size=11 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 0D 02 02 06 66 DC EA 77 A7 85 [15:28:01]Write to MH i2c: E2 0E 00 DF 26 80 0D 02 02 06 00 66 DC EA 77 A7 85 00 00 5A [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 DF 26 00 90 00 79 [15:28:01]RAPDU: 90 00 [15:28:01]wFMCommunicate OK [15:28:01]wFMCommunicate request_size=4 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 0D 03 02 [15:28:01]Write to MH i2c: E2 08 00 E0 26 80 0D 03 02 00 00 00 00 81 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 0B 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 0B 00 E0 26 00 A2 7F E2 EA F2 B4 EC F5 90 00 F6 [15:28:01]RAPDU: A2 7F E2 EA F2 B4 EC F5 90 00 [15:28:01]wFMCommunicate OK [15:28:01]SAM_PROTO_SignData done [15:28:01]FM_MakeSignedData done [15:28:01]CreateOFDProtocolMessage [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 E1 26 80 11 00 00 00 00 00 00 81 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [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 E1 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E1 [15:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:28:01]wFMCommunicate OK [15:28:01]CreateOFDProtocolMessage done [15:28:01]OFDSenderStorePacket 162862 [15:28:01]StoreOFDPacket docnum=162862 [15:28:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E3 5F 08 01 C7 1B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 81 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7C 02 00 35 04 06 00 66 DC EA 77 A7 85 A2 7F E2 EA F2 B4 EC F5 [15:28:01]CheckFolder [15:28:01]dirname=/storage/ofd_packets [15:28:01]CheckFolder done [15:28:01]ProducePacketName [15:28:01]name=ofd_packets/00162862 [15:28:01]NVStorageSaveData ofd_packets/00162862 [15:28:01]File name is /storage/ofd_packets/00162862 [15:28:01]Write 302 bytes [15:28:01]NVStorageSaveData done [15:28:01]OFDSenderStorePacket done [15:28:01]KKMCreateOFDPacket done [15:28:01]NVStorageSaveData kkm_last_timestamp [15:28:01]File name is /storage/kkm_last_timestamp [15:28:01]Write 4 bytes [15:28:01]NVStorageSaveData done [15:28:01]ExternCall_PrintAddStr [15:28:01]wPrintStart [15:28:01]Write to MH i2c: 01 00 00 E2 26 08 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: 01 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: 01 07 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: 01 07 00 E2 26 00 00 00 00 00 FF 0F 1D [15:28:01]RasterBufferAndPrint [15:28:01]line Счет N : (1)1319466 [15:28:01]line ИНН: 02508201610067 [15:28:01]line Контрольно-Кассовый Чек [15:28:01]line ПРОДАЖА [15:28:01]line ТРК (МРК, ГНК) : 51 [15:28:01]line Товар: 2710194210 [15:28:01]line ДТ(л)-К-5 [15:28:01]line 41.330 * 72.60 [15:28:01]line = 3000.56 [15:28:01]line НДС 12% НСП 1% [15:28:01]line > о реализуемом товаре [15:28:01]line ОКРУГЛЕНИЕ: -0.56 [15:28:01]line ИТОГО: 3000.00 [15:28:01]line Внесено: 3000.00 [15:28:01]line СДАЧА: 0.00 [15:28:01]line НСП 1% : 26.55 [15:28:01]line НДС 12% : 318.64 [15:28:01]line Наличными: 3000.00 [15:28:01]line Безнал.: 0.00 [15:28:01]line Место: АЗС № 140 "Партнер Нефть" [15:28:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:28:01]line СНО: Общий режим [15:28:01]line Чек 174 14.07.2024 15:28 [15:28:01]line Смена: 463 ФФД: 1.0 [15:28:01]line ЗНМ: 0300000129 [15:28:01]line РНМ: 0000000000090858 [15:28:01]line Версия ККМ: 001 [15:28:01]line ФМ: 0000000000874899 [15:28:01]line ФД: 162862 [15:28:01]line ФПД: 113099012548485 [15:28:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152801&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162862&fm=113099012548485&tin=02508201610067®Number=0000000000090858&sum=300000 [15:28:01]OFD Sender: Processing packet 162862 [packets to send 106, broken 105] [15:28:01]ProducePacketName [15:28:01]name=ofd_packets/00162862 [15:28:01]OFD Sender: To server: pG, [15:28:01]CommunicateWithHost lk.salyk.kg:30040 [15:28:01]ConnectInit lk.salyk.kg [15:28:01]written 0, free lines is 4095 [15:28:01]Connected sock=10 [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 34 38 39 39 10 01 00 00 E3 5F 08 01 C7 1B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 81 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7C 02 00 35 04 06 00 66 DC EA 77 A7 85 A2 7F E2 EA F2 B4 EC F5 [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 34 38 39 39 4F 00 00 00 B8 55 47 00 83 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7C 02 00 F4 03 04 00 8E 9A 93 66 B6 04 01 00 00 2B 6E D9 AA 30 3D FB 86 [15:28:02]CommunicateWithHost err = 0 [15:28:02]CheckOFDResponse [15:28:02]1017 (14) - 77093643461234 [15:28:02]1041 (16) - 0000000000874899 [15:28:02]1040 (4) - 162862 [15:28:02]1012 (4) - 14.07.2024 09:29 [15:28:02]1206 (1) - 0 [15:28:02]OFD Sender: Remove packet 162862 [15:28:02]ProducePacketName [15:28:02]name=ofd_packets/00162862 [15:28:02]NVStorageDeleteData [15:28:02]Write to MH i2c: 01 00 00 0D 27 34 [15:28:02]Write i2c OK [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: 01 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: 01 07 00 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: 01 07 00 0D 27 00 00 00 00 00 DF 0C 26 [15:28:02]RasterBufferAndPrint [15:28:02]line [15:28:02]line [15:28:02]line [15:28:02]line [15:28:02]line [15:28:02]written 0, free lines is 3302 [15:28:02]MH_Cut [15:28:02]Write to MH i2c: D1 01 00 14 27 01 0D [15:28:02]Write i2c OK [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: D1 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: D1 01 00 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: D1 01 00 14 27 00 0C [15:28:02]Write to MH i2c: 01 00 00 15 27 3C [15:28:02]Write i2c OK [15:28:02]MH_I2C_Read... [15:28:02]OFD Sender: No OFD packet to send [15:28:03]*** Cut start [15:28:03]*** Purtial cut [15:28:03]*** Stage 1: CUTSNS_PIN = 1 [15:28:03]Read from MH i2c: 01 [15:28:03]MH_I2C_Read... [15:28:03]*** Stop cut motor [15:28:03]*** Cut end [15:28:03]Read from MH i2c: 01 07 00 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: 01 07 00 15 27 00 00 00 00 00 FF 0F 51 [15:28:03]process_action close_receipt done [15:28:03]requested_data is exist [15:28:03]produce_requested_data [15:28:03]requested_item fm.sn is exist - process it [15:28:03]wFMCommunicate request_size=4 [15:28:03]MH_SAM_APDU [15:28:03]CAPDU: 80 11 00 00 [15:28:03]Write to MH i2c: E2 08 00 16 27 80 11 00 00 00 00 00 00 B7 [15:28:03]Write i2c OK [15:28:03]MH_I2C_Read... [15:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:03]Read from MH i2c: E2 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: E2 17 00 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: E2 17 00 16 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 17 [15:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:28:03]wFMCommunicate OK [15:28:03]requested_item fd.num is exist - process it [15:28:03]SAM_PROTO_GetFieldsCounters [15:28:03]wFMCommunicate request_size=4 [15:28:03]MH_SAM_APDU [15:28:03]CAPDU: 80 13 00 00 [15:28:03]Write to MH i2c: E2 08 00 17 27 80 13 00 00 00 00 00 00 BA [15:28:03]Write i2c OK [15:28:03]MH_I2C_Read... [15:28:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:03]Read from MH i2c: E2 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: E2 62 00 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: E2 62 00 17 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2E 7C 02 00 0E 04 04 00 CF 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 73 [15:28:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2E 7C 02 00 0E 04 04 00 CF 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 [15:28:03]wFMCommunicate OK [15:28:03]SAM_PROTO_GetFieldsCounters done [15:28:03]requested_item shift.num is exist - process it [15:28:03]requested_item shift.opened is exist - process it [15:28:03]req_shift_opened [15:28:03]FM_GetShiftState [15:28:03]SAM_PROTO_GetShiftState [15:28:03]wFMCommunicate request_size=4 [15:28:03]MH_SAM_APDU [15:28:03]CAPDU: 80 13 01 00 [15:28:03]Write to MH i2c: E2 08 00 18 27 80 13 01 00 00 00 00 00 BC [15:28:03]Write i2c OK [15:28:03]MH_I2C_Read... [15:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:03]Read from MH i2c: E2 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: E2 0E 00 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: E2 0E 00 18 27 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F2 [15:28:03]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:28:03]wFMCommunicate OK [15:28:03]SAM_PROTO_GetShiftState done [15:28:03]FM_GetShiftState done [15:28:03]req_shift_opened done [15:28:03]requested_item shift.open_date is exist - process it [15:28:03]req_shift_open_date [15:28:03]req_shift_open_date done [15:28:03]produce_requested_data done [15:28:03]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162862,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:28:03]process_action_free close_receipt [15:28:03]json_value_free [15:28:03]json_value_free done [15:28:03]process_json_proto returns [15:28:03]Send response to host [15:28:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162862,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:28:03]free response buf [15:28:03]execute_script done [15:28:03]execute_script returns [15:28:03]free content buf [15:28:03]Sock 7.Close socket [15:28:03]Sock 7.Thread stoped [15:28:03]accept exits with 9 [15:28:03]New connection [15:28:03]New thread 3066879332 created [15:28:03]Thread 3066735972 joined [15:28:03]Waiting for new connection... [15:28:03] Sock 9.Parse request [15:28:03]Sock 9.Check first char [15:28:03]Sock 9.First char is OK [15:28:03]request: POST /json_proto HTTP/1.0 [15:28:03]Method: POST [15:28:03]URL: /json_proto [15:28:03]Method is POST - this is cgi request [15:28:03]url: /json_proto [15:28:03]query_string will be loaded in cgi processing [15:28:03]execute_cgi json_proto POST (null) [15:28:03]execute_cgi path=json_proto method=POST [15:28:03]POST find Content-Length [15:28:03]Host: 172.17.39.67:8080 [15:28:03]Content-Length: 678 [15:28:03]Content-Type: application/json [15:28:03] [15:28:03]POST finish read [15:28:03]Found Content-Length = 678 [15:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 2.120, "sum" : 140.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:03]execute_script... [15:28:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 2.120, "sum" : 140.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:03]POST & json_proto [15:28:03]process_json_proto [15:28:03]json parsed OK: [15:28:03]protocol is kg_v1.0 [15:28:03]action value=close_receipt [15:28:03]process_action close_receipt [15:28:03]cmd_close_receipt [15:28:03]MH_GetDate [15:28:03]Write to MH i2c: F0 00 00 19 27 2F [15:28:03]Write i2c OK [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: F0 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: F0 09 00 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: F0 09 00 19 27 00 85 EE 93 66 B6 85 93 66 D8 [15:28:03]GetLastDocTimeStamp 1720970881 [15:28:03]current date 1720970885 [15:28:03]FM_GetShiftState [15:28:03]SAM_PROTO_GetShiftState [15:28:03]wFMCommunicate request_size=4 [15:28:03]MH_SAM_APDU [15:28:03]CAPDU: 80 13 01 00 [15:28:03]Write to MH i2c: E2 08 00 1A 27 80 13 01 00 00 00 00 00 BE [15:28:03]Write i2c OK [15:28:03]MH_I2C_Read... [15:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:03]Read from MH i2c: E2 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: E2 0E 00 [15:28:03]MH_I2C_Read... [15:28:03]Read from MH i2c: E2 0E 00 1A 27 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F4 [15:28:03]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:28:03]wFMCommunicate OK [15:28:03]SAM_PROTO_GetShiftState done [15:28:03]FM_GetShiftState done [15:28:03]opened in 1720915483 [15:28:03]opened+sec_in_day 1721001883 [15:28:03]quantity*price = 14055 [15:28:03]sum+1 = 14057 [15:28:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.93 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 175 14.07.2024 15:28 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162863 ФПД: 31473955256641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152805&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162863&fm=31473955256641&tin=02508201610067®Number=0000000000090858&sum=14000 [15:28:05]StoreToDocumentArchive [15:28:05]shift 463 fd 162863 [15:28:05]save to /storage/0463/doc_00162863 [15:28:05]save last doc name /storage/0463/doc_00162863 to /storage/kkm_last_doc_name [15:28:05]save OK [15:28:05]Clear old archive folders... [15:28:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:05]tlvbuf is 012FC110 [15:28:05]SAM_PROTO_ClearQueue [15:28:05]wFMCommunicate request_size=4 [15:28:05]MH_SAM_APDU [15:28:05]CAPDU: 80 09 00 00 [15:28:05]Write to MH i2c: E2 08 00 27 27 80 09 00 00 00 00 00 00 C0 [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 03 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 03 00 27 27 00 90 00 C2 [15:28:05]RAPDU: 90 00 [15:28:05]wFMCommunicate OK [15:28:05]SAM_PROTO_ClearQueue done [15:28:05]KKMCreateOFDPacket [15:28:05]OFDProtocolAddRootSTLVToBuf [15:28:05]FM_MakeSignedData [15:28:05]FM_MakeSignedData [15:28:05]SAM_PROTO_SignData [15:28:05]wFMCommunicate request_size=4 [15:28:05]MH_SAM_APDU [15:28:05]CAPDU: 80 0D 01 02 [15:28:05]Write to MH i2c: E2 08 00 28 27 80 0D 01 02 00 00 00 00 C8 [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 03 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 03 00 28 27 00 90 00 C3 [15:28:05]RAPDU: 90 00 [15:28:05]wFMCommunicate OK [15:28:05]wFMCommunicate request_size=255 [15:28:05]MH_SAM_APDU [15:28:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 08 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 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 D5 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 AF 00 00 00 F4 03 04 00 85 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7C 02 00 35 04 06 00 1C [15:28:05]Write to MH i2c: E2 02 01 29 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 08 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 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 D5 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 AF 00 00 00 F4 03 04 00 85 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7C 02 00 35 04 06 00 1C 00 00 27 [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 03 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 03 00 29 27 00 90 00 C4 [15:28:05]RAPDU: 90 00 [15:28:05]wFMCommunicate OK [15:28:05]wFMCommunicate request_size=10 [15:28:05]MH_SAM_APDU [15:28:05]CAPDU: 80 0D 02 02 05 A0 19 EC 39 41 [15:28:05]Write to MH i2c: E2 0D 00 2A 27 80 0D 02 02 05 00 A0 19 EC 39 41 00 00 F4 [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 03 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 03 00 2A 27 00 90 00 C5 [15:28:05]RAPDU: 90 00 [15:28:05]wFMCommunicate OK [15:28:05]wFMCommunicate request_size=4 [15:28:05]MH_SAM_APDU [15:28:05]CAPDU: 80 0D 03 02 [15:28:05]Write to MH i2c: E2 08 00 2B 27 80 0D 03 02 00 00 00 00 CD [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 0B 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 0B 00 2B 27 00 5D 19 07 0A D5 5D 02 20 90 00 A9 [15:28:05]RAPDU: 5D 19 07 0A D5 5D 02 20 90 00 [15:28:05]wFMCommunicate OK [15:28:05]SAM_PROTO_SignData done [15:28:05]FM_MakeSignedData done [15:28:05]CreateOFDProtocolMessage [15:28:05]wFMCommunicate request_size=4 [15:28:05]MH_SAM_APDU [15:28:05]CAPDU: 80 11 00 00 [15:28:05]Write to MH i2c: E2 08 00 2C 27 80 11 00 00 00 00 00 00 CD [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 17 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 17 00 2C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2D [15:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:28:05]wFMCommunicate OK [15:28:05]CreateOFDProtocolMessage done [15:28:05]OFDSenderStorePacket 162863 [15:28:05]StoreOFDPacket docnum=162863 [15:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B8 3F 07 01 92 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 08 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 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 D5 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 AF 00 00 00 F4 03 04 00 85 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7C 02 00 35 04 06 00 1C A0 19 EC 39 41 5D 19 07 0A D5 5D 02 20 [15:28:05]CheckFolder [15:28:05]dirname=/storage/ofd_packets [15:28:05]CheckFolder done [15:28:05]ProducePacketName [15:28:05]name=ofd_packets/00162863 [15:28:05]NVStorageSaveData ofd_packets/00162863 [15:28:05]File name is /storage/ofd_packets/00162863 [15:28:05]Write 301 bytes [15:28:05]NVStorageSaveData done [15:28:05]OFDSenderStorePacket done [15:28:05]KKMCreateOFDPacket done [15:28:05]NVStorageSaveData kkm_last_timestamp [15:28:05]File name is /storage/kkm_last_timestamp [15:28:05]Write 4 bytes [15:28:05]NVStorageSaveData done [15:28:05]ExternCall_PrintAddStr [15:28:05]wPrintStart [15:28:05]Write to MH i2c: 01 00 00 2D 27 54 [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: 01 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: 01 07 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: 01 07 00 2D 27 00 00 00 00 00 FF 0F 69 [15:28:05]RasterBufferAndPrint [15:28:05]line Счет N : (1)1319467 [15:28:05]line ИНН: 02508201610067 [15:28:05]line Контрольно-Кассовый Чек [15:28:05]line ПРОДАЖА [15:28:05]line ТРК (МРК, ГНК) : 43 [15:28:05]line Товар: 2710124130 [15:28:05]line Аи-92-К-5 [15:28:05]line 2.120 * 66.30 [15:28:05]line = 140.56 [15:28:05]line НДС 12% НСП 1% [15:28:05]line > о реализуемом товаре [15:28:05]line ОКРУГЛЕНИЕ: -0.56 [15:28:05]line ИТОГО: 140.00 [15:28:05]line Внесено: 140.00 [15:28:05]line СДАЧА: 0.00 [15:28:05]line НСП 1% : 1.24 [15:28:05]line НДС 12% : 14.93 [15:28:05]line Наличными: 140.00 [15:28:05]line Безнал.: 0.00 [15:28:05]line Место: АЗС № 140 "Партнер Нефть" [15:28:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:28:05]line СНО: Общий режим [15:28:05]line Чек 175 14.07.2024 15:28 [15:28:05]line Смена: 463 ФФД: 1.0 [15:28:05]line ЗНМ: 0300000129 [15:28:05]line РНМ: 0000000000090858 [15:28:05]line Версия ККМ: 001 [15:28:05]line ФМ: 0000000000874899 [15:28:05]line ФД: 162863 [15:28:05]line ФПД: 31473955256641 [15:28:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152805&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162863&fm=31473955256641&tin=02508201610067®Number=0000000000090858&sum=14000 [15:28:06]OFD Sender: Processing packet 162863 [packets to send 106, broken 105] [15:28:06]ProducePacketName [15:28:06]name=ofd_packets/00162863 [15:28:06]OFD Sender: To server: pG, [15:28:06]CommunicateWithHost lk.salyk.kg:30040 [15:28:06]ConnectInit lk.salyk.kg [15:28:06]written 0, free lines is 4095 [15:28:06]Connected sock=10 [15:28:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B8 3F 07 01 92 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 08 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 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 D5 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 AF 00 00 00 F4 03 04 00 85 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7C 02 00 35 04 06 00 1C A0 19 EC 39 41 5D 19 07 0A D5 5D 02 20 [15:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AF E2 47 00 CD 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7C 02 00 F4 03 04 00 93 9A 93 66 B6 04 01 00 00 FD A7 2F 1B 9D B7 5B F0 [15:28:06]CommunicateWithHost err = 0 [15:28:06]CheckOFDResponse [15:28:06]1017 (14) - 77093643461234 [15:28:06]1041 (16) - 0000000000874899 [15:28:06]1040 (4) - 162863 [15:28:06]1012 (4) - 14.07.2024 09:29 [15:28:06]1206 (1) - 0 [15:28:06]OFD Sender: Remove packet 162863 [15:28:06]ProducePacketName [15:28:06]name=ofd_packets/00162863 [15:28:06]NVStorageDeleteData [15:28:06]Write to MH i2c: 01 00 00 58 27 7F [15:28:06]Write i2c OK [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: 01 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: 01 07 00 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: 01 07 00 58 27 00 00 00 00 00 E2 0C 74 [15:28:06]RasterBufferAndPrint [15:28:06]line [15:28:06]line [15:28:06]line [15:28:06]line [15:28:06]line [15:28:06]written 0, free lines is 3313 [15:28:06]MH_Cut [15:28:06]Write to MH i2c: D1 01 00 5F 27 01 58 [15:28:06]Write i2c OK [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: D1 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: D1 01 00 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: D1 01 00 5F 27 00 57 [15:28:06]Write to MH i2c: 01 00 00 60 27 87 [15:28:06]Write i2c OK [15:28:06]MH_I2C_Read... [15:28:07]OFD Sender: No OFD packet to send [15:28:07]*** Cut start [15:28:07]*** Purtial cut [15:28:07]*** CUTSNS_PIN = 0 [15:28:07]*** Stage 1: CUTSNS_PIN = 1 [15:28:09]Read from MH i2c: 01 [15:28:09]MH_I2C_Read... [15:28:09]*** Stop cut motor [15:28:09]*** Cut end [15:28:09]Read from MH i2c: 01 07 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: 01 07 00 60 27 00 00 00 00 00 FF 0F 9C [15:28:09]process_action close_receipt done [15:28:09]requested_data is exist [15:28:09]produce_requested_data [15:28:09]requested_item fm.sn is exist - process it [15:28:09]wFMCommunicate request_size=4 [15:28:09]MH_SAM_APDU [15:28:09]CAPDU: 80 11 00 00 [15:28:09]Write to MH i2c: E2 08 00 61 27 80 11 00 00 00 00 00 00 02 [15:28:09]Write i2c OK [15:28:09]MH_I2C_Read... [15:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:09]Read from MH i2c: E2 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 17 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 17 00 61 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 62 [15:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:28:09]wFMCommunicate OK [15:28:09]requested_item fd.num is exist - process it [15:28:09]SAM_PROTO_GetFieldsCounters [15:28:09]wFMCommunicate request_size=4 [15:28:09]MH_SAM_APDU [15:28:09]CAPDU: 80 13 00 00 [15:28:09]Write to MH i2c: E2 08 00 62 27 80 13 00 00 00 00 00 00 05 [15:28:09]Write i2c OK [15:28:09]MH_I2C_Read... [15:28:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:09]Read from MH i2c: E2 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 62 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 62 00 62 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2F 7C 02 00 0E 04 04 00 CF 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 C2 [15:28:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2F 7C 02 00 0E 04 04 00 CF 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 [15:28:09]wFMCommunicate OK [15:28:09]SAM_PROTO_GetFieldsCounters done [15:28:09]requested_item shift.num is exist - process it [15:28:09]requested_item shift.opened is exist - process it [15:28:09]req_shift_opened [15:28:09]FM_GetShiftState [15:28:09]SAM_PROTO_GetShiftState [15:28:09]wFMCommunicate request_size=4 [15:28:09]MH_SAM_APDU [15:28:09]CAPDU: 80 13 01 00 [15:28:09]Write to MH i2c: E2 08 00 63 27 80 13 01 00 00 00 00 00 07 [15:28:09]Write i2c OK [15:28:09]MH_I2C_Read... [15:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:09]Read from MH i2c: E2 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 0E 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 0E 00 63 27 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3D [15:28:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:28:09]wFMCommunicate OK [15:28:09]SAM_PROTO_GetShiftState done [15:28:09]FM_GetShiftState done [15:28:09]req_shift_opened done [15:28:09]requested_item shift.open_date is exist - process it [15:28:09]req_shift_open_date [15:28:09]req_shift_open_date done [15:28:09]produce_requested_data done [15:28:09]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162863,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:28:09]process_action_free close_receipt [15:28:09]json_value_free [15:28:09]json_value_free done [15:28:09]process_json_proto returns [15:28:09]Send response to host [15:28:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162863,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:28:09]free response buf [15:28:09]execute_script done [15:28:09]execute_script returns [15:28:09]free content buf [15:28:09]Sock 9.Close socket [15:28:09]Sock 9.Thread stoped [15:28:10]accept exits with 7 [15:28:10]New connection [15:28:10]New thread 3066735972 created [15:28:10]Thread 3066879332 joined [15:28:10]Waiting for new connection... [15:28:10] Sock 7.Parse request [15:28:10]Sock 7.Check first char [15:28:10]Sock 7.First char is OK [15:28:10]request: POST /json_proto HTTP/1.0 [15:28:10]Method: POST [15:28:10]URL: /json_proto [15:28:10]Method is POST - this is cgi request [15:28:10]url: /json_proto [15:28:10]query_string will be loaded in cgi processing [15:28:10]execute_cgi json_proto POST (null) [15:28:10]execute_cgi path=json_proto method=POST [15:28:10]POST find Content-Length [15:28:10]Host: 172.17.39.67:8080 [15:28:10]Content-Length: 678 [15:28:10]Content-Type: application/json [15:28:10] [15:28:10]POST finish read [15:28:10]Found Content-Length = 678 [15:28:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 9.280, "sum" : 690.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:10]execute_script... [15:28: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)1319468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 9.280, "sum" : 690.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:10]POST & json_proto [15:28:10]process_json_proto [15:28:10]json parsed OK: [15:28:10]protocol is kg_v1.0 [15:28:10]action value=close_receipt [15:28:10]process_action close_receipt [15:28:10]cmd_close_receipt [15:28:10]MH_GetDate [15:28:10]Write to MH i2c: F0 00 00 64 27 7A [15:28:10]Write i2c OK [15:28:10]MH_I2C_Read... [15:28:10]Read from MH i2c: F0 [15:28:10]MH_I2C_Read... [15:28:10]Read from MH i2c: F0 09 00 [15:28:10]MH_I2C_Read... [15:28:10]Read from MH i2c: F0 09 00 64 27 00 8B EE 93 66 B6 85 93 66 29 [15:28:10]GetLastDocTimeStamp 1720970885 [15:28:10]current date 1720970891 [15:28:10]FM_GetShiftState [15:28:10]SAM_PROTO_GetShiftState [15:28:10]wFMCommunicate request_size=4 [15:28:10]MH_SAM_APDU [15:28:10]CAPDU: 80 13 01 00 [15:28:10]Write to MH i2c: E2 08 00 65 27 80 13 01 00 00 00 00 00 09 [15:28:10]Write i2c OK [15:28:10]MH_I2C_Read... [15:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:10]Read from MH i2c: E2 [15:28:10]MH_I2C_Read... [15:28:10]Read from MH i2c: E2 0E 00 [15:28:10]MH_I2C_Read... [15:28:10]Read from MH i2c: E2 0E 00 65 27 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3F [15:28:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:28:10]wFMCommunicate OK [15:28:10]SAM_PROTO_GetShiftState done [15:28:10]FM_GetShiftState done [15:28:10]opened in 1720915483 [15:28:10]opened+sec_in_day 1721001883 [15:28:10]quantity*price = 69043 [15:28:10]sum+1 = 69044 [15:28:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 690.00 Внесено: 690.00 СДАЧА: 0.00 НСП 1% : 6.11 НДС 12% : 73.32 Наличными: 690.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 176 14.07.2024 15:28 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162864 ФПД: 97492761040996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152811&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162864&fm=97492761040996&tin=02508201610067®Number=0000000000090858&sum=69000 [15:28:11]StoreToDocumentArchive [15:28:11]shift 463 fd 162864 [15:28:11]save to /storage/0463/doc_00162864 [15:28:11]save last doc name /storage/0463/doc_00162864 to /storage/kkm_last_doc_name [15:28:11]save OK [15:28:11]Clear old archive folders... [15:28:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:11]tlvbuf is 013AB150 [15:28:11]SAM_PROTO_ClearQueue [15:28:11]wFMCommunicate request_size=4 [15:28:11]MH_SAM_APDU [15:28:11]CAPDU: 80 09 00 00 [15:28:11]Write to MH i2c: E2 08 00 72 27 80 09 00 00 00 00 00 00 0B [15:28:11]Write i2c OK [15:28:11]MH_I2C_Read... [15:28:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:11]Read from MH i2c: E2 [15:28:11]MH_I2C_Read... [15:28:11]Read from MH i2c: E2 03 00 [15:28:11]MH_I2C_Read... [15:28:11]Read from MH i2c: E2 03 00 72 27 00 90 00 0D [15:28:11]RAPDU: 90 00 [15:28:11]wFMCommunicate OK [15:28:11]SAM_PROTO_ClearQueue done [15:28:11]KKMCreateOFDPacket [15:28:11]OFDProtocolAddRootSTLVToBuf [15:28:11]FM_MakeSignedData [15:28:11]FM_MakeSignedData [15:28:11]SAM_PROTO_SignData [15:28:11]wFMCommunicate request_size=4 [15:28:11]MH_SAM_APDU [15:28:11]CAPDU: 80 0D 01 02 [15:28:11]Write to MH i2c: E2 08 00 73 27 80 0D 01 02 00 00 00 00 13 [15:28:11]Write i2c OK [15:28:11]MH_I2C_Read... [15:28:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:11]Read from MH i2c: E2 [15:28:11]MH_I2C_Read... [15:28:11]Read from MH i2c: E2 03 00 [15:28:11]MH_I2C_Read... [15:28:11]Read from MH i2c: E2 03 00 73 27 00 90 00 0E [15:28:11]RAPDU: 90 00 [15:28:11]wFMCommunicate OK [15:28:11]wFMCommunicate request_size=255 [15:28:11]MH_SAM_APDU [15:28: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 40 24 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B3 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1C 00 00 00 00 07 04 06 00 88 0D 01 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 8B EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7C 02 00 35 04 06 00 58 [15:28:11]Write to MH i2c: E2 02 01 74 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 24 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B3 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1C 00 00 00 00 07 04 06 00 88 0D 01 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 8B EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7C 02 00 35 04 06 00 58 00 00 CE [15:28:11]Write i2c OK [15:28:11]MH_I2C_Read... [15:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:11]Read from MH i2c: E2 [15:28:11]MH_I2C_Read... [15:28:11]Read from MH i2c: E2 03 00 [15:28:11]MH_I2C_Read... [15:28:11]Read from MH i2c: E2 03 00 74 27 00 90 00 0F [15:28:12]RAPDU: 90 00 [15:28:12]wFMCommunicate OK [15:28:12]wFMCommunicate request_size=10 [15:28:12]MH_SAM_APDU [15:28:12]CAPDU: 80 0D 02 02 05 AB 4D 63 D8 64 [15:28:12]Write to MH i2c: E2 0D 00 75 27 80 0D 02 02 05 00 AB 4D 63 D8 64 00 00 B7 [15:28:12]Write i2c OK [15:28:12]MH_I2C_Read... [15:28:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:12]Read from MH i2c: E2 [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: E2 03 00 [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: E2 03 00 75 27 00 90 00 10 [15:28:12]RAPDU: 90 00 [15:28:12]wFMCommunicate OK [15:28:12]wFMCommunicate request_size=4 [15:28:12]MH_SAM_APDU [15:28:12]CAPDU: 80 0D 03 02 [15:28:12]Write to MH i2c: E2 08 00 76 27 80 0D 03 02 00 00 00 00 18 [15:28:12]Write i2c OK [15:28:12]MH_I2C_Read... [15:28:12]OFD Sender: No OFD packet to send [15:28:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:12]Read from MH i2c: E2 [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: E2 0B 00 [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: E2 0B 00 76 27 00 7F E0 3C 16 32 1B DD 03 90 00 F7 [15:28:12]RAPDU: 7F E0 3C 16 32 1B DD 03 90 00 [15:28:12]wFMCommunicate OK [15:28:12]SAM_PROTO_SignData done [15:28:12]FM_MakeSignedData done [15:28:12]CreateOFDProtocolMessage [15:28:12]wFMCommunicate request_size=4 [15:28:12]MH_SAM_APDU [15:28:12]CAPDU: 80 11 00 00 [15:28:12]Write to MH i2c: E2 08 00 77 27 80 11 00 00 00 00 00 00 18 [15:28:12]Write i2c OK [15:28:12]MH_I2C_Read... [15:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:12]Read from MH i2c: E2 [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: E2 17 00 [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: E2 17 00 77 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 78 [15:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:28:12]wFMCommunicate OK [15:28:12]CreateOFDProtocolMessage done [15:28:12]OFDSenderStorePacket 162864 [15:28:12]StoreOFDPacket docnum=162864 [15:28:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FD 3E 07 01 4B 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 24 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B3 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1C 00 00 00 00 07 04 06 00 88 0D 01 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 8B EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7C 02 00 35 04 06 00 58 AB 4D 63 D8 64 7F E0 3C 16 32 1B DD 03 [15:28:12]CheckFolder [15:28:12]dirname=/storage/ofd_packets [15:28:12]CheckFolder done [15:28:12]ProducePacketName [15:28:12]name=ofd_packets/00162864 [15:28:12]NVStorageSaveData ofd_packets/00162864 [15:28:12]File name is /storage/ofd_packets/00162864 [15:28:12]Write 301 bytes [15:28:12]NVStorageSaveData done [15:28:12]OFDSenderStorePacket done [15:28:12]KKMCreateOFDPacket done [15:28:12]NVStorageSaveData kkm_last_timestamp [15:28:12]File name is /storage/kkm_last_timestamp [15:28:12]Write 4 bytes [15:28:12]NVStorageSaveData done [15:28:12]ExternCall_PrintAddStr [15:28:12]wPrintStart [15:28:12]Write to MH i2c: 01 00 00 78 27 9F [15:28:12]Write i2c OK [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: 01 [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: 01 07 00 [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: 01 07 00 78 27 00 00 00 00 00 FF 0F B4 [15:28:12]RasterBufferAndPrint [15:28:12]line Счет N : (1)1319468 [15:28:12]line ИНН: 02508201610067 [15:28:12]line Контрольно-Кассовый Чек [15:28:12]line ПРОДАЖА [15:28:12]line ТРК (МРК, ГНК) : 34 [15:28:12]line Товар: 2710124500 [15:28:12]line Аи-95-К-5 [15:28:12]line 9.280 * 74.40 [15:28:12]line = 690.43 [15:28:12]line НДС 12% НСП 1% [15:28:12]line > о реализуемом товаре [15:28:12]line ОКРУГЛЕНИЕ: -0.43 [15:28:12]line ИТОГО: 690.00 [15:28:12]line Внесено: 690.00 [15:28:12]line СДАЧА: 0.00 [15:28:12]line НСП 1% : 6.11 [15:28:12]line НДС 12% : 73.32 [15:28:12]line Наличными: 690.00 [15:28:12]line Безнал.: 0.00 [15:28:12]line Место: АЗС № 140 "Партнер Нефть" [15:28:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:28:12]line СНО: Общий режим [15:28:12]line Чек 176 14.07.2024 15:28 [15:28:12]line Смена: 463 ФФД: 1.0 [15:28:12]line ЗНМ: 0300000129 [15:28:12]line РНМ: 0000000000090858 [15:28:12]line Версия ККМ: 001 [15:28:12]line ФМ: 0000000000874899 [15:28:12]line ФД: 162864 [15:28:12]line ФПД: 97492761040996 [15:28:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152811&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162864&fm=97492761040996&tin=02508201610067®Number=0000000000090858&sum=69000 [15:28:12]written 0, free lines is 4095 [15:28:12]OFD Sender: Processing packet 162864 [packets to send 106, broken 105] [15:28:12]ProducePacketName [15:28:12]name=ofd_packets/00162864 [15:28:12]OFD Sender: To server: pG, [15:28:12]CommunicateWithHost lk.salyk.kg:30040 [15:28:12]ConnectInit lk.salyk.kg [15:28:12]Connected sock=10 [15:28:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FD 3E 07 01 4B 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 24 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B3 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1C 00 00 00 00 07 04 06 00 88 0D 01 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 8B EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7C 02 00 35 04 06 00 58 AB 4D 63 D8 64 7F E0 3C 16 32 1B DD 03 [15:28:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8B 0C 47 00 8C 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7C 02 00 F4 03 04 00 99 9A 93 66 B6 04 01 00 00 4E 55 29 B2 68 EF C6 92 [15:28:12]CommunicateWithHost err = 0 [15:28:12]CheckOFDResponse [15:28:12]1017 (14) - 77093643461234 [15:28:12]1041 (16) - 0000000000874899 [15:28:12]1040 (4) - 162864 [15:28:12]1012 (4) - 14.07.2024 09:30 [15:28:12]1206 (1) - 0 [15:28:12]OFD Sender: Remove packet 162864 [15:28:12]ProducePacketName [15:28:12]name=ofd_packets/00162864 [15:28:12]NVStorageDeleteData [15:28:12]Write to MH i2c: 01 00 00 A3 27 CA [15:28:12]Write i2c OK [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: 01 [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: 01 07 00 [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: 01 07 00 A3 27 00 00 00 00 00 0B 0D E9 [15:28:12]RasterBufferAndPrint [15:28:12]line [15:28:12]line [15:28:12]line [15:28:12]line [15:28:12]line [15:28:12]written 0, free lines is 3360 [15:28:12]MH_Cut [15:28:12]Write to MH i2c: D1 01 00 AA 27 01 A3 [15:28:12]Write i2c OK [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: D1 [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: D1 01 00 [15:28:12]MH_I2C_Read... [15:28:12]Read from MH i2c: D1 01 00 AA 27 00 A2 [15:28:12]Write to MH i2c: 01 00 00 AB 27 D2 [15:28:12]Write i2c OK [15:28:12]MH_I2C_Read... [15:28:13]OFD Sender: No OFD packet to send [15:28:13]*** Cut start [15:28:13]*** Purtial cut [15:28:13]*** Stage 1: CUTSNS_PIN = 1 [15:28:13]Read from MH i2c: 01 [15:28:13]MH_I2C_Read... [15:28:13]*** Stop cut motor [15:28:13]*** Cut end [15:28:13]Read from MH i2c: 01 07 00 [15:28:13]MH_I2C_Read... [15:28:13]Read from MH i2c: 01 07 00 AB 27 00 00 00 00 00 FF 0F E7 [15:28:13]process_action close_receipt done [15:28:13]requested_data is exist [15:28:13]produce_requested_data [15:28:13]requested_item fm.sn is exist - process it [15:28:13]wFMCommunicate request_size=4 [15:28:13]MH_SAM_APDU [15:28:13]CAPDU: 80 11 00 00 [15:28:13]Write to MH i2c: E2 08 00 AC 27 80 11 00 00 00 00 00 00 4D [15:28:13]Write i2c OK [15:28:13]MH_I2C_Read... [15:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:13]Read from MH i2c: E2 [15:28:13]MH_I2C_Read... [15:28:13]Read from MH i2c: E2 17 00 [15:28:13]MH_I2C_Read... [15:28:13]Read from MH i2c: E2 17 00 AC 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AD [15:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:28:13]wFMCommunicate OK [15:28:13]requested_item fd.num is exist - process it [15:28:13]SAM_PROTO_GetFieldsCounters [15:28:13]wFMCommunicate request_size=4 [15:28:13]MH_SAM_APDU [15:28:13]CAPDU: 80 13 00 00 [15:28:13]Write to MH i2c: E2 08 00 AD 27 80 13 00 00 00 00 00 00 50 [15:28:13]Write i2c OK [15:28:13]MH_I2C_Read... [15:28:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:13]Read from MH i2c: E2 [15:28:13]MH_I2C_Read... [15:28:13]Read from MH i2c: E2 62 00 [15:28:13]MH_I2C_Read... [15:28:13]Read from MH i2c: E2 62 00 AD 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 30 7C 02 00 0E 04 04 00 CF 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 11 [15:28:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 30 7C 02 00 0E 04 04 00 CF 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 [15:28:13]wFMCommunicate OK [15:28:13]SAM_PROTO_GetFieldsCounters done [15:28:13]requested_item shift.num is exist - process it [15:28:13]requested_item shift.opened is exist - process it [15:28:13]req_shift_opened [15:28:13]FM_GetShiftState [15:28:13]SAM_PROTO_GetShiftState [15:28:13]wFMCommunicate request_size=4 [15:28:13]MH_SAM_APDU [15:28:13]CAPDU: 80 13 01 00 [15:28:13]Write to MH i2c: E2 08 00 AE 27 80 13 01 00 00 00 00 00 52 [15:28:13]Write i2c OK [15:28:13]MH_I2C_Read... [15:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:14]Read from MH i2c: E2 [15:28:14]MH_I2C_Read... [15:28:14]Read from MH i2c: E2 0E 00 [15:28:14]MH_I2C_Read... [15:28:14]Read from MH i2c: E2 0E 00 AE 27 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 88 [15:28:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:28:14]wFMCommunicate OK [15:28:14]SAM_PROTO_GetShiftState done [15:28:14]FM_GetShiftState done [15:28:14]req_shift_opened done [15:28:14]requested_item shift.open_date is exist - process it [15:28:14]req_shift_open_date [15:28:14]req_shift_open_date done [15:28:14]produce_requested_data done [15:28:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162864,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:28:14]process_action_free close_receipt [15:28:14]json_value_free [15:28:14]json_value_free done [15:28:14]process_json_proto returns [15:28:14]Send response to host [15:28:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162864,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:28:14]free response buf [15:28:14]execute_script done [15:28:14]execute_script returns [15:28:14]free content buf [15:28:14]Sock 7.Close socket [15:28:14]Sock 7.Thread stoped [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:58]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:08]OFD Sender: No OFD packet to send [15:29:12]accept exits with 9 [15:29:12]New connection [15:29:12]New thread 3066879332 created [15:29:12]Thread 3066735972 joined [15:29:12]Waiting for new connection... [15:29:12] Sock 9.Parse request [15:29:12]Sock 9.Check first char [15:29:12]Sock 9.First char is OK [15:29:12]request: POST /json_proto HTTP/1.0 [15:29:12]Method: POST [15:29:12]URL: /json_proto [15:29:12]Method is POST - this is cgi request [15:29:12]url: /json_proto [15:29:12]query_string will be loaded in cgi processing [15:29:12]execute_cgi json_proto POST (null) [15:29:12]execute_cgi path=json_proto method=POST [15:29:12]POST find Content-Length [15:29:12]Host: 172.17.39.67:8080 [15:29:12]Content-Length: 807 [15:29:12]Content-Type: application/json [15:29:12] [15:29:12]POST finish read [15:29:12]Found Content-Length = 807 [15:29:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.770, "sum" : 999.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 999.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:12]execute_script... [15:29: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)1319469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.770, "sum" : 999.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 999.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:12]POST & json_proto [15:29:12]process_json_proto [15:29:12]json parsed OK: [15:29:12]protocol is kg_v1.0 [15:29:12]action value=close_receipt [15:29:12]process_action close_receipt [15:29:12]cmd_close_receipt [15:29:12]MH_GetDate [15:29:12]Write to MH i2c: F0 00 00 AF 27 C5 [15:29:12]Write i2c OK [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: F0 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: F0 09 00 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: F0 09 00 AF 27 00 C9 EE 93 66 B6 85 93 66 B2 [15:29:12]GetLastDocTimeStamp 1720970891 [15:29:12]current date 1720970953 [15:29:12]FM_GetShiftState [15:29:12]SAM_PROTO_GetShiftState [15:29:12]wFMCommunicate request_size=4 [15:29:12]MH_SAM_APDU [15:29:12]CAPDU: 80 13 01 00 [15:29:12]Write to MH i2c: E2 08 00 B0 27 80 13 01 00 00 00 00 00 54 [15:29:12]Write i2c OK [15:29:12]MH_I2C_Read... [15:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:12]Read from MH i2c: E2 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: E2 0E 00 [15:29:12]MH_I2C_Read... [15:29:12]Read from MH i2c: E2 0E 00 B0 27 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8A [15:29:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:29:12]wFMCommunicate OK [15:29:12]SAM_PROTO_GetShiftState done [15:29:12]FM_GetShiftState done [15:29:12]opened in 1720915483 [15:29:12]opened+sec_in_day 1721001883 [15:29:12]quantity*price = 99970 [15:29:12]sum+1 = 99971 [15:29:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.70 НСП 1% : 8.85 НДС 12% : 106.16 Наличными: 0.00 Безнал.: 999.70 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 177 14.07.2024 15:29 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162865 ФПД: 270363262689903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152913&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162865&fm=270363262689903&tin=02508201610067®Number=0000000000090858&sum=99970 [15:29:13]StoreToDocumentArchive [15:29:13]shift 463 fd 162865 [15:29:13]save to /storage/0463/doc_00162865 [15:29:13]save last doc name /storage/0463/doc_00162865 to /storage/kkm_last_doc_name [15:29:13]save OK [15:29:13]Clear old archive folders... [15:29:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:29:13]tlvbuf is 01307AF0 [15:29:13]SAM_PROTO_ClearQueue [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 09 00 00 [15:29:13]Write to MH i2c: E2 08 00 BD 27 80 09 00 00 00 00 00 00 56 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 BD 27 00 90 00 58 [15:29:13]RAPDU: 90 00 [15:29:13]wFMCommunicate OK [15:29:13]SAM_PROTO_ClearQueue done [15:29:13]KKMCreateOFDPacket [15:29:13]OFDProtocolAddRootSTLVToBuf [15:29:13]FM_MakeSignedData [15:29:13]FM_MakeSignedData [15:29:13]SAM_PROTO_SignData [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 0D 01 02 [15:29:13]Write to MH i2c: E2 08 00 BE 27 80 0D 01 02 00 00 00 00 5E [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 BE 27 00 90 00 59 [15:29:13]RAPDU: 90 00 [15:29:13]wFMCommunicate OK [15:29:13]wFMCommunicate request_size=255 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 C9 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7C 02 00 35 04 06 00 [15:29:13]Write to MH i2c: E2 02 01 BF 27 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 C9 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7C 02 00 35 04 06 00 00 00 40 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 BF 27 00 90 00 5A [15:29:13]RAPDU: 90 00 [15:29:13]wFMCommunicate OK [15:29:13]wFMCommunicate request_size=11 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 0D 02 02 06 F5 E4 DA 3B A2 6F [15:29:13]Write to MH i2c: E2 0E 00 C0 27 80 0D 02 02 06 00 F5 E4 DA 3B A2 6F 00 00 6C [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 03 00 C0 27 00 90 00 5B [15:29:13]RAPDU: 90 00 [15:29:13]wFMCommunicate OK [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 0D 03 02 [15:29:13]Write to MH i2c: E2 08 00 C1 27 80 0D 03 02 00 00 00 00 63 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 0B 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 0B 00 C1 27 00 62 D1 A4 21 4F 8E 83 F1 90 00 AD [15:29:13]RAPDU: 62 D1 A4 21 4F 8E 83 F1 90 00 [15:29:13]wFMCommunicate OK [15:29:13]SAM_PROTO_SignData done [15:29:13]FM_MakeSignedData done [15:29:13]CreateOFDProtocolMessage [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 11 00 00 [15:29:13]Write to MH i2c: E2 08 00 C2 27 80 11 00 00 00 00 00 00 63 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 17 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 17 00 C2 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C3 [15:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:29:13]wFMCommunicate OK [15:29:13]CreateOFDProtocolMessage done [15:29:13]OFDSenderStorePacket 162865 [15:29:13]StoreOFDPacket docnum=162865 [15:29:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 69 FB 08 01 5B 83 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 C9 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7C 02 00 35 04 06 00 F5 E4 DA 3B A2 6F 62 D1 A4 21 4F 8E 83 F1 [15:29:13]CheckFolder [15:29:13]dirname=/storage/ofd_packets [15:29:13]CheckFolder done [15:29:13]ProducePacketName [15:29:13]name=ofd_packets/00162865 [15:29:13]NVStorageSaveData ofd_packets/00162865 [15:29:13]File name is /storage/ofd_packets/00162865 [15:29:13]Write 302 bytes [15:29:13]NVStorageSaveData done [15:29:13]OFDSenderStorePacket done [15:29:13]KKMCreateOFDPacket done [15:29:13]NVStorageSaveData kkm_last_timestamp [15:29:13]File name is /storage/kkm_last_timestamp [15:29:13]Write 4 bytes [15:29:13]NVStorageSaveData done [15:29:13]ExternCall_PrintAddStr [15:29:13]wPrintStart [15:29:13]Write to MH i2c: 01 00 00 C3 27 EA [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 07 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 07 00 C3 27 00 00 00 00 00 FF 0F FF [15:29:13]RasterBufferAndPrint [15:29:13]line Счет N : (1)1319469 [15:29:13]line ИНН: 02508201610067 [15:29:13]line Контрольно-Кассовый Чек [15:29:13]line ПРОДАЖА [15:29:13]line ТРК (МРК, ГНК) : 11 [15:29:13]line Товар: 2710194210 [15:29:13]line ДТ(л)-К-5 [15:29:13]line 13.770 * 72.60 [15:29:13]line = 999.70 [15:29:13]line НДС 12% НСП 1% [15:29:13]line > о реализуемом товаре [15:29:13]line ИТОГО: 999.70 [15:29:13]line НСП 1% : 8.85 [15:29:13]line НДС 12% : 106.16 [15:29:13]line Наличными: 0.00 [15:29:13]line Безнал.: 999.70 [15:29:13]line Место: АЗС № 140 "Партнер Нефть" [15:29:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:29:13]line СНО: Общий режим [15:29:13]line Чек 177 14.07.2024 15:29 [15:29:13]line Смена: 463 ФФД: 1.0 [15:29:13]line ЗНМ: 0300000129 [15:29:13]line РНМ: 0000000000090858 [15:29:13]line Версия ККМ: 001 [15:29:13]line Платежная система: O! деньги [15:29:13]line ФМ: 0000000000874899 [15:29:13]line ФД: 162865 [15:29:13]line ФПД: 270363262689903 [15:29:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T152913&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162865&fm=270363262689903&tin=02508201610067®Number=0000000000090858&sum=99970 [15:29:14]written 0, free lines is 4095 [15:29:14]OFD Sender: Processing packet 162865 [packets to send 106, broken 105] [15:29:14]ProducePacketName [15:29:14]name=ofd_packets/00162865 [15:29:14]OFD Sender: To server: pG, [15:29:14]CommunicateWithHost lk.salyk.kg:30040 [15:29:14]ConnectInit lk.salyk.kg [15:29:14]Connected sock=10 [15:29:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 69 FB 08 01 5B 83 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 C9 EE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7C 02 00 35 04 06 00 F5 E4 DA 3B A2 6F 62 D1 A4 21 4F 8E 83 F1 [15:29:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BA F1 47 00 25 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7C 02 00 F4 03 04 00 D7 9A 93 66 B6 04 01 00 00 DE CD C5 AE DC 66 FD C6 [15:29:14]CommunicateWithHost err = 0 [15:29:14]CheckOFDResponse [15:29:14]1017 (14) - 77093643461234 [15:29:14]1041 (16) - 0000000000874899 [15:29:14]1040 (4) - 162865 [15:29:14]1012 (4) - 14.07.2024 09:31 [15:29:14]1206 (1) - 0 [15:29:14]OFD Sender: Remove packet 162865 [15:29:14]ProducePacketName [15:29:14]name=ofd_packets/00162865 [15:29:14]NVStorageDeleteData [15:29:14]Write to MH i2c: 01 00 00 ED 27 14 [15:29:14]Write i2c OK [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: 01 [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: 01 07 00 [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: 01 07 00 ED 27 00 00 00 00 00 F5 0C 1C [15:29:14]RasterBufferAndPrint [15:29:14]line [15:29:14]line [15:29:14]line [15:29:14]line [15:29:14]line [15:29:14]written 0, free lines is 3323 [15:29:14]MH_Cut [15:29:14]Write to MH i2c: D1 01 00 F4 27 01 ED [15:29:14]Write i2c OK [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: D1 [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: D1 01 00 [15:29:14]MH_I2C_Read... [15:29:14]Read from MH i2c: D1 01 00 F4 27 00 EC [15:29:14]Write to MH i2c: 01 00 00 F5 27 1C [15:29:14]Write i2c OK [15:29:14]MH_I2C_Read... [15:29:15]OFD Sender: No OFD packet to send [15:29:15]*** Cut start [15:29:15]*** Purtial cut [15:29:15]*** CUTSNS_PIN = 0 [15:29:15]*** Stage 1: CUTSNS_PIN = 1 [15:29:17]Read from MH i2c: 01 [15:29:17]MH_I2C_Read... [15:29:17]*** Stop cut motor [15:29:17]*** Cut end [15:29:17]Read from MH i2c: 01 07 00 [15:29:17]MH_I2C_Read... [15:29:17]Read from MH i2c: 01 07 00 F5 27 00 00 00 00 00 FF 0F 31 [15:29:17]process_action close_receipt done [15:29:17]requested_data is exist [15:29:17]produce_requested_data [15:29:17]requested_item fm.sn is exist - process it [15:29:17]wFMCommunicate request_size=4 [15:29:17]MH_SAM_APDU [15:29:17]CAPDU: 80 11 00 00 [15:29:17]Write to MH i2c: E2 08 00 F6 27 80 11 00 00 00 00 00 00 97 [15:29:17]Write i2c OK [15:29:17]MH_I2C_Read... [15:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:17]Read from MH i2c: E2 [15:29:17]MH_I2C_Read... [15:29:17]Read from MH i2c: E2 17 00 [15:29:17]MH_I2C_Read... [15:29:17]Read from MH i2c: E2 17 00 F6 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F7 [15:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:29:17]wFMCommunicate OK [15:29:17]requested_item fd.num is exist - process it [15:29:17]SAM_PROTO_GetFieldsCounters [15:29:17]wFMCommunicate request_size=4 [15:29:17]MH_SAM_APDU [15:29:17]CAPDU: 80 13 00 00 [15:29:17]Write to MH i2c: E2 08 00 F7 27 80 13 00 00 00 00 00 00 9A [15:29:17]Write i2c OK [15:29:17]MH_I2C_Read... [15:29:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:17]Read from MH i2c: E2 [15:29:17]MH_I2C_Read... [15:29:17]Read from MH i2c: E2 62 00 [15:29:17]MH_I2C_Read... [15:29:17]Read from MH i2c: E2 62 00 F7 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 31 7C 02 00 0E 04 04 00 CF 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 5F [15:29:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 31 7C 02 00 0E 04 04 00 CF 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 [15:29:17]wFMCommunicate OK [15:29:17]SAM_PROTO_GetFieldsCounters done [15:29:17]requested_item shift.num is exist - process it [15:29:17]requested_item shift.opened is exist - process it [15:29:17]req_shift_opened [15:29:17]FM_GetShiftState [15:29:17]SAM_PROTO_GetShiftState [15:29:17]wFMCommunicate request_size=4 [15:29:17]MH_SAM_APDU [15:29:17]CAPDU: 80 13 01 00 [15:29:17]Write to MH i2c: E2 08 00 F8 27 80 13 01 00 00 00 00 00 9C [15:29:17]Write i2c OK [15:29:17]MH_I2C_Read... [15:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:17]Read from MH i2c: E2 [15:29:17]MH_I2C_Read... [15:29:17]Read from MH i2c: E2 0E 00 [15:29:17]MH_I2C_Read... [15:29:17]Read from MH i2c: E2 0E 00 F8 27 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D2 [15:29:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:29:17]wFMCommunicate OK [15:29:17]SAM_PROTO_GetShiftState done [15:29:17]FM_GetShiftState done [15:29:17]req_shift_opened done [15:29:17]requested_item shift.open_date is exist - process it [15:29:17]req_shift_open_date [15:29:17]req_shift_open_date done [15:29:17]produce_requested_data done [15:29:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162865,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:29:17]process_action_free close_receipt [15:29:17]json_value_free [15:29:17]json_value_free done [15:29:17]process_json_proto returns [15:29:17]Send response to host [15:29:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162865,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:29:17]free response buf [15:29:17]execute_script done [15:29:17]execute_script returns [15:29:17]free content buf [15:29:17]Sock 9.Close socket [15:29:17]Sock 9.Thread stoped [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: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:49]accept exits with 7 [15:30:49]New connection [15:30:49]New thread 3066735972 created [15:30:49]Thread 3066879332 joined [15:30:49]Waiting for new connection... [15:30:49] Sock 7.Parse request [15:30:49]Sock 7.Check first char [15:30:49]Sock 7.First char is OK [15:30:49]request: POST /json_proto HTTP/1.0 [15:30:49]Method: POST [15:30:49]URL: /json_proto [15:30:49]Method is POST - this is cgi request [15:30:49]url: /json_proto [15:30:49]query_string will be loaded in cgi processing [15:30:49]execute_cgi json_proto POST (null) [15:30:49]execute_cgi path=json_proto method=POST [15:30:49]POST find Content-Length [15:30:49]Host: 172.17.39.67:8080 [15:30:49]Content-Length: 683 [15:30:49]Content-Type: application/json [15:30:49] [15:30:49]POST finish read [15:30:49]Found Content-Length = 683 [15:30:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "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" ] } } [15:30:49]execute_script... [15:30: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)1319470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "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" ] } } [15:30:49]POST & json_proto [15:30:49]process_json_proto [15:30:49]json parsed OK: [15:30:49]protocol is kg_v1.0 [15:30:49]action value=close_receipt [15:30:49]process_action close_receipt [15:30:49]cmd_close_receipt [15:30:49]MH_GetDate [15:30:49]Write to MH i2c: F0 00 00 F9 27 0F [15:30:49]Write i2c OK [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: F0 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: F0 09 00 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: F0 09 00 F9 27 00 2B EF 93 66 B6 85 93 66 5F [15:30:49]GetLastDocTimeStamp 1720970953 [15:30:49]current date 1720971051 [15:30:49]FM_GetShiftState [15:30:49]SAM_PROTO_GetShiftState [15:30:49]wFMCommunicate request_size=4 [15:30:49]MH_SAM_APDU [15:30:49]CAPDU: 80 13 01 00 [15:30:49]Write to MH i2c: E2 08 00 FA 27 80 13 01 00 00 00 00 00 9E [15:30:49]Write i2c OK [15:30:49]MH_I2C_Read... [15:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:49]Read from MH i2c: E2 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 0E 00 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 0E 00 FA 27 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D4 [15:30:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:30:49]wFMCommunicate OK [15:30:49]SAM_PROTO_GetShiftState done [15:30:49]FM_GetShiftState done [15:30:49]opened in 1720915483 [15:30:49]opened+sec_in_day 1721001883 [15:30:49]quantity*price = 60040 [15:30:49]sum+1 = 60041 [15:30:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 178 14.07.2024 15:30 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162866 ФПД: 72206839161001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T153051&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162866&fm=72206839161001&tin=02508201610067®Number=0000000000090858&sum=60000 [15:30:50]StoreToDocumentArchive [15:30:50]shift 463 fd 162866 [15:30:50]save to /storage/0463/doc_00162866 [15:30:50]save last doc name /storage/0463/doc_00162866 to /storage/kkm_last_doc_name [15:30:50]save OK [15:30:50]Clear old archive folders... [15:30:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:30:50]tlvbuf is 01345F10 [15:30:50]SAM_PROTO_ClearQueue [15:30:50]wFMCommunicate request_size=4 [15:30:50]MH_SAM_APDU [15:30:50]CAPDU: 80 09 00 00 [15:30:50]Write to MH i2c: E2 08 00 07 28 80 09 00 00 00 00 00 00 A1 [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:50]Read from MH i2c: E2 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 03 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 03 00 07 28 00 90 00 A3 [15:30:50]RAPDU: 90 00 [15:30:50]wFMCommunicate OK [15:30:50]SAM_PROTO_ClearQueue done [15:30:50]KKMCreateOFDPacket [15:30:50]OFDProtocolAddRootSTLVToBuf [15:30:50]FM_MakeSignedData [15:30:50]FM_MakeSignedData [15:30:50]SAM_PROTO_SignData [15:30:50]wFMCommunicate request_size=4 [15:30:50]MH_SAM_APDU [15:30:50]CAPDU: 80 0D 01 02 [15:30:50]Write to MH i2c: E2 08 00 08 28 80 0D 01 02 00 00 00 00 A9 [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:50]Read from MH i2c: E2 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 03 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 03 00 08 28 00 90 00 A4 [15:30:50]RAPDU: 90 00 [15:30:50]wFMCommunicate OK [15:30:50]wFMCommunicate request_size=255 [15:30:50]MH_SAM_APDU [15:30:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2B EF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7C 02 00 35 04 06 00 [15:30:50]Write to MH i2c: E2 02 01 09 28 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2B EF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7C 02 00 35 04 06 00 00 00 46 [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 09 28 00 90 00 A5 [15:30:51]RAPDU: 90 00 [15:30:51]wFMCommunicate OK [15:30:51]wFMCommunicate request_size=11 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 0D 02 02 06 41 AB F6 FF A0 A9 [15:30:51]Write to MH i2c: E2 0E 00 0A 28 80 0D 02 02 06 00 41 AB F6 FF A0 A9 00 00 E2 [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 0A 28 00 90 00 A6 [15:30:51]RAPDU: 90 00 [15:30:51]wFMCommunicate OK [15:30:51]wFMCommunicate request_size=4 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 0D 03 02 [15:30:51]Write to MH i2c: E2 08 00 0B 28 80 0D 03 02 00 00 00 00 AE [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 0B 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 0B 00 0B 28 00 24 A2 C4 4D 15 14 6C 6E 90 00 89 [15:30:51]RAPDU: 24 A2 C4 4D 15 14 6C 6E 90 00 [15:30:51]wFMCommunicate OK [15:30:51]SAM_PROTO_SignData done [15:30:51]FM_MakeSignedData done [15:30:51]CreateOFDProtocolMessage [15:30:51]wFMCommunicate request_size=4 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 11 00 00 [15:30:51]Write to MH i2c: E2 08 00 0C 28 80 11 00 00 00 00 00 00 AE [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 17 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 17 00 0C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0E [15:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:30:51]wFMCommunicate OK [15:30:51]CreateOFDProtocolMessage done [15:30:51]OFDSenderStorePacket 162866 [15:30:51]StoreOFDPacket docnum=162866 [15:30:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 23 A3 08 01 8A 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2B EF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7C 02 00 35 04 06 00 41 AB F6 FF A0 A9 24 A2 C4 4D 15 14 6C 6E [15:30:51]CheckFolder [15:30:51]dirname=/storage/ofd_packets [15:30:51]CheckFolder done [15:30:51]ProducePacketName [15:30:51]name=ofd_packets/00162866 [15:30:51]NVStorageSaveData ofd_packets/00162866 [15:30:51]File name is /storage/ofd_packets/00162866 [15:30:51]Write 302 bytes [15:30:51]NVStorageSaveData done [15:30:51]OFDSenderStorePacket done [15:30:51]KKMCreateOFDPacket done [15:30:51]NVStorageSaveData kkm_last_timestamp [15:30:51]File name is /storage/kkm_last_timestamp [15:30:51]Write 4 bytes [15:30:51]NVStorageSaveData done [15:30:51]ExternCall_PrintAddStr [15:30:51]wPrintStart [15:30:51]Write to MH i2c: 01 00 00 0D 28 35 [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: 01 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: 01 07 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: 01 07 00 0D 28 00 00 00 00 00 FF 0F 4A [15:30:51]RasterBufferAndPrint [15:30:51]line Счет N : (1)1319470 [15:30:51]line ИНН: 02508201610067 [15:30:51]line Контрольно-Кассовый Чек [15:30:51]line ПРОДАЖА [15:30:51]line ТРК (МРК, ГНК) : 41 [15:30:51]line Товар: 2710194210 [15:30:51]line ДТ(л)-К-5 [15:30:51]line 8.270 * 72.60 [15:30:51]line = 600.40 [15:30:51]line НДС 12% НСП 1% [15:30:51]line > о реализуемом товаре [15:30:51]line ОКРУГЛЕНИЕ: -0.40 [15:30:51]line ИТОГО: 600.00 [15:30:51]line Внесено: 600.00 [15:30:51]line СДАЧА: 0.00 [15:30:51]line НСП 1% : 5.31 [15:30:51]line НДС 12% : 63.76 [15:30:51]line Наличными: 600.00 [15:30:51]line Безнал.: 0.00 [15:30:51]line Место: АЗС № 140 "Партнер Нефть" [15:30:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:30:51]line СНО: Общий режим [15:30:51]line Чек 178 14.07.2024 15:30 [15:30:51]line Смена: 463 ФФД: 1.0 [15:30:51]line ЗНМ: 0300000129 [15:30:51]line РНМ: 0000000000090858 [15:30:51]line Версия ККМ: 001 [15:30:51]line ФМ: 0000000000874899 [15:30:51]line ФД: 162866 [15:30:51]line ФПД: 72206839161001 [15:30:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T153051&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162866&fm=72206839161001&tin=02508201610067®Number=0000000000090858&sum=60000 [15:30:51]OFD Sender: Processing packet 162866 [packets to send 106, broken 105] [15:30:51]ProducePacketName [15:30:51]name=ofd_packets/00162866 [15:30:51]OFD Sender: To server: pG, [15:30:51]CommunicateWithHost lk.salyk.kg:30040 [15:30:51]ConnectInit lk.salyk.kg [15:30:51]written 0, free lines is 4095 [15:30:51]Connected sock=10 [15:30:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 23 A3 08 01 8A 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2B EF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7C 02 00 35 04 06 00 41 AB F6 FF A0 A9 24 A2 C4 4D 15 14 6C 6E [15:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B1 B7 47 00 82 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7C 02 00 F4 03 04 00 38 9B 93 66 B6 04 01 00 00 6E CC BE 5D 4F 88 2E 62 [15:30:51]CommunicateWithHost err = 0 [15:30:51]CheckOFDResponse [15:30:51]1017 (14) - 77093643461234 [15:30:51]1041 (16) - 0000000000874899 [15:30:51]1040 (4) - 162866 [15:30:51]1012 (4) - 14.07.2024 09:32 [15:30:51]1206 (1) - 0 [15:30:51]OFD Sender: Remove packet 162866 [15:30:51]ProducePacketName [15:30:51]name=ofd_packets/00162866 [15:30:51]NVStorageDeleteData [15:30:52]Write to MH i2c: 01 00 00 38 28 60 [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 07 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 07 00 38 28 00 00 00 00 00 EE 0C 61 [15:30:52]RasterBufferAndPrint [15:30:52]line [15:30:52]line [15:30:52]line [15:30:52]line [15:30:52]line [15:30:52]written 0, free lines is 3316 [15:30:52]MH_Cut [15:30:52]Write to MH i2c: D1 01 00 3F 28 01 39 [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: D1 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: D1 01 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: D1 01 00 3F 28 00 38 [15:30:52]Write to MH i2c: 01 00 00 40 28 68 [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]OFD Sender: No OFD packet to send [15:30:52]*** Cut start [15:30:52]*** Purtial cut [15:30:52]*** Stage 1: CUTSNS_PIN = 1 [15:30:52]Read from MH i2c: 01 [15:30:52]MH_I2C_Read... [15:30:52]*** Stop cut motor [15:30:53]*** Cut end [15:30:53]Read from MH i2c: 01 07 00 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: 01 07 00 40 28 00 00 00 00 00 FF 0F 7D [15:30:53]process_action close_receipt done [15:30:53]requested_data is exist [15:30:53]produce_requested_data [15:30:53]requested_item fm.sn is exist - process it [15:30:53]wFMCommunicate request_size=4 [15:30:53]MH_SAM_APDU [15:30:53]CAPDU: 80 11 00 00 [15:30:53]Write to MH i2c: E2 08 00 41 28 80 11 00 00 00 00 00 00 E3 [15:30:53]Write i2c OK [15:30:53]MH_I2C_Read... [15:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:53]Read from MH i2c: E2 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 17 00 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 17 00 41 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 43 [15:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:30:53]wFMCommunicate OK [15:30:53]requested_item fd.num is exist - process it [15:30:53]SAM_PROTO_GetFieldsCounters [15:30:53]wFMCommunicate request_size=4 [15:30:53]MH_SAM_APDU [15:30:53]CAPDU: 80 13 00 00 [15:30:53]Write to MH i2c: E2 08 00 42 28 80 13 00 00 00 00 00 00 E6 [15:30:53]Write i2c OK [15:30:53]MH_I2C_Read... [15:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:53]Read from MH i2c: E2 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 62 00 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 62 00 42 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 32 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [15:30:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 32 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:53]wFMCommunicate OK [15:30:53]SAM_PROTO_GetFieldsCounters done [15:30:53]requested_item shift.num is exist - process it [15:30:53]requested_item shift.opened is exist - process it [15:30:53]req_shift_opened [15:30:53]FM_GetShiftState [15:30:53]SAM_PROTO_GetShiftState [15:30:53]wFMCommunicate request_size=4 [15:30:53]MH_SAM_APDU [15:30:53]CAPDU: 80 13 01 00 [15:30:53]Write to MH i2c: E2 08 00 43 28 80 13 01 00 00 00 00 00 E8 [15:30:53]Write i2c OK [15:30:53]MH_I2C_Read... [15:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:53]Read from MH i2c: E2 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 0E 00 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 0E 00 43 28 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1E [15:30:53]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:30:53]wFMCommunicate OK [15:30:53]SAM_PROTO_GetShiftState done [15:30:53]FM_GetShiftState done [15:30:53]req_shift_opened done [15:30:53]requested_item shift.open_date is exist - process it [15:30:53]req_shift_open_date [15:30:53]req_shift_open_date done [15:30:53]produce_requested_data done [15:30:53]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162866,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:30:53]process_action_free close_receipt [15:30:53]json_value_free [15:30:53]json_value_free done [15:30:53]process_json_proto returns [15:30:53]Send response to host [15:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162866,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:30:53]free response buf [15:30:53]execute_script done [15:30:53]execute_script returns [15:30:53]free content buf [15:30:53]Sock 7.Close socket [15:30:53]Sock 7.Thread stoped [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]accept exits with 9 [15:33:02]New connection [15:33:02]New thread 3066879332 created [15:33:02]Thread 3066735972 joined [15:33:02]Waiting for new connection... [15:33:02] Sock 9.Parse request [15:33:02]Sock 9.Check first char [15:33:02]Sock 9.First char is OK [15:33:02]request: POST /json_proto HTTP/1.0 [15:33:02]Method: POST [15:33:02]URL: /json_proto [15:33:02]Method is POST - this is cgi request [15:33:02]url: /json_proto [15:33:02]query_string will be loaded in cgi processing [15:33:02]execute_cgi json_proto POST (null) [15:33:02]execute_cgi path=json_proto method=POST [15:33:02]POST find Content-Length [15:33:02]Host: 172.17.39.67:8080 [15:33:02]Content-Length: 678 [15:33:02]Content-Type: application/json [15:33:02] [15:33:02]POST finish read [15:33:02]Found Content-Length = 678 [15:33:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.880, "sum" : 655.04, "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" ] } } [15:33:02]execute_script... [15:33: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)1319472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.880, "sum" : 655.04, "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" ] } } [15:33:02]POST & json_proto [15:33:02]process_json_proto [15:33:02]json parsed OK: [15:33:02]protocol is kg_v1.0 [15:33:02]action value=close_receipt [15:33:02]process_action close_receipt [15:33:02]cmd_close_receipt [15:33:02]MH_GetDate [15:33:02]Write to MH i2c: F0 00 00 44 28 5B [15:33:02]Write i2c OK [15:33:02]MH_I2C_Read... [15:33:02]Read from MH i2c: F0 [15:33:02]MH_I2C_Read... [15:33:02]Read from MH i2c: F0 09 00 [15:33:02]MH_I2C_Read... [15:33:02]Read from MH i2c: F0 09 00 44 28 00 AF EF 93 66 B6 85 93 66 2F [15:33:02]GetLastDocTimeStamp 1720971051 [15:33:02]current date 1720971183 [15:33:02]FM_GetShiftState [15:33:02]SAM_PROTO_GetShiftState [15:33:02]wFMCommunicate request_size=4 [15:33:02]MH_SAM_APDU [15:33:02]CAPDU: 80 13 01 00 [15:33:02]Write to MH i2c: E2 08 00 45 28 80 13 01 00 00 00 00 00 EA [15:33:02]Write i2c OK [15:33:02]MH_I2C_Read... [15:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:02]Read from MH i2c: E2 [15:33:02]MH_I2C_Read... [15:33:02]Read from MH i2c: E2 0E 00 [15:33:02]MH_I2C_Read... [15:33:02]Read from MH i2c: E2 0E 00 45 28 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 20 [15:33:02]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:33:02]wFMCommunicate OK [15:33:02]SAM_PROTO_GetShiftState done [15:33:02]FM_GetShiftState done [15:33:02]opened in 1720915483 [15:33:02]opened+sec_in_day 1721001883 [15:33:02]quantity*price = 65504 [15:33:02]sum+1 = 65505 [15:33:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 655.00 Внесено: 655.00 СДАЧА: 0.00 НСП 1% : 5.80 НДС 12% : 69.56 Наличными: 655.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 179 14.07.2024 15:33 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162867 ФПД: 168864970455536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T153303&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162867&fm=168864970455536&tin=02508201610067®Number=0000000000090858&sum=65500 [15:33:03]StoreToDocumentArchive [15:33:03]shift 463 fd 162867 [15:33:03]save to /storage/0463/doc_00162867 [15:33:03]save last doc name /storage/0463/doc_00162867 to /storage/kkm_last_doc_name [15:33:03]save OK [15:33:03]Clear old archive folders... [15:33:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:03]tlvbuf is 012FBCB0 [15:33:03]SAM_PROTO_ClearQueue [15:33:03]wFMCommunicate request_size=4 [15:33:03]MH_SAM_APDU [15:33:03]CAPDU: 80 09 00 00 [15:33:03]Write to MH i2c: E2 08 00 52 28 80 09 00 00 00 00 00 00 EC [15:33:03]Write i2c OK [15:33:03]MH_I2C_Read... [15:33:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:03]Read from MH i2c: E2 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 03 00 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 03 00 52 28 00 90 00 EE [15:33:03]RAPDU: 90 00 [15:33:03]wFMCommunicate OK [15:33:03]SAM_PROTO_ClearQueue done [15:33:03]KKMCreateOFDPacket [15:33:03]OFDProtocolAddRootSTLVToBuf [15:33:03]FM_MakeSignedData [15:33:03]FM_MakeSignedData [15:33:03]SAM_PROTO_SignData [15:33:03]wFMCommunicate request_size=4 [15:33:03]MH_SAM_APDU [15:33:03]CAPDU: 80 0D 01 02 [15:33:03]Write to MH i2c: E2 08 00 53 28 80 0D 01 02 00 00 00 00 F4 [15:33:03]Write i2c OK [15:33:03]MH_I2C_Read... [15:33:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:03]Read from MH i2c: E2 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 03 00 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 03 00 53 28 00 90 00 EF [15:33:03]RAPDU: 90 00 [15:33:03]wFMCommunicate OK [15:33:03]wFMCommunicate request_size=255 [15:33:03]MH_SAM_APDU [15:33: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 98 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E0 FF 00 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 2C 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 B3 00 00 00 F4 03 04 00 AF EF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7C 02 00 35 04 06 00 99 [15:33:03]Write to MH i2c: E2 02 01 54 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E0 FF 00 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 2C 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 B3 00 00 00 F4 03 04 00 AF EF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7C 02 00 35 04 06 00 99 00 00 53 [15:33:03]Write i2c OK [15:33:03]MH_I2C_Read... [15:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:03]Read from MH i2c: E2 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 03 00 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 03 00 54 28 00 90 00 F0 [15:33:03]RAPDU: 90 00 [15:33:03]wFMCommunicate OK [15:33:03]wFMCommunicate request_size=10 [15:33:03]MH_SAM_APDU [15:33:03]CAPDU: 80 0D 02 02 05 94 F0 94 39 F0 [15:33:03]Write to MH i2c: E2 0D 00 55 28 80 0D 02 02 05 00 94 F0 94 39 F0 00 00 42 [15:33:03]Write i2c OK [15:33:03]MH_I2C_Read... [15:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:03]Read from MH i2c: E2 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 03 00 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 03 00 55 28 00 90 00 F1 [15:33:03]RAPDU: 90 00 [15:33:03]wFMCommunicate OK [15:33:03]wFMCommunicate request_size=4 [15:33:03]MH_SAM_APDU [15:33:03]CAPDU: 80 0D 03 02 [15:33:03]Write to MH i2c: E2 08 00 56 28 80 0D 03 02 00 00 00 00 F9 [15:33:03]Write i2c OK [15:33:03]MH_I2C_Read... [15:33:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:03]Read from MH i2c: E2 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 0B 00 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 0B 00 56 28 00 9A 6B 54 15 92 EA 96 D3 90 00 4D [15:33:03]RAPDU: 9A 6B 54 15 92 EA 96 D3 90 00 [15:33:03]wFMCommunicate OK [15:33:03]SAM_PROTO_SignData done [15:33:03]FM_MakeSignedData done [15:33:03]CreateOFDProtocolMessage [15:33:03]wFMCommunicate request_size=4 [15:33:03]MH_SAM_APDU [15:33:03]CAPDU: 80 11 00 00 [15:33:03]Write to MH i2c: E2 08 00 57 28 80 11 00 00 00 00 00 00 F9 [15:33:03]Write i2c OK [15:33:03]MH_I2C_Read... [15:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:03]Read from MH i2c: E2 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 17 00 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: E2 17 00 57 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 59 [15:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:33:03]wFMCommunicate OK [15:33:03]CreateOFDProtocolMessage done [15:33:03]OFDSenderStorePacket 162867 [15:33:03]StoreOFDPacket docnum=162867 [15:33:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 24 4D 07 01 5E 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E0 FF 00 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 2C 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 B3 00 00 00 F4 03 04 00 AF EF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7C 02 00 35 04 06 00 99 94 F0 94 39 F0 9A 6B 54 15 92 EA 96 D3 [15:33:03]CheckFolder [15:33:03]dirname=/storage/ofd_packets [15:33:03]CheckFolder done [15:33:03]ProducePacketName [15:33:03]name=ofd_packets/00162867 [15:33:03]NVStorageSaveData ofd_packets/00162867 [15:33:03]File name is /storage/ofd_packets/00162867 [15:33:03]Write 301 bytes [15:33:03]NVStorageSaveData done [15:33:03]OFDSenderStorePacket done [15:33:03]KKMCreateOFDPacket done [15:33:03]NVStorageSaveData kkm_last_timestamp [15:33:03]File name is /storage/kkm_last_timestamp [15:33:03]Write 4 bytes [15:33:03]NVStorageSaveData done [15:33:03]ExternCall_PrintAddStr [15:33:03]wPrintStart [15:33:03]Write to MH i2c: 01 00 00 58 28 80 [15:33:03]Write i2c OK [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: 01 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: 01 07 00 [15:33:03]MH_I2C_Read... [15:33:03]Read from MH i2c: 01 07 00 58 28 00 00 00 00 00 FF 0F 95 [15:33:03]RasterBufferAndPrint [15:33:03]line Счет N : (1)1319472 [15:33:03]line ИНН: 02508201610067 [15:33:03]line Контрольно-Кассовый Чек [15:33:03]line ПРОДАЖА [15:33:03]line ТРК (МРК, ГНК) : 63 [15:33:03]line Товар: 2710124130 [15:33:03]line Аи-92-К-5 [15:33:03]line 9.880 * 66.30 [15:33:03]line = 655.04 [15:33:03]line НДС 12% НСП 1% [15:33:03]line > о реализуемом товаре [15:33:03]line ОКРУГЛЕНИЕ: -0.04 [15:33:03]line ИТОГО: 655.00 [15:33:03]line Внесено: 655.00 [15:33:03]line СДАЧА: 0.00 [15:33:03]line НСП 1% : 5.80 [15:33:03]line НДС 12% : 69.56 [15:33:03]line Наличными: 655.00 [15:33:03]line Безнал.: 0.00 [15:33:03]line Место: АЗС № 140 "Партнер Нефть" [15:33:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:33:03]line СНО: Общий режим [15:33:03]line Чек 179 14.07.2024 15:33 [15:33:03]line Смена: 463 ФФД: 1.0 [15:33:03]line ЗНМ: 0300000129 [15:33:03]line РНМ: 0000000000090858 [15:33:03]line Версия ККМ: 001 [15:33:03]line ФМ: 0000000000874899 [15:33:03]line ФД: 162867 [15:33:03]line ФПД: 168864970455536 [15:33:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T153303&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162867&fm=168864970455536&tin=02508201610067®Number=0000000000090858&sum=65500 [15:33:04]OFD Sender: Processing packet 162867 [packets to send 106, broken 105] [15:33:04]ProducePacketName [15:33:04]name=ofd_packets/00162867 [15:33:04]OFD Sender: To server: pG, [15:33:04]CommunicateWithHost lk.salyk.kg:30040 [15:33:04]ConnectInit lk.salyk.kg [15:33:04]written 0, free lines is 4095 [15:33:04]Connected sock=10 [15:33:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 24 4D 07 01 5E 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E0 FF 00 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 2C 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 B3 00 00 00 F4 03 04 00 AF EF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7C 02 00 35 04 06 00 99 94 F0 94 39 F0 9A 6B 54 15 92 EA 96 D3 [15:33:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 91 01 47 00 AC 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7C 02 00 F4 03 04 00 BD 9B 93 66 B6 04 01 00 00 72 91 D6 F3 E0 BC 39 A7 [15:33:04]CommunicateWithHost err = 0 [15:33:04]CheckOFDResponse [15:33:04]1017 (14) - 77093643461234 [15:33:04]1041 (16) - 0000000000874899 [15:33:04]1040 (4) - 162867 [15:33:04]1012 (4) - 14.07.2024 09:34 [15:33:04]1206 (1) - 0 [15:33:04]OFD Sender: Remove packet 162867 [15:33:04]ProducePacketName [15:33:04]name=ofd_packets/00162867 [15:33:04]NVStorageDeleteData [15:33:04]Write to MH i2c: 01 00 00 83 28 AB [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: 01 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: 01 07 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: 01 07 00 83 28 00 00 00 00 00 E4 0C A2 [15:33:04]RasterBufferAndPrint [15:33:04]line [15:33:04]line [15:33:04]line [15:33:04]line [15:33:04]line [15:33:04]written 0, free lines is 3306 [15:33:04]MH_Cut [15:33:04]Write to MH i2c: D1 01 00 8A 28 01 84 [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: D1 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: D1 01 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: D1 01 00 8A 28 00 83 [15:33:04]Write to MH i2c: 01 00 00 8B 28 B3 [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:05]OFD Sender: No OFD packet to send [15:33:05]*** Cut start [15:33:05]*** Purtial cut [15:33:05]*** CUTSNS_PIN = 0 [15:33:05]*** Stage 1: CUTSNS_PIN = 1 [15:33:07]Read from MH i2c: 01 [15:33:07]MH_I2C_Read... [15:33:07]*** Stop cut motor [15:33:07]*** Cut end [15:33:07]Read from MH i2c: 01 07 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: 01 07 00 8B 28 00 00 00 00 00 FF 0F C8 [15:33:07]process_action close_receipt done [15:33:07]requested_data is exist [15:33:07]produce_requested_data [15:33:07]requested_item fm.sn is exist - process it [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 11 00 00 [15:33:07]Write to MH i2c: E2 08 00 8C 28 80 11 00 00 00 00 00 00 2E [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 17 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 17 00 8C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8E [15:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:33:07]wFMCommunicate OK [15:33:07]requested_item fd.num is exist - process it [15:33:07]SAM_PROTO_GetFieldsCounters [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 13 00 00 [15:33:07]Write to MH i2c: E2 08 00 8D 28 80 13 00 00 00 00 00 00 31 [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 62 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 62 00 8D 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 33 7C 02 00 0E 04 04 00 CF 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 FE [15:33:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 33 7C 02 00 0E 04 04 00 CF 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 [15:33:07]wFMCommunicate OK [15:33:07]SAM_PROTO_GetFieldsCounters done [15:33:07]requested_item shift.num is exist - process it [15:33:07]requested_item shift.opened is exist - process it [15:33:07]req_shift_opened [15:33:07]FM_GetShiftState [15:33:07]SAM_PROTO_GetShiftState [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 13 01 00 [15:33:07]Write to MH i2c: E2 08 00 8E 28 80 13 01 00 00 00 00 00 33 [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 0E 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 0E 00 8E 28 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 69 [15:33:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:33:07]wFMCommunicate OK [15:33:07]SAM_PROTO_GetShiftState done [15:33:07]FM_GetShiftState done [15:33:07]req_shift_opened done [15:33:07]requested_item shift.open_date is exist - process it [15:33:07]req_shift_open_date [15:33:07]req_shift_open_date done [15:33:07]produce_requested_data done [15:33:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162867,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:33:07]process_action_free close_receipt [15:33:07]json_value_free [15:33:07]json_value_free done [15:33:07]process_json_proto returns [15:33:07]Send response to host [15:33:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162867,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:33:07]free response buf [15:33:07]execute_script done [15:33:07]execute_script returns [15:33:07]free content buf [15:33:07]Sock 9.Close socket [15:33:07]Sock 9.Thread stoped [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:44]accept exits with 7 [15:34:44]New connection [15:34:44]New thread 3066735972 created [15:34:44]Thread 3066879332 joined [15:34:44]Waiting for new connection... [15:34:44] Sock 7.Parse request [15:34:44]Sock 7.Check first char [15:34:44]Sock 7.First char is OK [15:34:44]request: POST /json_proto HTTP/1.0 [15:34:44]Method: POST [15:34:44]URL: /json_proto [15:34:44]Method is POST - this is cgi request [15:34:44]url: /json_proto [15:34:44]query_string will be loaded in cgi processing [15:34:44]execute_cgi json_proto POST (null) [15:34:44]execute_cgi path=json_proto method=POST [15:34:44]POST find Content-Length [15:34:44]Host: 172.17.39.67:8080 [15:34:44]Content-Length: 688 [15:34:44]Content-Type: application/json [15:34:44] [15:34:44]POST finish read [15:34:44]Found Content-Length = 688 [15:34:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 48.220, "sum" : 3500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:44]execute_script... [15:34: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)1319471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 48.220, "sum" : 3500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:44]POST & json_proto [15:34:44]process_json_proto [15:34:44]json parsed OK: [15:34:44]protocol is kg_v1.0 [15:34:44]action value=close_receipt [15:34:44]process_action close_receipt [15:34:44]cmd_close_receipt [15:34:44]MH_GetDate [15:34:44]Write to MH i2c: F0 00 00 8F 28 A6 [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: F0 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: F0 09 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: F0 09 00 8F 28 00 16 F0 93 66 B6 85 93 66 E2 [15:34:44]GetLastDocTimeStamp 1720971183 [15:34:44]current date 1720971286 [15:34:44]FM_GetShiftState [15:34:44]SAM_PROTO_GetShiftState [15:34:44]wFMCommunicate request_size=4 [15:34:44]MH_SAM_APDU [15:34:44]CAPDU: 80 13 01 00 [15:34:44]Write to MH i2c: E2 08 00 90 28 80 13 01 00 00 00 00 00 35 [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:44]Read from MH i2c: E2 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 0E 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 0E 00 90 28 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6B [15:34:44]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:34:44]wFMCommunicate OK [15:34:44]SAM_PROTO_GetShiftState done [15:34:44]FM_GetShiftState done [15:34:44]opened in 1720915483 [15:34:44]opened+sec_in_day 1721001883 [15:34:44]quantity*price = 350077 [15:34:44]sum+1 = 350078 [15:34:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 3500.00 Внесено: 4000.00 СДАЧА: 500.00 НСП 1% : 30.98 НДС 12% : 371.76 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 180 14.07.2024 15:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162868 ФПД: 228684710671339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T153446&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162868&fm=228684710671339&tin=02508201610067®Number=0000000000090858&sum=350000 [15:34:46]StoreToDocumentArchive [15:34:46]shift 463 fd 162868 [15:34:46]save to /storage/0463/doc_00162868 [15:34:46]save last doc name /storage/0463/doc_00162868 to /storage/kkm_last_doc_name [15:34:46]save OK [15:34:46]Clear old archive folders... [15:34:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:34:46]tlvbuf is 01345E70 [15:34:46]SAM_PROTO_ClearQueue [15:34:46]wFMCommunicate request_size=4 [15:34:46]MH_SAM_APDU [15:34:46]CAPDU: 80 09 00 00 [15:34:46]Write to MH i2c: E2 08 00 9D 28 80 09 00 00 00 00 00 00 37 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 03 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 03 00 9D 28 00 90 00 39 [15:34:46]RAPDU: 90 00 [15:34:46]wFMCommunicate OK [15:34:46]SAM_PROTO_ClearQueue done [15:34:46]KKMCreateOFDPacket [15:34:46]OFDProtocolAddRootSTLVToBuf [15:34:46]FM_MakeSignedData [15:34:46]FM_MakeSignedData [15:34:46]SAM_PROTO_SignData [15:34:46]wFMCommunicate request_size=4 [15:34:46]MH_SAM_APDU [15:34:46]CAPDU: 80 0D 01 02 [15:34:46]Write to MH i2c: E2 08 00 9E 28 80 0D 01 02 00 00 00 00 3F [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 03 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 03 00 9E 28 00 90 00 3A [15:34:46]RAPDU: 90 00 [15:34:46]wFMCommunicate OK [15:34:46]wFMCommunicate request_size=255 [15:34:46]MH_SAM_APDU [15:34:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5C BC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7D 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 38 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 B4 00 00 00 F4 03 04 00 16 F0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7C 02 00 35 04 06 00 [15:34:46]Write to MH i2c: E2 02 01 9F 28 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5C BC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7D 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 38 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 B4 00 00 00 F4 03 04 00 16 F0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7C 02 00 35 04 06 00 00 00 3B [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 03 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 03 00 9F 28 00 90 00 3B [15:34:46]RAPDU: 90 00 [15:34:46]wFMCommunicate OK [15:34:46]wFMCommunicate request_size=11 [15:34:46]MH_SAM_APDU [15:34:46]CAPDU: 80 0D 02 02 06 CF FC CE F1 F3 EB [15:34:46]Write to MH i2c: E2 0E 00 A0 28 80 0D 02 02 06 00 CF FC CE F1 F3 EB 00 00 B6 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 03 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 03 00 A0 28 00 90 00 3C [15:34:46]RAPDU: 90 00 [15:34:46]wFMCommunicate OK [15:34:46]wFMCommunicate request_size=4 [15:34:46]MH_SAM_APDU [15:34:46]CAPDU: 80 0D 03 02 [15:34:46]Write to MH i2c: E2 08 00 A1 28 80 0D 03 02 00 00 00 00 44 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 0B 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 0B 00 A1 28 00 B9 95 19 BB 98 30 C7 56 90 00 4C [15:34:46]RAPDU: B9 95 19 BB 98 30 C7 56 90 00 [15:34:46]wFMCommunicate OK [15:34:46]SAM_PROTO_SignData done [15:34:46]FM_MakeSignedData done [15:34:46]CreateOFDProtocolMessage [15:34:46]wFMCommunicate request_size=4 [15:34:46]MH_SAM_APDU [15:34:46]CAPDU: 80 11 00 00 [15:34:46]Write to MH i2c: E2 08 00 A2 28 80 11 00 00 00 00 00 00 44 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 17 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 17 00 A2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A4 [15:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:34:46]wFMCommunicate OK [15:34:46]CreateOFDProtocolMessage done [15:34:46]OFDSenderStorePacket 162868 [15:34:46]StoreOFDPacket docnum=162868 [15:34:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 67 09 08 01 5B 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5C BC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7D 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 38 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 B4 00 00 00 F4 03 04 00 16 F0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7C 02 00 35 04 06 00 CF FC CE F1 F3 EB B9 95 19 BB 98 30 C7 56 [15:34:46]CheckFolder [15:34:46]dirname=/storage/ofd_packets [15:34:46]CheckFolder done [15:34:46]ProducePacketName [15:34:46]name=ofd_packets/00162868 [15:34:46]NVStorageSaveData ofd_packets/00162868 [15:34:46]File name is /storage/ofd_packets/00162868 [15:34:46]Write 302 bytes [15:34:46]NVStorageSaveData done [15:34:46]OFDSenderStorePacket done [15:34:46]KKMCreateOFDPacket done [15:34:46]NVStorageSaveData kkm_last_timestamp [15:34:46]File name is /storage/kkm_last_timestamp [15:34:46]Write 4 bytes [15:34:46]NVStorageSaveData done [15:34:46]ExternCall_PrintAddStr [15:34:46]wPrintStart [15:34:46]Write to MH i2c: 01 00 00 A3 28 CB [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: 01 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: 01 07 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: 01 07 00 A3 28 00 00 00 00 00 FF 0F E0 [15:34:46]RasterBufferAndPrint [15:34:46]line Счет N : (1)1319471 [15:34:46]line ИНН: 02508201610067 [15:34:46]line Контрольно-Кассовый Чек [15:34:46]line ПРОДАЖА [15:34:46]line ТРК (МРК, ГНК) : 11 [15:34:46]line Товар: 2710194210 [15:34:46]line ДТ(л)-К-5 [15:34:46]line 48.220 * 72.60 [15:34:46]line = 3500.77 [15:34:46]line НДС 12% НСП 1% [15:34:46]line > о реализуемом товаре [15:34:46]line ОКРУГЛЕНИЕ: -0.77 [15:34:46]line ИТОГО: 3500.00 [15:34:46]line Внесено: 4000.00 [15:34:46]line СДАЧА: 500.00 [15:34:46]line НСП 1% : 30.98 [15:34:46]line НДС 12% : 371.76 [15:34:46]line Наличными: 3500.00 [15:34:46]line Безнал.: 0.00 [15:34:46]line Место: АЗС № 140 "Партнер Нефть" [15:34:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:34:46]line СНО: Общий режим [15:34:46]line Чек 180 14.07.2024 15:34 [15:34:46]line Смена: 463 ФФД: 1.0 [15:34:46]line ЗНМ: 0300000129 [15:34:46]line РНМ: 0000000000090858 [15:34:46]line Версия ККМ: 001 [15:34:46]line ФМ: 0000000000874899 [15:34:46]line ФД: 162868 [15:34:46]line ФПД: 228684710671339 [15:34:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T153446&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162868&fm=228684710671339&tin=02508201610067®Number=0000000000090858&sum=350000 [15:34:46]OFD Sender: Processing packet 162868 [packets to send 106, broken 105] [15:34:46]ProducePacketName [15:34:46]name=ofd_packets/00162868 [15:34:46]OFD Sender: To server: pG, [15:34:46]CommunicateWithHost lk.salyk.kg:30040 [15:34:46]ConnectInit lk.salyk.kg [15:34:46]written 0, free lines is 4095 [15:34:47]Connected sock=10 [15:34:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 67 09 08 01 5B 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5C BC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7D 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 38 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 B4 00 00 00 F4 03 04 00 16 F0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7C 02 00 35 04 06 00 CF FC CE F1 F3 EB B9 95 19 BB 98 30 C7 56 [15:34:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5A 63 47 00 77 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7C 02 00 F4 03 04 00 23 9C 93 66 B6 04 01 00 00 C9 B2 9A 5A BF 9D 43 49 [15:34:47]CommunicateWithHost err = 0 [15:34:47]CheckOFDResponse [15:34:47]1017 (14) - 77093643461234 [15:34:47]1041 (16) - 0000000000874899 [15:34:47]1040 (4) - 162868 [15:34:47]1012 (4) - 14.07.2024 09:36 [15:34:47]1206 (1) - 0 [15:34:47]OFD Sender: Remove packet 162868 [15:34:47]ProducePacketName [15:34:47]name=ofd_packets/00162868 [15:34:47]NVStorageDeleteData [15:34:47]Write to MH i2c: 01 00 00 CE 28 F6 [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: 01 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: 01 07 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: 01 07 00 CE 28 00 00 00 00 00 F1 0C FA [15:34:47]RasterBufferAndPrint [15:34:47]line [15:34:47]line [15:34:47]line [15:34:47]line [15:34:47]line [15:34:47]written 0, free lines is 3319 [15:34:47]MH_Cut [15:34:47]Write to MH i2c: D1 01 00 D5 28 01 CF [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: D1 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: D1 01 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: D1 01 00 D5 28 00 CE [15:34:47]Write to MH i2c: 01 00 00 D6 28 FE [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]OFD Sender: No OFD packet to send [15:34:48]*** Cut start [15:34:48]*** Purtial cut [15:34:48]*** Stage 1: CUTSNS_PIN = 1 [15:34:48]Read from MH i2c: 01 [15:34:48]MH_I2C_Read... [15:34:48]*** Stop cut motor [15:34:48]*** Cut end [15:34:48]Read from MH i2c: 01 07 00 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: 01 07 00 D6 28 00 00 00 00 00 FF 0F 13 [15:34:48]process_action close_receipt done [15:34:48]requested_data is exist [15:34:48]produce_requested_data [15:34:48]requested_item fm.sn is exist - process it [15:34:48]wFMCommunicate request_size=4 [15:34:48]MH_SAM_APDU [15:34:48]CAPDU: 80 11 00 00 [15:34:48]Write to MH i2c: E2 08 00 D7 28 80 11 00 00 00 00 00 00 79 [15:34:48]Write i2c OK [15:34:48]MH_I2C_Read... [15:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:48]Read from MH i2c: E2 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 17 00 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 17 00 D7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D9 [15:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:34:48]wFMCommunicate OK [15:34:48]requested_item fd.num is exist - process it [15:34:48]SAM_PROTO_GetFieldsCounters [15:34:48]wFMCommunicate request_size=4 [15:34:48]MH_SAM_APDU [15:34:48]CAPDU: 80 13 00 00 [15:34:48]Write to MH i2c: E2 08 00 D8 28 80 13 00 00 00 00 00 00 7C [15:34:48]Write i2c OK [15:34:48]MH_I2C_Read... [15:34:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:48]Read from MH i2c: E2 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 62 00 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 62 00 D8 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 34 7C 02 00 0E 04 04 00 CF 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 4D [15:34:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 34 7C 02 00 0E 04 04 00 CF 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 [15:34:48]wFMCommunicate OK [15:34:48]SAM_PROTO_GetFieldsCounters done [15:34:48]requested_item shift.num is exist - process it [15:34:48]requested_item shift.opened is exist - process it [15:34:48]req_shift_opened [15:34:48]FM_GetShiftState [15:34:48]SAM_PROTO_GetShiftState [15:34:48]wFMCommunicate request_size=4 [15:34:48]MH_SAM_APDU [15:34:48]CAPDU: 80 13 01 00 [15:34:48]Write to MH i2c: E2 08 00 D9 28 80 13 01 00 00 00 00 00 7E [15:34:48]Write i2c OK [15:34:48]MH_I2C_Read... [15:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:48]Read from MH i2c: E2 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 0E 00 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 0E 00 D9 28 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B4 [15:34:48]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:34:48]wFMCommunicate OK [15:34:48]SAM_PROTO_GetShiftState done [15:34:48]FM_GetShiftState done [15:34:48]req_shift_opened done [15:34:48]requested_item shift.open_date is exist - process it [15:34:48]req_shift_open_date [15:34:48]req_shift_open_date done [15:34:48]produce_requested_data done [15:34:48]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162868,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:34:48]process_action_free close_receipt [15:34:48]json_value_free [15:34:48]json_value_free done [15:34:48]process_json_proto returns [15:34:48]Send response to host [15:34:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162868,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:34:48]free response buf [15:34:48]execute_script done [15:34:48]execute_script returns [15:34:48]free content buf [15:34:48]Sock 7.Close socket [15:34:48]Sock 7.Thread stoped [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:19]accept exits with 9 [15:35:19]New connection [15:35:19]New thread 3066879332 created [15:35:19]Thread 3066735972 joined [15:35:19]Waiting for new connection... [15:35:19] Sock 9.Parse request [15:35:19]Sock 9.Check first char [15:35:19]Sock 9.First char is OK [15:35:19]request: POST /json_proto HTTP/1.0 [15:35:19]Method: POST [15:35:19]URL: /json_proto [15:35:19]Method is POST - this is cgi request [15:35:19]url: /json_proto [15:35:19]query_string will be loaded in cgi processing [15:35:19]execute_cgi json_proto POST (null) [15:35:19]execute_cgi path=json_proto method=POST [15:35:19]POST find Content-Length [15:35:19]Host: 172.17.39.67:8080 [15:35:19]Content-Length: 688 [15:35:19]Content-Type: application/json [15:35:19] [15:35:19]POST finish read [15:35:19]Found Content-Length = 688 [15:35:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:19]execute_script... [15:35: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)1319473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:19]POST & json_proto [15:35:19]process_json_proto [15:35:19]json parsed OK: [15:35:19]protocol is kg_v1.0 [15:35:19]action value=close_receipt [15:35:19]process_action close_receipt [15:35:19]cmd_close_receipt [15:35:19]MH_GetDate [15:35:19]Write to MH i2c: F0 00 00 DA 28 F1 [15:35:19]Write i2c OK [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: F0 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: F0 09 00 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: F0 09 00 DA 28 00 39 F0 93 66 B6 85 93 66 50 [15:35:19]GetLastDocTimeStamp 1720971286 [15:35:19]current date 1720971321 [15:35:19]FM_GetShiftState [15:35:19]SAM_PROTO_GetShiftState [15:35:19]wFMCommunicate request_size=4 [15:35:19]MH_SAM_APDU [15:35:19]CAPDU: 80 13 01 00 [15:35:19]Write to MH i2c: E2 08 00 DB 28 80 13 01 00 00 00 00 00 80 [15:35:19]Write i2c OK [15:35:19]MH_I2C_Read... [15:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:19]Read from MH i2c: E2 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: E2 0E 00 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: E2 0E 00 DB 28 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B6 [15:35:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:35:19]wFMCommunicate OK [15:35:19]SAM_PROTO_GetShiftState done [15:35:19]FM_GetShiftState done [15:35:19]opened in 1720915483 [15:35:19]opened+sec_in_day 1721001883 [15:35:19]quantity*price = 100042 [15:35:19]sum+1 = 100044 [15:35:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 181 14.07.2024 15:35 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162869 ФПД: 126674296301503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T153521&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162869&fm=126674296301503&tin=02508201610067®Number=0000000000090858&sum=100000 [15:35:21]StoreToDocumentArchive [15:35:21]shift 463 fd 162869 [15:35:21]save to /storage/0463/doc_00162869 [15:35:21]save last doc name /storage/0463/doc_00162869 to /storage/kkm_last_doc_name [15:35:21]save OK [15:35:21]Clear old archive folders... [15:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:35:21]tlvbuf is 01368B30 [15:35:21]SAM_PROTO_ClearQueue [15:35:21]wFMCommunicate request_size=4 [15:35:21]MH_SAM_APDU [15:35:21]CAPDU: 80 09 00 00 [15:35:21]Write to MH i2c: E2 08 00 E8 28 80 09 00 00 00 00 00 00 82 [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 [15:35:21]MH_I2C_Read... [15:35:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:21]Read from MH i2c: E2 03 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 03 00 E8 28 00 90 00 84 [15:35:21]RAPDU: 90 00 [15:35:21]wFMCommunicate OK [15:35:21]SAM_PROTO_ClearQueue done [15:35:21]KKMCreateOFDPacket [15:35:21]OFDProtocolAddRootSTLVToBuf [15:35:21]FM_MakeSignedData [15:35:21]FM_MakeSignedData [15:35:21]SAM_PROTO_SignData [15:35:21]wFMCommunicate request_size=4 [15:35:21]MH_SAM_APDU [15:35:21]CAPDU: 80 0D 01 02 [15:35:21]Write to MH i2c: E2 08 00 E9 28 80 0D 01 02 00 00 00 00 8A [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:21]Read from MH i2c: E2 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 03 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 03 00 E9 28 00 90 00 85 [15:35:21]RAPDU: 90 00 [15:35:21]wFMCommunicate OK [15:35:21]wFMCommunicate request_size=255 [15:35:21]MH_SAM_APDU [15:35:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 39 F0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7C 02 00 35 04 06 00 [15:35:21]Write to MH i2c: E2 02 01 EA 28 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 39 F0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7C 02 00 35 04 06 00 00 00 7D [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:21]Read from MH i2c: E2 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 03 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 03 00 EA 28 00 90 00 86 [15:35:21]RAPDU: 90 00 [15:35:21]wFMCommunicate OK [15:35:21]wFMCommunicate request_size=11 [15:35:21]MH_SAM_APDU [15:35:21]CAPDU: 80 0D 02 02 06 73 35 A8 6E E7 BF [15:35:21]Write to MH i2c: E2 0E 00 EB 28 80 0D 02 02 06 00 73 35 A8 6E E7 BF 00 00 FD [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:21]Read from MH i2c: E2 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 03 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 03 00 EB 28 00 90 00 87 [15:35:21]RAPDU: 90 00 [15:35:21]wFMCommunicate OK [15:35:21]wFMCommunicate request_size=4 [15:35:21]MH_SAM_APDU [15:35:21]CAPDU: 80 0D 03 02 [15:35:21]Write to MH i2c: E2 08 00 EC 28 80 0D 03 02 00 00 00 00 8F [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:21]Read from MH i2c: E2 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 0B 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 0B 00 EC 28 00 41 7E 7F 84 30 53 20 3F 90 00 34 [15:35:21]RAPDU: 41 7E 7F 84 30 53 20 3F 90 00 [15:35:21]wFMCommunicate OK [15:35:21]SAM_PROTO_SignData done [15:35:21]FM_MakeSignedData done [15:35:21]CreateOFDProtocolMessage [15:35:21]wFMCommunicate request_size=4 [15:35:21]MH_SAM_APDU [15:35:21]CAPDU: 80 11 00 00 [15:35:21]Write to MH i2c: E2 08 00 ED 28 80 11 00 00 00 00 00 00 8F [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:21]Read from MH i2c: E2 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 17 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: E2 17 00 ED 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EF [15:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:35:21]wFMCommunicate OK [15:35:21]CreateOFDProtocolMessage done [15:35:21]OFDSenderStorePacket 162869 [15:35:21]StoreOFDPacket docnum=162869 [15:35:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4D DF 08 01 C3 5A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 39 F0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7C 02 00 35 04 06 00 73 35 A8 6E E7 BF 41 7E 7F 84 30 53 20 3F [15:35:21]CheckFolder [15:35:21]dirname=/storage/ofd_packets [15:35:21]CheckFolder done [15:35:21]ProducePacketName [15:35:21]name=ofd_packets/00162869 [15:35:21]NVStorageSaveData ofd_packets/00162869 [15:35:21]File name is /storage/ofd_packets/00162869 [15:35:21]Write 302 bytes [15:35:21]NVStorageSaveData done [15:35:21]OFDSenderStorePacket done [15:35:21]KKMCreateOFDPacket done [15:35:21]NVStorageSaveData kkm_last_timestamp [15:35:21]File name is /storage/kkm_last_timestamp [15:35:21]Write 4 bytes [15:35:21]NVStorageSaveData done [15:35:21]ExternCall_PrintAddStr [15:35:21]wPrintStart [15:35:21]Write to MH i2c: 01 00 00 EE 28 16 [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: 01 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: 01 07 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: 01 07 00 EE 28 00 00 00 00 00 FF 0F 2B [15:35:21]RasterBufferAndPrint [15:35:21]line Счет N : (1)1319473 [15:35:21]line ИНН: 02508201610067 [15:35:21]line Контрольно-Кассовый Чек [15:35:21]line ПРОДАЖА [15:35:21]line ТРК (МРК, ГНК) : 31 [15:35:21]line Товар: 2710194210 [15:35:21]line ДТ(л)-К-5 [15:35:21]line 13.780 * 72.60 [15:35:21]line = 1000.43 [15:35:21]line НДС 12% НСП 1% [15:35:21]line > о реализуемом товаре [15:35:21]line ОКРУГЛЕНИЕ: -0.43 [15:35:21]line ИТОГО: 1000.00 [15:35:21]line Внесено: 1000.00 [15:35:21]line СДАЧА: 0.00 [15:35:21]line НСП 1% : 8.85 [15:35:21]line НДС 12% : 106.24 [15:35:21]line Наличными: 1000.00 [15:35:21]line Безнал.: 0.00 [15:35:21]line Место: АЗС № 140 "Партнер Нефть" [15:35:21]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:35:21]line СНО: Общий режим [15:35:21]line Чек 181 14.07.2024 15:35 [15:35:21]line Смена: 463 ФФД: 1.0 [15:35:21]line ЗНМ: 0300000129 [15:35:21]line РНМ: 0000000000090858 [15:35:21]line Версия ККМ: 001 [15:35:21]line ФМ: 0000000000874899 [15:35:21]line ФД: 162869 [15:35:21]line ФПД: 126674296301503 [15:35:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T153521&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162869&fm=126674296301503&tin=02508201610067®Number=0000000000090858&sum=100000 [15:35:21]OFD Sender: Processing packet 162869 [packets to send 106, broken 105] [15:35:21]ProducePacketName [15:35:21]name=ofd_packets/00162869 [15:35:21]OFD Sender: To server: pG, [15:35:21]CommunicateWithHost lk.salyk.kg:30040 [15:35:21]ConnectInit lk.salyk.kg [15:35:21]written 0, free lines is 4095 [15:35:22]Connected sock=10 [15:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4D DF 08 01 C3 5A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 39 F0 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7C 02 00 35 04 06 00 73 35 A8 6E E7 BF 41 7E 7F 84 30 53 20 3F [15:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 95 9C 47 00 29 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7C 02 00 F4 03 04 00 46 9C 93 66 B6 04 01 00 00 06 13 2E DE 9F 80 8F 08 [15:35:22]CommunicateWithHost err = 0 [15:35:22]CheckOFDResponse [15:35:22]1017 (14) - 77093643461234 [15:35:22]1041 (16) - 0000000000874899 [15:35:22]1040 (4) - 162869 [15:35:22]1012 (4) - 14.07.2024 09:37 [15:35:22]1206 (1) - 0 [15:35:22]OFD Sender: Remove packet 162869 [15:35:22]ProducePacketName [15:35:22]name=ofd_packets/00162869 [15:35:22]NVStorageDeleteData [15:35:22]Write to MH i2c: 01 00 00 19 29 42 [15:35:22]Write i2c OK [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: 01 [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: 01 07 00 [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: 01 07 00 19 29 00 00 00 00 00 E0 0C 35 [15:35:22]RasterBufferAndPrint [15:35:22]line [15:35:22]line [15:35:22]line [15:35:22]line [15:35:22]line [15:35:22]written 0, free lines is 3302 [15:35:22]MH_Cut [15:35:22]Write to MH i2c: D1 01 00 20 29 01 1B [15:35:22]Write i2c OK [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: D1 [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: D1 01 00 [15:35:22]MH_I2C_Read... [15:35:22]Read from MH i2c: D1 01 00 20 29 00 1A [15:35:22]Write to MH i2c: 01 00 00 21 29 4A [15:35:22]Write i2c OK [15:35:22]MH_I2C_Read... [15:35:22]OFD Sender: No OFD packet to send [15:35:23]*** Cut start [15:35:23]*** Purtial cut [15:35:23]*** CUTSNS_PIN = 0 [15:35:23]*** Stage 1: CUTSNS_PIN = 1 [15:35:25]Read from MH i2c: 01 [15:35:25]MH_I2C_Read... [15:35:25]*** Stop cut motor [15:35:25]*** Cut end [15:35:25]Read from MH i2c: 01 07 00 [15:35:25]MH_I2C_Read... [15:35:25]Read from MH i2c: 01 07 00 21 29 00 00 00 00 00 FF 0F 5F [15:35:25]process_action close_receipt done [15:35:25]requested_data is exist [15:35:25]produce_requested_data [15:35:25]requested_item fm.sn is exist - process it [15:35:25]wFMCommunicate request_size=4 [15:35:25]MH_SAM_APDU [15:35:25]CAPDU: 80 11 00 00 [15:35:25]Write to MH i2c: E2 08 00 22 29 80 11 00 00 00 00 00 00 C5 [15:35:25]Write i2c OK [15:35:25]MH_I2C_Read... [15:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:25]Read from MH i2c: E2 [15:35:25]MH_I2C_Read... [15:35:25]Read from MH i2c: E2 17 00 [15:35:25]MH_I2C_Read... [15:35:25]Read from MH i2c: E2 17 00 22 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 25 [15:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:35:25]wFMCommunicate OK [15:35:25]requested_item fd.num is exist - process it [15:35:25]SAM_PROTO_GetFieldsCounters [15:35:25]wFMCommunicate request_size=4 [15:35:25]MH_SAM_APDU [15:35:25]CAPDU: 80 13 00 00 [15:35:25]Write to MH i2c: E2 08 00 23 29 80 13 00 00 00 00 00 00 C8 [15:35:25]Write i2c OK [15:35:25]MH_I2C_Read... [15:35:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:25]Read from MH i2c: E2 [15:35:25]MH_I2C_Read... [15:35:25]Read from MH i2c: E2 62 00 [15:35:25]MH_I2C_Read... [15:35:25]Read from MH i2c: E2 62 00 23 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 35 7C 02 00 0E 04 04 00 CF 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 9D [15:35:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 35 7C 02 00 0E 04 04 00 CF 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 [15:35:25]wFMCommunicate OK [15:35:25]SAM_PROTO_GetFieldsCounters done [15:35:25]requested_item shift.num is exist - process it [15:35:25]requested_item shift.opened is exist - process it [15:35:25]req_shift_opened [15:35:25]FM_GetShiftState [15:35:25]SAM_PROTO_GetShiftState [15:35:25]wFMCommunicate request_size=4 [15:35:25]MH_SAM_APDU [15:35:25]CAPDU: 80 13 01 00 [15:35:25]Write to MH i2c: E2 08 00 24 29 80 13 01 00 00 00 00 00 CA [15:35:25]Write i2c OK [15:35:25]MH_I2C_Read... [15:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:25]Read from MH i2c: E2 [15:35:25]MH_I2C_Read... [15:35:25]Read from MH i2c: E2 0E 00 [15:35:25]MH_I2C_Read... [15:35:25]Read from MH i2c: E2 0E 00 24 29 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 00 [15:35:25]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:35:25]wFMCommunicate OK [15:35:25]SAM_PROTO_GetShiftState done [15:35:25]FM_GetShiftState done [15:35:25]req_shift_opened done [15:35:25]requested_item shift.open_date is exist - process it [15:35:25]req_shift_open_date [15:35:25]req_shift_open_date done [15:35:25]produce_requested_data done [15:35:25]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162869,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:35:25]process_action_free close_receipt [15:35:25]json_value_free [15:35:25]json_value_free done [15:35:25]process_json_proto returns [15:35:25]Send response to host [15:35:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162869,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:35:25]free response buf [15:35:25]execute_script done [15:35:25]execute_script returns [15:35:25]free content buf [15:35:25]Sock 9.Close socket [15:35:25]Sock 9.Thread stoped [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:41]accept exits with 7 [15:40:41]New connection [15:40:41]New thread 3066735972 created [15:40:41]Thread 3066879332 joined [15:40:41]Waiting for new connection... [15:40:41] Sock 7.Parse request [15:40:41]Sock 7.Check first char [15:40:41]Sock 7.First char is OK [15:40:41]request: POST /json_proto HTTP/1.0 [15:40:41]Method: POST [15:40:41]URL: /json_proto [15:40:41]Method is POST - this is cgi request [15:40:41]url: /json_proto [15:40:41]query_string will be loaded in cgi processing [15:40:41]execute_cgi json_proto POST (null) [15:40:41]execute_cgi path=json_proto method=POST [15:40:41]POST find Content-Length [15:40:41]Host: 172.17.39.67:8080 [15:40:41]Content-Length: 1204 [15:40:41]Content-Type: application/json [15:40:41] [15:40:41]POST finish read [15:40:41]Found Content-Length = 1204 [15:40:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319474\u000A14.07.2024 15:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 7260.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3606397\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:41]execute_script... [15:40:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319474\u000A14.07.2024 15:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 7260.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3606397\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:41]POST & json_proto [15:40:41]process_json_proto [15:40:41]json parsed OK: [15:40:41]protocol is kg_v1.0 [15:40:41]action value=print_text [15:40:41]process_action print_text [15:40:41]cmd_print_text [15:40:41]ExternCall_PrintAddStr [15:40:41]wPrintStart [15:40:41]Write to MH i2c: 01 00 00 25 29 4E [15:40:41]Write i2c OK [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: 01 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: 01 07 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: 01 07 00 25 29 00 00 00 00 00 FF 0F 63 [15:40:41]RasterBufferAndPrint [15:40:41]line *****ТОВАРНЫЙ ЧЕК***** [15:40:41]line АЗС 140 [15:40:41]line Партнер нефть [15:40:41]line 02508201610067 [15:40:41]line Кассир : Дуйшенбек у Н. [15:40:41]line Счет N : (1)1319474 [15:40:41]line 14.07.2024 15:38 [15:40:41]line ПРОДАЖА [15:40:41]line ТРК (МРК, ГНК): 21 [15:40:41]line Вид ГСМ : 2710194210 [15:40:41]line ДТ(л)-К-5 [15:40:41]line 100.000 x 72.60 [15:40:41]line ИТОГ: 7260.00 [15:40:41]line Тип оплаты: Талоны: Партнер нефть [15:40:41]line 3606397 [15:40:41]line ______________________ [15:40:41]line (подпись) [15:40:41]written 0, free lines is 4095 [15:40:42]Write to MH i2c: 01 00 00 39 29 62 [15:40:42]Write i2c OK [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: 01 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: 01 07 00 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: 01 07 00 39 29 00 00 00 00 00 14 0E 8B [15:40:42]RasterBufferAndPrint [15:40:42]line [15:40:42]line [15:40:42]line [15:40:42]line [15:40:42]line [15:40:42]written 0, free lines is 3606 [15:40:42]MH_Cut [15:40:42]Write to MH i2c: D1 01 00 40 29 01 3B [15:40:42]Write i2c OK [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: D1 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: D1 01 00 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: D1 01 00 40 29 00 3A [15:40:42]Write to MH i2c: 01 00 00 41 29 6A [15:40:42]Write i2c OK [15:40:42]MH_I2C_Read... [15:40:42]*** Cut start [15:40:42]*** Purtial cut [15:40:42]*** Stage 1: CUTSNS_PIN = 1 [15:40:42]Read from MH i2c: 01 [15:40:42]MH_I2C_Read... [15:40:42]*** Stop cut motor [15:40:42]*** Cut end [15:40:42]Read from MH i2c: 01 07 00 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: 01 07 00 41 29 00 00 00 00 00 FF 0F 7F [15:40:42]process_action print_text done [15:40:42]requested_data is exist [15:40:42]produce_requested_data [15:40:42]requested_item fm.sn is exist - process it [15:40:42]wFMCommunicate request_size=4 [15:40:42]MH_SAM_APDU [15:40:42]CAPDU: 80 11 00 00 [15:40:42]Write to MH i2c: E2 08 00 42 29 80 11 00 00 00 00 00 00 E5 [15:40:42]Write i2c OK [15:40:42]MH_I2C_Read... [15:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:42]Read from MH i2c: E2 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: E2 17 00 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: E2 17 00 42 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 45 [15:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:40:42]wFMCommunicate OK [15:40:42]requested_item fd.num is exist - process it [15:40:42]SAM_PROTO_GetFieldsCounters [15:40:42]wFMCommunicate request_size=4 [15:40:42]MH_SAM_APDU [15:40:42]CAPDU: 80 13 00 00 [15:40:42]Write to MH i2c: E2 08 00 43 29 80 13 00 00 00 00 00 00 E8 [15:40:42]Write i2c OK [15:40:42]MH_I2C_Read... [15:40:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:42]Read from MH i2c: E2 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: E2 62 00 [15:40:42]MH_I2C_Read... [15:40:42]Read from MH i2c: E2 62 00 43 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 35 7C 02 00 0E 04 04 00 CF 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 BD [15:40:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 35 7C 02 00 0E 04 04 00 CF 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 [15:40:42]wFMCommunicate OK [15:40:42]SAM_PROTO_GetFieldsCounters done [15:40:42]requested_item shift.num is exist - process it [15:40:42]requested_item shift.opened is exist - process it [15:40:42]req_shift_opened [15:40:42]FM_GetShiftState [15:40:42]SAM_PROTO_GetShiftState [15:40:42]wFMCommunicate request_size=4 [15:40:42]MH_SAM_APDU [15:40:42]CAPDU: 80 13 01 00 [15:40:42]Write to MH i2c: E2 08 00 44 29 80 13 01 00 00 00 00 00 EA [15:40:42]Write i2c OK [15:40:42]MH_I2C_Read... [15:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:43]Read from MH i2c: E2 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: E2 0E 00 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: E2 0E 00 44 29 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 20 [15:40:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:40:43]wFMCommunicate OK [15:40:43]SAM_PROTO_GetShiftState done [15:40:43]FM_GetShiftState done [15:40:43]req_shift_opened done [15:40:43]requested_item shift.open_date is exist - process it [15:40:43]req_shift_open_date [15:40:43]req_shift_open_date done [15:40:43]produce_requested_data done [15:40:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162869,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:40:43]process_action_free print_text [15:40:43]json_value_free [15:40:43]json_value_free done [15:40:43]process_json_proto returns [15:40:43]Send response to host [15:40:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162869,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:40:43]free response buf [15:40:43]execute_script done [15:40:43]execute_script returns [15:40:43]free content buf [15:40:43]Sock 7.Close socket [15:40:43]Sock 7.Thread stoped [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:36]accept exits with 9 [15:43:36]New connection [15:43:36]New thread 3066879332 created [15:43:36]Thread 3066735972 joined [15:43:36]Waiting for new connection... [15:43:36] Sock 9.Parse request [15:43:36]Sock 9.Check first char [15:43:36]Sock 9.First char is OK [15:43:36]request: POST /json_proto HTTP/1.0 [15:43:36]Method: POST [15:43:36]URL: /json_proto [15:43:36]Method is POST - this is cgi request [15:43:36]url: /json_proto [15:43:36]query_string will be loaded in cgi processing [15:43:36]execute_cgi json_proto POST (null) [15:43:36]execute_cgi path=json_proto method=POST [15:43:36]POST find Content-Length [15:43:36]Host: 172.17.39.67:8080 [15:43:36]Content-Length: 1204 [15:43:36]Content-Type: application/json [15:43:36] [15:43:36]POST finish read [15:43:36]Found Content-Length = 1204 [15:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319475\u000A14.07.2024 15:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 7260.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3606396\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:36]execute_script... [15:43:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319475\u000A14.07.2024 15:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 7260.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3606396\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:36]POST & json_proto [15:43:36]process_json_proto [15:43:36]json parsed OK: [15:43:36]protocol is kg_v1.0 [15:43:36]action value=print_text [15:43:36]process_action print_text [15:43:36]cmd_print_text [15:43:36]ExternCall_PrintAddStr [15:43:36]wPrintStart [15:43:36]Write to MH i2c: 01 00 00 45 29 6E [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 07 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 07 00 45 29 00 00 00 00 00 FF 0F 83 [15:43:36]RasterBufferAndPrint [15:43:36]line *****ТОВАРНЫЙ ЧЕК***** [15:43:36]line АЗС 140 [15:43:36]line Партнер нефть [15:43:36]line 02508201610067 [15:43:36]line Кассир : Дуйшенбек у Н. [15:43:36]line Счет N : (1)1319475 [15:43:36]line 14.07.2024 15:41 [15:43:36]line ПРОДАЖА [15:43:36]line ТРК (МРК, ГНК): 21 [15:43:36]line Вид ГСМ : 2710194210 [15:43:36]line ДТ(л)-К-5 [15:43:36]line 100.000 x 72.60 [15:43:36]line ИТОГ: 7260.00 [15:43:36]line Тип оплаты: Талоны: Партнер нефть [15:43:36]line 3606396 [15:43:36]line ______________________ [15:43:36]line (подпись) [15:43:36]written 0, free lines is 4095 [15:43:36]Write to MH i2c: 01 00 00 59 29 82 [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 07 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 07 00 59 29 00 00 00 00 00 14 0E AB [15:43:36]RasterBufferAndPrint [15:43:36]line [15:43:36]line [15:43:36]line [15:43:36]line [15:43:36]line [15:43:36]written 0, free lines is 3606 [15:43:36]MH_Cut [15:43:36]Write to MH i2c: D1 01 00 60 29 01 5B [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: D1 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: D1 01 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: D1 01 00 60 29 00 5A [15:43:36]Write to MH i2c: 01 00 00 61 29 8A [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]*** Cut start [15:43:36]*** Purtial cut [15:43:36]*** CUTSNS_PIN = 0 [15:43:37]*** Stage 1: CUTSNS_PIN = 1 [15:43:38]OFD Sender: No OFD packet to send [15:43:38]Read from MH i2c: 01 [15:43:38]MH_I2C_Read... [15:43:38]*** Stop cut motor [15:43:38]*** Cut end [15:43:38]Read from MH i2c: 01 07 00 [15:43:38]MH_I2C_Read... [15:43:38]Read from MH i2c: 01 07 00 61 29 00 00 00 00 00 FF 0F 9F [15:43:38]process_action print_text done [15:43:38]requested_data is exist [15:43:38]produce_requested_data [15:43:38]requested_item fm.sn is exist - process it [15:43:38]wFMCommunicate request_size=4 [15:43:38]MH_SAM_APDU [15:43:38]CAPDU: 80 11 00 00 [15:43:38]Write to MH i2c: E2 08 00 62 29 80 11 00 00 00 00 00 00 05 [15:43:38]Write i2c OK [15:43:38]MH_I2C_Read... [15:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:38]Read from MH i2c: E2 [15:43:38]MH_I2C_Read... [15:43:38]Read from MH i2c: E2 17 00 [15:43:38]MH_I2C_Read... [15:43:38]Read from MH i2c: E2 17 00 62 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 65 [15:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:43:38]wFMCommunicate OK [15:43:38]requested_item fd.num is exist - process it [15:43:38]SAM_PROTO_GetFieldsCounters [15:43:38]wFMCommunicate request_size=4 [15:43:38]MH_SAM_APDU [15:43:38]CAPDU: 80 13 00 00 [15:43:38]Write to MH i2c: E2 08 00 63 29 80 13 00 00 00 00 00 00 08 [15:43:38]Write i2c OK [15:43:38]MH_I2C_Read... [15:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:39]Read from MH i2c: E2 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 62 00 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 62 00 63 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 35 7C 02 00 0E 04 04 00 CF 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 DD [15:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 35 7C 02 00 0E 04 04 00 CF 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 [15:43:39]wFMCommunicate OK [15:43:39]SAM_PROTO_GetFieldsCounters done [15:43:39]requested_item shift.num is exist - process it [15:43:39]requested_item shift.opened is exist - process it [15:43:39]req_shift_opened [15:43:39]FM_GetShiftState [15:43:39]SAM_PROTO_GetShiftState [15:43:39]wFMCommunicate request_size=4 [15:43:39]MH_SAM_APDU [15:43:39]CAPDU: 80 13 01 00 [15:43:39]Write to MH i2c: E2 08 00 64 29 80 13 01 00 00 00 00 00 0A [15:43:39]Write i2c OK [15:43:39]MH_I2C_Read... [15:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:39]Read from MH i2c: E2 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 0E 00 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 0E 00 64 29 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 40 [15:43:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:43:39]wFMCommunicate OK [15:43:39]SAM_PROTO_GetShiftState done [15:43:39]FM_GetShiftState done [15:43:39]req_shift_opened done [15:43:39]requested_item shift.open_date is exist - process it [15:43:39]req_shift_open_date [15:43:39]req_shift_open_date done [15:43:39]produce_requested_data done [15:43:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162869,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:43:39]process_action_free print_text [15:43:39]json_value_free [15:43:39]json_value_free done [15:43:39]process_json_proto returns [15:43:39]Send response to host [15:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162869,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:43:39]free response buf [15:43:39]execute_script done [15:43:39]execute_script returns [15:43:39]free content buf [15:43:39]Sock 9.Close socket [15:43:39]Sock 9.Thread stoped [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]accept exits with 7 [15:48:38]New connection [15:48:38]New thread 3066735972 created [15:48:38]Thread 3066879332 joined [15:48:38]Waiting for new connection... [15:48:38] Sock 7.Parse request [15:48:38]Sock 7.Check first char [15:48:38]Sock 7.First char is OK [15:48:38]request: POST /json_proto HTTP/1.0 [15:48:38]Method: POST [15:48:38]URL: /json_proto [15:48:38]Method is POST - this is cgi request [15:48:38]url: /json_proto [15:48:38]query_string will be loaded in cgi processing [15:48:38]execute_cgi json_proto POST (null) [15:48:38]execute_cgi path=json_proto method=POST [15:48:38]POST find Content-Length [15:48:38]Host: 172.17.39.67:8080 [15:48:38]Content-Length: 817 [15:48:38]Content-Type: application/json [15:48:38] [15:48:38]POST finish read [15:48:38]Found Content-Length = 817 [15:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 5.000, "sum" : 372.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 372.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:38]execute_script... [15:48: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)1319476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 5.000, "sum" : 372.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 372.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:38]POST & json_proto [15:48:38]process_json_proto [15:48:38]json parsed OK: [15:48:38]protocol is kg_v1.0 [15:48:38]action value=close_receipt [15:48:38]process_action close_receipt [15:48:38]cmd_close_receipt [15:48:38]MH_GetDate [15:48:38]Write to MH i2c: F0 00 00 65 29 7D [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: F0 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: F0 09 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: F0 09 00 65 29 00 58 F3 93 66 B6 85 93 66 FE [15:48:38]GetLastDocTimeStamp 1720971321 [15:48:38]current date 1720972120 [15:48:38]FM_GetShiftState [15:48:38]SAM_PROTO_GetShiftState [15:48:38]wFMCommunicate request_size=4 [15:48:38]MH_SAM_APDU [15:48:38]CAPDU: 80 13 01 00 [15:48:38]Write to MH i2c: E2 08 00 66 29 80 13 01 00 00 00 00 00 0C [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:38]Read from MH i2c: E2 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 0E 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 0E 00 66 29 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 42 [15:48:38]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:48:38]wFMCommunicate OK [15:48:38]SAM_PROTO_GetShiftState done [15:48:38]FM_GetShiftState done [15:48:38]opened in 1720915483 [15:48:38]opened+sec_in_day 1721001883 [15:48:38]quantity*price = 37200 [15:48:38]sum+1 = 37201 [15:48:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 372.00 НСП 1% : 3.29 НДС 12% : 39.50 Наличными: 0.00 Безнал.: 372.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 182 14.07.2024 15:48 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162870 ФПД: 194856566337402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T154840&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162870&fm=194856566337402&tin=02508201610067®Number=0000000000090858&sum=37200 [15:48:39]StoreToDocumentArchive [15:48:39]shift 463 fd 162870 [15:48:39]save to /storage/0463/doc_00162870 [15:48:39]save last doc name /storage/0463/doc_00162870 to /storage/kkm_last_doc_name [15:48:39]save OK [15:48:39]Clear old archive folders... [15:48:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:39]tlvbuf is 013462E0 [15:48:39]SAM_PROTO_ClearQueue [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 09 00 00 [15:48:39]Write to MH i2c: E2 08 00 73 29 80 09 00 00 00 00 00 00 0E [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 73 29 00 90 00 10 [15:48:39]RAPDU: 90 00 [15:48:39]wFMCommunicate OK [15:48:39]SAM_PROTO_ClearQueue done [15:48:39]KKMCreateOFDPacket [15:48:39]OFDProtocolAddRootSTLVToBuf [15:48:39]FM_MakeSignedData [15:48:39]FM_MakeSignedData [15:48:39]SAM_PROTO_SignData [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 0D 01 02 [15:48:39]Write to MH i2c: E2 08 00 74 29 80 0D 01 02 00 00 00 00 16 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 74 29 00 90 00 11 [15:48:39]RAPDU: 90 00 [15:48:39]wFMCommunicate OK [15:48:39]wFMCommunicate request_size=255 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 50 91 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 91 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 58 F3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7C 02 00 35 04 06 00 B1 [15:48:39]Write to MH i2c: E2 02 01 75 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 50 91 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 91 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 58 F3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7C 02 00 35 04 06 00 B1 00 00 97 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 75 29 00 90 00 12 [15:48:39]RAPDU: 90 00 [15:48:39]wFMCommunicate OK [15:48:39]wFMCommunicate request_size=10 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 0D 02 02 05 38 94 6B 2F 7A [15:48:39]Write to MH i2c: E2 0D 00 76 29 80 0D 02 02 05 00 38 94 6B 2F 7A 00 00 03 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 03 00 76 29 00 90 00 13 [15:48:39]RAPDU: 90 00 [15:48:39]wFMCommunicate OK [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 0D 03 02 [15:48:39]Write to MH i2c: E2 08 00 77 29 80 0D 03 02 00 00 00 00 1B [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 0B 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 0B 00 77 29 00 45 CD 17 29 11 EC 10 7B 90 00 F6 [15:48:39]RAPDU: 45 CD 17 29 11 EC 10 7B 90 00 [15:48:39]wFMCommunicate OK [15:48:39]SAM_PROTO_SignData done [15:48:39]FM_MakeSignedData done [15:48:39]CreateOFDProtocolMessage [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 11 00 00 [15:48:39]Write to MH i2c: E2 08 00 78 29 80 11 00 00 00 00 00 00 1B [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:39]Read from MH i2c: E2 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 17 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: E2 17 00 78 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7B [15:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:48:39]wFMCommunicate OK [15:48:39]CreateOFDProtocolMessage done [15:48:39]OFDSenderStorePacket 162870 [15:48:39]StoreOFDPacket docnum=162870 [15:48:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 82 5F 07 01 9A 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 88 13 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 50 91 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 91 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 58 F3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7C 02 00 35 04 06 00 B1 38 94 6B 2F 7A 45 CD 17 29 11 EC 10 7B [15:48:39]CheckFolder [15:48:39]dirname=/storage/ofd_packets [15:48:39]CheckFolder done [15:48:39]ProducePacketName [15:48:39]name=ofd_packets/00162870 [15:48:39]NVStorageSaveData ofd_packets/00162870 [15:48:39]File name is /storage/ofd_packets/00162870 [15:48:39]Write 301 bytes [15:48:39]NVStorageSaveData done [15:48:39]OFDSenderStorePacket done [15:48:39]KKMCreateOFDPacket done [15:48:39]NVStorageSaveData kkm_last_timestamp [15:48:39]File name is /storage/kkm_last_timestamp [15:48:39]Write 4 bytes [15:48:39]NVStorageSaveData done [15:48:39]ExternCall_PrintAddStr [15:48:39]wPrintStart [15:48:39]Write to MH i2c: 01 00 00 79 29 A2 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 07 00 [15:48:39]MH_I2C_Read... [15:48:39]Read from MH i2c: 01 07 00 79 29 00 00 00 00 00 FF 0F B7 [15:48:40]RasterBufferAndPrint [15:48:40]line Счет N : (1)1319476 [15:48:40]line ИНН: 02508201610067 [15:48:40]line Контрольно-Кассовый Чек [15:48:40]line ПРОДАЖА [15:48:40]line ТРК (МРК, ГНК) : 34 [15:48:40]line Товар: 2710124500 [15:48:40]line Аи-95-К-5 [15:48:40]line 5.000 * 74.40 [15:48:40]line = 372.00 [15:48:40]line НДС 12% НСП 1% [15:48:40]line > о реализуемом товаре [15:48:40]line ИТОГО: 372.00 [15:48:40]line НСП 1% : 3.29 [15:48:40]line НДС 12% : 39.50 [15:48:40]line Наличными: 0.00 [15:48:40]line Безнал.: 372.00 [15:48:40]line Место: АЗС № 140 "Партнер Нефть" [15:48:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:48:40]line СНО: Общий режим [15:48:40]line Чек 182 14.07.2024 15:48 [15:48:40]line Смена: 463 ФФД: 1.0 [15:48:40]line ЗНМ: 0300000129 [15:48:40]line РНМ: 0000000000090858 [15:48:40]line Версия ККМ: 001 [15:48:40]line Платежная система: Бакай Банк [15:48:40]line ФМ: 0000000000874899 [15:48:40]line ФД: 162870 [15:48:40]line ФПД: 194856566337402 [15:48:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T154840&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162870&fm=194856566337402&tin=02508201610067®Number=0000000000090858&sum=37200 [15:48:40]written 0, free lines is 4095 [15:48:40]OFD Sender: Processing packet 162870 [packets to send 106, broken 105] [15:48:40]ProducePacketName [15:48:40]name=ofd_packets/00162870 [15:48:40]OFD Sender: To server: pG, [15:48:40]CommunicateWithHost lk.salyk.kg:30040 [15:48:40]ConnectInit lk.salyk.kg [15:48:40]Connected sock=10 [15:48:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 82 5F 07 01 9A 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 88 13 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 50 91 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 91 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 58 F3 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7C 02 00 35 04 06 00 B1 38 94 6B 2F 7A 45 CD 17 29 11 EC 10 7B [15:48:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D0 0D 47 00 A5 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7C 02 00 F4 03 04 00 65 9F 93 66 B6 04 01 00 00 65 BF 4E F1 46 F4 66 38 [15:48:40]CommunicateWithHost err = 0 [15:48:40]CheckOFDResponse [15:48:40]1017 (14) - 77093643461234 [15:48:40]1041 (16) - 0000000000874899 [15:48:40]1040 (4) - 162870 [15:48:40]1012 (4) - 14.07.2024 09:50 [15:48:40]1206 (1) - 0 [15:48:40]OFD Sender: Remove packet 162870 [15:48:40]ProducePacketName [15:48:40]name=ofd_packets/00162870 [15:48:40]NVStorageDeleteData [15:48:40]Write to MH i2c: 01 00 00 A3 29 CC [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 07 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 07 00 A3 29 00 00 00 00 00 FF 0C DE [15:48:40]RasterBufferAndPrint [15:48:40]line [15:48:40]line [15:48:40]line [15:48:40]line [15:48:40]line [15:48:40]written 0, free lines is 3336 [15:48:40]MH_Cut [15:48:40]Write to MH i2c: D1 01 00 AA 29 01 A5 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: D1 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: D1 01 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: D1 01 00 AA 29 00 A4 [15:48:40]Write to MH i2c: 01 00 00 AB 29 D4 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]OFD Sender: No OFD packet to send [15:48:41]*** Cut start [15:48:41]*** Purtial cut [15:48:41]*** Stage 1: CUTSNS_PIN = 1 [15:48:41]Read from MH i2c: 01 [15:48:41]MH_I2C_Read... [15:48:41]*** Stop cut motor [15:48:41]*** Cut end [15:48:41]Read from MH i2c: 01 07 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: 01 07 00 AB 29 00 00 00 00 00 FF 0F E9 [15:48:41]process_action close_receipt done [15:48:41]requested_data is exist [15:48:41]produce_requested_data [15:48:41]requested_item fm.sn is exist - process it [15:48:41]wFMCommunicate request_size=4 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 11 00 00 [15:48:41]Write to MH i2c: E2 08 00 AC 29 80 11 00 00 00 00 00 00 4F [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 17 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 17 00 AC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AF [15:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:48:41]wFMCommunicate OK [15:48:41]requested_item fd.num is exist - process it [15:48:41]SAM_PROTO_GetFieldsCounters [15:48:41]wFMCommunicate request_size=4 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 13 00 00 [15:48:41]Write to MH i2c: E2 08 00 AD 29 80 13 00 00 00 00 00 00 52 [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 62 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 62 00 AD 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 36 7C 02 00 0E 04 04 00 CF 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 2B [15:48:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 36 7C 02 00 0E 04 04 00 CF 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 [15:48:41]wFMCommunicate OK [15:48:41]SAM_PROTO_GetFieldsCounters done [15:48:41]requested_item shift.num is exist - process it [15:48:41]requested_item shift.opened is exist - process it [15:48:41]req_shift_opened [15:48:41]FM_GetShiftState [15:48:41]SAM_PROTO_GetShiftState [15:48:41]wFMCommunicate request_size=4 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 13 01 00 [15:48:41]Write to MH i2c: E2 08 00 AE 29 80 13 01 00 00 00 00 00 54 [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 0E 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 0E 00 AE 29 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8A [15:48:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:48:41]wFMCommunicate OK [15:48:41]SAM_PROTO_GetShiftState done [15:48:41]FM_GetShiftState done [15:48:41]req_shift_opened done [15:48:41]requested_item shift.open_date is exist - process it [15:48:41]req_shift_open_date [15:48:41]req_shift_open_date done [15:48:41]produce_requested_data done [15:48:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162870,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:48:41]process_action_free close_receipt [15:48:41]json_value_free [15:48:41]json_value_free done [15:48:41]process_json_proto returns [15:48:41]Send response to host [15:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162870,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:48:41]free response buf [15:48:41]execute_script done [15:48:41]execute_script returns [15:48:41]free content buf [15:48:41]Sock 7.Close socket [15:48:41]Sock 7.Thread stoped [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:40]accept exits with 9 [15:54:40]New connection [15:54:40]New thread 3066879332 created [15:54:40]Thread 3066735972 joined [15:54:40]Waiting for new connection... [15:54:40] Sock 9.Parse request [15:54:40]Sock 9.Check first char [15:54:40]Sock 9.First char is OK [15:54:40]request: POST /json_proto HTTP/1.0 [15:54:40]Method: POST [15:54:40]URL: /json_proto [15:54:40]Method is POST - this is cgi request [15:54:40]url: /json_proto [15:54:40]query_string will be loaded in cgi processing [15:54:40]execute_cgi json_proto POST (null) [15:54:40]execute_cgi path=json_proto method=POST [15:54:40]POST find Content-Length [15:54:40]Host: 172.17.39.67:8080 [15:54:40]Content-Length: 683 [15:54:40]Content-Type: application/json [15:54:40] [15:54:40]POST finish read [15:54:40]Found Content-Length = 683 [15:54:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 2.830, "sum" : 205.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 205.00, "total" : 205.00, "payments": [ { "type": 0, "sum" : 205.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:40]execute_script... [15:54:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 2.830, "sum" : 205.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 205.00, "total" : 205.00, "payments": [ { "type": 0, "sum" : 205.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:40]POST & json_proto [15:54:40]process_json_proto [15:54:40]json parsed OK: [15:54:40]protocol is kg_v1.0 [15:54:40]action value=close_receipt [15:54:40]process_action close_receipt [15:54:40]cmd_close_receipt [15:54:40]MH_GetDate [15:54:40]Write to MH i2c: F0 00 00 AF 29 C7 [15:54:40]Write i2c OK [15:54:40]MH_I2C_Read... [15:54:40]Read from MH i2c: F0 [15:54:40]MH_I2C_Read... [15:54:40]Read from MH i2c: F0 09 00 [15:54:40]MH_I2C_Read... [15:54:40]Read from MH i2c: F0 09 00 AF 29 00 C2 F4 93 66 B6 85 93 66 B3 [15:54:40]GetLastDocTimeStamp 1720972120 [15:54:40]current date 1720972482 [15:54:40]FM_GetShiftState [15:54:40]SAM_PROTO_GetShiftState [15:54:40]wFMCommunicate request_size=4 [15:54:40]MH_SAM_APDU [15:54:40]CAPDU: 80 13 01 00 [15:54:40]Write to MH i2c: E2 08 00 B0 29 80 13 01 00 00 00 00 00 56 [15:54:40]Write i2c OK [15:54:40]MH_I2C_Read... [15:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:40]Read from MH i2c: E2 [15:54:40]MH_I2C_Read... [15:54:40]Read from MH i2c: E2 0E 00 [15:54:40]MH_I2C_Read... [15:54:40]Read from MH i2c: E2 0E 00 B0 29 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8C [15:54:40]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:54:40]wFMCommunicate OK [15:54:40]SAM_PROTO_GetShiftState done [15:54:40]FM_GetShiftState done [15:54:40]opened in 1720915483 [15:54:40]opened+sec_in_day 1721001883 [15:54:40]quantity*price = 20545 [15:54:40]sum+1 = 20547 [15:54:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 205.00 Внесено: 205.00 СДАЧА: 0.00 НСП 1% : 1.82 НДС 12% : 21.82 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 183 14.07.2024 15:54 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162871 ФПД: 64183662021816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T155442&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162871&fm=64183662021816&tin=02508201610067®Number=0000000000090858&sum=20500 [15:54:42]StoreToDocumentArchive [15:54:42]shift 463 fd 162871 [15:54:42]save to /storage/0463/doc_00162871 [15:54:42]save last doc name /storage/0463/doc_00162871 to /storage/kkm_last_doc_name [15:54:42]save OK [15:54:42]Clear old archive folders... [15:54:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:54:42]tlvbuf is 012200A0 [15:54:42]SAM_PROTO_ClearQueue [15:54:42]wFMCommunicate request_size=4 [15:54:42]MH_SAM_APDU [15:54:42]CAPDU: 80 09 00 00 [15:54:42]Write to MH i2c: E2 08 00 BD 29 80 09 00 00 00 00 00 00 58 [15:54:42]Write i2c OK [15:54:42]MH_I2C_Read... [15:54:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:42]Read from MH i2c: E2 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 03 00 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 03 00 BD 29 00 90 00 5A [15:54:42]RAPDU: 90 00 [15:54:42]wFMCommunicate OK [15:54:42]SAM_PROTO_ClearQueue done [15:54:42]KKMCreateOFDPacket [15:54:42]OFDProtocolAddRootSTLVToBuf [15:54:42]FM_MakeSignedData [15:54:42]FM_MakeSignedData [15:54:42]SAM_PROTO_SignData [15:54:42]wFMCommunicate request_size=4 [15:54:42]MH_SAM_APDU [15:54:42]CAPDU: 80 0D 01 02 [15:54:42]Write to MH i2c: E2 08 00 BE 29 80 0D 01 02 00 00 00 00 60 [15:54:42]Write i2c OK [15:54:42]MH_I2C_Read... [15:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:42]Read from MH i2c: E2 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 03 00 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 03 00 BE 29 00 90 00 5B [15:54:42]RAPDU: 90 00 [15:54:42]wFMCommunicate OK [15:54:42]wFMCommunicate request_size=255 [15:54:42]MH_SAM_APDU [15:54:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 0B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 42 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 C2 F4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7C 02 00 35 04 06 00 [15:54:42]Write to MH i2c: E2 02 01 BF 29 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 0B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 42 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 C2 F4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7C 02 00 35 04 06 00 00 00 D1 [15:54:42]Write i2c OK [15:54:42]MH_I2C_Read... [15:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:42]Read from MH i2c: E2 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 03 00 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 03 00 BF 29 00 90 00 5C [15:54:42]RAPDU: 90 00 [15:54:42]wFMCommunicate OK [15:54:42]wFMCommunicate request_size=11 [15:54:42]MH_SAM_APDU [15:54:42]CAPDU: 80 0D 02 02 06 3A 5F EC 60 0C B8 [15:54:42]Write to MH i2c: E2 0E 00 C0 29 80 0D 02 02 06 00 3A 5F EC 60 0C B8 00 00 18 [15:54:42]Write i2c OK [15:54:42]MH_I2C_Read... [15:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:42]Read from MH i2c: E2 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 03 00 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 03 00 C0 29 00 90 00 5D [15:54:42]RAPDU: 90 00 [15:54:42]wFMCommunicate OK [15:54:42]wFMCommunicate request_size=4 [15:54:42]MH_SAM_APDU [15:54:42]CAPDU: 80 0D 03 02 [15:54:42]Write to MH i2c: E2 08 00 C1 29 80 0D 03 02 00 00 00 00 65 [15:54:42]Write i2c OK [15:54:42]MH_I2C_Read... [15:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:42]Read from MH i2c: E2 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 0B 00 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 0B 00 C1 29 00 BA 5F 95 5F 7D 91 F0 F5 90 00 66 [15:54:42]RAPDU: BA 5F 95 5F 7D 91 F0 F5 90 00 [15:54:42]wFMCommunicate OK [15:54:42]SAM_PROTO_SignData done [15:54:42]FM_MakeSignedData done [15:54:42]CreateOFDProtocolMessage [15:54:42]wFMCommunicate request_size=4 [15:54:42]MH_SAM_APDU [15:54:42]CAPDU: 80 11 00 00 [15:54:42]Write to MH i2c: E2 08 00 C2 29 80 11 00 00 00 00 00 00 65 [15:54:42]Write i2c OK [15:54:42]MH_I2C_Read... [15:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:42]Read from MH i2c: E2 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 17 00 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: E2 17 00 C2 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C5 [15:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:54:42]wFMCommunicate OK [15:54:42]CreateOFDProtocolMessage done [15:54:42]OFDSenderStorePacket 162871 [15:54:42]StoreOFDPacket docnum=162871 [15:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8E F1 08 01 BD 5A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 0B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 42 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 C2 F4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7C 02 00 35 04 06 00 3A 5F EC 60 0C B8 BA 5F 95 5F 7D 91 F0 F5 [15:54:42]CheckFolder [15:54:42]dirname=/storage/ofd_packets [15:54:42]CheckFolder done [15:54:42]ProducePacketName [15:54:42]name=ofd_packets/00162871 [15:54:42]NVStorageSaveData ofd_packets/00162871 [15:54:42]File name is /storage/ofd_packets/00162871 [15:54:42]Write 302 bytes [15:54:42]NVStorageSaveData done [15:54:42]OFDSenderStorePacket done [15:54:42]KKMCreateOFDPacket done [15:54:42]NVStorageSaveData kkm_last_timestamp [15:54:42]File name is /storage/kkm_last_timestamp [15:54:42]Write 4 bytes [15:54:42]NVStorageSaveData done [15:54:42]ExternCall_PrintAddStr [15:54:42]wPrintStart [15:54:42]Write to MH i2c: 01 00 00 C3 29 EC [15:54:42]Write i2c OK [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: 01 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: 01 07 00 [15:54:42]MH_I2C_Read... [15:54:42]Read from MH i2c: 01 07 00 C3 29 00 00 00 00 00 FF 0F 01 [15:54:42]RasterBufferAndPrint [15:54:42]line Счет N : (1)1319477 [15:54:42]line ИНН: 02508201610067 [15:54:42]line Контрольно-Кассовый Чек [15:54:42]line ПРОДАЖА [15:54:42]line ТРК (МРК, ГНК) : 21 [15:54:42]line Товар: 2710194210 [15:54:42]line ДТ(л)-К-5 [15:54:42]line 2.830 * 72.60 [15:54:42]line = 205.46 [15:54:42]line НДС 12% НСП 1% [15:54:42]line > о реализуемом товаре [15:54:42]line ОКРУГЛЕНИЕ: -0.46 [15:54:42]line ИТОГО: 205.00 [15:54:42]line Внесено: 205.00 [15:54:42]line СДАЧА: 0.00 [15:54:42]line НСП 1% : 1.82 [15:54:42]line НДС 12% : 21.82 [15:54:42]line Наличными: 205.00 [15:54:42]line Безнал.: 0.00 [15:54:42]line Место: АЗС № 140 "Партнер Нефть" [15:54:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:54:42]line СНО: Общий режим [15:54:42]line Чек 183 14.07.2024 15:54 [15:54:42]line Смена: 463 ФФД: 1.0 [15:54:42]line ЗНМ: 0300000129 [15:54:42]line РНМ: 0000000000090858 [15:54:42]line Версия ККМ: 001 [15:54:42]line ФМ: 0000000000874899 [15:54:42]line ФД: 162871 [15:54:42]line ФПД: 64183662021816 [15:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T155442&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162871&fm=64183662021816&tin=02508201610067®Number=0000000000090858&sum=20500 [15:54:42]OFD Sender: Processing packet 162871 [packets to send 106, broken 105] [15:54:42]ProducePacketName [15:54:42]name=ofd_packets/00162871 [15:54:42]OFD Sender: To server: pG, [15:54:42]CommunicateWithHost lk.salyk.kg:30040 [15:54:42]ConnectInit lk.salyk.kg [15:54:42]written 0, free lines is 4095 [15:54:43]Connected sock=10 [15:54:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8E F1 08 01 BD 5A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 0B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 42 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 C2 F4 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7C 02 00 35 04 06 00 3A 5F EC 60 0C B8 BA 5F 95 5F 7D 91 F0 F5 [15:54:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 57 37 47 00 7E 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7C 02 00 F4 03 04 00 D0 A0 93 66 B6 04 01 00 00 9D 05 8A 59 0F 43 A8 5E [15:54:43]CommunicateWithHost err = 0 [15:54:43]CheckOFDResponse [15:54:43]1017 (14) - 77093643461234 [15:54:43]1041 (16) - 0000000000874899 [15:54:43]1040 (4) - 162871 [15:54:43]1012 (4) - 14.07.2024 09:56 [15:54:43]1206 (1) - 0 [15:54:43]OFD Sender: Remove packet 162871 [15:54:43]ProducePacketName [15:54:43]name=ofd_packets/00162871 [15:54:43]NVStorageDeleteData [15:54:43]Write to MH i2c: 01 00 00 EE 29 17 [15:54:43]Write i2c OK [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: 01 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: 01 07 00 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: 01 07 00 EE 29 00 00 00 00 00 DA 0C 04 [15:54:43]RasterBufferAndPrint [15:54:43]line [15:54:43]line [15:54:43]line [15:54:43]line [15:54:43]line [15:54:43]written 0, free lines is 3299 [15:54:43]MH_Cut [15:54:43]Write to MH i2c: D1 01 00 F5 29 01 F0 [15:54:43]Write i2c OK [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: D1 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: D1 01 00 [15:54:43]MH_I2C_Read... [15:54:43]Read from MH i2c: D1 01 00 F5 29 00 EF [15:54:43]Write to MH i2c: 01 00 00 F6 29 1F [15:54:43]Write i2c OK [15:54:43]MH_I2C_Read... [15:54:43]OFD Sender: No OFD packet to send [15:54:44]*** Cut start [15:54:44]*** Purtial cut [15:54:44]*** CUTSNS_PIN = 0 [15:54:44]*** Stage 1: CUTSNS_PIN = 1 [15:54:46]Read from MH i2c: 01 [15:54:46]MH_I2C_Read... [15:54:46]*** Stop cut motor [15:54:46]*** Cut end [15:54:46]Read from MH i2c: 01 07 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: 01 07 00 F6 29 00 00 00 00 00 FF 0F 34 [15:54:46]process_action close_receipt done [15:54:46]requested_data is exist [15:54:46]produce_requested_data [15:54:46]requested_item fm.sn is exist - process it [15:54:46]wFMCommunicate request_size=4 [15:54:46]MH_SAM_APDU [15:54:46]CAPDU: 80 11 00 00 [15:54:46]Write to MH i2c: E2 08 00 F7 29 80 11 00 00 00 00 00 00 9A [15:54:46]Write i2c OK [15:54:46]MH_I2C_Read... [15:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:46]Read from MH i2c: E2 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 17 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 17 00 F7 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FA [15:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:54:46]wFMCommunicate OK [15:54:46]requested_item fd.num is exist - process it [15:54:46]SAM_PROTO_GetFieldsCounters [15:54:46]wFMCommunicate request_size=4 [15:54:46]MH_SAM_APDU [15:54:46]CAPDU: 80 13 00 00 [15:54:46]Write to MH i2c: E2 08 00 F8 29 80 13 00 00 00 00 00 00 9D [15:54:46]Write i2c OK [15:54:46]MH_I2C_Read... [15:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:46]Read from MH i2c: E2 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 62 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 62 00 F8 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 37 7C 02 00 0E 04 04 00 CF 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 7A [15:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 37 7C 02 00 0E 04 04 00 CF 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 [15:54:46]wFMCommunicate OK [15:54:46]SAM_PROTO_GetFieldsCounters done [15:54:46]requested_item shift.num is exist - process it [15:54:46]requested_item shift.opened is exist - process it [15:54:46]req_shift_opened [15:54:46]FM_GetShiftState [15:54:46]SAM_PROTO_GetShiftState [15:54:46]wFMCommunicate request_size=4 [15:54:46]MH_SAM_APDU [15:54:46]CAPDU: 80 13 01 00 [15:54:46]Write to MH i2c: E2 08 00 F9 29 80 13 01 00 00 00 00 00 9F [15:54:46]Write i2c OK [15:54:46]MH_I2C_Read... [15:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:46]Read from MH i2c: E2 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 0E 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 0E 00 F9 29 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D5 [15:54:46]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [15:54:46]wFMCommunicate OK [15:54:46]SAM_PROTO_GetShiftState done [15:54:46]FM_GetShiftState done [15:54:46]req_shift_opened done [15:54:46]requested_item shift.open_date is exist - process it [15:54:46]req_shift_open_date [15:54:46]req_shift_open_date done [15:54:46]produce_requested_data done [15:54:46]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162871,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [15:54:46]process_action_free close_receipt [15:54:46]json_value_free [15:54:46]json_value_free done [15:54:46]process_json_proto returns [15:54:46]Send response to host [15:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162871,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [15:54:46]free response buf [15:54:46]execute_script done [15:54:46]execute_script returns [15:54:46]free content buf [15:54:46]Sock 9.Close socket [15:54:46]Sock 9.Thread stoped [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:10]accept exits with 7 [16:02:10]New connection [16:02:10]New thread 3066735972 created [16:02:10]Thread 3066879332 joined [16:02:10]Waiting for new connection... [16:02:10] Sock 7.Parse request [16:02:10]Sock 7.Check first char [16:02:10]Sock 7.First char is OK [16:02:10]request: POST /json_proto HTTP/1.0 [16:02:10]Method: POST [16:02:10]URL: /json_proto [16:02:10]Method is POST - this is cgi request [16:02:10]url: /json_proto [16:02:10]query_string will be loaded in cgi processing [16:02:10]execute_cgi json_proto POST (null) [16:02:10]execute_cgi path=json_proto method=POST [16:02:10]POST find Content-Length [16:02:10]Host: 172.17.39.67:8080 [16:02:10]Content-Length: 678 [16:02:10]Content-Type: application/json [16:02:10] [16:02:10]POST finish read [16:02:10]Found Content-Length = 678 [16:02:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.960, "sum" : 660.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:10]execute_script... [16:02: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)1319478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.960, "sum" : 660.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:10]POST & json_proto [16:02:10]process_json_proto [16:02:10]json parsed OK: [16:02:10]protocol is kg_v1.0 [16:02:10]action value=close_receipt [16:02:10]process_action close_receipt [16:02:10]cmd_close_receipt [16:02:10]MH_GetDate [16:02:10]Write to MH i2c: F0 00 00 FA 29 12 [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 09 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 09 00 FA 29 00 84 F6 93 66 B6 85 93 66 C2 [16:02:10]GetLastDocTimeStamp 1720972482 [16:02:10]current date 1720972932 [16:02:10]FM_GetShiftState [16:02:10]SAM_PROTO_GetShiftState [16:02:10]wFMCommunicate request_size=4 [16:02:10]MH_SAM_APDU [16:02:10]CAPDU: 80 13 01 00 [16:02:10]Write to MH i2c: E2 08 00 FB 29 80 13 01 00 00 00 00 00 A1 [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:10]Read from MH i2c: E2 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 0E 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 0E 00 FB 29 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D7 [16:02:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:02:10]wFMCommunicate OK [16:02:10]SAM_PROTO_GetShiftState done [16:02:10]FM_GetShiftState done [16:02:10]opened in 1720915483 [16:02:10]opened+sec_in_day 1721001883 [16:02:10]quantity*price = 66034 [16:02:10]sum+1 = 66036 [16:02:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.13 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 184 14.07.2024 16:02 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162872 ФПД: 93772562263672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160212&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162872&fm=93772562263672&tin=02508201610067®Number=0000000000090858&sum=66000 [16:02:11]StoreToDocumentArchive [16:02:11]shift 463 fd 162872 [16:02:11]save to /storage/0463/doc_00162872 [16:02:11]save last doc name /storage/0463/doc_00162872 to /storage/kkm_last_doc_name [16:02:11]save OK [16:02:11]Clear old archive folders... [16:02:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:11]tlvbuf is 0130C2B0 [16:02:11]SAM_PROTO_ClearQueue [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 09 00 00 [16:02:11]Write to MH i2c: E2 08 00 08 2A 80 09 00 00 00 00 00 00 A4 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 08 2A 00 90 00 A6 [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]SAM_PROTO_ClearQueue done [16:02:11]KKMCreateOFDPacket [16:02:11]OFDProtocolAddRootSTLVToBuf [16:02:11]FM_MakeSignedData [16:02:11]FM_MakeSignedData [16:02:11]SAM_PROTO_SignData [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 0D 01 02 [16:02:11]Write to MH i2c: E2 08 00 09 2A 80 0D 01 02 00 00 00 00 AC [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 09 2A 00 90 00 A7 [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]wFMCommunicate request_size=255 [16:02:11]MH_SAM_APDU [16:02: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 E8 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F3 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 84 F6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7C 02 00 35 04 06 00 55 [16:02:11]Write to MH i2c: E2 02 01 0A 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F3 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 84 F6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7C 02 00 35 04 06 00 55 00 00 3E [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 0A 2A 00 90 00 A8 [16:02:12]RAPDU: 90 00 [16:02:12]wFMCommunicate OK [16:02:12]wFMCommunicate request_size=10 [16:02:12]MH_SAM_APDU [16:02:12]CAPDU: 80 0D 02 02 05 49 20 43 6E 78 [16:02:12]Write to MH i2c: E2 0D 00 0B 2A 80 0D 02 02 05 00 49 20 43 6E 78 00 00 4B [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 03 00 0B 2A 00 90 00 A9 [16:02:12]RAPDU: 90 00 [16:02:12]wFMCommunicate OK [16:02:12]wFMCommunicate request_size=4 [16:02:12]MH_SAM_APDU [16:02:12]CAPDU: 80 0D 03 02 [16:02:12]Write to MH i2c: E2 08 00 0C 2A 80 0D 03 02 00 00 00 00 B1 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 0B 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 0B 00 0C 2A 00 A6 9C 5F 10 FF AE 1F 5A 90 00 89 [16:02:12]RAPDU: A6 9C 5F 10 FF AE 1F 5A 90 00 [16:02:12]wFMCommunicate OK [16:02:12]SAM_PROTO_SignData done [16:02:12]FM_MakeSignedData done [16:02:12]CreateOFDProtocolMessage [16:02:12]wFMCommunicate request_size=4 [16:02:12]MH_SAM_APDU [16:02:12]CAPDU: 80 11 00 00 [16:02:12]Write to MH i2c: E2 08 00 0D 2A 80 11 00 00 00 00 00 00 B1 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 17 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 17 00 0D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 11 [16:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:02:12]wFMCommunicate OK [16:02:12]CreateOFDProtocolMessage done [16:02:12]OFDSenderStorePacket 162872 [16:02:12]StoreOFDPacket docnum=162872 [16:02:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 EC 62 07 01 2D E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F3 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 84 F6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7C 02 00 35 04 06 00 55 49 20 43 6E 78 A6 9C 5F 10 FF AE 1F 5A [16:02:12]CheckFolder [16:02:12]dirname=/storage/ofd_packets [16:02:12]CheckFolder done [16:02:12]ProducePacketName [16:02:12]name=ofd_packets/00162872 [16:02:12]NVStorageSaveData ofd_packets/00162872 [16:02:12]File name is /storage/ofd_packets/00162872 [16:02:12]Write 301 bytes [16:02:12]NVStorageSaveData done [16:02:12]OFDSenderStorePacket done [16:02:12]KKMCreateOFDPacket done [16:02:12]NVStorageSaveData kkm_last_timestamp [16:02:12]File name is /storage/kkm_last_timestamp [16:02:12]Write 4 bytes [16:02:12]NVStorageSaveData done [16:02:12]ExternCall_PrintAddStr [16:02:12]wPrintStart [16:02:12]Write to MH i2c: 01 00 00 0E 2A 38 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 07 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 07 00 0E 2A 00 00 00 00 00 FF 0F 4D [16:02:12]RasterBufferAndPrint [16:02:12]line Счет N : (1)1319478 [16:02:12]line ИНН: 02508201610067 [16:02:12]line Контрольно-Кассовый Чек [16:02:12]line ПРОДАЖА [16:02:12]line ТРК (МРК, ГНК) : 33 [16:02:12]line Товар: 2710124130 [16:02:12]line Аи-92-К-5 [16:02:12]line 9.960 * 66.30 [16:02:12]line = 660.35 [16:02:12]line НДС 12% НСП 1% [16:02:12]line > о реализуемом товаре [16:02:12]line ОКРУГЛЕНИЕ: -0.35 [16:02:12]line ИТОГО: 660.00 [16:02:12]line Внесено: 660.00 [16:02:12]line СДАЧА: 0.00 [16:02:12]line НСП 1% : 5.84 [16:02:12]line НДС 12% : 70.13 [16:02:12]line Наличными: 660.00 [16:02:12]line Безнал.: 0.00 [16:02:12]line Место: АЗС № 140 "Партнер Нефть" [16:02:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:02:12]line СНО: Общий режим [16:02:12]line Чек 184 14.07.2024 16:02 [16:02:12]line Смена: 463 ФФД: 1.0 [16:02:12]line ЗНМ: 0300000129 [16:02:12]line РНМ: 0000000000090858 [16:02:12]line Версия ККМ: 001 [16:02:12]line ФМ: 0000000000874899 [16:02:12]line ФД: 162872 [16:02:12]line ФПД: 93772562263672 [16:02:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160212&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162872&fm=93772562263672&tin=02508201610067®Number=0000000000090858&sum=66000 [16:02:12]OFD Sender: Processing packet 162872 [packets to send 106, broken 105] [16:02:12]ProducePacketName [16:02:12]name=ofd_packets/00162872 [16:02:12]OFD Sender: To server: pG, [16:02:12]CommunicateWithHost lk.salyk.kg:30040 [16:02:12]ConnectInit lk.salyk.kg [16:02:12]written 0, free lines is 4095 [16:02:12]Connected sock=10 [16:02:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 EC 62 07 01 2D E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F3 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 84 F6 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7C 02 00 35 04 06 00 55 49 20 43 6E 78 A6 9C 5F 10 FF AE 1F 5A [16:02:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 98 F8 47 00 0A 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7C 02 00 F4 03 04 00 91 A2 93 66 B6 04 01 00 00 39 6A 79 11 55 B6 AD 60 [16:02:13]CommunicateWithHost err = 0 [16:02:13]CheckOFDResponse [16:02:13]1017 (14) - 77093643461234 [16:02:13]1041 (16) - 0000000000874899 [16:02:13]1040 (4) - 162872 [16:02:13]1012 (4) - 14.07.2024 10:04 [16:02:13]1206 (1) - 0 [16:02:13]OFD Sender: Remove packet 162872 [16:02:13]ProducePacketName [16:02:13]name=ofd_packets/00162872 [16:02:13]NVStorageDeleteData [16:02:13]Write to MH i2c: 01 00 00 39 2A 63 [16:02:13]Write i2c OK [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: 01 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: 01 07 00 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: 01 07 00 39 2A 00 00 00 00 00 F6 0C 6C [16:02:13]RasterBufferAndPrint [16:02:13]line [16:02:13]line [16:02:13]line [16:02:13]line [16:02:13]line [16:02:13]written 0, free lines is 3324 [16:02:13]MH_Cut [16:02:13]Write to MH i2c: D1 01 00 40 2A 01 3C [16:02:13]Write i2c OK [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: D1 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: D1 01 00 [16:02:13]MH_I2C_Read... [16:02:13]Read from MH i2c: D1 01 00 40 2A 00 3B [16:02:13]Write to MH i2c: 01 00 00 41 2A 6B [16:02:13]Write i2c OK [16:02:13]MH_I2C_Read... [16:02:13]OFD Sender: No OFD packet to send [16:02:13]*** Cut start [16:02:13]*** Purtial cut [16:02:13]*** Stage 1: CUTSNS_PIN = 1 [16:02:14]Read from MH i2c: 01 [16:02:14]MH_I2C_Read... [16:02:14]*** Stop cut motor [16:02:14]*** Cut end [16:02:14]Read from MH i2c: 01 07 00 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: 01 07 00 41 2A 00 00 00 00 00 FF 0F 80 [16:02:14]process_action close_receipt done [16:02:14]requested_data is exist [16:02:14]produce_requested_data [16:02:14]requested_item fm.sn is exist - process it [16:02:14]wFMCommunicate request_size=4 [16:02:14]MH_SAM_APDU [16:02:14]CAPDU: 80 11 00 00 [16:02:14]Write to MH i2c: E2 08 00 42 2A 80 11 00 00 00 00 00 00 E6 [16:02:14]Write i2c OK [16:02:14]MH_I2C_Read... [16:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:14]Read from MH i2c: E2 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 17 00 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 17 00 42 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 46 [16:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:02:14]wFMCommunicate OK [16:02:14]requested_item fd.num is exist - process it [16:02:14]SAM_PROTO_GetFieldsCounters [16:02:14]wFMCommunicate request_size=4 [16:02:14]MH_SAM_APDU [16:02:14]CAPDU: 80 13 00 00 [16:02:14]Write to MH i2c: E2 08 00 43 2A 80 13 00 00 00 00 00 00 E9 [16:02:14]Write i2c OK [16:02:14]MH_I2C_Read... [16:02:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:14]Read from MH i2c: E2 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 62 00 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 62 00 43 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 38 7C 02 00 0E 04 04 00 CF 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 CA [16:02:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 38 7C 02 00 0E 04 04 00 CF 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 [16:02:14]wFMCommunicate OK [16:02:14]SAM_PROTO_GetFieldsCounters done [16:02:14]requested_item shift.num is exist - process it [16:02:14]requested_item shift.opened is exist - process it [16:02:14]req_shift_opened [16:02:14]FM_GetShiftState [16:02:14]SAM_PROTO_GetShiftState [16:02:14]wFMCommunicate request_size=4 [16:02:14]MH_SAM_APDU [16:02:14]CAPDU: 80 13 01 00 [16:02:14]Write to MH i2c: E2 08 00 44 2A 80 13 01 00 00 00 00 00 EB [16:02:14]Write i2c OK [16:02:14]MH_I2C_Read... [16:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:14]Read from MH i2c: E2 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 0E 00 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 0E 00 44 2A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 21 [16:02:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:02:14]wFMCommunicate OK [16:02:14]SAM_PROTO_GetShiftState done [16:02:14]FM_GetShiftState done [16:02:14]req_shift_opened done [16:02:14]requested_item shift.open_date is exist - process it [16:02:14]req_shift_open_date [16:02:14]req_shift_open_date done [16:02:14]produce_requested_data done [16:02:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162872,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:02:14]process_action_free close_receipt [16:02:14]json_value_free [16:02:14]json_value_free done [16:02:14]process_json_proto returns [16:02:14]Send response to host [16:02:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162872,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:02:14]free response buf [16:02:14]execute_script done [16:02:14]execute_script returns [16:02:14]free content buf [16:02:14]Sock 7.Close socket [16:02:14]Sock 7.Thread stoped [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:25]accept exits with 9 [16:08:25]New connection [16:08:25]New thread 3066879332 created [16:08:25]Thread 3066735972 joined [16:08:25]Waiting for new connection... [16:08:25] Sock 9.Parse request [16:08:25]Sock 9.Check first char [16:08:25]Sock 9.First char is OK [16:08:25]request: POST /json_proto HTTP/1.0 [16:08:25]Method: POST [16:08:25]URL: /json_proto [16:08:25]Method is POST - this is cgi request [16:08:25]url: /json_proto [16:08:25]query_string will be loaded in cgi processing [16:08:25]execute_cgi json_proto POST (null) [16:08:25]execute_cgi path=json_proto method=POST [16:08:25]POST find Content-Length [16:08:25]Host: 172.17.39.67:8080 [16:08:25]Content-Length: 820 [16:08:25]Content-Type: application/json [16:08:25] [16:08:25]POST finish read [16:08:25]Found Content-Length = 820 [16:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 45.240, "sum" : 2999.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2999.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:25]execute_script... [16:08: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)1319479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 45.240, "sum" : 2999.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2999.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:25]POST & json_proto [16:08:25]process_json_proto [16:08:25]json parsed OK: [16:08:25]protocol is kg_v1.0 [16:08:25]action value=close_receipt [16:08:25]process_action close_receipt [16:08:25]cmd_close_receipt [16:08:25]MH_GetDate [16:08:25]Write to MH i2c: F0 00 00 45 2A 5E [16:08:25]Write i2c OK [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: F0 [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: F0 09 00 [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: F0 09 00 45 2A 00 FB F7 93 66 B6 85 93 66 86 [16:08:25]GetLastDocTimeStamp 1720972932 [16:08:25]current date 1720973307 [16:08:25]FM_GetShiftState [16:08:25]SAM_PROTO_GetShiftState [16:08:25]wFMCommunicate request_size=4 [16:08:25]MH_SAM_APDU [16:08:25]CAPDU: 80 13 01 00 [16:08:25]Write to MH i2c: E2 08 00 46 2A 80 13 01 00 00 00 00 00 ED [16:08:25]Write i2c OK [16:08:25]MH_I2C_Read... [16:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:25]Read from MH i2c: E2 [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: E2 0E 00 [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: E2 0E 00 46 2A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 23 [16:08:25]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:08:25]wFMCommunicate OK [16:08:25]SAM_PROTO_GetShiftState done [16:08:25]FM_GetShiftState done [16:08:25]opened in 1720915483 [16:08:25]opened+sec_in_day 1721001883 [16:08:26]quantity*price = 299941 [16:08:26]sum+1 = 299942 [16:08:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2999.41 НСП 1% : 26.54 НДС 12% : 318.52 Наличными: 0.00 Безнал.: 2999.41 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 185 14.07.2024 16:08 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162873 ФПД: 118500682154877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160827&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162873&fm=118500682154877&tin=02508201610067®Number=0000000000090858&sum=299941 [16:08:27]StoreToDocumentArchive [16:08:27]shift 463 fd 162873 [16:08:27]save to /storage/0463/doc_00162873 [16:08:27]save last doc name /storage/0463/doc_00162873 to /storage/kkm_last_doc_name [16:08:27]save OK [16:08:27]Clear old archive folders... [16:08:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:27]tlvbuf is 01356460 [16:08:27]SAM_PROTO_ClearQueue [16:08:27]wFMCommunicate request_size=4 [16:08:27]MH_SAM_APDU [16:08:27]CAPDU: 80 09 00 00 [16:08:27]Write to MH i2c: E2 08 00 53 2A 80 09 00 00 00 00 00 00 EF [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:27]Read from MH i2c: E2 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 03 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 03 00 53 2A 00 90 00 F1 [16:08:27]RAPDU: 90 00 [16:08:27]wFMCommunicate OK [16:08:27]SAM_PROTO_ClearQueue done [16:08:27]KKMCreateOFDPacket [16:08:27]OFDProtocolAddRootSTLVToBuf [16:08:27]FM_MakeSignedData [16:08:27]FM_MakeSignedData [16:08:27]SAM_PROTO_SignData [16:08:27]wFMCommunicate request_size=4 [16:08:27]MH_SAM_APDU [16:08:27]CAPDU: 80 0D 01 02 [16:08:27]Write to MH i2c: E2 08 00 54 2A 80 0D 01 02 00 00 00 00 F7 [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:27]Read from MH i2c: E2 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 03 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 03 00 54 2A 00 90 00 F2 [16:08:27]RAPDU: 90 00 [16:08:27]wFMCommunicate OK [16:08:27]wFMCommunicate request_size=255 [16:08:27]MH_SAM_APDU [16:08:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 B0 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 A5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 FB F7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7C 02 00 35 04 06 00 6B [16:08:27]Write to MH i2c: E2 02 01 55 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 B0 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 A5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 FB F7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7C 02 00 35 04 06 00 6B 00 00 14 [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:27]Read from MH i2c: E2 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 03 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 03 00 55 2A 00 90 00 F3 [16:08:27]RAPDU: 90 00 [16:08:27]wFMCommunicate OK [16:08:27]wFMCommunicate request_size=10 [16:08:27]MH_SAM_APDU [16:08:27]CAPDU: 80 0D 02 02 05 C6 97 10 C3 7D [16:08:27]Write to MH i2c: E2 0D 00 56 2A 80 0D 02 02 05 00 C6 97 10 C3 7D 00 00 B1 [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:27]Read from MH i2c: E2 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 03 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 03 00 56 2A 00 90 00 F4 [16:08:27]RAPDU: 90 00 [16:08:27]wFMCommunicate OK [16:08:27]wFMCommunicate request_size=4 [16:08:27]MH_SAM_APDU [16:08:27]CAPDU: 80 0D 03 02 [16:08:27]Write to MH i2c: E2 08 00 57 2A 80 0D 03 02 00 00 00 00 FC [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:27]Read from MH i2c: E2 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 0B 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 0B 00 57 2A 00 1A 10 15 A0 93 BB 38 93 90 00 F5 [16:08:27]RAPDU: 1A 10 15 A0 93 BB 38 93 90 00 [16:08:27]wFMCommunicate OK [16:08:27]SAM_PROTO_SignData done [16:08:27]FM_MakeSignedData done [16:08:27]CreateOFDProtocolMessage [16:08:27]wFMCommunicate request_size=4 [16:08:27]MH_SAM_APDU [16:08:27]CAPDU: 80 11 00 00 [16:08:27]Write to MH i2c: E2 08 00 58 2A 80 11 00 00 00 00 00 00 FC [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:27]Read from MH i2c: E2 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 17 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 17 00 58 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5C [16:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:08:27]wFMCommunicate OK [16:08:27]CreateOFDProtocolMessage done [16:08:27]OFDSenderStorePacket 162873 [16:08:27]StoreOFDPacket docnum=162873 [16:08:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 98 2A 07 01 1A 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 B8 B0 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 A5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 FB F7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7C 02 00 35 04 06 00 6B C6 97 10 C3 7D 1A 10 15 A0 93 BB 38 93 [16:08:27]CheckFolder [16:08:27]dirname=/storage/ofd_packets [16:08:27]CheckFolder done [16:08:27]ProducePacketName [16:08:27]name=ofd_packets/00162873 [16:08:27]NVStorageSaveData ofd_packets/00162873 [16:08:27]File name is /storage/ofd_packets/00162873 [16:08:27]Write 301 bytes [16:08:27]NVStorageSaveData done [16:08:27]OFDSenderStorePacket done [16:08:27]KKMCreateOFDPacket done [16:08:27]NVStorageSaveData kkm_last_timestamp [16:08:27]File name is /storage/kkm_last_timestamp [16:08:27]Write 4 bytes [16:08:27]NVStorageSaveData done [16:08:27]ExternCall_PrintAddStr [16:08:27]wPrintStart [16:08:27]Write to MH i2c: 01 00 00 59 2A 83 [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: 01 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: 01 07 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: 01 07 00 59 2A 00 00 00 00 00 FF 0F 98 [16:08:27]RasterBufferAndPrint [16:08:27]line Счет N : (1)1319479 [16:08:27]line ИНН: 02508201610067 [16:08:27]line Контрольно-Кассовый Чек [16:08:27]line ПРОДАЖА [16:08:27]line ТРК (МРК, ГНК) : 43 [16:08:27]line Товар: 2710124130 [16:08:27]line Аи-92-К-5 [16:08:27]line 45.240 * 66.30 [16:08:27]line = 2999.41 [16:08:27]line НДС 12% НСП 1% [16:08:27]line > о реализуемом товаре [16:08:27]line ИТОГО: 2999.41 [16:08:27]line НСП 1% : 26.54 [16:08:27]line НДС 12% : 318.52 [16:08:27]line Наличными: 0.00 [16:08:27]line Безнал.: 2999.41 [16:08:27]line Место: АЗС № 140 "Партнер Нефть" [16:08:27]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:08:27]line СНО: Общий режим [16:08:27]line Чек 185 14.07.2024 16:08 [16:08:27]line Смена: 463 ФФД: 1.0 [16:08:27]line ЗНМ: 0300000129 [16:08:27]line РНМ: 0000000000090858 [16:08:27]line Версия ККМ: 001 [16:08:27]line Платежная система: Бакай Банк [16:08:27]line ФМ: 0000000000874899 [16:08:27]line ФД: 162873 [16:08:27]line ФПД: 118500682154877 [16:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T160827&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162873&fm=118500682154877&tin=02508201610067®Number=0000000000090858&sum=299941 [16:08:28]written 0, free lines is 4095 [16:08:28]OFD Sender: Processing packet 162873 [packets to send 106, broken 105] [16:08:28]ProducePacketName [16:08:28]name=ofd_packets/00162873 [16:08:28]OFD Sender: To server: pG, [16:08:28]CommunicateWithHost lk.salyk.kg:30040 [16:08:28]ConnectInit lk.salyk.kg [16:08:28]Connected sock=10 [16:08:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 98 2A 07 01 1A 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 B8 B0 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 A5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 FB F7 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7C 02 00 35 04 06 00 6B C6 97 10 C3 7D 1A 10 15 A0 93 BB 38 93 [16:08:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 68 40 47 00 37 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7C 02 00 F4 03 04 00 09 A4 93 66 B6 04 01 00 00 B8 84 4B CC 5E C8 82 E0 [16:08:28]CommunicateWithHost err = 0 [16:08:28]CheckOFDResponse [16:08:28]1017 (14) - 77093643461234 [16:08:28]1041 (16) - 0000000000874899 [16:08:28]1040 (4) - 162873 [16:08:28]1012 (4) - 14.07.2024 10:10 [16:08:28]1206 (1) - 0 [16:08:28]OFD Sender: Remove packet 162873 [16:08:28]ProducePacketName [16:08:28]name=ofd_packets/00162873 [16:08:28]NVStorageDeleteData [16:08:28]Write to MH i2c: 01 00 00 83 2A AD [16:08:28]Write i2c OK [16:08:28]MH_I2C_Read... [16:08:28]Read from MH i2c: 01 [16:08:28]MH_I2C_Read... [16:08:28]Read from MH i2c: 01 07 00 [16:08:28]MH_I2C_Read... [16:08:28]Read from MH i2c: 01 07 00 83 2A 00 00 00 00 00 EF 0C AF [16:08:28]RasterBufferAndPrint [16:08:28]line [16:08:28]line [16:08:28]line [16:08:28]line [16:08:28]line [16:08:28]written 0, free lines is 3318 [16:08:28]MH_Cut [16:08:28]Write to MH i2c: D1 01 00 8A 2A 01 86 [16:08:28]Write i2c OK [16:08:28]MH_I2C_Read... [16:08:28]Read from MH i2c: D1 [16:08:28]MH_I2C_Read... [16:08:28]Read from MH i2c: D1 01 00 [16:08:28]MH_I2C_Read... [16:08:28]Read from MH i2c: D1 01 00 8A 2A 00 85 [16:08:28]Write to MH i2c: 01 00 00 8B 2A B5 [16:08:28]Write i2c OK [16:08:28]MH_I2C_Read... [16:08:28]OFD Sender: No OFD packet to send [16:08:29]*** Cut start [16:08:29]*** Purtial cut [16:08:29]*** CUTSNS_PIN = 0 [16:08:29]*** Stage 1: CUTSNS_PIN = 1 [16:08:31]Read from MH i2c: 01 [16:08:31]MH_I2C_Read... [16:08:31]*** Stop cut motor [16:08:31]*** Cut end [16:08:31]Read from MH i2c: 01 07 00 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: 01 07 00 8B 2A 00 00 00 00 00 FF 0F CA [16:08:31]process_action close_receipt done [16:08:31]requested_data is exist [16:08:31]produce_requested_data [16:08:31]requested_item fm.sn is exist - process it [16:08:31]wFMCommunicate request_size=4 [16:08:31]MH_SAM_APDU [16:08:31]CAPDU: 80 11 00 00 [16:08:31]Write to MH i2c: E2 08 00 8C 2A 80 11 00 00 00 00 00 00 30 [16:08:31]Write i2c OK [16:08:31]MH_I2C_Read... [16:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:31]Read from MH i2c: E2 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 17 00 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 17 00 8C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 90 [16:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:08:31]wFMCommunicate OK [16:08:31]requested_item fd.num is exist - process it [16:08:31]SAM_PROTO_GetFieldsCounters [16:08:31]wFMCommunicate request_size=4 [16:08:31]MH_SAM_APDU [16:08:31]CAPDU: 80 13 00 00 [16:08:31]Write to MH i2c: E2 08 00 8D 2A 80 13 00 00 00 00 00 00 33 [16:08:31]Write i2c OK [16:08:31]MH_I2C_Read... [16:08:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:31]Read from MH i2c: E2 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 62 00 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 62 00 8D 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 39 7C 02 00 0E 04 04 00 CF 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 18 [16:08:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 39 7C 02 00 0E 04 04 00 CF 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 [16:08:31]wFMCommunicate OK [16:08:31]SAM_PROTO_GetFieldsCounters done [16:08:31]requested_item shift.num is exist - process it [16:08:31]requested_item shift.opened is exist - process it [16:08:31]req_shift_opened [16:08:31]FM_GetShiftState [16:08:31]SAM_PROTO_GetShiftState [16:08:31]wFMCommunicate request_size=4 [16:08:31]MH_SAM_APDU [16:08:31]CAPDU: 80 13 01 00 [16:08:31]Write to MH i2c: E2 08 00 8E 2A 80 13 01 00 00 00 00 00 35 [16:08:31]Write i2c OK [16:08:31]MH_I2C_Read... [16:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:31]Read from MH i2c: E2 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 0E 00 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 0E 00 8E 2A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6B [16:08:31]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:08:31]wFMCommunicate OK [16:08:31]SAM_PROTO_GetShiftState done [16:08:31]FM_GetShiftState done [16:08:31]req_shift_opened done [16:08:31]requested_item shift.open_date is exist - process it [16:08:31]req_shift_open_date [16:08:31]req_shift_open_date done [16:08:31]produce_requested_data done [16:08:31]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162873,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:08:31]process_action_free close_receipt [16:08:31]json_value_free [16:08:31]json_value_free done [16:08:31]process_json_proto returns [16:08:31]Send response to host [16:08:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162873,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:08:31]free response buf [16:08:31]execute_script done [16:08:31]execute_script returns [16:08:31]free content buf [16:08:31]Sock 9.Close socket [16:08:31]Sock 9.Thread stoped [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:35]accept exits with 7 [16:16:35]New connection [16:16:35]New thread 3066735972 created [16:16:35]Thread 3066879332 joined [16:16:35]Waiting for new connection... [16:16:35] Sock 7.Parse request [16:16:35]Sock 7.Check first char [16:16:35]Sock 7.First char is OK [16:16:35]request: POST /json_proto HTTP/1.0 [16:16:35]Method: POST [16:16:35]URL: /json_proto [16:16:35]Method is POST - this is cgi request [16:16:35]url: /json_proto [16:16:35]query_string will be loaded in cgi processing [16:16:35]execute_cgi json_proto POST (null) [16:16:35]execute_cgi path=json_proto method=POST [16:16:35]POST find Content-Length [16:16:35]Host: 172.17.39.67:8080 [16:16:35]Content-Length: 678 [16:16:35]Content-Type: application/json [16:16:35] [16:16:35]POST finish read [16:16:35]Found Content-Length = 678 [16:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.020, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:35]execute_script... [16:16:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.020, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:35]POST & json_proto [16:16:35]process_json_proto [16:16:35]json parsed OK: [16:16:35]protocol is kg_v1.0 [16:16:35]action value=close_receipt [16:16:35]process_action close_receipt [16:16:35]cmd_close_receipt [16:16:35]MH_GetDate [16:16:35]Write to MH i2c: F0 00 00 8F 2A A8 [16:16:35]Write i2c OK [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: F0 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: F0 09 00 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: F0 09 00 8F 2A 00 E5 F9 93 66 B6 85 93 66 BC [16:16:35]GetLastDocTimeStamp 1720973307 [16:16:35]current date 1720973797 [16:16:35]FM_GetShiftState [16:16:35]SAM_PROTO_GetShiftState [16:16:35]wFMCommunicate request_size=4 [16:16:35]MH_SAM_APDU [16:16:35]CAPDU: 80 13 01 00 [16:16:35]Write to MH i2c: E2 08 00 90 2A 80 13 01 00 00 00 00 00 37 [16:16:35]Write i2c OK [16:16:35]MH_I2C_Read... [16:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:35]Read from MH i2c: E2 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: E2 0E 00 [16:16:35]MH_I2C_Read... [16:16:35]Read from MH i2c: E2 0E 00 90 2A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6D [16:16:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:16:35]wFMCommunicate OK [16:16:35]SAM_PROTO_GetShiftState done [16:16:35]FM_GetShiftState done [16:16:35]opened in 1720915483 [16:16:35]opened+sec_in_day 1721001883 [16:16:35]quantity*price = 20022 [16:16:35]sum+1 = 20024 [16:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 186 14.07.2024 16:16 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162874 ФПД: 248028833193044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T161637&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162874&fm=248028833193044&tin=02508201610067®Number=0000000000090858&sum=20000 [16:16:36]StoreToDocumentArchive [16:16:36]shift 463 fd 162874 [16:16:36]save to /storage/0463/doc_00162874 [16:16:36]save last doc name /storage/0463/doc_00162874 to /storage/kkm_last_doc_name [16:16:36]save OK [16:16:36]Clear old archive folders... [16:16:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:36]tlvbuf is 0130C210 [16:16:36]SAM_PROTO_ClearQueue [16:16:36]wFMCommunicate request_size=4 [16:16:36]MH_SAM_APDU [16:16:36]CAPDU: 80 09 00 00 [16:16:36]Write to MH i2c: E2 08 00 9D 2A 80 09 00 00 00 00 00 00 39 [16:16:36]Write i2c OK [16:16:36]MH_I2C_Read... [16:16:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:36]Read from MH i2c: E2 [16:16:36]MH_I2C_Read... [16:16:36]Read from MH i2c: E2 03 00 [16:16:36]MH_I2C_Read... [16:16:36]Read from MH i2c: E2 03 00 9D 2A 00 90 00 3B [16:16:36]RAPDU: 90 00 [16:16:36]wFMCommunicate OK [16:16:36]SAM_PROTO_ClearQueue done [16:16:36]KKMCreateOFDPacket [16:16:36]OFDProtocolAddRootSTLVToBuf [16:16:36]FM_MakeSignedData [16:16:36]FM_MakeSignedData [16:16:36]SAM_PROTO_SignData [16:16:36]wFMCommunicate request_size=4 [16:16:36]MH_SAM_APDU [16:16:36]CAPDU: 80 0D 01 02 [16:16:36]Write to MH i2c: E2 08 00 9E 2A 80 0D 01 02 00 00 00 00 41 [16:16:36]Write i2c OK [16:16:36]MH_I2C_Read... [16:16:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:36]Read from MH i2c: E2 [16:16:36]MH_I2C_Read... [16:16:36]Read from MH i2c: E2 03 00 [16:16:36]MH_I2C_Read... [16:16:36]Read from MH i2c: E2 03 00 9E 2A 00 90 00 3C [16:16:36]RAPDU: 90 00 [16:16:36]wFMCommunicate OK [16:16:36]wFMCommunicate request_size=255 [16:16:36]MH_SAM_APDU [16:16: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 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 E5 F9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7C 02 00 35 04 06 00 E1 [16:16:36]Write to MH i2c: E2 02 01 9F 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 E5 F9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7C 02 00 35 04 06 00 E1 00 00 95 [16:16:36]Write i2c OK [16:16:36]MH_I2C_Read... [16:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:36]Read from MH i2c: E2 [16:16:36]MH_I2C_Read... [16:16:36]Read from MH i2c: E2 03 00 [16:16:36]MH_I2C_Read... [16:16:36]Read from MH i2c: E2 03 00 9F 2A 00 90 00 3D [16:16:36]RAPDU: 90 00 [16:16:36]wFMCommunicate OK [16:16:36]wFMCommunicate request_size=10 [16:16:36]MH_SAM_APDU [16:16:36]CAPDU: 80 0D 02 02 05 94 B6 7F 1C 54 [16:16:36]Write to MH i2c: E2 0D 00 A0 2A 80 0D 02 02 05 00 94 B6 7F 1C 54 00 00 87 [16:16:36]Write i2c OK [16:16:36]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 03 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 03 00 A0 2A 00 90 00 3E [16:16:37]RAPDU: 90 00 [16:16:37]wFMCommunicate OK [16:16:37]wFMCommunicate request_size=4 [16:16:37]MH_SAM_APDU [16:16:37]CAPDU: 80 0D 03 02 [16:16:37]Write to MH i2c: E2 08 00 A1 2A 80 0D 03 02 00 00 00 00 46 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 0B 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 0B 00 A1 2A 00 F5 E6 20 15 E4 D8 5F A4 90 00 16 [16:16:37]RAPDU: F5 E6 20 15 E4 D8 5F A4 90 00 [16:16:37]wFMCommunicate OK [16:16:37]SAM_PROTO_SignData done [16:16:37]FM_MakeSignedData done [16:16:37]CreateOFDProtocolMessage [16:16:37]wFMCommunicate request_size=4 [16:16:37]MH_SAM_APDU [16:16:37]CAPDU: 80 11 00 00 [16:16:37]Write to MH i2c: E2 08 00 A2 2A 80 11 00 00 00 00 00 00 46 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 17 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 17 00 A2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A6 [16:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:16:37]wFMCommunicate OK [16:16:37]CreateOFDProtocolMessage done [16:16:37]OFDSenderStorePacket 162874 [16:16:37]StoreOFDPacket docnum=162874 [16:16:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B2 47 07 01 73 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 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 E5 F9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7C 02 00 35 04 06 00 E1 94 B6 7F 1C 54 F5 E6 20 15 E4 D8 5F A4 [16:16:37]CheckFolder [16:16:37]dirname=/storage/ofd_packets [16:16:37]CheckFolder done [16:16:37]ProducePacketName [16:16:37]name=ofd_packets/00162874 [16:16:37]NVStorageSaveData ofd_packets/00162874 [16:16:37]File name is /storage/ofd_packets/00162874 [16:16:37]Write 301 bytes [16:16:37]NVStorageSaveData done [16:16:37]OFDSenderStorePacket done [16:16:37]KKMCreateOFDPacket done [16:16:37]NVStorageSaveData kkm_last_timestamp [16:16:37]File name is /storage/kkm_last_timestamp [16:16:37]Write 4 bytes [16:16:37]NVStorageSaveData done [16:16:37]ExternCall_PrintAddStr [16:16:37]wPrintStart [16:16:37]Write to MH i2c: 01 00 00 A3 2A CD [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: 01 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: 01 07 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: 01 07 00 A3 2A 00 00 00 00 00 FF 0F E2 [16:16:37]RasterBufferAndPrint [16:16:37]line Счет N : (1)1319481 [16:16:37]line ИНН: 02508201610067 [16:16:37]line Контрольно-Кассовый Чек [16:16:37]line ПРОДАЖА [16:16:37]line ТРК (МРК, ГНК) : 33 [16:16:37]line Товар: 2710124130 [16:16:37]line Аи-92-К-5 [16:16:37]line 3.020 * 66.30 [16:16:37]line = 200.23 [16:16:37]line НДС 12% НСП 1% [16:16:37]line > о реализуемом товаре [16:16:37]line ОКРУГЛЕНИЕ: -0.23 [16:16:37]line ИТОГО: 200.00 [16:16:37]line Внесено: 200.00 [16:16:37]line СДАЧА: 0.00 [16:16:37]line НСП 1% : 1.77 [16:16:37]line НДС 12% : 21.26 [16:16:37]line Наличными: 200.00 [16:16:37]line Безнал.: 0.00 [16:16:37]line Место: АЗС № 140 "Партнер Нефть" [16:16:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:16:37]line СНО: Общий режим [16:16:37]line Чек 186 14.07.2024 16:16 [16:16:37]line Смена: 463 ФФД: 1.0 [16:16:37]line ЗНМ: 0300000129 [16:16:37]line РНМ: 0000000000090858 [16:16:37]line Версия ККМ: 001 [16:16:37]line ФМ: 0000000000874899 [16:16:37]line ФД: 162874 [16:16:37]line ФПД: 248028833193044 [16:16:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T161637&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162874&fm=248028833193044&tin=02508201610067®Number=0000000000090858&sum=20000 [16:16:37]OFD Sender: Processing packet 162874 [packets to send 106, broken 105] [16:16:37]ProducePacketName [16:16:37]name=ofd_packets/00162874 [16:16:37]OFD Sender: To server: pG, [16:16:37]CommunicateWithHost lk.salyk.kg:30040 [16:16:37]ConnectInit lk.salyk.kg [16:16:37]written 0, free lines is 4095 [16:16:37]Connected sock=10 [16:16:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B2 47 07 01 73 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 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 E5 F9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7C 02 00 35 04 06 00 E1 94 B6 7F 1C 54 F5 E6 20 15 E4 D8 5F A4 [16:16:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CA FA 47 00 AA D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7C 02 00 F4 03 04 00 F2 A5 93 66 B6 04 01 00 00 0E 11 3D B9 F3 65 46 CC [16:16:37]CommunicateWithHost err = 0 [16:16:37]CheckOFDResponse [16:16:37]1017 (14) - 77093643461234 [16:16:37]1041 (16) - 0000000000874899 [16:16:37]1040 (4) - 162874 [16:16:37]1012 (4) - 14.07.2024 10:18 [16:16:37]1206 (1) - 0 [16:16:37]OFD Sender: Remove packet 162874 [16:16:37]ProducePacketName [16:16:37]name=ofd_packets/00162874 [16:16:37]NVStorageDeleteData [16:16:37]Write to MH i2c: 01 00 00 CE 2A F8 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: 01 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: 01 07 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: 01 07 00 CE 2A 00 00 00 00 00 F3 0C FE [16:16:37]RasterBufferAndPrint [16:16:37]line [16:16:37]line [16:16:37]line [16:16:37]line [16:16:37]line [16:16:37]written 0, free lines is 3324 [16:16:37]MH_Cut [16:16:37]Write to MH i2c: D1 01 00 D5 2A 01 D1 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: D1 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: D1 01 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: D1 01 00 D5 2A 00 D0 [16:16:37]Write to MH i2c: 01 00 00 D6 2A 00 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:38]OFD Sender: No OFD packet to send [16:16:38]*** Cut start [16:16:38]*** Purtial cut [16:16:38]*** Stage 1: CUTSNS_PIN = 1 [16:16:38]Read from MH i2c: 01 [16:16:38]MH_I2C_Read... [16:16:38]*** Stop cut motor [16:16:38]*** Cut end [16:16:38]Read from MH i2c: 01 07 00 [16:16:38]MH_I2C_Read... [16:16:38]Read from MH i2c: 01 07 00 D6 2A 00 00 00 00 00 FF 0F 15 [16:16:38]process_action close_receipt done [16:16:38]requested_data is exist [16:16:38]produce_requested_data [16:16:38]requested_item fm.sn is exist - process it [16:16:38]wFMCommunicate request_size=4 [16:16:38]MH_SAM_APDU [16:16:38]CAPDU: 80 11 00 00 [16:16:38]Write to MH i2c: E2 08 00 D7 2A 80 11 00 00 00 00 00 00 7B [16:16:38]Write i2c OK [16:16:38]MH_I2C_Read... [16:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:38]Read from MH i2c: E2 [16:16:38]MH_I2C_Read... [16:16:38]Read from MH i2c: E2 17 00 [16:16:38]MH_I2C_Read... [16:16:38]Read from MH i2c: E2 17 00 D7 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DB [16:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:16:38]wFMCommunicate OK [16:16:38]requested_item fd.num is exist - process it [16:16:38]SAM_PROTO_GetFieldsCounters [16:16:38]wFMCommunicate request_size=4 [16:16:38]MH_SAM_APDU [16:16:38]CAPDU: 80 13 00 00 [16:16:38]Write to MH i2c: E2 08 00 D8 2A 80 13 00 00 00 00 00 00 7E [16:16:38]Write i2c OK [16:16:38]MH_I2C_Read... [16:16:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:39]Read from MH i2c: E2 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 62 00 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 62 00 D8 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3A 7C 02 00 0E 04 04 00 CF 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 67 [16:16:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3A 7C 02 00 0E 04 04 00 CF 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 [16:16:39]wFMCommunicate OK [16:16:39]SAM_PROTO_GetFieldsCounters done [16:16:39]requested_item shift.num is exist - process it [16:16:39]requested_item shift.opened is exist - process it [16:16:39]req_shift_opened [16:16:39]FM_GetShiftState [16:16:39]SAM_PROTO_GetShiftState [16:16:39]wFMCommunicate request_size=4 [16:16:39]MH_SAM_APDU [16:16:39]CAPDU: 80 13 01 00 [16:16:39]Write to MH i2c: E2 08 00 D9 2A 80 13 01 00 00 00 00 00 80 [16:16:39]Write i2c OK [16:16:39]MH_I2C_Read... [16:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:39]Read from MH i2c: E2 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 0E 00 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 0E 00 D9 2A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B6 [16:16:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:16:39]wFMCommunicate OK [16:16:39]SAM_PROTO_GetShiftState done [16:16:39]FM_GetShiftState done [16:16:39]req_shift_opened done [16:16:39]requested_item shift.open_date is exist - process it [16:16:39]req_shift_open_date [16:16:39]req_shift_open_date done [16:16:39]produce_requested_data done [16:16:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162874,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:16:39]process_action_free close_receipt [16:16:39]json_value_free [16:16:39]json_value_free done [16:16:39]process_json_proto returns [16:16:39]Send response to host [16:16:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162874,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:16:39]free response buf [16:16:39]execute_script done [16:16:39]execute_script returns [16:16:39]free content buf [16:16:39]Sock 7.Close socket [16:16:39]Sock 7.Thread stoped [16:16:43]OFD Sender: No OFD packet to send [16:16:43]accept exits with 9 [16:16:43]New connection [16:16:43]New thread 3066879332 created [16:16:43]Thread 3066735972 joined [16:16:43]Waiting for new connection... [16:16:43] Sock 9.Parse request [16:16:43]Sock 9.Check first char [16:16:43]Sock 9.First char is OK [16:16:43]request: POST /json_proto HTTP/1.0 [16:16:43]Method: POST [16:16:43]URL: /json_proto [16:16:43]Method is POST - this is cgi request [16:16:43]url: /json_proto [16:16:43]query_string will be loaded in cgi processing [16:16:43]execute_cgi json_proto POST (null) [16:16:43]execute_cgi path=json_proto method=POST [16:16:43]POST find Content-Length [16:16:43]Host: 172.17.39.67:8080 [16:16:43]Content-Length: 683 [16:16:43]Content-Type: application/json [16:16:43] [16:16:43]POST finish read [16:16:43]Found Content-Length = 683 [16:16:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.220, "sum" : 1340.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:43]execute_script... [16:16: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)1319480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.220, "sum" : 1340.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:43]POST & json_proto [16:16:43]process_json_proto [16:16:43]json parsed OK: [16:16:43]protocol is kg_v1.0 [16:16:43]action value=close_receipt [16:16:43]process_action close_receipt [16:16:43]cmd_close_receipt [16:16:43]MH_GetDate [16:16:43]Write to MH i2c: F0 00 00 DA 2A F3 [16:16:43]Write i2c OK [16:16:43]MH_I2C_Read... [16:16:43]Read from MH i2c: F0 [16:16:43]MH_I2C_Read... [16:16:43]Read from MH i2c: F0 09 00 [16:16:43]MH_I2C_Read... [16:16:43]Read from MH i2c: F0 09 00 DA 2A 00 ED F9 93 66 B6 85 93 66 0F [16:16:43]GetLastDocTimeStamp 1720973797 [16:16:43]current date 1720973805 [16:16:43]FM_GetShiftState [16:16:43]SAM_PROTO_GetShiftState [16:16:43]wFMCommunicate request_size=4 [16:16:43]MH_SAM_APDU [16:16:43]CAPDU: 80 13 01 00 [16:16:43]Write to MH i2c: E2 08 00 DB 2A 80 13 01 00 00 00 00 00 82 [16:16:43]Write i2c OK [16:16:43]MH_I2C_Read... [16:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:43]Read from MH i2c: E2 [16:16:43]MH_I2C_Read... [16:16:43]Read from MH i2c: E2 0E 00 [16:16:43]MH_I2C_Read... [16:16:43]Read from MH i2c: E2 0E 00 DB 2A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B8 [16:16:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:16:43]wFMCommunicate OK [16:16:43]SAM_PROTO_GetShiftState done [16:16:43]FM_GetShiftState done [16:16:43]opened in 1720915483 [16:16:43]opened+sec_in_day 1721001883 [16:16:43]quantity*price = 134058 [16:16:43]sum+1 = 134060 [16:16:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1340.00 Внесено: 1340.00 СДАЧА: 0.00 НСП 1% : 11.86 НДС 12% : 142.36 Наличными: 1340.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 187 14.07.2024 16:16 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162875 ФПД: 258264736432870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T161645&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162875&fm=258264736432870&tin=02508201610067®Number=0000000000090858&sum=134000 [16:16:45]StoreToDocumentArchive [16:16:45]shift 463 fd 162875 [16:16:45]save to /storage/0463/doc_00162875 [16:16:45]save last doc name /storage/0463/doc_00162875 to /storage/kkm_last_doc_name [16:16:45]save OK [16:16:45]Clear old archive folders... [16:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:45]tlvbuf is B6F437F0 [16:16:45]SAM_PROTO_ClearQueue [16:16:45]wFMCommunicate request_size=4 [16:16:45]MH_SAM_APDU [16:16:45]CAPDU: 80 09 00 00 [16:16:45]Write to MH i2c: E2 08 00 E8 2A 80 09 00 00 00 00 00 00 84 [16:16:45]Write i2c OK [16:16:45]MH_I2C_Read... [16:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:45]Read from MH i2c: E2 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 03 00 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 03 00 E8 2A 00 90 00 86 [16:16:45]RAPDU: 90 00 [16:16:45]wFMCommunicate OK [16:16:45]SAM_PROTO_ClearQueue done [16:16:45]KKMCreateOFDPacket [16:16:45]OFDProtocolAddRootSTLVToBuf [16:16:45]FM_MakeSignedData [16:16:45]FM_MakeSignedData [16:16:45]SAM_PROTO_SignData [16:16:45]wFMCommunicate request_size=4 [16:16:45]MH_SAM_APDU [16:16:45]CAPDU: 80 0D 01 02 [16:16:45]Write to MH i2c: E2 08 00 E9 2A 80 0D 01 02 00 00 00 00 8C [16:16:45]Write i2c OK [16:16:45]MH_I2C_Read... [16:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:45]Read from MH i2c: E2 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 03 00 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 03 00 E9 2A 00 90 00 87 [16:16:45]RAPDU: 90 00 [16:16:45]wFMCommunicate OK [16:16:45]wFMCommunicate request_size=255 [16:16:45]MH_SAM_APDU [16:16:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AB 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 37 00 00 00 00 07 04 06 00 70 0B 02 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 ED F9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7C 02 00 35 04 06 00 EA [16:16:45]Write to MH i2c: E2 02 01 EA 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AB 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 37 00 00 00 00 07 04 06 00 70 0B 02 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 ED F9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7C 02 00 35 04 06 00 EA 00 00 29 [16:16:45]Write i2c OK [16:16:45]MH_I2C_Read... [16:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:45]Read from MH i2c: E2 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 03 00 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 03 00 EA 2A 00 90 00 88 [16:16:45]RAPDU: 90 00 [16:16:45]wFMCommunicate OK [16:16:45]wFMCommunicate request_size=10 [16:16:45]MH_SAM_APDU [16:16:45]CAPDU: 80 0D 02 02 05 E3 F1 DF 82 E6 [16:16:45]Write to MH i2c: E2 0D 00 EB 2A 80 0D 02 02 05 00 E3 F1 DF 82 E6 00 00 B4 [16:16:45]Write i2c OK [16:16:45]MH_I2C_Read... [16:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:45]Read from MH i2c: E2 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 03 00 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 03 00 EB 2A 00 90 00 89 [16:16:45]RAPDU: 90 00 [16:16:45]wFMCommunicate OK [16:16:45]wFMCommunicate request_size=4 [16:16:45]MH_SAM_APDU [16:16:45]CAPDU: 80 0D 03 02 [16:16:45]Write to MH i2c: E2 08 00 EC 2A 80 0D 03 02 00 00 00 00 91 [16:16:45]Write i2c OK [16:16:45]MH_I2C_Read... [16:16:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:45]Read from MH i2c: E2 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 0B 00 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 0B 00 EC 2A 00 6F DB 87 ED F8 4D DE 5E 90 00 D1 [16:16:45]RAPDU: 6F DB 87 ED F8 4D DE 5E 90 00 [16:16:45]wFMCommunicate OK [16:16:45]SAM_PROTO_SignData done [16:16:45]FM_MakeSignedData done [16:16:45]CreateOFDProtocolMessage [16:16:45]wFMCommunicate request_size=4 [16:16:45]MH_SAM_APDU [16:16:45]CAPDU: 80 11 00 00 [16:16:45]Write to MH i2c: E2 08 00 ED 2A 80 11 00 00 00 00 00 00 91 [16:16:45]Write i2c OK [16:16:45]MH_I2C_Read... [16:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:45]Read from MH i2c: E2 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 17 00 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: E2 17 00 ED 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F1 [16:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:16:45]wFMCommunicate OK [16:16:45]CreateOFDProtocolMessage done [16:16:45]OFDSenderStorePacket 162875 [16:16:45]StoreOFDPacket docnum=162875 [16:16:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4D 9A 07 01 DA 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 FC 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AB 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 37 00 00 00 00 07 04 06 00 70 0B 02 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 ED F9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7C 02 00 35 04 06 00 EA E3 F1 DF 82 E6 6F DB 87 ED F8 4D DE 5E [16:16:45]CheckFolder [16:16:45]dirname=/storage/ofd_packets [16:16:45]CheckFolder done [16:16:45]ProducePacketName [16:16:45]name=ofd_packets/00162875 [16:16:45]NVStorageSaveData ofd_packets/00162875 [16:16:45]File name is /storage/ofd_packets/00162875 [16:16:45]Write 301 bytes [16:16:45]NVStorageSaveData done [16:16:45]OFDSenderStorePacket done [16:16:45]KKMCreateOFDPacket done [16:16:45]NVStorageSaveData kkm_last_timestamp [16:16:45]File name is /storage/kkm_last_timestamp [16:16:45]Write 4 bytes [16:16:45]NVStorageSaveData done [16:16:45]ExternCall_PrintAddStr [16:16:45]wPrintStart [16:16:45]Write to MH i2c: 01 00 00 EE 2A 18 [16:16:45]Write i2c OK [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: 01 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: 01 07 00 [16:16:45]MH_I2C_Read... [16:16:45]Read from MH i2c: 01 07 00 EE 2A 00 00 00 00 00 FF 0F 2D [16:16:45]RasterBufferAndPrint [16:16:45]line Счет N : (1)1319480 [16:16:45]line ИНН: 02508201610067 [16:16:45]line Контрольно-Кассовый Чек [16:16:45]line ПРОДАЖА [16:16:45]line ТРК (МРК, ГНК) : 63 [16:16:45]line Товар: 2710124130 [16:16:45]line Аи-92-К-5 [16:16:45]line 20.220 * 66.30 [16:16:45]line = 1340.59 [16:16:45]line НДС 12% НСП 1% [16:16:45]line > о реализуемом товаре [16:16:45]line ОКРУГЛЕНИЕ: -0.59 [16:16:45]line ИТОГО: 1340.00 [16:16:45]line Внесено: 1340.00 [16:16:45]line СДАЧА: 0.00 [16:16:45]line НСП 1% : 11.86 [16:16:45]line НДС 12% : 142.36 [16:16:45]line Наличными: 1340.00 [16:16:45]line Безнал.: 0.00 [16:16:45]line Место: АЗС № 140 "Партнер Нефть" [16:16:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:16:45]line СНО: Общий режим [16:16:45]line Чек 187 14.07.2024 16:16 [16:16:45]line Смена: 463 ФФД: 1.0 [16:16:45]line ЗНМ: 0300000129 [16:16:45]line РНМ: 0000000000090858 [16:16:45]line Версия ККМ: 001 [16:16:45]line ФМ: 0000000000874899 [16:16:45]line ФД: 162875 [16:16:45]line ФПД: 258264736432870 [16:16:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T161645&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162875&fm=258264736432870&tin=02508201610067®Number=0000000000090858&sum=134000 [16:16:45]written 0, free lines is 4095 [16:16:45]OFD Sender: Processing packet 162875 [packets to send 106, broken 105] [16:16:45]ProducePacketName [16:16:45]name=ofd_packets/00162875 [16:16:45]OFD Sender: To server: pG, [16:16:45]CommunicateWithHost lk.salyk.kg:30040 [16:16:45]ConnectInit lk.salyk.kg [16:16:45]Connected sock=10 [16:16:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4D 9A 07 01 DA 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 FC 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AB 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 37 00 00 00 00 07 04 06 00 70 0B 02 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 ED F9 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7C 02 00 35 04 06 00 EA E3 F1 DF 82 E6 6F DB 87 ED F8 4D DE 5E [16:16:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5D 0B 47 00 96 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7C 02 00 F4 03 04 00 FA A5 93 66 B6 04 01 00 00 08 57 CB B7 42 9D 3D D7 [16:16:45]CommunicateWithHost err = 0 [16:16:45]CheckOFDResponse [16:16:45]1017 (14) - 77093643461234 [16:16:45]1041 (16) - 0000000000874899 [16:16:45]1040 (4) - 162875 [16:16:45]1012 (4) - 14.07.2024 10:18 [16:16:45]1206 (1) - 0 [16:16:45]OFD Sender: Remove packet 162875 [16:16:45]ProducePacketName [16:16:45]name=ofd_packets/00162875 [16:16:45]NVStorageDeleteData [16:16:46]Write to MH i2c: 01 00 00 19 2B 44 [16:16:46]Write i2c OK [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: 01 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: 01 07 00 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: 01 07 00 19 2B 00 00 00 00 00 F6 0C 4D [16:16:46]RasterBufferAndPrint [16:16:46]line [16:16:46]line [16:16:46]line [16:16:46]line [16:16:46]line [16:16:46]written 0, free lines is 3327 [16:16:46]MH_Cut [16:16:46]Write to MH i2c: D1 01 00 20 2B 01 1D [16:16:46]Write i2c OK [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: D1 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: D1 01 00 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: D1 01 00 20 2B 00 1C [16:16:46]Write to MH i2c: 01 00 00 21 2B 4C [16:16:46]Write i2c OK [16:16:46]MH_I2C_Read... [16:16:46]OFD Sender: No OFD packet to send [16:16:46]*** Cut start [16:16:46]*** Purtial cut [16:16:46]*** CUTSNS_PIN = 0 [16:16:46]*** Stage 1: CUTSNS_PIN = 1 [16:16:48]Read from MH i2c: 01 [16:16:48]MH_I2C_Read... [16:16:48]*** Stop cut motor [16:16:48]*** Cut end [16:16:48]Read from MH i2c: 01 07 00 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: 01 07 00 21 2B 00 00 00 00 00 FF 0F 61 [16:16:48]process_action close_receipt done [16:16:48]requested_data is exist [16:16:48]produce_requested_data [16:16:48]requested_item fm.sn is exist - process it [16:16:48]wFMCommunicate request_size=4 [16:16:48]MH_SAM_APDU [16:16:48]CAPDU: 80 11 00 00 [16:16:48]Write to MH i2c: E2 08 00 22 2B 80 11 00 00 00 00 00 00 C7 [16:16:48]Write i2c OK [16:16:48]MH_I2C_Read... [16:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:48]Read from MH i2c: E2 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 17 00 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 17 00 22 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 27 [16:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:16:48]wFMCommunicate OK [16:16:48]requested_item fd.num is exist - process it [16:16:48]SAM_PROTO_GetFieldsCounters [16:16:48]wFMCommunicate request_size=4 [16:16:48]MH_SAM_APDU [16:16:48]CAPDU: 80 13 00 00 [16:16:48]Write to MH i2c: E2 08 00 23 2B 80 13 00 00 00 00 00 00 CA [16:16:48]Write i2c OK [16:16:48]MH_I2C_Read... [16:16:49]Read from MH i2c: E2 [16:16:49]MH_I2C_Read... [16:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:49]Read from MH i2c: E2 62 00 [16:16:49]MH_I2C_Read... [16:16:49]Read from MH i2c: E2 62 00 23 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3B 7C 02 00 0E 04 04 00 CF 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 B7 [16:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3B 7C 02 00 0E 04 04 00 CF 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 [16:16:49]wFMCommunicate OK [16:16:49]SAM_PROTO_GetFieldsCounters done [16:16:49]requested_item shift.num is exist - process it [16:16:49]requested_item shift.opened is exist - process it [16:16:49]req_shift_opened [16:16:49]FM_GetShiftState [16:16:49]SAM_PROTO_GetShiftState [16:16:49]wFMCommunicate request_size=4 [16:16:49]MH_SAM_APDU [16:16:49]CAPDU: 80 13 01 00 [16:16:49]Write to MH i2c: E2 08 00 24 2B 80 13 01 00 00 00 00 00 CC [16:16:49]Write i2c OK [16:16:49]MH_I2C_Read... [16:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:49]Read from MH i2c: E2 [16:16:49]MH_I2C_Read... [16:16:49]Read from MH i2c: E2 0E 00 [16:16:49]MH_I2C_Read... [16:16:49]Read from MH i2c: E2 0E 00 24 2B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 02 [16:16:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:16:49]wFMCommunicate OK [16:16:49]SAM_PROTO_GetShiftState done [16:16:49]FM_GetShiftState done [16:16:49]req_shift_opened done [16:16:49]requested_item shift.open_date is exist - process it [16:16:49]req_shift_open_date [16:16:49]req_shift_open_date done [16:16:49]produce_requested_data done [16:16:49]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162875,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:16:49]process_action_free close_receipt [16:16:49]json_value_free [16:16:49]json_value_free done [16:16:49]process_json_proto returns [16:16:49]Send response to host [16:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162875,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:16:49]free response buf [16:16:49]execute_script done [16:16:49]execute_script returns [16:16:49]free content buf [16:16:49]Sock 9.Close socket [16:16:49]Sock 9.Thread stoped [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:20:59]accept exits with 7 [16:20:59]New connection [16:20:59]New thread 3066735972 created [16:20:59]Thread 3066879332 joined [16:20:59]Waiting for new connection... [16:20:59] Sock 7.Parse request [16:20:59]Sock 7.Check first char [16:20:59]Sock 7.First char is OK [16:20:59]request: POST /json_proto HTTP/1.0 [16:20:59]Method: POST [16:20:59]URL: /json_proto [16:20:59]Method is POST - this is cgi request [16:20:59]url: /json_proto [16:20:59]query_string will be loaded in cgi processing [16:20:59]execute_cgi json_proto POST (null) [16:20:59]execute_cgi path=json_proto method=POST [16:20:59]POST find Content-Length [16:20:59]Host: 172.17.39.67:8080 [16:20:59]Content-Length: 688 [16:20:59]Content-Type: application/json [16:20:59] [16:20:59]POST finish read [16:20:59]Found Content-Length = 688 [16:20:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:20:59]execute_script... [16:20: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)1319483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:20:59]POST & json_proto [16:20:59]process_json_proto [16:20:59]json parsed OK: [16:20:59]protocol is kg_v1.0 [16:20:59]action value=close_receipt [16:20:59]process_action close_receipt [16:20:59]cmd_close_receipt [16:20:59]MH_GetDate [16:20:59]Write to MH i2c: F0 00 00 25 2B 3F [16:20:59]Write i2c OK [16:20:59]MH_I2C_Read... [16:20:59]Read from MH i2c: F0 [16:20:59]MH_I2C_Read... [16:20:59]Read from MH i2c: F0 09 00 [16:20:59]MH_I2C_Read... [16:20:59]Read from MH i2c: F0 09 00 25 2B 00 ED FA 93 66 B6 85 93 66 5C [16:20:59]GetLastDocTimeStamp 1720973805 [16:20:59]current date 1720974061 [16:20:59]FM_GetShiftState [16:20:59]SAM_PROTO_GetShiftState [16:20:59]wFMCommunicate request_size=4 [16:20:59]MH_SAM_APDU [16:20:59]CAPDU: 80 13 01 00 [16:20:59]Write to MH i2c: E2 08 00 26 2B 80 13 01 00 00 00 00 00 CE [16:20:59]Write i2c OK [16:20:59]MH_I2C_Read... [16:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:00]Read from MH i2c: E2 [16:21:00]MH_I2C_Read... [16:21:00]Read from MH i2c: E2 0E 00 [16:21:00]MH_I2C_Read... [16:21:00]Read from MH i2c: E2 0E 00 26 2B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 04 [16:21:00]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:21:00]wFMCommunicate OK [16:21:00]SAM_PROTO_GetShiftState done [16:21:00]FM_GetShiftState done [16:21:00]opened in 1720915483 [16:21:00]opened+sec_in_day 1721001883 [16:21:00]quantity*price = 100042 [16:21:00]sum+1 = 100044 [16:21:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 188 14.07.2024 16:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162876 ФПД: 243280127309916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162101&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162876&fm=243280127309916&tin=02508201610067®Number=0000000000090858&sum=100000 [16:21:01]StoreToDocumentArchive [16:21:01]shift 463 fd 162876 [16:21:01]save to /storage/0463/doc_00162876 [16:21:01]save last doc name /storage/0463/doc_00162876 to /storage/kkm_last_doc_name [16:21:01]save OK [16:21:01]Clear old archive folders... [16:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:21:01]tlvbuf is B6EC8350 [16:21:01]SAM_PROTO_ClearQueue [16:21:01]wFMCommunicate request_size=4 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 09 00 00 [16:21:01]Write to MH i2c: E2 08 00 33 2B 80 09 00 00 00 00 00 00 D0 [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 33 2B 00 90 00 D2 [16:21:01]RAPDU: 90 00 [16:21:01]wFMCommunicate OK [16:21:01]SAM_PROTO_ClearQueue done [16:21:01]KKMCreateOFDPacket [16:21:01]OFDProtocolAddRootSTLVToBuf [16:21:01]FM_MakeSignedData [16:21:01]FM_MakeSignedData [16:21:01]SAM_PROTO_SignData [16:21:01]wFMCommunicate request_size=4 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 0D 01 02 [16:21:01]Write to MH i2c: E2 08 00 34 2B 80 0D 01 02 00 00 00 00 D8 [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 34 2B 00 90 00 D3 [16:21:01]RAPDU: 90 00 [16:21:01]wFMCommunicate OK [16:21:01]wFMCommunicate request_size=255 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 ED FA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7C 02 00 35 04 06 00 [16:21:01]Write to MH i2c: E2 02 01 35 2B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 ED FA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7C 02 00 35 04 06 00 00 00 97 [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 35 2B 00 90 00 D4 [16:21:01]RAPDU: 90 00 [16:21:01]wFMCommunicate OK [16:21:01]wFMCommunicate request_size=11 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 0D 02 02 06 DD 43 11 91 B8 5C [16:21:01]Write to MH i2c: E2 0E 00 36 2B 80 0D 02 02 06 00 DD 43 11 91 B8 5C 00 00 BD [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 03 00 36 2B 00 90 00 D5 [16:21:01]RAPDU: 90 00 [16:21:01]wFMCommunicate OK [16:21:01]wFMCommunicate request_size=4 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 0D 03 02 [16:21:01]Write to MH i2c: E2 08 00 37 2B 80 0D 03 02 00 00 00 00 DD [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 0B 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 0B 00 37 2B 00 F1 D5 22 07 C8 E6 0D 50 90 00 D8 [16:21:01]RAPDU: F1 D5 22 07 C8 E6 0D 50 90 00 [16:21:01]wFMCommunicate OK [16:21:01]SAM_PROTO_SignData done [16:21:01]FM_MakeSignedData done [16:21:01]CreateOFDProtocolMessage [16:21:01]wFMCommunicate request_size=4 [16:21:01]MH_SAM_APDU [16:21:01]CAPDU: 80 11 00 00 [16:21:01]Write to MH i2c: E2 08 00 38 2B 80 11 00 00 00 00 00 00 DD [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:01]Read from MH i2c: E2 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 17 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: E2 17 00 38 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3D [16:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:21:01]wFMCommunicate OK [16:21:01]CreateOFDProtocolMessage done [16:21:01]OFDSenderStorePacket 162876 [16:21:01]StoreOFDPacket docnum=162876 [16:21:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 7F 6F 08 01 1B FA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 ED FA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7C 02 00 35 04 06 00 DD 43 11 91 B8 5C F1 D5 22 07 C8 E6 0D 50 [16:21:01]CheckFolder [16:21:01]dirname=/storage/ofd_packets [16:21:01]CheckFolder done [16:21:01]ProducePacketName [16:21:01]name=ofd_packets/00162876 [16:21:01]NVStorageSaveData ofd_packets/00162876 [16:21:01]File name is /storage/ofd_packets/00162876 [16:21:01]Write 302 bytes [16:21:01]NVStorageSaveData done [16:21:01]OFDSenderStorePacket done [16:21:01]KKMCreateOFDPacket done [16:21:01]NVStorageSaveData kkm_last_timestamp [16:21:01]File name is /storage/kkm_last_timestamp [16:21:01]Write 4 bytes [16:21:01]NVStorageSaveData done [16:21:01]ExternCall_PrintAddStr [16:21:01]wPrintStart [16:21:01]Write to MH i2c: 01 00 00 39 2B 64 [16:21:01]Write i2c OK [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: 01 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: 01 07 00 [16:21:01]MH_I2C_Read... [16:21:01]Read from MH i2c: 01 07 00 39 2B 00 00 00 00 00 FF 0F 79 [16:21:01]RasterBufferAndPrint [16:21:01]line Счет N : (1)1319483 [16:21:01]line ИНН: 02508201610067 [16:21:01]line Контрольно-Кассовый Чек [16:21:01]line ПРОДАЖА [16:21:01]line ТРК (МРК, ГНК) : 41 [16:21:01]line Товар: 2710194210 [16:21:01]line ДТ(л)-К-5 [16:21:01]line 13.780 * 72.60 [16:21:01]line = 1000.43 [16:21:01]line НДС 12% НСП 1% [16:21:01]line > о реализуемом товаре [16:21:01]line ОКРУГЛЕНИЕ: -0.43 [16:21:01]line ИТОГО: 1000.00 [16:21:01]line Внесено: 1000.00 [16:21:01]line СДАЧА: 0.00 [16:21:01]line НСП 1% : 8.85 [16:21:01]line НДС 12% : 106.24 [16:21:01]line Наличными: 1000.00 [16:21:01]line Безнал.: 0.00 [16:21:01]line Место: АЗС № 140 "Партнер Нефть" [16:21:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:21:01]line СНО: Общий режим [16:21:01]line Чек 188 14.07.2024 16:21 [16:21:01]line Смена: 463 ФФД: 1.0 [16:21:01]line ЗНМ: 0300000129 [16:21:01]line РНМ: 0000000000090858 [16:21:01]line Версия ККМ: 001 [16:21:01]line ФМ: 0000000000874899 [16:21:01]line ФД: 162876 [16:21:01]line ФПД: 243280127309916 [16:21:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162101&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162876&fm=243280127309916&tin=02508201610067®Number=0000000000090858&sum=100000 [16:21:02]OFD Sender: Processing packet 162876 [packets to send 106, broken 105] [16:21:02]ProducePacketName [16:21:02]name=ofd_packets/00162876 [16:21:02]OFD Sender: To server: pG, [16:21:02]CommunicateWithHost lk.salyk.kg:30040 [16:21:02]ConnectInit lk.salyk.kg [16:21:02]written 0, free lines is 4095 [16:21:02]Connected sock=10 [16:21:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 7F 6F 08 01 1B FA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 ED FA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7C 02 00 35 04 06 00 DD 43 11 91 B8 5C F1 D5 22 07 C8 E6 0D 50 [16:21:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 85 43 47 00 A5 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7C 02 00 F4 03 04 00 FB A6 93 66 B6 04 01 00 00 7F B2 9B C9 F1 9E 4E 53 [16:21:02]CommunicateWithHost err = 0 [16:21:02]CheckOFDResponse [16:21:02]1017 (14) - 77093643461234 [16:21:02]1041 (16) - 0000000000874899 [16:21:02]1040 (4) - 162876 [16:21:02]1012 (4) - 14.07.2024 10:22 [16:21:02]1206 (1) - 0 [16:21:02]OFD Sender: Remove packet 162876 [16:21:02]ProducePacketName [16:21:02]name=ofd_packets/00162876 [16:21:02]NVStorageDeleteData [16:21:02]Write to MH i2c: 01 00 00 64 2B 8F [16:21:02]Write i2c OK [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: 01 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: 01 07 00 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: 01 07 00 64 2B 00 00 00 00 00 E0 0C 82 [16:21:02]RasterBufferAndPrint [16:21:02]line [16:21:02]line [16:21:02]line [16:21:02]line [16:21:02]line [16:21:02]written 0, free lines is 3305 [16:21:02]MH_Cut [16:21:02]Write to MH i2c: D1 01 00 6B 2B 01 68 [16:21:02]Write i2c OK [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: D1 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: D1 01 00 [16:21:02]MH_I2C_Read... [16:21:02]Read from MH i2c: D1 01 00 6B 2B 00 67 [16:21:02]Write to MH i2c: 01 00 00 6C 2B 97 [16:21:02]Write i2c OK [16:21:02]MH_I2C_Read... [16:21:02]OFD Sender: No OFD packet to send [16:21:03]*** Cut start [16:21:03]*** Purtial cut [16:21:03]*** Stage 1: CUTSNS_PIN = 1 [16:21:03]Read from MH i2c: 01 [16:21:03]MH_I2C_Read... [16:21:03]*** Stop cut motor [16:21:03]*** Cut end [16:21:03]Read from MH i2c: 01 07 00 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: 01 07 00 6C 2B 00 00 00 00 00 FF 0F AC [16:21:03]process_action close_receipt done [16:21:03]requested_data is exist [16:21:03]produce_requested_data [16:21:03]requested_item fm.sn is exist - process it [16:21:03]wFMCommunicate request_size=4 [16:21:03]MH_SAM_APDU [16:21:03]CAPDU: 80 11 00 00 [16:21:03]Write to MH i2c: E2 08 00 6D 2B 80 11 00 00 00 00 00 00 12 [16:21:03]Write i2c OK [16:21:03]MH_I2C_Read... [16:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:03]Read from MH i2c: E2 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 17 00 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 17 00 6D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 72 [16:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:21:03]wFMCommunicate OK [16:21:03]requested_item fd.num is exist - process it [16:21:03]SAM_PROTO_GetFieldsCounters [16:21:03]wFMCommunicate request_size=4 [16:21:03]MH_SAM_APDU [16:21:03]CAPDU: 80 13 00 00 [16:21:03]Write to MH i2c: E2 08 00 6E 2B 80 13 00 00 00 00 00 00 15 [16:21:03]Write i2c OK [16:21:03]MH_I2C_Read... [16:21:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:03]Read from MH i2c: E2 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 62 00 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 62 00 6E 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3C 7C 02 00 0E 04 04 00 CF 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 06 [16:21:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3C 7C 02 00 0E 04 04 00 CF 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 [16:21:03]wFMCommunicate OK [16:21:03]SAM_PROTO_GetFieldsCounters done [16:21:03]requested_item shift.num is exist - process it [16:21:03]requested_item shift.opened is exist - process it [16:21:03]req_shift_opened [16:21:03]FM_GetShiftState [16:21:03]SAM_PROTO_GetShiftState [16:21:03]wFMCommunicate request_size=4 [16:21:03]MH_SAM_APDU [16:21:03]CAPDU: 80 13 01 00 [16:21:03]Write to MH i2c: E2 08 00 6F 2B 80 13 01 00 00 00 00 00 17 [16:21:03]Write i2c OK [16:21:03]MH_I2C_Read... [16:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:03]Read from MH i2c: E2 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 0E 00 [16:21:03]MH_I2C_Read... [16:21:03]Read from MH i2c: E2 0E 00 6F 2B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4D [16:21:03]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:21:03]wFMCommunicate OK [16:21:03]SAM_PROTO_GetShiftState done [16:21:03]FM_GetShiftState done [16:21:03]req_shift_opened done [16:21:03]requested_item shift.open_date is exist - process it [16:21:03]req_shift_open_date [16:21:03]req_shift_open_date done [16:21:03]produce_requested_data done [16:21:03]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162876,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:21:03]process_action_free close_receipt [16:21:03]json_value_free [16:21:03]json_value_free done [16:21:03]process_json_proto returns [16:21:03]Send response to host [16:21:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162876,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:21:03]free response buf [16:21:03]execute_script done [16:21:03]execute_script returns [16:21:03]free content buf [16:21:03]Sock 7.Close socket [16:21:03]Sock 7.Thread stoped [16:21:04]accept exits with 9 [16:21:04]New connection [16:21:04]New thread 3066879332 created [16:21:04]Thread 3066735972 joined [16:21:04]Waiting for new connection... [16:21:04] Sock 9.Parse request [16:21:04]Sock 9.Check first char [16:21:04]Sock 9.First char is OK [16:21:04]request: POST /json_proto HTTP/1.0 [16:21:04]Method: POST [16:21:04]URL: /json_proto [16:21:04]Method is POST - this is cgi request [16:21:04]url: /json_proto [16:21:04]query_string will be loaded in cgi processing [16:21:04]execute_cgi json_proto POST (null) [16:21:04]execute_cgi path=json_proto method=POST [16:21:04]POST find Content-Length [16:21:04]Host: 172.17.39.67:8080 [16:21:04]Content-Length: 688 [16:21:04]Content-Type: application/json [16:21:04] [16:21:04]POST finish read [16:21:04]Found Content-Length = 688 [16:21:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.120, "sum" : 1460.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1460.00, "total" : 1460.00, "payments": [ { "type": 0, "sum" : 1460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:04]execute_script... [16:21: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)1319482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.120, "sum" : 1460.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1460.00, "total" : 1460.00, "payments": [ { "type": 0, "sum" : 1460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:04]POST & json_proto [16:21:04]process_json_proto [16:21:04]json parsed OK: [16:21:04]protocol is kg_v1.0 [16:21:04]action value=close_receipt [16:21:04]process_action close_receipt [16:21:04]cmd_close_receipt [16:21:04]MH_GetDate [16:21:04]Write to MH i2c: F0 00 00 70 2B 8A [16:21:04]Write i2c OK [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: F0 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: F0 09 00 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: F0 09 00 70 2B 00 F2 FA 93 66 B6 85 93 66 AC [16:21:04]GetLastDocTimeStamp 1720974061 [16:21:04]current date 1720974066 [16:21:04]FM_GetShiftState [16:21:04]SAM_PROTO_GetShiftState [16:21:04]wFMCommunicate request_size=4 [16:21:04]MH_SAM_APDU [16:21:04]CAPDU: 80 13 01 00 [16:21:04]Write to MH i2c: E2 08 00 71 2B 80 13 01 00 00 00 00 00 19 [16:21:04]Write i2c OK [16:21:04]MH_I2C_Read... [16:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:04]Read from MH i2c: E2 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 0E 00 [16:21:04]MH_I2C_Read... [16:21:04]Read from MH i2c: E2 0E 00 71 2B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4F [16:21:04]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:21:04]wFMCommunicate OK [16:21:04]SAM_PROTO_GetShiftState done [16:21:04]FM_GetShiftState done [16:21:04]opened in 1720915483 [16:21:04]opened+sec_in_day 1721001883 [16:21:04]quantity*price = 146071 [16:21:04]sum+1 = 146072 [16:21:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 1460.00 Внесено: 1460.00 СДАЧА: 0.00 НСП 1% : 12.93 НДС 12% : 155.12 Наличными: 1460.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 189 14.07.2024 16:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162877 ФПД: 106398209502233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162106&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162877&fm=106398209502233&tin=02508201610067®Number=0000000000090858&sum=146000 [16:21:05]StoreToDocumentArchive [16:21:05]shift 463 fd 162877 [16:21:05]save to /storage/0463/doc_00162877 [16:21:05]save last doc name /storage/0463/doc_00162877 to /storage/kkm_last_doc_name [16:21:05]save OK [16:21:05]Clear old archive folders... [16:21:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:21:05]tlvbuf is 01322C40 [16:21:05]SAM_PROTO_ClearQueue [16:21:05]wFMCommunicate request_size=4 [16:21:05]MH_SAM_APDU [16:21:05]CAPDU: 80 09 00 00 [16:21:05]Write to MH i2c: E2 08 00 7E 2B 80 09 00 00 00 00 00 00 1B [16:21:05]Write i2c OK [16:21:05]MH_I2C_Read... [16:21:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:05]Read from MH i2c: E2 [16:21:05]MH_I2C_Read... [16:21:05]Read from MH i2c: E2 03 00 [16:21:05]MH_I2C_Read... [16:21:05]Read from MH i2c: E2 03 00 7E 2B 00 90 00 1D [16:21:05]RAPDU: 90 00 [16:21:05]wFMCommunicate OK [16:21:05]SAM_PROTO_ClearQueue done [16:21:05]KKMCreateOFDPacket [16:21:05]OFDProtocolAddRootSTLVToBuf [16:21:05]FM_MakeSignedData [16:21:05]FM_MakeSignedData [16:21:05]SAM_PROTO_SignData [16:21:05]wFMCommunicate request_size=4 [16:21:05]MH_SAM_APDU [16:21:05]CAPDU: 80 0D 01 02 [16:21:05]Write to MH i2c: E2 08 00 7F 2B 80 0D 01 02 00 00 00 00 23 [16:21:05]Write i2c OK [16:21:05]MH_I2C_Read... [16:21:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:05]Read from MH i2c: E2 [16:21:05]MH_I2C_Read... [16:21:05]Read from MH i2c: E2 03 00 [16:21:05]MH_I2C_Read... [16:21:05]Read from MH i2c: E2 03 00 7F 2B 00 90 00 1E [16:21:05]RAPDU: 90 00 [16:21:05]wFMCommunicate OK [16:21:05]wFMCommunicate request_size=255 [16:21:05]MH_SAM_APDU [16:21:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 97 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 3C 00 00 00 00 07 04 06 00 50 3A 02 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 F2 FA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7C 02 00 35 04 06 00 [16:21:05]Write to MH i2c: E2 02 01 80 2B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 97 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 3C 00 00 00 00 07 04 06 00 50 3A 02 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 F2 FA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7C 02 00 35 04 06 00 00 00 D6 [16:21:05]Write i2c OK [16:21:05]MH_I2C_Read... [16:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:06]Read from MH i2c: E2 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 03 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 03 00 80 2B 00 90 00 1F [16:21:06]RAPDU: 90 00 [16:21:06]wFMCommunicate OK [16:21:06]wFMCommunicate request_size=11 [16:21:06]MH_SAM_APDU [16:21:06]CAPDU: 80 0D 02 02 06 60 C4 C3 7B 6C 19 [16:21:06]Write to MH i2c: E2 0E 00 81 2B 80 0D 02 02 06 00 60 C4 C3 7B 6C 19 00 00 19 [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:06]Read from MH i2c: E2 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 03 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 03 00 81 2B 00 90 00 20 [16:21:06]RAPDU: 90 00 [16:21:06]wFMCommunicate OK [16:21:06]wFMCommunicate request_size=4 [16:21:06]MH_SAM_APDU [16:21:06]CAPDU: 80 0D 03 02 [16:21:06]Write to MH i2c: E2 08 00 82 2B 80 0D 03 02 00 00 00 00 28 [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:06]Read from MH i2c: E2 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 0B 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 0B 00 82 2B 00 B6 AF AD 92 24 92 0E 5C 90 00 ED [16:21:06]RAPDU: B6 AF AD 92 24 92 0E 5C 90 00 [16:21:06]wFMCommunicate OK [16:21:06]SAM_PROTO_SignData done [16:21:06]FM_MakeSignedData done [16:21:06]CreateOFDProtocolMessage [16:21:06]wFMCommunicate request_size=4 [16:21:06]MH_SAM_APDU [16:21:06]CAPDU: 80 11 00 00 [16:21:06]Write to MH i2c: E2 08 00 83 2B 80 11 00 00 00 00 00 00 28 [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:06]Read from MH i2c: E2 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 17 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: E2 17 00 83 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 88 [16:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:21:06]wFMCommunicate OK [16:21:06]CreateOFDProtocolMessage done [16:21:06]OFDSenderStorePacket 162877 [16:21:06]StoreOFDPacket docnum=162877 [16:21:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 95 0D 08 01 DA 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 97 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 3C 00 00 00 00 07 04 06 00 50 3A 02 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 F2 FA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7C 02 00 35 04 06 00 60 C4 C3 7B 6C 19 B6 AF AD 92 24 92 0E 5C [16:21:06]CheckFolder [16:21:06]dirname=/storage/ofd_packets [16:21:06]CheckFolder done [16:21:06]ProducePacketName [16:21:06]name=ofd_packets/00162877 [16:21:06]NVStorageSaveData ofd_packets/00162877 [16:21:06]File name is /storage/ofd_packets/00162877 [16:21:06]Write 302 bytes [16:21:06]NVStorageSaveData done [16:21:06]OFDSenderStorePacket done [16:21:06]KKMCreateOFDPacket done [16:21:06]NVStorageSaveData kkm_last_timestamp [16:21:06]File name is /storage/kkm_last_timestamp [16:21:06]Write 4 bytes [16:21:06]NVStorageSaveData done [16:21:06]ExternCall_PrintAddStr [16:21:06]wPrintStart [16:21:06]Write to MH i2c: 01 00 00 84 2B AF [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: 01 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: 01 07 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: 01 07 00 84 2B 00 00 00 00 00 FF 0F C4 [16:21:06]RasterBufferAndPrint [16:21:06]line Счет N : (1)1319482 [16:21:06]line ИНН: 02508201610067 [16:21:06]line Контрольно-Кассовый Чек [16:21:06]line ПРОДАЖА [16:21:06]line ТРК (МРК, ГНК) : 21 [16:21:06]line Товар: 2710194210 [16:21:06]line ДТ(л)-К-5 [16:21:06]line 20.120 * 72.60 [16:21:06]line = 1460.71 [16:21:06]line НДС 12% НСП 1% [16:21:06]line > о реализуемом товаре [16:21:06]line ОКРУГЛЕНИЕ: -0.71 [16:21:06]line ИТОГО: 1460.00 [16:21:06]line Внесено: 1460.00 [16:21:06]line СДАЧА: 0.00 [16:21:06]line НСП 1% : 12.93 [16:21:06]line НДС 12% : 155.12 [16:21:06]line Наличными: 1460.00 [16:21:06]line Безнал.: 0.00 [16:21:06]line Место: АЗС № 140 "Партнер Нефть" [16:21:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:21:06]line СНО: Общий режим [16:21:06]line Чек 189 14.07.2024 16:21 [16:21:06]line Смена: 463 ФФД: 1.0 [16:21:06]line ЗНМ: 0300000129 [16:21:06]line РНМ: 0000000000090858 [16:21:06]line Версия ККМ: 001 [16:21:06]line ФМ: 0000000000874899 [16:21:06]line ФД: 162877 [16:21:06]line ФПД: 106398209502233 [16:21:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162106&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162877&fm=106398209502233&tin=02508201610067®Number=0000000000090858&sum=146000 [16:21:06]OFD Sender: Processing packet 162877 [packets to send 106, broken 105] [16:21:06]ProducePacketName [16:21:06]name=ofd_packets/00162877 [16:21:06]OFD Sender: To server: pG, [16:21:06]CommunicateWithHost lk.salyk.kg:30040 [16:21:06]ConnectInit lk.salyk.kg [16:21:06]written 0, free lines is 4095 [16:21:06]Connected sock=10 [16:21:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 95 0D 08 01 DA 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 97 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 3C 00 00 00 00 07 04 06 00 50 3A 02 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 F2 FA 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7C 02 00 35 04 06 00 60 C4 C3 7B 6C 19 B6 AF AD 92 24 92 0E 5C [16:21:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6C 74 47 00 9B F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7C 02 00 F4 03 04 00 FF A6 93 66 B6 04 01 00 00 84 E9 7B AF 7C 84 19 38 [16:21:06]CommunicateWithHost err = 0 [16:21:06]CheckOFDResponse [16:21:06]1017 (14) - 77093643461234 [16:21:06]1041 (16) - 0000000000874899 [16:21:06]1040 (4) - 162877 [16:21:06]1012 (4) - 14.07.2024 10:22 [16:21:06]1206 (1) - 0 [16:21:06]OFD Sender: Remove packet 162877 [16:21:06]ProducePacketName [16:21:06]name=ofd_packets/00162877 [16:21:06]NVStorageDeleteData [16:21:06]Write to MH i2c: 01 00 00 AF 2B DA [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: 01 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: 01 07 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: 01 07 00 AF 2B 00 00 00 00 00 FC 0C E9 [16:21:06]RasterBufferAndPrint [16:21:06]line [16:21:06]line [16:21:06]line [16:21:06]line [16:21:06]line [16:21:06]written 0, free lines is 3339 [16:21:06]MH_Cut [16:21:06]Write to MH i2c: D1 01 00 B6 2B 01 B3 [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: D1 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: D1 01 00 [16:21:06]MH_I2C_Read... [16:21:06]Read from MH i2c: D1 01 00 B6 2B 00 B2 [16:21:06]Write to MH i2c: 01 00 00 B7 2B E2 [16:21:06]Write i2c OK [16:21:06]MH_I2C_Read... [16:21:07]OFD Sender: No OFD packet to send [16:21:07]*** Cut start [16:21:07]*** Purtial cut [16:21:07]*** CUTSNS_PIN = 0 [16:21:07]*** Stage 1: CUTSNS_PIN = 1 [16:21:09]Read from MH i2c: 01 [16:21:09]MH_I2C_Read... [16:21:09]*** Stop cut motor [16:21:09]*** Cut end [16:21:09]Read from MH i2c: 01 07 00 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: 01 07 00 B7 2B 00 00 00 00 00 FF 0F F7 [16:21:09]process_action close_receipt done [16:21:09]requested_data is exist [16:21:09]produce_requested_data [16:21:09]requested_item fm.sn is exist - process it [16:21:09]wFMCommunicate request_size=4 [16:21:09]MH_SAM_APDU [16:21:09]CAPDU: 80 11 00 00 [16:21:09]Write to MH i2c: E2 08 00 B8 2B 80 11 00 00 00 00 00 00 5D [16:21:09]Write i2c OK [16:21:09]MH_I2C_Read... [16:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:09]Read from MH i2c: E2 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 17 00 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 17 00 B8 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BD [16:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:21:09]wFMCommunicate OK [16:21:09]requested_item fd.num is exist - process it [16:21:09]SAM_PROTO_GetFieldsCounters [16:21:09]wFMCommunicate request_size=4 [16:21:09]MH_SAM_APDU [16:21:09]CAPDU: 80 13 00 00 [16:21:09]Write to MH i2c: E2 08 00 B9 2B 80 13 00 00 00 00 00 00 60 [16:21:09]Write i2c OK [16:21:09]MH_I2C_Read... [16:21:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:09]Read from MH i2c: E2 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 62 00 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 62 00 B9 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3D 7C 02 00 0E 04 04 00 CF 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 55 [16:21:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3D 7C 02 00 0E 04 04 00 CF 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 [16:21:09]wFMCommunicate OK [16:21:09]SAM_PROTO_GetFieldsCounters done [16:21:09]requested_item shift.num is exist - process it [16:21:09]requested_item shift.opened is exist - process it [16:21:09]req_shift_opened [16:21:09]FM_GetShiftState [16:21:09]SAM_PROTO_GetShiftState [16:21:09]wFMCommunicate request_size=4 [16:21:09]MH_SAM_APDU [16:21:09]CAPDU: 80 13 01 00 [16:21:09]Write to MH i2c: E2 08 00 BA 2B 80 13 01 00 00 00 00 00 62 [16:21:09]Write i2c OK [16:21:09]MH_I2C_Read... [16:21:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:09]Read from MH i2c: E2 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 0E 00 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 0E 00 BA 2B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 98 [16:21:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:21:09]wFMCommunicate OK [16:21:09]SAM_PROTO_GetShiftState done [16:21:09]FM_GetShiftState done [16:21:09]req_shift_opened done [16:21:09]requested_item shift.open_date is exist - process it [16:21:09]req_shift_open_date [16:21:09]req_shift_open_date done [16:21:09]produce_requested_data done [16:21:09]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162877,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:21:09]process_action_free close_receipt [16:21:09]json_value_free [16:21:09]json_value_free done [16:21:09]process_json_proto returns [16:21:09]Send response to host [16:21:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162877,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:21:09]free response buf [16:21:09]execute_script done [16:21:09]execute_script returns [16:21:09]free content buf [16:21:09]Sock 9.Close socket [16:21:09]Sock 9.Thread stoped [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:11]accept exits with 7 [16:22:11]New connection [16:22:11]New thread 3066735972 created [16:22:11]Thread 3066879332 joined [16:22:11]Waiting for new connection... [16:22:11] Sock 7.Parse request [16:22:11]Sock 7.Check first char [16:22:11]Sock 7.First char is OK [16:22:11]request: POST /json_proto HTTP/1.0 [16:22:11]Method: POST [16:22:11]URL: /json_proto [16:22:11]Method is POST - this is cgi request [16:22:11]url: /json_proto [16:22:11]query_string will be loaded in cgi processing [16:22:11]execute_cgi json_proto POST (null) [16:22:11]execute_cgi path=json_proto method=POST [16:22:11]POST find Content-Length [16:22:11]Host: 172.17.39.67:8080 [16:22:11]Content-Length: 672 [16:22:11]Content-Type: application/json [16:22:11] [16:22:11]POST finish read [16:22:11]Found Content-Length = 672 [16:22:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.410, "sum" : 700.59, "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" ] } } [16:22:11]execute_script... [16:22: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)1319484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.410, "sum" : 700.59, "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" ] } } [16:22:11]POST & json_proto [16:22:11]process_json_proto [16:22:11]json parsed OK: [16:22:11]protocol is kg_v1.0 [16:22:11]action value=close_receipt [16:22:11]process_action close_receipt [16:22:11]cmd_close_receipt [16:22:11]MH_GetDate [16:22:11]Write to MH i2c: F0 00 00 BB 2B D5 [16:22:11]Write i2c OK [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: F0 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: F0 09 00 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: F0 09 00 BB 2B 00 35 FB 93 66 B6 85 93 66 3B [16:22:11]GetLastDocTimeStamp 1720974066 [16:22:11]current date 1720974133 [16:22:11]FM_GetShiftState [16:22:11]SAM_PROTO_GetShiftState [16:22:11]wFMCommunicate request_size=4 [16:22:11]MH_SAM_APDU [16:22:11]CAPDU: 80 13 01 00 [16:22:11]Write to MH i2c: E2 08 00 BC 2B 80 13 01 00 00 00 00 00 64 [16:22:11]Write i2c OK [16:22:11]MH_I2C_Read... [16:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:11]Read from MH i2c: E2 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: E2 0E 00 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: E2 0E 00 BC 2B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9A [16:22:11]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:22:11]wFMCommunicate OK [16:22:11]SAM_PROTO_GetShiftState done [16:22:11]FM_GetShiftState done [16:22:11]opened in 1720915483 [16:22:11]opened+sec_in_day 1721001883 [16:22:11]quantity*price = 70059 [16:22:11]sum+1 = 70060 [16:22:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 190 14.07.2024 16:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162878 ФПД: 88410517504315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162213&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162878&fm=88410517504315&tin=02508201610067®Number=0000000000090858&sum=70000 [16:22:12]StoreToDocumentArchive [16:22:12]shift 463 fd 162878 [16:22:12]save to /storage/0463/doc_00162878 [16:22:12]save last doc name /storage/0463/doc_00162878 to /storage/kkm_last_doc_name [16:22:12]save OK [16:22:12]Clear old archive folders... [16:22:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:22:12]tlvbuf is 01368F90 [16:22:12]SAM_PROTO_ClearQueue [16:22:12]wFMCommunicate request_size=4 [16:22:12]MH_SAM_APDU [16:22:12]CAPDU: 80 09 00 00 [16:22:12]Write to MH i2c: E2 08 00 C9 2B 80 09 00 00 00 00 00 00 66 [16:22:12]Write i2c OK [16:22:12]MH_I2C_Read... [16:22:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:12]Read from MH i2c: E2 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 03 00 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 03 00 C9 2B 00 90 00 68 [16:22:12]RAPDU: 90 00 [16:22:12]wFMCommunicate OK [16:22:12]SAM_PROTO_ClearQueue done [16:22:12]KKMCreateOFDPacket [16:22:12]OFDProtocolAddRootSTLVToBuf [16:22:12]FM_MakeSignedData [16:22:12]FM_MakeSignedData [16:22:12]SAM_PROTO_SignData [16:22:12]wFMCommunicate request_size=4 [16:22:12]MH_SAM_APDU [16:22:12]CAPDU: 80 0D 01 02 [16:22:12]Write to MH i2c: E2 08 00 CA 2B 80 0D 01 02 00 00 00 00 6E [16:22:12]Write i2c OK [16:22:12]MH_I2C_Read... [16:22:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:12]Read from MH i2c: E2 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 03 00 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 03 00 CA 2B 00 90 00 69 [16:22:12]RAPDU: 90 00 [16:22:12]wFMCommunicate OK [16:22:12]wFMCommunicate request_size=255 [16:22:12]MH_SAM_APDU [16:22:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 35 FB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7C 02 00 35 04 06 00 [16:22:12]Write to MH i2c: E2 02 01 CB 2B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 35 FB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7C 02 00 35 04 06 00 00 00 B9 [16:22:12]Write i2c OK [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 [16:22:12]MH_I2C_Read... [16:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:12]Read from MH i2c: E2 03 00 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 03 00 CB 2B 00 90 00 6A [16:22:12]RAPDU: 90 00 [16:22:12]wFMCommunicate OK [16:22:12]wFMCommunicate request_size=11 [16:22:12]MH_SAM_APDU [16:22:12]CAPDU: 80 0D 02 02 06 50 68 AD 7D 81 3B [16:22:12]Write to MH i2c: E2 0E 00 CC 2B 80 0D 02 02 06 00 50 68 AD 7D 81 3B 00 00 1B [16:22:12]Write i2c OK [16:22:12]MH_I2C_Read... [16:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:12]Read from MH i2c: E2 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 03 00 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 03 00 CC 2B 00 90 00 6B [16:22:12]RAPDU: 90 00 [16:22:12]wFMCommunicate OK [16:22:12]wFMCommunicate request_size=4 [16:22:12]MH_SAM_APDU [16:22:12]CAPDU: 80 0D 03 02 [16:22:12]Write to MH i2c: E2 08 00 CD 2B 80 0D 03 02 00 00 00 00 73 [16:22:12]Write i2c OK [16:22:12]MH_I2C_Read... [16:22:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:13]Read from MH i2c: E2 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: E2 0B 00 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: E2 0B 00 CD 2B 00 39 85 FB B9 29 7B 26 F1 90 00 A1 [16:22:13]RAPDU: 39 85 FB B9 29 7B 26 F1 90 00 [16:22:13]wFMCommunicate OK [16:22:13]SAM_PROTO_SignData done [16:22:13]FM_MakeSignedData done [16:22:13]CreateOFDProtocolMessage [16:22:13]wFMCommunicate request_size=4 [16:22:13]MH_SAM_APDU [16:22:13]CAPDU: 80 11 00 00 [16:22:13]Write to MH i2c: E2 08 00 CE 2B 80 11 00 00 00 00 00 00 73 [16:22:13]Write i2c OK [16:22:13]MH_I2C_Read... [16:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:13]Read from MH i2c: E2 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: E2 17 00 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: E2 17 00 CE 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D3 [16:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:22:13]wFMCommunicate OK [16:22:13]CreateOFDProtocolMessage done [16:22:13]OFDSenderStorePacket 162878 [16:22:13]StoreOFDPacket docnum=162878 [16:22:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 2C F0 08 01 FE 5D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 35 FB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7C 02 00 35 04 06 00 50 68 AD 7D 81 3B 39 85 FB B9 29 7B 26 F1 [16:22:13]CheckFolder [16:22:13]dirname=/storage/ofd_packets [16:22:13]CheckFolder done [16:22:13]ProducePacketName [16:22:13]name=ofd_packets/00162878 [16:22:13]NVStorageSaveData ofd_packets/00162878 [16:22:13]File name is /storage/ofd_packets/00162878 [16:22:13]Write 302 bytes [16:22:13]NVStorageSaveData done [16:22:13]OFDSenderStorePacket done [16:22:13]KKMCreateOFDPacket done [16:22:13]NVStorageSaveData kkm_last_timestamp [16:22:13]File name is /storage/kkm_last_timestamp [16:22:13]Write 4 bytes [16:22:13]NVStorageSaveData done [16:22:13]ExternCall_PrintAddStr [16:22:13]wPrintStart [16:22:13]Write to MH i2c: 01 00 00 CF 2B FA [16:22:13]Write i2c OK [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: 01 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: 01 07 00 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: 01 07 00 CF 2B 00 00 00 00 00 FF 0F 0F [16:22:13]RasterBufferAndPrint [16:22:13]line Счет N : (1)1319484 [16:22:13]line ИНН: 02508201610067 [16:22:13]line Контрольно-Кассовый Чек [16:22:13]line ПРОДАЖА [16:22:13]line ТРК (МРК, ГНК) : 52 [16:22:13]line Товар: 2710124130 [16:22:13]line Super-92-К-5 [16:22:13]line 10.410 * 67.30 [16:22:13]line = 700.59 [16:22:13]line НДС 12% НСП 1% [16:22:13]line > о реализуемом товаре [16:22:13]line ОКРУГЛЕНИЕ: -0.59 [16:22:13]line ИТОГО: 700.00 [16:22:13]line Внесено: 700.00 [16:22:13]line СДАЧА: 0.00 [16:22:13]line НСП 1% : 6.20 [16:22:13]line НДС 12% : 74.40 [16:22:13]line Наличными: 700.00 [16:22:13]line Безнал.: 0.00 [16:22:13]line Место: АЗС № 140 "Партнер Нефть" [16:22:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:22:13]line СНО: Общий режим [16:22:13]line Чек 190 14.07.2024 16:22 [16:22:13]line Смена: 463 ФФД: 1.0 [16:22:13]line ЗНМ: 0300000129 [16:22:13]line РНМ: 0000000000090858 [16:22:13]line Версия ККМ: 001 [16:22:13]line ФМ: 0000000000874899 [16:22:13]line ФД: 162878 [16:22:13]line ФПД: 88410517504315 [16:22:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162213&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162878&fm=88410517504315&tin=02508201610067®Number=0000000000090858&sum=70000 [16:22:13]OFD Sender: Processing packet 162878 [packets to send 106, broken 105] [16:22:13]ProducePacketName [16:22:13]name=ofd_packets/00162878 [16:22:13]OFD Sender: To server: pG, [16:22:13]CommunicateWithHost lk.salyk.kg:30040 [16:22:13]ConnectInit lk.salyk.kg [16:22:13]written 0, free lines is 4095 [16:22:13]Connected sock=10 [16:22:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 2C F0 08 01 FE 5D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 35 FB 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7C 02 00 35 04 06 00 50 68 AD 7D 81 3B 39 85 FB B9 29 7B 26 F1 [16:22:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FE CB 47 00 44 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7C 02 00 F4 03 04 00 42 A7 93 66 B6 04 01 00 00 34 16 94 D4 DC 05 17 77 [16:22:13]CommunicateWithHost err = 0 [16:22:13]CheckOFDResponse [16:22:13]1017 (14) - 77093643461234 [16:22:13]1041 (16) - 0000000000874899 [16:22:13]1040 (4) - 162878 [16:22:13]1012 (4) - 14.07.2024 10:24 [16:22:13]1206 (1) - 0 [16:22:13]OFD Sender: Remove packet 162878 [16:22:13]ProducePacketName [16:22:13]name=ofd_packets/00162878 [16:22:13]NVStorageDeleteData [16:22:13]Write to MH i2c: 01 00 00 FA 2B 25 [16:22:13]Write i2c OK [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: 01 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: 01 07 00 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: 01 07 00 FA 2B 00 00 00 00 00 E2 0C 1A [16:22:13]RasterBufferAndPrint [16:22:13]line [16:22:13]line [16:22:13]line [16:22:13]line [16:22:13]line [16:22:13]written 0, free lines is 3304 [16:22:13]MH_Cut [16:22:13]Write to MH i2c: D1 01 00 01 2C 01 FF [16:22:13]Write i2c OK [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: D1 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: D1 01 00 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: D1 01 00 01 2C 00 FE [16:22:13]Write to MH i2c: 01 00 00 02 2C 2E [16:22:13]Write i2c OK [16:22:13]MH_I2C_Read... [16:22:14]OFD Sender: No OFD packet to send [16:22:14]*** Cut start [16:22:14]*** Purtial cut [16:22:14]*** Stage 1: CUTSNS_PIN = 1 [16:22:14]Read from MH i2c: 01 [16:22:14]MH_I2C_Read... [16:22:14]*** Stop cut motor [16:22:14]*** Cut end [16:22:14]Read from MH i2c: 01 07 00 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: 01 07 00 02 2C 00 00 00 00 00 FF 0F 43 [16:22:14]process_action close_receipt done [16:22:14]requested_data is exist [16:22:14]produce_requested_data [16:22:14]requested_item fm.sn is exist - process it [16:22:14]wFMCommunicate request_size=4 [16:22:14]MH_SAM_APDU [16:22:14]CAPDU: 80 11 00 00 [16:22:14]Write to MH i2c: E2 08 00 03 2C 80 11 00 00 00 00 00 00 A9 [16:22:14]Write i2c OK [16:22:14]MH_I2C_Read... [16:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:14]Read from MH i2c: E2 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 17 00 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 17 00 03 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 09 [16:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:22:14]wFMCommunicate OK [16:22:14]requested_item fd.num is exist - process it [16:22:14]SAM_PROTO_GetFieldsCounters [16:22:14]wFMCommunicate request_size=4 [16:22:14]MH_SAM_APDU [16:22:14]CAPDU: 80 13 00 00 [16:22:14]Write to MH i2c: E2 08 00 04 2C 80 13 00 00 00 00 00 00 AC [16:22:14]Write i2c OK [16:22:14]MH_I2C_Read... [16:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:15]Read from MH i2c: E2 [16:22:15]MH_I2C_Read... [16:22:15]Read from MH i2c: E2 62 00 [16:22:15]MH_I2C_Read... [16:22:15]Read from MH i2c: E2 62 00 04 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3E 7C 02 00 0E 04 04 00 CF 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 A5 [16:22:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3E 7C 02 00 0E 04 04 00 CF 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 [16:22:15]wFMCommunicate OK [16:22:15]SAM_PROTO_GetFieldsCounters done [16:22:15]requested_item shift.num is exist - process it [16:22:15]requested_item shift.opened is exist - process it [16:22:15]req_shift_opened [16:22:15]FM_GetShiftState [16:22:15]SAM_PROTO_GetShiftState [16:22:15]wFMCommunicate request_size=4 [16:22:15]MH_SAM_APDU [16:22:15]CAPDU: 80 13 01 00 [16:22:15]Write to MH i2c: E2 08 00 05 2C 80 13 01 00 00 00 00 00 AE [16:22:15]Write i2c OK [16:22:15]MH_I2C_Read... [16:22:15]Read from MH i2c: E2 [16:22:15]MH_I2C_Read... [16:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:15]Read from MH i2c: E2 0E 00 [16:22:15]MH_I2C_Read... [16:22:15]Read from MH i2c: E2 0E 00 05 2C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E4 [16:22:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:22:15]wFMCommunicate OK [16:22:15]SAM_PROTO_GetShiftState done [16:22:15]FM_GetShiftState done [16:22:15]req_shift_opened done [16:22:15]requested_item shift.open_date is exist - process it [16:22:15]req_shift_open_date [16:22:15]req_shift_open_date done [16:22:15]produce_requested_data done [16:22:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162878,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:22:15]process_action_free close_receipt [16:22:15]json_value_free [16:22:15]json_value_free done [16:22:15]process_json_proto returns [16:22:15]Send response to host [16:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162878,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:22:15]free response buf [16:22:15]execute_script done [16:22:15]execute_script returns [16:22:15]free content buf [16:22:15]Sock 7.Close socket [16:22:15]Sock 7.Thread stoped [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23: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: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]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:43]accept exits with 9 [16:26:43]New connection [16:26:43]New thread 3066879332 created [16:26:43]Thread 3066735972 joined [16:26:43]Waiting for new connection... [16:26:43] Sock 9.Parse request [16:26:43]Sock 9.Check first char [16:26:43]Sock 9.First char is OK [16:26:43]request: POST /json_proto HTTP/1.0 [16:26:43]Method: POST [16:26:43]URL: /json_proto [16:26:43]Method is POST - this is cgi request [16:26:43]url: /json_proto [16:26:43]query_string will be loaded in cgi processing [16:26:43]execute_cgi json_proto POST (null) [16:26:43]execute_cgi path=json_proto method=POST [16:26:43]POST find Content-Length [16:26:43]Host: 172.17.39.67:8080 [16:26:43]Content-Length: 678 [16:26:43]Content-Type: application/json [16:26:43] [16:26:43]POST finish read [16:26:43]Found Content-Length = 678 [16:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "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:26:43]execute_script... [16:26:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "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:26:43]POST & json_proto [16:26:43]process_json_proto [16:26:43]json parsed OK: [16:26:43]protocol is kg_v1.0 [16:26:43]action value=close_receipt [16:26:43]process_action close_receipt [16:26:43]cmd_close_receipt [16:26:43]MH_GetDate [16:26:43]Write to MH i2c: F0 00 00 06 2C 21 [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: F0 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: F0 09 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: F0 09 00 06 2C 00 45 FC 93 66 B6 85 93 66 98 [16:26:43]GetLastDocTimeStamp 1720974133 [16:26:43]current date 1720974405 [16:26:43]FM_GetShiftState [16:26:43]SAM_PROTO_GetShiftState [16:26:43]wFMCommunicate request_size=4 [16:26:43]MH_SAM_APDU [16:26:43]CAPDU: 80 13 01 00 [16:26:43]Write to MH i2c: E2 08 00 07 2C 80 13 01 00 00 00 00 00 B0 [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:43]Read from MH i2c: E2 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 0E 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 0E 00 07 2C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E6 [16:26:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:26:43]wFMCommunicate OK [16:26:43]SAM_PROTO_GetShiftState done [16:26:43]FM_GetShiftState done [16:26:43]opened in 1720915483 [16:26:43]opened+sec_in_day 1721001883 [16:26:43]quantity*price = 40045 [16:26:43]sum+1 = 40046 [16:26:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 191 14.07.2024 16:26 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162879 ФПД: 6173042578571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162645&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162879&fm=6173042578571&tin=02508201610067®Number=0000000000090858&sum=40000 [16:26:44]StoreToDocumentArchive [16:26:44]shift 463 fd 162879 [16:26:44]save to /storage/0463/doc_00162879 [16:26:44]save last doc name /storage/0463/doc_00162879 to /storage/kkm_last_doc_name [16:26:44]save OK [16:26:44]Clear old archive folders... [16:26:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:44]tlvbuf is B6F43500 [16:26:44]SAM_PROTO_ClearQueue [16:26:44]wFMCommunicate request_size=4 [16:26:44]MH_SAM_APDU [16:26:44]CAPDU: 80 09 00 00 [16:26:44]Write to MH i2c: E2 08 00 14 2C 80 09 00 00 00 00 00 00 B2 [16:26:44]Write i2c OK [16:26:44]MH_I2C_Read... [16:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:44]Read from MH i2c: E2 [16:26:44]MH_I2C_Read... [16:26:44]Read from MH i2c: E2 03 00 [16:26:44]MH_I2C_Read... [16:26:44]Read from MH i2c: E2 03 00 14 2C 00 90 00 B4 [16:26:44]RAPDU: 90 00 [16:26:44]wFMCommunicate OK [16:26:44]SAM_PROTO_ClearQueue done [16:26:44]KKMCreateOFDPacket [16:26:44]OFDProtocolAddRootSTLVToBuf [16:26:44]FM_MakeSignedData [16:26:44]FM_MakeSignedData [16:26:44]SAM_PROTO_SignData [16:26:44]wFMCommunicate request_size=4 [16:26:44]MH_SAM_APDU [16:26:44]CAPDU: 80 0D 01 02 [16:26:44]Write to MH i2c: E2 08 00 15 2C 80 0D 01 02 00 00 00 00 BA [16:26:44]Write i2c OK [16:26:44]MH_I2C_Read... [16:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:45]Read from MH i2c: E2 [16:26:45]MH_I2C_Read... [16:26:45]Read from MH i2c: E2 03 00 [16:26:45]MH_I2C_Read... [16:26:45]Read from MH i2c: E2 03 00 15 2C 00 90 00 B5 [16:26:45]RAPDU: 90 00 [16:26:45]wFMCommunicate OK [16:26:45]wFMCommunicate request_size=255 [16:26:45]MH_SAM_APDU [16:26:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 45 FC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7C 02 00 35 04 06 00 05 [16:26:45]Write to MH i2c: E2 02 01 16 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 45 FC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7C 02 00 35 04 06 00 05 00 00 E0 [16:26:45]Write i2c OK [16:26:45]MH_I2C_Read... [16:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:45]Read from MH i2c: E2 [16:26:45]MH_I2C_Read... [16:26:45]Read from MH i2c: E2 03 00 [16:26:45]MH_I2C_Read... [16:26:45]Read from MH i2c: E2 03 00 16 2C 00 90 00 B6 [16:26:45]RAPDU: 90 00 [16:26:45]wFMCommunicate OK [16:26:45]wFMCommunicate request_size=10 [16:26:45]MH_SAM_APDU [16:26:45]CAPDU: 80 0D 02 02 05 9D 46 02 94 8B [16:26:45]Write to MH i2c: E2 0D 00 17 2C 80 0D 02 02 05 00 9D 46 02 94 8B 00 00 CB [16:26:45]Write i2c OK [16:26:45]MH_I2C_Read... [16:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:45]Read from MH i2c: E2 [16:26:45]MH_I2C_Read... [16:26:45]Read from MH i2c: E2 03 00 [16:26:45]MH_I2C_Read... [16:26:45]Read from MH i2c: E2 03 00 17 2C 00 90 00 B7 [16:26:45]RAPDU: 90 00 [16:26:45]wFMCommunicate OK [16:26:45]wFMCommunicate request_size=4 [16:26:45]MH_SAM_APDU [16:26:45]CAPDU: 80 0D 03 02 [16:26:45]Write to MH i2c: E2 08 00 18 2C 80 0D 03 02 00 00 00 00 BF [16:26:45]Write i2c OK [16:26:45]MH_I2C_Read... [16:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:45]Read from MH i2c: E2 [16:26:45]MH_I2C_Read... [16:26:45]Read from MH i2c: E2 0B 00 [16:26:45]MH_I2C_Read... [16:26:45]Read from MH i2c: E2 0B 00 18 2C 00 57 91 BD 40 82 DD B8 AA 90 00 66 [16:26:45]RAPDU: 57 91 BD 40 82 DD B8 AA 90 00 [16:26:45]wFMCommunicate OK [16:26:45]SAM_PROTO_SignData done [16:26:45]FM_MakeSignedData done [16:26:45]CreateOFDProtocolMessage [16:26:45]wFMCommunicate request_size=4 [16:26:45]MH_SAM_APDU [16:26:45]CAPDU: 80 11 00 00 [16:26:45]Write to MH i2c: E2 08 00 19 2C 80 11 00 00 00 00 00 00 BF [16:26:45]Write i2c OK [16:26:45]MH_I2C_Read... [16:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:45]Read from MH i2c: E2 [16:26:45]MH_I2C_Read... [16:26:45]Read from MH i2c: E2 17 00 [16:26:45]MH_I2C_Read... [16:26:45]Read from MH i2c: E2 17 00 19 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1F [16:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:26:45]wFMCommunicate OK [16:26:45]CreateOFDProtocolMessage done [16:26:45]OFDSenderStorePacket 162879 [16:26:45]StoreOFDPacket docnum=162879 [16:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 95 59 07 01 D6 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 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 45 FC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7C 02 00 35 04 06 00 05 9D 46 02 94 8B 57 91 BD 40 82 DD B8 AA [16:26:45]CheckFolder [16:26:45]dirname=/storage/ofd_packets [16:26:45]CheckFolder done [16:26:45]ProducePacketName [16:26:45]name=ofd_packets/00162879 [16:26:45]NVStorageSaveData ofd_packets/00162879 [16:26:45]File name is /storage/ofd_packets/00162879 [16:26:45]Write 301 bytes [16:26:45]NVStorageSaveData done [16:26:45]OFDSenderStorePacket done [16:26:45]KKMCreateOFDPacket done [16:26:45]NVStorageSaveData kkm_last_timestamp [16:26:45]File name is /storage/kkm_last_timestamp [16:26:45]Write 4 bytes [16:26:45]NVStorageSaveData done [16:26:45]ExternCall_PrintAddStr [16:26:45]wPrintStart [16:26:45]Write to MH i2c: 01 00 00 1A 2C 46 [16:26:45]Write i2c OK [16:26:45]MH_I2C_Read... [16:26:45]Read from MH i2c: 01 [16:26:45]MH_I2C_Read... [16:26:45]Read from MH i2c: 01 07 00 [16:26:45]MH_I2C_Read... [16:26:45]Read from MH i2c: 01 07 00 1A 2C 00 00 00 00 00 FF 0F 5B [16:26:45]RasterBufferAndPrint [16:26:45]line Счет N : (1)1319485 [16:26:45]line ИНН: 02508201610067 [16:26:45]line Контрольно-Кассовый Чек [16:26:45]line ПРОДАЖА [16:26:45]line ТРК (МРК, ГНК) : 53 [16:26:45]line Товар: 2710124130 [16:26:45]line Аи-92-К-5 [16:26:45]line 6.040 * 66.30 [16:26:45]line = 400.45 [16:26:45]line НДС 12% НСП 1% [16:26:45]line > о реализуемом товаре [16:26:45]line ОКРУГЛЕНИЕ: -0.45 [16:26:45]line ИТОГО: 400.00 [16:26:45]line Внесено: 400.00 [16:26:45]line СДАЧА: 0.00 [16:26:45]line НСП 1% : 3.54 [16:26:45]line НДС 12% : 42.53 [16:26:45]line Наличными: 400.00 [16:26:45]line Безнал.: 0.00 [16:26:45]line Место: АЗС № 140 "Партнер Нефть" [16:26:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:26:45]line СНО: Общий режим [16:26:45]line Чек 191 14.07.2024 16:26 [16:26:45]line Смена: 463 ФФД: 1.0 [16:26:45]line ЗНМ: 0300000129 [16:26:45]line РНМ: 0000000000090858 [16:26:45]line Версия ККМ: 001 [16:26:45]line ФМ: 0000000000874899 [16:26:45]line ФД: 162879 [16:26:45]line ФПД: 6173042578571 [16:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162645&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162879&fm=6173042578571&tin=02508201610067®Number=0000000000090858&sum=40000 [16:26:45]OFD Sender: Processing packet 162879 [packets to send 106, broken 105] [16:26:45]ProducePacketName [16:26:45]name=ofd_packets/00162879 [16:26:45]OFD Sender: To server: pG, [16:26:45]CommunicateWithHost lk.salyk.kg:30040 [16:26:45]ConnectInit lk.salyk.kg [16:26:45]written 0, free lines is 4095 [16:26:45]Connected sock=10 [16:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 95 59 07 01 D6 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 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 45 FC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7C 02 00 35 04 06 00 05 9D 46 02 94 8B 57 91 BD 40 82 DD B8 AA [16:26:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 91 83 47 00 08 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7C 02 00 F4 03 04 00 52 A8 93 66 B6 04 01 00 00 6D 01 41 BF 11 B3 0A AF [16:26:46]CommunicateWithHost err = 0 [16:26:46]CheckOFDResponse [16:26:46]1017 (14) - 77093643461234 [16:26:46]1041 (16) - 0000000000874899 [16:26:46]1040 (4) - 162879 [16:26:46]1012 (4) - 14.07.2024 10:28 [16:26:46]1206 (1) - 0 [16:26:46]OFD Sender: Remove packet 162879 [16:26:46]ProducePacketName [16:26:46]name=ofd_packets/00162879 [16:26:46]NVStorageDeleteData [16:26:46]Write to MH i2c: 01 00 00 45 2C 71 [16:26:46]Write i2c OK [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: 01 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: 01 07 00 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: 01 07 00 45 2C 00 00 00 00 00 D7 0C 5B [16:26:46]RasterBufferAndPrint [16:26:46]line [16:26:46]line [16:26:46]line [16:26:46]line [16:26:46]line [16:26:46]written 0, free lines is 3295 [16:26:46]MH_Cut [16:26:46]Write to MH i2c: D1 01 00 4C 2C 01 4A [16:26:46]Write i2c OK [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: D1 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: D1 01 00 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: D1 01 00 4C 2C 00 49 [16:26:46]Write to MH i2c: 01 00 00 4D 2C 79 [16:26:46]Write i2c OK [16:26:46]MH_I2C_Read... [16:26:46]OFD Sender: No OFD packet to send [16:26:46]*** Cut start [16:26:46]*** Purtial cut [16:26:46]*** CUTSNS_PIN = 0 [16:26:47]*** Stage 1: CUTSNS_PIN = 1 [16:26:48]Read from MH i2c: 01 [16:26:48]MH_I2C_Read... [16:26:48]*** Stop cut motor [16:26:48]*** Cut end [16:26:48]Read from MH i2c: 01 07 00 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: 01 07 00 4D 2C 00 00 00 00 00 FF 0F 8E [16:26:49]process_action close_receipt done [16:26:49]requested_data is exist [16:26:49]produce_requested_data [16:26:49]requested_item fm.sn is exist - process it [16:26:49]wFMCommunicate request_size=4 [16:26:49]MH_SAM_APDU [16:26:49]CAPDU: 80 11 00 00 [16:26:49]Write to MH i2c: E2 08 00 4E 2C 80 11 00 00 00 00 00 00 F4 [16:26:49]Write i2c OK [16:26:49]MH_I2C_Read... [16:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:49]Read from MH i2c: E2 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 17 00 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 17 00 4E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 54 [16:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:26:49]wFMCommunicate OK [16:26:49]requested_item fd.num is exist - process it [16:26:49]SAM_PROTO_GetFieldsCounters [16:26:49]wFMCommunicate request_size=4 [16:26:49]MH_SAM_APDU [16:26:49]CAPDU: 80 13 00 00 [16:26:49]Write to MH i2c: E2 08 00 4F 2C 80 13 00 00 00 00 00 00 F7 [16:26:49]Write i2c OK [16:26:49]MH_I2C_Read... [16:26:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:49]Read from MH i2c: E2 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 62 00 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 62 00 4F 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [16:26:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:49]wFMCommunicate OK [16:26:49]SAM_PROTO_GetFieldsCounters done [16:26:49]requested_item shift.num is exist - process it [16:26:49]requested_item shift.opened is exist - process it [16:26:49]req_shift_opened [16:26:49]FM_GetShiftState [16:26:49]SAM_PROTO_GetShiftState [16:26:49]wFMCommunicate request_size=4 [16:26:49]MH_SAM_APDU [16:26:49]CAPDU: 80 13 01 00 [16:26:49]Write to MH i2c: E2 08 00 50 2C 80 13 01 00 00 00 00 00 F9 [16:26:49]Write i2c OK [16:26:49]MH_I2C_Read... [16:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:49]Read from MH i2c: E2 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 0E 00 [16:26:49]MH_I2C_Read... [16:26:49]Read from MH i2c: E2 0E 00 50 2C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2F [16:26:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:26:49]wFMCommunicate OK [16:26:49]SAM_PROTO_GetShiftState done [16:26:49]FM_GetShiftState done [16:26:49]req_shift_opened done [16:26:49]requested_item shift.open_date is exist - process it [16:26:49]req_shift_open_date [16:26:49]req_shift_open_date done [16:26:49]produce_requested_data done [16:26:49]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162879,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:26:49]process_action_free close_receipt [16:26:49]json_value_free [16:26:49]json_value_free done [16:26:49]process_json_proto returns [16:26:49]Send response to host [16:26:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162879,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:26:49]free response buf [16:26:49]execute_script done [16:26:49]execute_script returns [16:26:49]free content buf [16:26:49]Sock 9.Close socket [16:26:49]Sock 9.Thread stoped [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]accept exits with 7 [16:29:21]New connection [16:29:21]New thread 3066735972 created [16:29:21]Thread 3066879332 joined [16:29:21]Waiting for new connection... [16:29:21] Sock 7.Parse request [16:29:21]Sock 7.Check first char [16:29:21]Sock 7.First char is OK [16:29:21]request: POST /json_proto HTTP/1.0 [16:29:21]Method: POST [16:29:21]URL: /json_proto [16:29:21]Method is POST - this is cgi request [16:29:21]url: /json_proto [16:29:21]query_string will be loaded in cgi processing [16:29:21]execute_cgi json_proto POST (null) [16:29:21]execute_cgi path=json_proto method=POST [16:29:21]POST find Content-Length [16:29:21]Host: 172.17.39.67:8080 [16:29:21]Content-Length: 678 [16:29:21]Content-Type: application/json [16:29:21] [16:29:21]POST finish read [16:29:21]Found Content-Length = 678 [16:29:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.640, "sum" : 440.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:21]execute_script... [16:29: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)1319489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.640, "sum" : 440.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:21]POST & json_proto [16:29:21]process_json_proto [16:29:21]json parsed OK: [16:29:21]protocol is kg_v1.0 [16:29:21]action value=close_receipt [16:29:21]process_action close_receipt [16:29:21]cmd_close_receipt [16:29:21]MH_GetDate [16:29:21]Write to MH i2c: F0 00 00 51 2C 6C [16:29:21]Write i2c OK [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: F0 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: F0 09 00 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: F0 09 00 51 2C 00 E3 FC 93 66 B6 85 93 66 81 [16:29:21]GetLastDocTimeStamp 1720974405 [16:29:21]current date 1720974563 [16:29:21]FM_GetShiftState [16:29:21]SAM_PROTO_GetShiftState [16:29:21]wFMCommunicate request_size=4 [16:29:21]MH_SAM_APDU [16:29:21]CAPDU: 80 13 01 00 [16:29:21]Write to MH i2c: E2 08 00 52 2C 80 13 01 00 00 00 00 00 FB [16:29:21]Write i2c OK [16:29:21]MH_I2C_Read... [16:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:21]Read from MH i2c: E2 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 0E 00 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 0E 00 52 2C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 31 [16:29:21]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:29:21]wFMCommunicate OK [16:29:21]SAM_PROTO_GetShiftState done [16:29:21]FM_GetShiftState done [16:29:21]opened in 1720915483 [16:29:21]opened+sec_in_day 1721001883 [16:29:21]quantity*price = 44023 [16:29:21]sum+1 = 44024 [16:29:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.90 НДС 12% : 46.75 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 192 14.07.2024 16:29 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162880 ФПД: 87301198095373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162923&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162880&fm=87301198095373&tin=02508201610067®Number=0000000000090858&sum=44000 [16:29:22]StoreToDocumentArchive [16:29:22]shift 463 fd 162880 [16:29:22]save to /storage/0463/doc_00162880 [16:29:22]save last doc name /storage/0463/doc_00162880 to /storage/kkm_last_doc_name [16:29:22]save OK [16:29:22]Clear old archive folders... [16:29:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:22]tlvbuf is 01356730 [16:29:22]SAM_PROTO_ClearQueue [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 09 00 00 [16:29:22]Write to MH i2c: E2 08 00 5F 2C 80 09 00 00 00 00 00 00 FD [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 5F 2C 00 90 00 FF [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]SAM_PROTO_ClearQueue done [16:29:22]KKMCreateOFDPacket [16:29:22]OFDProtocolAddRootSTLVToBuf [16:29:22]FM_MakeSignedData [16:29:22]FM_MakeSignedData [16:29:22]SAM_PROTO_SignData [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 01 02 [16:29:22]Write to MH i2c: E2 08 00 60 2C 80 0D 01 02 00 00 00 00 05 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 60 2C 00 90 00 00 [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]wFMCommunicate request_size=255 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F7 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 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 E3 FC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7C 02 00 35 04 06 00 4F [16:29:22]Write to MH i2c: E2 02 01 61 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F7 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 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 E3 FC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7C 02 00 35 04 06 00 4F 00 00 32 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 61 2C 00 90 00 01 [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]wFMCommunicate request_size=10 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 02 02 05 66 64 E6 A4 0D [16:29:22]Write to MH i2c: E2 0D 00 62 2C 80 0D 02 02 05 00 66 64 E6 A4 0D 00 00 73 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 62 2C 00 90 00 02 [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 03 02 [16:29:22]Write to MH i2c: E2 08 00 63 2C 80 0D 03 02 00 00 00 00 0A [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 0B 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 0B 00 63 2C 00 70 33 19 94 0A A2 AB 44 90 00 F6 [16:29:22]RAPDU: 70 33 19 94 0A A2 AB 44 90 00 [16:29:22]wFMCommunicate OK [16:29:22]SAM_PROTO_SignData done [16:29:22]FM_MakeSignedData done [16:29:22]CreateOFDProtocolMessage [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 11 00 00 [16:29:22]Write to MH i2c: E2 08 00 64 2C 80 11 00 00 00 00 00 00 0A [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 17 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 17 00 64 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6A [16:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:29:22]wFMCommunicate OK [16:29:22]CreateOFDProtocolMessage done [16:29:22]OFDSenderStorePacket 162880 [16:29:22]StoreOFDPacket docnum=162880 [16:29:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 9A 18 07 01 30 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F7 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 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 E3 FC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7C 02 00 35 04 06 00 4F 66 64 E6 A4 0D 70 33 19 94 0A A2 AB 44 [16:29:22]CheckFolder [16:29:22]dirname=/storage/ofd_packets [16:29:22]CheckFolder done [16:29:22]ProducePacketName [16:29:22]name=ofd_packets/00162880 [16:29:22]NVStorageSaveData ofd_packets/00162880 [16:29:22]File name is /storage/ofd_packets/00162880 [16:29:22]Write 301 bytes [16:29:22]NVStorageSaveData done [16:29:22]OFDSenderStorePacket done [16:29:22]KKMCreateOFDPacket done [16:29:22]NVStorageSaveData kkm_last_timestamp [16:29:22]File name is /storage/kkm_last_timestamp [16:29:22]Write 4 bytes [16:29:22]NVStorageSaveData done [16:29:22]ExternCall_PrintAddStr [16:29:22]wPrintStart [16:29:22]Write to MH i2c: 01 00 00 65 2C 91 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: 01 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: 01 07 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: 01 07 00 65 2C 00 00 00 00 00 FF 0F A6 [16:29:22]RasterBufferAndPrint [16:29:22]line Счет N : (1)1319489 [16:29:22]line ИНН: 02508201610067 [16:29:22]line Контрольно-Кассовый Чек [16:29:22]line ПРОДАЖА [16:29:22]line ТРК (МРК, ГНК) : 43 [16:29:22]line Товар: 2710124130 [16:29:22]line Аи-92-К-5 [16:29:22]line 6.640 * 66.30 [16:29:22]line = 440.23 [16:29:22]line НДС 12% НСП 1% [16:29:22]line > о реализуемом товаре [16:29:22]line ОКРУГЛЕНИЕ: -0.23 [16:29:22]line ИТОГО: 440.00 [16:29:22]line Внесено: 440.00 [16:29:22]line СДАЧА: 0.00 [16:29:22]line НСП 1% : 3.90 [16:29:22]line НДС 12% : 46.75 [16:29:22]line Наличными: 440.00 [16:29:22]line Безнал.: 0.00 [16:29:22]line Место: АЗС № 140 "Партнер Нефть" [16:29:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:29:22]line СНО: Общий режим [16:29:22]line Чек 192 14.07.2024 16:29 [16:29:22]line Смена: 463 ФФД: 1.0 [16:29:22]line ЗНМ: 0300000129 [16:29:22]line РНМ: 0000000000090858 [16:29:22]line Версия ККМ: 001 [16:29:22]line ФМ: 0000000000874899 [16:29:22]line ФД: 162880 [16:29:22]line ФПД: 87301198095373 [16:29:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T162923&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162880&fm=87301198095373&tin=02508201610067®Number=0000000000090858&sum=44000 [16:29:23]OFD Sender: Processing packet 162880 [packets to send 106, broken 105] [16:29:23]ProducePacketName [16:29:23]name=ofd_packets/00162880 [16:29:23]OFD Sender: To server: pG, [16:29:23]CommunicateWithHost lk.salyk.kg:30040 [16:29:23]ConnectInit lk.salyk.kg [16:29:23]written 0, free lines is 4095 [16:29:23]Connected sock=10 [16:29:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 9A 18 07 01 30 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F7 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 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 E3 FC 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7C 02 00 35 04 06 00 4F 66 64 E6 A4 0D 70 33 19 94 0A A2 AB 44 [16:29:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F5 99 47 00 CE 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7C 02 00 F4 03 04 00 F0 A8 93 66 B6 04 01 00 00 ED 6C 14 C5 B2 84 B7 F3 [16:29:23]CommunicateWithHost err = 0 [16:29:23]CheckOFDResponse [16:29:23]1017 (14) - 77093643461234 [16:29:23]1041 (16) - 0000000000874899 [16:29:23]1040 (4) - 162880 [16:29:23]1012 (4) - 14.07.2024 10:31 [16:29:23]1206 (1) - 0 [16:29:23]OFD Sender: Remove packet 162880 [16:29:23]ProducePacketName [16:29:23]name=ofd_packets/00162880 [16:29:23]NVStorageDeleteData [16:29:23]Write to MH i2c: 01 00 00 90 2C BC [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 07 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 07 00 90 2C 00 00 00 00 00 D9 0C A8 [16:29:23]RasterBufferAndPrint [16:29:23]line [16:29:23]line [16:29:23]line [16:29:23]line [16:29:23]line [16:29:23]written 0, free lines is 3297 [16:29:23]MH_Cut [16:29:23]Write to MH i2c: D1 01 00 97 2C 01 95 [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: D1 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: D1 01 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: D1 01 00 97 2C 00 94 [16:29:23]Write to MH i2c: 01 00 00 98 2C C4 [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:24]OFD Sender: No OFD packet to send [16:29:24]*** Cut start [16:29:24]*** Purtial cut [16:29:24]*** Stage 1: CUTSNS_PIN = 1 [16:29:24]Read from MH i2c: 01 [16:29:24]MH_I2C_Read... [16:29:24]*** Stop cut motor [16:29:24]*** Cut end [16:29:24]Read from MH i2c: 01 07 00 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: 01 07 00 98 2C 00 00 00 00 00 FF 0F D9 [16:29:24]process_action close_receipt done [16:29:24]requested_data is exist [16:29:24]produce_requested_data [16:29:24]requested_item fm.sn is exist - process it [16:29:24]wFMCommunicate request_size=4 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 11 00 00 [16:29:24]Write to MH i2c: E2 08 00 99 2C 80 11 00 00 00 00 00 00 3F [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:24]Read from MH i2c: E2 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 17 00 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 17 00 99 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9F [16:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:29:24]wFMCommunicate OK [16:29:24]requested_item fd.num is exist - process it [16:29:24]SAM_PROTO_GetFieldsCounters [16:29:24]wFMCommunicate request_size=4 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 13 00 00 [16:29:24]Write to MH i2c: E2 08 00 9A 2C 80 13 00 00 00 00 00 00 42 [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:24]Read from MH i2c: E2 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 62 00 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 62 00 9A 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 40 7C 02 00 0E 04 04 00 CF 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 43 [16:29:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 40 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:24]wFMCommunicate OK [16:29:24]SAM_PROTO_GetFieldsCounters done [16:29:24]requested_item shift.num is exist - process it [16:29:24]requested_item shift.opened is exist - process it [16:29:24]req_shift_opened [16:29:24]FM_GetShiftState [16:29:24]SAM_PROTO_GetShiftState [16:29:24]wFMCommunicate request_size=4 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 13 01 00 [16:29:24]Write to MH i2c: E2 08 00 9B 2C 80 13 01 00 00 00 00 00 44 [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:24]Read from MH i2c: E2 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 0E 00 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 0E 00 9B 2C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7A [16:29:24]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:29:24]wFMCommunicate OK [16:29:24]SAM_PROTO_GetShiftState done [16:29:24]FM_GetShiftState done [16:29:24]req_shift_opened done [16:29:24]requested_item shift.open_date is exist - process it [16:29:24]req_shift_open_date [16:29:24]req_shift_open_date done [16:29:24]produce_requested_data done [16:29:24]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162880,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:29:24]process_action_free close_receipt [16:29:24]json_value_free [16:29:24]json_value_free done [16:29:24]process_json_proto returns [16:29:24]Send response to host [16:29:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162880,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:29:24]free response buf [16:29:24]execute_script done [16:29:24]execute_script returns [16:29:24]free content buf [16:29:24]Sock 7.Close socket [16:29:24]Sock 7.Thread stoped [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:55]accept exits with 9 [16:34:55]New connection [16:34:55]New thread 3066879332 created [16:34:55]Thread 3066735972 joined [16:34:55]Waiting for new connection... [16:34:55] Sock 9.Parse request [16:34:55]Sock 9.Check first char [16:34:55]Sock 9.First char is OK [16:34:55]request: POST /json_proto HTTP/1.0 [16:34:55]Method: POST [16:34:55]URL: /json_proto [16:34:55]Method is POST - this is cgi request [16:34:55]url: /json_proto [16:34:55]query_string will be loaded in cgi processing [16:34:55]execute_cgi json_proto POST (null) [16:34:55]execute_cgi path=json_proto method=POST [16:34:55]POST find Content-Length [16:34:55]Host: 172.17.39.67:8080 [16:34:55]Content-Length: 688 [16:34:55]Content-Type: application/json [16:34:55] [16:34:55]POST finish read [16:34:55]Found Content-Length = 688 [16:34:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:55]execute_script... [16:34:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:55]POST & json_proto [16:34:55]process_json_proto [16:34:55]json parsed OK: [16:34:55]protocol is kg_v1.0 [16:34:55]action value=close_receipt [16:34:55]process_action close_receipt [16:34:55]cmd_close_receipt [16:34:55]MH_GetDate [16:34:55]Write to MH i2c: F0 00 00 9C 2C B7 [16:34:55]Write i2c OK [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: F0 [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: F0 09 00 [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: F0 09 00 9C 2C 00 31 FE 93 66 B6 85 93 66 1C [16:34:55]GetLastDocTimeStamp 1720974563 [16:34:55]current date 1720974897 [16:34:55]FM_GetShiftState [16:34:55]SAM_PROTO_GetShiftState [16:34:55]wFMCommunicate request_size=4 [16:34:55]MH_SAM_APDU [16:34:55]CAPDU: 80 13 01 00 [16:34:55]Write to MH i2c: E2 08 00 9D 2C 80 13 01 00 00 00 00 00 46 [16:34:55]Write i2c OK [16:34:55]MH_I2C_Read... [16:34:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:55]Read from MH i2c: E2 [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: E2 0E 00 [16:34:55]MH_I2C_Read... [16:34:55]Read from MH i2c: E2 0E 00 9D 2C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7C [16:34:55]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:34:55]wFMCommunicate OK [16:34:55]SAM_PROTO_GetShiftState done [16:34:55]FM_GetShiftState done [16:34:55]opened in 1720915483 [16:34:55]opened+sec_in_day 1721001883 [16:34:55]quantity*price = 200013 [16:34:55]sum+1 = 200014 [16:34:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 193 14.07.2024 16:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162881 ФПД: 250969194376282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T163457&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162881&fm=250969194376282&tin=02508201610067®Number=0000000000090858&sum=200000 [16:34:56]StoreToDocumentArchive [16:34:56]shift 463 fd 162881 [16:34:56]save to /storage/0463/doc_00162881 [16:34:56]save last doc name /storage/0463/doc_00162881 to /storage/kkm_last_doc_name [16:34:56]save OK [16:34:56]Clear old archive folders... [16:34:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:34:56]tlvbuf is 0134E500 [16:34:56]SAM_PROTO_ClearQueue [16:34:56]wFMCommunicate request_size=4 [16:34:56]MH_SAM_APDU [16:34:56]CAPDU: 80 09 00 00 [16:34:56]Write to MH i2c: E2 08 00 AA 2C 80 09 00 00 00 00 00 00 48 [16:34:56]Write i2c OK [16:34:56]MH_I2C_Read... [16:34:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:56]Read from MH i2c: E2 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 03 00 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 03 00 AA 2C 00 90 00 4A [16:34:56]RAPDU: 90 00 [16:34:56]wFMCommunicate OK [16:34:56]SAM_PROTO_ClearQueue done [16:34:56]KKMCreateOFDPacket [16:34:56]OFDProtocolAddRootSTLVToBuf [16:34:56]FM_MakeSignedData [16:34:56]FM_MakeSignedData [16:34:56]SAM_PROTO_SignData [16:34:56]wFMCommunicate request_size=4 [16:34:56]MH_SAM_APDU [16:34:56]CAPDU: 80 0D 01 02 [16:34:56]Write to MH i2c: E2 08 00 AB 2C 80 0D 01 02 00 00 00 00 50 [16:34:56]Write i2c OK [16:34:56]MH_I2C_Read... [16:34:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:56]Read from MH i2c: E2 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 03 00 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 03 00 AB 2C 00 90 00 4B [16:34:56]RAPDU: 90 00 [16:34:56]wFMCommunicate OK [16:34:56]wFMCommunicate request_size=255 [16:34:56]MH_SAM_APDU [16:34:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 31 FE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7C 02 00 35 04 06 00 [16:34:56]Write to MH i2c: E2 02 01 AC 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 31 FE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7C 02 00 35 04 06 00 00 00 D7 [16:34:56]Write i2c OK [16:34:56]MH_I2C_Read... [16:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:56]Read from MH i2c: E2 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 03 00 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 03 00 AC 2C 00 90 00 4C [16:34:56]RAPDU: 90 00 [16:34:56]wFMCommunicate OK [16:34:56]wFMCommunicate request_size=11 [16:34:56]MH_SAM_APDU [16:34:56]CAPDU: 80 0D 02 02 06 E4 41 51 AE 2C 5A [16:34:56]Write to MH i2c: E2 0E 00 AD 2C 80 0D 02 02 06 00 E4 41 51 AE 2C 5A 00 00 09 [16:34:56]Write i2c OK [16:34:56]MH_I2C_Read... [16:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:56]Read from MH i2c: E2 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 03 00 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 03 00 AD 2C 00 90 00 4D [16:34:56]RAPDU: 90 00 [16:34:56]wFMCommunicate OK [16:34:56]wFMCommunicate request_size=4 [16:34:56]MH_SAM_APDU [16:34:56]CAPDU: 80 0D 03 02 [16:34:56]Write to MH i2c: E2 08 00 AE 2C 80 0D 03 02 00 00 00 00 55 [16:34:56]Write i2c OK [16:34:56]MH_I2C_Read... [16:34:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:56]Read from MH i2c: E2 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 0B 00 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 0B 00 AE 2C 00 72 D9 B1 B8 8B 77 A0 82 90 00 2E [16:34:56]RAPDU: 72 D9 B1 B8 8B 77 A0 82 90 00 [16:34:56]wFMCommunicate OK [16:34:56]SAM_PROTO_SignData done [16:34:56]FM_MakeSignedData done [16:34:56]CreateOFDProtocolMessage [16:34:56]wFMCommunicate request_size=4 [16:34:56]MH_SAM_APDU [16:34:56]CAPDU: 80 11 00 00 [16:34:56]Write to MH i2c: E2 08 00 AF 2C 80 11 00 00 00 00 00 00 55 [16:34:56]Write i2c OK [16:34:56]MH_I2C_Read... [16:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:56]Read from MH i2c: E2 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 17 00 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: E2 17 00 AF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B5 [16:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:34:56]wFMCommunicate OK [16:34:56]CreateOFDProtocolMessage done [16:34:56]OFDSenderStorePacket 162881 [16:34:56]StoreOFDPacket docnum=162881 [16:34:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4D 8A 08 01 3F 88 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 31 FE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7C 02 00 35 04 06 00 E4 41 51 AE 2C 5A 72 D9 B1 B8 8B 77 A0 82 [16:34:56]CheckFolder [16:34:56]dirname=/storage/ofd_packets [16:34:56]CheckFolder done [16:34:56]ProducePacketName [16:34:56]name=ofd_packets/00162881 [16:34:56]NVStorageSaveData ofd_packets/00162881 [16:34:56]File name is /storage/ofd_packets/00162881 [16:34:56]Write 302 bytes [16:34:56]NVStorageSaveData done [16:34:56]OFDSenderStorePacket done [16:34:56]KKMCreateOFDPacket done [16:34:56]NVStorageSaveData kkm_last_timestamp [16:34:56]File name is /storage/kkm_last_timestamp [16:34:56]Write 4 bytes [16:34:56]NVStorageSaveData done [16:34:56]ExternCall_PrintAddStr [16:34:56]wPrintStart [16:34:56]Write to MH i2c: 01 00 00 B0 2C DC [16:34:56]Write i2c OK [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: 01 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: 01 07 00 [16:34:56]MH_I2C_Read... [16:34:56]Read from MH i2c: 01 07 00 B0 2C 00 00 00 00 00 FF 0F F1 [16:34:56]RasterBufferAndPrint [16:34:56]line Счет N : (1)1319490 [16:34:56]line ИНН: 02508201610067 [16:34:56]line Контрольно-Кассовый Чек [16:34:56]line ПРОДАЖА [16:34:56]line ТРК (МРК, ГНК) : 11 [16:34:56]line Товар: 2710194210 [16:34:56]line ДТ(л)-К-5 [16:34:56]line 27.550 * 72.60 [16:34:56]line = 2000.13 [16:34:56]line НДС 12% НСП 1% [16:34:56]line > о реализуемом товаре [16:34:56]line ОКРУГЛЕНИЕ: -0.13 [16:34:56]line ИТОГО: 2000.00 [16:34:56]line Внесено: 2000.00 [16:34:56]line СДАЧА: 0.00 [16:34:56]line НСП 1% : 17.70 [16:34:56]line НДС 12% : 212.40 [16:34:56]line Наличными: 2000.00 [16:34:56]line Безнал.: 0.00 [16:34:56]line Место: АЗС № 140 "Партнер Нефть" [16:34:56]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:34:56]line СНО: Общий режим [16:34:56]line Чек 193 14.07.2024 16:34 [16:34:56]line Смена: 463 ФФД: 1.0 [16:34:56]line ЗНМ: 0300000129 [16:34:56]line РНМ: 0000000000090858 [16:34:56]line Версия ККМ: 001 [16:34:56]line ФМ: 0000000000874899 [16:34:56]line ФД: 162881 [16:34:56]line ФПД: 250969194376282 [16:34:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T163457&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162881&fm=250969194376282&tin=02508201610067®Number=0000000000090858&sum=200000 [16:34:57]OFD Sender: Processing packet 162881 [packets to send 106, broken 105] [16:34:57]ProducePacketName [16:34:57]name=ofd_packets/00162881 [16:34:57]OFD Sender: To server: pG, [16:34:57]CommunicateWithHost lk.salyk.kg:30040 [16:34:57]ConnectInit lk.salyk.kg [16:34:57]written 0, free lines is 4095 [16:34:57]Connected sock=10 [16:34:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4D 8A 08 01 3F 88 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 31 FE 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7C 02 00 35 04 06 00 E4 41 51 AE 2C 5A 72 D9 B1 B8 8B 77 A0 82 [16:34:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 30 D7 47 00 75 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7C 02 00 F4 03 04 00 3E AA 93 66 B6 04 01 00 00 B9 6E 46 B0 EF D6 1C 75 [16:34:57]CommunicateWithHost err = 0 [16:34:57]CheckOFDResponse [16:34:57]1017 (14) - 77093643461234 [16:34:57]1041 (16) - 0000000000874899 [16:34:57]1040 (4) - 162881 [16:34:57]1012 (4) - 14.07.2024 10:36 [16:34:57]1206 (1) - 0 [16:34:57]OFD Sender: Remove packet 162881 [16:34:57]ProducePacketName [16:34:57]name=ofd_packets/00162881 [16:34:57]NVStorageDeleteData [16:34:57]Write to MH i2c: 01 00 00 DB 2C 07 [16:34:57]Write i2c OK [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: 01 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: 01 07 00 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: 01 07 00 DB 2C 00 00 00 00 00 E2 0C FC [16:34:57]RasterBufferAndPrint [16:34:57]line [16:34:57]line [16:34:57]line [16:34:57]line [16:34:57]line [16:34:57]written 0, free lines is 3304 [16:34:57]MH_Cut [16:34:57]Write to MH i2c: D1 01 00 E2 2C 01 E0 [16:34:57]Write i2c OK [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: D1 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: D1 01 00 [16:34:57]MH_I2C_Read... [16:34:57]Read from MH i2c: D1 01 00 E2 2C 00 DF [16:34:57]Write to MH i2c: 01 00 00 E3 2C 0F [16:34:57]Write i2c OK [16:34:57]MH_I2C_Read... [16:34:58]OFD Sender: No OFD packet to send [16:34:58]*** Cut start [16:34:58]*** Purtial cut [16:34:58]*** CUTSNS_PIN = 0 [16:34:58]*** Stage 1: CUTSNS_PIN = 1 [16:35:00]Read from MH i2c: 01 [16:35:00]MH_I2C_Read... [16:35:00]*** Stop cut motor [16:35:00]*** Cut end [16:35:00]Read from MH i2c: 01 07 00 [16:35:00]MH_I2C_Read... [16:35:00]Read from MH i2c: 01 07 00 E3 2C 00 00 00 00 00 FF 0F 24 [16:35:00]process_action close_receipt done [16:35:00]requested_data is exist [16:35:00]produce_requested_data [16:35:00]requested_item fm.sn is exist - process it [16:35:00]wFMCommunicate request_size=4 [16:35:00]MH_SAM_APDU [16:35:00]CAPDU: 80 11 00 00 [16:35:00]Write to MH i2c: E2 08 00 E4 2C 80 11 00 00 00 00 00 00 8A [16:35:00]Write i2c OK [16:35:00]MH_I2C_Read... [16:35:00]Read from MH i2c: E2 [16:35:00]MH_I2C_Read... [16:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:00]Read from MH i2c: E2 17 00 [16:35:00]MH_I2C_Read... [16:35:00]Read from MH i2c: E2 17 00 E4 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EA [16:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:35:00]wFMCommunicate OK [16:35:00]requested_item fd.num is exist - process it [16:35:00]SAM_PROTO_GetFieldsCounters [16:35:00]wFMCommunicate request_size=4 [16:35:00]MH_SAM_APDU [16:35:00]CAPDU: 80 13 00 00 [16:35:00]Write to MH i2c: E2 08 00 E5 2C 80 13 00 00 00 00 00 00 8D [16:35:00]Write i2c OK [16:35:00]MH_I2C_Read... [16:35:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:00]Read from MH i2c: E2 [16:35:00]MH_I2C_Read... [16:35:00]Read from MH i2c: E2 62 00 [16:35:00]MH_I2C_Read... [16:35:00]Read from MH i2c: E2 62 00 E5 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 41 7C 02 00 0E 04 04 00 CF 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 92 [16:35:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 41 7C 02 00 0E 04 04 00 CF 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 [16:35:00]wFMCommunicate OK [16:35:00]SAM_PROTO_GetFieldsCounters done [16:35:00]requested_item shift.num is exist - process it [16:35:00]requested_item shift.opened is exist - process it [16:35:00]req_shift_opened [16:35:00]FM_GetShiftState [16:35:00]SAM_PROTO_GetShiftState [16:35:00]wFMCommunicate request_size=4 [16:35:00]MH_SAM_APDU [16:35:00]CAPDU: 80 13 01 00 [16:35:00]Write to MH i2c: E2 08 00 E6 2C 80 13 01 00 00 00 00 00 8F [16:35:00]Write i2c OK [16:35:00]MH_I2C_Read... [16:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:00]Read from MH i2c: E2 [16:35:00]MH_I2C_Read... [16:35:00]Read from MH i2c: E2 0E 00 [16:35:00]MH_I2C_Read... [16:35:00]Read from MH i2c: E2 0E 00 E6 2C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C5 [16:35:00]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:35:00]wFMCommunicate OK [16:35:00]SAM_PROTO_GetShiftState done [16:35:00]FM_GetShiftState done [16:35:00]req_shift_opened done [16:35:00]requested_item shift.open_date is exist - process it [16:35:00]req_shift_open_date [16:35:00]req_shift_open_date done [16:35:00]produce_requested_data done [16:35:00]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162881,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:35:00]process_action_free close_receipt [16:35:00]json_value_free [16:35:00]json_value_free done [16:35:00]process_json_proto returns [16:35:00]Send response to host [16:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162881,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:35:00]free response buf [16:35:00]execute_script done [16:35:00]execute_script returns [16:35:00]free content buf [16:35:00]Sock 9.Close socket [16:35:00]Sock 9.Thread stoped [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38: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: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:03]accept exits with 7 [16:40:03]New connection [16:40:03]New thread 3066735972 created [16:40:03]Thread 3066879332 joined [16:40:03]Waiting for new connection... [16:40:03] Sock 7.Parse request [16:40:03]Sock 7.Check first char [16:40:03]Sock 7.First char is OK [16:40:03]request: POST /json_proto HTTP/1.0 [16:40:03]Method: POST [16:40:03]URL: /json_proto [16:40:03]Method is POST - this is cgi request [16:40:03]url: /json_proto [16:40:03]query_string will be loaded in cgi processing [16:40:03]execute_cgi json_proto POST (null) [16:40:03]execute_cgi path=json_proto method=POST [16:40:03]POST find Content-Length [16:40:03]Host: 172.17.39.67:8080 [16:40:03]Content-Length: 678 [16:40:03]Content-Type: application/json [16:40:03] [16:40:03]POST finish read [16:40:03]Found Content-Length = 678 [16:40:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "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" ] } } [16:40:03]execute_script... [16:40:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "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" ] } } [16:40:03]POST & json_proto [16:40:03]process_json_proto [16:40:03]json parsed OK: [16:40:03]protocol is kg_v1.0 [16:40:03]action value=close_receipt [16:40:03]process_action close_receipt [16:40:03]cmd_close_receipt [16:40:03]MH_GetDate [16:40:03]Write to MH i2c: F0 00 00 E7 2C 02 [16:40:03]Write i2c OK [16:40:03]MH_I2C_Read... [16:40:03]Read from MH i2c: F0 [16:40:03]MH_I2C_Read... [16:40:03]Read from MH i2c: F0 09 00 [16:40:03]MH_I2C_Read... [16:40:03]Read from MH i2c: F0 09 00 E7 2C 00 65 FF 93 66 B6 85 93 66 9C [16:40:03]GetLastDocTimeStamp 1720974897 [16:40:03]current date 1720975205 [16:40:03]FM_GetShiftState [16:40:03]SAM_PROTO_GetShiftState [16:40:03]wFMCommunicate request_size=4 [16:40:03]MH_SAM_APDU [16:40:03]CAPDU: 80 13 01 00 [16:40:03]Write to MH i2c: E2 08 00 E8 2C 80 13 01 00 00 00 00 00 91 [16:40:03]Write i2c OK [16:40:03]MH_I2C_Read... [16:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:03]Read from MH i2c: E2 [16:40:03]MH_I2C_Read... [16:40:03]Read from MH i2c: E2 0E 00 [16:40:03]MH_I2C_Read... [16:40:03]Read from MH i2c: E2 0E 00 E8 2C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C7 [16:40:03]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:40:03]wFMCommunicate OK [16:40:03]SAM_PROTO_GetShiftState done [16:40:03]FM_GetShiftState done [16:40:03]opened in 1720915483 [16:40:03]opened+sec_in_day 1721001883 [16:40:03]quantity*price = 60001 [16:40:03]sum+1 = 60003 [16:40:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 194 14.07.2024 16:40 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162882 ФПД: 96262368904583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164005&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162882&fm=96262368904583&tin=02508201610067®Number=0000000000090858&sum=60000 [16:40:04]StoreToDocumentArchive [16:40:04]shift 463 fd 162882 [16:40:04]save to /storage/0463/doc_00162882 [16:40:04]save last doc name /storage/0463/doc_00162882 to /storage/kkm_last_doc_name [16:40:04]save OK [16:40:04]Clear old archive folders... [16:40:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:04]tlvbuf is B6D96640 [16:40:04]SAM_PROTO_ClearQueue [16:40:04]wFMCommunicate request_size=4 [16:40:04]MH_SAM_APDU [16:40:04]CAPDU: 80 09 00 00 [16:40:04]Write to MH i2c: E2 08 00 F5 2C 80 09 00 00 00 00 00 00 93 [16:40:04]Write i2c OK [16:40:04]MH_I2C_Read... [16:40:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:04]Read from MH i2c: E2 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: E2 03 00 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: E2 03 00 F5 2C 00 90 00 95 [16:40:04]RAPDU: 90 00 [16:40:04]wFMCommunicate OK [16:40:04]SAM_PROTO_ClearQueue done [16:40:04]KKMCreateOFDPacket [16:40:04]OFDProtocolAddRootSTLVToBuf [16:40:04]FM_MakeSignedData [16:40:04]FM_MakeSignedData [16:40:04]SAM_PROTO_SignData [16:40:04]wFMCommunicate request_size=4 [16:40:04]MH_SAM_APDU [16:40:04]CAPDU: 80 0D 01 02 [16:40:04]Write to MH i2c: E2 08 00 F6 2C 80 0D 01 02 00 00 00 00 9B [16:40:04]Write i2c OK [16:40:04]MH_I2C_Read... [16:40:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:04]Read from MH i2c: E2 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: E2 03 00 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: E2 03 00 F6 2C 00 90 00 96 [16:40:04]RAPDU: 90 00 [16:40:04]wFMCommunicate OK [16:40:04]wFMCommunicate request_size=255 [16:40:04]MH_SAM_APDU [16:40: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 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 C2 00 00 00 F4 03 04 00 65 FF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7C 02 00 35 04 06 00 57 [16:40:04]Write to MH i2c: E2 02 01 F7 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 C2 00 00 00 F4 03 04 00 65 FF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7C 02 00 35 04 06 00 57 00 00 2A [16:40:04]Write i2c OK [16:40:04]MH_I2C_Read... [16:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:05]Read from MH i2c: E2 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 F7 2C 00 90 00 97 [16:40:05]RAPDU: 90 00 [16:40:05]wFMCommunicate OK [16:40:05]wFMCommunicate request_size=10 [16:40:05]MH_SAM_APDU [16:40:05]CAPDU: 80 0D 02 02 05 8C D4 4D C5 87 [16:40:05]Write to MH i2c: E2 0D 00 F8 2C 80 0D 02 02 05 00 8C D4 4D C5 87 00 00 A1 [16:40:05]Write i2c OK [16:40:05]MH_I2C_Read... [16:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:05]Read from MH i2c: E2 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 03 00 F8 2C 00 90 00 98 [16:40:05]RAPDU: 90 00 [16:40:05]wFMCommunicate OK [16:40:05]wFMCommunicate request_size=4 [16:40:05]MH_SAM_APDU [16:40:05]CAPDU: 80 0D 03 02 [16:40:05]Write to MH i2c: E2 08 00 F9 2C 80 0D 03 02 00 00 00 00 A0 [16:40:05]Write i2c OK [16:40:05]MH_I2C_Read... [16:40:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:05]Read from MH i2c: E2 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 0B 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 0B 00 F9 2C 00 07 22 19 AF 1F B9 9A 07 90 00 0B [16:40:05]RAPDU: 07 22 19 AF 1F B9 9A 07 90 00 [16:40:05]wFMCommunicate OK [16:40:05]SAM_PROTO_SignData done [16:40:05]FM_MakeSignedData done [16:40:05]CreateOFDProtocolMessage [16:40:05]wFMCommunicate request_size=4 [16:40:05]MH_SAM_APDU [16:40:05]CAPDU: 80 11 00 00 [16:40:05]Write to MH i2c: E2 08 00 FA 2C 80 11 00 00 00 00 00 00 A0 [16:40:05]Write i2c OK [16:40:05]MH_I2C_Read... [16:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:05]Read from MH i2c: E2 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 17 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: E2 17 00 FA 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 00 [16:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:40:05]wFMCommunicate OK [16:40:05]CreateOFDProtocolMessage done [16:40:05]OFDSenderStorePacket 162882 [16:40:05]StoreOFDPacket docnum=162882 [16:40:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 0B 07 07 01 A4 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 C2 00 00 00 F4 03 04 00 65 FF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7C 02 00 35 04 06 00 57 8C D4 4D C5 87 07 22 19 AF 1F B9 9A 07 [16:40:05]CheckFolder [16:40:05]dirname=/storage/ofd_packets [16:40:05]CheckFolder done [16:40:05]ProducePacketName [16:40:05]name=ofd_packets/00162882 [16:40:05]NVStorageSaveData ofd_packets/00162882 [16:40:05]File name is /storage/ofd_packets/00162882 [16:40:05]Write 301 bytes [16:40:05]NVStorageSaveData done [16:40:05]OFDSenderStorePacket done [16:40:05]KKMCreateOFDPacket done [16:40:05]NVStorageSaveData kkm_last_timestamp [16:40:05]File name is /storage/kkm_last_timestamp [16:40:05]Write 4 bytes [16:40:05]NVStorageSaveData done [16:40:05]ExternCall_PrintAddStr [16:40:05]wPrintStart [16:40:05]Write to MH i2c: 01 00 00 FB 2C 27 [16:40:05]Write i2c OK [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: 01 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: 01 07 00 [16:40:05]MH_I2C_Read... [16:40:05]Read from MH i2c: 01 07 00 FB 2C 00 00 00 00 00 FF 0F 3C [16:40:05]RasterBufferAndPrint [16:40:05]line Счет N : (1)1319491 [16:40:05]line ИНН: 02508201610067 [16:40:05]line Контрольно-Кассовый Чек [16:40:05]line ПРОДАЖА [16:40:05]line ТРК (МРК, ГНК) : 63 [16:40:05]line Товар: 2710124130 [16:40:05]line Аи-92-К-5 [16:40:05]line 9.050 * 66.30 [16:40:05]line = 600.02 [16:40:05]line НДС 12% НСП 1% [16:40:05]line > о реализуемом товаре [16:40:05]line ОКРУГЛЕНИЕ: -0.02 [16:40:05]line ИТОГО: 600.00 [16:40:05]line Внесено: 600.00 [16:40:05]line СДАЧА: 0.00 [16:40:05]line НСП 1% : 5.31 [16:40:05]line НДС 12% : 63.72 [16:40:05]line Наличными: 600.00 [16:40:05]line Безнал.: 0.00 [16:40:05]line Место: АЗС № 140 "Партнер Нефть" [16:40:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:40:05]line СНО: Общий режим [16:40:05]line Чек 194 14.07.2024 16:40 [16:40:05]line Смена: 463 ФФД: 1.0 [16:40:05]line ЗНМ: 0300000129 [16:40:05]line РНМ: 0000000000090858 [16:40:05]line Версия ККМ: 001 [16:40:05]line ФМ: 0000000000874899 [16:40:05]line ФД: 162882 [16:40:05]line ФПД: 96262368904583 [16:40:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164005&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162882&fm=96262368904583&tin=02508201610067®Number=0000000000090858&sum=60000 [16:40:05]OFD Sender: Processing packet 162882 [packets to send 106, broken 105] [16:40:05]ProducePacketName [16:40:05]name=ofd_packets/00162882 [16:40:05]OFD Sender: To server: pG, [16:40:05]CommunicateWithHost lk.salyk.kg:30040 [16:40:05]ConnectInit lk.salyk.kg [16:40:05]written 0, free lines is 4095 [16:40:05]Connected sock=10 [16:40:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 0B 07 07 01 A4 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 C2 00 00 00 F4 03 04 00 65 FF 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7C 02 00 35 04 06 00 57 8C D4 4D C5 87 07 22 19 AF 1F B9 9A 07 [16:40:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3F C5 47 00 85 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7C 02 00 F4 03 04 00 72 AB 93 66 B6 04 01 00 00 CF 71 50 1E 9E A0 0B 34 [16:40:05]CommunicateWithHost err = 0 [16:40:05]CheckOFDResponse [16:40:05]1017 (14) - 77093643461234 [16:40:05]1041 (16) - 0000000000874899 [16:40:05]1040 (4) - 162882 [16:40:05]1012 (4) - 14.07.2024 10:41 [16:40:05]1206 (1) - 0 [16:40:05]OFD Sender: Remove packet 162882 [16:40:05]ProducePacketName [16:40:05]name=ofd_packets/00162882 [16:40:05]NVStorageDeleteData [16:40:06]Write to MH i2c: 01 00 00 26 2D 53 [16:40:06]Write i2c OK [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: 01 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: 01 07 00 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: 01 07 00 26 2D 00 00 00 00 00 DF 0C 45 [16:40:06]RasterBufferAndPrint [16:40:06]line [16:40:06]line [16:40:06]line [16:40:06]line [16:40:06]line [16:40:06]written 0, free lines is 3304 [16:40:06]MH_Cut [16:40:06]Write to MH i2c: D1 01 00 2D 2D 01 2C [16:40:06]Write i2c OK [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: D1 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: D1 01 00 [16:40:06]MH_I2C_Read... [16:40:06]Read from MH i2c: D1 01 00 2D 2D 00 2B [16:40:06]Write to MH i2c: 01 00 00 2E 2D 5B [16:40:06]Write i2c OK [16:40:06]MH_I2C_Read... [16:40:06]OFD Sender: No OFD packet to send [16:40:06]*** Cut start [16:40:06]*** Purtial cut [16:40:06]*** Stage 1: CUTSNS_PIN = 1 [16:40:07]Read from MH i2c: 01 [16:40:07]MH_I2C_Read... [16:40:07]*** Stop cut motor [16:40:07]*** Cut end [16:40:07]Read from MH i2c: 01 07 00 [16:40:07]MH_I2C_Read... [16:40:07]Read from MH i2c: 01 07 00 2E 2D 00 00 00 00 00 FF 0F 70 [16:40:07]process_action close_receipt done [16:40:07]requested_data is exist [16:40:07]produce_requested_data [16:40:07]requested_item fm.sn is exist - process it [16:40:07]wFMCommunicate request_size=4 [16:40:07]MH_SAM_APDU [16:40:07]CAPDU: 80 11 00 00 [16:40:07]Write to MH i2c: E2 08 00 2F 2D 80 11 00 00 00 00 00 00 D6 [16:40:07]Write i2c OK [16:40:07]MH_I2C_Read... [16:40:07]Read from MH i2c: E2 [16:40:07]MH_I2C_Read... [16:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:07]Read from MH i2c: E2 17 00 [16:40:07]MH_I2C_Read... [16:40:07]Read from MH i2c: E2 17 00 2F 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 36 [16:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:40:07]wFMCommunicate OK [16:40:07]requested_item fd.num is exist - process it [16:40:07]SAM_PROTO_GetFieldsCounters [16:40:07]wFMCommunicate request_size=4 [16:40:07]MH_SAM_APDU [16:40:07]CAPDU: 80 13 00 00 [16:40:07]Write to MH i2c: E2 08 00 30 2D 80 13 00 00 00 00 00 00 D9 [16:40:07]Write i2c OK [16:40:07]MH_I2C_Read... [16:40:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:07]Read from MH i2c: E2 [16:40:07]MH_I2C_Read... [16:40:07]Read from MH i2c: E2 62 00 [16:40:07]MH_I2C_Read... [16:40:07]Read from MH i2c: E2 62 00 30 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 42 7C 02 00 0E 04 04 00 CF 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 E2 [16:40:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 42 7C 02 00 0E 04 04 00 CF 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 [16:40:07]wFMCommunicate OK [16:40:07]SAM_PROTO_GetFieldsCounters done [16:40:07]requested_item shift.num is exist - process it [16:40:07]requested_item shift.opened is exist - process it [16:40:07]req_shift_opened [16:40:07]FM_GetShiftState [16:40:07]SAM_PROTO_GetShiftState [16:40:07]wFMCommunicate request_size=4 [16:40:07]MH_SAM_APDU [16:40:07]CAPDU: 80 13 01 00 [16:40:07]Write to MH i2c: E2 08 00 31 2D 80 13 01 00 00 00 00 00 DB [16:40:07]Write i2c OK [16:40:07]MH_I2C_Read... [16:40:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:07]Read from MH i2c: E2 [16:40:07]MH_I2C_Read... [16:40:07]Read from MH i2c: E2 0E 00 [16:40:07]MH_I2C_Read... [16:40:07]Read from MH i2c: E2 0E 00 31 2D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 11 [16:40:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:40:07]wFMCommunicate OK [16:40:07]SAM_PROTO_GetShiftState done [16:40:07]FM_GetShiftState done [16:40:07]req_shift_opened done [16:40:07]requested_item shift.open_date is exist - process it [16:40:07]req_shift_open_date [16:40:07]req_shift_open_date done [16:40:07]produce_requested_data done [16:40:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162882,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:40:07]process_action_free close_receipt [16:40:07]json_value_free [16:40:07]json_value_free done [16:40:07]process_json_proto returns [16:40:07]Send response to host [16:40:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162882,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:40:07]free response buf [16:40:07]execute_script done [16:40:07]execute_script returns [16:40:07]free content buf [16:40:07]Sock 7.Close socket [16:40:07]Sock 7.Thread stoped [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]accept exits with 9 [16:43:56]New connection [16:43:56]New thread 3066879332 created [16:43:56]Thread 3066735972 joined [16:43:56]Waiting for new connection... [16:43:56] Sock 9.Parse request [16:43:56]Sock 9.Check first char [16:43:56]Sock 9.First char is OK [16:43:56]request: POST /json_proto HTTP/1.0 [16:43:56]Method: POST [16:43:56]URL: /json_proto [16:43:56]Method is POST - this is cgi request [16:43:56]url: /json_proto [16:43:56]query_string will be loaded in cgi processing [16:43:56]execute_cgi json_proto POST (null) [16:43:56]execute_cgi path=json_proto method=POST [16:43:56]POST find Content-Length [16:43:56]Host: 172.17.39.67:8080 [16:43:56]Content-Length: 676 [16:43:56]Content-Type: application/json [16:43:56] [16:43:56]POST finish read [16:43:56]Found Content-Length = 676 [16:43:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 20.810, "sum" : 1400.51, "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" ] } } [16:43:56]execute_script... [16:43: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)1319492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 20.810, "sum" : 1400.51, "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" ] } } [16:43:56]POST & json_proto [16:43:56]process_json_proto [16:43:56]json parsed OK: [16:43:56]protocol is kg_v1.0 [16:43:56]action value=close_receipt [16:43:56]process_action close_receipt [16:43:56]cmd_close_receipt [16:43:56]MH_GetDate [16:43:56]Write to MH i2c: F0 00 00 32 2D 4E [16:43:56]Write i2c OK [16:43:56]MH_I2C_Read... [16:43:56]Read from MH i2c: F0 [16:43:56]MH_I2C_Read... [16:43:56]Read from MH i2c: F0 09 00 [16:43:56]MH_I2C_Read... [16:43:56]Read from MH i2c: F0 09 00 32 2D 00 4E 00 94 66 B6 85 93 66 D3 [16:43:56]GetLastDocTimeStamp 1720975205 [16:43:56]current date 1720975438 [16:43:56]FM_GetShiftState [16:43:56]SAM_PROTO_GetShiftState [16:43:56]wFMCommunicate request_size=4 [16:43:56]MH_SAM_APDU [16:43:56]CAPDU: 80 13 01 00 [16:43:56]Write to MH i2c: E2 08 00 33 2D 80 13 01 00 00 00 00 00 DD [16:43:56]Write i2c OK [16:43:56]MH_I2C_Read... [16:43:56]OFD Sender: No OFD packet to send [16:43:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:56]Read from MH i2c: E2 [16:43:56]MH_I2C_Read... [16:43:56]Read from MH i2c: E2 0E 00 [16:43:56]MH_I2C_Read... [16:43:56]Read from MH i2c: E2 0E 00 33 2D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 13 [16:43:56]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:43:56]wFMCommunicate OK [16:43:56]SAM_PROTO_GetShiftState done [16:43:56]FM_GetShiftState done [16:43:56]opened in 1720915483 [16:43:56]opened+sec_in_day 1721001883 [16:43:56]quantity*price = 140051 [16:43:56]sum+1 = 140052 [16:43:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 195 14.07.2024 16:43 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162883 ФПД: 129350215136561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164358&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162883&fm=129350215136561&tin=02508201610067®Number=0000000000090858&sum=140000 [16:43:57]StoreToDocumentArchive [16:43:57]shift 463 fd 162883 [16:43:57]save to /storage/0463/doc_00162883 [16:43:57]save last doc name /storage/0463/doc_00162883 to /storage/kkm_last_doc_name [16:43:57]save OK [16:43:57]Clear old archive folders... [16:43:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:43:57]tlvbuf is 01220450 [16:43:57]SAM_PROTO_ClearQueue [16:43:57]wFMCommunicate request_size=4 [16:43:57]MH_SAM_APDU [16:43:57]CAPDU: 80 09 00 00 [16:43:57]Write to MH i2c: E2 08 00 40 2D 80 09 00 00 00 00 00 00 DF [16:43:57]Write i2c OK [16:43:57]MH_I2C_Read... [16:43:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:57]Read from MH i2c: E2 [16:43:57]MH_I2C_Read... [16:43:57]Read from MH i2c: E2 03 00 [16:43:57]MH_I2C_Read... [16:43:57]Read from MH i2c: E2 03 00 40 2D 00 90 00 E1 [16:43:57]RAPDU: 90 00 [16:43:57]wFMCommunicate OK [16:43:57]SAM_PROTO_ClearQueue done [16:43:57]KKMCreateOFDPacket [16:43:57]OFDProtocolAddRootSTLVToBuf [16:43:57]FM_MakeSignedData [16:43:57]FM_MakeSignedData [16:43:57]SAM_PROTO_SignData [16:43:57]wFMCommunicate request_size=4 [16:43:57]MH_SAM_APDU [16:43:57]CAPDU: 80 0D 01 02 [16:43:57]Write to MH i2c: E2 08 00 41 2D 80 0D 01 02 00 00 00 00 E7 [16:43:57]Write i2c OK [16:43:57]MH_I2C_Read... [16:43:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:57]Read from MH i2c: E2 [16:43:57]MH_I2C_Read... [16:43:57]Read from MH i2c: E2 03 00 [16:43:57]MH_I2C_Read... [16:43:57]Read from MH i2c: E2 03 00 41 2D 00 90 00 E2 [16:43:57]RAPDU: 90 00 [16:43:57]wFMCommunicate OK [16:43:57]wFMCommunicate request_size=255 [16:43:57]MH_SAM_APDU [16:43:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 51 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 13 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 C3 00 00 00 F4 03 04 00 4E 00 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7C 02 00 35 04 06 00 [16:43:57]Write to MH i2c: E2 02 01 42 2D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 51 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 13 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 C3 00 00 00 F4 03 04 00 4E 00 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7C 02 00 35 04 06 00 00 00 36 [16:43:57]Write i2c OK [16:43:57]MH_I2C_Read... [16:43:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:58]Read from MH i2c: E2 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 03 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 03 00 42 2D 00 90 00 E3 [16:43:58]RAPDU: 90 00 [16:43:58]wFMCommunicate OK [16:43:58]wFMCommunicate request_size=11 [16:43:58]MH_SAM_APDU [16:43:58]CAPDU: 80 0D 02 02 06 75 A4 B1 9F F5 31 [16:43:58]Write to MH i2c: E2 0E 00 43 2D 80 0D 02 02 06 00 75 A4 B1 9F F5 31 00 00 85 [16:43:58]Write i2c OK [16:43:58]MH_I2C_Read... [16:43:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:58]Read from MH i2c: E2 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 03 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 03 00 43 2D 00 90 00 E4 [16:43:58]RAPDU: 90 00 [16:43:58]wFMCommunicate OK [16:43:58]wFMCommunicate request_size=4 [16:43:58]MH_SAM_APDU [16:43:58]CAPDU: 80 0D 03 02 [16:43:58]Write to MH i2c: E2 08 00 44 2D 80 0D 03 02 00 00 00 00 EC [16:43:58]Write i2c OK [16:43:58]MH_I2C_Read... [16:43:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:58]Read from MH i2c: E2 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 0B 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 0B 00 44 2D 00 84 CE 82 0C FF 67 8E 66 90 00 27 [16:43:58]RAPDU: 84 CE 82 0C FF 67 8E 66 90 00 [16:43:58]wFMCommunicate OK [16:43:58]SAM_PROTO_SignData done [16:43:58]FM_MakeSignedData done [16:43:58]CreateOFDProtocolMessage [16:43:58]wFMCommunicate request_size=4 [16:43:58]MH_SAM_APDU [16:43:58]CAPDU: 80 11 00 00 [16:43:58]Write to MH i2c: E2 08 00 45 2D 80 11 00 00 00 00 00 00 EC [16:43:58]Write i2c OK [16:43:58]MH_I2C_Read... [16:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:58]Read from MH i2c: E2 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 17 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 17 00 45 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4C [16:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:43:58]wFMCommunicate OK [16:43:58]CreateOFDProtocolMessage done [16:43:58]OFDSenderStorePacket 162883 [16:43:58]StoreOFDPacket docnum=162883 [16:43:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AD EE 08 01 87 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 51 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 13 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 C3 00 00 00 F4 03 04 00 4E 00 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7C 02 00 35 04 06 00 75 A4 B1 9F F5 31 84 CE 82 0C FF 67 8E 66 [16:43:58]CheckFolder [16:43:58]dirname=/storage/ofd_packets [16:43:58]CheckFolder done [16:43:58]ProducePacketName [16:43:58]name=ofd_packets/00162883 [16:43:58]NVStorageSaveData ofd_packets/00162883 [16:43:58]File name is /storage/ofd_packets/00162883 [16:43:58]Write 302 bytes [16:43:58]NVStorageSaveData done [16:43:58]OFDSenderStorePacket done [16:43:58]KKMCreateOFDPacket done [16:43:58]NVStorageSaveData kkm_last_timestamp [16:43:58]File name is /storage/kkm_last_timestamp [16:43:58]Write 4 bytes [16:43:58]NVStorageSaveData done [16:43:58]ExternCall_PrintAddStr [16:43:58]wPrintStart [16:43:58]Write to MH i2c: 01 00 00 46 2D 73 [16:43:58]Write i2c OK [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: 01 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: 01 07 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: 01 07 00 46 2D 00 00 00 00 00 FF 0F 88 [16:43:58]RasterBufferAndPrint [16:43:58]line Счет N : (1)1319492 [16:43:58]line ИНН: 02508201610067 [16:43:58]line Контрольно-Кассовый Чек [16:43:58]line ПРОДАЖА [16:43:58]line ТРК (МРК, ГНК) : 52 [16:43:58]line Товар: 2710124130 [16:43:58]line Super-92-К-5 [16:43:58]line 20.810 * 67.30 [16:43:58]line = 1400.51 [16:43:58]line НДС 12% НСП 1% [16:43:58]line > о реализуемом товаре [16:43:58]line ОКРУГЛЕНИЕ: -0.51 [16:43:58]line ИТОГО: 1400.00 [16:43:58]line Внесено: 1400.00 [16:43:58]line СДАЧА: 0.00 [16:43:58]line НСП 1% : 12.39 [16:43:58]line НДС 12% : 148.73 [16:43:58]line Наличными: 1400.00 [16:43:58]line Безнал.: 0.00 [16:43:58]line Место: АЗС № 140 "Партнер Нефть" [16:43:58]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:43:58]line СНО: Общий режим [16:43:58]line Чек 195 14.07.2024 16:43 [16:43:58]line Смена: 463 ФФД: 1.0 [16:43:58]line ЗНМ: 0300000129 [16:43:58]line РНМ: 0000000000090858 [16:43:58]line Версия ККМ: 001 [16:43:58]line ФМ: 0000000000874899 [16:43:58]line ФД: 162883 [16:43:58]line ФПД: 129350215136561 [16:43:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164358&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162883&fm=129350215136561&tin=02508201610067®Number=0000000000090858&sum=140000 [16:43:58]OFD Sender: Processing packet 162883 [packets to send 106, broken 105] [16:43:58]ProducePacketName [16:43:58]name=ofd_packets/00162883 [16:43:58]OFD Sender: To server: pG, [16:43:58]CommunicateWithHost lk.salyk.kg:30040 [16:43:58]ConnectInit lk.salyk.kg [16:43:58]written 0, free lines is 4095 [16:43:58]Connected sock=10 [16:43:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AD EE 08 01 87 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 51 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 13 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 C3 00 00 00 F4 03 04 00 4E 00 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7C 02 00 35 04 06 00 75 A4 B1 9F F5 31 84 CE 82 0C FF 67 8E 66 [16:43:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BF 52 47 00 30 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7C 02 00 F4 03 04 00 5B AC 93 66 B6 04 01 00 00 63 89 77 0C 59 CF 9A 29 [16:43:58]CommunicateWithHost err = 0 [16:43:58]CheckOFDResponse [16:43:58]1017 (14) - 77093643461234 [16:43:58]1041 (16) - 0000000000874899 [16:43:58]1040 (4) - 162883 [16:43:58]1012 (4) - 14.07.2024 10:45 [16:43:58]1206 (1) - 0 [16:43:58]OFD Sender: Remove packet 162883 [16:43:58]ProducePacketName [16:43:58]name=ofd_packets/00162883 [16:43:58]NVStorageDeleteData [16:43:59]Write to MH i2c: 01 00 00 71 2D 9E [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: 01 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: 01 07 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: 01 07 00 71 2D 00 00 00 00 00 DF 0C 90 [16:43:59]RasterBufferAndPrint [16:43:59]line [16:43:59]line [16:43:59]line [16:43:59]line [16:43:59]line [16:43:59]written 0, free lines is 3302 [16:43:59]MH_Cut [16:43:59]Write to MH i2c: D1 01 00 78 2D 01 77 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: D1 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: D1 01 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: D1 01 00 78 2D 00 76 [16:43:59]Write to MH i2c: 01 00 00 79 2D A6 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]OFD Sender: No OFD packet to send [16:43:59]*** Cut start [16:43:59]*** Purtial cut [16:43:59]*** CUTSNS_PIN = 0 [16:44:00]*** Stage 1: CUTSNS_PIN = 1 [16:44:01]Read from MH i2c: 01 [16:44:01]MH_I2C_Read... [16:44:01]*** Stop cut motor [16:44:01]*** Cut end [16:44:01]Read from MH i2c: 01 07 00 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: 01 07 00 79 2D 00 00 00 00 00 FF 0F BB [16:44:01]process_action close_receipt done [16:44:01]requested_data is exist [16:44:01]produce_requested_data [16:44:01]requested_item fm.sn is exist - process it [16:44:01]wFMCommunicate request_size=4 [16:44:01]MH_SAM_APDU [16:44:01]CAPDU: 80 11 00 00 [16:44:01]Write to MH i2c: E2 08 00 7A 2D 80 11 00 00 00 00 00 00 21 [16:44:01]Write i2c OK [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: E2 [16:44:01]MH_I2C_Read... [16:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:01]Read from MH i2c: E2 17 00 [16:44:01]MH_I2C_Read... [16:44:01]Read from MH i2c: E2 17 00 7A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 81 [16:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:44:01]wFMCommunicate OK [16:44:01]requested_item fd.num is exist - process it [16:44:01]SAM_PROTO_GetFieldsCounters [16:44:01]wFMCommunicate request_size=4 [16:44:01]MH_SAM_APDU [16:44:01]CAPDU: 80 13 00 00 [16:44:01]Write to MH i2c: E2 08 00 7B 2D 80 13 00 00 00 00 00 00 24 [16:44:01]Write i2c OK [16:44:01]MH_I2C_Read... [16:44:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:02]Read from MH i2c: E2 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 62 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 62 00 7B 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 43 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [16:44:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 43 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:02]wFMCommunicate OK [16:44:02]SAM_PROTO_GetFieldsCounters done [16:44:02]requested_item shift.num is exist - process it [16:44:02]requested_item shift.opened is exist - process it [16:44:02]req_shift_opened [16:44:02]FM_GetShiftState [16:44:02]SAM_PROTO_GetShiftState [16:44:02]wFMCommunicate request_size=4 [16:44:02]MH_SAM_APDU [16:44:02]CAPDU: 80 13 01 00 [16:44:02]Write to MH i2c: E2 08 00 7C 2D 80 13 01 00 00 00 00 00 26 [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:02]Read from MH i2c: E2 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 0E 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 0E 00 7C 2D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5C [16:44:02]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:44:02]wFMCommunicate OK [16:44:02]SAM_PROTO_GetShiftState done [16:44:02]FM_GetShiftState done [16:44:02]req_shift_opened done [16:44:02]requested_item shift.open_date is exist - process it [16:44:02]req_shift_open_date [16:44:02]req_shift_open_date done [16:44:02]produce_requested_data done [16:44:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162883,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:44:02]process_action_free close_receipt [16:44:02]json_value_free [16:44:02]json_value_free done [16:44:02]process_json_proto returns [16:44:02]Send response to host [16:44:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162883,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:44:02]free response buf [16:44:02]execute_script done [16:44:02]execute_script returns [16:44:02]free content buf [16:44:02]Sock 9.Close socket [16:44:02]Sock 9.Thread stoped [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [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:47]accept exits with 7 [16:45:47]New connection [16:45:47]New thread 3066735972 created [16:45:47]Thread 3066879332 joined [16:45:47]Waiting for new connection... [16:45:47] Sock 7.Parse request [16:45:47]Sock 7.Check first char [16:45:47]Sock 7.First char is OK [16:45:47]request: POST /json_proto HTTP/1.0 [16:45:47]Method: POST [16:45:47]URL: /json_proto [16:45:47]Method is POST - this is cgi request [16:45:47]url: /json_proto [16:45:47]query_string will be loaded in cgi processing [16:45:47]execute_cgi json_proto POST (null) [16:45:47]execute_cgi path=json_proto method=POST [16:45:47]POST find Content-Length [16:45:47]Host: 172.17.39.67:8080 [16:45:47]Content-Length: 804 [16:45:47]Content-Type: application/json [16:45:47] [16:45:47]POST finish read [16:45:47]Found Content-Length = 804 [16:45:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 40.330, "sum" : 3000.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:47]execute_script... [16:45:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 40.330, "sum" : 3000.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:47]POST & json_proto [16:45:47]process_json_proto [16:45:47]json parsed OK: [16:45:47]protocol is kg_v1.0 [16:45:47]action value=close_receipt [16:45:47]process_action close_receipt [16:45:47]cmd_close_receipt [16:45:47]MH_GetDate [16:45:47]Write to MH i2c: F0 00 00 7D 2D 99 [16:45:47]Write i2c OK [16:45:47]MH_I2C_Read... [16:45:47]Read from MH i2c: F0 [16:45:47]MH_I2C_Read... [16:45:47]Read from MH i2c: F0 09 00 [16:45:47]MH_I2C_Read... [16:45:47]Read from MH i2c: F0 09 00 7D 2D 00 BD 00 94 66 B6 85 93 66 8D [16:45:47]GetLastDocTimeStamp 1720975438 [16:45:47]current date 1720975549 [16:45:47]FM_GetShiftState [16:45:47]SAM_PROTO_GetShiftState [16:45:47]wFMCommunicate request_size=4 [16:45:47]MH_SAM_APDU [16:45:47]CAPDU: 80 13 01 00 [16:45:47]Write to MH i2c: E2 08 00 7E 2D 80 13 01 00 00 00 00 00 28 [16:45:47]Write i2c OK [16:45:47]MH_I2C_Read... [16:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:47]Read from MH i2c: E2 [16:45:47]MH_I2C_Read... [16:45:47]Read from MH i2c: E2 0E 00 [16:45:47]MH_I2C_Read... [16:45:47]Read from MH i2c: E2 0E 00 7E 2D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5E [16:45:47]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:45:47]wFMCommunicate OK [16:45:47]SAM_PROTO_GetShiftState done [16:45:47]FM_GetShiftState done [16:45:47]opened in 1720915483 [16:45:47]opened+sec_in_day 1721001883 [16:45:47]quantity*price = 300055 [16:45:47]sum+1 = 300056 [16:45:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.55 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.55 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 196 14.07.2024 16:45 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162884 ФПД: 206689005765717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164549&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162884&fm=206689005765717&tin=02508201610067®Number=0000000000090858&sum=300055 [16:45:48]StoreToDocumentArchive [16:45:48]shift 463 fd 162884 [16:45:48]save to /storage/0463/doc_00162884 [16:45:48]save last doc name /storage/0463/doc_00162884 to /storage/kkm_last_doc_name [16:45:48]save OK [16:45:48]Clear old archive folders... [16:45:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:48]tlvbuf is B6EC8980 [16:45:48]SAM_PROTO_ClearQueue [16:45:48]wFMCommunicate request_size=4 [16:45:48]MH_SAM_APDU [16:45:48]CAPDU: 80 09 00 00 [16:45:48]Write to MH i2c: E2 08 00 8B 2D 80 09 00 00 00 00 00 00 2A [16:45:48]Write i2c OK [16:45:48]MH_I2C_Read... [16:45:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:48]Read from MH i2c: E2 [16:45:48]MH_I2C_Read... [16:45:48]Read from MH i2c: E2 03 00 [16:45:48]MH_I2C_Read... [16:45:48]Read from MH i2c: E2 03 00 8B 2D 00 90 00 2C [16:45:48]RAPDU: 90 00 [16:45:48]wFMCommunicate OK [16:45:48]SAM_PROTO_ClearQueue done [16:45:48]KKMCreateOFDPacket [16:45:48]OFDProtocolAddRootSTLVToBuf [16:45:48]FM_MakeSignedData [16:45:48]FM_MakeSignedData [16:45:48]SAM_PROTO_SignData [16:45:48]wFMCommunicate request_size=4 [16:45:48]MH_SAM_APDU [16:45:48]CAPDU: 80 0D 01 02 [16:45:48]Write to MH i2c: E2 08 00 8C 2D 80 0D 01 02 00 00 00 00 32 [16:45:48]Write i2c OK [16:45:48]MH_I2C_Read... [16:45:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:48]Read from MH i2c: E2 [16:45:48]MH_I2C_Read... [16:45:48]Read from MH i2c: E2 03 00 [16:45:48]MH_I2C_Read... [16:45:48]Read from MH i2c: E2 03 00 8C 2D 00 90 00 2D [16:45:48]RAPDU: 90 00 [16:45:48]wFMCommunicate OK [16:45:48]wFMCommunicate request_size=255 [16:45:48]MH_SAM_APDU [16:45: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 8A 9D 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 17 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 17 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 17 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BD 00 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7C 02 00 35 04 06 00 BB [16:45:48]Write to MH i2c: E2 02 01 8D 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 9D 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 17 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 17 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 17 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BD 00 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7C 02 00 35 04 06 00 BB 00 00 D8 [16:45:49]Write i2c OK [16:45:49]MH_I2C_Read... [16:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:49]Read from MH i2c: E2 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 03 00 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 03 00 8D 2D 00 90 00 2E [16:45:49]RAPDU: 90 00 [16:45:49]wFMCommunicate OK [16:45:49]wFMCommunicate request_size=10 [16:45:49]MH_SAM_APDU [16:45:49]CAPDU: 80 0D 02 02 05 FB 88 C4 84 55 [16:45:49]Write to MH i2c: E2 0D 00 8E 2D 80 0D 02 02 05 00 FB 88 C4 84 55 00 00 5F [16:45:49]Write i2c OK [16:45:49]MH_I2C_Read... [16:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:49]Read from MH i2c: E2 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 03 00 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 03 00 8E 2D 00 90 00 2F [16:45:49]RAPDU: 90 00 [16:45:49]wFMCommunicate OK [16:45:49]wFMCommunicate request_size=4 [16:45:49]MH_SAM_APDU [16:45:49]CAPDU: 80 0D 03 02 [16:45:49]Write to MH i2c: E2 08 00 8F 2D 80 0D 03 02 00 00 00 00 37 [16:45:49]Write i2c OK [16:45:49]MH_I2C_Read... [16:45:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:49]Read from MH i2c: E2 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 0B 00 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 0B 00 8F 2D 00 5E 13 EF 3F 04 C3 30 89 90 00 57 [16:45:49]RAPDU: 5E 13 EF 3F 04 C3 30 89 90 00 [16:45:49]wFMCommunicate OK [16:45:49]SAM_PROTO_SignData done [16:45:49]FM_MakeSignedData done [16:45:49]CreateOFDProtocolMessage [16:45:49]wFMCommunicate request_size=4 [16:45:49]MH_SAM_APDU [16:45:49]CAPDU: 80 11 00 00 [16:45:49]Write to MH i2c: E2 08 00 90 2D 80 11 00 00 00 00 00 00 37 [16:45:49]Write i2c OK [16:45:49]MH_I2C_Read... [16:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:49]Read from MH i2c: E2 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 17 00 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 17 00 90 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 97 [16:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:45:49]wFMCommunicate OK [16:45:49]CreateOFDProtocolMessage done [16:45:49]OFDSenderStorePacket 162884 [16:45:49]StoreOFDPacket docnum=162884 [16:45:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BC 2C 07 01 6B 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 9D 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 17 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 17 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 17 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BD 00 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7C 02 00 35 04 06 00 BB FB 88 C4 84 55 5E 13 EF 3F 04 C3 30 89 [16:45:49]CheckFolder [16:45:49]dirname=/storage/ofd_packets [16:45:49]CheckFolder done [16:45:49]ProducePacketName [16:45:49]name=ofd_packets/00162884 [16:45:49]NVStorageSaveData ofd_packets/00162884 [16:45:49]File name is /storage/ofd_packets/00162884 [16:45:49]Write 301 bytes [16:45:49]NVStorageSaveData done [16:45:49]OFDSenderStorePacket done [16:45:49]KKMCreateOFDPacket done [16:45:49]NVStorageSaveData kkm_last_timestamp [16:45:49]File name is /storage/kkm_last_timestamp [16:45:49]Write 4 bytes [16:45:49]NVStorageSaveData done [16:45:49]ExternCall_PrintAddStr [16:45:49]wPrintStart [16:45:49]Write to MH i2c: 01 00 00 91 2D BE [16:45:49]Write i2c OK [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: 01 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: 01 07 00 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: 01 07 00 91 2D 00 00 00 00 00 FF 0F D3 [16:45:49]RasterBufferAndPrint [16:45:49]line Счет N : (1)1319493 [16:45:49]line ИНН: 02508201610067 [16:45:49]line Контрольно-Кассовый Чек [16:45:49]line ПРОДАЖА [16:45:49]line ТРК (МРК, ГНК) : 44 [16:45:49]line Товар: 2710124500 [16:45:49]line Аи-95-К-5 [16:45:49]line 40.330 * 74.40 [16:45:49]line = 3000.55 [16:45:49]line НДС 12% НСП 1% [16:45:49]line > о реализуемом товаре [16:45:49]line ИТОГО: 3000.55 [16:45:49]line НСП 1% : 26.55 [16:45:49]line НДС 12% : 318.64 [16:45:49]line Наличными: 0.00 [16:45:49]line Безнал.: 3000.55 [16:45:49]line Место: АЗС № 140 "Партнер Нефть" [16:45:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:45:49]line СНО: Общий режим [16:45:49]line Чек 196 14.07.2024 16:45 [16:45:49]line Смена: 463 ФФД: 1.0 [16:45:49]line ЗНМ: 0300000129 [16:45:49]line РНМ: 0000000000090858 [16:45:49]line Версия ККМ: 001 [16:45:49]line Платежная система: O! деньги [16:45:49]line ФМ: 0000000000874899 [16:45:49]line ФД: 162884 [16:45:49]line ФПД: 206689005765717 [16:45:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T164549&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162884&fm=206689005765717&tin=02508201610067®Number=0000000000090858&sum=300055 [16:45:49]written 0, free lines is 4095 [16:45:49]OFD Sender: Processing packet 162884 [packets to send 106, broken 105] [16:45:49]ProducePacketName [16:45:49]name=ofd_packets/00162884 [16:45:49]OFD Sender: To server: pG, [16:45:49]CommunicateWithHost lk.salyk.kg:30040 [16:45:49]ConnectInit lk.salyk.kg [16:45:49]Connected sock=10 [16:45:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BC 2C 07 01 6B 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 9D 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 17 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 17 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 17 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BD 00 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7C 02 00 35 04 06 00 BB FB 88 C4 84 55 5E 13 EF 3F 04 C3 30 89 [16:45:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8B AA 47 00 4A 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7C 02 00 F4 03 04 00 CA AC 93 66 B6 04 01 00 00 3F 35 42 1B D9 91 D0 C4 [16:45:50]CommunicateWithHost err = 0 [16:45:50]CheckOFDResponse [16:45:50]1017 (14) - 77093643461234 [16:45:50]1041 (16) - 0000000000874899 [16:45:50]1040 (4) - 162884 [16:45:50]1012 (4) - 14.07.2024 10:47 [16:45:50]1206 (1) - 0 [16:45:50]OFD Sender: Remove packet 162884 [16:45:50]ProducePacketName [16:45:50]name=ofd_packets/00162884 [16:45:50]NVStorageDeleteData [16:45:50]Write to MH i2c: 01 00 00 BB 2D E8 [16:45:50]Write i2c OK [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: 01 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: 01 07 00 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: 01 07 00 BB 2D 00 00 00 00 00 EA 0C E5 [16:45:50]RasterBufferAndPrint [16:45:50]line [16:45:50]line [16:45:50]line [16:45:50]line [16:45:50]line [16:45:50]written 0, free lines is 3315 [16:45:50]MH_Cut [16:45:50]Write to MH i2c: D1 01 00 C2 2D 01 C1 [16:45:50]Write i2c OK [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: D1 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: D1 01 00 [16:45:50]MH_I2C_Read... [16:45:50]Read from MH i2c: D1 01 00 C2 2D 00 C0 [16:45:50]Write to MH i2c: 01 00 00 C3 2D F0 [16:45:50]Write i2c OK [16:45:50]MH_I2C_Read... [16:45:50]OFD Sender: No OFD packet to send [16:45:50]*** Cut start [16:45:50]*** Purtial cut [16:45:50]*** Stage 1: CUTSNS_PIN = 1 [16:45:51]Read from MH i2c: 01 [16:45:51]MH_I2C_Read... [16:45:51]*** Stop cut motor [16:45:51]*** Cut end [16:45:51]Read from MH i2c: 01 07 00 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: 01 07 00 C3 2D 00 00 00 00 00 FF 0F 05 [16:45:51]process_action close_receipt done [16:45:51]requested_data is exist [16:45:51]produce_requested_data [16:45:51]requested_item fm.sn is exist - process it [16:45:51]wFMCommunicate request_size=4 [16:45:51]MH_SAM_APDU [16:45:51]CAPDU: 80 11 00 00 [16:45:51]Write to MH i2c: E2 08 00 C4 2D 80 11 00 00 00 00 00 00 6B [16:45:51]Write i2c OK [16:45:51]MH_I2C_Read... [16:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:51]Read from MH i2c: E2 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: E2 17 00 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: E2 17 00 C4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CB [16:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:45:51]wFMCommunicate OK [16:45:51]requested_item fd.num is exist - process it [16:45:51]SAM_PROTO_GetFieldsCounters [16:45:51]wFMCommunicate request_size=4 [16:45:51]MH_SAM_APDU [16:45:51]CAPDU: 80 13 00 00 [16:45:51]Write to MH i2c: E2 08 00 C5 2D 80 13 00 00 00 00 00 00 6E [16:45:51]Write i2c OK [16:45:51]MH_I2C_Read... [16:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:51]Read from MH i2c: E2 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: E2 62 00 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: E2 62 00 C5 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 44 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [16:45:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 44 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:51]wFMCommunicate OK [16:45:51]SAM_PROTO_GetFieldsCounters done [16:45:51]requested_item shift.num is exist - process it [16:45:51]requested_item shift.opened is exist - process it [16:45:51]req_shift_opened [16:45:51]FM_GetShiftState [16:45:51]SAM_PROTO_GetShiftState [16:45:51]wFMCommunicate request_size=4 [16:45:51]MH_SAM_APDU [16:45:51]CAPDU: 80 13 01 00 [16:45:51]Write to MH i2c: E2 08 00 C6 2D 80 13 01 00 00 00 00 00 70 [16:45:51]Write i2c OK [16:45:51]MH_I2C_Read... [16:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:51]Read from MH i2c: E2 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: E2 0E 00 [16:45:51]MH_I2C_Read... [16:45:51]Read from MH i2c: E2 0E 00 C6 2D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A6 [16:45:51]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:45:51]wFMCommunicate OK [16:45:51]SAM_PROTO_GetShiftState done [16:45:51]FM_GetShiftState done [16:45:51]req_shift_opened done [16:45:51]requested_item shift.open_date is exist - process it [16:45:51]req_shift_open_date [16:45:51]req_shift_open_date done [16:45:51]produce_requested_data done [16:45:51]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162884,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:45:51]process_action_free close_receipt [16:45:51]json_value_free [16:45:51]json_value_free done [16:45:51]process_json_proto returns [16:45:51]Send response to host [16:45:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162884,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:45:51]free response buf [16:45:51]execute_script done [16:45:51]execute_script returns [16:45:51]free content buf [16:45:51]Sock 7.Close socket [16:45:51]Sock 7.Thread stoped [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:11]accept exits with 9 [16:52:11]New connection [16:52:11]New thread 3066879332 created [16:52:11]Thread 3066735972 joined [16:52:11]Waiting for new connection... [16:52:11] Sock 9.Parse request [16:52:11]Sock 9.Check first char [16:52:11]Sock 9.First char is OK [16:52:11]request: POST /json_proto HTTP/1.0 [16:52:11]Method: POST [16:52:11]URL: /json_proto [16:52:11]Method is POST - this is cgi request [16:52:11]url: /json_proto [16:52:11]query_string will be loaded in cgi processing [16:52:11]execute_cgi json_proto POST (null) [16:52:11]execute_cgi path=json_proto method=POST [16:52:11]POST find Content-Length [16:52:11]Host: 172.17.39.67:8080 [16:52:11]Content-Length: 679 [16:52:11]Content-Type: application/json [16:52:11] [16:52:11]POST finish read [16:52:11]Found Content-Length = 679 [16:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 11.700, "sum" : 870.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:11]execute_script... [16:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 11.700, "sum" : 870.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:11]POST & json_proto [16:52:11]process_json_proto [16:52:11]json parsed OK: [16:52:11]protocol is kg_v1.0 [16:52:11]action value=close_receipt [16:52:11]process_action close_receipt [16:52:11]cmd_close_receipt [16:52:11]MH_GetDate [16:52:11]Write to MH i2c: F0 00 00 C7 2D E3 [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: F0 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: F0 09 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: F0 09 00 C7 2D 00 3D 02 94 66 B6 85 93 66 59 [16:52:11]GetLastDocTimeStamp 1720975549 [16:52:11]current date 1720975933 [16:52:11]FM_GetShiftState [16:52:11]SAM_PROTO_GetShiftState [16:52:11]wFMCommunicate request_size=4 [16:52:11]MH_SAM_APDU [16:52:11]CAPDU: 80 13 01 00 [16:52:11]Write to MH i2c: E2 08 00 C8 2D 80 13 01 00 00 00 00 00 72 [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:11]Read from MH i2c: E2 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 0E 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 0E 00 C8 2D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A8 [16:52:11]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:52:11]wFMCommunicate OK [16:52:11]SAM_PROTO_GetShiftState done [16:52:11]FM_GetShiftState done [16:52:11]opened in 1720915483 [16:52:11]opened+sec_in_day 1721001883 [16:52:11]quantity*price = 87048 [16:52:11]sum+1 = 87049 [16:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 870.00 Внесено: 870.00 СДАЧА: 0.00 НСП 1% : 7.70 НДС 12% : 92.44 Наличными: 870.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 197 14.07.2024 16:52 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162885 ФПД: 192970299571863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T165213&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162885&fm=192970299571863&tin=02508201610067®Number=0000000000090858&sum=87000 [16:52:12]StoreToDocumentArchive [16:52:12]shift 463 fd 162885 [16:52:12]save to /storage/0463/doc_00162885 [16:52:12]save last doc name /storage/0463/doc_00162885 to /storage/kkm_last_doc_name [16:52:12]save OK [16:52:12]Clear old archive folders... [16:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:12]tlvbuf is 0125BC90 [16:52:12]SAM_PROTO_ClearQueue [16:52:12]wFMCommunicate request_size=4 [16:52:12]MH_SAM_APDU [16:52:12]CAPDU: 80 09 00 00 [16:52:12]Write to MH i2c: E2 08 00 D5 2D 80 09 00 00 00 00 00 00 74 [16:52:12]Write i2c OK [16:52:12]MH_I2C_Read... [16:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:12]Read from MH i2c: E2 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: E2 03 00 [16:52:12]MH_I2C_Read... [16:52:12]Read from MH i2c: E2 03 00 D5 2D 00 90 00 76 [16:52:12]RAPDU: 90 00 [16:52:12]wFMCommunicate OK [16:52:12]SAM_PROTO_ClearQueue done [16:52:12]KKMCreateOFDPacket [16:52:12]OFDProtocolAddRootSTLVToBuf [16:52:12]FM_MakeSignedData [16:52:12]FM_MakeSignedData [16:52:12]SAM_PROTO_SignData [16:52:12]wFMCommunicate request_size=4 [16:52:12]MH_SAM_APDU [16:52:12]CAPDU: 80 0D 01 02 [16:52:12]Write to MH i2c: E2 08 00 D6 2D 80 0D 01 02 00 00 00 00 7C [16:52:12]Write i2c OK [16:52:12]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 D6 2D 00 90 00 77 [16:52:13]RAPDU: 90 00 [16:52:13]wFMCommunicate OK [16:52:13]wFMCommunicate request_size=255 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 08 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 24 00 00 00 00 07 04 06 00 D8 53 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 3D 02 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7C 02 00 35 04 06 00 AF [16:52:13]Write to MH i2c: E2 02 01 D7 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 08 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 24 00 00 00 00 07 04 06 00 D8 53 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 3D 02 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7C 02 00 35 04 06 00 AF 00 00 E4 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 D7 2D 00 90 00 78 [16:52:13]RAPDU: 90 00 [16:52:13]wFMCommunicate OK [16:52:13]wFMCommunicate request_size=10 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 0D 02 02 05 81 66 28 7E 97 [16:52:13]Write to MH i2c: E2 0D 00 D8 2D 80 0D 02 02 05 00 81 66 28 7E 97 00 00 AD [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 D8 2D 00 90 00 79 [16:52:13]RAPDU: 90 00 [16:52:13]wFMCommunicate OK [16:52:13]wFMCommunicate request_size=4 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 0D 03 02 [16:52:13]Write to MH i2c: E2 08 00 D9 2D 80 0D 03 02 00 00 00 00 81 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 0B 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 0B 00 D9 2D 00 1A B8 2B 40 58 6C 12 F3 90 00 88 [16:52:13]RAPDU: 1A B8 2B 40 58 6C 12 F3 90 00 [16:52:13]wFMCommunicate OK [16:52:13]SAM_PROTO_SignData done [16:52:13]FM_MakeSignedData done [16:52:13]CreateOFDProtocolMessage [16:52:13]wFMCommunicate request_size=4 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 11 00 00 [16:52:13]Write to MH i2c: E2 08 00 DA 2D 80 11 00 00 00 00 00 00 81 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 17 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 17 00 DA 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E1 [16:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:52:13]wFMCommunicate OK [16:52:13]CreateOFDProtocolMessage done [16:52:13]OFDSenderStorePacket 162885 [16:52:13]StoreOFDPacket docnum=162885 [16:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A2 9E 07 01 5C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 08 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 24 00 00 00 00 07 04 06 00 D8 53 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 3D 02 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7C 02 00 35 04 06 00 AF 81 66 28 7E 97 1A B8 2B 40 58 6C 12 F3 [16:52:13]CheckFolder [16:52:13]dirname=/storage/ofd_packets [16:52:13]CheckFolder done [16:52:13]ProducePacketName [16:52:13]name=ofd_packets/00162885 [16:52:13]NVStorageSaveData ofd_packets/00162885 [16:52:13]File name is /storage/ofd_packets/00162885 [16:52:13]Write 301 bytes [16:52:13]NVStorageSaveData done [16:52:13]OFDSenderStorePacket done [16:52:13]KKMCreateOFDPacket done [16:52:13]NVStorageSaveData kkm_last_timestamp [16:52:13]File name is /storage/kkm_last_timestamp [16:52:13]Write 4 bytes [16:52:13]NVStorageSaveData done [16:52:13]ExternCall_PrintAddStr [16:52:13]wPrintStart [16:52:13]Write to MH i2c: 01 00 00 DB 2D 08 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 07 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 07 00 DB 2D 00 00 00 00 00 FF 0F 1D [16:52:13]RasterBufferAndPrint [16:52:13]line Счет N : (1)1319494 [16:52:13]line ИНН: 02508201610067 [16:52:13]line Контрольно-Кассовый Чек [16:52:13]line ПРОДАЖА [16:52:13]line ТРК (МРК, ГНК) : 64 [16:52:13]line Товар: 2710124500 [16:52:13]line Аи-95-К-5 [16:52:13]line 11.700 * 74.40 [16:52:13]line = 870.48 [16:52:13]line НДС 12% НСП 1% [16:52:13]line > о реализуемом товаре [16:52:13]line ОКРУГЛЕНИЕ: -0.48 [16:52:13]line ИТОГО: 870.00 [16:52:13]line Внесено: 870.00 [16:52:13]line СДАЧА: 0.00 [16:52:13]line НСП 1% : 7.70 [16:52:13]line НДС 12% : 92.44 [16:52:13]line Наличными: 870.00 [16:52:13]line Безнал.: 0.00 [16:52:13]line Место: АЗС № 140 "Партнер Нефть" [16:52:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:52:13]line СНО: Общий режим [16:52:13]line Чек 197 14.07.2024 16:52 [16:52:13]line Смена: 463 ФФД: 1.0 [16:52:13]line ЗНМ: 0300000129 [16:52:13]line РНМ: 0000000000090858 [16:52:13]line Версия ККМ: 001 [16:52:13]line ФМ: 0000000000874899 [16:52:13]line ФД: 162885 [16:52:13]line ФПД: 192970299571863 [16:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T165213&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162885&fm=192970299571863&tin=02508201610067®Number=0000000000090858&sum=87000 [16:52:13]OFD Sender: Processing packet 162885 [packets to send 106, broken 105] [16:52:13]ProducePacketName [16:52:13]name=ofd_packets/00162885 [16:52:13]OFD Sender: To server: pG, [16:52:13]CommunicateWithHost lk.salyk.kg:30040 [16:52:13]ConnectInit lk.salyk.kg [16:52:13]written 0, free lines is 4095 [16:52:13]Connected sock=10 [16:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A2 9E 07 01 5C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 08 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 24 00 00 00 00 07 04 06 00 D8 53 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 3D 02 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7C 02 00 35 04 06 00 AF 81 66 28 7E 97 1A B8 2B 40 58 6C 12 F3 [16:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 12 27 47 00 81 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7C 02 00 F4 03 04 00 4A AE 93 66 B6 04 01 00 00 5B 1C 71 B7 55 00 6D 4C [16:52:14]CommunicateWithHost err = 0 [16:52:14]CheckOFDResponse [16:52:14]1017 (14) - 77093643461234 [16:52:14]1041 (16) - 0000000000874899 [16:52:14]1040 (4) - 162885 [16:52:14]1012 (4) - 14.07.2024 10:54 [16:52:14]1206 (1) - 0 [16:52:14]OFD Sender: Remove packet 162885 [16:52:14]ProducePacketName [16:52:14]name=ofd_packets/00162885 [16:52:14]NVStorageDeleteData [16:52:14]Write to MH i2c: 01 00 00 06 2E 34 [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 07 00 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 07 00 06 2E 00 00 00 00 00 DA 0C 21 [16:52:14]RasterBufferAndPrint [16:52:14]line [16:52:14]line [16:52:14]line [16:52:14]line [16:52:14]line [16:52:14]written 0, free lines is 3299 [16:52:14]MH_Cut [16:52:14]Write to MH i2c: D1 01 00 0D 2E 01 0D [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: D1 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: D1 01 00 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: D1 01 00 0D 2E 00 0C [16:52:14]Write to MH i2c: 01 00 00 0E 2E 3C [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]OFD Sender: No OFD packet to send [16:52:15]*** Cut start [16:52:15]*** Purtial cut [16:52:15]*** CUTSNS_PIN = 0 [16:52:15]*** Stage 1: CUTSNS_PIN = 1 [16:52:17]Read from MH i2c: 01 [16:52:17]MH_I2C_Read... [16:52:17]*** Stop cut motor [16:52:17]*** Cut end [16:52:17]Read from MH i2c: 01 07 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: 01 07 00 0E 2E 00 00 00 00 00 FF 0F 51 [16:52:17]process_action close_receipt done [16:52:17]requested_data is exist [16:52:17]produce_requested_data [16:52:17]requested_item fm.sn is exist - process it [16:52:17]wFMCommunicate request_size=4 [16:52:17]MH_SAM_APDU [16:52:17]CAPDU: 80 11 00 00 [16:52:17]Write to MH i2c: E2 08 00 0F 2E 80 11 00 00 00 00 00 00 B7 [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:17]Read from MH i2c: E2 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 17 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 17 00 0F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 17 [16:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:52:17]wFMCommunicate OK [16:52:17]requested_item fd.num is exist - process it [16:52:17]SAM_PROTO_GetFieldsCounters [16:52:17]wFMCommunicate request_size=4 [16:52:17]MH_SAM_APDU [16:52:17]CAPDU: 80 13 00 00 [16:52:17]Write to MH i2c: E2 08 00 10 2E 80 13 00 00 00 00 00 00 BA [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:17]Read from MH i2c: E2 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 62 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 62 00 10 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 45 7C 02 00 0E 04 04 00 CF 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 CF [16: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 45 7C 02 00 0E 04 04 00 CF 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 [16:52:17]wFMCommunicate OK [16:52:17]SAM_PROTO_GetFieldsCounters done [16:52:17]requested_item shift.num is exist - process it [16:52:17]requested_item shift.opened is exist - process it [16:52:17]req_shift_opened [16:52:17]FM_GetShiftState [16:52:17]SAM_PROTO_GetShiftState [16:52:17]wFMCommunicate request_size=4 [16:52:17]MH_SAM_APDU [16:52:17]CAPDU: 80 13 01 00 [16:52:17]Write to MH i2c: E2 08 00 11 2E 80 13 01 00 00 00 00 00 BC [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:17]Read from MH i2c: E2 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 0E 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 0E 00 11 2E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F2 [16:52:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:52:17]wFMCommunicate OK [16:52:17]SAM_PROTO_GetShiftState done [16:52:17]FM_GetShiftState done [16:52:17]req_shift_opened done [16:52:17]requested_item shift.open_date is exist - process it [16:52:17]req_shift_open_date [16:52:17]req_shift_open_date done [16:52:17]produce_requested_data done [16:52:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162885,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:52:17]process_action_free close_receipt [16:52:17]json_value_free [16:52:17]json_value_free done [16:52:17]process_json_proto returns [16:52:17]Send response to host [16:52:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162885,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:52:17]free response buf [16:52:17]execute_script done [16:52:17]execute_script returns [16:52:17]free content buf [16:52:17]Sock 9.Close socket [16:52:17]Sock 9.Thread stoped [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:20]accept exits with 7 [16:55:20]New connection [16:55:20]New thread 3066735972 created [16:55:20]Thread 3066879332 joined [16:55:20]Waiting for new connection... [16:55:20] Sock 7.Parse request [16:55:20]Sock 7.Check first char [16:55:20]Sock 7.First char is OK [16:55:20]request: POST /json_proto HTTP/1.0 [16:55:20]Method: POST [16:55:20]URL: /json_proto [16:55:20]Method is POST - this is cgi request [16:55:20]url: /json_proto [16:55:20]query_string will be loaded in cgi processing [16:55:20]execute_cgi json_proto POST (null) [16:55:20]execute_cgi path=json_proto method=POST [16:55:20]POST find Content-Length [16:55:20]Host: 172.17.39.67:8080 [16:55:20]Content-Length: 678 [16:55:20]Content-Type: application/json [16:55:20] [16:55:20]POST finish read [16:55:20]Found Content-Length = 678 [16:55:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:20]execute_script... [16:55: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)1319495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:20]POST & json_proto [16:55:20]process_json_proto [16:55:20]json parsed OK: [16:55:20]protocol is kg_v1.0 [16:55:20]action value=close_receipt [16:55:20]process_action close_receipt [16:55:20]cmd_close_receipt [16:55:20]MH_GetDate [16:55:20]Write to MH i2c: F0 00 00 12 2E 2F [16:55:20]Write i2c OK [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: F0 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: F0 09 00 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: F0 09 00 12 2E 00 FA 02 94 66 B6 85 93 66 62 [16:55:20]GetLastDocTimeStamp 1720975933 [16:55:20]current date 1720976122 [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 13 2E 80 13 01 00 00 00 00 00 BE [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 13 2E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F4 [16:55:20]RAPDU: 09 00 01 1B 16 93 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]opened in 1720915483 [16:55:20]opened+sec_in_day 1721001883 [16:55:20]quantity*price = 50056 [16:55:20]sum+1 = 50058 [16:55:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 198 14.07.2024 16:55 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162886 ФПД: 107873965144870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T165522&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162886&fm=107873965144870&tin=02508201610067®Number=0000000000090858&sum=50000 [16:55:21]StoreToDocumentArchive [16:55:21]shift 463 fd 162886 [16:55:21]save to /storage/0463/doc_00162886 [16:55:21]save last doc name /storage/0463/doc_00162886 to /storage/kkm_last_doc_name [16:55:21]save OK [16:55:21]Clear old archive folders... [16:55:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:21]tlvbuf is 0121FF30 [16:55:21]SAM_PROTO_ClearQueue [16:55:21]wFMCommunicate request_size=4 [16:55:21]MH_SAM_APDU [16:55:21]CAPDU: 80 09 00 00 [16:55:21]Write to MH i2c: E2 08 00 20 2E 80 09 00 00 00 00 00 00 C0 [16:55:21]Write i2c OK [16:55:21]MH_I2C_Read... [16:55:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:21]Read from MH i2c: E2 [16:55:21]MH_I2C_Read... [16:55:21]Read from MH i2c: E2 03 00 [16:55:21]MH_I2C_Read... [16:55:21]Read from MH i2c: E2 03 00 20 2E 00 90 00 C2 [16:55:21]RAPDU: 90 00 [16:55:21]wFMCommunicate OK [16:55:21]SAM_PROTO_ClearQueue done [16:55:21]KKMCreateOFDPacket [16:55:21]OFDProtocolAddRootSTLVToBuf [16:55:21]FM_MakeSignedData [16:55:21]FM_MakeSignedData [16:55:21]SAM_PROTO_SignData [16:55:21]wFMCommunicate request_size=4 [16:55:21]MH_SAM_APDU [16:55:21]CAPDU: 80 0D 01 02 [16:55:21]Write to MH i2c: E2 08 00 21 2E 80 0D 01 02 00 00 00 00 C8 [16:55:21]Write i2c OK [16:55:21]MH_I2C_Read... [16:55:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:21]Read from MH i2c: E2 [16:55:21]MH_I2C_Read... [16:55:21]Read from MH i2c: E2 03 00 [16:55:21]MH_I2C_Read... [16:55:21]Read from MH i2c: E2 03 00 21 2E 00 90 00 C3 [16:55:21]RAPDU: 90 00 [16:55:21]wFMCommunicate OK [16:55:21]wFMCommunicate request_size=255 [16:55:21]MH_SAM_APDU [16:55:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 C6 00 00 00 F4 03 04 00 FA 02 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7C 02 00 35 04 06 00 62 [16:55:21]Write to MH i2c: E2 02 01 22 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 C6 00 00 00 F4 03 04 00 FA 02 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7C 02 00 35 04 06 00 62 00 00 36 [16:55:21]Write i2c OK [16:55:21]MH_I2C_Read... [16:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:22]Read from MH i2c: E2 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: E2 03 00 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: E2 03 00 22 2E 00 90 00 C4 [16:55:22]RAPDU: 90 00 [16:55:22]wFMCommunicate OK [16:55:22]wFMCommunicate request_size=10 [16:55:22]MH_SAM_APDU [16:55:22]CAPDU: 80 0D 02 02 05 1C 5D 5F 7B 26 [16:55:22]Write to MH i2c: E2 0D 00 23 2E 80 0D 02 02 05 00 1C 5D 5F 7B 26 00 00 4E [16:55:22]Write i2c OK [16:55:22]MH_I2C_Read... [16:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:22]Read from MH i2c: E2 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: E2 03 00 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: E2 03 00 23 2E 00 90 00 C5 [16:55:22]RAPDU: 90 00 [16:55:22]wFMCommunicate OK [16:55:22]wFMCommunicate request_size=4 [16:55:22]MH_SAM_APDU [16:55:22]CAPDU: 80 0D 03 02 [16:55:22]Write to MH i2c: E2 08 00 24 2E 80 0D 03 02 00 00 00 00 CD [16:55:22]Write i2c OK [16:55:22]MH_I2C_Read... [16:55:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:22]Read from MH i2c: E2 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: E2 0B 00 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: E2 0B 00 24 2E 00 56 6D C6 44 45 C0 8B 17 90 00 42 [16:55:22]RAPDU: 56 6D C6 44 45 C0 8B 17 90 00 [16:55:22]wFMCommunicate OK [16:55:22]SAM_PROTO_SignData done [16:55:22]FM_MakeSignedData done [16:55:22]CreateOFDProtocolMessage [16:55:22]wFMCommunicate request_size=4 [16:55:22]MH_SAM_APDU [16:55:22]CAPDU: 80 11 00 00 [16:55:22]Write to MH i2c: E2 08 00 25 2E 80 11 00 00 00 00 00 00 CD [16:55:22]Write i2c OK [16:55:22]MH_I2C_Read... [16:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:22]Read from MH i2c: E2 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: E2 17 00 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: E2 17 00 25 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2D [16:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:55:22]wFMCommunicate OK [16:55:22]CreateOFDProtocolMessage done [16:55:22]OFDSenderStorePacket 162886 [16:55:22]StoreOFDPacket docnum=162886 [16:55:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3D A1 07 01 DC 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 C6 00 00 00 F4 03 04 00 FA 02 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7C 02 00 35 04 06 00 62 1C 5D 5F 7B 26 56 6D C6 44 45 C0 8B 17 [16:55:22]CheckFolder [16:55:22]dirname=/storage/ofd_packets [16:55:22]CheckFolder done [16:55:22]ProducePacketName [16:55:22]name=ofd_packets/00162886 [16:55:22]NVStorageSaveData ofd_packets/00162886 [16:55:22]File name is /storage/ofd_packets/00162886 [16:55:22]Write 301 bytes [16:55:22]NVStorageSaveData done [16:55:22]OFDSenderStorePacket done [16:55:22]KKMCreateOFDPacket done [16:55:22]NVStorageSaveData kkm_last_timestamp [16:55:22]File name is /storage/kkm_last_timestamp [16:55:22]Write 4 bytes [16:55:22]NVStorageSaveData done [16:55:22]ExternCall_PrintAddStr [16:55:22]wPrintStart [16:55:22]Write to MH i2c: 01 00 00 26 2E 54 [16:55:22]Write i2c OK [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: 01 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: 01 07 00 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: 01 07 00 26 2E 00 00 00 00 00 FF 0F 69 [16:55:22]RasterBufferAndPrint [16:55:22]line Счет N : (1)1319495 [16:55:22]line ИНН: 02508201610067 [16:55:22]line Контрольно-Кассовый Чек [16:55:22]line ПРОДАЖА [16:55:22]line ТРК (МРК, ГНК) : 53 [16:55:22]line Товар: 2710124130 [16:55:22]line Аи-92-К-5 [16:55:22]line 7.550 * 66.30 [16:55:22]line = 500.57 [16:55:22]line НДС 12% НСП 1% [16:55:22]line > о реализуемом товаре [16:55:22]line ОКРУГЛЕНИЕ: -0.57 [16:55:22]line ИТОГО: 500.00 [16:55:22]line Внесено: 500.00 [16:55:22]line СДАЧА: 0.00 [16:55:22]line НСП 1% : 4.43 [16:55:22]line НДС 12% : 53.16 [16:55:22]line Наличными: 500.00 [16:55:22]line Безнал.: 0.00 [16:55:22]line Место: АЗС № 140 "Партнер Нефть" [16:55:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:55:22]line СНО: Общий режим [16:55:22]line Чек 198 14.07.2024 16:55 [16:55:22]line Смена: 463 ФФД: 1.0 [16:55:22]line ЗНМ: 0300000129 [16:55:22]line РНМ: 0000000000090858 [16:55:22]line Версия ККМ: 001 [16:55:22]line ФМ: 0000000000874899 [16:55:22]line ФД: 162886 [16:55:22]line ФПД: 107873965144870 [16:55:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T165522&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162886&fm=107873965144870&tin=02508201610067®Number=0000000000090858&sum=50000 [16:55:22]written 0, free lines is 4095 [16:55:22]OFD Sender: Processing packet 162886 [packets to send 106, broken 105] [16:55:22]ProducePacketName [16:55:22]name=ofd_packets/00162886 [16:55:22]OFD Sender: To server: pG, [16:55:22]CommunicateWithHost lk.salyk.kg:30040 [16:55:22]ConnectInit lk.salyk.kg [16:55:22]Connected sock=10 [16:55:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3D A1 07 01 DC 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 C6 00 00 00 F4 03 04 00 FA 02 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7C 02 00 35 04 06 00 62 1C 5D 5F 7B 26 56 6D C6 44 45 C0 8B 17 [16:55:22]Write to MH i2c: 01 00 00 51 2E 7F [16:55:22]Write i2c OK [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: 01 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: 01 07 00 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: 01 07 00 51 2E 00 00 00 00 00 DA 0C 6C [16:55:22]RasterBufferAndPrint [16:55:22]line [16:55:22]line [16:55:22]line [16:55:22]line [16:55:22]line [16:55:22]written 0, free lines is 3296 [16:55:22]MH_Cut [16:55:22]Write to MH i2c: D1 01 00 58 2E 01 58 [16:55:22]Write i2c OK [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: D1 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: D1 01 00 [16:55:22]MH_I2C_Read... [16:55:22]Read from MH i2c: D1 01 00 58 2E 00 57 [16:55:22]Write to MH i2c: 01 00 00 59 2E 87 [16:55:22]Write i2c OK [16:55:22]MH_I2C_Read... [16:55:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9C 22 47 00 C1 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7C 02 00 F4 03 04 00 07 AF 93 66 B6 04 01 00 00 7E 2A 93 0F D7 34 AC A1 [16:55:22]CommunicateWithHost err = 0 [16:55:22]CheckOFDResponse [16:55:22]1017 (14) - 77093643461234 [16:55:22]1041 (16) - 0000000000874899 [16:55:22]1040 (4) - 162886 [16:55:22]1012 (4) - 14.07.2024 10:57 [16:55:22]1206 (1) - 0 [16:55:22]OFD Sender: Remove packet 162886 [16:55:22]ProducePacketName [16:55:22]name=ofd_packets/00162886 [16:55:22]NVStorageDeleteData [16:55:23]OFD Sender: No OFD packet to send [16:55:23]*** Cut start [16:55:23]*** Purtial cut [16:55:23]*** Stage 1: CUTSNS_PIN = 1 [16:55:23]Read from MH i2c: 01 [16:55:23]MH_I2C_Read... [16:55:23]*** Stop cut motor [16:55:23]*** Cut end [16:55:23]Read from MH i2c: 01 07 00 [16:55:23]MH_I2C_Read... [16:55:23]Read from MH i2c: 01 07 00 59 2E 00 00 00 00 00 FF 0F 9C [16:55:23]process_action close_receipt done [16:55:23]requested_data is exist [16:55:23]produce_requested_data [16:55:23]requested_item fm.sn is exist - process it [16:55:23]wFMCommunicate request_size=4 [16:55:23]MH_SAM_APDU [16:55:23]CAPDU: 80 11 00 00 [16:55:23]Write to MH i2c: E2 08 00 5A 2E 80 11 00 00 00 00 00 00 02 [16:55:23]Write i2c OK [16:55:23]MH_I2C_Read... [16:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:23]Read from MH i2c: E2 [16:55:23]MH_I2C_Read... [16:55:23]Read from MH i2c: E2 17 00 [16:55:23]MH_I2C_Read... [16:55:23]Read from MH i2c: E2 17 00 5A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 62 [16:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:55:23]wFMCommunicate OK [16:55:23]requested_item fd.num is exist - process it [16:55:23]SAM_PROTO_GetFieldsCounters [16:55:23]wFMCommunicate request_size=4 [16:55:23]MH_SAM_APDU [16:55:23]CAPDU: 80 13 00 00 [16:55:23]Write to MH i2c: E2 08 00 5B 2E 80 13 00 00 00 00 00 00 05 [16:55:23]Write i2c OK [16:55:23]MH_I2C_Read... [16:55:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:23]Read from MH i2c: E2 [16:55:23]MH_I2C_Read... [16:55:23]Read from MH i2c: E2 62 00 [16:55:23]MH_I2C_Read... [16:55:23]Read from MH i2c: E2 62 00 5B 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 46 7C 02 00 0E 04 04 00 CF 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 1E [16:55:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 46 7C 02 00 0E 04 04 00 CF 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 [16:55:23]wFMCommunicate OK [16:55:23]SAM_PROTO_GetFieldsCounters done [16:55:23]requested_item shift.num is exist - process it [16:55:23]requested_item shift.opened is exist - process it [16:55:23]req_shift_opened [16:55:23]FM_GetShiftState [16:55:23]SAM_PROTO_GetShiftState [16:55:23]wFMCommunicate request_size=4 [16:55:23]MH_SAM_APDU [16:55:23]CAPDU: 80 13 01 00 [16:55:23]Write to MH i2c: E2 08 00 5C 2E 80 13 01 00 00 00 00 00 07 [16:55:23]Write i2c OK [16:55:23]MH_I2C_Read... [16:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:23]Read from MH i2c: E2 [16:55:23]MH_I2C_Read... [16:55:23]Read from MH i2c: E2 0E 00 [16:55:23]MH_I2C_Read... [16:55:23]Read from MH i2c: E2 0E 00 5C 2E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3D [16:55:23]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:55:23]wFMCommunicate OK [16:55:23]SAM_PROTO_GetShiftState done [16:55:23]FM_GetShiftState done [16:55:23]req_shift_opened done [16:55:23]requested_item shift.open_date is exist - process it [16:55:23]req_shift_open_date [16:55:23]req_shift_open_date done [16:55:23]produce_requested_data done [16:55:23]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162886,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:55:23]process_action_free close_receipt [16:55:23]json_value_free [16:55:23]json_value_free done [16:55:23]process_json_proto returns [16:55:23]Send response to host [16:55:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162886,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:55:23]free response buf [16:55:24]execute_script done [16:55:24]execute_script returns [16:55:24]free content buf [16:55:24]Sock 7.Close socket [16:55:24]Sock 7.Thread stoped [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]accept exits with 9 [16:56:33]New connection [16:56:33]New thread 3066879332 created [16:56:33]Thread 3066735972 joined [16:56:33]Waiting for new connection... [16:56:33] Sock 9.Parse request [16:56:33]Sock 9.Check first char [16:56:33]Sock 9.First char is OK [16:56:33]request: POST /json_proto HTTP/1.0 [16:56:33]Method: POST [16:56:33]URL: /json_proto [16:56:33]Method is POST - this is cgi request [16:56:33]url: /json_proto [16:56:33]query_string will be loaded in cgi processing [16:56:33]execute_cgi json_proto POST (null) [16:56:33]execute_cgi path=json_proto method=POST [16:56:33]POST find Content-Length [16:56:33]Host: 172.17.39.67:8080 [16:56:33]Content-Length: 683 [16:56:33]Content-Type: application/json [16:56:33] [16:56:33]POST finish read [16:56:33]Found Content-Length = 683 [16:56:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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:33]execute_script... [16:56:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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:33]POST & json_proto [16:56:33]process_json_proto [16:56:33]json parsed OK: [16:56:33]protocol is kg_v1.0 [16:56:33]action value=close_receipt [16:56:33]process_action close_receipt [16:56:33]cmd_close_receipt [16:56:33]MH_GetDate [16:56:33]Write to MH i2c: F0 00 00 5D 2E 7A [16:56:33]Write i2c OK [16:56:33]MH_I2C_Read... [16:56:33]Read from MH i2c: F0 [16:56:33]MH_I2C_Read... [16:56:33]Read from MH i2c: F0 09 00 [16:56:33]MH_I2C_Read... [16:56:33]Read from MH i2c: F0 09 00 5D 2E 00 43 03 94 66 B6 85 93 66 F7 [16:56:33]GetLastDocTimeStamp 1720976122 [16:56:33]current date 1720976195 [16:56:33]FM_GetShiftState [16:56:33]SAM_PROTO_GetShiftState [16:56:33]wFMCommunicate request_size=4 [16:56:33]MH_SAM_APDU [16:56:33]CAPDU: 80 13 01 00 [16:56:33]Write to MH i2c: E2 08 00 5E 2E 80 13 01 00 00 00 00 00 09 [16:56:33]Write i2c OK [16:56:33]MH_I2C_Read... [16:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:33]Read from MH i2c: E2 [16:56:33]MH_I2C_Read... [16:56:33]Read from MH i2c: E2 0E 00 [16:56:33]MH_I2C_Read... [16:56:33]Read from MH i2c: E2 0E 00 5E 2E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3F [16:56:33]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:56:33]wFMCommunicate OK [16:56:33]SAM_PROTO_GetShiftState done [16:56:33]FM_GetShiftState done [16:56:33]opened in 1720915483 [16:56:33]opened+sec_in_day 1721001883 [16:56:33]quantity*price = 100068 [16:56:33]sum+1 = 100069 [16:56:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 199 14.07.2024 16:56 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162887 ФПД: 60819381472215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T165635&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162887&fm=60819381472215&tin=02508201610067®Number=0000000000090858&sum=100000 [16:56:34]StoreToDocumentArchive [16:56:34]shift 463 fd 162887 [16:56:34]save to /storage/0463/doc_00162887 [16:56:34]save last doc name /storage/0463/doc_00162887 to /storage/kkm_last_doc_name [16:56:34]save OK [16:56:34]Clear old archive folders... [16:56:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:34]tlvbuf is B6D96A10 [16:56:34]SAM_PROTO_ClearQueue [16:56:34]wFMCommunicate request_size=4 [16:56:34]MH_SAM_APDU [16:56:34]CAPDU: 80 09 00 00 [16:56:34]Write to MH i2c: E2 08 00 6B 2E 80 09 00 00 00 00 00 00 0B [16:56:34]Write i2c OK [16:56:34]MH_I2C_Read... [16:56:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:34]Read from MH i2c: E2 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 03 00 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 03 00 6B 2E 00 90 00 0D [16:56:34]RAPDU: 90 00 [16:56:34]wFMCommunicate OK [16:56:34]SAM_PROTO_ClearQueue done [16:56:34]KKMCreateOFDPacket [16:56:34]OFDProtocolAddRootSTLVToBuf [16:56:34]FM_MakeSignedData [16:56:34]FM_MakeSignedData [16:56:34]SAM_PROTO_SignData [16:56:34]wFMCommunicate request_size=4 [16:56:34]MH_SAM_APDU [16:56:34]CAPDU: 80 0D 01 02 [16:56:34]Write to MH i2c: E2 08 00 6C 2E 80 0D 01 02 00 00 00 00 13 [16:56:34]Write i2c OK [16:56:34]MH_I2C_Read... [16:56:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:34]Read from MH i2c: E2 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 03 00 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 03 00 6C 2E 00 90 00 0E [16:56:34]RAPDU: 90 00 [16:56:34]wFMCommunicate OK [16:56:34]wFMCommunicate request_size=255 [16:56:34]MH_SAM_APDU [16:56:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 43 03 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7C 02 00 35 04 06 00 37 [16:56:34]Write to MH i2c: E2 02 01 6D 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 43 03 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7C 02 00 35 04 06 00 37 00 00 CF [16:56:34]Write i2c OK [16:56:34]MH_I2C_Read... [16:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:34]Read from MH i2c: E2 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 03 00 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 03 00 6D 2E 00 90 00 0F [16:56:34]RAPDU: 90 00 [16:56:34]wFMCommunicate OK [16:56:34]wFMCommunicate request_size=10 [16:56:34]MH_SAM_APDU [16:56:34]CAPDU: 80 0D 02 02 05 50 9D A0 CB D7 [16:56:34]Write to MH i2c: E2 0D 00 6E 2E 80 0D 02 02 05 00 50 9D A0 CB D7 00 00 4F [16:56:34]Write i2c OK [16:56:34]MH_I2C_Read... [16:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:34]Read from MH i2c: E2 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 03 00 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 03 00 6E 2E 00 90 00 10 [16:56:34]RAPDU: 90 00 [16:56:34]wFMCommunicate OK [16:56:34]wFMCommunicate request_size=4 [16:56:34]MH_SAM_APDU [16:56:34]CAPDU: 80 0D 03 02 [16:56:34]Write to MH i2c: E2 08 00 6F 2E 80 0D 03 02 00 00 00 00 18 [16:56:34]Write i2c OK [16:56:34]MH_I2C_Read... [16:56:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:34]Read from MH i2c: E2 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 0B 00 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 0B 00 6F 2E 00 37 60 F2 E6 29 2A B5 F3 90 00 83 [16:56:34]RAPDU: 37 60 F2 E6 29 2A B5 F3 90 00 [16:56:34]wFMCommunicate OK [16:56:34]SAM_PROTO_SignData done [16:56:34]FM_MakeSignedData done [16:56:34]CreateOFDProtocolMessage [16:56:34]wFMCommunicate request_size=4 [16:56:34]MH_SAM_APDU [16:56:34]CAPDU: 80 11 00 00 [16:56:34]Write to MH i2c: E2 08 00 70 2E 80 11 00 00 00 00 00 00 18 [16:56:34]Write i2c OK [16:56:34]MH_I2C_Read... [16:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:34]Read from MH i2c: E2 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 17 00 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: E2 17 00 70 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 78 [16:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:56:34]wFMCommunicate OK [16:56:34]CreateOFDProtocolMessage done [16:56:34]OFDSenderStorePacket 162887 [16:56:34]StoreOFDPacket docnum=162887 [16:56:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 AA C9 07 01 1D 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 43 03 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7C 02 00 35 04 06 00 37 50 9D A0 CB D7 37 60 F2 E6 29 2A B5 F3 [16:56:34]CheckFolder [16:56:34]dirname=/storage/ofd_packets [16:56:34]CheckFolder done [16:56:34]ProducePacketName [16:56:34]name=ofd_packets/00162887 [16:56:34]NVStorageSaveData ofd_packets/00162887 [16:56:34]File name is /storage/ofd_packets/00162887 [16:56:34]Write 301 bytes [16:56:34]NVStorageSaveData done [16:56:34]OFDSenderStorePacket done [16:56:34]KKMCreateOFDPacket done [16:56:34]NVStorageSaveData kkm_last_timestamp [16:56:34]File name is /storage/kkm_last_timestamp [16:56:34]Write 4 bytes [16:56:34]NVStorageSaveData done [16:56:34]ExternCall_PrintAddStr [16:56:34]wPrintStart [16:56:34]Write to MH i2c: 01 00 00 71 2E 9F [16:56:34]Write i2c OK [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: 01 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: 01 07 00 [16:56:34]MH_I2C_Read... [16:56:34]Read from MH i2c: 01 07 00 71 2E 00 00 00 00 00 FF 0F B4 [16:56:34]RasterBufferAndPrint [16:56:34]line Счет N : (1)1319496 [16:56:34]line ИНН: 02508201610067 [16:56:34]line Контрольно-Кассовый Чек [16:56:34]line ПРОДАЖА [16:56:34]line ТРК (МРК, ГНК) : 64 [16:56:34]line Товар: 2710124500 [16:56:34]line Аи-95-К-5 [16:56:34]line 13.450 * 74.40 [16:56:34]line = 1000.68 [16:56:34]line НДС 12% НСП 1% [16:56:34]line > о реализуемом товаре [16:56:34]line ОКРУГЛЕНИЕ: -0.68 [16:56:34]line ИТОГО: 1000.00 [16:56:34]line Внесено: 1000.00 [16:56:34]line СДАЧА: 0.00 [16:56:34]line НСП 1% : 8.86 [16:56:34]line НДС 12% : 106.27 [16:56:34]line Наличными: 1000.00 [16:56:34]line Безнал.: 0.00 [16:56:34]line Место: АЗС № 140 "Партнер Нефть" [16:56:34]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:56:34]line СНО: Общий режим [16:56:34]line Чек 199 14.07.2024 16:56 [16:56:34]line Смена: 463 ФФД: 1.0 [16:56:34]line ЗНМ: 0300000129 [16:56:34]line РНМ: 0000000000090858 [16:56:34]line Версия ККМ: 001 [16:56:34]line ФМ: 0000000000874899 [16:56:34]line ФД: 162887 [16:56:34]line ФПД: 60819381472215 [16:56:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T165635&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162887&fm=60819381472215&tin=02508201610067®Number=0000000000090858&sum=100000 [16:56:35]OFD Sender: Processing packet 162887 [packets to send 106, broken 105] [16:56:35]ProducePacketName [16:56:35]name=ofd_packets/00162887 [16:56:35]OFD Sender: To server: pG, [16:56:35]CommunicateWithHost lk.salyk.kg:30040 [16:56:35]ConnectInit lk.salyk.kg [16:56:35]written 0, free lines is 4095 [16:56:35]Connected sock=10 [16:56:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 AA C9 07 01 1D 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 43 03 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7C 02 00 35 04 06 00 37 50 9D A0 CB D7 37 60 F2 E6 29 2A B5 F3 [16:56:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 16 20 47 00 96 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7C 02 00 F4 03 04 00 50 AF 93 66 B6 04 01 00 00 E7 12 29 C0 31 B1 6A 38 [16:56:35]CommunicateWithHost err = 0 [16:56:35]CheckOFDResponse [16:56:35]1017 (14) - 77093643461234 [16:56:35]1041 (16) - 0000000000874899 [16:56:35]1040 (4) - 162887 [16:56:35]1012 (4) - 14.07.2024 10:58 [16:56:35]1206 (1) - 0 [16:56:35]OFD Sender: Remove packet 162887 [16:56:35]ProducePacketName [16:56:35]name=ofd_packets/00162887 [16:56:35]NVStorageDeleteData [16:56:35]Write to MH i2c: 01 00 00 9C 2E CA [16:56:35]Write i2c OK [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: 01 [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: 01 07 00 [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: 01 07 00 9C 2E 00 00 00 00 00 E3 0C C0 [16:56:35]RasterBufferAndPrint [16:56:35]line [16:56:35]line [16:56:35]line [16:56:35]line [16:56:35]line [16:56:35]written 0, free lines is 3305 [16:56:35]MH_Cut [16:56:35]Write to MH i2c: D1 01 00 A3 2E 01 A3 [16:56:35]Write i2c OK [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: D1 [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: D1 01 00 [16:56:35]MH_I2C_Read... [16:56:35]Read from MH i2c: D1 01 00 A3 2E 00 A2 [16:56:35]Write to MH i2c: 01 00 00 A4 2E D2 [16:56:35]Write i2c OK [16:56:35]MH_I2C_Read... [16:56:36]OFD Sender: No OFD packet to send [16:56:36]*** Cut start [16:56:36]*** Purtial cut [16:56:36]*** CUTSNS_PIN = 0 [16:56:36]*** Stage 1: CUTSNS_PIN = 1 [16:56:38]Read from MH i2c: 01 [16:56:38]MH_I2C_Read... [16:56:38]*** Stop cut motor [16:56:38]*** Cut end [16:56:38]Read from MH i2c: 01 07 00 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: 01 07 00 A4 2E 00 00 00 00 00 FF 0F E7 [16:56:38]process_action close_receipt done [16:56:38]requested_data is exist [16:56:38]produce_requested_data [16:56:38]requested_item fm.sn is exist - process it [16:56:38]wFMCommunicate request_size=4 [16:56:38]MH_SAM_APDU [16:56:38]CAPDU: 80 11 00 00 [16:56:38]Write to MH i2c: E2 08 00 A5 2E 80 11 00 00 00 00 00 00 4D [16:56:38]Write i2c OK [16:56:38]MH_I2C_Read... [16:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:38]Read from MH i2c: E2 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 17 00 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 17 00 A5 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AD [16:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:56:38]wFMCommunicate OK [16:56:38]requested_item fd.num is exist - process it [16:56:38]SAM_PROTO_GetFieldsCounters [16:56:38]wFMCommunicate request_size=4 [16:56:38]MH_SAM_APDU [16:56:38]CAPDU: 80 13 00 00 [16:56:38]Write to MH i2c: E2 08 00 A6 2E 80 13 00 00 00 00 00 00 50 [16:56:38]Write i2c OK [16:56:38]MH_I2C_Read... [16:56:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:38]Read from MH i2c: E2 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 62 00 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 62 00 A6 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 47 7C 02 00 0E 04 04 00 CF 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 6D [16:56:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 47 7C 02 00 0E 04 04 00 CF 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 [16:56:38]wFMCommunicate OK [16:56:38]SAM_PROTO_GetFieldsCounters done [16:56:38]requested_item shift.num is exist - process it [16:56:38]requested_item shift.opened is exist - process it [16:56:38]req_shift_opened [16:56:38]FM_GetShiftState [16:56:38]SAM_PROTO_GetShiftState [16:56:38]wFMCommunicate request_size=4 [16:56:38]MH_SAM_APDU [16:56:38]CAPDU: 80 13 01 00 [16:56:38]Write to MH i2c: E2 08 00 A7 2E 80 13 01 00 00 00 00 00 52 [16:56:38]Write i2c OK [16:56:38]MH_I2C_Read... [16:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:38]Read from MH i2c: E2 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 0E 00 [16:56:38]MH_I2C_Read... [16:56:38]Read from MH i2c: E2 0E 00 A7 2E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 88 [16:56:38]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:56:38]wFMCommunicate OK [16:56:38]SAM_PROTO_GetShiftState done [16:56:38]FM_GetShiftState done [16:56:38]req_shift_opened done [16:56:38]requested_item shift.open_date is exist - process it [16:56:38]req_shift_open_date [16:56:38]req_shift_open_date done [16:56:38]produce_requested_data done [16:56:38]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162887,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:56:38]process_action_free close_receipt [16:56:38]json_value_free [16:56:38]json_value_free done [16:56:38]process_json_proto returns [16:56:38]Send response to host [16:56:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162887,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:56:38]free response buf [16:56:38]execute_script done [16:56:38]execute_script returns [16:56:38]free content buf [16:56:38]Sock 9.Close socket [16:56:38]Sock 9.Thread stoped [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:08]accept exits with 7 [16:57:08]New connection [16:57:08]New thread 3066735972 created [16:57:08]Thread 3066879332 joined [16:57:08]Waiting for new connection... [16:57:08] Sock 7.Parse request [16:57:08]Sock 7.Check first char [16:57:08]Sock 7.First char is OK [16:57:08]request: POST /json_proto HTTP/1.0 [16:57:08]Method: POST [16:57:08]URL: /json_proto [16:57:08]Method is POST - this is cgi request [16:57:08]url: /json_proto [16:57:08]query_string will be loaded in cgi processing [16:57:08]execute_cgi json_proto POST (null) [16:57:08]execute_cgi path=json_proto method=POST [16:57:08]POST find Content-Length [16:57:08]Host: 172.17.39.67:8080 [16:57:08]Content-Length: 678 [16:57:08]Content-Type: application/json [16:57:08] [16:57:08]POST finish read [16:57:08]Found Content-Length = 678 [16:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:08]execute_script... [16:57: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)1319497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:08]POST & json_proto [16:57:08]process_json_proto [16:57:08]json parsed OK: [16:57:08]protocol is kg_v1.0 [16:57:08]action value=close_receipt [16:57:08]process_action close_receipt [16:57:08]cmd_close_receipt [16:57:08]MH_GetDate [16:57:08]Write to MH i2c: F0 00 00 A8 2E C5 [16:57:08]Write i2c OK [16:57:08]MH_I2C_Read... [16:57:08]Read from MH i2c: F0 [16:57:08]MH_I2C_Read... [16:57:08]Read from MH i2c: F0 09 00 [16:57:08]MH_I2C_Read... [16:57:08]Read from MH i2c: F0 09 00 A8 2E 00 66 03 94 66 B6 85 93 66 65 [16:57:08]GetLastDocTimeStamp 1720976195 [16:57:08]current date 1720976230 [16:57:08]FM_GetShiftState [16:57:08]SAM_PROTO_GetShiftState [16:57:08]wFMCommunicate request_size=4 [16:57:08]MH_SAM_APDU [16:57:08]CAPDU: 80 13 01 00 [16:57:08]Write to MH i2c: E2 08 00 A9 2E 80 13 01 00 00 00 00 00 54 [16:57:08]Write i2c OK [16:57:08]MH_I2C_Read... [16:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:08]Read from MH i2c: E2 [16:57:08]MH_I2C_Read... [16:57:08]Read from MH i2c: E2 0E 00 [16:57:08]MH_I2C_Read... [16:57:08]Read from MH i2c: E2 0E 00 A9 2E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8A [16:57:08]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:57:08]wFMCommunicate OK [16:57:08]SAM_PROTO_GetShiftState done [16:57:08]FM_GetShiftState done [16:57:08]opened in 1720915483 [16:57:08]opened+sec_in_day 1721001883 [16:57:08]quantity*price = 50071 [16:57:08]sum+1 = 50072 [16:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 200 14.07.2024 16:57 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162888 ФПД: 281454623678678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T165710&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162888&fm=281454623678678&tin=02508201610067®Number=0000000000090858&sum=50000 [16:57:09]StoreToDocumentArchive [16:57:09]shift 463 fd 162888 [16:57:09]save to /storage/0463/doc_00162888 [16:57:09]save last doc name /storage/0463/doc_00162888 to /storage/kkm_last_doc_name [16:57:09]save OK [16:57:09]Clear old archive folders... [16:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:09]tlvbuf is 01387330 [16:57:09]SAM_PROTO_ClearQueue [16:57:09]wFMCommunicate request_size=4 [16:57:09]MH_SAM_APDU [16:57:09]CAPDU: 80 09 00 00 [16:57:09]Write to MH i2c: E2 08 00 B6 2E 80 09 00 00 00 00 00 00 56 [16:57:09]Write i2c OK [16:57:09]MH_I2C_Read... [16:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:09]Read from MH i2c: E2 [16:57:09]MH_I2C_Read... [16:57:09]Read from MH i2c: E2 03 00 [16:57:09]MH_I2C_Read... [16:57:09]Read from MH i2c: E2 03 00 B6 2E 00 90 00 58 [16:57:09]RAPDU: 90 00 [16:57:09]wFMCommunicate OK [16:57:09]SAM_PROTO_ClearQueue done [16:57:09]KKMCreateOFDPacket [16:57:09]OFDProtocolAddRootSTLVToBuf [16:57:09]FM_MakeSignedData [16:57:09]FM_MakeSignedData [16:57:09]SAM_PROTO_SignData [16:57:09]wFMCommunicate request_size=4 [16:57:09]MH_SAM_APDU [16:57:09]CAPDU: 80 0D 01 02 [16:57:09]Write to MH i2c: E2 08 00 B7 2E 80 0D 01 02 00 00 00 00 5E [16:57:09]Write i2c OK [16:57:09]MH_I2C_Read... [16:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:09]Read from MH i2c: E2 [16:57:09]MH_I2C_Read... [16:57:09]Read from MH i2c: E2 03 00 [16:57:09]MH_I2C_Read... [16:57:09]Read from MH i2c: E2 03 00 B7 2E 00 90 00 59 [16:57:09]RAPDU: 90 00 [16:57:09]wFMCommunicate OK [16:57:09]wFMCommunicate request_size=255 [16:57:09]MH_SAM_APDU [16:57: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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 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 C5 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 C8 00 00 00 F4 03 04 00 66 03 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7C 02 00 35 04 06 00 FF [16:57:09]Write to MH i2c: E2 02 01 B8 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 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 C5 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 C8 00 00 00 F4 03 04 00 66 03 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7C 02 00 35 04 06 00 FF 00 00 E4 [16:57:09]Write i2c OK [16:57:09]MH_I2C_Read... [16:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:10]Read from MH i2c: E2 [16:57:10]MH_I2C_Read... [16:57:10]Read from MH i2c: E2 03 00 [16:57:10]MH_I2C_Read... [16:57:10]Read from MH i2c: E2 03 00 B8 2E 00 90 00 5A [16:57:10]RAPDU: 90 00 [16:57:10]wFMCommunicate OK [16:57:10]wFMCommunicate request_size=10 [16:57:10]MH_SAM_APDU [16:57:10]CAPDU: 80 0D 02 02 05 FB 42 DD 60 D6 [16:57:10]Write to MH i2c: E2 0D 00 B9 2E 80 0D 02 02 05 00 FB 42 DD 60 D6 00 00 BB [16:57:10]Write i2c OK [16:57:10]MH_I2C_Read... [16:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:10]Read from MH i2c: E2 [16:57:10]MH_I2C_Read... [16:57:10]Read from MH i2c: E2 03 00 [16:57:10]MH_I2C_Read... [16:57:10]Read from MH i2c: E2 03 00 B9 2E 00 90 00 5B [16:57:10]RAPDU: 90 00 [16:57:10]wFMCommunicate OK [16:57:10]wFMCommunicate request_size=4 [16:57:10]MH_SAM_APDU [16:57:10]CAPDU: 80 0D 03 02 [16:57:10]Write to MH i2c: E2 08 00 BA 2E 80 0D 03 02 00 00 00 00 63 [16:57:10]Write i2c OK [16:57:10]MH_I2C_Read... [16:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:10]Read from MH i2c: E2 [16:57:10]MH_I2C_Read... [16:57:10]Read from MH i2c: E2 0B 00 [16:57:10]MH_I2C_Read... [16:57:10]Read from MH i2c: E2 0B 00 BA 2E 00 22 A6 51 B8 98 22 ED 14 90 00 F0 [16:57:10]RAPDU: 22 A6 51 B8 98 22 ED 14 90 00 [16:57:10]wFMCommunicate OK [16:57:10]SAM_PROTO_SignData done [16:57:10]FM_MakeSignedData done [16:57:10]CreateOFDProtocolMessage [16:57:10]wFMCommunicate request_size=4 [16:57:10]MH_SAM_APDU [16:57:10]CAPDU: 80 11 00 00 [16:57:10]Write to MH i2c: E2 08 00 BB 2E 80 11 00 00 00 00 00 00 63 [16:57:10]Write i2c OK [16:57:10]MH_I2C_Read... [16:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:10]Read from MH i2c: E2 [16:57:10]MH_I2C_Read... [16:57:10]Read from MH i2c: E2 17 00 [16:57:10]MH_I2C_Read... [16:57:10]Read from MH i2c: E2 17 00 BB 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C3 [16:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:57:10]wFMCommunicate OK [16:57:10]CreateOFDProtocolMessage done [16:57:10]OFDSenderStorePacket 162888 [16:57:10]StoreOFDPacket docnum=162888 [16:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3D E3 07 01 A6 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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 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 C5 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 C8 00 00 00 F4 03 04 00 66 03 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7C 02 00 35 04 06 00 FF FB 42 DD 60 D6 22 A6 51 B8 98 22 ED 14 [16:57:10]CheckFolder [16:57:10]dirname=/storage/ofd_packets [16:57:10]CheckFolder done [16:57:10]ProducePacketName [16:57:10]name=ofd_packets/00162888 [16:57:10]NVStorageSaveData ofd_packets/00162888 [16:57:10]File name is /storage/ofd_packets/00162888 [16:57:10]Write 301 bytes [16:57:10]NVStorageSaveData done [16:57:10]OFDSenderStorePacket done [16:57:10]KKMCreateOFDPacket done [16:57:10]NVStorageSaveData kkm_last_timestamp [16:57:10]File name is /storage/kkm_last_timestamp [16:57:10]Write 4 bytes [16:57:10]NVStorageSaveData done [16:57:10]ExternCall_PrintAddStr [16:57:10]wPrintStart [16:57:10]Write to MH i2c: 01 00 00 BC 2E EA [16:57:10]Write i2c OK [16:57:10]MH_I2C_Read... [16:57:10]Read from MH i2c: 01 [16:57:10]MH_I2C_Read... [16:57:10]Read from MH i2c: 01 07 00 [16:57:10]MH_I2C_Read... [16:57:10]Read from MH i2c: 01 07 00 BC 2E 00 00 00 00 00 FF 0F FF [16:57:10]RasterBufferAndPrint [16:57:10]line Счет N : (1)1319497 [16:57:10]line ИНН: 02508201610067 [16:57:10]line Контрольно-Кассовый Чек [16:57:10]line ПРОДАЖА [16:57:10]line ТРК (МРК, ГНК) : 44 [16:57:10]line Товар: 2710124500 [16:57:10]line Аи-95-К-5 [16:57:10]line 6.730 * 74.40 [16:57:10]line = 500.71 [16:57:10]line НДС 12% НСП 1% [16:57:10]line > о реализуемом товаре [16:57:10]line ОКРУГЛЕНИЕ: -0.71 [16:57:10]line ИТОГО: 500.00 [16:57:10]line Внесено: 500.00 [16:57:10]line СДАЧА: 0.00 [16:57:10]line НСП 1% : 4.43 [16:57:10]line НДС 12% : 53.17 [16:57:10]line Наличными: 500.00 [16:57:10]line Безнал.: 0.00 [16:57:10]line Место: АЗС № 140 "Партнер Нефть" [16:57:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:57:10]line СНО: Общий режим [16:57:10]line Чек 200 14.07.2024 16:57 [16:57:10]line Смена: 463 ФФД: 1.0 [16:57:10]line ЗНМ: 0300000129 [16:57:10]line РНМ: 0000000000090858 [16:57:10]line Версия ККМ: 001 [16:57:10]line ФМ: 0000000000874899 [16:57:10]line ФД: 162888 [16:57:10]line ФПД: 281454623678678 [16:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T165710&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162888&fm=281454623678678&tin=02508201610067®Number=0000000000090858&sum=50000 [16:57:10]OFD Sender: Processing packet 162888 [packets to send 106, broken 105] [16:57:10]ProducePacketName [16:57:10]name=ofd_packets/00162888 [16:57:10]OFD Sender: To server: pG, [16:57:10]CommunicateWithHost lk.salyk.kg:30040 [16:57:10]ConnectInit lk.salyk.kg [16:57:10]written 0, free lines is 4095 [16:57:10]Connected sock=10 [16:57:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3D E3 07 01 A6 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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 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 C5 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 C8 00 00 00 F4 03 04 00 66 03 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7C 02 00 35 04 06 00 FF FB 42 DD 60 D6 22 A6 51 B8 98 22 ED 14 [16:57:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B0 D6 47 00 49 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7C 02 00 F4 03 04 00 73 AF 93 66 B6 04 01 00 00 F6 77 FB F2 68 F9 E0 D2 [16:57:11]CommunicateWithHost err = 0 [16:57:11]CheckOFDResponse [16:57:11]1017 (14) - 77093643461234 [16:57:11]1041 (16) - 0000000000874899 [16:57:11]1040 (4) - 162888 [16:57:11]1012 (4) - 14.07.2024 10:58 [16:57:11]1206 (1) - 0 [16:57:11]OFD Sender: Remove packet 162888 [16:57:11]ProducePacketName [16:57:11]name=ofd_packets/00162888 [16:57:11]NVStorageDeleteData [16:57:11]Write to MH i2c: 01 00 00 E7 2E 15 [16:57:11]Write i2c OK [16:57:11]MH_I2C_Read... [16:57:11]Read from MH i2c: 01 [16:57:11]MH_I2C_Read... [16:57:11]Read from MH i2c: 01 07 00 [16:57:11]MH_I2C_Read... [16:57:11]Read from MH i2c: 01 07 00 E7 2E 00 00 00 00 00 DA 0C 02 [16:57:11]RasterBufferAndPrint [16:57:11]line [16:57:11]line [16:57:11]line [16:57:11]line [16:57:11]line [16:57:11]written 0, free lines is 3299 [16:57:11]MH_Cut [16:57:11]Write to MH i2c: D1 01 00 EE 2E 01 EE [16:57:11]Write i2c OK [16:57:11]MH_I2C_Read... [16:57:11]Read from MH i2c: D1 [16:57:11]MH_I2C_Read... [16:57:11]Read from MH i2c: D1 01 00 [16:57:11]MH_I2C_Read... [16:57:11]Read from MH i2c: D1 01 00 EE 2E 00 ED [16:57:11]Write to MH i2c: 01 00 00 EF 2E 1D [16:57:11]Write i2c OK [16:57:11]MH_I2C_Read... [16:57:11]OFD Sender: No OFD packet to send [16:57:11]*** Cut start [16:57:11]*** Purtial cut [16:57:11]*** Stage 1: CUTSNS_PIN = 1 [16:57:12]Read from MH i2c: 01 [16:57:12]MH_I2C_Read... [16:57:12]*** Stop cut motor [16:57:12]*** Cut end [16:57:12]Read from MH i2c: 01 07 00 [16:57:12]MH_I2C_Read... [16:57:12]Read from MH i2c: 01 07 00 EF 2E 00 00 00 00 00 FF 0F 32 [16:57:12]process_action close_receipt done [16:57:12]requested_data is exist [16:57:12]produce_requested_data [16:57:12]requested_item fm.sn is exist - process it [16:57:12]wFMCommunicate request_size=4 [16:57:12]MH_SAM_APDU [16:57:12]CAPDU: 80 11 00 00 [16:57:12]Write to MH i2c: E2 08 00 F0 2E 80 11 00 00 00 00 00 00 98 [16:57:12]Write i2c OK [16:57:12]MH_I2C_Read... [16:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:12]Read from MH i2c: E2 [16:57:12]MH_I2C_Read... [16:57:12]Read from MH i2c: E2 17 00 [16:57:12]MH_I2C_Read... [16:57:12]Read from MH i2c: E2 17 00 F0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F8 [16:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:57:12]wFMCommunicate OK [16:57:12]requested_item fd.num is exist - process it [16:57:12]SAM_PROTO_GetFieldsCounters [16:57:12]wFMCommunicate request_size=4 [16:57:12]MH_SAM_APDU [16:57:12]CAPDU: 80 13 00 00 [16:57:12]Write to MH i2c: E2 08 00 F1 2E 80 13 00 00 00 00 00 00 9B [16:57:12]Write i2c OK [16:57:12]MH_I2C_Read... [16:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:12]Read from MH i2c: E2 [16:57:12]MH_I2C_Read... [16:57:12]Read from MH i2c: E2 62 00 [16:57:12]MH_I2C_Read... [16:57:12]Read from MH i2c: E2 62 00 F1 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 48 7C 02 00 0E 04 04 00 CF 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 BC [16:57:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 48 7C 02 00 0E 04 04 00 CF 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 [16:57:12]wFMCommunicate OK [16:57:12]SAM_PROTO_GetFieldsCounters done [16:57:12]requested_item shift.num is exist - process it [16:57:12]requested_item shift.opened is exist - process it [16:57:12]req_shift_opened [16:57:12]FM_GetShiftState [16:57:12]SAM_PROTO_GetShiftState [16:57:12]wFMCommunicate request_size=4 [16:57:12]MH_SAM_APDU [16:57:12]CAPDU: 80 13 01 00 [16:57:12]Write to MH i2c: E2 08 00 F2 2E 80 13 01 00 00 00 00 00 9D [16:57:12]Write i2c OK [16:57:12]MH_I2C_Read... [16:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:12]Read from MH i2c: E2 [16:57:12]MH_I2C_Read... [16:57:12]Read from MH i2c: E2 0E 00 [16:57:12]MH_I2C_Read... [16:57:12]Read from MH i2c: E2 0E 00 F2 2E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D3 [16:57:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [16:57:12]wFMCommunicate OK [16:57:12]SAM_PROTO_GetShiftState done [16:57:12]FM_GetShiftState done [16:57:12]req_shift_opened done [16:57:12]requested_item shift.open_date is exist - process it [16:57:12]req_shift_open_date [16:57:12]req_shift_open_date done [16:57:12]produce_requested_data done [16:57:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162888,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [16:57:12]process_action_free close_receipt [16:57:12]json_value_free [16:57:12]json_value_free done [16:57:12]process_json_proto returns [16:57:12]Send response to host [16:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162888,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [16:57:12]free response buf [16:57:12]execute_script done [16:57:12]execute_script returns [16:57:12]free content buf [16:57:12]Sock 7.Close socket [16:57:12]Sock 7.Thread stoped [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:02]accept exits with 9 [17:09:02]New connection [17:09:02]New thread 3066879332 created [17:09:02]Thread 3066735972 joined [17:09:02]Waiting for new connection... [17:09:02] Sock 9.Parse request [17:09:02]Sock 9.Check first char [17:09:02]Sock 9.First char is OK [17:09:02]request: POST /json_proto HTTP/1.0 [17:09:02]Method: POST [17:09:02]URL: /json_proto [17:09:02]Method is POST - this is cgi request [17:09:02]url: /json_proto [17:09:02]query_string will be loaded in cgi processing [17:09:02]execute_cgi json_proto POST (null) [17:09:02]execute_cgi path=json_proto method=POST [17:09:02]POST find Content-Length [17:09:02]Host: 172.17.39.67:8080 [17:09:02]Content-Length: 648 [17:09:02]Content-Type: application/json [17:09:02] [17:09:02]POST finish read [17:09:02]Found Content-Length = 648 [17:09:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 40.000, "sum" : 2904.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2904.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:02]execute_script... [17:09: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)1319498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 40.000, "sum" : 2904.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2904.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:02]POST & json_proto [17:09:02]process_json_proto [17:09:02]json parsed OK: [17:09:02]protocol is kg_v1.0 [17:09:02]action value=close_receipt [17:09:02]process_action close_receipt [17:09:02]cmd_close_receipt [17:09:02]MH_GetDate [17:09:02]Write to MH i2c: F0 00 00 F3 2E 10 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: F0 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: F0 09 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: F0 09 00 F3 2E 00 30 06 94 66 B6 85 93 66 7D [17:09:02]GetLastDocTimeStamp 1720976230 [17:09:02]current date 1720976944 [17:09:02]FM_GetShiftState [17:09:02]SAM_PROTO_GetShiftState [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 13 01 00 [17:09:02]Write to MH i2c: E2 08 00 F4 2E 80 13 01 00 00 00 00 00 9F [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 0E 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 0E 00 F4 2E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D5 [17:09:02]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:09:02]wFMCommunicate OK [17:09:02]SAM_PROTO_GetShiftState done [17:09:02]FM_GetShiftState done [17:09:02]opened in 1720915483 [17:09:02]opened+sec_in_day 1721001883 [17:09:02]quantity*price = 290400 [17:09:02]sum+1 = 290401 [17:09:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2904.00 НСП 1% : 25.70 НДС 12% : 308.39 Наличными: 2904.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 201 14.07.2024 17:09 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162889 ФПД: 130713070875522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T170904&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162889&fm=130713070875522&tin=02508201610067®Number=0000000000090858&sum=290400 [17:09:03]StoreToDocumentArchive [17:09:03]shift 463 fd 162889 [17:09:03]save to /storage/0463/doc_00162889 [17:09:03]save last doc name /storage/0463/doc_00162889 to /storage/kkm_last_doc_name [17:09:03]save OK [17:09:03]Clear old archive folders... [17:09:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:09:03]tlvbuf is 0123F550 [17:09:03]SAM_PROTO_ClearQueue [17:09:03]wFMCommunicate request_size=4 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 09 00 00 [17:09:03]Write to MH i2c: E2 08 00 01 2F 80 09 00 00 00 00 00 00 A2 [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 01 2F 00 90 00 A4 [17:09:03]RAPDU: 90 00 [17:09:03]wFMCommunicate OK [17:09:03]SAM_PROTO_ClearQueue done [17:09:03]KKMCreateOFDPacket [17:09:03]OFDProtocolAddRootSTLVToBuf [17:09:03]FM_MakeSignedData [17:09:03]FM_MakeSignedData [17:09:03]SAM_PROTO_SignData [17:09:03]wFMCommunicate request_size=4 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 0D 01 02 [17:09:03]Write to MH i2c: E2 08 00 02 2F 80 0D 01 02 00 00 00 00 AA [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 02 2F 00 90 00 A5 [17:09:03]RAPDU: 90 00 [17:09:03]wFMCommunicate OK [17:09:03]wFMCommunicate request_size=255 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 60 6E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 78 00 00 00 00 07 04 06 00 60 6E 04 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 30 06 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7C 02 00 35 04 06 00 [17:09:03]Write to MH i2c: E2 02 01 03 2F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 60 6E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 78 00 00 00 00 07 04 06 00 60 6E 04 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 30 06 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7C 02 00 35 04 06 00 00 00 5E [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 03 2F 00 90 00 A6 [17:09:03]RAPDU: 90 00 [17:09:03]wFMCommunicate OK [17:09:03]wFMCommunicate request_size=11 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 0D 02 02 06 76 E2 02 28 33 82 [17:09:03]Write to MH i2c: E2 0E 00 04 2F 80 0D 02 02 06 00 76 E2 02 28 33 82 00 00 F0 [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 03 00 04 2F 00 90 00 A7 [17:09:03]RAPDU: 90 00 [17:09:03]wFMCommunicate OK [17:09:03]wFMCommunicate request_size=4 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 0D 03 02 [17:09:03]Write to MH i2c: E2 08 00 05 2F 80 0D 03 02 00 00 00 00 AF [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:03]Read from MH i2c: E2 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 0B 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: E2 0B 00 05 2F 00 72 E3 AE E4 B9 9D 47 3F 90 00 73 [17:09:03]RAPDU: 72 E3 AE E4 B9 9D 47 3F 90 00 [17:09:03]wFMCommunicate OK [17:09:03]SAM_PROTO_SignData done [17:09:03]FM_MakeSignedData done [17:09:03]CreateOFDProtocolMessage [17:09:03]wFMCommunicate request_size=4 [17:09:03]MH_SAM_APDU [17:09:03]CAPDU: 80 11 00 00 [17:09:03]Write to MH i2c: E2 08 00 06 2F 80 11 00 00 00 00 00 00 AF [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:04]Read from MH i2c: E2 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 17 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: E2 17 00 06 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0F [17:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:09:04]wFMCommunicate OK [17:09:04]CreateOFDProtocolMessage done [17:09:04]OFDSenderStorePacket 162889 [17:09:04]StoreOFDPacket docnum=162889 [17:09:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8D 9D 08 01 87 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 60 6E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 78 00 00 00 00 07 04 06 00 60 6E 04 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 30 06 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7C 02 00 35 04 06 00 76 E2 02 28 33 82 72 E3 AE E4 B9 9D 47 3F [17:09:04]CheckFolder [17:09:04]dirname=/storage/ofd_packets [17:09:04]CheckFolder done [17:09:04]ProducePacketName [17:09:04]name=ofd_packets/00162889 [17:09:04]NVStorageSaveData ofd_packets/00162889 [17:09:04]File name is /storage/ofd_packets/00162889 [17:09:04]Write 302 bytes [17:09:04]NVStorageSaveData done [17:09:04]OFDSenderStorePacket done [17:09:04]KKMCreateOFDPacket done [17:09:04]NVStorageSaveData kkm_last_timestamp [17:09:04]File name is /storage/kkm_last_timestamp [17:09:04]Write 4 bytes [17:09:04]NVStorageSaveData done [17:09:04]ExternCall_PrintAddStr [17:09:04]wPrintStart [17:09:04]Write to MH i2c: 01 00 00 07 2F 36 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 07 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 07 00 07 2F 00 00 00 00 00 FF 0F 4B [17:09:04]RasterBufferAndPrint [17:09:04]line Счет N : (1)1319498 [17:09:04]line ИНН: 02508201610067 [17:09:04]line Контрольно-Кассовый Чек [17:09:04]line ПРОДАЖА [17:09:04]line ТРК (МРК, ГНК) : 41 [17:09:04]line Товар: 2710194210 [17:09:04]line ДТ(л)-К-5 [17:09:04]line 40.000 * 72.60 [17:09:04]line = 2904.00 [17:09:04]line НДС 12% НСП 1% [17:09:04]line > о реализуемом товаре [17:09:04]line ИТОГО: 2904.00 [17:09:04]line НСП 1% : 25.70 [17:09:04]line НДС 12% : 308.39 [17:09:04]line Наличными: 2904.00 [17:09:04]line Безнал.: 0.00 [17:09:04]line Место: АЗС № 140 "Партнер Нефть" [17:09:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:09:04]line СНО: Общий режим [17:09:04]line Чек 201 14.07.2024 17:09 [17:09:04]line Смена: 463 ФФД: 1.0 [17:09:04]line ЗНМ: 0300000129 [17:09:04]line РНМ: 0000000000090858 [17:09:04]line Версия ККМ: 001 [17:09:04]line ФМ: 0000000000874899 [17:09:04]line ФД: 162889 [17:09:04]line ФПД: 130713070875522 [17:09:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T170904&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162889&fm=130713070875522&tin=02508201610067®Number=0000000000090858&sum=290400 [17:09:04]OFD Sender: Processing packet 162889 [packets to send 106, broken 105] [17:09:04]ProducePacketName [17:09:04]name=ofd_packets/00162889 [17:09:04]OFD Sender: To server: pG, [17:09:04]CommunicateWithHost lk.salyk.kg:30040 [17:09:04]ConnectInit lk.salyk.kg [17:09:04]written 0, free lines is 4095 [17:09:04]Connected sock=10 [17:09:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8D 9D 08 01 87 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 60 6E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 78 00 00 00 00 07 04 06 00 60 6E 04 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 30 06 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7C 02 00 35 04 06 00 76 E2 02 28 33 82 72 E3 AE E4 B9 9D 47 3F [17:09:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C0 F9 47 00 A4 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7C 02 00 F4 03 04 00 3D B2 93 66 B6 04 01 00 00 2E 35 38 4A 9F 59 C6 08 [17:09:04]CommunicateWithHost err = 0 [17:09:04]CheckOFDResponse [17:09:04]1017 (14) - 77093643461234 [17:09:04]1041 (16) - 0000000000874899 [17:09:04]1040 (4) - 162889 [17:09:04]1012 (4) - 14.07.2024 11:10 [17:09:04]1206 (1) - 0 [17:09:04]OFD Sender: Remove packet 162889 [17:09:04]ProducePacketName [17:09:04]name=ofd_packets/00162889 [17:09:04]NVStorageDeleteData [17:09:04]Write to MH i2c: 01 00 00 2F 2F 5E [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 07 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: 01 07 00 2F 2F 00 00 00 00 00 0C 0D 7E [17:09:04]RasterBufferAndPrint [17:09:04]line [17:09:04]line [17:09:04]line [17:09:04]line [17:09:04]line [17:09:04]written 0, free lines is 3346 [17:09:04]MH_Cut [17:09:04]Write to MH i2c: D1 01 00 36 2F 01 37 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: D1 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: D1 01 00 [17:09:04]MH_I2C_Read... [17:09:04]Read from MH i2c: D1 01 00 36 2F 00 36 [17:09:04]Write to MH i2c: 01 00 00 37 2F 66 [17:09:04]Write i2c OK [17:09:04]MH_I2C_Read... [17:09:05]OFD Sender: No OFD packet to send [17:09:05]*** Cut start [17:09:05]*** Purtial cut [17:09:05]*** CUTSNS_PIN = 0 [17:09:05]*** Stage 1: CUTSNS_PIN = 1 [17:09:07]Read from MH i2c: 01 [17:09:07]MH_I2C_Read... [17:09:07]*** Stop cut motor [17:09:07]*** Cut end [17:09:07]Read from MH i2c: 01 07 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 07 00 37 2F 00 00 00 00 00 FF 0F 7B [17:09:07]process_action close_receipt done [17:09:07]requested_data is exist [17:09:07]produce_requested_data [17:09:07]requested_item fm.sn is exist - process it [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 11 00 00 [17:09:07]Write to MH i2c: E2 08 00 38 2F 80 11 00 00 00 00 00 00 E1 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 17 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 17 00 38 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 41 [17:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:09:07]wFMCommunicate OK [17:09:07]requested_item fd.num is exist - process it [17:09:07]SAM_PROTO_GetFieldsCounters [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 13 00 00 [17:09:07]Write to MH i2c: E2 08 00 39 2F 80 13 00 00 00 00 00 00 E4 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 62 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 62 00 39 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 49 7C 02 00 0E 04 04 00 CF 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 09 [17:09:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 49 7C 02 00 0E 04 04 00 CF 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 [17:09:07]wFMCommunicate OK [17:09:07]SAM_PROTO_GetFieldsCounters done [17:09:07]requested_item shift.num is exist - process it [17:09:07]requested_item shift.opened is exist - process it [17:09:07]req_shift_opened [17:09:07]FM_GetShiftState [17:09:07]SAM_PROTO_GetShiftState [17:09:07]wFMCommunicate request_size=4 [17:09:07]MH_SAM_APDU [17:09:07]CAPDU: 80 13 01 00 [17:09:07]Write to MH i2c: E2 08 00 3A 2F 80 13 01 00 00 00 00 00 E6 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:07]Read from MH i2c: E2 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 0E 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: E2 0E 00 3A 2F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1C [17:09:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:09:07]wFMCommunicate OK [17:09:07]SAM_PROTO_GetShiftState done [17:09:07]FM_GetShiftState done [17:09:07]req_shift_opened done [17:09:07]requested_item shift.open_date is exist - process it [17:09:07]req_shift_open_date [17:09:07]req_shift_open_date done [17:09:07]produce_requested_data done [17:09:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162889,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:09:07]process_action_free close_receipt [17:09:07]json_value_free [17:09:07]json_value_free done [17:09:07]process_json_proto returns [17:09:07]Send response to host [17:09:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162889,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:09:07]free response buf [17:09:07]execute_script done [17:09:07]execute_script returns [17:09:07]free content buf [17:09:07]Sock 9.Close socket [17:09:07]Sock 9.Thread stoped [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]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:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:51]accept exits with 7 [17:13:51]New connection [17:13:51]New thread 3066735972 created [17:13:51]Thread 3066879332 joined [17:13:51]Waiting for new connection... [17:13:51] Sock 7.Parse request [17:13:51]Sock 7.Check first char [17:13:51]Sock 7.First char is OK [17:13:51]request: POST /json_proto HTTP/1.0 [17:13:51]Method: POST [17:13:51]URL: /json_proto [17:13:51]Method is POST - this is cgi request [17:13:51]url: /json_proto [17:13:51]query_string will be loaded in cgi processing [17:13:51]execute_cgi json_proto POST (null) [17:13:51]execute_cgi path=json_proto method=POST [17:13:51]POST find Content-Length [17:13:51]Host: 172.17.39.67:8080 [17:13:51]Content-Length: 679 [17:13:51]Content-Type: application/json [17:13:51] [17:13:51]POST finish read [17:13:51]Found Content-Length = 679 [17:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:51]execute_script... [17:13: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)1319499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:51]POST & json_proto [17:13:51]process_json_proto [17:13:51]json parsed OK: [17:13:51]protocol is kg_v1.0 [17:13:51]action value=close_receipt [17:13:51]process_action close_receipt [17:13:51]cmd_close_receipt [17:13:51]MH_GetDate [17:13:51]Write to MH i2c: F0 00 00 3B 2F 59 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: F0 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: F0 09 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: F0 09 00 3B 2F 00 52 07 94 66 B6 85 93 66 E9 [17:13:51]GetLastDocTimeStamp 1720976944 [17:13:51]current date 1720977234 [17:13:51]FM_GetShiftState [17:13:51]SAM_PROTO_GetShiftState [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 13 01 00 [17:13:51]Write to MH i2c: E2 08 00 3C 2F 80 13 01 00 00 00 00 00 E8 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 0E 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 0E 00 3C 2F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1E [17:13:52]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:13:52]wFMCommunicate OK [17:13:52]SAM_PROTO_GetShiftState done [17:13:52]FM_GetShiftState done [17:13:52]opened in 1720915483 [17:13:52]opened+sec_in_day 1721001883 [17:13:52]quantity*price = 67029 [17:13:52]sum+1 = 67030 [17:13:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.18 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 202 14.07.2024 17:13 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162890 ФПД: 76027635575527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T171354&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162890&fm=76027635575527&tin=02508201610067®Number=0000000000090858&sum=67000 [17:13:53]StoreToDocumentArchive [17:13:53]shift 463 fd 162890 [17:13:53]save to /storage/0463/doc_00162890 [17:13:53]save last doc name /storage/0463/doc_00162890 to /storage/kkm_last_doc_name [17:13:53]save OK [17:13:53]Clear old archive folders... [17:13:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:53]tlvbuf is 01307EF0 [17:13:53]SAM_PROTO_ClearQueue [17:13:53]wFMCommunicate request_size=4 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 09 00 00 [17:13:53]Write to MH i2c: E2 08 00 49 2F 80 09 00 00 00 00 00 00 EA [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 03 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 03 00 49 2F 00 90 00 EC [17:13:53]RAPDU: 90 00 [17:13:53]wFMCommunicate OK [17:13:53]SAM_PROTO_ClearQueue done [17:13:53]KKMCreateOFDPacket [17:13:53]OFDProtocolAddRootSTLVToBuf [17:13:53]FM_MakeSignedData [17:13:53]FM_MakeSignedData [17:13:53]SAM_PROTO_SignData [17:13:53]wFMCommunicate request_size=4 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 0D 01 02 [17:13:53]Write to MH i2c: E2 08 00 4A 2F 80 0D 01 02 00 00 00 00 F2 [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 03 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 03 00 4A 2F 00 90 00 ED [17:13:53]RAPDU: 90 00 [17:13:53]wFMCommunicate OK [17:13:53]wFMCommunicate request_size=255 [17:13:53]MH_SAM_APDU [17:13: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 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 52 07 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7C 02 00 35 04 06 00 45 [17:13:53]Write to MH i2c: E2 02 01 4B 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 52 07 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7C 02 00 35 04 06 00 45 00 00 3F [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 03 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 03 00 4B 2F 00 90 00 EE [17:13:53]RAPDU: 90 00 [17:13:53]wFMCommunicate OK [17:13:53]wFMCommunicate request_size=10 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 0D 02 02 05 25 90 36 2A E7 [17:13:53]Write to MH i2c: E2 0D 00 4C 2F 80 0D 02 02 05 00 25 90 36 2A E7 00 00 FB [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 03 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 03 00 4C 2F 00 90 00 EF [17:13:53]RAPDU: 90 00 [17:13:53]wFMCommunicate OK [17:13:53]wFMCommunicate request_size=4 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 0D 03 02 [17:13:53]Write to MH i2c: E2 08 00 4D 2F 80 0D 03 02 00 00 00 00 F7 [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 0B 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 0B 00 4D 2F 00 58 39 89 15 F5 19 96 E5 90 00 B0 [17:13:53]RAPDU: 58 39 89 15 F5 19 96 E5 90 00 [17:13:53]wFMCommunicate OK [17:13:53]SAM_PROTO_SignData done [17:13:53]FM_MakeSignedData done [17:13:53]CreateOFDProtocolMessage [17:13:53]wFMCommunicate request_size=4 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 11 00 00 [17:13:53]Write to MH i2c: E2 08 00 4E 2F 80 11 00 00 00 00 00 00 F7 [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 17 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 17 00 4E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 57 [17:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:13:53]wFMCommunicate OK [17:13:53]CreateOFDProtocolMessage done [17:13:53]OFDSenderStorePacket 162890 [17:13:53]StoreOFDPacket docnum=162890 [17:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B1 F0 07 01 97 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 52 07 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7C 02 00 35 04 06 00 45 25 90 36 2A E7 58 39 89 15 F5 19 96 E5 [17:13:53]CheckFolder [17:13:53]dirname=/storage/ofd_packets [17:13:53]CheckFolder done [17:13:53]ProducePacketName [17:13:53]name=ofd_packets/00162890 [17:13:53]NVStorageSaveData ofd_packets/00162890 [17:13:53]File name is /storage/ofd_packets/00162890 [17:13:53]Write 301 bytes [17:13:53]NVStorageSaveData done [17:13:53]OFDSenderStorePacket done [17:13:53]KKMCreateOFDPacket done [17:13:53]NVStorageSaveData kkm_last_timestamp [17:13:53]File name is /storage/kkm_last_timestamp [17:13:53]Write 4 bytes [17:13:53]NVStorageSaveData done [17:13:53]ExternCall_PrintAddStr [17:13:53]wPrintStart [17:13:53]Write to MH i2c: 01 00 00 4F 2F 7E [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: 01 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: 01 07 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: 01 07 00 4F 2F 00 00 00 00 00 FF 0F 93 [17:13:53]RasterBufferAndPrint [17:13:53]line Счет N : (1)1319499 [17:13:53]line ИНН: 02508201610067 [17:13:53]line Контрольно-Кассовый Чек [17:13:53]line ПРОДАЖА [17:13:53]line ТРК (МРК, ГНК) : 53 [17:13:53]line Товар: 2710124130 [17:13:53]line Аи-92-К-5 [17:13:53]line 10.110 * 66.30 [17:13:53]line = 670.29 [17:13:53]line НДС 12% НСП 1% [17:13:53]line > о реализуемом товаре [17:13:53]line ОКРУГЛЕНИЕ: -0.29 [17:13:53]line ИТОГО: 670.00 [17:13:53]line Внесено: 670.00 [17:13:53]line СДАЧА: 0.00 [17:13:53]line НСП 1% : 5.93 [17:13:53]line НДС 12% : 71.18 [17:13:53]line Наличными: 670.00 [17:13:53]line Безнал.: 0.00 [17:13:53]line Место: АЗС № 140 "Партнер Нефть" [17:13:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:13:53]line СНО: Общий режим [17:13:53]line Чек 202 14.07.2024 17:13 [17:13:53]line Смена: 463 ФФД: 1.0 [17:13:53]line ЗНМ: 0300000129 [17:13:53]line РНМ: 0000000000090858 [17:13:53]line Версия ККМ: 001 [17:13:53]line ФМ: 0000000000874899 [17:13:53]line ФД: 162890 [17:13:53]line ФПД: 76027635575527 [17:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T171354&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162890&fm=76027635575527&tin=02508201610067®Number=0000000000090858&sum=67000 [17:13:53]OFD Sender: Processing packet 162890 [packets to send 106, broken 105] [17:13:53]ProducePacketName [17:13:53]name=ofd_packets/00162890 [17:13:53]OFD Sender: To server: pG, [17:13:53]CommunicateWithHost lk.salyk.kg:30040 [17:13:53]ConnectInit lk.salyk.kg [17:13:53]written 0, free lines is 4095 [17:13:54]Connected sock=10 [17:13:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B1 F0 07 01 97 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 52 07 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7C 02 00 35 04 06 00 45 25 90 36 2A E7 58 39 89 15 F5 19 96 E5 [17:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 61 91 47 00 E8 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7C 02 00 F4 03 04 00 5F B3 93 66 B6 04 01 00 00 67 EA 12 F9 65 0D B6 9E [17:13:54]CommunicateWithHost err = 0 [17:13:54]CheckOFDResponse [17:13:54]1017 (14) - 77093643461234 [17:13:54]1041 (16) - 0000000000874899 [17:13:54]1040 (4) - 162890 [17:13:54]1012 (4) - 14.07.2024 11:15 [17:13:54]1206 (1) - 0 [17:13:54]OFD Sender: Remove packet 162890 [17:13:54]ProducePacketName [17:13:54]name=ofd_packets/00162890 [17:13:54]NVStorageDeleteData [17:13:54]Write to MH i2c: 01 00 00 7A 2F A9 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 07 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 07 00 7A 2F 00 00 00 00 00 D7 0C 93 [17:13:54]RasterBufferAndPrint [17:13:54]line [17:13:54]line [17:13:54]line [17:13:54]line [17:13:54]line [17:13:54]written 0, free lines is 3293 [17:13:54]MH_Cut [17:13:54]Write to MH i2c: D1 01 00 81 2F 01 82 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: D1 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: D1 01 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: D1 01 00 81 2F 00 81 [17:13:54]Write to MH i2c: 01 00 00 82 2F B1 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]OFD Sender: No OFD packet to send [17:13:55]*** Cut start [17:13:55]*** Purtial cut [17:13:55]*** Stage 1: CUTSNS_PIN = 1 [17:13:55]Read from MH i2c: 01 [17:13:55]MH_I2C_Read... [17:13:55]*** Stop cut motor [17:13:55]*** Cut end [17:13:55]Read from MH i2c: 01 07 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: 01 07 00 82 2F 00 00 00 00 00 FF 0F C6 [17:13:55]process_action close_receipt done [17:13:55]requested_data is exist [17:13:55]produce_requested_data [17:13:55]requested_item fm.sn is exist - process it [17:13:55]wFMCommunicate request_size=4 [17:13:55]MH_SAM_APDU [17:13:55]CAPDU: 80 11 00 00 [17:13:55]Write to MH i2c: E2 08 00 83 2F 80 11 00 00 00 00 00 00 2C [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 [17:13:55]MH_I2C_Read... [17:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:55]Read from MH i2c: E2 17 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 17 00 83 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8C [17:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:13:55]wFMCommunicate OK [17:13:55]requested_item fd.num is exist - process it [17:13:55]SAM_PROTO_GetFieldsCounters [17:13:55]wFMCommunicate request_size=4 [17:13:55]MH_SAM_APDU [17:13:55]CAPDU: 80 13 00 00 [17:13:55]Write to MH i2c: E2 08 00 84 2F 80 13 00 00 00 00 00 00 2F [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:55]Read from MH i2c: E2 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 62 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 62 00 84 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4A 7C 02 00 0E 04 04 00 CF 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 58 [17:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4A 7C 02 00 0E 04 04 00 CF 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 [17:13:55]wFMCommunicate OK [17:13:55]SAM_PROTO_GetFieldsCounters done [17:13:55]requested_item shift.num is exist - process it [17:13:55]requested_item shift.opened is exist - process it [17:13:55]req_shift_opened [17:13:55]FM_GetShiftState [17:13:55]SAM_PROTO_GetShiftState [17:13:55]wFMCommunicate request_size=4 [17:13:55]MH_SAM_APDU [17:13:55]CAPDU: 80 13 01 00 [17:13:55]Write to MH i2c: E2 08 00 85 2F 80 13 01 00 00 00 00 00 31 [17:13:55]Write i2c OK [17:13:55]MH_I2C_Read... [17:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:55]Read from MH i2c: E2 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 0E 00 [17:13:55]MH_I2C_Read... [17:13:55]Read from MH i2c: E2 0E 00 85 2F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 67 [17:13:55]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:13:55]wFMCommunicate OK [17:13:55]SAM_PROTO_GetShiftState done [17:13:55]FM_GetShiftState done [17:13:55]req_shift_opened done [17:13:55]requested_item shift.open_date is exist - process it [17:13:55]req_shift_open_date [17:13:55]req_shift_open_date done [17:13:55]produce_requested_data done [17:13:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162890,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:13:55]process_action_free close_receipt [17:13:55]json_value_free [17:13:55]json_value_free done [17:13:55]process_json_proto returns [17:13:55]Send response to host [17:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162890,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:13:55]free response buf [17:13:55]execute_script done [17:13:55]execute_script returns [17:13:55]free content buf [17:13:55]Sock 7.Close socket [17:13:55]Sock 7.Thread stoped [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:41]accept exits with 9 [17:20:41]New connection [17:20:41]New thread 3066879332 created [17:20:41]Thread 3066735972 joined [17:20:41]Waiting for new connection... [17:20:41] Sock 9.Parse request [17:20:41]Sock 9.Check first char [17:20:41]Sock 9.First char is OK [17:20:41]request: POST /json_proto HTTP/1.0 [17:20:41]Method: POST [17:20:41]URL: /json_proto [17:20:41]Method is POST - this is cgi request [17:20:41]url: /json_proto [17:20:41]query_string will be loaded in cgi processing [17:20:41]execute_cgi json_proto POST (null) [17:20:41]execute_cgi path=json_proto method=POST [17:20:41]POST find Content-Length [17:20:41]Host: 172.17.39.67:8080 [17:20:41]Content-Length: 1203 [17:20:41]Content-Type: application/json [17:20:41] [17:20:41]POST finish read [17:20:41]Found Content-Length = 1203 [17:20:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319500\u000A14.07.2024 17:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092711\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:41]execute_script... [17:20:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319500\u000A14.07.2024 17:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092711\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:41]POST & json_proto [17:20:41]process_json_proto [17:20:41]json parsed OK: [17:20:41]protocol is kg_v1.0 [17:20:41]action value=print_text [17:20:41]process_action print_text [17:20:41]cmd_print_text [17:20:41]ExternCall_PrintAddStr [17:20:41]wPrintStart [17:20:41]Write to MH i2c: 01 00 00 86 2F B5 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 86 2F 00 00 00 00 00 FF 0F CA [17:20:41]RasterBufferAndPrint [17:20:41]line *****ТОВАРНЫЙ ЧЕК***** [17:20:41]line АЗС 140 [17:20:41]line Партнер нефть [17:20:41]line 02508201610067 [17:20:41]line Кассир : Дуйшенбек у Н. [17:20:41]line Счет N : (1)1319500 [17:20:41]line 14.07.2024 17:18 [17:20:41]line ПРОДАЖА [17:20:41]line ТРК (МРК, ГНК): 11 [17:20:41]line Вид ГСМ : 2710194210 [17:20:41]line ДТ(л)-К-5 [17:20:41]line 20.000 x 72.60 [17:20:41]line ИТОГ: 1452.00 [17:20:41]line Тип оплаты: Талоны: Партнер нефть [17:20:41]line 4092711 [17:20:41]line ______________________ [17:20:41]line (подпись) [17:20:41]written 0, free lines is 4095 [17:20:41]Write to MH i2c: 01 00 00 9A 2F C9 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 9A 2F 00 00 00 00 00 10 0E EE [17:20:41]RasterBufferAndPrint [17:20:41]line [17:20:41]line [17:20:41]line [17:20:41]line [17:20:41]line [17:20:41]written 0, free lines is 3602 [17:20:41]MH_Cut [17:20:41]Write to MH i2c: D1 01 00 A1 2F 01 A2 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: D1 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: D1 01 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: D1 01 00 A1 2F 00 A1 [17:20:41]Write to MH i2c: 01 00 00 A2 2F D1 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:42]*** Cut start [17:20:42]*** Purtial cut [17:20:42]*** CUTSNS_PIN = 0 [17:20:42]*** Stage 1: CUTSNS_PIN = 1 [17:20:44]Read from MH i2c: 01 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: 01 07 00 [17:20:44]MH_I2C_Read... [17:20:44]*** Stop cut motor [17:20:44]*** Cut end [17:20:44]Read from MH i2c: 01 07 00 A2 2F 00 00 00 00 00 FF 0F E6 [17:20:44]process_action print_text done [17:20:44]requested_data is exist [17:20:44]produce_requested_data [17:20:44]requested_item fm.sn is exist - process it [17:20:44]wFMCommunicate request_size=4 [17:20:44]MH_SAM_APDU [17:20:44]CAPDU: 80 11 00 00 [17:20:44]Write to MH i2c: E2 08 00 A3 2F 80 11 00 00 00 00 00 00 4C [17:20:44]Write i2c OK [17:20:44]MH_I2C_Read... [17:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:44]Read from MH i2c: E2 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: E2 17 00 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: E2 17 00 A3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AC [17:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:20:44]wFMCommunicate OK [17:20:44]requested_item fd.num is exist - process it [17:20:44]SAM_PROTO_GetFieldsCounters [17:20:44]wFMCommunicate request_size=4 [17:20:44]MH_SAM_APDU [17:20:44]CAPDU: 80 13 00 00 [17:20:44]Write to MH i2c: E2 08 00 A4 2F 80 13 00 00 00 00 00 00 4F [17:20:44]Write i2c OK [17:20:44]MH_I2C_Read... [17:20:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:44]Read from MH i2c: E2 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: E2 62 00 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: E2 62 00 A4 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4A 7C 02 00 0E 04 04 00 CF 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 78 [17:20:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4A 7C 02 00 0E 04 04 00 CF 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 [17:20:44]wFMCommunicate OK [17:20:44]SAM_PROTO_GetFieldsCounters done [17:20:44]requested_item shift.num is exist - process it [17:20:44]requested_item shift.opened is exist - process it [17:20:44]req_shift_opened [17:20:44]FM_GetShiftState [17:20:44]SAM_PROTO_GetShiftState [17:20:44]wFMCommunicate request_size=4 [17:20:44]MH_SAM_APDU [17:20:44]CAPDU: 80 13 01 00 [17:20:44]Write to MH i2c: E2 08 00 A5 2F 80 13 01 00 00 00 00 00 51 [17:20:44]Write i2c OK [17:20:44]MH_I2C_Read... [17:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:44]Read from MH i2c: E2 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: E2 0E 00 [17:20:44]MH_I2C_Read... [17:20:44]Read from MH i2c: E2 0E 00 A5 2F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 87 [17:20:44]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:20:44]wFMCommunicate OK [17:20:44]SAM_PROTO_GetShiftState done [17:20:44]FM_GetShiftState done [17:20:44]req_shift_opened done [17:20:44]requested_item shift.open_date is exist - process it [17:20:44]req_shift_open_date [17:20:44]req_shift_open_date done [17:20:44]produce_requested_data done [17:20:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162890,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:20:44]process_action_free print_text [17:20:44]json_value_free [17:20:44]json_value_free done [17:20:44]process_json_proto returns [17:20:44]Send response to host [17:20:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162890,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:20:44]free response buf [17:20:44]execute_script done [17:20:44]execute_script returns [17:20:44]free content buf [17:20:44]Sock 9.Close socket [17:20:44]Sock 9.Thread stoped [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:19]accept exits with 7 [17:21:19]New connection [17:21:19]New thread 3066735972 created [17:21:19]Thread 3066879332 joined [17:21:19]Waiting for new connection... [17:21:19] Sock 7.Parse request [17:21:19]Sock 7.Check first char [17:21:19]Sock 7.First char is OK [17:21:19]request: POST /json_proto HTTP/1.0 [17:21:19]Method: POST [17:21:19]URL: /json_proto [17:21:19]Method is POST - this is cgi request [17:21:19]url: /json_proto [17:21:19]query_string will be loaded in cgi processing [17:21:19]execute_cgi json_proto POST (null) [17:21:19]execute_cgi path=json_proto method=POST [17:21:19]POST find Content-Length [17:21:19]Host: 172.17.39.67:8080 [17:21:19]Content-Length: 683 [17:21:19]Content-Type: application/json [17:21:19] [17:21:19]POST finish read [17:21:19]Found Content-Length = 683 [17:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 7.510, "sum" : 545.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 545.00, "total" : 545.00, "payments": [ { "type": 0, "sum" : 545.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:19]execute_script... [17:21:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 7.510, "sum" : 545.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 545.00, "total" : 545.00, "payments": [ { "type": 0, "sum" : 545.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:19]POST & json_proto [17:21:19]process_json_proto [17:21:19]json parsed OK: [17:21:19]protocol is kg_v1.0 [17:21:19]action value=close_receipt [17:21:19]process_action close_receipt [17:21:19]cmd_close_receipt [17:21:19]MH_GetDate [17:21:19]Write to MH i2c: F0 00 00 A6 2F C4 [17:21:19]Write i2c OK [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: F0 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: F0 09 00 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: F0 09 00 A6 2F 00 11 09 94 66 B6 85 93 66 15 [17:21:19]GetLastDocTimeStamp 1720977234 [17:21:19]current date 1720977681 [17:21:19]FM_GetShiftState [17:21:19]SAM_PROTO_GetShiftState [17:21:19]wFMCommunicate request_size=4 [17:21:19]MH_SAM_APDU [17:21:19]CAPDU: 80 13 01 00 [17:21:19]Write to MH i2c: E2 08 00 A7 2F 80 13 01 00 00 00 00 00 53 [17:21:19]Write i2c OK [17:21:19]MH_I2C_Read... [17:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:19]Read from MH i2c: E2 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 0E 00 [17:21:19]MH_I2C_Read... [17:21:19]Read from MH i2c: E2 0E 00 A7 2F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 89 [17:21:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:21:19]wFMCommunicate OK [17:21:19]SAM_PROTO_GetShiftState done [17:21:19]FM_GetShiftState done [17:21:19]opened in 1720915483 [17:21:19]opened+sec_in_day 1721001883 [17:21:19]quantity*price = 54522 [17:21:19]sum+1 = 54524 [17:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 545.00 Внесено: 545.00 СДАЧА: 0.00 НСП 1% : 4.82 НДС 12% : 57.90 Наличными: 545.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 203 14.07.2024 17:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162891 ФПД: 207945719281239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172121&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162891&fm=207945719281239&tin=02508201610067®Number=0000000000090858&sum=54500 [17:21:20]StoreToDocumentArchive [17:21:20]shift 463 fd 162891 [17:21:20]save to /storage/0463/doc_00162891 [17:21:20]save last doc name /storage/0463/doc_00162891 to /storage/kkm_last_doc_name [17:21:20]save OK [17:21:20]Clear old archive folders... [17:21:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:21:20]tlvbuf is 01346480 [17:21:20]SAM_PROTO_ClearQueue [17:21:20]wFMCommunicate request_size=4 [17:21:20]MH_SAM_APDU [17:21:20]CAPDU: 80 09 00 00 [17:21:20]Write to MH i2c: E2 08 00 B4 2F 80 09 00 00 00 00 00 00 55 [17:21:20]Write i2c OK [17:21:20]MH_I2C_Read... [17:21:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:20]Read from MH i2c: E2 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 03 00 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 03 00 B4 2F 00 90 00 57 [17:21:20]RAPDU: 90 00 [17:21:20]wFMCommunicate OK [17:21:20]SAM_PROTO_ClearQueue done [17:21:20]KKMCreateOFDPacket [17:21:20]OFDProtocolAddRootSTLVToBuf [17:21:20]FM_MakeSignedData [17:21:20]FM_MakeSignedData [17:21:20]SAM_PROTO_SignData [17:21:20]wFMCommunicate request_size=4 [17:21:20]MH_SAM_APDU [17:21:20]CAPDU: 80 0D 01 02 [17:21:20]Write to MH i2c: E2 08 00 B5 2F 80 0D 01 02 00 00 00 00 5D [17:21:20]Write i2c OK [17:21:20]MH_I2C_Read... [17:21:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:20]Read from MH i2c: E2 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 03 00 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 03 00 B5 2F 00 90 00 58 [17:21:20]RAPDU: 90 00 [17:21:20]wFMCommunicate OK [17:21:20]wFMCommunicate request_size=255 [17:21:20]MH_SAM_APDU [17:21:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FB D4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 D4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 16 00 00 00 00 07 04 06 00 E4 D4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 11 09 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7C 02 00 35 04 06 00 [17:21:20]Write to MH i2c: E2 02 01 B6 2F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FB D4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 D4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 16 00 00 00 00 07 04 06 00 E4 D4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 11 09 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7C 02 00 35 04 06 00 00 00 ED [17:21:20]Write i2c OK [17:21:20]MH_I2C_Read... [17:21:20]OFD Sender: No OFD packet to send [17:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:20]Read from MH i2c: E2 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 03 00 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 03 00 B6 2F 00 90 00 59 [17:21:20]RAPDU: 90 00 [17:21:20]wFMCommunicate OK [17:21:20]wFMCommunicate request_size=11 [17:21:20]MH_SAM_APDU [17:21:20]CAPDU: 80 0D 02 02 06 BD 20 22 BA F6 57 [17:21:20]Write to MH i2c: E2 0E 00 B7 2F 80 0D 02 02 06 00 BD 20 22 BA F6 57 00 00 72 [17:21:20]Write i2c OK [17:21:20]MH_I2C_Read... [17:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:20]Read from MH i2c: E2 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 03 00 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 03 00 B7 2F 00 90 00 5A [17:21:20]RAPDU: 90 00 [17:21:20]wFMCommunicate OK [17:21:20]wFMCommunicate request_size=4 [17:21:20]MH_SAM_APDU [17:21:20]CAPDU: 80 0D 03 02 [17:21:20]Write to MH i2c: E2 08 00 B8 2F 80 0D 03 02 00 00 00 00 62 [17:21:20]Write i2c OK [17:21:20]MH_I2C_Read... [17:21:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:20]Read from MH i2c: E2 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 0B 00 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 0B 00 B8 2F 00 82 7B D5 B9 DA 34 FC 20 90 00 18 [17:21:20]RAPDU: 82 7B D5 B9 DA 34 FC 20 90 00 [17:21:20]wFMCommunicate OK [17:21:20]SAM_PROTO_SignData done [17:21:20]FM_MakeSignedData done [17:21:20]CreateOFDProtocolMessage [17:21:20]wFMCommunicate request_size=4 [17:21:20]MH_SAM_APDU [17:21:20]CAPDU: 80 11 00 00 [17:21:20]Write to MH i2c: E2 08 00 B9 2F 80 11 00 00 00 00 00 00 62 [17:21:20]Write i2c OK [17:21:20]MH_I2C_Read... [17:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:20]Read from MH i2c: E2 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 17 00 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: E2 17 00 B9 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C2 [17:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:21:20]wFMCommunicate OK [17:21:20]CreateOFDProtocolMessage done [17:21:20]OFDSenderStorePacket 162891 [17:21:20]StoreOFDPacket docnum=162891 [17:21:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 83 5A 08 01 EF 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FB D4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 D4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 16 00 00 00 00 07 04 06 00 E4 D4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 11 09 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7C 02 00 35 04 06 00 BD 20 22 BA F6 57 82 7B D5 B9 DA 34 FC 20 [17:21:20]CheckFolder [17:21:20]dirname=/storage/ofd_packets [17:21:20]CheckFolder done [17:21:20]ProducePacketName [17:21:20]name=ofd_packets/00162891 [17:21:20]NVStorageSaveData ofd_packets/00162891 [17:21:20]File name is /storage/ofd_packets/00162891 [17:21:20]Write 302 bytes [17:21:20]NVStorageSaveData done [17:21:20]OFDSenderStorePacket done [17:21:20]KKMCreateOFDPacket done [17:21:20]NVStorageSaveData kkm_last_timestamp [17:21:20]File name is /storage/kkm_last_timestamp [17:21:20]Write 4 bytes [17:21:20]NVStorageSaveData done [17:21:20]ExternCall_PrintAddStr [17:21:20]wPrintStart [17:21:20]Write to MH i2c: 01 00 00 BA 2F E9 [17:21:20]Write i2c OK [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: 01 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: 01 07 00 [17:21:20]MH_I2C_Read... [17:21:20]Read from MH i2c: 01 07 00 BA 2F 00 00 00 00 00 FF 0F FE [17:21:20]RasterBufferAndPrint [17:21:20]line Счет N : (1)1319501 [17:21:20]line ИНН: 02508201610067 [17:21:20]line Контрольно-Кассовый Чек [17:21:20]line ПРОДАЖА [17:21:20]line ТРК (МРК, ГНК) : 31 [17:21:20]line Товар: 2710194210 [17:21:20]line ДТ(л)-К-5 [17:21:20]line 7.510 * 72.60 [17:21:20]line = 545.23 [17:21:20]line НДС 12% НСП 1% [17:21:20]line > о реализуемом товаре [17:21:20]line ОКРУГЛЕНИЕ: -0.23 [17:21:20]line ИТОГО: 545.00 [17:21:20]line Внесено: 545.00 [17:21:20]line СДАЧА: 0.00 [17:21:20]line НСП 1% : 4.82 [17:21:20]line НДС 12% : 57.90 [17:21:20]line Наличными: 545.00 [17:21:20]line Безнал.: 0.00 [17:21:20]line Место: АЗС № 140 "Партнер Нефть" [17:21:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:21:20]line СНО: Общий режим [17:21:20]line Чек 203 14.07.2024 17:21 [17:21:20]line Смена: 463 ФФД: 1.0 [17:21:20]line ЗНМ: 0300000129 [17:21:20]line РНМ: 0000000000090858 [17:21:20]line Версия ККМ: 001 [17:21:20]line ФМ: 0000000000874899 [17:21:20]line ФД: 162891 [17:21:20]line ФПД: 207945719281239 [17:21:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172121&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162891&fm=207945719281239&tin=02508201610067®Number=0000000000090858&sum=54500 [17:21:21]OFD Sender: Processing packet 162891 [packets to send 106, broken 105] [17:21:21]ProducePacketName [17:21:21]name=ofd_packets/00162891 [17:21:21]OFD Sender: To server: pG, [17:21:21]CommunicateWithHost lk.salyk.kg:30040 [17:21:21]ConnectInit lk.salyk.kg [17:21:21]written 0, free lines is 4095 [17:21:21]Connected sock=10 [17:21:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 83 5A 08 01 EF 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FB D4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 D4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 16 00 00 00 00 07 04 06 00 E4 D4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 11 09 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7C 02 00 35 04 06 00 BD 20 22 BA F6 57 82 7B D5 B9 DA 34 FC 20 [17:21:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D4 41 47 00 C4 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7C 02 00 F4 03 04 00 1E B5 93 66 B6 04 01 00 00 EE 2A B8 99 2C B7 3E 94 [17:21:21]CommunicateWithHost err = 0 [17:21:21]CheckOFDResponse [17:21:21]1017 (14) - 77093643461234 [17:21:21]1041 (16) - 0000000000874899 [17:21:21]1040 (4) - 162891 [17:21:21]1012 (4) - 14.07.2024 11:23 [17:21:21]1206 (1) - 0 [17:21:21]OFD Sender: Remove packet 162891 [17:21:21]ProducePacketName [17:21:21]name=ofd_packets/00162891 [17:21:21]NVStorageDeleteData [17:21:21]Write to MH i2c: 01 00 00 E5 2F 14 [17:21:21]Write i2c OK [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: 01 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: 01 07 00 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: 01 07 00 E5 2F 00 00 00 00 00 D7 0C FE [17:21:21]RasterBufferAndPrint [17:21:21]line [17:21:21]line [17:21:21]line [17:21:21]line [17:21:21]line [17:21:21]written 0, free lines is 3296 [17:21:21]MH_Cut [17:21:21]Write to MH i2c: D1 01 00 EC 2F 01 ED [17:21:21]Write i2c OK [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: D1 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: D1 01 00 [17:21:21]MH_I2C_Read... [17:21:21]Read from MH i2c: D1 01 00 EC 2F 00 EC [17:21:21]Write to MH i2c: 01 00 00 ED 2F 1C [17:21:21]Write i2c OK [17:21:21]MH_I2C_Read... [17:21:21]OFD Sender: No OFD packet to send [17:21:22]*** Cut start [17:21:22]*** Purtial cut [17:21:22]*** Stage 1: CUTSNS_PIN = 1 [17:21:22]Read from MH i2c: 01 [17:21:22]MH_I2C_Read... [17:21:22]*** Stop cut motor [17:21:22]*** Cut end [17:21:22]Read from MH i2c: 01 07 00 [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: 01 07 00 ED 2F 00 00 00 00 00 FF 0F 31 [17:21:22]process_action close_receipt done [17:21:22]requested_data is exist [17:21:22]produce_requested_data [17:21:22]requested_item fm.sn is exist - process it [17:21:22]wFMCommunicate request_size=4 [17:21:22]MH_SAM_APDU [17:21:22]CAPDU: 80 11 00 00 [17:21:22]Write to MH i2c: E2 08 00 EE 2F 80 11 00 00 00 00 00 00 97 [17:21:22]Write i2c OK [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: E2 [17:21:22]MH_I2C_Read... [17:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:22]Read from MH i2c: E2 17 00 [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: E2 17 00 EE 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F7 [17:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:21:22]wFMCommunicate OK [17:21:22]requested_item fd.num is exist - process it [17:21:22]SAM_PROTO_GetFieldsCounters [17:21:22]wFMCommunicate request_size=4 [17:21:22]MH_SAM_APDU [17:21:22]CAPDU: 80 13 00 00 [17:21:22]Write to MH i2c: E2 08 00 EF 2F 80 13 00 00 00 00 00 00 9A [17:21:22]Write i2c OK [17:21:22]MH_I2C_Read... [17:21:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:22]Read from MH i2c: E2 [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: E2 62 00 [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: E2 62 00 EF 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4B 7C 02 00 0E 04 04 00 CF 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 C7 [17:21:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4B 7C 02 00 0E 04 04 00 CF 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 [17:21:22]wFMCommunicate OK [17:21:22]SAM_PROTO_GetFieldsCounters done [17:21:22]requested_item shift.num is exist - process it [17:21:22]requested_item shift.opened is exist - process it [17:21:22]req_shift_opened [17:21:22]FM_GetShiftState [17:21:22]SAM_PROTO_GetShiftState [17:21:22]wFMCommunicate request_size=4 [17:21:22]MH_SAM_APDU [17:21:22]CAPDU: 80 13 01 00 [17:21:22]Write to MH i2c: E2 08 00 F0 2F 80 13 01 00 00 00 00 00 9C [17:21:22]Write i2c OK [17:21:22]MH_I2C_Read... [17:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:22]Read from MH i2c: E2 [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: E2 0E 00 [17:21:22]MH_I2C_Read... [17:21:22]Read from MH i2c: E2 0E 00 F0 2F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D2 [17:21:22]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:21:22]wFMCommunicate OK [17:21:22]SAM_PROTO_GetShiftState done [17:21:22]FM_GetShiftState done [17:21:22]req_shift_opened done [17:21:22]requested_item shift.open_date is exist - process it [17:21:22]req_shift_open_date [17:21:22]req_shift_open_date done [17:21:22]produce_requested_data done [17:21:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162891,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:21:22]process_action_free close_receipt [17:21:22]json_value_free [17:21:22]json_value_free done [17:21:22]process_json_proto returns [17:21:22]Send response to host [17:21:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162891,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:21:22]free response buf [17:21:22]execute_script done [17:21:22]execute_script returns [17:21:22]free content buf [17:21:22]Sock 7.Close socket [17:21:22]Sock 7.Thread stoped [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:03]accept exits with 9 [17:22:03]New connection [17:22:03]New thread 3066879332 created [17:22:03]Thread 3066735972 joined [17:22:03]Waiting for new connection... [17:22:03] Sock 9.Parse request [17:22:03]Sock 9.Check first char [17:22:03]Sock 9.First char is OK [17:22:03]request: POST /json_proto HTTP/1.0 [17:22:03]Method: POST [17:22:03]URL: /json_proto [17:22:03]Method is POST - this is cgi request [17:22:03]url: /json_proto [17:22:03]query_string will be loaded in cgi processing [17:22:03]execute_cgi json_proto POST (null) [17:22:03]execute_cgi path=json_proto method=POST [17:22:03]POST find Content-Length [17:22:03]Host: 172.17.39.67:8080 [17:22:03]Content-Length: 683 [17:22:03]Content-Type: application/json [17:22:03] [17:22:03]POST finish read [17:22:03]Found Content-Length = 683 [17:22:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:03]execute_script... [17:22:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:03]POST & json_proto [17:22:03]process_json_proto [17:22:03]json parsed OK: [17:22:03]protocol is kg_v1.0 [17:22:03]action value=close_receipt [17:22:03]process_action close_receipt [17:22:03]cmd_close_receipt [17:22:03]MH_GetDate [17:22:03]Write to MH i2c: F0 00 00 F1 2F 0F [17:22:03]Write i2c OK [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: F0 [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: F0 09 00 [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: F0 09 00 F1 2F 00 3D 09 94 66 B6 85 93 66 8C [17:22:03]GetLastDocTimeStamp 1720977681 [17:22:03]current date 1720977725 [17:22:03]FM_GetShiftState [17:22:03]SAM_PROTO_GetShiftState [17:22:03]wFMCommunicate request_size=4 [17:22:03]MH_SAM_APDU [17:22:03]CAPDU: 80 13 01 00 [17:22:03]Write to MH i2c: E2 08 00 F2 2F 80 13 01 00 00 00 00 00 9E [17:22:03]Write i2c OK [17:22:03]MH_I2C_Read... [17:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:03]Read from MH i2c: E2 [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: E2 0E 00 [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: E2 0E 00 F2 2F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D4 [17:22:03]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:22:03]wFMCommunicate OK [17:22:03]SAM_PROTO_GetShiftState done [17:22:03]FM_GetShiftState done [17:22:03]opened in 1720915483 [17:22:03]opened+sec_in_day 1721001883 [17:22:03]quantity*price = 50021 [17:22:03]sum+1 = 50022 [17:22:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 204 14.07.2024 17:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162892 ФПД: 107255660824081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172205&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162892&fm=107255660824081&tin=02508201610067®Number=0000000000090858&sum=50000 [17:22:04]StoreToDocumentArchive [17:22:04]shift 463 fd 162892 [17:22:04]save to /storage/0463/doc_00162892 [17:22:04]save last doc name /storage/0463/doc_00162892 to /storage/kkm_last_doc_name [17:22:04]save OK [17:22:04]Clear old archive folders... [17:22:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:22:04]tlvbuf is B6D96070 [17:22:04]SAM_PROTO_ClearQueue [17:22:04]wFMCommunicate request_size=4 [17:22:04]MH_SAM_APDU [17:22:04]CAPDU: 80 09 00 00 [17:22:04]Write to MH i2c: E2 08 00 FF 2F 80 09 00 00 00 00 00 00 A0 [17:22:04]Write i2c OK [17:22:04]MH_I2C_Read... [17:22:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:04]Read from MH i2c: E2 [17:22:04]MH_I2C_Read... [17:22:04]Read from MH i2c: E2 03 00 [17:22:04]MH_I2C_Read... [17:22:04]Read from MH i2c: E2 03 00 FF 2F 00 90 00 A2 [17:22:04]RAPDU: 90 00 [17:22:04]wFMCommunicate OK [17:22:04]SAM_PROTO_ClearQueue done [17:22:04]KKMCreateOFDPacket [17:22:04]OFDProtocolAddRootSTLVToBuf [17:22:04]FM_MakeSignedData [17:22:04]FM_MakeSignedData [17:22:04]SAM_PROTO_SignData [17:22:04]wFMCommunicate request_size=4 [17:22:04]MH_SAM_APDU [17:22:04]CAPDU: 80 0D 01 02 [17:22:04]Write to MH i2c: E2 08 00 00 30 80 0D 01 02 00 00 00 00 A9 [17:22:04]Write i2c OK [17:22:04]MH_I2C_Read... [17:22:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:05]Read from MH i2c: E2 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 03 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 03 00 00 30 00 90 00 A4 [17:22:05]RAPDU: 90 00 [17:22:05]wFMCommunicate OK [17:22:05]wFMCommunicate request_size=255 [17:22:05]MH_SAM_APDU [17:22:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 CC 00 00 00 F4 03 04 00 3D 09 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7C 02 00 35 04 06 00 [17:22:05]Write to MH i2c: E2 02 01 01 30 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 CC 00 00 00 F4 03 04 00 3D 09 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7C 02 00 35 04 06 00 00 00 00 [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:05]Read from MH i2c: E2 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 03 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 03 00 01 30 00 90 00 A5 [17:22:05]RAPDU: 90 00 [17:22:05]wFMCommunicate OK [17:22:05]wFMCommunicate request_size=11 [17:22:05]MH_SAM_APDU [17:22:05]CAPDU: 80 0D 02 02 06 61 8C 67 90 46 11 [17:22:05]Write to MH i2c: E2 0E 00 02 30 80 0D 02 02 06 00 61 8C 67 90 46 11 00 00 F3 [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:05]Read from MH i2c: E2 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 03 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 03 00 02 30 00 90 00 A6 [17:22:05]RAPDU: 90 00 [17:22:05]wFMCommunicate OK [17:22:05]wFMCommunicate request_size=4 [17:22:05]MH_SAM_APDU [17:22:05]CAPDU: 80 0D 03 02 [17:22:05]Write to MH i2c: E2 08 00 03 30 80 0D 03 02 00 00 00 00 AE [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:05]Read from MH i2c: E2 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 0B 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 0B 00 03 30 00 6C DC C3 78 FE C6 0C 3D 90 00 3F [17:22:05]RAPDU: 6C DC C3 78 FE C6 0C 3D 90 00 [17:22:05]wFMCommunicate OK [17:22:05]SAM_PROTO_SignData done [17:22:05]FM_MakeSignedData done [17:22:05]CreateOFDProtocolMessage [17:22:05]wFMCommunicate request_size=4 [17:22:05]MH_SAM_APDU [17:22:05]CAPDU: 80 11 00 00 [17:22:05]Write to MH i2c: E2 08 00 04 30 80 11 00 00 00 00 00 00 AE [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:05]Read from MH i2c: E2 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 17 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: E2 17 00 04 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0E [17:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:22:05]wFMCommunicate OK [17:22:05]CreateOFDProtocolMessage done [17:22:05]OFDSenderStorePacket 162892 [17:22:05]StoreOFDPacket docnum=162892 [17:22:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 92 14 08 01 D3 67 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 CC 00 00 00 F4 03 04 00 3D 09 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7C 02 00 35 04 06 00 61 8C 67 90 46 11 6C DC C3 78 FE C6 0C 3D [17:22:05]CheckFolder [17:22:05]dirname=/storage/ofd_packets [17:22:05]CheckFolder done [17:22:05]ProducePacketName [17:22:05]name=ofd_packets/00162892 [17:22:05]NVStorageSaveData ofd_packets/00162892 [17:22:05]File name is /storage/ofd_packets/00162892 [17:22:05]Write 302 bytes [17:22:05]NVStorageSaveData done [17:22:05]OFDSenderStorePacket done [17:22:05]KKMCreateOFDPacket done [17:22:05]NVStorageSaveData kkm_last_timestamp [17:22:05]File name is /storage/kkm_last_timestamp [17:22:05]Write 4 bytes [17:22:05]NVStorageSaveData done [17:22:05]OFD Sender: Processing packet 162892 [packets to send 106, broken 105] [17:22:05]ProducePacketName [17:22:05]name=ofd_packets/00162892 [17:22:05]OFD Sender: To server: pG, [17:22:05]CommunicateWithHost lk.salyk.kg:30040 [17:22:05]ConnectInit lk.salyk.kg [17:22:05]ExternCall_PrintAddStr [17:22:05]wPrintStart [17:22:05]Write to MH i2c: 01 00 00 05 30 35 [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 07 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 07 00 05 30 00 00 00 00 00 FF 0F 4A [17:22:05]RasterBufferAndPrint [17:22:05]line Счет N : (1)1319503 [17:22:05]line ИНН: 02508201610067 [17:22:05]line Контрольно-Кассовый Чек [17:22:05]line ПРОДАЖА [17:22:05]line ТРК (МРК, ГНК) : 61 [17:22:05]line Товар: 2710194210 [17:22:05]line ДТ(л)-К-5 [17:22:05]line 6.890 * 72.60 [17:22:05]line = 500.21 [17:22:05]line НДС 12% НСП 1% [17:22:05]line > о реализуемом товаре [17:22:05]line ОКРУГЛЕНИЕ: -0.21 [17:22:05]line ИТОГО: 500.00 [17:22:05]line Внесено: 500.00 [17:22:05]line СДАЧА: 0.00 [17:22:05]line НСП 1% : 4.43 [17:22:05]line НДС 12% : 53.12 [17:22:05]line Наличными: 500.00 [17:22:05]line Безнал.: 0.00 [17:22:05]line Место: АЗС № 140 "Партнер Нефть" [17:22:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:22:05]line СНО: Общий режим [17:22:05]line Чек 204 14.07.2024 17:22 [17:22:05]line Смена: 463 ФФД: 1.0 [17:22:05]line ЗНМ: 0300000129 [17:22:05]line РНМ: 0000000000090858 [17:22:05]line Версия ККМ: 001 [17:22:05]line ФМ: 0000000000874899 [17:22:05]line ФД: 162892 [17:22:05]line ФПД: 107255660824081 [17:22:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172205&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162892&fm=107255660824081&tin=02508201610067®Number=0000000000090858&sum=50000 [17:22:05]Connected sock=11 [17:22:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 92 14 08 01 D3 67 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 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 CC 00 00 00 F4 03 04 00 3D 09 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7C 02 00 35 04 06 00 61 8C 67 90 46 11 6C DC C3 78 FE C6 0C 3D [17:22:05]written 0, free lines is 4095 [17:22:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E7 4B 47 00 A8 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 34 38 39 39 10 04 04 00 4C 7C 02 00 F4 03 04 00 4A B5 93 66 B6 04 01 00 00 D2 C7 2E 43 9E 1E C6 60 [17:22:05]CommunicateWithHost err = 0 [17:22:05]CheckOFDResponse [17:22:05]1017 (14) - 77093643461234 [17:22:05]1041 (16) - 0000000000874899 [17:22:05]1040 (4) - 162892 [17:22:05]1012 (4) - 14.07.2024 11:23 [17:22:05]1206 (1) - 0 [17:22:05]OFD Sender: Remove packet 162892 [17:22:05]ProducePacketName [17:22:05]name=ofd_packets/00162892 [17:22:05]NVStorageDeleteData [17:22:06]Write to MH i2c: 01 00 00 30 30 60 [17:22:06]Write i2c OK [17:22:06]MH_I2C_Read... [17:22:06]Read from MH i2c: 01 [17:22:06]MH_I2C_Read... [17:22:06]Read from MH i2c: 01 07 00 [17:22:06]MH_I2C_Read... [17:22:06]Read from MH i2c: 01 07 00 30 30 00 00 00 00 00 DA 0C 4D [17:22:06]RasterBufferAndPrint [17:22:06]line [17:22:06]line [17:22:06]line [17:22:06]line [17:22:06]line [17:22:06]written 0, free lines is 3297 [17:22:06]MH_Cut [17:22:06]Write to MH i2c: D1 01 00 37 30 01 39 [17:22:06]Write i2c OK [17:22:06]MH_I2C_Read... [17:22:06]Read from MH i2c: D1 [17:22:06]MH_I2C_Read... [17:22:06]Read from MH i2c: D1 01 00 [17:22:06]MH_I2C_Read... [17:22:06]Read from MH i2c: D1 01 00 37 30 00 38 [17:22:06]Write to MH i2c: 01 00 00 38 30 68 [17:22:06]Write i2c OK [17:22:06]MH_I2C_Read... [17:22:06]OFD Sender: No OFD packet to send [17:22:06]*** Cut start [17:22:06]*** Purtial cut [17:22:06]*** CUTSNS_PIN = 0 [17:22:07]*** Stage 1: CUTSNS_PIN = 1 [17:22:09]Read from MH i2c: 01 [17:22:09]MH_I2C_Read... [17:22:09]*** Stop cut motor [17:22:09]*** Cut end [17:22:09]Read from MH i2c: 01 07 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: 01 07 00 38 30 00 00 00 00 00 FF 0F 7D [17:22:09]process_action close_receipt done [17:22:09]requested_data is exist [17:22:09]produce_requested_data [17:22:09]requested_item fm.sn is exist - process it [17:22:09]wFMCommunicate request_size=4 [17:22:09]MH_SAM_APDU [17:22:09]CAPDU: 80 11 00 00 [17:22:09]Write to MH i2c: E2 08 00 39 30 80 11 00 00 00 00 00 00 E3 [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:09]Read from MH i2c: E2 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 17 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 17 00 39 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 43 [17:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:22:09]wFMCommunicate OK [17:22:09]requested_item fd.num is exist - process it [17:22:09]SAM_PROTO_GetFieldsCounters [17:22:09]wFMCommunicate request_size=4 [17:22:09]MH_SAM_APDU [17:22:09]CAPDU: 80 13 00 00 [17:22:09]Write to MH i2c: E2 08 00 3A 30 80 13 00 00 00 00 00 00 E6 [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:09]Read from MH i2c: E2 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 62 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 62 00 3A 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4C 7C 02 00 0E 04 04 00 CF 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 17 [17:22:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4C 7C 02 00 0E 04 04 00 CF 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 [17:22:09]wFMCommunicate OK [17:22:09]SAM_PROTO_GetFieldsCounters done [17:22:09]requested_item shift.num is exist - process it [17:22:09]requested_item shift.opened is exist - process it [17:22:09]req_shift_opened [17:22:09]FM_GetShiftState [17:22:09]SAM_PROTO_GetShiftState [17:22:09]wFMCommunicate request_size=4 [17:22:09]MH_SAM_APDU [17:22:09]CAPDU: 80 13 01 00 [17:22:09]Write to MH i2c: E2 08 00 3B 30 80 13 01 00 00 00 00 00 E8 [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:09]Read from MH i2c: E2 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 0E 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 0E 00 3B 30 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1E [17:22:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:22:09]wFMCommunicate OK [17:22:09]SAM_PROTO_GetShiftState done [17:22:09]FM_GetShiftState done [17:22:09]req_shift_opened done [17:22:09]requested_item shift.open_date is exist - process it [17:22:09]req_shift_open_date [17:22:09]req_shift_open_date done [17:22:09]produce_requested_data done [17:22:09]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162892,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:22:09]process_action_free close_receipt [17:22:09]json_value_free [17:22:09]json_value_free done [17:22:09]process_json_proto returns [17:22:09]Send response to host [17:22:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162892,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:22:09]free response buf [17:22:09]execute_script done [17:22:09]execute_script returns [17:22:09]free content buf [17:22:09]Sock 9.Close socket [17:22:09]Sock 9.Thread stoped [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:27]accept exits with 7 [17:22:27]New connection [17:22:27]New thread 3066735972 created [17:22:27]Thread 3066879332 joined [17:22:27]Waiting for new connection... [17:22:27] Sock 7.Parse request [17:22:27]Sock 7.Check first char [17:22:27]Sock 7.First char is OK [17:22:27]request: POST /json_proto HTTP/1.0 [17:22:27]Method: POST [17:22:27]URL: /json_proto [17:22:27]Method is POST - this is cgi request [17:22:27]url: /json_proto [17:22:27]query_string will be loaded in cgi processing [17:22:27]execute_cgi json_proto POST (null) [17:22:27]execute_cgi path=json_proto method=POST [17:22:27]POST find Content-Length [17:22:27]Host: 172.17.39.67:8080 [17:22:27]Content-Length: 671 [17:22:27]Content-Type: application/json [17:22:27] [17:22:27]POST finish read [17:22:27]Found Content-Length = 671 [17:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 2.980, "sum" : 200.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:27]execute_script... [17:22: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)1319502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 2.980, "sum" : 200.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:27]POST & json_proto [17:22:27]process_json_proto [17:22:27]json parsed OK: [17:22:27]protocol is kg_v1.0 [17:22:27]action value=close_receipt [17:22:27]process_action close_receipt [17:22:27]cmd_close_receipt [17:22:27]MH_GetDate [17:22:27]Write to MH i2c: F0 00 00 3C 30 5B [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: F0 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: F0 09 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: F0 09 00 3C 30 00 55 09 94 66 B6 85 93 66 F0 [17:22:27]GetLastDocTimeStamp 1720977725 [17:22:27]current date 1720977749 [17:22:27]FM_GetShiftState [17:22:27]SAM_PROTO_GetShiftState [17:22:27]wFMCommunicate request_size=4 [17:22:27]MH_SAM_APDU [17:22:27]CAPDU: 80 13 01 00 [17:22:27]Write to MH i2c: E2 08 00 3D 30 80 13 01 00 00 00 00 00 EA [17:22:27]Write i2c OK [17:22:27]MH_I2C_Read... [17:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:27]Read from MH i2c: E2 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 0E 00 [17:22:27]MH_I2C_Read... [17:22:27]Read from MH i2c: E2 0E 00 3D 30 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 20 [17:22:27]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:22:27]wFMCommunicate OK [17:22:27]SAM_PROTO_GetShiftState done [17:22:27]FM_GetShiftState done [17:22:27]opened in 1720915483 [17:22:27]opened+sec_in_day 1721001883 [17:22:27]quantity*price = 20055 [17:22:27]sum+1 = 20056 [17:22:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 205 14.07.2024 17:22 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162893 ФПД: 114925765919677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172229&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162893&fm=114925765919677&tin=02508201610067®Number=0000000000090858&sum=20000 [17:22:28]StoreToDocumentArchive [17:22:28]shift 463 fd 162893 [17:22:28]save to /storage/0463/doc_00162893 [17:22:28]save last doc name /storage/0463/doc_00162893 to /storage/kkm_last_doc_name [17:22:28]save OK [17:22:28]Clear old archive folders... [17:22:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:22:28]tlvbuf is 0123B810 [17:22:28]SAM_PROTO_ClearQueue [17:22:28]wFMCommunicate request_size=4 [17:22:28]MH_SAM_APDU [17:22:28]CAPDU: 80 09 00 00 [17:22:28]Write to MH i2c: E2 08 00 4A 30 80 09 00 00 00 00 00 00 EC [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:28]Read from MH i2c: E2 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 4A 30 00 90 00 EE [17:22:28]RAPDU: 90 00 [17:22:28]wFMCommunicate OK [17:22:28]SAM_PROTO_ClearQueue done [17:22:28]KKMCreateOFDPacket [17:22:28]OFDProtocolAddRootSTLVToBuf [17:22:28]FM_MakeSignedData [17:22:28]FM_MakeSignedData [17:22:28]SAM_PROTO_SignData [17:22:28]wFMCommunicate request_size=4 [17:22:28]MH_SAM_APDU [17:22:28]CAPDU: 80 0D 01 02 [17:22:28]Write to MH i2c: E2 08 00 4B 30 80 0D 01 02 00 00 00 00 F4 [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:28]Read from MH i2c: E2 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 [17:22:28]MH_I2C_Read... [17:22:28]Read from MH i2c: E2 03 00 4B 30 00 90 00 EF [17:22:28]RAPDU: 90 00 [17:22:28]wFMCommunicate OK [17:22:28]wFMCommunicate request_size=255 [17:22:28]MH_SAM_APDU [17:22:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 0B 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 57 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 55 09 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7C 02 00 35 04 06 00 [17:22:28]Write to MH i2c: E2 02 01 4C 30 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 0B 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 57 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 55 09 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7C 02 00 35 04 06 00 00 00 99 [17:22:28]Write i2c OK [17:22:28]MH_I2C_Read... [17:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:29]Read from MH i2c: E2 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 03 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 03 00 4C 30 00 90 00 F0 [17:22:29]RAPDU: 90 00 [17:22:29]wFMCommunicate OK [17:22:29]wFMCommunicate request_size=11 [17:22:29]MH_SAM_APDU [17:22:29]CAPDU: 80 0D 02 02 06 68 86 3D 74 03 BD [17:22:29]Write to MH i2c: E2 0E 00 4D 30 80 0D 02 02 06 00 68 86 3D 74 03 BD 00 00 62 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:29]Read from MH i2c: E2 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 03 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 03 00 4D 30 00 90 00 F1 [17:22:29]RAPDU: 90 00 [17:22:29]wFMCommunicate OK [17:22:29]wFMCommunicate request_size=4 [17:22:29]MH_SAM_APDU [17:22:29]CAPDU: 80 0D 03 02 [17:22:29]Write to MH i2c: E2 08 00 4E 30 80 0D 03 02 00 00 00 00 F9 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:29]Read from MH i2c: E2 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 0B 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 0B 00 4E 30 00 F4 C9 49 9A 0D 3F 44 51 90 00 7B [17:22:29]RAPDU: F4 C9 49 9A 0D 3F 44 51 90 00 [17:22:29]wFMCommunicate OK [17:22:29]SAM_PROTO_SignData done [17:22:29]FM_MakeSignedData done [17:22:29]CreateOFDProtocolMessage [17:22:29]wFMCommunicate request_size=4 [17:22:29]MH_SAM_APDU [17:22:29]CAPDU: 80 11 00 00 [17:22:29]Write to MH i2c: E2 08 00 4F 30 80 11 00 00 00 00 00 00 F9 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:29]Read from MH i2c: E2 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 17 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: E2 17 00 4F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 59 [17:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:22:29]wFMCommunicate OK [17:22:29]CreateOFDProtocolMessage done [17:22:29]OFDSenderStorePacket 162893 [17:22:29]StoreOFDPacket docnum=162893 [17:22:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4A AC 08 01 E8 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 0B 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 57 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 55 09 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7C 02 00 35 04 06 00 68 86 3D 74 03 BD F4 C9 49 9A 0D 3F 44 51 [17:22:29]CheckFolder [17:22:29]dirname=/storage/ofd_packets [17:22:29]CheckFolder done [17:22:29]ProducePacketName [17:22:29]name=ofd_packets/00162893 [17:22:29]NVStorageSaveData ofd_packets/00162893 [17:22:29]File name is /storage/ofd_packets/00162893 [17:22:29]Write 302 bytes [17:22:29]NVStorageSaveData done [17:22:29]OFDSenderStorePacket done [17:22:29]KKMCreateOFDPacket done [17:22:29]NVStorageSaveData kkm_last_timestamp [17:22:29]File name is /storage/kkm_last_timestamp [17:22:29]Write 4 bytes [17:22:29]NVStorageSaveData done [17:22:29]ExternCall_PrintAddStr [17:22:29]wPrintStart [17:22:29]Write to MH i2c: 01 00 00 50 30 80 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 07 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 07 00 50 30 00 00 00 00 00 FF 0F 95 [17:22:29]RasterBufferAndPrint [17:22:29]line Счет N : (1)1319502 [17:22:29]line ИНН: 02508201610067 [17:22:29]line Контрольно-Кассовый Чек [17:22:29]line ПРОДАЖА [17:22:29]line ТРК (МРК, ГНК) : 42 [17:22:29]line Товар: 2710124130 [17:22:29]line Super-92-К-5 [17:22:29]line 2.980 * 67.30 [17:22:29]line = 200.55 [17:22:29]line НДС 12% НСП 1% [17:22:29]line > о реализуемом товаре [17:22:29]line ОКРУГЛЕНИЕ: -0.55 [17:22:29]line ИТОГО: 200.00 [17:22:29]line Внесено: 200.00 [17:22:29]line СДАЧА: 0.00 [17:22:29]line НСП 1% : 1.77 [17:22:29]line НДС 12% : 21.30 [17:22:29]line Наличными: 200.00 [17:22:29]line Безнал.: 0.00 [17:22:29]line Место: АЗС № 140 "Партнер Нефть" [17:22:29]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:22:29]line СНО: Общий режим [17:22:29]line Чек 205 14.07.2024 17:22 [17:22:29]line Смена: 463 ФФД: 1.0 [17:22:29]line ЗНМ: 0300000129 [17:22:29]line РНМ: 0000000000090858 [17:22:29]line Версия ККМ: 001 [17:22:29]line ФМ: 0000000000874899 [17:22:29]line ФД: 162893 [17:22:29]line ФПД: 114925765919677 [17:22:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T172229&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162893&fm=114925765919677&tin=02508201610067®Number=0000000000090858&sum=20000 [17:22:29]OFD Sender: Processing packet 162893 [packets to send 106, broken 105] [17:22:29]ProducePacketName [17:22:29]name=ofd_packets/00162893 [17:22:29]OFD Sender: To server: pG, [17:22:29]CommunicateWithHost lk.salyk.kg:30040 [17:22:29]ConnectInit lk.salyk.kg [17:22:29]written 0, free lines is 4095 [17:22:29]Connected sock=10 [17:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4A AC 08 01 E8 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 0B 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 57 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 55 09 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7C 02 00 35 04 06 00 68 86 3D 74 03 BD F4 C9 49 9A 0D 3F 44 51 [17:22:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B3 23 47 00 2D AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7C 02 00 F4 03 04 00 62 B5 93 66 B6 04 01 00 00 1B 23 E2 1F F2 01 5D BA [17:22:29]CommunicateWithHost err = 0 [17:22:29]CheckOFDResponse [17:22:29]1017 (14) - 77093643461234 [17:22:29]1041 (16) - 0000000000874899 [17:22:29]1040 (4) - 162893 [17:22:29]1012 (4) - 14.07.2024 11:24 [17:22:29]1206 (1) - 0 [17:22:29]OFD Sender: Remove packet 162893 [17:22:29]ProducePacketName [17:22:29]name=ofd_packets/00162893 [17:22:29]NVStorageDeleteData [17:22:29]Write to MH i2c: 01 00 00 7B 30 AB [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 07 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: 01 07 00 7B 30 00 00 00 00 00 DF 0C 9D [17:22:29]RasterBufferAndPrint [17:22:29]line [17:22:29]line [17:22:29]line [17:22:29]line [17:22:29]line [17:22:29]written 0, free lines is 3302 [17:22:29]MH_Cut [17:22:29]Write to MH i2c: D1 01 00 82 30 01 84 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: D1 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: D1 01 00 [17:22:29]MH_I2C_Read... [17:22:29]Read from MH i2c: D1 01 00 82 30 00 83 [17:22:29]Write to MH i2c: 01 00 00 83 30 B3 [17:22:29]Write i2c OK [17:22:29]MH_I2C_Read... [17:22:30]OFD Sender: No OFD packet to send [17:22:30]*** Cut start [17:22:30]*** Purtial cut [17:22:30]*** Stage 1: CUTSNS_PIN = 1 [17:22:30]Read from MH i2c: 01 [17:22:30]MH_I2C_Read... [17:22:30]*** Stop cut motor [17:22:30]*** Cut end [17:22:30]Read from MH i2c: 01 07 00 [17:22:30]MH_I2C_Read... [17:22:30]Read from MH i2c: 01 07 00 83 30 00 00 00 00 00 FF 0F C8 [17:22:30]process_action close_receipt done [17:22:30]requested_data is exist [17:22:30]produce_requested_data [17:22:30]requested_item fm.sn is exist - process it [17:22:30]wFMCommunicate request_size=4 [17:22:30]MH_SAM_APDU [17:22:30]CAPDU: 80 11 00 00 [17:22:30]Write to MH i2c: E2 08 00 84 30 80 11 00 00 00 00 00 00 2E [17:22:30]Write i2c OK [17:22:30]MH_I2C_Read... [17:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:30]Read from MH i2c: E2 [17:22:30]MH_I2C_Read... [17:22:30]Read from MH i2c: E2 17 00 [17:22:30]MH_I2C_Read... [17:22:30]Read from MH i2c: E2 17 00 84 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8E [17:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:22:30]wFMCommunicate OK [17:22:30]requested_item fd.num is exist - process it [17:22:30]SAM_PROTO_GetFieldsCounters [17:22:30]wFMCommunicate request_size=4 [17:22:30]MH_SAM_APDU [17:22:30]CAPDU: 80 13 00 00 [17:22:30]Write to MH i2c: E2 08 00 85 30 80 13 00 00 00 00 00 00 31 [17:22:31]Write i2c OK [17:22:31]MH_I2C_Read... [17:22:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:31]Read from MH i2c: E2 [17:22:31]MH_I2C_Read... [17:22:31]Read from MH i2c: E2 62 00 [17:22:31]MH_I2C_Read... [17:22:31]Read from MH i2c: E2 62 00 85 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4D 7C 02 00 0E 04 04 00 CF 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 66 [17:22:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4D 7C 02 00 0E 04 04 00 CF 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 [17:22:31]wFMCommunicate OK [17:22:31]SAM_PROTO_GetFieldsCounters done [17:22:31]requested_item shift.num is exist - process it [17:22:31]requested_item shift.opened is exist - process it [17:22:31]req_shift_opened [17:22:31]FM_GetShiftState [17:22:31]SAM_PROTO_GetShiftState [17:22:31]wFMCommunicate request_size=4 [17:22:31]MH_SAM_APDU [17:22:31]CAPDU: 80 13 01 00 [17:22:31]Write to MH i2c: E2 08 00 86 30 80 13 01 00 00 00 00 00 33 [17:22:31]Write i2c OK [17:22:31]MH_I2C_Read... [17:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:31]Read from MH i2c: E2 [17:22:31]MH_I2C_Read... [17:22:31]Read from MH i2c: E2 0E 00 [17:22:31]MH_I2C_Read... [17:22:31]Read from MH i2c: E2 0E 00 86 30 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 69 [17:22:31]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:22:31]wFMCommunicate OK [17:22:31]SAM_PROTO_GetShiftState done [17:22:31]FM_GetShiftState done [17:22:31]req_shift_opened done [17:22:31]requested_item shift.open_date is exist - process it [17:22:31]req_shift_open_date [17:22:31]req_shift_open_date done [17:22:31]produce_requested_data done [17:22:31]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162893,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:22:31]process_action_free close_receipt [17:22:31]json_value_free [17:22:31]json_value_free done [17:22:31]process_json_proto returns [17:22:31]Send response to host [17:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162893,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:22:31]free response buf [17:22:31]execute_script done [17:22:31]execute_script returns [17:22:31]free content buf [17:22:31]Sock 7.Close socket [17:22:31]Sock 7.Thread stoped [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:01]accept exits with 9 [17:31:01]New connection [17:31:01]New thread 3066879332 created [17:31:01]Thread 3066735972 joined [17:31:01]Waiting for new connection... [17:31:01] Sock 9.Parse request [17:31:01]Sock 9.Check first char [17:31:01]Sock 9.First char is OK [17:31:01]request: POST /json_proto HTTP/1.0 [17:31:01]Method: POST [17:31:01]URL: /json_proto [17:31:01]Method is POST - this is cgi request [17:31:01]url: /json_proto [17:31:01]query_string will be loaded in cgi processing [17:31:01]execute_cgi json_proto POST (null) [17:31:01]execute_cgi path=json_proto method=POST [17:31:01]POST find Content-Length [17:31:01]Host: 172.17.39.67:8080 [17:31:01]Content-Length: 801 [17:31:01]Content-Type: application/json [17:31:01] [17:31:01]POST finish read [17:31:01]Found Content-Length = 801 [17:31:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:01]execute_script... [17: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)1319504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:01]POST & json_proto [17:31:01]process_json_proto [17:31:01]json parsed OK: [17:31:01]protocol is kg_v1.0 [17:31:01]action value=close_receipt [17:31:01]process_action close_receipt [17:31:01]cmd_close_receipt [17:31:01]MH_GetDate [17:31:01]Write to MH i2c: F0 00 00 87 30 A6 [17:31:01]Write i2c OK [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: F0 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: F0 09 00 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: F0 09 00 87 30 00 57 0B 94 66 B6 85 93 66 3F [17:31:01]GetLastDocTimeStamp 1720977749 [17:31:01]current date 1720978263 [17:31:01]FM_GetShiftState [17:31:01]SAM_PROTO_GetShiftState [17:31:01]wFMCommunicate request_size=4 [17:31:01]MH_SAM_APDU [17:31:01]CAPDU: 80 13 01 00 [17:31:01]Write to MH i2c: E2 08 00 88 30 80 13 01 00 00 00 00 00 35 [17:31:01]Write i2c OK [17:31:01]MH_I2C_Read... [17:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:01]Read from MH i2c: E2 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: E2 0E 00 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: E2 0E 00 88 30 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6B [17:31:01]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:31:01]wFMCommunicate OK [17:31:01]SAM_PROTO_GetShiftState done [17:31:01]FM_GetShiftState done [17:31:01]opened in 1720915483 [17:31:01]opened+sec_in_day 1721001883 [17:31:01]quantity*price = 50056 [17:31:01]sum+1 = 50058 [17:31:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.57 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.57 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 206 14.07.2024 17:31 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162894 ФПД: 189525336182875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T173103&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162894&fm=189525336182875&tin=02508201610067®Number=0000000000090858&sum=50057 [17:31:02]StoreToDocumentArchive [17:31:02]shift 463 fd 162894 [17:31:02]save to /storage/0463/doc_00162894 [17:31:02]save last doc name /storage/0463/doc_00162894 to /storage/kkm_last_doc_name [17:31:02]save OK [17:31:02]Clear old archive folders... [17:31:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:02]tlvbuf is 01316AB0 [17:31:02]SAM_PROTO_ClearQueue [17:31:02]wFMCommunicate request_size=4 [17:31:02]MH_SAM_APDU [17:31:02]CAPDU: 80 09 00 00 [17:31:02]Write to MH i2c: E2 08 00 95 30 80 09 00 00 00 00 00 00 37 [17:31:02]Write i2c OK [17:31:02]MH_I2C_Read... [17:31:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:02]Read from MH i2c: E2 [17:31:02]MH_I2C_Read... [17:31:02]Read from MH i2c: E2 03 00 [17:31:02]MH_I2C_Read... [17:31:02]Read from MH i2c: E2 03 00 95 30 00 90 00 39 [17:31:02]RAPDU: 90 00 [17:31:02]wFMCommunicate OK [17:31:02]SAM_PROTO_ClearQueue done [17:31:02]KKMCreateOFDPacket [17:31:02]OFDProtocolAddRootSTLVToBuf [17:31:02]FM_MakeSignedData [17:31:02]FM_MakeSignedData [17:31:02]SAM_PROTO_SignData [17:31:02]wFMCommunicate request_size=4 [17:31:02]MH_SAM_APDU [17:31:02]CAPDU: 80 0D 01 02 [17:31:02]Write to MH i2c: E2 08 00 96 30 80 0D 01 02 00 00 00 00 3F [17:31:02]Write i2c OK [17:31:02]MH_I2C_Read... [17:31:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:02]Read from MH i2c: E2 [17:31:02]MH_I2C_Read... [17:31:02]Read from MH i2c: E2 03 00 [17:31:02]MH_I2C_Read... [17:31:02]Read from MH i2c: E2 03 00 96 30 00 90 00 3A [17:31:02]RAPDU: 90 00 [17:31:02]wFMCommunicate OK [17:31:02]wFMCommunicate request_size=255 [17:31:02]MH_SAM_APDU [17:31: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 89 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 57 0B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7C 02 00 35 04 06 00 AC [17:31:02]Write to MH i2c: E2 02 01 97 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 89 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 57 0B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7C 02 00 35 04 06 00 AC 00 00 DF [17:31:02]Write i2c OK [17:31:02]MH_I2C_Read... [17:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:03]Read from MH i2c: E2 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 03 00 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 03 00 97 30 00 90 00 3B [17:31:03]RAPDU: 90 00 [17:31:03]wFMCommunicate OK [17:31:03]wFMCommunicate request_size=10 [17:31:03]MH_SAM_APDU [17:31:03]CAPDU: 80 0D 02 02 05 5F 4E 56 D0 5B [17:31:03]Write to MH i2c: E2 0D 00 98 30 80 0D 02 02 05 00 5F 4E 56 D0 5B 00 00 7A [17:31:03]Write i2c OK [17:31:03]MH_I2C_Read... [17:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:03]Read from MH i2c: E2 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 03 00 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 03 00 98 30 00 90 00 3C [17:31:03]RAPDU: 90 00 [17:31:03]wFMCommunicate OK [17:31:03]wFMCommunicate request_size=4 [17:31:03]MH_SAM_APDU [17:31:03]CAPDU: 80 0D 03 02 [17:31:03]Write to MH i2c: E2 08 00 99 30 80 0D 03 02 00 00 00 00 44 [17:31:03]Write i2c OK [17:31:03]MH_I2C_Read... [17:31:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:03]Read from MH i2c: E2 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 0B 00 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 0B 00 99 30 00 BE 4C 56 9D B7 E3 5E 1A 90 00 54 [17:31:03]RAPDU: BE 4C 56 9D B7 E3 5E 1A 90 00 [17:31:03]wFMCommunicate OK [17:31:03]SAM_PROTO_SignData done [17:31:03]FM_MakeSignedData done [17:31:03]CreateOFDProtocolMessage [17:31:03]wFMCommunicate request_size=4 [17:31:03]MH_SAM_APDU [17:31:03]CAPDU: 80 11 00 00 [17:31:03]Write to MH i2c: E2 08 00 9A 30 80 11 00 00 00 00 00 00 44 [17:31:03]Write i2c OK [17:31:03]MH_I2C_Read... [17:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:03]Read from MH i2c: E2 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 17 00 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: E2 17 00 9A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A4 [17:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:31:03]wFMCommunicate OK [17:31:03]CreateOFDProtocolMessage done [17:31:03]OFDSenderStorePacket 162894 [17:31:03]StoreOFDPacket docnum=162894 [17:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BB 0A 07 01 BE E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 89 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 57 0B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7C 02 00 35 04 06 00 AC 5F 4E 56 D0 5B BE 4C 56 9D B7 E3 5E 1A [17:31:03]CheckFolder [17:31:03]dirname=/storage/ofd_packets [17:31:03]CheckFolder done [17:31:03]ProducePacketName [17:31:03]name=ofd_packets/00162894 [17:31:03]NVStorageSaveData ofd_packets/00162894 [17:31:03]File name is /storage/ofd_packets/00162894 [17:31:03]Write 301 bytes [17:31:03]NVStorageSaveData done [17:31:03]OFDSenderStorePacket done [17:31:03]KKMCreateOFDPacket done [17:31:03]NVStorageSaveData kkm_last_timestamp [17:31:03]File name is /storage/kkm_last_timestamp [17:31:03]Write 4 bytes [17:31:03]NVStorageSaveData done [17:31:03]ExternCall_PrintAddStr [17:31:03]wPrintStart [17:31:03]Write to MH i2c: 01 00 00 9B 30 CB [17:31:03]Write i2c OK [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: 01 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: 01 07 00 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: 01 07 00 9B 30 00 00 00 00 00 FF 0F E0 [17:31:03]RasterBufferAndPrint [17:31:03]line Счет N : (1)1319504 [17:31:03]line ИНН: 02508201610067 [17:31:03]line Контрольно-Кассовый Чек [17:31:03]line ПРОДАЖА [17:31:03]line ТРК (МРК, ГНК) : 53 [17:31:03]line Товар: 2710124130 [17:31:03]line Аи-92-К-5 [17:31:03]line 7.550 * 66.30 [17:31:03]line = 500.57 [17:31:03]line НДС 12% НСП 1% [17:31:03]line > о реализуемом товаре [17:31:03]line ИТОГО: 500.57 [17:31:03]line НСП 1% : 4.43 [17:31:03]line НДС 12% : 53.16 [17:31:03]line Наличными: 0.00 [17:31:03]line Безнал.: 500.57 [17:31:03]line Место: АЗС № 140 "Партнер Нефть" [17:31:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:31:03]line СНО: Общий режим [17:31:03]line Чек 206 14.07.2024 17:31 [17:31:03]line Смена: 463 ФФД: 1.0 [17:31:03]line ЗНМ: 0300000129 [17:31:03]line РНМ: 0000000000090858 [17:31:03]line Версия ККМ: 001 [17:31:03]line Платежная система: O! деньги [17:31:03]line ФМ: 0000000000874899 [17:31:03]line ФД: 162894 [17:31:03]line ФПД: 189525336182875 [17:31:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T173103&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162894&fm=189525336182875&tin=02508201610067®Number=0000000000090858&sum=50057 [17:31:03]written 0, free lines is 4095 [17:31:03]OFD Sender: Processing packet 162894 [packets to send 106, broken 105] [17:31:03]ProducePacketName [17:31:03]name=ofd_packets/00162894 [17:31:03]OFD Sender: To server: pG, [17:31:03]CommunicateWithHost lk.salyk.kg:30040 [17:31:03]ConnectInit lk.salyk.kg [17:31:03]Connected sock=10 [17: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 34 38 39 39 0F 01 00 00 BB 0A 07 01 BE E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 89 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 57 0B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7C 02 00 35 04 06 00 AC 5F 4E 56 D0 5B BE 4C 56 9D B7 E3 5E 1A [17:31:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7E 1B 47 00 DA 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7C 02 00 F4 03 04 00 64 B7 93 66 B6 04 01 00 00 DC 8E CC 56 6A DE A8 89 [17:31:03]CommunicateWithHost err = 0 [17:31:03]CheckOFDResponse [17:31:03]1017 (14) - 77093643461234 [17:31:03]1041 (16) - 0000000000874899 [17:31:03]1040 (4) - 162894 [17:31:03]1012 (4) - 14.07.2024 11:32 [17:31:03]1206 (1) - 0 [17:31:03]OFD Sender: Remove packet 162894 [17:31:03]ProducePacketName [17:31:03]name=ofd_packets/00162894 [17:31:03]NVStorageDeleteData [17:31:03]Write to MH i2c: 01 00 00 C5 30 F5 [17:31:03]Write i2c OK [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: 01 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: 01 07 00 [17:31:03]MH_I2C_Read... [17:31:03]Read from MH i2c: 01 07 00 C5 30 00 00 00 00 00 ED 0C F5 [17:31:03]RasterBufferAndPrint [17:31:03]line [17:31:03]line [17:31:03]line [17:31:03]line [17:31:03]line [17:31:03]written 0, free lines is 3315 [17:31:04]MH_Cut [17:31:04]Write to MH i2c: D1 01 00 CC 30 01 CE [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: D1 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: D1 01 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: D1 01 00 CC 30 00 CD [17:31:04]Write to MH i2c: 01 00 00 CD 30 FD [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]OFD Sender: No OFD packet to send [17:31:04]*** Cut start [17:31:04]*** Purtial cut [17:31:04]*** CUTSNS_PIN = 0 [17:31:04]*** Stage 1: CUTSNS_PIN = 1 [17:31:06]Read from MH i2c: 01 [17:31:06]MH_I2C_Read... [17:31:06]*** Stop cut motor [17:31:06]*** Cut end [17:31:06]Read from MH i2c: 01 07 00 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: 01 07 00 CD 30 00 00 00 00 00 FF 0F 12 [17:31:06]process_action close_receipt done [17:31:06]requested_data is exist [17:31:06]produce_requested_data [17:31:06]requested_item fm.sn is exist - process it [17:31:06]wFMCommunicate request_size=4 [17:31:06]MH_SAM_APDU [17:31:06]CAPDU: 80 11 00 00 [17:31:06]Write to MH i2c: E2 08 00 CE 30 80 11 00 00 00 00 00 00 78 [17:31:06]Write i2c OK [17:31:06]MH_I2C_Read... [17:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:06]Read from MH i2c: E2 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: E2 17 00 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: E2 17 00 CE 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D8 [17:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:31:06]wFMCommunicate OK [17:31:06]requested_item fd.num is exist - process it [17:31:06]SAM_PROTO_GetFieldsCounters [17:31:06]wFMCommunicate request_size=4 [17:31:06]MH_SAM_APDU [17:31:06]CAPDU: 80 13 00 00 [17:31:06]Write to MH i2c: E2 08 00 CF 30 80 13 00 00 00 00 00 00 7B [17:31:06]Write i2c OK [17:31:06]MH_I2C_Read... [17:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:06]Read from MH i2c: E2 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: E2 62 00 [17:31:06]MH_I2C_Read... [17:31:06]Read from MH i2c: E2 62 00 CF 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [17:31:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:06]wFMCommunicate OK [17:31:06]SAM_PROTO_GetFieldsCounters done [17:31:06]requested_item shift.num is exist - process it [17:31:06]requested_item shift.opened is exist - process it [17:31:06]req_shift_opened [17:31:06]FM_GetShiftState [17:31:06]SAM_PROTO_GetShiftState [17:31:06]wFMCommunicate request_size=4 [17:31:06]MH_SAM_APDU [17:31:06]CAPDU: 80 13 01 00 [17:31:06]Write to MH i2c: E2 08 00 D0 30 80 13 01 00 00 00 00 00 7D [17:31:06]Write i2c OK [17:31:06]MH_I2C_Read... [17:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:07]Read from MH i2c: E2 [17:31:07]MH_I2C_Read... [17:31:07]Read from MH i2c: E2 0E 00 [17:31:07]MH_I2C_Read... [17:31:07]Read from MH i2c: E2 0E 00 D0 30 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B3 [17:31:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:31:07]wFMCommunicate OK [17:31:07]SAM_PROTO_GetShiftState done [17:31:07]FM_GetShiftState done [17:31:07]req_shift_opened done [17:31:07]requested_item shift.open_date is exist - process it [17:31:07]req_shift_open_date [17:31:07]req_shift_open_date done [17:31:07]produce_requested_data done [17:31:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162894,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:31:07]process_action_free close_receipt [17:31:07]json_value_free [17:31:07]json_value_free done [17:31:07]process_json_proto returns [17:31:07]Send response to host [17:31:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162894,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:31:07]free response buf [17:31:07]execute_script done [17:31:07]execute_script returns [17:31:07]free content buf [17:31:07]Sock 9.Close socket [17:31:07]Sock 9.Thread stoped [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:09]accept exits with 7 [17:33:09]New connection [17:33:09]New thread 3066735972 created [17:33:09]Thread 3066879332 joined [17:33:09]Waiting for new connection... [17:33:09] Sock 7.Parse request [17:33:09]Sock 7.Check first char [17:33:09]Sock 7.First char is OK [17:33:09]request: POST /json_proto HTTP/1.0 [17:33:09]Method: POST [17:33:09]URL: /json_proto [17:33:09]Method is POST - this is cgi request [17:33:09]url: /json_proto [17:33:09]query_string will be loaded in cgi processing [17:33:09]execute_cgi json_proto POST (null) [17:33:09]execute_cgi path=json_proto method=POST [17:33:09]POST find Content-Length [17:33:09]Host: 172.17.39.67:8080 [17:33:09]Content-Length: 641 [17:33:09]Content-Type: application/json [17:33:09] [17:33:09]POST finish read [17:33:09]Found Content-Length = 641 [17:33:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:09]execute_script... [17:33: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)1319505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:09]POST & json_proto [17:33:09]process_json_proto [17:33:09]json parsed OK: [17:33:09]protocol is kg_v1.0 [17:33:09]action value=close_receipt [17:33:09]process_action close_receipt [17:33:09]cmd_close_receipt [17:33:09]MH_GetDate [17:33:09]Write to MH i2c: F0 00 00 D1 30 F0 [17:33:09]Write i2c OK [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: F0 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: F0 09 00 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: F0 09 00 D1 30 00 D7 0B 94 66 B6 85 93 66 09 [17:33:09]GetLastDocTimeStamp 1720978263 [17:33:09]current date 1720978391 [17:33:09]FM_GetShiftState [17:33:09]SAM_PROTO_GetShiftState [17:33:09]wFMCommunicate request_size=4 [17:33:09]MH_SAM_APDU [17:33:09]CAPDU: 80 13 01 00 [17:33:09]Write to MH i2c: E2 08 00 D2 30 80 13 01 00 00 00 00 00 7F [17:33:09]Write i2c OK [17:33:09]MH_I2C_Read... [17:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:09]Read from MH i2c: E2 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: E2 0E 00 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: E2 0E 00 D2 30 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B5 [17:33:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:33:09]wFMCommunicate OK [17:33:09]SAM_PROTO_GetShiftState done [17:33:09]FM_GetShiftState done [17:33:09]opened in 1720915483 [17:33:09]opened+sec_in_day 1721001883 [17:33:09]quantity*price = 66300 [17:33:09]sum+1 = 66301 [17:33:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 663.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 207 14.07.2024 17:33 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162895 ФПД: 88132775169640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T173311&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162895&fm=88132775169640&tin=02508201610067®Number=0000000000090858&sum=66300 [17:33:10]StoreToDocumentArchive [17:33:10]shift 463 fd 162895 [17:33:10]save to /storage/0463/doc_00162895 [17:33:10]save last doc name /storage/0463/doc_00162895 to /storage/kkm_last_doc_name [17:33:10]save OK [17:33:10]Clear old archive folders... [17:33:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:10]tlvbuf is B6D96780 [17:33:10]SAM_PROTO_ClearQueue [17:33:10]wFMCommunicate request_size=4 [17:33:10]MH_SAM_APDU [17:33:10]CAPDU: 80 09 00 00 [17:33:10]Write to MH i2c: E2 08 00 DF 30 80 09 00 00 00 00 00 00 81 [17:33:10]Write i2c OK [17:33:10]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 DF 30 00 90 00 83 [17:33:11]RAPDU: 90 00 [17:33:11]wFMCommunicate OK [17:33:11]SAM_PROTO_ClearQueue done [17:33:11]KKMCreateOFDPacket [17:33:11]OFDProtocolAddRootSTLVToBuf [17:33:11]FM_MakeSignedData [17:33:11]FM_MakeSignedData [17:33:11]SAM_PROTO_SignData [17:33:11]wFMCommunicate request_size=4 [17:33:11]MH_SAM_APDU [17:33:11]CAPDU: 80 0D 01 02 [17:33:11]Write to MH i2c: E2 08 00 E0 30 80 0D 01 02 00 00 00 00 89 [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 E0 30 00 90 00 84 [17:33:11]RAPDU: 90 00 [17:33:11]wFMCommunicate OK [17:33:11]wFMCommunicate request_size=255 [17:33:11]MH_SAM_APDU [17:33:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 D7 0B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7C 02 00 35 04 06 00 50 [17:33:11]Write to MH i2c: E2 02 01 E1 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 D7 0B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7C 02 00 35 04 06 00 50 00 00 59 [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 E1 30 00 90 00 85 [17:33:11]RAPDU: 90 00 [17:33:11]wFMCommunicate OK [17:33:11]wFMCommunicate request_size=10 [17:33:11]MH_SAM_APDU [17:33:11]CAPDU: 80 0D 02 02 05 28 02 C1 CE 68 [17:33:11]Write to MH i2c: E2 0D 00 E2 30 80 0D 02 02 05 00 28 02 C1 CE 68 00 00 B7 [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 03 00 E2 30 00 90 00 86 [17:33:11]RAPDU: 90 00 [17:33:11]wFMCommunicate OK [17:33:11]wFMCommunicate request_size=4 [17:33:11]MH_SAM_APDU [17:33:11]CAPDU: 80 0D 03 02 [17:33:11]Write to MH i2c: E2 08 00 E3 30 80 0D 03 02 00 00 00 00 8E [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 0B 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 0B 00 E3 30 00 53 F7 53 2A C5 A3 9A 8C 90 00 E4 [17:33:11]RAPDU: 53 F7 53 2A C5 A3 9A 8C 90 00 [17:33:11]wFMCommunicate OK [17:33:11]SAM_PROTO_SignData done [17:33:11]FM_MakeSignedData done [17:33:11]CreateOFDProtocolMessage [17:33:11]wFMCommunicate request_size=4 [17:33:11]MH_SAM_APDU [17:33:11]CAPDU: 80 11 00 00 [17:33:11]Write to MH i2c: E2 08 00 E4 30 80 11 00 00 00 00 00 00 8E [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 17 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 17 00 E4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EE [17:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:33:11]wFMCommunicate OK [17:33:11]CreateOFDProtocolMessage done [17:33:11]OFDSenderStorePacket 162895 [17:33:11]StoreOFDPacket docnum=162895 [17:33:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 55 5F 07 01 B8 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 D7 0B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7C 02 00 35 04 06 00 50 28 02 C1 CE 68 53 F7 53 2A C5 A3 9A 8C [17:33:11]CheckFolder [17:33:11]dirname=/storage/ofd_packets [17:33:11]CheckFolder done [17:33:11]ProducePacketName [17:33:11]name=ofd_packets/00162895 [17:33:11]NVStorageSaveData ofd_packets/00162895 [17:33:11]File name is /storage/ofd_packets/00162895 [17:33:11]Write 301 bytes [17:33:11]NVStorageSaveData done [17:33:11]OFDSenderStorePacket done [17:33:11]KKMCreateOFDPacket done [17:33:11]NVStorageSaveData kkm_last_timestamp [17:33:11]File name is /storage/kkm_last_timestamp [17:33:11]Write 4 bytes [17:33:11]NVStorageSaveData done [17:33:11]ExternCall_PrintAddStr [17:33:11]wPrintStart [17:33:11]Write to MH i2c: 01 00 00 E5 30 15 [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: 01 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: 01 07 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: 01 07 00 E5 30 00 00 00 00 00 FF 0F 2A [17:33:11]RasterBufferAndPrint [17:33:11]line Счет N : (1)1319505 [17:33:11]line ИНН: 02508201610067 [17:33:11]line Контрольно-Кассовый Чек [17:33:11]line ПРОДАЖА [17:33:11]line ТРК (МРК, ГНК) : 63 [17:33:11]line Товар: 2710124130 [17:33:11]line Аи-92-К-5 [17:33:11]line 10.000 * 66.30 [17:33:11]line = 663.00 [17:33:11]line НДС 12% НСП 1% [17:33:11]line > о реализуемом товаре [17:33:11]line ИТОГО: 663.00 [17:33:11]line НСП 1% : 5.87 [17:33:11]line НДС 12% : 70.41 [17:33:11]line Наличными: 663.00 [17:33:11]line Безнал.: 0.00 [17:33:11]line Место: АЗС № 140 "Партнер Нефть" [17:33:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:33:11]line СНО: Общий режим [17:33:11]line Чек 207 14.07.2024 17:33 [17:33:11]line Смена: 463 ФФД: 1.0 [17:33:11]line ЗНМ: 0300000129 [17:33:11]line РНМ: 0000000000090858 [17:33:11]line Версия ККМ: 001 [17:33:11]line ФМ: 0000000000874899 [17:33:11]line ФД: 162895 [17:33:11]line ФПД: 88132775169640 [17:33:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T173311&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162895&fm=88132775169640&tin=02508201610067®Number=0000000000090858&sum=66300 [17:33:11]OFD Sender: Processing packet 162895 [packets to send 106, broken 105] [17:33:11]ProducePacketName [17:33:11]name=ofd_packets/00162895 [17:33:11]OFD Sender: To server: pG, [17:33:11]CommunicateWithHost lk.salyk.kg:30040 [17:33:11]ConnectInit lk.salyk.kg [17:33:11]written 0, free lines is 4095 [17:33:11]Connected sock=10 [17:33:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 55 5F 07 01 B8 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 D7 0B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7C 02 00 35 04 06 00 50 28 02 C1 CE 68 53 F7 53 2A C5 A3 9A 8C [17:33:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F8 B6 47 00 B8 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7C 02 00 F4 03 04 00 E5 B7 93 66 B6 04 01 00 00 29 9B C1 CB 5E C4 B4 C9 [17:33:12]CommunicateWithHost err = 0 [17:33:12]CheckOFDResponse [17:33:12]1017 (14) - 77093643461234 [17:33:12]1041 (16) - 0000000000874899 [17:33:12]1040 (4) - 162895 [17:33:12]1012 (4) - 14.07.2024 11:35 [17:33:12]1206 (1) - 0 [17:33:12]OFD Sender: Remove packet 162895 [17:33:12]ProducePacketName [17:33:12]name=ofd_packets/00162895 [17:33:12]NVStorageDeleteData [17:33:12]Write to MH i2c: 01 00 00 0D 31 3E [17:33:12]Write i2c OK [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: 01 [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: 01 07 00 [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: 01 07 00 0D 31 00 00 00 00 00 03 0D 55 [17:33:12]RasterBufferAndPrint [17:33:12]line [17:33:12]line [17:33:12]line [17:33:12]line [17:33:12]line [17:33:12]written 0, free lines is 3339 [17:33:12]MH_Cut [17:33:12]Write to MH i2c: D1 01 00 14 31 01 17 [17:33:12]Write i2c OK [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: D1 [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: D1 01 00 [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: D1 01 00 14 31 00 16 [17:33:12]Write to MH i2c: 01 00 00 15 31 46 [17:33:12]Write i2c OK [17:33:12]MH_I2C_Read... [17:33:12]OFD Sender: No OFD packet to send [17:33:12]*** Cut start [17:33:12]*** Purtial cut [17:33:12]*** Stage 1: CUTSNS_PIN = 1 [17:33:13]Read from MH i2c: 01 [17:33:13]MH_I2C_Read... [17:33:13]*** Stop cut motor [17:33:13]*** Cut end [17:33:13]Read from MH i2c: 01 07 00 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: 01 07 00 15 31 00 00 00 00 00 FF 0F 5B [17:33:13]process_action close_receipt done [17:33:13]requested_data is exist [17:33:13]produce_requested_data [17:33:13]requested_item fm.sn is exist - process it [17:33:13]wFMCommunicate request_size=4 [17:33:13]MH_SAM_APDU [17:33:13]CAPDU: 80 11 00 00 [17:33:13]Write to MH i2c: E2 08 00 16 31 80 11 00 00 00 00 00 00 C1 [17:33:13]Write i2c OK [17:33:13]MH_I2C_Read... [17:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:13]Read from MH i2c: E2 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: E2 17 00 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: E2 17 00 16 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 21 [17:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:33:13]wFMCommunicate OK [17:33:13]requested_item fd.num is exist - process it [17:33:13]SAM_PROTO_GetFieldsCounters [17:33:13]wFMCommunicate request_size=4 [17:33:13]MH_SAM_APDU [17:33:13]CAPDU: 80 13 00 00 [17:33:13]Write to MH i2c: E2 08 00 17 31 80 13 00 00 00 00 00 00 C4 [17:33:13]Write i2c OK [17:33:13]MH_I2C_Read... [17:33:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:13]Read from MH i2c: E2 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: E2 62 00 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: E2 62 00 17 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4F 7C 02 00 0E 04 04 00 CF 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 01 [17:33:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4F 7C 02 00 0E 04 04 00 CF 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 [17:33:13]wFMCommunicate OK [17:33:13]SAM_PROTO_GetFieldsCounters done [17:33:13]requested_item shift.num is exist - process it [17:33:13]requested_item shift.opened is exist - process it [17:33:13]req_shift_opened [17:33:13]FM_GetShiftState [17:33:13]SAM_PROTO_GetShiftState [17:33:13]wFMCommunicate request_size=4 [17:33:13]MH_SAM_APDU [17:33:13]CAPDU: 80 13 01 00 [17:33:13]Write to MH i2c: E2 08 00 18 31 80 13 01 00 00 00 00 00 C6 [17:33:13]Write i2c OK [17:33:13]MH_I2C_Read... [17:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:13]Read from MH i2c: E2 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: E2 0E 00 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: E2 0E 00 18 31 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 FC [17:33:13]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:33:13]wFMCommunicate OK [17:33:13]SAM_PROTO_GetShiftState done [17:33:13]FM_GetShiftState done [17:33:13]req_shift_opened done [17:33:13]requested_item shift.open_date is exist - process it [17:33:13]req_shift_open_date [17:33:13]req_shift_open_date done [17:33:13]produce_requested_data done [17:33:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162895,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:33:13]process_action_free close_receipt [17:33:13]json_value_free [17:33:13]json_value_free done [17:33:13]process_json_proto returns [17:33:13]Send response to host [17:33:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162895,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:33:13]free response buf [17:33:13]execute_script done [17:33:13]execute_script returns [17:33:13]free content buf [17:33:13]Sock 7.Close socket [17:33:13]Sock 7.Thread stoped [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:36]accept exits with 9 [17:33:36]New connection [17:33:36]New thread 3066879332 created [17:33:36]Thread 3066735972 joined [17:33:36]Waiting for new connection... [17:33:36] Sock 9.Parse request [17:33:36]Sock 9.Check first char [17:33:36]Sock 9.First char is OK [17:33:36]request: POST /json_proto HTTP/1.0 [17:33:36]Method: POST [17:33:36]URL: /json_proto [17:33:36]Method is POST - this is cgi request [17:33:36]url: /json_proto [17:33:36]query_string will be loaded in cgi processing [17:33:36]execute_cgi json_proto POST (null) [17:33:36]execute_cgi path=json_proto method=POST [17:33:36]POST find Content-Length [17:33:36]Host: 172.17.39.67:8080 [17:33:36]Content-Length: 678 [17:33:36]Content-Type: application/json [17:33:36] [17:33:36]POST finish read [17:33:36]Found Content-Length = 678 [17:33:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:36]execute_script... [17:33: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)1319506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:36]POST & json_proto [17:33:36]process_json_proto [17:33:36]json parsed OK: [17:33:36]protocol is kg_v1.0 [17:33:36]action value=close_receipt [17:33:36]process_action close_receipt [17:33:36]cmd_close_receipt [17:33:36]MH_GetDate [17:33:36]Write to MH i2c: F0 00 00 19 31 39 [17:33:36]Write i2c OK [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: F0 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: F0 09 00 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: F0 09 00 19 31 00 F2 0B 94 66 B6 85 93 66 6D [17:33:36]GetLastDocTimeStamp 1720978391 [17:33:36]current date 1720978418 [17:33:36]FM_GetShiftState [17:33:36]SAM_PROTO_GetShiftState [17:33:36]wFMCommunicate request_size=4 [17:33:36]MH_SAM_APDU [17:33:36]CAPDU: 80 13 01 00 [17:33:36]Write to MH i2c: E2 08 00 1A 31 80 13 01 00 00 00 00 00 C8 [17:33:36]Write i2c OK [17:33:36]MH_I2C_Read... [17:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:36]Read from MH i2c: E2 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 0E 00 [17:33:36]MH_I2C_Read... [17:33:36]Read from MH i2c: E2 0E 00 1A 31 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 FE [17:33:36]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:33:36]wFMCommunicate OK [17:33:36]SAM_PROTO_GetShiftState done [17:33:36]FM_GetShiftState done [17:33:36]opened in 1720915483 [17:33:36]opened+sec_in_day 1721001883 [17:33:36]quantity*price = 50056 [17:33:36]sum+1 = 50058 [17:33:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 208 14.07.2024 17:33 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162896 ФПД: 218430816230098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T173338&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162896&fm=218430816230098&tin=02508201610067®Number=0000000000090858&sum=50000 [17:33:37]StoreToDocumentArchive [17:33:37]shift 463 fd 162896 [17:33:37]save to /storage/0463/doc_00162896 [17:33:37]save last doc name /storage/0463/doc_00162896 to /storage/kkm_last_doc_name [17:33:37]save OK [17:33:37]Clear old archive folders... [17:33:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:37]tlvbuf is 0125BAA0 [17:33:37]SAM_PROTO_ClearQueue [17:33:37]wFMCommunicate request_size=4 [17:33:37]MH_SAM_APDU [17:33:37]CAPDU: 80 09 00 00 [17:33:37]Write to MH i2c: E2 08 00 27 31 80 09 00 00 00 00 00 00 CA [17:33:37]Write i2c OK [17:33:37]MH_I2C_Read... [17:33:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:37]Read from MH i2c: E2 [17:33:37]MH_I2C_Read... [17:33:37]Read from MH i2c: E2 03 00 [17:33:37]MH_I2C_Read... [17:33:37]Read from MH i2c: E2 03 00 27 31 00 90 00 CC [17:33:37]RAPDU: 90 00 [17:33:37]wFMCommunicate OK [17:33:37]SAM_PROTO_ClearQueue done [17:33:37]KKMCreateOFDPacket [17:33:37]OFDProtocolAddRootSTLVToBuf [17:33:37]FM_MakeSignedData [17:33:37]FM_MakeSignedData [17:33:37]SAM_PROTO_SignData [17:33:37]wFMCommunicate request_size=4 [17:33:37]MH_SAM_APDU [17:33:37]CAPDU: 80 0D 01 02 [17:33:37]Write to MH i2c: E2 08 00 28 31 80 0D 01 02 00 00 00 00 D2 [17:33:37]Write i2c OK [17:33:37]MH_I2C_Read... [17:33:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:37]Read from MH i2c: E2 [17:33:37]MH_I2C_Read... [17:33:37]Read from MH i2c: E2 03 00 [17:33:37]MH_I2C_Read... [17:33:37]Read from MH i2c: E2 03 00 28 31 00 90 00 CD [17:33:37]RAPDU: 90 00 [17:33:37]wFMCommunicate OK [17:33:37]wFMCommunicate request_size=255 [17:33:37]MH_SAM_APDU [17:33: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 D0 00 00 00 F4 03 04 00 F2 0B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7C 02 00 35 04 06 00 C6 [17:33:37]Write to MH i2c: E2 02 01 29 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 D0 00 00 00 F4 03 04 00 F2 0B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7C 02 00 35 04 06 00 C6 00 00 B9 [17:33:37]Write i2c OK [17:33:37]MH_I2C_Read... [17:33:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:38]Read from MH i2c: E2 [17:33:38]MH_I2C_Read... [17:33:38]Read from MH i2c: E2 03 00 [17:33:38]MH_I2C_Read... [17:33:38]Read from MH i2c: E2 03 00 29 31 00 90 00 CE [17:33:38]RAPDU: 90 00 [17:33:38]wFMCommunicate OK [17:33:38]wFMCommunicate request_size=10 [17:33:38]MH_SAM_APDU [17:33:38]CAPDU: 80 0D 02 02 05 A9 63 35 9A D2 [17:33:38]Write to MH i2c: E2 0D 00 2A 31 80 0D 02 02 05 00 A9 63 35 9A D2 00 00 8C [17:33:38]Write i2c OK [17:33:38]MH_I2C_Read... [17:33:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:38]Read from MH i2c: E2 [17:33:38]MH_I2C_Read... [17:33:38]Read from MH i2c: E2 03 00 [17:33:38]MH_I2C_Read... [17:33:38]Read from MH i2c: E2 03 00 2A 31 00 90 00 CF [17:33:38]RAPDU: 90 00 [17:33:38]wFMCommunicate OK [17:33:38]wFMCommunicate request_size=4 [17:33:38]MH_SAM_APDU [17:33:38]CAPDU: 80 0D 03 02 [17:33:38]Write to MH i2c: E2 08 00 2B 31 80 0D 03 02 00 00 00 00 D7 [17:33:38]Write i2c OK [17:33:38]MH_I2C_Read... [17:33:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:38]Read from MH i2c: E2 [17:33:38]MH_I2C_Read... [17:33:38]Read from MH i2c: E2 0B 00 [17:33:38]MH_I2C_Read... [17:33:38]Read from MH i2c: E2 0B 00 2B 31 00 32 01 D3 E0 FE B0 53 2F 90 00 EE [17:33:38]RAPDU: 32 01 D3 E0 FE B0 53 2F 90 00 [17:33:38]wFMCommunicate OK [17:33:38]SAM_PROTO_SignData done [17:33:38]FM_MakeSignedData done [17:33:38]CreateOFDProtocolMessage [17:33:38]wFMCommunicate request_size=4 [17:33:38]MH_SAM_APDU [17:33:38]CAPDU: 80 11 00 00 [17:33:38]Write to MH i2c: E2 08 00 2C 31 80 11 00 00 00 00 00 00 D7 [17:33:38]Write i2c OK [17:33:38]MH_I2C_Read... [17:33:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:38]Read from MH i2c: E2 [17:33:38]MH_I2C_Read... [17:33:38]Read from MH i2c: E2 17 00 [17:33:38]MH_I2C_Read... [17:33:38]Read from MH i2c: E2 17 00 2C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 37 [17:33:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:33:38]wFMCommunicate OK [17:33:38]CreateOFDProtocolMessage done [17:33:38]OFDSenderStorePacket 162896 [17:33:38]StoreOFDPacket docnum=162896 [17:33:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 19 58 07 01 27 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 D0 00 00 00 F4 03 04 00 F2 0B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7C 02 00 35 04 06 00 C6 A9 63 35 9A D2 32 01 D3 E0 FE B0 53 2F [17:33:38]CheckFolder [17:33:38]dirname=/storage/ofd_packets [17:33:38]CheckFolder done [17:33:38]ProducePacketName [17:33:38]name=ofd_packets/00162896 [17:33:38]NVStorageSaveData ofd_packets/00162896 [17:33:38]File name is /storage/ofd_packets/00162896 [17:33:38]Write 301 bytes [17:33:38]NVStorageSaveData done [17:33:38]OFDSenderStorePacket done [17:33:38]KKMCreateOFDPacket done [17:33:38]NVStorageSaveData kkm_last_timestamp [17:33:38]File name is /storage/kkm_last_timestamp [17:33:38]Write 4 bytes [17:33:38]NVStorageSaveData done [17:33:38]ExternCall_PrintAddStr [17:33:38]wPrintStart [17:33:38]Write to MH i2c: 01 00 00 2D 31 5E [17:33:38]Write i2c OK [17:33:38]MH_I2C_Read... [17:33:38]Read from MH i2c: 01 [17:33:38]MH_I2C_Read... [17:33:38]Read from MH i2c: 01 07 00 [17:33:38]MH_I2C_Read... [17:33:38]Read from MH i2c: 01 07 00 2D 31 00 00 00 00 00 FF 0F 73 [17:33:38]RasterBufferAndPrint [17:33:38]line Счет N : (1)1319506 [17:33:38]line ИНН: 02508201610067 [17:33:38]line Контрольно-Кассовый Чек [17:33:38]line ПРОДАЖА [17:33:38]line ТРК (МРК, ГНК) : 33 [17:33:38]line Товар: 2710124130 [17:33:38]line Аи-92-К-5 [17:33:38]line 7.550 * 66.30 [17:33:38]line = 500.57 [17:33:38]line НДС 12% НСП 1% [17:33:38]line > о реализуемом товаре [17:33:38]line ОКРУГЛЕНИЕ: -0.57 [17:33:38]line ИТОГО: 500.00 [17:33:38]line Внесено: 500.00 [17:33:38]line СДАЧА: 0.00 [17:33:38]line НСП 1% : 4.43 [17:33:38]line НДС 12% : 53.16 [17:33:38]line Наличными: 500.00 [17:33:38]line Безнал.: 0.00 [17:33:38]line Место: АЗС № 140 "Партнер Нефть" [17:33:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:33:38]line СНО: Общий режим [17:33:38]line Чек 208 14.07.2024 17:33 [17:33:38]line Смена: 463 ФФД: 1.0 [17:33:38]line ЗНМ: 0300000129 [17:33:38]line РНМ: 0000000000090858 [17:33:38]line Версия ККМ: 001 [17:33:38]line ФМ: 0000000000874899 [17:33:38]line ФД: 162896 [17:33:38]line ФПД: 218430816230098 [17:33:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T173338&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162896&fm=218430816230098&tin=02508201610067®Number=0000000000090858&sum=50000 [17:33:38]OFD Sender: Processing packet 162896 [packets to send 106, broken 105] [17:33:38]ProducePacketName [17:33:38]name=ofd_packets/00162896 [17:33:38]OFD Sender: To server: pG, [17:33:38]CommunicateWithHost lk.salyk.kg:30040 [17:33:38]ConnectInit lk.salyk.kg [17:33:38]written 0, free lines is 4095 [17:33:38]Connected sock=10 [17:33:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 19 58 07 01 27 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 D0 00 00 00 F4 03 04 00 F2 0B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7C 02 00 35 04 06 00 C6 A9 63 35 9A D2 32 01 D3 E0 FE B0 53 2F [17:33:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 74 A9 47 00 E8 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7C 02 00 F4 03 04 00 FF B7 93 66 B6 04 01 00 00 B4 99 7B 9D E0 D4 20 61 [17:33:39]CommunicateWithHost err = 0 [17:33:39]CheckOFDResponse [17:33:39]1017 (14) - 77093643461234 [17:33:39]1041 (16) - 0000000000874899 [17:33:39]1040 (4) - 162896 [17:33:39]1012 (4) - 14.07.2024 11:35 [17:33:39]1206 (1) - 0 [17:33:39]OFD Sender: Remove packet 162896 [17:33:39]ProducePacketName [17:33:39]name=ofd_packets/00162896 [17:33:39]NVStorageDeleteData [17:33:39]Write to MH i2c: 01 00 00 58 31 89 [17:33:39]Write i2c OK [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: 01 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: 01 07 00 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: 01 07 00 58 31 00 00 00 00 00 E3 0C 7F [17:33:39]RasterBufferAndPrint [17:33:39]line [17:33:39]line [17:33:39]line [17:33:39]line [17:33:39]line [17:33:39]written 0, free lines is 3305 [17:33:39]MH_Cut [17:33:39]Write to MH i2c: D1 01 00 5F 31 01 62 [17:33:39]Write i2c OK [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: D1 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: D1 01 00 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: D1 01 00 5F 31 00 61 [17:33:39]Write to MH i2c: 01 00 00 60 31 91 [17:33:39]Write i2c OK [17:33:39]MH_I2C_Read... [17:33:39]OFD Sender: No OFD packet to send [17:33:39]*** Cut start [17:33:39]*** Purtial cut [17:33:39]*** CUTSNS_PIN = 0 [17:33:40]*** Stage 1: CUTSNS_PIN = 1 [17:33:41]Read from MH i2c: 01 [17:33:41]MH_I2C_Read... [17:33:41]*** Stop cut motor [17:33:41]*** Cut end [17:33:41]Read from MH i2c: 01 07 00 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: 01 07 00 60 31 00 00 00 00 00 FF 0F A6 [17:33:41]process_action close_receipt done [17:33:41]requested_data is exist [17:33:41]produce_requested_data [17:33:41]requested_item fm.sn is exist - process it [17:33:41]wFMCommunicate request_size=4 [17:33:41]MH_SAM_APDU [17:33:41]CAPDU: 80 11 00 00 [17:33:41]Write to MH i2c: E2 08 00 61 31 80 11 00 00 00 00 00 00 0C [17:33:41]Write i2c OK [17:33:41]MH_I2C_Read... [17:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:41]Read from MH i2c: E2 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 17 00 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 17 00 61 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6C [17:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:33:41]wFMCommunicate OK [17:33:41]requested_item fd.num is exist - process it [17:33:41]SAM_PROTO_GetFieldsCounters [17:33:41]wFMCommunicate request_size=4 [17:33:41]MH_SAM_APDU [17:33:41]CAPDU: 80 13 00 00 [17:33:41]Write to MH i2c: E2 08 00 62 31 80 13 00 00 00 00 00 00 0F [17:33:41]Write i2c OK [17:33:41]MH_I2C_Read... [17:33:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:42]Read from MH i2c: E2 [17:33:42]MH_I2C_Read... [17:33:42]Read from MH i2c: E2 62 00 [17:33:42]MH_I2C_Read... [17:33:42]Read from MH i2c: E2 62 00 62 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 50 7C 02 00 0E 04 04 00 CF 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 50 [17:33:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 50 7C 02 00 0E 04 04 00 CF 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 [17:33:42]wFMCommunicate OK [17:33:42]SAM_PROTO_GetFieldsCounters done [17:33:42]requested_item shift.num is exist - process it [17:33:42]requested_item shift.opened is exist - process it [17:33:42]req_shift_opened [17:33:42]FM_GetShiftState [17:33:42]SAM_PROTO_GetShiftState [17:33:42]wFMCommunicate request_size=4 [17:33:42]MH_SAM_APDU [17:33:42]CAPDU: 80 13 01 00 [17:33:42]Write to MH i2c: E2 08 00 63 31 80 13 01 00 00 00 00 00 11 [17:33:42]Write i2c OK [17:33:42]MH_I2C_Read... [17:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:42]Read from MH i2c: E2 [17:33:42]MH_I2C_Read... [17:33:42]Read from MH i2c: E2 0E 00 [17:33:42]MH_I2C_Read... [17:33:42]Read from MH i2c: E2 0E 00 63 31 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 47 [17:33:42]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:33:42]wFMCommunicate OK [17:33:42]SAM_PROTO_GetShiftState done [17:33:42]FM_GetShiftState done [17:33:42]req_shift_opened done [17:33:42]requested_item shift.open_date is exist - process it [17:33:42]req_shift_open_date [17:33:42]req_shift_open_date done [17:33:42]produce_requested_data done [17:33:42]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162896,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:33:42]process_action_free close_receipt [17:33:42]json_value_free [17:33:42]json_value_free done [17:33:42]process_json_proto returns [17:33:42]Send response to host [17:33:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162896,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:33:42]free response buf [17:33:42]execute_script done [17:33:42]execute_script returns [17:33:42]free content buf [17:33:42]Sock 9.Close socket [17:33:42]Sock 9.Thread stoped [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:38]accept exits with 7 [17:39:38]New connection [17:39:38]New thread 3066735972 created [17:39:38]Thread 3066879332 joined [17:39:38]Waiting for new connection... [17:39:38] Sock 7.Parse request [17:39:38]Sock 7.Check first char [17:39:38]Sock 7.First char is OK [17:39:38]request: POST /json_proto HTTP/1.0 [17:39:38]Method: POST [17:39:38]URL: /json_proto [17:39:38]Method is POST - this is cgi request [17:39:38]url: /json_proto [17:39:38]query_string will be loaded in cgi processing [17:39:38]execute_cgi json_proto POST (null) [17:39:38]execute_cgi path=json_proto method=POST [17:39:38]POST find Content-Length [17:39:38]Host: 172.17.39.67:8080 [17:39:38]Content-Length: 683 [17:39:38]Content-Type: application/json [17:39:38] [17:39:38]POST finish read [17:39:38]Found Content-Length = 683 [17:39:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:38]execute_script... [17:39:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:38]POST & json_proto [17:39:38]process_json_proto [17:39:38]json parsed OK: [17:39:38]protocol is kg_v1.0 [17:39:38]action value=close_receipt [17:39:38]process_action close_receipt [17:39:38]cmd_close_receipt [17:39:38]MH_GetDate [17:39:38]Write to MH i2c: F0 00 00 64 31 84 [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: F0 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: F0 09 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: F0 09 00 64 31 00 5C 0D 94 66 B6 85 93 66 24 [17:39:38]GetLastDocTimeStamp 1720978418 [17:39:38]current date 1720978780 [17:39:38]FM_GetShiftState [17:39:38]SAM_PROTO_GetShiftState [17:39:38]wFMCommunicate request_size=4 [17:39:38]MH_SAM_APDU [17:39:38]CAPDU: 80 13 01 00 [17:39:38]Write to MH i2c: E2 08 00 65 31 80 13 01 00 00 00 00 00 13 [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:38]Read from MH i2c: E2 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 0E 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 0E 00 65 31 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 49 [17:39:38]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:39:38]wFMCommunicate OK [17:39:38]SAM_PROTO_GetShiftState done [17:39:38]FM_GetShiftState done [17:39:38]opened in 1720915483 [17:39:38]opened+sec_in_day 1721001883 [17:39:38]quantity*price = 70059 [17:39:38]sum+1 = 70060 [17:39:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 209 14.07.2024 17:39 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162897 ФПД: 64608217955363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T173940&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162897&fm=64608217955363&tin=02508201610067®Number=0000000000090858&sum=70000 [17:39:39]StoreToDocumentArchive [17:39:39]shift 463 fd 162897 [17:39:39]save to /storage/0463/doc_00162897 [17:39:39]save last doc name /storage/0463/doc_00162897 to /storage/kkm_last_doc_name [17:39:39]save OK [17:39:39]Clear old archive folders... [17:39:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:39:39]tlvbuf is 0123B990 [17:39:39]SAM_PROTO_ClearQueue [17:39:39]wFMCommunicate request_size=4 [17:39:39]MH_SAM_APDU [17:39:39]CAPDU: 80 09 00 00 [17:39:39]Write to MH i2c: E2 08 00 72 31 80 09 00 00 00 00 00 00 15 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:39]Read from MH i2c: E2 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 72 31 00 90 00 17 [17:39:39]RAPDU: 90 00 [17:39:39]wFMCommunicate OK [17:39:39]SAM_PROTO_ClearQueue done [17:39:39]KKMCreateOFDPacket [17:39:39]OFDProtocolAddRootSTLVToBuf [17:39:39]FM_MakeSignedData [17:39:39]FM_MakeSignedData [17:39:39]SAM_PROTO_SignData [17:39:39]wFMCommunicate request_size=4 [17:39:39]MH_SAM_APDU [17:39:39]CAPDU: 80 0D 01 02 [17:39:39]Write to MH i2c: E2 08 00 73 31 80 0D 01 02 00 00 00 00 1D [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:39]OFD Sender: No OFD packet to send [17:39:39]Read from MH i2c: E2 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: E2 03 00 73 31 00 90 00 18 [17:39:39]RAPDU: 90 00 [17:39:39]wFMCommunicate OK [17:39:39]wFMCommunicate request_size=255 [17:39:39]MH_SAM_APDU [17:39:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 5C 0D 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7C 02 00 35 04 06 00 [17:39:39]Write to MH i2c: E2 02 01 74 31 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 5C 0D 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7C 02 00 35 04 06 00 00 00 F2 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:40]Read from MH i2c: E2 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: E2 03 00 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: E2 03 00 74 31 00 90 00 19 [17:39:40]RAPDU: 90 00 [17:39:40]wFMCommunicate OK [17:39:40]wFMCommunicate request_size=11 [17:39:40]MH_SAM_APDU [17:39:40]CAPDU: 80 0D 02 02 06 3A C2 C5 E1 7C 23 [17:39:40]Write to MH i2c: E2 0E 00 75 31 80 0D 02 02 06 00 3A C2 C5 E1 7C 23 00 00 6D [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:40]Read from MH i2c: E2 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: E2 03 00 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: E2 03 00 75 31 00 90 00 1A [17:39:40]RAPDU: 90 00 [17:39:40]wFMCommunicate OK [17:39:40]wFMCommunicate request_size=4 [17:39:40]MH_SAM_APDU [17:39:40]CAPDU: 80 0D 03 02 [17:39:40]Write to MH i2c: E2 08 00 76 31 80 0D 03 02 00 00 00 00 22 [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:40]Read from MH i2c: E2 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: E2 0B 00 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: E2 0B 00 76 31 00 C8 9D 84 9F F5 AD AF 9A 90 00 96 [17:39:40]RAPDU: C8 9D 84 9F F5 AD AF 9A 90 00 [17:39:40]wFMCommunicate OK [17:39:40]SAM_PROTO_SignData done [17:39:40]FM_MakeSignedData done [17:39:40]CreateOFDProtocolMessage [17:39:40]wFMCommunicate request_size=4 [17:39:40]MH_SAM_APDU [17:39:40]CAPDU: 80 11 00 00 [17:39:40]Write to MH i2c: E2 08 00 77 31 80 11 00 00 00 00 00 00 22 [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:40]Read from MH i2c: E2 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: E2 17 00 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: E2 17 00 77 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 82 [17:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:39:40]wFMCommunicate OK [17:39:40]CreateOFDProtocolMessage done [17:39:40]OFDSenderStorePacket 162897 [17:39:40]StoreOFDPacket docnum=162897 [17:39:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 17 3B 08 01 07 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 5C 0D 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7C 02 00 35 04 06 00 3A C2 C5 E1 7C 23 C8 9D 84 9F F5 AD AF 9A [17:39:40]CheckFolder [17:39:40]dirname=/storage/ofd_packets [17:39:40]CheckFolder done [17:39:40]ProducePacketName [17:39:40]name=ofd_packets/00162897 [17:39:40]NVStorageSaveData ofd_packets/00162897 [17:39:40]File name is /storage/ofd_packets/00162897 [17:39:40]Write 302 bytes [17:39:40]NVStorageSaveData done [17:39:40]OFDSenderStorePacket done [17:39:40]KKMCreateOFDPacket done [17:39:40]NVStorageSaveData kkm_last_timestamp [17:39:40]File name is /storage/kkm_last_timestamp [17:39:40]Write 4 bytes [17:39:40]NVStorageSaveData done [17:39:40]ExternCall_PrintAddStr [17:39:40]wPrintStart [17:39:40]Write to MH i2c: 01 00 00 78 31 A9 [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: 01 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: 01 07 00 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: 01 07 00 78 31 00 00 00 00 00 FF 0F BE [17:39:40]RasterBufferAndPrint [17:39:40]line Счет N : (1)1319507 [17:39:40]line ИНН: 02508201610067 [17:39:40]line Контрольно-Кассовый Чек [17:39:40]line ПРОДАЖА [17:39:40]line ТРК (МРК, ГНК) : 11 [17:39:40]line Товар: 2710194210 [17:39:40]line ДТ(л)-К-5 [17:39:40]line 9.650 * 72.60 [17:39:40]line = 700.59 [17:39:40]line НДС 12% НСП 1% [17:39:40]line > о реализуемом товаре [17:39:40]line ОКРУГЛЕНИЕ: -0.59 [17:39:40]line ИТОГО: 700.00 [17:39:40]line Внесено: 700.00 [17:39:40]line СДАЧА: 0.00 [17:39:40]line НСП 1% : 6.20 [17:39:40]line НДС 12% : 74.40 [17:39:40]line Наличными: 700.00 [17:39:40]line Безнал.: 0.00 [17:39:40]line Место: АЗС № 140 "Партнер Нефть" [17:39:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:39:40]line СНО: Общий режим [17:39:40]line Чек 209 14.07.2024 17:39 [17:39:40]line Смена: 463 ФФД: 1.0 [17:39:40]line ЗНМ: 0300000129 [17:39:40]line РНМ: 0000000000090858 [17:39:40]line Версия ККМ: 001 [17:39:40]line ФМ: 0000000000874899 [17:39:40]line ФД: 162897 [17:39:40]line ФПД: 64608217955363 [17:39:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T173940&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162897&fm=64608217955363&tin=02508201610067®Number=0000000000090858&sum=70000 [17:39:40]written 0, free lines is 4095 [17:39:40]OFD Sender: Processing packet 162897 [packets to send 106, broken 105] [17:39:40]ProducePacketName [17:39:40]name=ofd_packets/00162897 [17:39:40]OFD Sender: To server: pG, [17:39:40]CommunicateWithHost lk.salyk.kg:30040 [17:39:40]ConnectInit lk.salyk.kg [17:39:40]Connected sock=9 [17:39:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 17 3B 08 01 07 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 5C 0D 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7C 02 00 35 04 06 00 3A C2 C5 E1 7C 23 C8 9D 84 9F F5 AD AF 9A [17:39:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D7 65 47 00 67 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7C 02 00 F4 03 04 00 69 B9 93 66 B6 04 01 00 00 31 4C 3A A4 9F 94 2C 4C [17:39:40]CommunicateWithHost err = 0 [17:39:40]CheckOFDResponse [17:39:40]1017 (14) - 77093643461234 [17:39:40]1041 (16) - 0000000000874899 [17:39:40]1040 (4) - 162897 [17:39:40]1012 (4) - 14.07.2024 11:41 [17:39:40]1206 (1) - 0 [17:39:40]OFD Sender: Remove packet 162897 [17:39:40]ProducePacketName [17:39:40]name=ofd_packets/00162897 [17:39:40]NVStorageDeleteData [17:39:40]Write to MH i2c: 01 00 00 A3 31 D4 [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: 01 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: 01 07 00 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: 01 07 00 A3 31 00 00 00 00 00 DF 0C C6 [17:39:40]RasterBufferAndPrint [17:39:40]line [17:39:40]line [17:39:40]line [17:39:40]line [17:39:40]line [17:39:40]written 0, free lines is 3302 [17:39:40]MH_Cut [17:39:40]Write to MH i2c: D1 01 00 AA 31 01 AD [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: D1 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: D1 01 00 [17:39:40]MH_I2C_Read... [17:39:40]Read from MH i2c: D1 01 00 AA 31 00 AC [17:39:40]Write to MH i2c: 01 00 00 AB 31 DC [17:39:40]Write i2c OK [17:39:40]MH_I2C_Read... [17:39:41]OFD Sender: No OFD packet to send [17:39:41]*** Cut start [17:39:41]*** Purtial cut [17:39:41]*** Stage 1: CUTSNS_PIN = 1 [17:39:41]Read from MH i2c: 01 [17:39:41]MH_I2C_Read... [17:39:41]*** Stop cut motor [17:39:41]*** Cut end [17:39:41]Read from MH i2c: 01 07 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: 01 07 00 AB 31 00 00 00 00 00 FF 0F F1 [17:39:41]process_action close_receipt done [17:39:41]requested_data is exist [17:39:41]produce_requested_data [17:39:41]requested_item fm.sn is exist - process it [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 11 00 00 [17:39:41]Write to MH i2c: E2 08 00 AC 31 80 11 00 00 00 00 00 00 57 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 AC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B7 [17:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:39:41]wFMCommunicate OK [17:39:41]requested_item fd.num is exist - process it [17:39:41]SAM_PROTO_GetFieldsCounters [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 13 00 00 [17:39:41]Write to MH i2c: E2 08 00 AD 31 80 13 00 00 00 00 00 00 5A [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:42]Read from MH i2c: E2 [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: E2 62 00 [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: E2 62 00 AD 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 51 7C 02 00 0E 04 04 00 CF 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 9F [17:39:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 51 7C 02 00 0E 04 04 00 CF 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 [17:39:42]wFMCommunicate OK [17:39:42]SAM_PROTO_GetFieldsCounters done [17:39:42]requested_item shift.num is exist - process it [17:39:42]requested_item shift.opened is exist - process it [17:39:42]req_shift_opened [17:39:42]FM_GetShiftState [17:39:42]SAM_PROTO_GetShiftState [17:39:42]wFMCommunicate request_size=4 [17:39:42]MH_SAM_APDU [17:39:42]CAPDU: 80 13 01 00 [17:39:42]Write to MH i2c: E2 08 00 AE 31 80 13 01 00 00 00 00 00 5C [17:39:42]Write i2c OK [17:39:42]MH_I2C_Read... [17:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:42]Read from MH i2c: E2 [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: E2 0E 00 [17:39:42]MH_I2C_Read... [17:39:42]Read from MH i2c: E2 0E 00 AE 31 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 92 [17:39:42]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:39:42]wFMCommunicate OK [17:39:42]SAM_PROTO_GetShiftState done [17:39:42]FM_GetShiftState done [17:39:42]req_shift_opened done [17:39:42]requested_item shift.open_date is exist - process it [17:39:42]req_shift_open_date [17:39:42]req_shift_open_date done [17:39:42]produce_requested_data done [17:39:42]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162897,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:39:42]process_action_free close_receipt [17:39:42]json_value_free [17:39:42]json_value_free done [17:39:42]process_json_proto returns [17:39:42]Send response to host [17:39:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162897,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:39:42]free response buf [17:39:42]execute_script done [17:39:42]execute_script returns [17:39:42]free content buf [17:39:42]Sock 7.Close socket [17:39:42]Sock 7.Thread stoped [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:35]accept exits with 10 [17:42:35]New connection [17:42:35]New thread 3066879332 created [17:42:35]Thread 3066735972 joined [17:42:35]Waiting for new connection... [17:42:35] Sock 10.Parse request [17:42:35]Sock 10.Check first char [17:42:35]Sock 10.First char is OK [17:42:35]request: POST /json_proto HTTP/1.0 [17:42:35]Method: POST [17:42:35]URL: /json_proto [17:42:35]Method is POST - this is cgi request [17:42:35]url: /json_proto [17:42:35]query_string will be loaded in cgi processing [17:42:35]execute_cgi json_proto POST (null) [17:42:35]execute_cgi path=json_proto method=POST [17:42:35]POST find Content-Length [17:42:35]Host: 172.17.39.67:8080 [17:42:35]Content-Length: 688 [17:42:35]Content-Type: application/json [17:42:35] [17:42:35]POST finish read [17:42:35]Found Content-Length = 688 [17:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 39.950, "sum" : 2900.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2900.00, "total" : 2900.00, "payments": [ { "type": 0, "sum" : 2900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:35]execute_script... [17:42: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)1319508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 39.950, "sum" : 2900.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2900.00, "total" : 2900.00, "payments": [ { "type": 0, "sum" : 2900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:35]POST & json_proto [17:42:35]process_json_proto [17:42:35]json parsed OK: [17:42:35]protocol is kg_v1.0 [17:42:35]action value=close_receipt [17:42:35]process_action close_receipt [17:42:35]cmd_close_receipt [17:42:35]MH_GetDate [17:42:35]Write to MH i2c: F0 00 00 AF 31 CF [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: F0 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: F0 09 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: F0 09 00 AF 31 00 0D 0E 94 66 B6 85 93 66 21 [17:42:35]GetLastDocTimeStamp 1720978780 [17:42:35]current date 1720978957 [17:42:35]FM_GetShiftState [17:42:35]SAM_PROTO_GetShiftState [17:42:35]wFMCommunicate request_size=4 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 13 01 00 [17:42:35]Write to MH i2c: E2 08 00 B0 31 80 13 01 00 00 00 00 00 5E [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 0E 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 0E 00 B0 31 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 94 [17:42:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:42:35]wFMCommunicate OK [17:42:35]SAM_PROTO_GetShiftState done [17:42:35]FM_GetShiftState done [17:42:35]opened in 1720915483 [17:42:35]opened+sec_in_day 1721001883 [17:42:35]quantity*price = 290037 [17:42:35]sum+1 = 290038 [17:42:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 2900.00 Внесено: 2900.00 СДАЧА: 0.00 НСП 1% : 25.67 НДС 12% : 308.00 Наличными: 2900.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 210 14.07.2024 17:42 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162898 ФПД: 9645212158684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T174237&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162898&fm=9645212158684&tin=02508201610067®Number=0000000000090858&sum=290000 [17:42:36]StoreToDocumentArchive [17:42:36]shift 463 fd 162898 [17:42:36]save to /storage/0463/doc_00162898 [17:42:36]save last doc name /storage/0463/doc_00162898 to /storage/kkm_last_doc_name [17:42:36]save OK [17:42:36]Clear old archive folders... [17:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:42:36]tlvbuf is B6EC8BA0 [17:42:36]SAM_PROTO_ClearQueue [17:42:36]wFMCommunicate request_size=4 [17:42:36]MH_SAM_APDU [17:42:36]CAPDU: 80 09 00 00 [17:42:36]Write to MH i2c: E2 08 00 BD 31 80 09 00 00 00 00 00 00 60 [17:42:36]Write i2c OK [17:42:36]MH_I2C_Read... [17:42:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:36]Read from MH i2c: E2 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: E2 03 00 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: E2 03 00 BD 31 00 90 00 62 [17:42:36]RAPDU: 90 00 [17:42:36]wFMCommunicate OK [17:42:36]SAM_PROTO_ClearQueue done [17:42:36]KKMCreateOFDPacket [17:42:36]OFDProtocolAddRootSTLVToBuf [17:42:36]FM_MakeSignedData [17:42:36]FM_MakeSignedData [17:42:36]SAM_PROTO_SignData [17:42:36]wFMCommunicate request_size=4 [17:42:36]MH_SAM_APDU [17:42:36]CAPDU: 80 0D 01 02 [17:42:36]Write to MH i2c: E2 08 00 BE 31 80 0D 01 02 00 00 00 00 68 [17:42:36]Write i2c OK [17:42:36]MH_I2C_Read... [17:42:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:36]Read from MH i2c: E2 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: E2 03 00 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: E2 03 00 BE 31 00 90 00 63 [17:42:36]RAPDU: 90 00 [17:42:36]wFMCommunicate OK [17:42:36]wFMCommunicate request_size=255 [17:42:36]MH_SAM_APDU [17:42:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F5 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 78 00 00 00 00 07 04 06 00 D0 6C 04 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 0D 0E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7C 02 00 35 04 06 00 [17:42:36]Write to MH i2c: E2 02 01 BF 31 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F5 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 78 00 00 00 00 07 04 06 00 D0 6C 04 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 0D 0E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7C 02 00 35 04 06 00 00 00 26 [17:42:36]Write i2c OK [17:42:36]MH_I2C_Read... [17:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:37]Read from MH i2c: E2 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 03 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 03 00 BF 31 00 90 00 64 [17:42:37]RAPDU: 90 00 [17:42:37]wFMCommunicate OK [17:42:37]wFMCommunicate request_size=11 [17:42:37]MH_SAM_APDU [17:42:37]CAPDU: 80 0D 02 02 06 08 C5 B3 71 CA DC [17:42:37]Write to MH i2c: E2 0E 00 C0 31 80 0D 02 02 06 00 08 C5 B3 71 CA DC 00 00 0E [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:37]Read from MH i2c: E2 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 03 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 03 00 C0 31 00 90 00 65 [17:42:37]RAPDU: 90 00 [17:42:37]wFMCommunicate OK [17:42:37]wFMCommunicate request_size=4 [17:42:37]MH_SAM_APDU [17:42:37]CAPDU: 80 0D 03 02 [17:42:37]Write to MH i2c: E2 08 00 C1 31 80 0D 03 02 00 00 00 00 6D [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:37]Read from MH i2c: E2 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 0B 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 0B 00 C1 31 00 C2 B4 3E 73 A8 B7 75 6C 90 00 D5 [17:42:37]RAPDU: C2 B4 3E 73 A8 B7 75 6C 90 00 [17:42:37]wFMCommunicate OK [17:42:37]SAM_PROTO_SignData done [17:42:37]FM_MakeSignedData done [17:42:37]CreateOFDProtocolMessage [17:42:37]wFMCommunicate request_size=4 [17:42:37]MH_SAM_APDU [17:42:37]CAPDU: 80 11 00 00 [17:42:37]Write to MH i2c: E2 08 00 C2 31 80 11 00 00 00 00 00 00 6D [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:37]Read from MH i2c: E2 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 17 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 17 00 C2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CD [17:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:42:37]wFMCommunicate OK [17:42:37]CreateOFDProtocolMessage done [17:42:37]OFDSenderStorePacket 162898 [17:42:37]StoreOFDPacket docnum=162898 [17:42:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 B1 08 01 A7 3D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F5 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 78 00 00 00 00 07 04 06 00 D0 6C 04 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 0D 0E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7C 02 00 35 04 06 00 08 C5 B3 71 CA DC C2 B4 3E 73 A8 B7 75 6C [17:42:37]CheckFolder [17:42:37]dirname=/storage/ofd_packets [17:42:37]CheckFolder done [17:42:37]ProducePacketName [17:42:37]name=ofd_packets/00162898 [17:42:37]NVStorageSaveData ofd_packets/00162898 [17:42:37]File name is /storage/ofd_packets/00162898 [17:42:37]Write 302 bytes [17:42:37]NVStorageSaveData done [17:42:37]OFDSenderStorePacket done [17:42:37]KKMCreateOFDPacket done [17:42:37]NVStorageSaveData kkm_last_timestamp [17:42:37]File name is /storage/kkm_last_timestamp [17:42:37]Write 4 bytes [17:42:37]NVStorageSaveData done [17:42:37]ExternCall_PrintAddStr [17:42:37]wPrintStart [17:42:37]Write to MH i2c: 01 00 00 C3 31 F4 [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: 01 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: 01 07 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: 01 07 00 C3 31 00 00 00 00 00 FF 0F 09 [17:42:37]RasterBufferAndPrint [17:42:37]line Счет N : (1)1319508 [17:42:37]line ИНН: 02508201610067 [17:42:37]line Контрольно-Кассовый Чек [17:42:37]line ПРОДАЖА [17:42:37]line ТРК (МРК, ГНК) : 21 [17:42:37]line Товар: 2710194210 [17:42:37]line ДТ(л)-К-5 [17:42:37]line 39.950 * 72.60 [17:42:37]line = 2900.37 [17:42:37]line НДС 12% НСП 1% [17:42:37]line > о реализуемом товаре [17:42:37]line ОКРУГЛЕНИЕ: -0.37 [17:42:37]line ИТОГО: 2900.00 [17:42:37]line Внесено: 2900.00 [17:42:37]line СДАЧА: 0.00 [17:42:37]line НСП 1% : 25.67 [17:42:37]line НДС 12% : 308.00 [17:42:37]line Наличными: 2900.00 [17:42:37]line Безнал.: 0.00 [17:42:37]line Место: АЗС № 140 "Партнер Нефть" [17:42:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:42:37]line СНО: Общий режим [17:42:37]line Чек 210 14.07.2024 17:42 [17:42:37]line Смена: 463 ФФД: 1.0 [17:42:37]line ЗНМ: 0300000129 [17:42:37]line РНМ: 0000000000090858 [17:42:37]line Версия ККМ: 001 [17:42:37]line ФМ: 0000000000874899 [17:42:37]line ФД: 162898 [17:42:37]line ФПД: 9645212158684 [17:42:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T174237&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162898&fm=9645212158684&tin=02508201610067®Number=0000000000090858&sum=290000 [17:42:37]OFD Sender: Processing packet 162898 [packets to send 106, broken 105] [17:42:37]ProducePacketName [17:42:37]name=ofd_packets/00162898 [17:42:37]OFD Sender: To server: pG, [17:42:37]CommunicateWithHost lk.salyk.kg:30040 [17:42:37]ConnectInit lk.salyk.kg [17:42:37]written 0, free lines is 4095 [17:42:37]Connected sock=9 [17:42:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 B1 08 01 A7 3D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 0E 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F5 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 78 00 00 00 00 07 04 06 00 D0 6C 04 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 0D 0E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7C 02 00 35 04 06 00 08 C5 B3 71 CA DC C2 B4 3E 73 A8 B7 75 6C [17:42:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4C 40 47 00 11 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7C 02 00 F4 03 04 00 1A BA 93 66 B6 04 01 00 00 6B 13 DF C7 81 5C A2 8B [17:42:37]CommunicateWithHost err = 0 [17:42:37]CheckOFDResponse [17:42:37]1017 (14) - 77093643461234 [17:42:37]1041 (16) - 0000000000874899 [17:42:37]1040 (4) - 162898 [17:42:37]1012 (4) - 14.07.2024 11:44 [17:42:37]1206 (1) - 0 [17:42:37]OFD Sender: Remove packet 162898 [17:42:37]ProducePacketName [17:42:37]name=ofd_packets/00162898 [17:42:37]NVStorageDeleteData [17:42:37]Write to MH i2c: 01 00 00 EE 31 1F [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: 01 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: 01 07 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: 01 07 00 EE 31 00 00 00 00 00 DD 0C 0F [17:42:37]RasterBufferAndPrint [17:42:37]line [17:42:37]line [17:42:37]line [17:42:37]line [17:42:37]line [17:42:37]written 0, free lines is 3299 [17:42:37]MH_Cut [17:42:37]Write to MH i2c: D1 01 00 F5 31 01 F8 [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: D1 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: D1 01 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: D1 01 00 F5 31 00 F7 [17:42:37]Write to MH i2c: 01 00 00 F6 31 27 [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:38]OFD Sender: No OFD packet to send [17:42:38]*** Cut start [17:42:38]*** Purtial cut [17:42:38]*** CUTSNS_PIN = 0 [17:42:38]*** Stage 1: CUTSNS_PIN = 1 [17:42:40]Read from MH i2c: 01 [17:42:40]MH_I2C_Read... [17:42:40]*** Stop cut motor [17:42:40]*** Cut end [17:42:40]Read from MH i2c: 01 07 00 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: 01 07 00 F6 31 00 00 00 00 00 FF 0F 3C [17:42:40]process_action close_receipt done [17:42:40]requested_data is exist [17:42:40]produce_requested_data [17:42:40]requested_item fm.sn is exist - process it [17:42:40]wFMCommunicate request_size=4 [17:42:40]MH_SAM_APDU [17:42:40]CAPDU: 80 11 00 00 [17:42:40]Write to MH i2c: E2 08 00 F7 31 80 11 00 00 00 00 00 00 A2 [17:42:40]Write i2c OK [17:42:40]MH_I2C_Read... [17:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:40]Read from MH i2c: E2 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 17 00 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 17 00 F7 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 02 [17:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:42:40]wFMCommunicate OK [17:42:40]requested_item fd.num is exist - process it [17:42:40]SAM_PROTO_GetFieldsCounters [17:42:40]wFMCommunicate request_size=4 [17:42:40]MH_SAM_APDU [17:42:40]CAPDU: 80 13 00 00 [17:42:40]Write to MH i2c: E2 08 00 F8 31 80 13 00 00 00 00 00 00 A5 [17:42:40]Write i2c OK [17:42:40]MH_I2C_Read... [17:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:40]Read from MH i2c: E2 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 62 00 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 62 00 F8 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 52 7C 02 00 0E 04 04 00 CF 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 EE [17:42:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 52 7C 02 00 0E 04 04 00 CF 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 [17:42:40]wFMCommunicate OK [17:42:40]SAM_PROTO_GetFieldsCounters done [17:42:40]requested_item shift.num is exist - process it [17:42:40]requested_item shift.opened is exist - process it [17:42:40]req_shift_opened [17:42:40]FM_GetShiftState [17:42:40]SAM_PROTO_GetShiftState [17:42:40]wFMCommunicate request_size=4 [17:42:40]MH_SAM_APDU [17:42:40]CAPDU: 80 13 01 00 [17:42:40]Write to MH i2c: E2 08 00 F9 31 80 13 01 00 00 00 00 00 A7 [17:42:40]Write i2c OK [17:42:40]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 0E 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 0E 00 F9 31 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 DD [17:42:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:42:41]wFMCommunicate OK [17:42:41]SAM_PROTO_GetShiftState done [17:42:41]FM_GetShiftState done [17:42:41]req_shift_opened done [17:42:41]requested_item shift.open_date is exist - process it [17:42:41]req_shift_open_date [17:42:41]req_shift_open_date done [17:42:41]produce_requested_data done [17:42:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162898,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:42:41]process_action_free close_receipt [17:42:41]json_value_free [17:42:41]json_value_free done [17:42:41]process_json_proto returns [17:42:41]Send response to host [17:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162898,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:42:41]free response buf [17:42:41]execute_script done [17:42:41]execute_script returns [17:42:41]free content buf [17:42:41]Sock 10.Close socket [17:42:41]Sock 10.Thread stoped [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]accept exits with 7 [17:44:03]New connection [17:44:03]New thread 3066735972 created [17:44:03]Thread 3066879332 joined [17:44:03]Waiting for new connection... [17:44:03] Sock 7.Parse request [17:44:03]Sock 7.Check first char [17:44:03]Sock 7.First char is OK [17:44:03]request: POST /json_proto HTTP/1.0 [17:44:03]Method: POST [17:44:03]URL: /json_proto [17:44:03]Method is POST - this is cgi request [17:44:03]url: /json_proto [17:44:03]query_string will be loaded in cgi processing [17:44:03]execute_cgi json_proto POST (null) [17:44:03]execute_cgi path=json_proto method=POST [17:44:03]POST find Content-Length [17:44:03]Host: 172.17.39.67:8080 [17:44:03]Content-Length: 688 [17:44:03]Content-Type: application/json [17:44:03] [17:44:03]POST finish read [17:44:03]Found Content-Length = 688 [17:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 14.330, "sum" : 1040.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1040.00, "total" : 1040.00, "payments": [ { "type": 0, "sum" : 1040.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:03]execute_script... [17:44:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 14.330, "sum" : 1040.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1040.00, "total" : 1040.00, "payments": [ { "type": 0, "sum" : 1040.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:03]POST & json_proto [17:44:03]process_json_proto [17:44:03]json parsed OK: [17:44:03]protocol is kg_v1.0 [17:44:03]action value=close_receipt [17:44:03]process_action close_receipt [17:44:03]cmd_close_receipt [17:44:03]MH_GetDate [17:44:03]Write to MH i2c: F0 00 00 FA 31 1A [17:44:03]Write i2c OK [17:44:03]MH_I2C_Read... [17:44:03]Read from MH i2c: F0 [17:44:03]MH_I2C_Read... [17:44:03]Read from MH i2c: F0 09 00 [17:44:03]MH_I2C_Read... [17:44:03]Read from MH i2c: F0 09 00 FA 31 00 65 0E 94 66 B6 85 93 66 C4 [17:44:03]GetLastDocTimeStamp 1720978957 [17:44:03]current date 1720979045 [17:44:03]FM_GetShiftState [17:44:03]SAM_PROTO_GetShiftState [17:44:03]wFMCommunicate request_size=4 [17:44:03]MH_SAM_APDU [17:44:03]CAPDU: 80 13 01 00 [17:44:03]Write to MH i2c: E2 08 00 FB 31 80 13 01 00 00 00 00 00 A9 [17:44:03]Write i2c OK [17:44:03]MH_I2C_Read... [17:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:03]Read from MH i2c: E2 [17:44:03]MH_I2C_Read... [17:44:03]Read from MH i2c: E2 0E 00 [17:44:03]MH_I2C_Read... [17:44:03]Read from MH i2c: E2 0E 00 FB 31 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 DF [17:44:03]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:44:03]wFMCommunicate OK [17:44:03]SAM_PROTO_GetShiftState done [17:44:03]FM_GetShiftState done [17:44:03]opened in 1720915483 [17:44:03]opened+sec_in_day 1721001883 [17:44:03]quantity*price = 104035 [17:44:03]sum+1 = 104037 [17:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1040.00 Внесено: 1040.00 СДАЧА: 0.00 НСП 1% : 9.21 НДС 12% : 110.48 Наличными: 1040.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 211 14.07.2024 17:44 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162899 ФПД: 206241960783940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T174405&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162899&fm=206241960783940&tin=02508201610067®Number=0000000000090858&sum=104000 [17:44:04]StoreToDocumentArchive [17:44:04]shift 463 fd 162899 [17:44:04]save to /storage/0463/doc_00162899 [17:44:04]save last doc name /storage/0463/doc_00162899 to /storage/kkm_last_doc_name [17:44:04]save OK [17:44:04]Clear old archive folders... [17:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:44:04]tlvbuf is B6D96BD0 [17:44:04]SAM_PROTO_ClearQueue [17:44:04]wFMCommunicate request_size=4 [17:44:04]MH_SAM_APDU [17:44:04]CAPDU: 80 09 00 00 [17:44:04]Write to MH i2c: E2 08 00 08 32 80 09 00 00 00 00 00 00 AC [17:44:04]Write i2c OK [17:44:04]MH_I2C_Read... [17:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:04]Read from MH i2c: E2 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 03 00 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 03 00 08 32 00 90 00 AE [17:44:04]RAPDU: 90 00 [17:44:04]wFMCommunicate OK [17:44:04]SAM_PROTO_ClearQueue done [17:44:04]KKMCreateOFDPacket [17:44:04]OFDProtocolAddRootSTLVToBuf [17:44:04]FM_MakeSignedData [17:44:04]FM_MakeSignedData [17:44:04]SAM_PROTO_SignData [17:44:04]wFMCommunicate request_size=4 [17:44:04]MH_SAM_APDU [17:44:04]CAPDU: 80 0D 01 02 [17:44:04]Write to MH i2c: E2 08 00 09 32 80 0D 01 02 00 00 00 00 B4 [17:44:04]Write i2c OK [17:44:04]MH_I2C_Read... [17:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:04]Read from MH i2c: E2 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 03 00 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 03 00 09 32 00 90 00 AF [17:44:04]RAPDU: 90 00 [17:44:04]wFMCommunicate OK [17:44:04]wFMCommunicate request_size=255 [17:44:04]MH_SAM_APDU [17:44:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FA 37 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 64 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 2B 00 00 00 00 07 04 06 00 40 96 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 65 0E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7C 02 00 35 04 06 00 [17:44:04]Write to MH i2c: E2 02 01 0A 32 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FA 37 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 64 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 2B 00 00 00 00 07 04 06 00 40 96 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 65 0E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7C 02 00 35 04 06 00 00 00 2D [17:44:04]Write i2c OK [17:44:04]MH_I2C_Read... [17:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:04]Read from MH i2c: E2 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 03 00 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 03 00 0A 32 00 90 00 B0 [17:44:04]RAPDU: 90 00 [17:44:04]wFMCommunicate OK [17:44:04]wFMCommunicate request_size=11 [17:44:04]MH_SAM_APDU [17:44:04]CAPDU: 80 0D 02 02 06 BB 93 72 CF 70 44 [17:44:04]Write to MH i2c: E2 0E 00 0B 32 80 0D 02 02 06 00 BB 93 72 CF 70 44 00 00 06 [17:44:04]Write i2c OK [17:44:04]MH_I2C_Read... [17:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:04]Read from MH i2c: E2 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 03 00 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 03 00 0B 32 00 90 00 B1 [17:44:04]RAPDU: 90 00 [17:44:04]wFMCommunicate OK [17:44:04]wFMCommunicate request_size=4 [17:44:04]MH_SAM_APDU [17:44:04]CAPDU: 80 0D 03 02 [17:44:04]Write to MH i2c: E2 08 00 0C 32 80 0D 03 02 00 00 00 00 B9 [17:44:04]Write i2c OK [17:44:04]MH_I2C_Read... [17:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:04]Read from MH i2c: E2 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 0B 00 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 0B 00 0C 32 00 4C A0 D9 B4 2D 78 E4 6C 90 00 28 [17:44:04]RAPDU: 4C A0 D9 B4 2D 78 E4 6C 90 00 [17:44:04]wFMCommunicate OK [17:44:04]SAM_PROTO_SignData done [17:44:04]FM_MakeSignedData done [17:44:04]CreateOFDProtocolMessage [17:44:04]wFMCommunicate request_size=4 [17:44:04]MH_SAM_APDU [17:44:04]CAPDU: 80 11 00 00 [17:44:04]Write to MH i2c: E2 08 00 0D 32 80 11 00 00 00 00 00 00 B9 [17:44:04]Write i2c OK [17:44:04]MH_I2C_Read... [17:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:04]Read from MH i2c: E2 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 17 00 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: E2 17 00 0D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 19 [17:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:44:04]wFMCommunicate OK [17:44:04]CreateOFDProtocolMessage done [17:44:04]OFDSenderStorePacket 162899 [17:44:04]StoreOFDPacket docnum=162899 [17:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 FE 95 08 01 E7 78 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FA 37 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 64 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 2B 00 00 00 00 07 04 06 00 40 96 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 65 0E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7C 02 00 35 04 06 00 BB 93 72 CF 70 44 4C A0 D9 B4 2D 78 E4 6C [17:44:04]CheckFolder [17:44:04]dirname=/storage/ofd_packets [17:44:04]CheckFolder done [17:44:04]ProducePacketName [17:44:04]name=ofd_packets/00162899 [17:44:04]NVStorageSaveData ofd_packets/00162899 [17:44:04]File name is /storage/ofd_packets/00162899 [17:44:04]Write 302 bytes [17:44:04]NVStorageSaveData done [17:44:04]OFDSenderStorePacket done [17:44:04]KKMCreateOFDPacket done [17:44:04]NVStorageSaveData kkm_last_timestamp [17:44:04]File name is /storage/kkm_last_timestamp [17:44:04]Write 4 bytes [17:44:04]NVStorageSaveData done [17:44:04]ExternCall_PrintAddStr [17:44:04]wPrintStart [17:44:04]Write to MH i2c: 01 00 00 0E 32 40 [17:44:04]Write i2c OK [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: 01 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: 01 07 00 [17:44:04]MH_I2C_Read... [17:44:04]Read from MH i2c: 01 07 00 0E 32 00 00 00 00 00 FF 0F 55 [17:44:04]RasterBufferAndPrint [17:44:04]line Счет N : (1)1319509 [17:44:04]line ИНН: 02508201610067 [17:44:04]line Контрольно-Кассовый Чек [17:44:04]line ПРОДАЖА [17:44:04]line ТРК (МРК, ГНК) : 41 [17:44:04]line Товар: 2710194210 [17:44:04]line ДТ(л)-К-5 [17:44:04]line 14.330 * 72.60 [17:44:04]line = 1040.36 [17:44:04]line НДС 12% НСП 1% [17:44:04]line > о реализуемом товаре [17:44:04]line ОКРУГЛЕНИЕ: -0.36 [17:44:04]line ИТОГО: 1040.00 [17:44:04]line Внесено: 1040.00 [17:44:04]line СДАЧА: 0.00 [17:44:04]line НСП 1% : 9.21 [17:44:04]line НДС 12% : 110.48 [17:44:04]line Наличными: 1040.00 [17:44:04]line Безнал.: 0.00 [17:44:04]line Место: АЗС № 140 "Партнер Нефть" [17:44:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:44:04]line СНО: Общий режим [17:44:04]line Чек 211 14.07.2024 17:44 [17:44:04]line Смена: 463 ФФД: 1.0 [17:44:04]line ЗНМ: 0300000129 [17:44:04]line РНМ: 0000000000090858 [17:44:04]line Версия ККМ: 001 [17:44:04]line ФМ: 0000000000874899 [17:44:04]line ФД: 162899 [17:44:04]line ФПД: 206241960783940 [17:44:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T174405&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162899&fm=206241960783940&tin=02508201610067®Number=0000000000090858&sum=104000 [17:44:05]OFD Sender: Processing packet 162899 [packets to send 106, broken 105] [17:44:05]ProducePacketName [17:44:05]name=ofd_packets/00162899 [17:44:05]OFD Sender: To server: pG, [17:44:05]CommunicateWithHost lk.salyk.kg:30040 [17:44:05]ConnectInit lk.salyk.kg [17:44:05]written 0, free lines is 4095 [17:44:05]Connected sock=10 [17:44:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 FE 95 08 01 E7 78 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FA 37 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 64 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 2B 00 00 00 00 07 04 06 00 40 96 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 65 0E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7C 02 00 35 04 06 00 BB 93 72 CF 70 44 4C A0 D9 B4 2D 78 E4 6C [17:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7F C4 47 00 C2 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7C 02 00 F4 03 04 00 72 BA 93 66 B6 04 01 00 00 BE 54 AC AC 7F 05 DB 52 [17:44:05]CommunicateWithHost err = 0 [17:44:05]CheckOFDResponse [17:44:05]1017 (14) - 77093643461234 [17:44:05]1041 (16) - 0000000000874899 [17:44:05]1040 (4) - 162899 [17:44:05]1012 (4) - 14.07.2024 11:45 [17:44:05]1206 (1) - 0 [17:44:05]OFD Sender: Remove packet 162899 [17:44:05]ProducePacketName [17:44:05]name=ofd_packets/00162899 [17:44:05]NVStorageDeleteData [17:44:05]Write to MH i2c: 01 00 00 39 32 6B [17:44:05]Write i2c OK [17:44:05]MH_I2C_Read... [17:44:05]Read from MH i2c: 01 [17:44:05]MH_I2C_Read... [17:44:05]Read from MH i2c: 01 07 00 [17:44:05]MH_I2C_Read... [17:44:05]Read from MH i2c: 01 07 00 39 32 00 00 00 00 00 D7 0C 55 [17:44:05]RasterBufferAndPrint [17:44:05]line [17:44:05]line [17:44:05]line [17:44:05]line [17:44:05]line [17:44:05]written 0, free lines is 3295 [17:44:05]MH_Cut [17:44:05]Write to MH i2c: D1 01 00 40 32 01 44 [17:44:05]Write i2c OK [17:44:05]MH_I2C_Read... [17:44:05]Read from MH i2c: D1 [17:44:05]MH_I2C_Read... [17:44:05]Read from MH i2c: D1 01 00 [17:44:05]MH_I2C_Read... [17:44:05]Read from MH i2c: D1 01 00 40 32 00 43 [17:44:05]Write to MH i2c: 01 00 00 41 32 73 [17:44:05]Write i2c OK [17:44:05]MH_I2C_Read... [17:44:05]OFD Sender: No OFD packet to send [17:44:06]*** Cut start [17:44:06]*** Purtial cut [17:44:06]*** Stage 1: CUTSNS_PIN = 1 [17:44:06]Read from MH i2c: 01 [17:44:06]MH_I2C_Read... [17:44:06]*** Stop cut motor [17:44:06]*** Cut end [17:44:06]Read from MH i2c: 01 07 00 [17:44:06]MH_I2C_Read... [17:44:06]Read from MH i2c: 01 07 00 41 32 00 00 00 00 00 FF 0F 88 [17:44:06]process_action close_receipt done [17:44:06]requested_data is exist [17:44:06]produce_requested_data [17:44:06]requested_item fm.sn is exist - process it [17:44:06]wFMCommunicate request_size=4 [17:44:06]MH_SAM_APDU [17:44:06]CAPDU: 80 11 00 00 [17:44:06]Write to MH i2c: E2 08 00 42 32 80 11 00 00 00 00 00 00 EE [17:44:06]Write i2c OK [17:44:06]MH_I2C_Read... [17:44:06]Read from MH i2c: E2 [17:44:06]MH_I2C_Read... [17:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:06]Read from MH i2c: E2 17 00 [17:44:06]MH_I2C_Read... [17:44:06]Read from MH i2c: E2 17 00 42 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4E [17:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:44:06]wFMCommunicate OK [17:44:06]requested_item fd.num is exist - process it [17:44:06]SAM_PROTO_GetFieldsCounters [17:44:06]wFMCommunicate request_size=4 [17:44:06]MH_SAM_APDU [17:44:06]CAPDU: 80 13 00 00 [17:44:06]Write to MH i2c: E2 08 00 43 32 80 13 00 00 00 00 00 00 F1 [17:44:06]Write i2c OK [17:44:06]MH_I2C_Read... [17:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:06]Read from MH i2c: E2 [17:44:06]MH_I2C_Read... [17:44:06]Read from MH i2c: E2 62 00 [17:44:06]MH_I2C_Read... [17:44:06]Read from MH i2c: E2 62 00 43 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 53 7C 02 00 0E 04 04 00 CF 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 3E [17:44:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 53 7C 02 00 0E 04 04 00 CF 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 [17:44:06]wFMCommunicate OK [17:44:06]SAM_PROTO_GetFieldsCounters done [17:44:06]requested_item shift.num is exist - process it [17:44:06]requested_item shift.opened is exist - process it [17:44:06]req_shift_opened [17:44:06]FM_GetShiftState [17:44:06]SAM_PROTO_GetShiftState [17:44:06]wFMCommunicate request_size=4 [17:44:06]MH_SAM_APDU [17:44:06]CAPDU: 80 13 01 00 [17:44:06]Write to MH i2c: E2 08 00 44 32 80 13 01 00 00 00 00 00 F3 [17:44:06]Write i2c OK [17:44:06]MH_I2C_Read... [17:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:06]Read from MH i2c: E2 [17:44:06]MH_I2C_Read... [17:44:06]Read from MH i2c: E2 0E 00 [17:44:06]MH_I2C_Read... [17:44:06]Read from MH i2c: E2 0E 00 44 32 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 29 [17:44:06]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:44:06]wFMCommunicate OK [17:44:06]SAM_PROTO_GetShiftState done [17:44:06]FM_GetShiftState done [17:44:06]req_shift_opened done [17:44:06]requested_item shift.open_date is exist - process it [17:44:06]req_shift_open_date [17:44:06]req_shift_open_date done [17:44:06]produce_requested_data done [17:44:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162899,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:44:06]process_action_free close_receipt [17:44:06]json_value_free [17:44:06]json_value_free done [17:44:06]process_json_proto returns [17:44:06]Send response to host [17:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162899,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:44:06]free response buf [17:44:06]execute_script done [17:44:06]execute_script returns [17:44:06]free content buf [17:44:06]Sock 7.Close socket [17:44:06]Sock 7.Thread stoped [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:34]accept exits with 9 [17:52:34]New connection [17:52:34]New thread 3066879332 created [17:52:34]Thread 3066735972 joined [17:52:34]Waiting for new connection... [17:52:34] Sock 9.Parse request [17:52:34]Sock 9.Check first char [17:52:34]Sock 9.First char is OK [17:52:34]request: POST /json_proto HTTP/1.0 [17:52:34]Method: POST [17:52:34]URL: /json_proto [17:52:34]Method is POST - this is cgi request [17:52:34]url: /json_proto [17:52:34]query_string will be loaded in cgi processing [17:52:34]execute_cgi json_proto POST (null) [17:52:34]execute_cgi path=json_proto method=POST [17:52:34]POST find Content-Length [17:52:34]Host: 172.17.39.67:8080 [17:52:34]Content-Length: 671 [17:52:34]Content-Type: application/json [17:52:34] [17:52:34]POST finish read [17:52:34]Found Content-Length = 671 [17:52:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 2.950, "sum" : 198.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 198.00, "total" : 198.00, "payments": [ { "type": 0, "sum" : 198.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:34]execute_script... [17:52:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 2.950, "sum" : 198.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 198.00, "total" : 198.00, "payments": [ { "type": 0, "sum" : 198.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:34]POST & json_proto [17:52:34]process_json_proto [17:52:34]json parsed OK: [17:52:34]protocol is kg_v1.0 [17:52:34]action value=close_receipt [17:52:34]process_action close_receipt [17:52:34]cmd_close_receipt [17:52:34]MH_GetDate [17:52:34]Write to MH i2c: F0 00 00 45 32 66 [17:52:34]Write i2c OK [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: F0 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: F0 09 00 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: F0 09 00 45 32 00 65 10 94 66 B6 85 93 66 12 [17:52:34]GetLastDocTimeStamp 1720979045 [17:52:34]current date 1720979557 [17:52:34]FM_GetShiftState [17:52:34]SAM_PROTO_GetShiftState [17:52:34]wFMCommunicate request_size=4 [17:52:34]MH_SAM_APDU [17:52:34]CAPDU: 80 13 01 00 [17:52:34]Write to MH i2c: E2 08 00 46 32 80 13 01 00 00 00 00 00 F5 [17:52:34]Write i2c OK [17:52:34]MH_I2C_Read... [17:52:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:35]Read from MH i2c: E2 [17:52:35]MH_I2C_Read... [17:52:35]Read from MH i2c: E2 0E 00 [17:52:35]MH_I2C_Read... [17:52:35]Read from MH i2c: E2 0E 00 46 32 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2B [17:52:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:52:35]wFMCommunicate OK [17:52:35]SAM_PROTO_GetShiftState done [17:52:35]FM_GetShiftState done [17:52:35]opened in 1720915483 [17:52:35]opened+sec_in_day 1721001883 [17:52:35]quantity*price = 19853 [17:52:35]sum+1 = 19855 [17:52:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 198.00 Внесено: 198.00 СДАЧА: 0.00 НСП 1% : 1.76 НДС 12% : 21.08 Наличными: 198.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 212 14.07.2024 17:52 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162900 ФПД: 71381340994598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175237&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162900&fm=71381340994598&tin=02508201610067®Number=0000000000090858&sum=19800 [17:52:36]StoreToDocumentArchive [17:52:36]shift 463 fd 162900 [17:52:36]save to /storage/0463/doc_00162900 [17:52:36]save last doc name /storage/0463/doc_00162900 to /storage/kkm_last_doc_name [17:52:36]save OK [17:52:36]Clear old archive folders... [17:52:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:52:36]tlvbuf is 01316B10 [17:52:36]SAM_PROTO_ClearQueue [17:52:36]wFMCommunicate request_size=4 [17:52:36]MH_SAM_APDU [17:52:36]CAPDU: 80 09 00 00 [17:52:36]Write to MH i2c: E2 08 00 53 32 80 09 00 00 00 00 00 00 F7 [17:52:36]Write i2c OK [17:52:36]MH_I2C_Read... [17:52:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:36]Read from MH i2c: E2 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 03 00 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 03 00 53 32 00 90 00 F9 [17:52:36]RAPDU: 90 00 [17:52:36]wFMCommunicate OK [17:52:36]SAM_PROTO_ClearQueue done [17:52:36]KKMCreateOFDPacket [17:52:36]OFDProtocolAddRootSTLVToBuf [17:52:36]FM_MakeSignedData [17:52:36]FM_MakeSignedData [17:52:36]SAM_PROTO_SignData [17:52:36]wFMCommunicate request_size=4 [17:52:36]MH_SAM_APDU [17:52:36]CAPDU: 80 0D 01 02 [17:52:36]Write to MH i2c: E2 08 00 54 32 80 0D 01 02 00 00 00 00 FF [17:52:36]Write i2c OK [17:52:36]MH_I2C_Read... [17:52:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:36]Read from MH i2c: E2 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 03 00 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 03 00 54 32 00 90 00 FA [17:52:36]RAPDU: 90 00 [17:52:36]wFMCommunicate OK [17:52:36]wFMCommunicate request_size=255 [17:52:36]MH_SAM_APDU [17:52:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 8E 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 65 10 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7C 02 00 35 04 06 00 [17:52:36]Write to MH i2c: E2 02 01 55 32 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 8E 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 65 10 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7C 02 00 35 04 06 00 00 00 38 [17:52:36]Write i2c OK [17:52:36]MH_I2C_Read... [17:52:36]OFD Sender: No OFD packet to send [17:52:36]Read from MH i2c: E2 [17:52:36]MH_I2C_Read... [17:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:36]Read from MH i2c: E2 03 00 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 03 00 55 32 00 90 00 FB [17:52:36]RAPDU: 90 00 [17:52:36]wFMCommunicate OK [17:52:36]wFMCommunicate request_size=11 [17:52:36]MH_SAM_APDU [17:52:36]CAPDU: 80 0D 02 02 06 40 EB C3 79 3C 26 [17:52:36]Write to MH i2c: E2 0E 00 56 32 80 0D 02 02 06 00 40 EB C3 79 3C 26 00 00 D7 [17:52:36]Write i2c OK [17:52:36]MH_I2C_Read... [17:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:36]Read from MH i2c: E2 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 03 00 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 03 00 56 32 00 90 00 FC [17:52:36]RAPDU: 90 00 [17:52:36]wFMCommunicate OK [17:52:36]wFMCommunicate request_size=4 [17:52:36]MH_SAM_APDU [17:52:36]CAPDU: 80 0D 03 02 [17:52:36]Write to MH i2c: E2 08 00 57 32 80 0D 03 02 00 00 00 00 04 [17:52:36]Write i2c OK [17:52:36]MH_I2C_Read... [17:52:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:36]Read from MH i2c: E2 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 0B 00 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 0B 00 57 32 00 68 2C D0 89 B2 98 ED 36 90 00 5F [17:52:36]RAPDU: 68 2C D0 89 B2 98 ED 36 90 00 [17:52:36]wFMCommunicate OK [17:52:36]SAM_PROTO_SignData done [17:52:36]FM_MakeSignedData done [17:52:36]CreateOFDProtocolMessage [17:52:36]wFMCommunicate request_size=4 [17:52:36]MH_SAM_APDU [17:52:36]CAPDU: 80 11 00 00 [17:52:36]Write to MH i2c: E2 08 00 58 32 80 11 00 00 00 00 00 00 04 [17:52:36]Write i2c OK [17:52:36]MH_I2C_Read... [17:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:36]Read from MH i2c: E2 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 17 00 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 17 00 58 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 64 [17:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:52:36]wFMCommunicate OK [17:52:36]CreateOFDProtocolMessage done [17:52:36]OFDSenderStorePacket 162900 [17:52:36]StoreOFDPacket docnum=162900 [17:52:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 58 3C 08 01 F0 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 8E 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 65 10 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7C 02 00 35 04 06 00 40 EB C3 79 3C 26 68 2C D0 89 B2 98 ED 36 [17:52:36]CheckFolder [17:52:36]dirname=/storage/ofd_packets [17:52:36]CheckFolder done [17:52:36]ProducePacketName [17:52:36]name=ofd_packets/00162900 [17:52:36]NVStorageSaveData ofd_packets/00162900 [17:52:36]File name is /storage/ofd_packets/00162900 [17:52:36]Write 302 bytes [17:52:36]NVStorageSaveData done [17:52:36]OFDSenderStorePacket done [17:52:36]KKMCreateOFDPacket done [17:52:36]NVStorageSaveData kkm_last_timestamp [17:52:36]File name is /storage/kkm_last_timestamp [17:52:36]Write 4 bytes [17:52:36]NVStorageSaveData done [17:52:36]ExternCall_PrintAddStr [17:52:36]wPrintStart [17:52:36]Write to MH i2c: 01 00 00 59 32 8B [17:52:36]Write i2c OK [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: 01 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: 01 07 00 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: 01 07 00 59 32 00 00 00 00 00 FF 0F A0 [17:52:36]RasterBufferAndPrint [17:52:36]line Счет N : (1)1319511 [17:52:36]line ИНН: 02508201610067 [17:52:36]line Контрольно-Кассовый Чек [17:52:36]line ПРОДАЖА [17:52:36]line ТРК (МРК, ГНК) : 52 [17:52:36]line Товар: 2710124130 [17:52:36]line Super-92-К-5 [17:52:36]line 2.950 * 67.30 [17:52:36]line = 198.54 [17:52:36]line НДС 12% НСП 1% [17:52:36]line > о реализуемом товаре [17:52:36]line ОКРУГЛЕНИЕ: -0.54 [17:52:36]line ИТОГО: 198.00 [17:52:36]line Внесено: 198.00 [17:52:36]line СДАЧА: 0.00 [17:52:36]line НСП 1% : 1.76 [17:52:36]line НДС 12% : 21.08 [17:52:36]line Наличными: 198.00 [17:52:36]line Безнал.: 0.00 [17:52:36]line Место: АЗС № 140 "Партнер Нефть" [17:52:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:52:36]line СНО: Общий режим [17:52:36]line Чек 212 14.07.2024 17:52 [17:52:36]line Смена: 463 ФФД: 1.0 [17:52:36]line ЗНМ: 0300000129 [17:52:36]line РНМ: 0000000000090858 [17:52:36]line Версия ККМ: 001 [17:52:36]line ФМ: 0000000000874899 [17:52:36]line ФД: 162900 [17:52:36]line ФПД: 71381340994598 [17:52:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175237&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162900&fm=71381340994598&tin=02508201610067®Number=0000000000090858&sum=19800 [17:52:37]OFD Sender: Processing packet 162900 [packets to send 106, broken 105] [17:52:37]ProducePacketName [17:52:37]name=ofd_packets/00162900 [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:37]written 0, free lines is 4095 [17:52:37]Connected sock=10 [17:52:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 58 3C 08 01 F0 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 8E 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 65 10 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7C 02 00 35 04 06 00 40 EB C3 79 3C 26 68 2C D0 89 B2 98 ED 36 [17:52:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0D DA 47 00 B2 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7C 02 00 F4 03 04 00 72 BC 93 66 B6 04 01 00 00 85 59 1B 94 2A 9F 4A 1B [17:52:37]CommunicateWithHost err = 0 [17:52:37]CheckOFDResponse [17:52:37]1017 (14) - 77093643461234 [17:52:37]1041 (16) - 0000000000874899 [17:52:37]1040 (4) - 162900 [17:52:37]1012 (4) - 14.07.2024 11:54 [17:52:37]1206 (1) - 0 [17:52:37]OFD Sender: Remove packet 162900 [17:52:37]ProducePacketName [17:52:37]name=ofd_packets/00162900 [17:52:37]NVStorageDeleteData [17:52:37]Write to MH i2c: 01 00 00 84 32 B6 [17:52:37]Write i2c OK [17:52:37]MH_I2C_Read... [17:52:37]Read from MH i2c: 01 [17:52:37]MH_I2C_Read... [17:52:37]Read from MH i2c: 01 07 00 [17:52:37]MH_I2C_Read... [17:52:37]Read from MH i2c: 01 07 00 84 32 00 00 00 00 00 DC 0C A5 [17:52:37]RasterBufferAndPrint [17:52:37]line [17:52:37]line [17:52:37]line [17:52:37]line [17:52:37]line [17:52:37]written 0, free lines is 3297 [17:52:37]MH_Cut [17:52:37]Write to MH i2c: D1 01 00 8B 32 01 8F [17:52:37]Write i2c OK [17:52:37]MH_I2C_Read... [17:52:37]Read from MH i2c: D1 [17:52:37]MH_I2C_Read... [17:52:37]Read from MH i2c: D1 01 00 [17:52:37]MH_I2C_Read... [17:52:37]Read from MH i2c: D1 01 00 8B 32 00 8E [17:52:37]Write to MH i2c: 01 00 00 8C 32 BE [17:52:37]Write i2c OK [17:52:37]MH_I2C_Read... [17:52:37]OFD Sender: No OFD packet to send [17:52:38]*** Cut start [17:52:38]*** Purtial cut [17:52:38]*** CUTSNS_PIN = 0 [17:52:38]*** Stage 1: CUTSNS_PIN = 1 [17:52:40]Read from MH i2c: 01 [17:52:40]MH_I2C_Read... [17:52:40]*** Stop cut motor [17:52:40]*** Cut end [17:52:40]Read from MH i2c: 01 07 00 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: 01 07 00 8C 32 00 00 00 00 00 FF 0F D3 [17:52:40]process_action close_receipt done [17:52:40]requested_data is exist [17:52:40]produce_requested_data [17:52:40]requested_item fm.sn is exist - process it [17:52:40]wFMCommunicate request_size=4 [17:52:40]MH_SAM_APDU [17:52:40]CAPDU: 80 11 00 00 [17:52:40]Write to MH i2c: E2 08 00 8D 32 80 11 00 00 00 00 00 00 39 [17:52:40]Write i2c OK [17:52:40]MH_I2C_Read... [17:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:40]Read from MH i2c: E2 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: E2 17 00 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: E2 17 00 8D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 99 [17:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:52:40]wFMCommunicate OK [17:52:40]requested_item fd.num is exist - process it [17:52:40]SAM_PROTO_GetFieldsCounters [17:52:40]wFMCommunicate request_size=4 [17:52:40]MH_SAM_APDU [17:52:40]CAPDU: 80 13 00 00 [17:52:40]Write to MH i2c: E2 08 00 8E 32 80 13 00 00 00 00 00 00 3C [17:52:40]Write i2c OK [17:52:40]MH_I2C_Read... [17:52:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:40]Read from MH i2c: E2 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: E2 62 00 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: E2 62 00 8E 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 54 7C 02 00 0E 04 04 00 CF 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 8D [17:52:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 54 7C 02 00 0E 04 04 00 CF 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 [17:52:40]wFMCommunicate OK [17:52:40]SAM_PROTO_GetFieldsCounters done [17:52:40]requested_item shift.num is exist - process it [17:52:40]requested_item shift.opened is exist - process it [17:52:40]req_shift_opened [17:52:40]FM_GetShiftState [17:52:40]SAM_PROTO_GetShiftState [17:52:40]wFMCommunicate request_size=4 [17:52:40]MH_SAM_APDU [17:52:40]CAPDU: 80 13 01 00 [17:52:40]Write to MH i2c: E2 08 00 8F 32 80 13 01 00 00 00 00 00 3E [17:52:40]Write i2c OK [17:52:40]MH_I2C_Read... [17:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:40]Read from MH i2c: E2 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: E2 0E 00 [17:52:40]MH_I2C_Read... [17:52:40]Read from MH i2c: E2 0E 00 8F 32 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 74 [17:52:40]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:52:40]wFMCommunicate OK [17:52:40]SAM_PROTO_GetShiftState done [17:52:40]FM_GetShiftState done [17:52:40]req_shift_opened done [17:52:40]requested_item shift.open_date is exist - process it [17:52:40]req_shift_open_date [17:52:40]req_shift_open_date done [17:52:40]produce_requested_data done [17:52:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162900,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:52:40]process_action_free close_receipt [17:52:40]json_value_free [17:52:40]json_value_free done [17:52:40]process_json_proto returns [17:52:40]Send response to host [17:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162900,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:52:40]free response buf [17:52:40]execute_script done [17:52:40]execute_script returns [17:52:40]free content buf [17:52:40]Sock 9.Close socket [17:52:40]Sock 9.Thread stoped [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]accept exits with 7 [17:53:47]New connection [17:53:47]New thread 3066735972 created [17:53:47]Thread 3066879332 joined [17:53:47]Waiting for new connection... [17:53:47] Sock 7.Parse request [17:53:47]Sock 7.Check first char [17:53:47]Sock 7.First char is OK [17:53:47]request: POST /json_proto HTTP/1.0 [17:53:47]Method: POST [17:53:47]URL: /json_proto [17:53:47]Method is POST - this is cgi request [17:53:47]url: /json_proto [17:53:47]query_string will be loaded in cgi processing [17:53:47]execute_cgi json_proto POST (null) [17:53:47]execute_cgi path=json_proto method=POST [17:53:47]POST find Content-Length [17:53:47]Host: 172.17.39.67:8080 [17:53:47]Content-Length: 648 [17:53:47]Content-Type: application/json [17:53:47] [17:53:47]POST finish read [17:53:47]Found Content-Length = 648 [17:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.000, "sum" : 1452.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:47]execute_script... [17:53:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.000, "sum" : 1452.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:47]POST & json_proto [17:53:47]process_json_proto [17:53:47]json parsed OK: [17:53:47]protocol is kg_v1.0 [17:53:47]action value=close_receipt [17:53:47]process_action close_receipt [17:53:47]cmd_close_receipt [17:53:47]MH_GetDate [17:53:47]Write to MH i2c: F0 00 00 90 32 B1 [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: F0 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: F0 09 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: F0 09 00 90 32 00 AD 10 94 66 B6 85 93 66 A5 [17:53:47]GetLastDocTimeStamp 1720979557 [17:53:47]current date 1720979629 [17:53:47]FM_GetShiftState [17:53:47]SAM_PROTO_GetShiftState [17:53:47]wFMCommunicate request_size=4 [17:53:47]MH_SAM_APDU [17:53:47]CAPDU: 80 13 01 00 [17:53:47]Write to MH i2c: E2 08 00 91 32 80 13 01 00 00 00 00 00 40 [17:53:47]Write i2c OK [17:53:47]MH_I2C_Read... [17:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:47]Read from MH i2c: E2 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 0E 00 [17:53:47]MH_I2C_Read... [17:53:47]Read from MH i2c: E2 0E 00 91 32 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 76 [17:53:47]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:53:47]wFMCommunicate OK [17:53:47]SAM_PROTO_GetShiftState done [17:53:47]FM_GetShiftState done [17:53:47]opened in 1720915483 [17:53:47]opened+sec_in_day 1721001883 [17:53:47]quantity*price = 145200 [17:53:47]sum+1 = 145201 [17:53:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1452.00 НСП 1% : 12.85 НДС 12% : 154.19 Наличными: 1452.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 213 14.07.2024 17:53 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162901 ФПД: 190466344294360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175349&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162901&fm=190466344294360&tin=02508201610067®Number=0000000000090858&sum=145200 [17:53:48]StoreToDocumentArchive [17:53:48]shift 463 fd 162901 [17:53:48]save to /storage/0463/doc_00162901 [17:53:48]save last doc name /storage/0463/doc_00162901 to /storage/kkm_last_doc_name [17:53:48]save OK [17:53:48]Clear old archive folders... [17:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:53:48]tlvbuf is 01227A70 [17:53:48]SAM_PROTO_ClearQueue [17:53:48]wFMCommunicate request_size=4 [17:53:48]MH_SAM_APDU [17:53:48]CAPDU: 80 09 00 00 [17:53:48]Write to MH i2c: E2 08 00 9E 32 80 09 00 00 00 00 00 00 42 [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 [17:53:48]MH_I2C_Read... [17:53:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:48]Read from MH i2c: E2 03 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 9E 32 00 90 00 44 [17:53:48]RAPDU: 90 00 [17:53:48]wFMCommunicate OK [17:53:48]SAM_PROTO_ClearQueue done [17:53:48]KKMCreateOFDPacket [17:53:48]OFDProtocolAddRootSTLVToBuf [17:53:48]FM_MakeSignedData [17:53:48]FM_MakeSignedData [17:53:48]SAM_PROTO_SignData [17:53:48]wFMCommunicate request_size=4 [17:53:48]MH_SAM_APDU [17:53:48]CAPDU: 80 0D 01 02 [17:53:48]Write to MH i2c: E2 08 00 9F 32 80 0D 01 02 00 00 00 00 4A [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:48]Read from MH i2c: E2 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 9F 32 00 90 00 45 [17:53:48]RAPDU: 90 00 [17:53:48]wFMCommunicate OK [17:53:48]wFMCommunicate request_size=255 [17:53:48]MH_SAM_APDU [17:53:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 30 37 02 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 AD 10 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7C 02 00 35 04 06 00 [17:53:48]Write to MH i2c: E2 02 01 A0 32 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 30 37 02 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 AD 10 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7C 02 00 35 04 06 00 00 00 72 [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:48]Read from MH i2c: E2 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 A0 32 00 90 00 46 [17:53:48]RAPDU: 90 00 [17:53:48]wFMCommunicate OK [17:53:48]wFMCommunicate request_size=11 [17:53:48]MH_SAM_APDU [17:53:48]CAPDU: 80 0D 02 02 06 AD 3A 66 CB 17 D8 [17:53:48]Write to MH i2c: E2 0E 00 A1 32 80 0D 02 02 06 00 AD 3A 66 CB 17 D8 00 00 60 [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:48]Read from MH i2c: E2 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 03 00 A1 32 00 90 00 47 [17:53:48]RAPDU: 90 00 [17:53:48]wFMCommunicate OK [17:53:48]wFMCommunicate request_size=4 [17:53:48]MH_SAM_APDU [17:53:48]CAPDU: 80 0D 03 02 [17:53:48]Write to MH i2c: E2 08 00 A2 32 80 0D 03 02 00 00 00 00 4F [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:48]Read from MH i2c: E2 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 0B 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 0B 00 A2 32 00 F5 CF DB E0 F4 A4 7B 17 90 00 F9 [17:53:48]RAPDU: F5 CF DB E0 F4 A4 7B 17 90 00 [17:53:48]wFMCommunicate OK [17:53:48]SAM_PROTO_SignData done [17:53:48]FM_MakeSignedData done [17:53:48]CreateOFDProtocolMessage [17:53:48]wFMCommunicate request_size=4 [17:53:48]MH_SAM_APDU [17:53:48]CAPDU: 80 11 00 00 [17:53:48]Write to MH i2c: E2 08 00 A3 32 80 11 00 00 00 00 00 00 4F [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:48]Read from MH i2c: E2 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 17 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: E2 17 00 A3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AF [17:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:53:48]wFMCommunicate OK [17:53:48]CreateOFDProtocolMessage done [17:53:48]OFDSenderStorePacket 162901 [17:53:48]StoreOFDPacket docnum=162901 [17:53:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 68 CA 08 01 9A 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 30 37 02 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 AD 10 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7C 02 00 35 04 06 00 AD 3A 66 CB 17 D8 F5 CF DB E0 F4 A4 7B 17 [17:53:48]CheckFolder [17:53:48]dirname=/storage/ofd_packets [17:53:48]CheckFolder done [17:53:48]ProducePacketName [17:53:48]name=ofd_packets/00162901 [17:53:48]NVStorageSaveData ofd_packets/00162901 [17:53:48]File name is /storage/ofd_packets/00162901 [17:53:48]Write 302 bytes [17:53:48]NVStorageSaveData done [17:53:48]OFDSenderStorePacket done [17:53:48]KKMCreateOFDPacket done [17:53:48]NVStorageSaveData kkm_last_timestamp [17:53:48]File name is /storage/kkm_last_timestamp [17:53:48]Write 4 bytes [17:53:48]NVStorageSaveData done [17:53:48]ExternCall_PrintAddStr [17:53:48]wPrintStart [17:53:48]Write to MH i2c: 01 00 00 A4 32 D6 [17:53:48]Write i2c OK [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: 01 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: 01 07 00 [17:53:48]MH_I2C_Read... [17:53:48]Read from MH i2c: 01 07 00 A4 32 00 00 00 00 00 FF 0F EB [17:53:48]RasterBufferAndPrint [17:53:48]line Счет N : (1)1319512 [17:53:48]line ИНН: 02508201610067 [17:53:48]line Контрольно-Кассовый Чек [17:53:48]line ПРОДАЖА [17:53:48]line ТРК (МРК, ГНК) : 51 [17:53:48]line Товар: 2710194210 [17:53:48]line ДТ(л)-К-5 [17:53:48]line 20.000 * 72.60 [17:53:48]line = 1452.00 [17:53:48]line НДС 12% НСП 1% [17:53:48]line > о реализуемом товаре [17:53:48]line ИТОГО: 1452.00 [17:53:48]line НСП 1% : 12.85 [17:53:48]line НДС 12% : 154.19 [17:53:48]line Наличными: 1452.00 [17:53:48]line Безнал.: 0.00 [17:53:48]line Место: АЗС № 140 "Партнер Нефть" [17:53:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:53:48]line СНО: Общий режим [17:53:48]line Чек 213 14.07.2024 17:53 [17:53:48]line Смена: 463 ФФД: 1.0 [17:53:48]line ЗНМ: 0300000129 [17:53:48]line РНМ: 0000000000090858 [17:53:48]line Версия ККМ: 001 [17:53:48]line ФМ: 0000000000874899 [17:53:48]line ФД: 162901 [17:53:48]line ФПД: 190466344294360 [17:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175349&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162901&fm=190466344294360&tin=02508201610067®Number=0000000000090858&sum=145200 [17:53:49]OFD Sender: Processing packet 162901 [packets to send 106, broken 105] [17:53:49]ProducePacketName [17:53:49]name=ofd_packets/00162901 [17:53:49]OFD Sender: To server: pG, [17:53:49]CommunicateWithHost lk.salyk.kg:30040 [17:53:49]ConnectInit lk.salyk.kg [17:53:49]written 0, free lines is 4095 [17:53:49]Connected sock=10 [17:53:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 68 CA 08 01 9A 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 30 37 02 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 AD 10 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7C 02 00 35 04 06 00 AD 3A 66 CB 17 D8 F5 CF DB E0 F4 A4 7B 17 [17:53:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C0 E2 47 00 45 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7C 02 00 F4 03 04 00 BA BC 93 66 B6 04 01 00 00 B0 E4 88 47 03 62 4C DC [17:53:49]CommunicateWithHost err = 0 [17:53:49]CheckOFDResponse [17:53:49]1017 (14) - 77093643461234 [17:53:49]1041 (16) - 0000000000874899 [17:53:49]1040 (4) - 162901 [17:53:49]1012 (4) - 14.07.2024 11:55 [17:53:49]1206 (1) - 0 [17:53:49]OFD Sender: Remove packet 162901 [17:53:49]ProducePacketName [17:53:49]name=ofd_packets/00162901 [17:53:49]NVStorageDeleteData [17:53:49]Write to MH i2c: 01 00 00 CC 32 FE [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: 01 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: 01 07 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: 01 07 00 CC 32 00 00 00 00 00 08 0D 1A [17:53:49]RasterBufferAndPrint [17:53:49]line [17:53:49]line [17:53:49]line [17:53:49]line [17:53:49]line [17:53:49]written 0, free lines is 3342 [17:53:49]MH_Cut [17:53:49]Write to MH i2c: D1 01 00 D3 32 01 D7 [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: D1 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: D1 01 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: D1 01 00 D3 32 00 D6 [17:53:49]Write to MH i2c: 01 00 00 D4 32 06 [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:50]OFD Sender: No OFD packet to send [17:53:50]*** Cut start [17:53:50]*** Purtial cut [17:53:50]*** Stage 1: CUTSNS_PIN = 1 [17:53:50]Read from MH i2c: 01 [17:53:50]MH_I2C_Read... [17:53:50]*** Stop cut motor [17:53:50]*** Cut end [17:53:50]Read from MH i2c: 01 07 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: 01 07 00 D4 32 00 00 00 00 00 FF 0F 1B [17:53:50]process_action close_receipt done [17:53:50]requested_data is exist [17:53:50]produce_requested_data [17:53:50]requested_item fm.sn is exist - process it [17:53:50]wFMCommunicate request_size=4 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 11 00 00 [17:53:50]Write to MH i2c: E2 08 00 D5 32 80 11 00 00 00 00 00 00 81 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 17 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 17 00 D5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E1 [17:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:53:50]wFMCommunicate OK [17:53:50]requested_item fd.num is exist - process it [17:53:50]SAM_PROTO_GetFieldsCounters [17:53:50]wFMCommunicate request_size=4 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 13 00 00 [17:53:50]Write to MH i2c: E2 08 00 D6 32 80 13 00 00 00 00 00 00 84 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 62 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 62 00 D6 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 55 7C 02 00 0E 04 04 00 CF 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 D9 [17:53:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 55 7C 02 00 0E 04 04 00 CF 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 [17:53:50]wFMCommunicate OK [17:53:50]SAM_PROTO_GetFieldsCounters done [17:53:50]requested_item shift.num is exist - process it [17:53:50]requested_item shift.opened is exist - process it [17:53:50]req_shift_opened [17:53:50]FM_GetShiftState [17:53:50]SAM_PROTO_GetShiftState [17:53:50]wFMCommunicate request_size=4 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 13 01 00 [17:53:50]Write to MH i2c: E2 08 00 D7 32 80 13 01 00 00 00 00 00 86 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 0E 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 0E 00 D7 32 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BC [17:53:50]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:53:50]wFMCommunicate OK [17:53:50]SAM_PROTO_GetShiftState done [17:53:50]FM_GetShiftState done [17:53:50]req_shift_opened done [17:53:50]requested_item shift.open_date is exist - process it [17:53:50]req_shift_open_date [17:53:50]req_shift_open_date done [17:53:50]produce_requested_data done [17:53:50]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162901,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:53:50]process_action_free close_receipt [17:53:50]json_value_free [17:53:50]json_value_free done [17:53:50]process_json_proto returns [17:53:50]Send response to host [17:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162901,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:53:50]free response buf [17:53:50]execute_script done [17:53:50]execute_script returns [17:53:50]free content buf [17:53:50]Sock 7.Close socket [17:53:50]Sock 7.Thread stoped [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:20]OFD Sender: No OFD packet to send [17:54:25]OFD Sender: No OFD packet to send [17:54:30]OFD Sender: No OFD packet to send [17:54:35]OFD Sender: No OFD packet to send [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:54]accept exits with 9 [17:54:54]New connection [17:54:54]New thread 3066879332 created [17:54:54]Thread 3066735972 joined [17:54:54]Waiting for new connection... [17:54:54] Sock 9.Parse request [17:54:54]Sock 9.Check first char [17:54:54]Sock 9.First char is OK [17:54:54]request: POST /json_proto HTTP/1.0 [17:54:54]Method: POST [17:54:54]URL: /json_proto [17:54:54]Method is POST - this is cgi request [17:54:54]url: /json_proto [17:54:54]query_string will be loaded in cgi processing [17:54:54]execute_cgi json_proto POST (null) [17:54:54]execute_cgi path=json_proto method=POST [17:54:54]POST find Content-Length [17:54:54]Host: 172.17.39.67:8080 [17:54:54]Content-Length: 809 [17:54:54]Content-Type: application/json [17:54:54] [17:54:54]POST finish read [17:54:54]Found Content-Length = 809 [17:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 78.210, "sum" : 5678.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5678.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:54]execute_script... [17: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)1319510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 78.210, "sum" : 5678.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5678.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:54]POST & json_proto [17:54:54]process_json_proto [17:54:54]json parsed OK: [17:54:54]protocol is kg_v1.0 [17:54:54]action value=close_receipt [17:54:54]process_action close_receipt [17:54:54]cmd_close_receipt [17:54:54]MH_GetDate [17:54:54]Write to MH i2c: F0 00 00 D8 32 F9 [17:54:54]Write i2c OK [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: F0 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: F0 09 00 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: F0 09 00 D8 32 00 F0 10 94 66 B6 85 93 66 30 [17:54:54]GetLastDocTimeStamp 1720979629 [17:54:54]current date 1720979696 [17:54:54]FM_GetShiftState [17:54:54]SAM_PROTO_GetShiftState [17:54:54]wFMCommunicate request_size=4 [17:54:54]MH_SAM_APDU [17:54:54]CAPDU: 80 13 01 00 [17:54:54]Write to MH i2c: E2 08 00 D9 32 80 13 01 00 00 00 00 00 88 [17:54:54]Write i2c OK [17:54:54]MH_I2C_Read... [17:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:54]Read from MH i2c: E2 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: E2 0E 00 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: E2 0E 00 D9 32 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BE [17:54:54]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:54:54]wFMCommunicate OK [17:54:54]SAM_PROTO_GetShiftState done [17:54:54]FM_GetShiftState done [17:54:54]opened in 1720915483 [17:54:54]opened+sec_in_day 1721001883 [17:54:54]quantity*price = 567804 [17:54:54]sum+1 = 567806 [17:54:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5678.05 НСП 1% : 50.25 НДС 12% : 602.98 Наличными: 0.00 Безнал.: 5678.05 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 214 14.07.2024 17:54 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162902 ФПД: 6926523736537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175456&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162902&fm=6926523736537&tin=02508201610067®Number=0000000000090858&sum=567805 [17:54:55]StoreToDocumentArchive [17:54:55]shift 463 fd 162902 [17:54:55]save to /storage/0463/doc_00162902 [17:54:55]save last doc name /storage/0463/doc_00162902 to /storage/kkm_last_doc_name [17:54:55]save OK [17:54:55]Clear old archive folders... [17:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:54:55]tlvbuf is 01356100 [17:54:55]SAM_PROTO_ClearQueue [17:54:55]wFMCommunicate request_size=4 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 09 00 00 [17:54:55]Write to MH i2c: E2 08 00 E6 32 80 09 00 00 00 00 00 00 8A [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:55]Read from MH i2c: E2 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 03 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 03 00 E6 32 00 90 00 8C [17:54:55]RAPDU: 90 00 [17:54:55]wFMCommunicate OK [17:54:55]SAM_PROTO_ClearQueue done [17:54:55]KKMCreateOFDPacket [17:54:55]OFDProtocolAddRootSTLVToBuf [17:54:55]FM_MakeSignedData [17:54:55]FM_MakeSignedData [17:54:55]SAM_PROTO_SignData [17:54:55]wFMCommunicate request_size=4 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 0D 01 02 [17:54:55]Write to MH i2c: E2 08 00 E7 32 80 0D 01 02 00 00 00 00 92 [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:55]Read from MH i2c: E2 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 03 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: E2 03 00 E7 32 00 90 00 8D [17:54:55]RAPDU: 90 00 [17:54:55]wFMCommunicate OK [17:54:55]wFMCommunicate request_size=255 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 31 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FD A9 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD A9 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A EB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD A9 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 F0 10 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7C 02 00 35 04 06 00 [17:54:55]Write to MH i2c: E2 02 01 E8 32 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 31 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FD A9 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD A9 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A EB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD A9 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 F0 10 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7C 02 00 35 04 06 00 00 00 BC [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 E8 32 00 90 00 8E [17:54:56]RAPDU: 90 00 [17:54:56]wFMCommunicate OK [17:54:56]wFMCommunicate request_size=11 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 0D 02 02 06 06 4C B4 FC A1 D9 [17:54:56]Write to MH i2c: E2 0E 00 E9 32 80 0D 02 02 06 00 06 4C B4 FC A1 D9 00 00 1D [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 03 00 E9 32 00 90 00 8F [17:54:56]RAPDU: 90 00 [17:54:56]wFMCommunicate OK [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 0D 03 02 [17:54:56]Write to MH i2c: E2 08 00 EA 32 80 0D 03 02 00 00 00 00 97 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 0B 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 0B 00 EA 32 00 EF 8C BB 16 F6 9C 71 01 90 00 E8 [17:54:56]RAPDU: EF 8C BB 16 F6 9C 71 01 90 00 [17:54:56]wFMCommunicate OK [17:54:56]SAM_PROTO_SignData done [17:54:56]FM_MakeSignedData done [17:54:56]CreateOFDProtocolMessage [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 11 00 00 [17:54:56]Write to MH i2c: E2 08 00 EB 32 80 11 00 00 00 00 00 00 97 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 17 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 17 00 EB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F7 [17:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:54:56]wFMCommunicate OK [17:54:56]CreateOFDProtocolMessage done [17:54:56]OFDSenderStorePacket 162902 [17:54:56]StoreOFDPacket docnum=162902 [17:54:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E1 D9 08 01 67 9B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 31 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FD A9 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD A9 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A EB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD A9 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 F0 10 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7C 02 00 35 04 06 00 06 4C B4 FC A1 D9 EF 8C BB 16 F6 9C 71 01 [17:54:56]CheckFolder [17:54:56]dirname=/storage/ofd_packets [17:54:56]CheckFolder done [17:54:56]ProducePacketName [17:54:56]name=ofd_packets/00162902 [17:54:56]NVStorageSaveData ofd_packets/00162902 [17:54:56]File name is /storage/ofd_packets/00162902 [17:54:56]Write 302 bytes [17:54:56]NVStorageSaveData done [17:54:56]OFDSenderStorePacket done [17:54:56]KKMCreateOFDPacket done [17:54:56]NVStorageSaveData kkm_last_timestamp [17:54:56]File name is /storage/kkm_last_timestamp [17:54:56]Write 4 bytes [17:54:56]NVStorageSaveData done [17:54:56]ExternCall_PrintAddStr [17:54:56]wPrintStart [17:54:56]Write to MH i2c: 01 00 00 EC 32 1E [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: 01 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: 01 07 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: 01 07 00 EC 32 00 00 00 00 00 FF 0F 33 [17:54:56]RasterBufferAndPrint [17:54:56]line Счет N : (1)1319510 [17:54:56]line ИНН: 02508201610067 [17:54:56]line Контрольно-Кассовый Чек [17:54:56]line ПРОДАЖА [17:54:56]line ТРК (МРК, ГНК) : 21 [17:54:56]line Товар: 2710194210 [17:54:56]line ДТ(л)-К-5 [17:54:56]line 78.210 * 72.60 [17:54:56]line = 5678.05 [17:54:56]line НДС 12% НСП 1% [17:54:56]line > о реализуемом товаре [17:54:56]line ИТОГО: 5678.05 [17:54:56]line НСП 1% : 50.25 [17:54:56]line НДС 12% : 602.98 [17:54:56]line Наличными: 0.00 [17:54:56]line Безнал.: 5678.05 [17:54:56]line Место: АЗС № 140 "Партнер Нефть" [17:54:56]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:54:56]line СНО: Общий режим [17:54:56]line Чек 214 14.07.2024 17:54 [17:54:56]line Смена: 463 ФФД: 1.0 [17:54:56]line ЗНМ: 0300000129 [17:54:56]line РНМ: 0000000000090858 [17:54:56]line Версия ККМ: 001 [17:54:56]line Платежная система: O! деньги [17:54:56]line ФМ: 0000000000874899 [17:54:56]line ФД: 162902 [17:54:56]line ФПД: 6926523736537 [17:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175456&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162902&fm=6926523736537&tin=02508201610067®Number=0000000000090858&sum=567805 [17:54:56]written 0, free lines is 4095 [17:54:56]OFD Sender: Processing packet 162902 [packets to send 106, broken 105] [17:54:56]ProducePacketName [17:54:56]name=ofd_packets/00162902 [17:54:56]OFD Sender: To server: pG, [17:54:56]CommunicateWithHost lk.salyk.kg:30040 [17:54:56]ConnectInit lk.salyk.kg [17:54:56]Connected sock=10 [17:54:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E1 D9 08 01 67 9B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 31 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FD A9 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD A9 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A EB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD A9 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 F0 10 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7C 02 00 35 04 06 00 06 4C B4 FC A1 D9 EF 8C BB 16 F6 9C 71 01 [17:54:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3A 06 47 00 48 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7C 02 00 F4 03 04 00 FD BC 93 66 B6 04 01 00 00 5F AC 0B F2 52 A3 DD 6D [17:54:56]CommunicateWithHost err = 0 [17:54:56]CheckOFDResponse [17:54:56]1017 (14) - 77093643461234 [17:54:56]1041 (16) - 0000000000874899 [17:54:56]1040 (4) - 162902 [17:54:56]1012 (4) - 14.07.2024 11:56 [17:54:56]1206 (1) - 0 [17:54:56]OFD Sender: Remove packet 162902 [17:54:56]ProducePacketName [17:54:56]name=ofd_packets/00162902 [17:54:56]NVStorageDeleteData [17:54:57]Write to MH i2c: 01 00 00 16 33 49 [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: 01 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: 01 07 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: 01 07 00 16 33 00 00 00 00 00 F3 0C 4F [17:54:57]RasterBufferAndPrint [17:54:57]line [17:54:57]line [17:54:57]line [17:54:57]line [17:54:57]line [17:54:57]written 0, free lines is 3321 [17:54:57]MH_Cut [17:54:57]Write to MH i2c: D1 01 00 1D 33 01 22 [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: D1 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: D1 01 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: D1 01 00 1D 33 00 21 [17:54:57]Write to MH i2c: 01 00 00 1E 33 51 [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]OFD Sender: No OFD packet to send [17:54:57]*** Cut start [17:54:57]*** Purtial cut [17:54:57]*** CUTSNS_PIN = 0 [17:54:58]*** Stage 1: CUTSNS_PIN = 1 [17:54:59]Read from MH i2c: 01 [17:54:59]MH_I2C_Read... [17:54:59]*** Stop cut motor [17:54:59]*** Cut end [17:54:59]Read from MH i2c: 01 07 00 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: 01 07 00 1E 33 00 00 00 00 00 FF 0F 66 [17:54:59]process_action close_receipt done [17:54:59]requested_data is exist [17:54:59]produce_requested_data [17:54:59]requested_item fm.sn is exist - process it [17:54:59]wFMCommunicate request_size=4 [17:54:59]MH_SAM_APDU [17:54:59]CAPDU: 80 11 00 00 [17:54:59]Write to MH i2c: E2 08 00 1F 33 80 11 00 00 00 00 00 00 CC [17:54:59]Write i2c OK [17:54:59]MH_I2C_Read... [17:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:59]Read from MH i2c: E2 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 17 00 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 17 00 1F 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2C [17:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:54:59]wFMCommunicate OK [17:54:59]requested_item fd.num is exist - process it [17:54:59]SAM_PROTO_GetFieldsCounters [17:54:59]wFMCommunicate request_size=4 [17:54:59]MH_SAM_APDU [17:54:59]CAPDU: 80 13 00 00 [17:54:59]Write to MH i2c: E2 08 00 20 33 80 13 00 00 00 00 00 00 CF [17:54:59]Write i2c OK [17:54:59]MH_I2C_Read... [17:55:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:00]Read from MH i2c: E2 [17:55:00]MH_I2C_Read... [17:55:00]Read from MH i2c: E2 62 00 [17:55:00]MH_I2C_Read... [17:55:00]Read from MH i2c: E2 62 00 20 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 56 7C 02 00 0E 04 04 00 CF 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 28 [17:55:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 56 7C 02 00 0E 04 04 00 CF 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 [17:55:00]wFMCommunicate OK [17:55:00]SAM_PROTO_GetFieldsCounters done [17:55:00]requested_item shift.num is exist - process it [17:55:00]requested_item shift.opened is exist - process it [17:55:00]req_shift_opened [17:55:00]FM_GetShiftState [17:55:00]SAM_PROTO_GetShiftState [17:55:00]wFMCommunicate request_size=4 [17:55:00]MH_SAM_APDU [17:55:00]CAPDU: 80 13 01 00 [17:55:00]Write to MH i2c: E2 08 00 21 33 80 13 01 00 00 00 00 00 D1 [17:55:00]Write i2c OK [17:55:00]MH_I2C_Read... [17:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:00]Read from MH i2c: E2 [17:55:00]MH_I2C_Read... [17:55:00]Read from MH i2c: E2 0E 00 [17:55:00]MH_I2C_Read... [17:55:00]Read from MH i2c: E2 0E 00 21 33 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 07 [17:55:00]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:55:00]wFMCommunicate OK [17:55:00]SAM_PROTO_GetShiftState done [17:55:00]FM_GetShiftState done [17:55:00]req_shift_opened done [17:55:00]requested_item shift.open_date is exist - process it [17:55:00]req_shift_open_date [17:55:00]req_shift_open_date done [17:55:00]produce_requested_data done [17:55:00]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162902,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:55:00]process_action_free close_receipt [17:55:00]json_value_free [17:55:00]json_value_free done [17:55:00]process_json_proto returns [17:55:00]Send response to host [17:55:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162902,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:55:00]free response buf [17:55:00]execute_script done [17:55:00]execute_script returns [17:55:00]free content buf [17:55:00]Sock 9.Close socket [17:55:00]Sock 9.Thread stoped [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:14]accept exits with 7 [17:56:14]New connection [17:56:14]New thread 3066735972 created [17:56:14]Thread 3066879332 joined [17:56:14]Waiting for new connection... [17:56:14] Sock 7.Parse request [17:56:14]Sock 7.Check first char [17:56:14]Sock 7.First char is OK [17:56:14]request: POST /json_proto HTTP/1.0 [17:56:14]Method: POST [17:56:14]URL: /json_proto [17:56:14]Method is POST - this is cgi request [17:56:14]url: /json_proto [17:56:14]query_string will be loaded in cgi processing [17:56:14]execute_cgi json_proto POST (null) [17:56:14]execute_cgi path=json_proto method=POST [17:56:14]POST find Content-Length [17:56:14]Host: 172.17.39.67:8080 [17:56:14]Content-Length: 684 [17:56:14]Content-Type: application/json [17:56:14] [17:56:14]POST finish read [17:56:14]Found Content-Length = 684 [17:56:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.470, "sum" : 760.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 760.00, "total" : 760.00, "payments": [ { "type": 0, "sum" : 760.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:14]execute_script... [17:56:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.470, "sum" : 760.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 760.00, "total" : 760.00, "payments": [ { "type": 0, "sum" : 760.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:14]POST & json_proto [17:56:14]process_json_proto [17:56:14]json parsed OK: [17:56:14]protocol is kg_v1.0 [17:56:14]action value=close_receipt [17:56:14]process_action close_receipt [17:56:14]cmd_close_receipt [17:56:14]MH_GetDate [17:56:14]Write to MH i2c: F0 00 00 22 33 44 [17:56:14]Write i2c OK [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: F0 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: F0 09 00 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: F0 09 00 22 33 00 40 11 94 66 B6 85 93 66 CC [17:56:14]GetLastDocTimeStamp 1720979696 [17:56:14]current date 1720979776 [17:56:14]FM_GetShiftState [17:56:14]SAM_PROTO_GetShiftState [17:56:14]wFMCommunicate request_size=4 [17:56:14]MH_SAM_APDU [17:56:14]CAPDU: 80 13 01 00 [17:56:14]Write to MH i2c: E2 08 00 23 33 80 13 01 00 00 00 00 00 D3 [17:56:14]Write i2c OK [17:56:14]MH_I2C_Read... [17:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:14]Read from MH i2c: E2 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: E2 0E 00 [17:56:14]MH_I2C_Read... [17:56:14]Read from MH i2c: E2 0E 00 23 33 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 09 [17:56:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:56:14]wFMCommunicate OK [17:56:14]SAM_PROTO_GetShiftState done [17:56:14]FM_GetShiftState done [17:56:14]opened in 1720915483 [17:56:14]opened+sec_in_day 1721001883 [17:56:14]quantity*price = 76012 [17:56:14]sum+1 = 76013 [17:56:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 760.00 Внесено: 760.00 СДАЧА: 0.00 НСП 1% : 6.73 НДС 12% : 80.72 Наличными: 760.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 215 14.07.2024 17:56 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162903 ФПД: 76706039962049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175616&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162903&fm=76706039962049&tin=02508201610067®Number=0000000000090858&sum=76000 [17:56:15]StoreToDocumentArchive [17:56:15]shift 463 fd 162903 [17:56:15]save to /storage/0463/doc_00162903 [17:56:15]save last doc name /storage/0463/doc_00162903 to /storage/kkm_last_doc_name [17:56:15]save OK [17:56:15]Clear old archive folders... [17:56:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:56:15]tlvbuf is 01383AE0 [17:56:15]SAM_PROTO_ClearQueue [17:56:15]wFMCommunicate request_size=4 [17:56:15]MH_SAM_APDU [17:56:15]CAPDU: 80 09 00 00 [17:56:15]Write to MH i2c: E2 08 00 30 33 80 09 00 00 00 00 00 00 D5 [17:56:15]Write i2c OK [17:56:15]MH_I2C_Read... [17:56:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:15]Read from MH i2c: E2 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: E2 03 00 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: E2 03 00 30 33 00 90 00 D7 [17:56:15]RAPDU: 90 00 [17:56:15]wFMCommunicate OK [17:56:15]SAM_PROTO_ClearQueue done [17:56:15]KKMCreateOFDPacket [17:56:15]OFDProtocolAddRootSTLVToBuf [17:56:15]FM_MakeSignedData [17:56:15]FM_MakeSignedData [17:56:15]SAM_PROTO_SignData [17:56:15]wFMCommunicate request_size=4 [17:56:15]MH_SAM_APDU [17:56:15]CAPDU: 80 0D 01 02 [17:56:15]Write to MH i2c: E2 08 00 31 33 80 0D 01 02 00 00 00 00 DD [17:56:15]Write i2c OK [17:56:15]MH_I2C_Read... [17:56:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:15]Read from MH i2c: E2 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: E2 03 00 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: E2 03 00 31 33 00 90 00 D8 [17:56:15]RAPDU: 90 00 [17:56:15]wFMCommunicate OK [17:56:15]wFMCommunicate request_size=255 [17:56:15]MH_SAM_APDU [17:56:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EC 28 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 1F 00 00 00 00 07 04 06 00 E0 28 01 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 40 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7C 02 00 35 04 06 00 [17:56:15]Write to MH i2c: E2 02 01 32 33 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EC 28 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 1F 00 00 00 00 07 04 06 00 E0 28 01 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 40 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7C 02 00 35 04 06 00 00 00 F2 [17:56:15]Write i2c OK [17:56:15]MH_I2C_Read... [17:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:15]Read from MH i2c: E2 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: E2 03 00 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: E2 03 00 32 33 00 90 00 D9 [17:56:15]RAPDU: 90 00 [17:56:15]wFMCommunicate OK [17:56:15]wFMCommunicate request_size=11 [17:56:15]MH_SAM_APDU [17:56:15]CAPDU: 80 0D 02 02 06 45 C3 84 43 99 C1 [17:56:15]Write to MH i2c: E2 0E 00 33 33 80 0D 02 02 06 00 45 C3 84 43 99 C1 00 00 15 [17:56:15]Write i2c OK [17:56:15]MH_I2C_Read... [17:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:15]Read from MH i2c: E2 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: E2 03 00 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: E2 03 00 33 33 00 90 00 DA [17:56:15]RAPDU: 90 00 [17:56:15]wFMCommunicate OK [17:56:15]wFMCommunicate request_size=4 [17:56:15]MH_SAM_APDU [17:56:15]CAPDU: 80 0D 03 02 [17:56:15]Write to MH i2c: E2 08 00 34 33 80 0D 03 02 00 00 00 00 E2 [17:56:15]Write i2c OK [17:56:15]MH_I2C_Read... [17:56:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:16]Read from MH i2c: E2 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: E2 0B 00 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: E2 0B 00 34 33 00 44 B8 C5 FE 4C 2E 5F 73 90 00 EE [17:56:16]RAPDU: 44 B8 C5 FE 4C 2E 5F 73 90 00 [17:56:16]wFMCommunicate OK [17:56:16]SAM_PROTO_SignData done [17:56:16]FM_MakeSignedData done [17:56:16]CreateOFDProtocolMessage [17:56:16]wFMCommunicate request_size=4 [17:56:16]MH_SAM_APDU [17:56:16]CAPDU: 80 11 00 00 [17:56:16]Write to MH i2c: E2 08 00 35 33 80 11 00 00 00 00 00 00 E2 [17:56:16]Write i2c OK [17:56:16]MH_I2C_Read... [17:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:16]Read from MH i2c: E2 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: E2 17 00 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: E2 17 00 35 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 42 [17:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:56:16]wFMCommunicate OK [17:56:16]CreateOFDProtocolMessage done [17:56:16]OFDSenderStorePacket 162903 [17:56:16]StoreOFDPacket docnum=162903 [17:56:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 3A 49 08 01 F8 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EC 28 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 1F 00 00 00 00 07 04 06 00 E0 28 01 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 40 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7C 02 00 35 04 06 00 45 C3 84 43 99 C1 44 B8 C5 FE 4C 2E 5F 73 [17:56:16]CheckFolder [17:56:16]dirname=/storage/ofd_packets [17:56:16]CheckFolder done [17:56:16]ProducePacketName [17:56:16]name=ofd_packets/00162903 [17:56:16]NVStorageSaveData ofd_packets/00162903 [17:56:16]File name is /storage/ofd_packets/00162903 [17:56:16]Write 302 bytes [17:56:16]NVStorageSaveData done [17:56:16]OFDSenderStorePacket done [17:56:16]KKMCreateOFDPacket done [17:56:16]NVStorageSaveData kkm_last_timestamp [17:56:16]File name is /storage/kkm_last_timestamp [17:56:16]Write 4 bytes [17:56:16]NVStorageSaveData done [17:56:16]ExternCall_PrintAddStr [17:56:16]wPrintStart [17:56:16]Write to MH i2c: 01 00 00 36 33 69 [17:56:16]Write i2c OK [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: 01 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: 01 07 00 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: 01 07 00 36 33 00 00 00 00 00 FF 0F 7E [17:56:16]RasterBufferAndPrint [17:56:16]line Счет N : (1)1319514 [17:56:16]line ИНН: 02508201610067 [17:56:16]line Контрольно-Кассовый Чек [17:56:16]line ПРОДАЖА [17:56:16]line ТРК (МРК, ГНК) : 41 [17:56:16]line Товар: 2710194210 [17:56:16]line ДТ(л)-К-5 [17:56:16]line 10.470 * 72.60 [17:56:16]line = 760.12 [17:56:16]line НДС 12% НСП 1% [17:56:16]line > о реализуемом товаре [17:56:16]line ОКРУГЛЕНИЕ: -0.12 [17:56:16]line ИТОГО: 760.00 [17:56:16]line Внесено: 760.00 [17:56:16]line СДАЧА: 0.00 [17:56:16]line НСП 1% : 6.73 [17:56:16]line НДС 12% : 80.72 [17:56:16]line Наличными: 760.00 [17:56:16]line Безнал.: 0.00 [17:56:16]line Место: АЗС № 140 "Партнер Нефть" [17:56:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:56:16]line СНО: Общий режим [17:56:16]line Чек 215 14.07.2024 17:56 [17:56:16]line Смена: 463 ФФД: 1.0 [17:56:16]line ЗНМ: 0300000129 [17:56:16]line РНМ: 0000000000090858 [17:56:16]line Версия ККМ: 001 [17:56:16]line ФМ: 0000000000874899 [17:56:16]line ФД: 162903 [17:56:16]line ФПД: 76706039962049 [17:56:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175616&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162903&fm=76706039962049&tin=02508201610067®Number=0000000000090858&sum=76000 [17:56:16]OFD Sender: Processing packet 162903 [packets to send 106, broken 105] [17:56:16]ProducePacketName [17:56:16]name=ofd_packets/00162903 [17:56:16]OFD Sender: To server: pG, [17:56:16]CommunicateWithHost lk.salyk.kg:30040 [17:56:16]ConnectInit lk.salyk.kg [17:56:16]written 0, free lines is 4095 [17:56:16]Connected sock=10 [17:56:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 3A 49 08 01 F8 2F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EC 28 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 1F 00 00 00 00 07 04 06 00 E0 28 01 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 40 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7C 02 00 35 04 06 00 45 C3 84 43 99 C1 44 B8 C5 FE 4C 2E 5F 73 [17:56:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 52 0D 47 00 0D F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7C 02 00 F4 03 04 00 4D BD 93 66 B6 04 01 00 00 A2 E2 36 3E B1 CC EE 68 [17:56:16]CommunicateWithHost err = 0 [17:56:16]CheckOFDResponse [17:56:16]1017 (14) - 77093643461234 [17:56:16]1041 (16) - 0000000000874899 [17:56:16]1040 (4) - 162903 [17:56:16]1012 (4) - 14.07.2024 11:58 [17:56:16]1206 (1) - 0 [17:56:16]OFD Sender: Remove packet 162903 [17:56:16]ProducePacketName [17:56:16]name=ofd_packets/00162903 [17:56:16]NVStorageDeleteData [17:56:16]Write to MH i2c: 01 00 00 61 33 94 [17:56:16]Write i2c OK [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: 01 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: 01 07 00 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: 01 07 00 61 33 00 00 00 00 00 D5 0C 7C [17:56:16]RasterBufferAndPrint [17:56:16]line [17:56:16]line [17:56:16]line [17:56:16]line [17:56:16]line [17:56:16]written 0, free lines is 3293 [17:56:16]MH_Cut [17:56:16]Write to MH i2c: D1 01 00 68 33 01 6D [17:56:16]Write i2c OK [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: D1 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: D1 01 00 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: D1 01 00 68 33 00 6C [17:56:16]Write to MH i2c: 01 00 00 69 33 9C [17:56:16]Write i2c OK [17:56:16]MH_I2C_Read... [17:56:17]OFD Sender: No OFD packet to send [17:56:17]*** Cut start [17:56:17]*** Purtial cut [17:56:17]*** Stage 1: CUTSNS_PIN = 1 [17:56:17]Read from MH i2c: 01 [17:56:17]MH_I2C_Read... [17:56:17]*** Stop cut motor [17:56:17]*** Cut end [17:56:17]Read from MH i2c: 01 07 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: 01 07 00 69 33 00 00 00 00 00 FF 0F B1 [17:56:17]process_action close_receipt done [17:56:17]requested_data is exist [17:56:17]produce_requested_data [17:56:17]requested_item fm.sn is exist - process it [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 11 00 00 [17:56:17]Write to MH i2c: E2 08 00 6A 33 80 11 00 00 00 00 00 00 17 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 17 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 17 00 6A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 77 [17:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:56:17]wFMCommunicate OK [17:56:17]requested_item fd.num is exist - process it [17:56:17]SAM_PROTO_GetFieldsCounters [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 13 00 00 [17:56:17]Write to MH i2c: E2 08 00 6B 33 80 13 00 00 00 00 00 00 1A [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:18]Read from MH i2c: E2 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 62 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 62 00 6B 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 57 7C 02 00 0E 04 04 00 CF 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 77 [17:56:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 57 7C 02 00 0E 04 04 00 CF 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 [17:56:18]wFMCommunicate OK [17:56:18]SAM_PROTO_GetFieldsCounters done [17:56:18]requested_item shift.num is exist - process it [17:56:18]requested_item shift.opened is exist - process it [17:56:18]req_shift_opened [17:56:18]FM_GetShiftState [17:56:18]SAM_PROTO_GetShiftState [17:56:18]wFMCommunicate request_size=4 [17:56:18]MH_SAM_APDU [17:56:18]CAPDU: 80 13 01 00 [17:56:18]Write to MH i2c: E2 08 00 6C 33 80 13 01 00 00 00 00 00 1C [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:18]Read from MH i2c: E2 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 0E 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 0E 00 6C 33 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 52 [17:56:18]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:56:18]wFMCommunicate OK [17:56:18]SAM_PROTO_GetShiftState done [17:56:18]FM_GetShiftState done [17:56:18]req_shift_opened done [17:56:18]requested_item shift.open_date is exist - process it [17:56:18]req_shift_open_date [17:56:18]req_shift_open_date done [17:56:18]produce_requested_data done [17:56:18]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162903,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:56:18]process_action_free close_receipt [17:56:18]json_value_free [17:56:18]json_value_free done [17:56:18]process_json_proto returns [17:56:18]Send response to host [17:56:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162903,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:56:18]free response buf [17:56:18]execute_script done [17:56:18]execute_script returns [17:56:18]free content buf [17:56:18]Sock 7.Close socket [17:56:18]Sock 7.Thread stoped [17:56:18]accept exits with 9 [17:56:18]New connection [17:56:18]New thread 3066879332 created [17:56:18]Thread 3066735972 joined [17:56:18]Waiting for new connection... [17:56:18] Sock 9.Parse request [17:56:18]Sock 9.Check first char [17:56:18]Sock 9.First char is OK [17:56:18]request: POST /json_proto HTTP/1.0 [17:56:18]Method: POST [17:56:18]URL: /json_proto [17:56:18]Method is POST - this is cgi request [17:56:18]url: /json_proto [17:56:18]query_string will be loaded in cgi processing [17:56:18]execute_cgi json_proto POST (null) [17:56:18]execute_cgi path=json_proto method=POST [17:56:18]POST find Content-Length [17:56:18]Host: 172.17.39.67:8080 [17:56:18]Content-Length: 688 [17:56:18]Content-Type: application/json [17:56:18] [17:56:18]POST finish read [17:56:18]Found Content-Length = 688 [17:56:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:18]execute_script... [17:56: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)1319513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:18]POST & json_proto [17:56:18]process_json_proto [17:56:18]json parsed OK: [17:56:18]protocol is kg_v1.0 [17:56:18]action value=close_receipt [17:56:18]process_action close_receipt [17:56:18]cmd_close_receipt [17:56:18]MH_GetDate [17:56:18]Write to MH i2c: F0 00 00 6D 33 8F [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: F0 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: F0 09 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: F0 09 00 6D 33 00 44 11 94 66 B6 85 93 66 1B [17:56:18]GetLastDocTimeStamp 1720979776 [17:56:18]current date 1720979780 [17:56:18]FM_GetShiftState [17:56:18]SAM_PROTO_GetShiftState [17:56:18]wFMCommunicate request_size=4 [17:56:18]MH_SAM_APDU [17:56:18]CAPDU: 80 13 01 00 [17:56:18]Write to MH i2c: E2 08 00 6E 33 80 13 01 00 00 00 00 00 1E [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:18]Read from MH i2c: E2 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 0E 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 0E 00 6E 33 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 54 [17:56:18]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:56:18]wFMCommunicate OK [17:56:18]SAM_PROTO_GetShiftState done [17:56:18]FM_GetShiftState done [17:56:18]opened in 1720915483 [17:56:18]opened+sec_in_day 1721001883 [17:56:18]quantity*price = 200013 [17:56:18]sum+1 = 200014 [17:56:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 216 14.07.2024 17:56 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162904 ФПД: 48951957656072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175620&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162904&fm=48951957656072&tin=02508201610067®Number=0000000000090858&sum=200000 [17:56:19]StoreToDocumentArchive [17:56:19]shift 463 fd 162904 [17:56:19]save to /storage/0463/doc_00162904 [17:56:19]save last doc name /storage/0463/doc_00162904 to /storage/kkm_last_doc_name [17:56:19]save OK [17:56:19]Clear old archive folders... [17:56:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:56:19]tlvbuf is 012314C0 [17:56:19]SAM_PROTO_ClearQueue [17:56:19]wFMCommunicate request_size=4 [17:56:19]MH_SAM_APDU [17:56:19]CAPDU: 80 09 00 00 [17:56:19]Write to MH i2c: E2 08 00 7B 33 80 09 00 00 00 00 00 00 20 [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:19]Read from MH i2c: E2 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 7B 33 00 90 00 22 [17:56:19]RAPDU: 90 00 [17:56:19]wFMCommunicate OK [17:56:19]SAM_PROTO_ClearQueue done [17:56:19]KKMCreateOFDPacket [17:56:19]OFDProtocolAddRootSTLVToBuf [17:56:19]FM_MakeSignedData [17:56:19]FM_MakeSignedData [17:56:19]SAM_PROTO_SignData [17:56:19]wFMCommunicate request_size=4 [17:56:19]MH_SAM_APDU [17:56:19]CAPDU: 80 0D 01 02 [17:56:19]Write to MH i2c: E2 08 00 7C 33 80 0D 01 02 00 00 00 00 28 [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:19]Read from MH i2c: E2 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 7C 33 00 90 00 23 [17:56:19]RAPDU: 90 00 [17:56:19]wFMCommunicate OK [17:56:19]wFMCommunicate request_size=255 [17:56:19]MH_SAM_APDU [17:56:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 44 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7C 02 00 35 04 06 00 [17:56:19]Write to MH i2c: E2 02 01 7D 33 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 44 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7C 02 00 35 04 06 00 00 00 04 [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:20]Read from MH i2c: E2 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 03 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 03 00 7D 33 00 90 00 24 [17:56:20]RAPDU: 90 00 [17:56:20]wFMCommunicate OK [17:56:20]wFMCommunicate request_size=11 [17:56:20]MH_SAM_APDU [17:56:20]CAPDU: 80 0D 02 02 06 2C 85 84 0C 12 08 [17:56:20]Write to MH i2c: E2 0E 00 7E 33 80 0D 02 02 06 00 2C 85 84 0C 12 08 00 00 92 [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 [17:56:20]MH_I2C_Read... [17:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:20]Read from MH i2c: E2 03 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 03 00 7E 33 00 90 00 25 [17:56:20]RAPDU: 90 00 [17:56:20]wFMCommunicate OK [17:56:20]wFMCommunicate request_size=4 [17:56:20]MH_SAM_APDU [17:56:20]CAPDU: 80 0D 03 02 [17:56:20]Write to MH i2c: E2 08 00 7F 33 80 0D 03 02 00 00 00 00 2D [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:20]Read from MH i2c: E2 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 0B 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 0B 00 7F 33 00 DA 2B 16 B4 AD EE A7 72 90 00 B1 [17:56:20]RAPDU: DA 2B 16 B4 AD EE A7 72 90 00 [17:56:20]wFMCommunicate OK [17:56:20]SAM_PROTO_SignData done [17:56:20]FM_MakeSignedData done [17:56:20]CreateOFDProtocolMessage [17:56:20]wFMCommunicate request_size=4 [17:56:20]MH_SAM_APDU [17:56:20]CAPDU: 80 11 00 00 [17:56:20]Write to MH i2c: E2 08 00 80 33 80 11 00 00 00 00 00 00 2D [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:20]Read from MH i2c: E2 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 17 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 17 00 80 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8D [17:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:56:20]wFMCommunicate OK [17:56:20]CreateOFDProtocolMessage done [17:56:20]OFDSenderStorePacket 162904 [17:56:20]StoreOFDPacket docnum=162904 [17:56:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BE 08 08 01 3A 05 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 44 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7C 02 00 35 04 06 00 2C 85 84 0C 12 08 DA 2B 16 B4 AD EE A7 72 [17:56:20]CheckFolder [17:56:20]dirname=/storage/ofd_packets [17:56:20]CheckFolder done [17:56:20]ProducePacketName [17:56:20]name=ofd_packets/00162904 [17:56:20]NVStorageSaveData ofd_packets/00162904 [17:56:20]File name is /storage/ofd_packets/00162904 [17:56:20]Write 302 bytes [17:56:20]NVStorageSaveData done [17:56:20]OFDSenderStorePacket done [17:56:20]KKMCreateOFDPacket done [17:56:20]NVStorageSaveData kkm_last_timestamp [17:56:20]File name is /storage/kkm_last_timestamp [17:56:20]Write 4 bytes [17:56:20]NVStorageSaveData done [17:56:20]ExternCall_PrintAddStr [17:56:20]wPrintStart [17:56:20]Write to MH i2c: 01 00 00 81 33 B4 [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: 01 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: 01 07 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: 01 07 00 81 33 00 00 00 00 00 FF 0F C9 [17:56:20]RasterBufferAndPrint [17:56:20]line Счет N : (1)1319513 [17:56:20]line ИНН: 02508201610067 [17:56:20]line Контрольно-Кассовый Чек [17:56:20]line ПРОДАЖА [17:56:20]line ТРК (МРК, ГНК) : 11 [17:56:20]line Товар: 2710194210 [17:56:20]line ДТ(л)-К-5 [17:56:20]line 27.550 * 72.60 [17:56:20]line = 2000.13 [17:56:20]line НДС 12% НСП 1% [17:56:20]line > о реализуемом товаре [17:56:20]line ОКРУГЛЕНИЕ: -0.13 [17:56:20]line ИТОГО: 2000.00 [17:56:20]line Внесено: 2000.00 [17:56:20]line СДАЧА: 0.00 [17:56:20]line НСП 1% : 17.70 [17:56:20]line НДС 12% : 212.40 [17:56:20]line Наличными: 2000.00 [17:56:20]line Безнал.: 0.00 [17:56:20]line Место: АЗС № 140 "Партнер Нефть" [17:56:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:56:20]line СНО: Общий режим [17:56:20]line Чек 216 14.07.2024 17:56 [17:56:20]line Смена: 463 ФФД: 1.0 [17:56:20]line ЗНМ: 0300000129 [17:56:20]line РНМ: 0000000000090858 [17:56:20]line Версия ККМ: 001 [17:56:20]line ФМ: 0000000000874899 [17:56:20]line ФД: 162904 [17:56:20]line ФПД: 48951957656072 [17:56:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175620&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162904&fm=48951957656072&tin=02508201610067®Number=0000000000090858&sum=200000 [17:56:20]written 0, free lines is 4095 [17:56:20]OFD Sender: Processing packet 162904 [packets to send 106, broken 105] [17:56:20]ProducePacketName [17:56:20]name=ofd_packets/00162904 [17:56:20]OFD Sender: To server: pG, [17:56:20]CommunicateWithHost lk.salyk.kg:30040 [17:56:20]ConnectInit lk.salyk.kg [17:56:20]Connected sock=11 [17:56:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BE 08 08 01 3A 05 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 44 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7C 02 00 35 04 06 00 2C 85 84 0C 12 08 DA 2B 16 B4 AD EE A7 72 [17:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6C C9 47 00 BC 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7C 02 00 F4 03 04 00 52 BD 93 66 B6 04 01 00 00 CA 17 AB F2 38 94 14 E2 [17:56:21]CommunicateWithHost err = 0 [17:56:21]CheckOFDResponse [17:56:21]1017 (14) - 77093643461234 [17:56:21]1041 (16) - 0000000000874899 [17:56:21]1040 (4) - 162904 [17:56:21]1012 (4) - 14.07.2024 11:58 [17:56:21]1206 (1) - 0 [17:56:21]OFD Sender: Remove packet 162904 [17:56:21]ProducePacketName [17:56:21]name=ofd_packets/00162904 [17:56:21]NVStorageDeleteData [17:56:21]Write to MH i2c: 01 00 00 AC 33 DF [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: 01 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: 01 07 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: 01 07 00 AC 33 00 00 00 00 00 E7 0C D9 [17:56:21]RasterBufferAndPrint [17:56:21]line [17:56:21]line [17:56:21]line [17:56:21]line [17:56:21]line [17:56:21]written 0, free lines is 3312 [17:56:21]MH_Cut [17:56:21]Write to MH i2c: D1 01 00 B3 33 01 B8 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: D1 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: D1 01 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: D1 01 00 B3 33 00 B7 [17:56:21]Write to MH i2c: 01 00 00 B4 33 E7 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]OFD Sender: No OFD packet to send [17:56:21]*** Cut start [17:56:21]*** Purtial cut [17:56:21]*** CUTSNS_PIN = 0 [17:56:22]*** Stage 1: CUTSNS_PIN = 1 [17:56:23]Read from MH i2c: 01 [17:56:23]MH_I2C_Read... [17:56:23]*** Stop cut motor [17:56:23]*** Cut end [17:56:23]Read from MH i2c: 01 07 00 [17:56:23]MH_I2C_Read... [17:56:23]Read from MH i2c: 01 07 00 B4 33 00 00 00 00 00 FF 0F FC [17:56:23]process_action close_receipt done [17:56:23]requested_data is exist [17:56:23]produce_requested_data [17:56:23]requested_item fm.sn is exist - process it [17:56:23]wFMCommunicate request_size=4 [17:56:23]MH_SAM_APDU [17:56:23]CAPDU: 80 11 00 00 [17:56:23]Write to MH i2c: E2 08 00 B5 33 80 11 00 00 00 00 00 00 62 [17:56:23]Write i2c OK [17:56:23]MH_I2C_Read... [17:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:24]Read from MH i2c: E2 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 17 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 17 00 B5 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C2 [17:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:56:24]wFMCommunicate OK [17:56:24]requested_item fd.num is exist - process it [17:56:24]SAM_PROTO_GetFieldsCounters [17:56:24]wFMCommunicate request_size=4 [17:56:24]MH_SAM_APDU [17:56:24]CAPDU: 80 13 00 00 [17:56:24]Write to MH i2c: E2 08 00 B6 33 80 13 00 00 00 00 00 00 65 [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:24]Read from MH i2c: E2 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 62 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 62 00 B6 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 58 7C 02 00 0E 04 04 00 CF 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 C6 [17:56:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 58 7C 02 00 0E 04 04 00 CF 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 [17:56:24]wFMCommunicate OK [17:56:24]SAM_PROTO_GetFieldsCounters done [17:56:24]requested_item shift.num is exist - process it [17:56:24]requested_item shift.opened is exist - process it [17:56:24]req_shift_opened [17:56:24]FM_GetShiftState [17:56:24]SAM_PROTO_GetShiftState [17:56:24]wFMCommunicate request_size=4 [17:56:24]MH_SAM_APDU [17:56:24]CAPDU: 80 13 01 00 [17:56:24]Write to MH i2c: E2 08 00 B7 33 80 13 01 00 00 00 00 00 67 [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:24]Read from MH i2c: E2 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 0E 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 0E 00 B7 33 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9D [17:56:24]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:56:24]wFMCommunicate OK [17:56:24]SAM_PROTO_GetShiftState done [17:56:24]FM_GetShiftState done [17:56:24]req_shift_opened done [17:56:24]requested_item shift.open_date is exist - process it [17:56:24]req_shift_open_date [17:56:24]req_shift_open_date done [17:56:24]produce_requested_data done [17:56:24]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162904,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:56:24]process_action_free close_receipt [17:56:24]json_value_free [17:56:24]json_value_free done [17:56:24]process_json_proto returns [17:56:24]Send response to host [17:56:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162904,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:56:24]free response buf [17:56:24]execute_script done [17:56:24]execute_script returns [17:56:24]free content buf [17:56:24]Sock 9.Close socket [17:56:24]Sock 9.Thread stoped [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:41]accept exits with 7 [17:56:41]New connection [17:56:41]New thread 3066735972 created [17:56:41]Thread 3066879332 joined [17:56:41]Waiting for new connection... [17:56:41] Sock 7.Parse request [17:56:41]Sock 7.Check first char [17:56:41]Sock 7.First char is OK [17:56:41]request: POST /json_proto HTTP/1.0 [17:56:41]Method: POST [17:56:41]URL: /json_proto [17:56:41]Method is POST - this is cgi request [17:56:41]url: /json_proto [17:56:41]query_string will be loaded in cgi processing [17:56:41]execute_cgi json_proto POST (null) [17:56:41]execute_cgi path=json_proto method=POST [17:56:41]POST find Content-Length [17:56:41]Host: 172.17.39.67:8080 [17:56:41]Content-Length: 678 [17:56:41]Content-Type: application/json [17:56:41] [17:56:41]POST finish read [17:56:41]Found Content-Length = 678 [17:56:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.810, "sum" : 650.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:41]execute_script... [17: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)1319515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.810, "sum" : 650.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:41]POST & json_proto [17:56:41]process_json_proto [17:56:41]json parsed OK: [17:56:41]protocol is kg_v1.0 [17:56:41]action value=close_receipt [17:56:41]process_action close_receipt [17:56:41]cmd_close_receipt [17:56:41]MH_GetDate [17:56:41]Write to MH i2c: F0 00 00 B8 33 DA [17:56:41]Write i2c OK [17:56:41]MH_I2C_Read... [17:56:41]Read from MH i2c: F0 [17:56:41]MH_I2C_Read... [17:56:41]Read from MH i2c: F0 09 00 [17:56:41]MH_I2C_Read... [17:56:41]Read from MH i2c: F0 09 00 B8 33 00 5B 11 94 66 B6 85 93 66 7D [17:56:41]GetLastDocTimeStamp 1720979780 [17:56:41]current date 1720979803 [17:56:41]FM_GetShiftState [17:56:41]SAM_PROTO_GetShiftState [17:56:41]wFMCommunicate request_size=4 [17:56:41]MH_SAM_APDU [17:56:41]CAPDU: 80 13 01 00 [17:56:41]Write to MH i2c: E2 08 00 B9 33 80 13 01 00 00 00 00 00 69 [17:56:41]Write i2c OK [17:56:41]MH_I2C_Read... [17:56:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:41]Read from MH i2c: E2 [17:56:41]MH_I2C_Read... [17:56:41]Read from MH i2c: E2 0E 00 [17:56:41]MH_I2C_Read... [17:56:41]Read from MH i2c: E2 0E 00 B9 33 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9F [17:56:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:56:41]wFMCommunicate OK [17:56:41]SAM_PROTO_GetShiftState done [17:56:41]FM_GetShiftState done [17:56:41]opened in 1720915483 [17:56:41]opened+sec_in_day 1721001883 [17:56:41]quantity*price = 65040 [17:56:41]sum+1 = 65041 [17:56:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 217 14.07.2024 17:56 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162905 ФПД: 7318657992295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175643&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162905&fm=7318657992295&tin=02508201610067®Number=0000000000090858&sum=65000 [17:56:42]StoreToDocumentArchive [17:56:42]shift 463 fd 162905 [17:56:42]save to /storage/0463/doc_00162905 [17:56:42]save last doc name /storage/0463/doc_00162905 to /storage/kkm_last_doc_name [17:56:42]save OK [17:56:42]Clear old archive folders... [17:56:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:42]tlvbuf is B6F43010 [17:56:42]SAM_PROTO_ClearQueue [17:56:42]wFMCommunicate request_size=4 [17:56:42]MH_SAM_APDU [17:56:42]CAPDU: 80 09 00 00 [17:56:42]Write to MH i2c: E2 08 00 C6 33 80 09 00 00 00 00 00 00 6B [17:56:42]Write i2c OK [17:56:42]MH_I2C_Read... [17:56:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:42]Read from MH i2c: E2 [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: E2 03 00 [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: E2 03 00 C6 33 00 90 00 6D [17:56:42]RAPDU: 90 00 [17:56:42]wFMCommunicate OK [17:56:42]SAM_PROTO_ClearQueue done [17:56:42]KKMCreateOFDPacket [17:56:42]OFDProtocolAddRootSTLVToBuf [17:56:42]FM_MakeSignedData [17:56:42]FM_MakeSignedData [17:56:42]SAM_PROTO_SignData [17:56:42]wFMCommunicate request_size=4 [17:56:42]MH_SAM_APDU [17:56:42]CAPDU: 80 0D 01 02 [17:56:42]Write to MH i2c: E2 08 00 C7 33 80 0D 01 02 00 00 00 00 73 [17:56:42]Write i2c OK [17:56:42]MH_I2C_Read... [17:56:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:42]Read from MH i2c: E2 [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: E2 03 00 [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: E2 03 00 C7 33 00 90 00 6E [17:56:42]RAPDU: 90 00 [17:56:42]wFMCommunicate OK [17:56:42]wFMCommunicate request_size=255 [17:56:42]MH_SAM_APDU [17: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 5B 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7C 02 00 35 04 06 00 06 [17:56:42]Write to MH i2c: E2 02 01 C8 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 5B 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7C 02 00 35 04 06 00 06 00 00 21 [17:56:42]Write i2c OK [17:56:42]MH_I2C_Read... [17:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:43]Read from MH i2c: E2 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: E2 03 00 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: E2 03 00 C8 33 00 90 00 6F [17:56:43]RAPDU: 90 00 [17:56:43]wFMCommunicate OK [17:56:43]wFMCommunicate request_size=10 [17:56:43]MH_SAM_APDU [17:56:43]CAPDU: 80 0D 02 02 05 A8 02 02 86 67 [17:56:43]Write to MH i2c: E2 0D 00 C9 33 80 0D 02 02 05 00 A8 02 02 86 67 00 00 19 [17:56:43]Write i2c OK [17:56:43]MH_I2C_Read... [17:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:43]Read from MH i2c: E2 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: E2 03 00 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: E2 03 00 C9 33 00 90 00 70 [17:56:43]RAPDU: 90 00 [17:56:43]wFMCommunicate OK [17:56:43]wFMCommunicate request_size=4 [17:56:43]MH_SAM_APDU [17:56:43]CAPDU: 80 0D 03 02 [17:56:43]Write to MH i2c: E2 08 00 CA 33 80 0D 03 02 00 00 00 00 78 [17:56:43]Write i2c OK [17:56:43]MH_I2C_Read... [17:56:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:43]Read from MH i2c: E2 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: E2 0B 00 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: E2 0B 00 CA 33 00 5E 24 7A A2 54 F8 B9 DE 90 00 FA [17:56:43]RAPDU: 5E 24 7A A2 54 F8 B9 DE 90 00 [17:56:43]wFMCommunicate OK [17:56:43]SAM_PROTO_SignData done [17:56:43]FM_MakeSignedData done [17:56:43]CreateOFDProtocolMessage [17:56:43]wFMCommunicate request_size=4 [17:56:43]MH_SAM_APDU [17:56:43]CAPDU: 80 11 00 00 [17:56:43]Write to MH i2c: E2 08 00 CB 33 80 11 00 00 00 00 00 00 78 [17:56:43]Write i2c OK [17:56:43]MH_I2C_Read... [17:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:43]Read from MH i2c: E2 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: E2 17 00 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: E2 17 00 CB 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D8 [17:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:56:43]wFMCommunicate OK [17:56:43]CreateOFDProtocolMessage done [17:56:43]OFDSenderStorePacket 162905 [17:56:43]StoreOFDPacket docnum=162905 [17:56:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 86 64 07 01 3E 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 5B 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7C 02 00 35 04 06 00 06 A8 02 02 86 67 5E 24 7A A2 54 F8 B9 DE [17:56:43]CheckFolder [17:56:43]dirname=/storage/ofd_packets [17:56:43]CheckFolder done [17:56:43]ProducePacketName [17:56:43]name=ofd_packets/00162905 [17:56:43]NVStorageSaveData ofd_packets/00162905 [17:56:43]File name is /storage/ofd_packets/00162905 [17:56:43]Write 301 bytes [17:56:43]NVStorageSaveData done [17:56:43]OFDSenderStorePacket done [17:56:43]KKMCreateOFDPacket done [17:56:43]NVStorageSaveData kkm_last_timestamp [17:56:43]File name is /storage/kkm_last_timestamp [17:56:43]Write 4 bytes [17:56:43]NVStorageSaveData done [17:56:43]ExternCall_PrintAddStr [17:56:43]wPrintStart [17:56:43]Write to MH i2c: 01 00 00 CC 33 FF [17:56:43]Write i2c OK [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: 01 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: 01 07 00 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: 01 07 00 CC 33 00 00 00 00 00 FF 0F 14 [17:56:43]RasterBufferAndPrint [17:56:43]line Счет N : (1)1319515 [17:56:43]line ИНН: 02508201610067 [17:56:43]line Контрольно-Кассовый Чек [17:56:43]line ПРОДАЖА [17:56:43]line ТРК (МРК, ГНК) : 63 [17:56:43]line Товар: 2710124130 [17:56:43]line Аи-92-К-5 [17:56:43]line 9.810 * 66.30 [17:56:43]line = 650.40 [17:56:43]line НДС 12% НСП 1% [17:56:43]line > о реализуемом товаре [17:56:43]line ОКРУГЛЕНИЕ: -0.40 [17:56:43]line ИТОГО: 650.00 [17:56:43]line Внесено: 650.00 [17:56:43]line СДАЧА: 0.00 [17:56:43]line НСП 1% : 5.76 [17:56:43]line НДС 12% : 69.07 [17:56:43]line Наличными: 650.00 [17:56:43]line Безнал.: 0.00 [17:56:43]line Место: АЗС № 140 "Партнер Нефть" [17:56:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:56:43]line СНО: Общий режим [17:56:43]line Чек 217 14.07.2024 17:56 [17:56:43]line Смена: 463 ФФД: 1.0 [17:56:43]line ЗНМ: 0300000129 [17:56:43]line РНМ: 0000000000090858 [17:56:43]line Версия ККМ: 001 [17:56:43]line ФМ: 0000000000874899 [17:56:43]line ФД: 162905 [17:56:43]line ФПД: 7318657992295 [17:56:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175643&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162905&fm=7318657992295&tin=02508201610067®Number=0000000000090858&sum=65000 [17:56:43]OFD Sender: Processing packet 162905 [packets to send 106, broken 105] [17:56:43]ProducePacketName [17:56:43]name=ofd_packets/00162905 [17:56:43]OFD Sender: To server: pG, [17:56:43]CommunicateWithHost lk.salyk.kg:30040 [17:56:43]ConnectInit lk.salyk.kg [17:56:43]written 0, free lines is 4095 [17:56:43]Connected sock=10 [17:56:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 86 64 07 01 3E 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 5B 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7C 02 00 35 04 06 00 06 A8 02 02 86 67 5E 24 7A A2 54 F8 B9 DE [17:56:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 05 59 47 00 5B 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7C 02 00 F4 03 04 00 68 BD 93 66 B6 04 01 00 00 86 9D 1D 79 AF 90 40 30 [17:56:44]CommunicateWithHost err = 0 [17:56:44]CheckOFDResponse [17:56:44]1017 (14) - 77093643461234 [17:56:44]1041 (16) - 0000000000874899 [17:56:44]1040 (4) - 162905 [17:56:44]1012 (4) - 14.07.2024 11:58 [17:56:44]1206 (1) - 0 [17:56:44]OFD Sender: Remove packet 162905 [17:56:44]ProducePacketName [17:56:44]name=ofd_packets/00162905 [17:56:44]NVStorageDeleteData [17:56:44]Write to MH i2c: 01 00 00 F7 33 2A [17:56:44]Write i2c OK [17:56:44]MH_I2C_Read... [17:56:44]Read from MH i2c: 01 [17:56:44]MH_I2C_Read... [17:56:44]Read from MH i2c: 01 07 00 [17:56:44]MH_I2C_Read... [17:56:44]Read from MH i2c: 01 07 00 F7 33 00 00 00 00 00 D8 0C 15 [17:56:44]RasterBufferAndPrint [17:56:44]line [17:56:44]line [17:56:44]line [17:56:44]line [17:56:44]line [17:56:44]written 0, free lines is 3296 [17:56:44]MH_Cut [17:56:44]Write to MH i2c: D1 01 00 FE 33 01 03 [17:56:44]Write i2c OK [17:56:44]MH_I2C_Read... [17:56:44]Read from MH i2c: D1 [17:56:44]MH_I2C_Read... [17:56:44]Read from MH i2c: D1 01 00 [17:56:44]MH_I2C_Read... [17:56:44]Read from MH i2c: D1 01 00 FE 33 00 02 [17:56:44]Write to MH i2c: 01 00 00 FF 33 32 [17:56:44]Write i2c OK [17:56:44]MH_I2C_Read... [17:56:44]OFD Sender: No OFD packet to send [17:56:44]*** Cut start [17:56:44]*** Purtial cut [17:56:44]*** Stage 1: CUTSNS_PIN = 1 [17:56:45]Read from MH i2c: 01 [17:56:45]MH_I2C_Read... [17:56:45]*** Stop cut motor [17:56:45]*** Cut end [17:56:45]Read from MH i2c: 01 07 00 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: 01 07 00 FF 33 00 00 00 00 00 FF 0F 47 [17:56:45]process_action close_receipt done [17:56:45]requested_data is exist [17:56:45]produce_requested_data [17:56:45]requested_item fm.sn is exist - process it [17:56:45]wFMCommunicate request_size=4 [17:56:45]MH_SAM_APDU [17:56:45]CAPDU: 80 11 00 00 [17:56:45]Write to MH i2c: E2 08 00 00 34 80 11 00 00 00 00 00 00 AE [17:56:45]Write i2c OK [17:56:45]MH_I2C_Read... [17:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:45]Read from MH i2c: E2 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 17 00 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 17 00 00 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0E [17:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:56:45]wFMCommunicate OK [17:56:45]requested_item fd.num is exist - process it [17:56:45]SAM_PROTO_GetFieldsCounters [17:56:45]wFMCommunicate request_size=4 [17:56:45]MH_SAM_APDU [17:56:45]CAPDU: 80 13 00 00 [17:56:45]Write to MH i2c: E2 08 00 01 34 80 13 00 00 00 00 00 00 B1 [17:56:45]Write i2c OK [17:56:45]MH_I2C_Read... [17:56:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:45]Read from MH i2c: E2 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 62 00 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 62 00 01 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 59 7C 02 00 0E 04 04 00 CF 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 16 [17:56:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 59 7C 02 00 0E 04 04 00 CF 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 [17:56:45]wFMCommunicate OK [17:56:45]SAM_PROTO_GetFieldsCounters done [17:56:45]requested_item shift.num is exist - process it [17:56:45]requested_item shift.opened is exist - process it [17:56:45]req_shift_opened [17:56:45]FM_GetShiftState [17:56:45]SAM_PROTO_GetShiftState [17:56:45]wFMCommunicate request_size=4 [17:56:45]MH_SAM_APDU [17:56:45]CAPDU: 80 13 01 00 [17:56:45]Write to MH i2c: E2 08 00 02 34 80 13 01 00 00 00 00 00 B3 [17:56:45]Write i2c OK [17:56:45]MH_I2C_Read... [17:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:45]Read from MH i2c: E2 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 0E 00 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 0E 00 02 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E9 [17:56:45]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:56:45]wFMCommunicate OK [17:56:45]SAM_PROTO_GetShiftState done [17:56:45]FM_GetShiftState done [17:56:45]req_shift_opened done [17:56:45]requested_item shift.open_date is exist - process it [17:56:45]req_shift_open_date [17:56:45]req_shift_open_date done [17:56:45]produce_requested_data done [17:56:45]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162905,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:56:45]process_action_free close_receipt [17:56:45]json_value_free [17:56:45]json_value_free done [17:56:45]process_json_proto returns [17:56:45]Send response to host [17:56:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162905,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:56:45]free response buf [17:56:45]execute_script done [17:56:45]execute_script returns [17:56:45]free content buf [17:56:45]Sock 7.Close socket [17:56:45]Sock 7.Thread stoped [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:55]accept exits with 9 [17:58:55]New connection [17:58:55]New thread 3066879332 created [17:58:55]Thread 3066735972 joined [17:58:55]Waiting for new connection... [17:58:55] Sock 9.Parse request [17:58:55]Sock 9.Check first char [17:58:55]Sock 9.First char is OK [17:58:55]request: POST /json_proto HTTP/1.0 [17:58:55]Method: POST [17:58:55]URL: /json_proto [17:58:55]Method is POST - this is cgi request [17:58:55]url: /json_proto [17:58:55]query_string will be loaded in cgi processing [17:58:55]execute_cgi json_proto POST (null) [17:58:55]execute_cgi path=json_proto method=POST [17:58:55]POST find Content-Length [17:58:55]Host: 172.17.39.67:8080 [17:58:55]Content-Length: 688 [17:58:55]Content-Type: application/json [17:58:55] [17:58:55]POST finish read [17:58:55]Found Content-Length = 688 [17:58:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:55]execute_script... [17:58: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)1319517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:55]POST & json_proto [17:58:55]process_json_proto [17:58:55]json parsed OK: [17:58:55]protocol is kg_v1.0 [17:58:55]action value=close_receipt [17:58:55]process_action close_receipt [17:58:55]cmd_close_receipt [17:58:55]MH_GetDate [17:58:55]Write to MH i2c: F0 00 00 03 34 26 [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: F0 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: F0 09 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: F0 09 00 03 34 00 E1 11 94 66 B6 85 93 66 4F [17:58:55]GetLastDocTimeStamp 1720979803 [17:58:55]current date 1720979937 [17:58:55]FM_GetShiftState [17:58:55]SAM_PROTO_GetShiftState [17:58:55]wFMCommunicate request_size=4 [17:58:55]MH_SAM_APDU [17:58:55]CAPDU: 80 13 01 00 [17:58:55]Write to MH i2c: E2 08 00 04 34 80 13 01 00 00 00 00 00 B5 [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:55]Read from MH i2c: E2 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 0E 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 0E 00 04 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 EB [17:58:55]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:58:55]wFMCommunicate OK [17:58:55]SAM_PROTO_GetShiftState done [17:58:55]FM_GetShiftState done [17:58:55]opened in 1720915483 [17:58:55]opened+sec_in_day 1721001883 [17:58:55]quantity*price = 100042 [17:58:55]sum+1 = 100044 [17:58:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 218 14.07.2024 17:58 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162906 ФПД: 182152113049347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175857&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162906&fm=182152113049347&tin=02508201610067®Number=0000000000090858&sum=100000 [17:58:56]StoreToDocumentArchive [17:58:56]shift 463 fd 162906 [17:58:56]save to /storage/0463/doc_00162906 [17:58:56]save last doc name /storage/0463/doc_00162906 to /storage/kkm_last_doc_name [17:58:56]save OK [17:58:56]Clear old archive folders... [17:58:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:58:56]tlvbuf is 01227EA0 [17:58:56]SAM_PROTO_ClearQueue [17:58:56]wFMCommunicate request_size=4 [17:58:56]MH_SAM_APDU [17:58:56]CAPDU: 80 09 00 00 [17:58:56]Write to MH i2c: E2 08 00 11 34 80 09 00 00 00 00 00 00 B7 [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:56]Read from MH i2c: E2 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 03 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 03 00 11 34 00 90 00 B9 [17:58:56]RAPDU: 90 00 [17:58:56]wFMCommunicate OK [17:58:56]SAM_PROTO_ClearQueue done [17:58:56]KKMCreateOFDPacket [17:58:56]OFDProtocolAddRootSTLVToBuf [17:58:56]FM_MakeSignedData [17:58:56]FM_MakeSignedData [17:58:56]SAM_PROTO_SignData [17:58:56]wFMCommunicate request_size=4 [17:58:56]MH_SAM_APDU [17:58:56]CAPDU: 80 0D 01 02 [17:58:56]Write to MH i2c: E2 08 00 12 34 80 0D 01 02 00 00 00 00 BF [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:56]Read from MH i2c: E2 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 03 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 03 00 12 34 00 90 00 BA [17:58:56]RAPDU: 90 00 [17:58:56]wFMCommunicate OK [17:58:56]wFMCommunicate request_size=255 [17:58:56]MH_SAM_APDU [17:58:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 E1 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7C 02 00 35 04 06 00 [17:58:56]Write to MH i2c: E2 02 01 13 34 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 E1 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7C 02 00 35 04 06 00 00 00 C6 [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 13 34 00 90 00 BB [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]wFMCommunicate request_size=11 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 0D 02 02 06 A5 AA 97 FE 4F 03 [17:58:57]Write to MH i2c: E2 0E 00 14 34 80 0D 02 02 06 00 A5 AA 97 FE 4F 03 00 00 04 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 14 34 00 90 00 BC [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 0D 03 02 [17:58:57]Write to MH i2c: E2 08 00 15 34 80 0D 03 02 00 00 00 00 C4 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 0B 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 0B 00 15 34 00 0E 82 AD 8D 60 47 A3 FF 90 00 D8 [17:58:57]RAPDU: 0E 82 AD 8D 60 47 A3 FF 90 00 [17:58:57]wFMCommunicate OK [17:58:57]SAM_PROTO_SignData done [17:58:57]FM_MakeSignedData done [17:58:57]CreateOFDProtocolMessage [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 11 00 00 [17:58:57]Write to MH i2c: E2 08 00 16 34 80 11 00 00 00 00 00 00 C4 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 17 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 17 00 16 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 24 [17:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:58:57]wFMCommunicate OK [17:58:57]CreateOFDProtocolMessage done [17:58:57]OFDSenderStorePacket 162906 [17:58:57]StoreOFDPacket docnum=162906 [17:58:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 59 20 08 01 EA 13 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 E1 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7C 02 00 35 04 06 00 A5 AA 97 FE 4F 03 0E 82 AD 8D 60 47 A3 FF [17:58:57]CheckFolder [17:58:57]dirname=/storage/ofd_packets [17:58:57]CheckFolder done [17:58:57]ProducePacketName [17:58:57]name=ofd_packets/00162906 [17:58:57]NVStorageSaveData ofd_packets/00162906 [17:58:57]File name is /storage/ofd_packets/00162906 [17:58:57]Write 302 bytes [17:58:57]NVStorageSaveData done [17:58:57]OFDSenderStorePacket done [17:58:57]KKMCreateOFDPacket done [17:58:57]NVStorageSaveData kkm_last_timestamp [17:58:57]File name is /storage/kkm_last_timestamp [17:58:57]Write 4 bytes [17:58:57]NVStorageSaveData done [17:58:57]ExternCall_PrintAddStr [17:58:57]wPrintStart [17:58:57]Write to MH i2c: 01 00 00 17 34 4B [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 07 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 07 00 17 34 00 00 00 00 00 FF 0F 60 [17:58:57]RasterBufferAndPrint [17:58:57]line Счет N : (1)1319517 [17:58:57]line ИНН: 02508201610067 [17:58:57]line Контрольно-Кассовый Чек [17:58:57]line ПРОДАЖА [17:58:57]line ТРК (МРК, ГНК) : 61 [17:58:57]line Товар: 2710194210 [17:58:57]line ДТ(л)-К-5 [17:58:57]line 13.780 * 72.60 [17:58:57]line = 1000.43 [17:58:57]line НДС 12% НСП 1% [17:58:57]line > о реализуемом товаре [17:58:57]line ОКРУГЛЕНИЕ: -0.43 [17:58:57]line ИТОГО: 1000.00 [17:58:57]line Внесено: 1000.00 [17:58:57]line СДАЧА: 0.00 [17:58:57]line НСП 1% : 8.85 [17:58:57]line НДС 12% : 106.24 [17:58:57]line Наличными: 1000.00 [17:58:57]line Безнал.: 0.00 [17:58:57]line Место: АЗС № 140 "Партнер Нефть" [17:58:57]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:58:57]line СНО: Общий режим [17:58:57]line Чек 218 14.07.2024 17:58 [17:58:57]line Смена: 463 ФФД: 1.0 [17:58:57]line ЗНМ: 0300000129 [17:58:57]line РНМ: 0000000000090858 [17:58:57]line Версия ККМ: 001 [17:58:57]line ФМ: 0000000000874899 [17:58:57]line ФД: 162906 [17:58:57]line ФПД: 182152113049347 [17:58:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T175857&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162906&fm=182152113049347&tin=02508201610067®Number=0000000000090858&sum=100000 [17:58:57]OFD Sender: Processing packet 162906 [packets to send 106, broken 105] [17:58:57]ProducePacketName [17:58:57]name=ofd_packets/00162906 [17:58:57]OFD Sender: To server: pG, [17:58:57]CommunicateWithHost lk.salyk.kg:30040 [17:58:57]ConnectInit lk.salyk.kg [17:58:57]written 0, free lines is 4095 [17:58:57]Connected sock=10 [17:58:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 59 20 08 01 EA 13 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 E1 11 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7C 02 00 35 04 06 00 A5 AA 97 FE 4F 03 0E 82 AD 8D 60 47 A3 FF [17:58:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7E 28 47 00 61 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7C 02 00 F4 03 04 00 EE BD 93 66 B6 04 01 00 00 C0 06 F4 BD AC 7D 37 76 [17:58:57]CommunicateWithHost err = 0 [17:58:57]CheckOFDResponse [17:58:57]1017 (14) - 77093643461234 [17:58:57]1041 (16) - 0000000000874899 [17:58:57]1040 (4) - 162906 [17:58:57]1012 (4) - 14.07.2024 12:00 [17:58:57]1206 (1) - 0 [17:58:57]OFD Sender: Remove packet 162906 [17:58:57]ProducePacketName [17:58:57]name=ofd_packets/00162906 [17:58:57]NVStorageDeleteData [17:58:57]Write to MH i2c: 01 00 00 42 34 76 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 07 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 07 00 42 34 00 00 00 00 00 D9 0C 62 [17:58:57]RasterBufferAndPrint [17:58:57]line [17:58:57]line [17:58:57]line [17:58:57]line [17:58:57]line [17:58:57]written 0, free lines is 3298 [17:58:57]MH_Cut [17:58:57]Write to MH i2c: D1 01 00 49 34 01 4F [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: D1 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: D1 01 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: D1 01 00 49 34 00 4E [17:58:57]Write to MH i2c: 01 00 00 4A 34 7E [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:58]OFD Sender: No OFD packet to send [17:58:58]*** Cut start [17:58:58]*** Purtial cut [17:58:58]*** CUTSNS_PIN = 0 [17:58:58]*** Stage 1: CUTSNS_PIN = 1 [17:59:00]Read from MH i2c: 01 [17:59:00]MH_I2C_Read... [17:59:00]*** Stop cut motor [17:59:00]*** Cut end [17:59:00]Read from MH i2c: 01 07 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 4A 34 00 00 00 00 00 FF 0F 93 [17:59:00]process_action close_receipt done [17:59:00]requested_data is exist [17:59:00]produce_requested_data [17:59:00]requested_item fm.sn is exist - process it [17:59:00]wFMCommunicate request_size=4 [17:59:00]MH_SAM_APDU [17:59:00]CAPDU: 80 11 00 00 [17:59:00]Write to MH i2c: E2 08 00 4B 34 80 11 00 00 00 00 00 00 F9 [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:00]Read from MH i2c: E2 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 17 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 17 00 4B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 59 [17:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:59:00]wFMCommunicate OK [17:59:00]requested_item fd.num is exist - process it [17:59:00]SAM_PROTO_GetFieldsCounters [17:59:00]wFMCommunicate request_size=4 [17:59:00]MH_SAM_APDU [17:59:00]CAPDU: 80 13 00 00 [17:59:00]Write to MH i2c: E2 08 00 4C 34 80 13 00 00 00 00 00 00 FC [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:00]Read from MH i2c: E2 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 62 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 62 00 4C 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5A 7C 02 00 0E 04 04 00 CF 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 65 [17:59:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5A 7C 02 00 0E 04 04 00 CF 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 [17:59:00]wFMCommunicate OK [17:59:00]SAM_PROTO_GetFieldsCounters done [17:59:00]requested_item shift.num is exist - process it [17:59:00]requested_item shift.opened is exist - process it [17:59:00]req_shift_opened [17:59:00]FM_GetShiftState [17:59:00]SAM_PROTO_GetShiftState [17:59:00]wFMCommunicate request_size=4 [17:59:00]MH_SAM_APDU [17:59:00]CAPDU: 80 13 01 00 [17:59:00]Write to MH i2c: E2 08 00 4D 34 80 13 01 00 00 00 00 00 FE [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:00]Read from MH i2c: E2 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 0E 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: E2 0E 00 4D 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 34 [17:59:00]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [17:59:00]wFMCommunicate OK [17:59:00]SAM_PROTO_GetShiftState done [17:59:00]FM_GetShiftState done [17:59:00]req_shift_opened done [17:59:00]requested_item shift.open_date is exist - process it [17:59:00]req_shift_open_date [17:59:00]req_shift_open_date done [17:59:00]produce_requested_data done [17:59:00]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162906,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [17:59:00]process_action_free close_receipt [17:59:00]json_value_free [17:59:00]json_value_free done [17:59:00]process_json_proto returns [17:59:00]Send response to host [17:59:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162906,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [17:59:00]free response buf [17:59:00]execute_script done [17:59:00]execute_script returns [17:59:00]free content buf [17:59:00]Sock 9.Close socket [17:59:01]Sock 9.Thread stoped [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:12]accept exits with 7 [18:03:12]New connection [18:03:12]New thread 3066735972 created [18:03:12]Thread 3066879332 joined [18:03:12]Waiting for new connection... [18:03:12] Sock 7.Parse request [18:03:12]Sock 7.Check first char [18:03:12]Sock 7.First char is OK [18:03:12]request: POST /json_proto HTTP/1.0 [18:03:12]Method: POST [18:03:12]URL: /json_proto [18:03:12]Method is POST - this is cgi request [18:03:12]url: /json_proto [18:03:12]query_string will be loaded in cgi processing [18:03:12]execute_cgi json_proto POST (null) [18:03:12]execute_cgi path=json_proto method=POST [18:03:12]POST find Content-Length [18:03:12]Host: 172.17.39.67:8080 [18:03:12]Content-Length: 806 [18:03:12]Content-Type: application/json [18:03:12] [18:03:12]POST finish read [18:03:12]Found Content-Length = 806 [18:03:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.880, "sum" : 499.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 499.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:12]execute_script... [18:03: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)1319519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.880, "sum" : 499.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 499.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:12]POST & json_proto [18:03:12]process_json_proto [18:03:12]json parsed OK: [18:03:12]protocol is kg_v1.0 [18:03:12]action value=close_receipt [18:03:12]process_action close_receipt [18:03:12]cmd_close_receipt [18:03:12]MH_GetDate [18:03:12]Write to MH i2c: F0 00 00 4E 34 71 [18:03:12]Write i2c OK [18:03:12]MH_I2C_Read... [18:03:12]Read from MH i2c: F0 [18:03:12]MH_I2C_Read... [18:03:12]Read from MH i2c: F0 09 00 [18:03:12]MH_I2C_Read... [18:03:12]Read from MH i2c: F0 09 00 4E 34 00 E2 12 94 66 B6 85 93 66 9C [18:03:12]GetLastDocTimeStamp 1720979937 [18:03:12]current date 1720980194 [18:03:12]FM_GetShiftState [18:03:12]SAM_PROTO_GetShiftState [18:03:12]wFMCommunicate request_size=4 [18:03:12]MH_SAM_APDU [18:03:12]CAPDU: 80 13 01 00 [18:03:12]Write to MH i2c: E2 08 00 4F 34 80 13 01 00 00 00 00 00 00 [18:03:12]Write i2c OK [18:03:12]MH_I2C_Read... [18:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:12]Read from MH i2c: E2 [18:03:12]MH_I2C_Read... [18:03:12]Read from MH i2c: E2 0E 00 [18:03:12]MH_I2C_Read... [18:03:12]Read from MH i2c: E2 0E 00 4F 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 36 [18:03:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:03:12]wFMCommunicate OK [18:03:12]SAM_PROTO_GetShiftState done [18:03:12]FM_GetShiftState done [18:03:12]opened in 1720915483 [18:03:12]opened+sec_in_day 1721001883 [18:03:12]quantity*price = 49948 [18:03:12]sum+1 = 49950 [18:03:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 499.49 НСП 1% : 4.42 НДС 12% : 53.04 Наличными: 0.00 Безнал.: 499.49 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 219 14.07.2024 18:03 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162907 ФПД: 198786175216826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180314&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162907&fm=198786175216826&tin=02508201610067®Number=0000000000090858&sum=49949 [18:03:13]StoreToDocumentArchive [18:03:13]shift 463 fd 162907 [18:03:13]save to /storage/0463/doc_00162907 [18:03:13]save last doc name /storage/0463/doc_00162907 to /storage/kkm_last_doc_name [18:03:13]save OK [18:03:13]Clear old archive folders... [18:03:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:03:13]tlvbuf is 0123B240 [18:03:13]SAM_PROTO_ClearQueue [18:03:13]wFMCommunicate request_size=4 [18:03:13]MH_SAM_APDU [18:03:13]CAPDU: 80 09 00 00 [18:03:13]Write to MH i2c: E2 08 00 5C 34 80 09 00 00 00 00 00 00 02 [18:03:13]Write i2c OK [18:03:13]MH_I2C_Read... [18:03:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:13]Read from MH i2c: E2 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 03 00 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 03 00 5C 34 00 90 00 04 [18:03:13]RAPDU: 90 00 [18:03:13]wFMCommunicate OK [18:03:13]SAM_PROTO_ClearQueue done [18:03:13]KKMCreateOFDPacket [18:03:13]OFDProtocolAddRootSTLVToBuf [18:03:13]FM_MakeSignedData [18:03:13]FM_MakeSignedData [18:03:13]SAM_PROTO_SignData [18:03:13]wFMCommunicate request_size=4 [18:03:13]MH_SAM_APDU [18:03:13]CAPDU: 80 0D 01 02 [18:03:13]Write to MH i2c: E2 08 00 5D 34 80 0D 01 02 00 00 00 00 0A [18:03:13]Write i2c OK [18:03:13]MH_I2C_Read... [18:03:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:13]Read from MH i2c: E2 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 03 00 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 03 00 5D 34 00 90 00 05 [18:03:13]RAPDU: 90 00 [18:03:13]wFMCommunicate OK [18:03:13]wFMCommunicate request_size=255 [18:03:13]MH_SAM_APDU [18:03:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D 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 B8 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 E2 12 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7C 02 00 35 04 06 00 [18:03:13]Write to MH i2c: E2 02 01 5E 34 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D 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 B8 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 E2 12 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7C 02 00 35 04 06 00 00 00 6C [18:03:13]Write i2c OK [18:03:13]MH_I2C_Read... [18:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:13]Read from MH i2c: E2 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 03 00 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 03 00 5E 34 00 90 00 06 [18:03:13]RAPDU: 90 00 [18:03:13]wFMCommunicate OK [18:03:13]wFMCommunicate request_size=11 [18:03:13]MH_SAM_APDU [18:03:13]CAPDU: 80 0D 02 02 06 B4 CB 83 5C 2C BA [18:03:13]Write to MH i2c: E2 0E 00 5F 34 80 0D 02 02 06 00 B4 CB 83 5C 2C BA 00 00 5D [18:03:13]Write i2c OK [18:03:13]MH_I2C_Read... [18:03:13]OFD Sender: No OFD packet to send [18:03:13]Read from MH i2c: E2 [18:03:13]MH_I2C_Read... [18:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:13]Read from MH i2c: E2 03 00 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 03 00 5F 34 00 90 00 07 [18:03:13]RAPDU: 90 00 [18:03:13]wFMCommunicate OK [18:03:13]wFMCommunicate request_size=4 [18:03:13]MH_SAM_APDU [18:03:13]CAPDU: 80 0D 03 02 [18:03:13]Write to MH i2c: E2 08 00 60 34 80 0D 03 02 00 00 00 00 0F [18:03:13]Write i2c OK [18:03:13]MH_I2C_Read... [18:03:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:13]Read from MH i2c: E2 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 0B 00 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 0B 00 60 34 00 F3 7E D8 D9 C1 9A 08 6F 90 00 04 [18:03:13]RAPDU: F3 7E D8 D9 C1 9A 08 6F 90 00 [18:03:13]wFMCommunicate OK [18:03:13]SAM_PROTO_SignData done [18:03:13]FM_MakeSignedData done [18:03:13]CreateOFDProtocolMessage [18:03:13]wFMCommunicate request_size=4 [18:03:13]MH_SAM_APDU [18:03:13]CAPDU: 80 11 00 00 [18:03:13]Write to MH i2c: E2 08 00 61 34 80 11 00 00 00 00 00 00 0F [18:03:13]Write i2c OK [18:03:13]MH_I2C_Read... [18:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:13]Read from MH i2c: E2 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 17 00 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: E2 17 00 61 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6F [18:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:03:13]wFMCommunicate OK [18:03:13]CreateOFDProtocolMessage done [18:03:13]OFDSenderStorePacket 162907 [18:03:13]StoreOFDPacket docnum=162907 [18:03:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F7 93 08 01 27 1B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D 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 B8 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 E2 12 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7C 02 00 35 04 06 00 B4 CB 83 5C 2C BA F3 7E D8 D9 C1 9A 08 6F [18:03:13]CheckFolder [18:03:13]dirname=/storage/ofd_packets [18:03:13]CheckFolder done [18:03:13]ProducePacketName [18:03:13]name=ofd_packets/00162907 [18:03:13]NVStorageSaveData ofd_packets/00162907 [18:03:13]File name is /storage/ofd_packets/00162907 [18:03:13]Write 302 bytes [18:03:13]NVStorageSaveData done [18:03:13]OFDSenderStorePacket done [18:03:13]KKMCreateOFDPacket done [18:03:13]NVStorageSaveData kkm_last_timestamp [18:03:13]File name is /storage/kkm_last_timestamp [18:03:13]Write 4 bytes [18:03:13]NVStorageSaveData done [18:03:13]ExternCall_PrintAddStr [18:03:13]wPrintStart [18:03:13]Write to MH i2c: 01 00 00 62 34 96 [18:03:13]Write i2c OK [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: 01 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: 01 07 00 [18:03:13]MH_I2C_Read... [18:03:13]Read from MH i2c: 01 07 00 62 34 00 00 00 00 00 FF 0F AB [18:03:13]RasterBufferAndPrint [18:03:13]line Счет N : (1)1319519 [18:03:13]line ИНН: 02508201610067 [18:03:13]line Контрольно-Кассовый Чек [18:03:13]line ПРОДАЖА [18:03:13]line ТРК (МРК, ГНК) : 31 [18:03:13]line Товар: 2710194210 [18:03:13]line ДТ(л)-К-5 [18:03:13]line 6.880 * 72.60 [18:03:13]line = 499.49 [18:03:13]line НДС 12% НСП 1% [18:03:13]line > о реализуемом товаре [18:03:13]line ИТОГО: 499.49 [18:03:13]line НСП 1% : 4.42 [18:03:13]line НДС 12% : 53.04 [18:03:13]line Наличными: 0.00 [18:03:13]line Безнал.: 499.49 [18:03:13]line Место: АЗС № 140 "Партнер Нефть" [18:03:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:03:13]line СНО: Общий режим [18:03:13]line Чек 219 14.07.2024 18:03 [18:03:13]line Смена: 463 ФФД: 1.0 [18:03:13]line ЗНМ: 0300000129 [18:03:13]line РНМ: 0000000000090858 [18:03:13]line Версия ККМ: 001 [18:03:13]line Платежная система: O! деньги [18:03:13]line ФМ: 0000000000874899 [18:03:13]line ФД: 162907 [18:03:13]line ФПД: 198786175216826 [18:03:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180314&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162907&fm=198786175216826&tin=02508201610067®Number=0000000000090858&sum=49949 [18:03:14]OFD Sender: Processing packet 162907 [packets to send 106, broken 105] [18:03:14]ProducePacketName [18:03:14]name=ofd_packets/00162907 [18:03:14]OFD Sender: To server: pG, [18:03:14]CommunicateWithHost lk.salyk.kg:30040 [18:03:14]ConnectInit lk.salyk.kg [18:03:14]written 0, free lines is 4095 [18:03:14]Connected sock=10 [18:03:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F7 93 08 01 27 1B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D 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 B8 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 E2 12 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7C 02 00 35 04 06 00 B4 CB 83 5C 2C BA F3 7E D8 D9 C1 9A 08 6F [18:03:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 DD F3 47 00 52 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7C 02 00 F4 03 04 00 EF BE 93 66 B6 04 01 00 00 72 3B 97 F2 29 CC 84 88 [18:03:14]CommunicateWithHost err = 0 [18:03:14]CheckOFDResponse [18:03:14]1017 (14) - 77093643461234 [18:03:14]1041 (16) - 0000000000874899 [18:03:14]1040 (4) - 162907 [18:03:14]1012 (4) - 14.07.2024 12:05 [18:03:14]1206 (1) - 0 [18:03:14]OFD Sender: Remove packet 162907 [18:03:14]ProducePacketName [18:03:14]name=ofd_packets/00162907 [18:03:14]NVStorageDeleteData [18:03:14]Write to MH i2c: 01 00 00 8C 34 C0 [18:03:14]Write i2c OK [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: 01 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: 01 07 00 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: 01 07 00 8C 34 00 00 00 00 00 F0 0C C3 [18:03:14]RasterBufferAndPrint [18:03:14]line [18:03:14]line [18:03:14]line [18:03:14]line [18:03:14]line [18:03:14]written 0, free lines is 3318 [18:03:14]MH_Cut [18:03:14]Write to MH i2c: D1 01 00 93 34 01 99 [18:03:14]Write i2c OK [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: D1 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: D1 01 00 [18:03:14]MH_I2C_Read... [18:03:14]Read from MH i2c: D1 01 00 93 34 00 98 [18:03:14]Write to MH i2c: 01 00 00 94 34 C8 [18:03:14]Write i2c OK [18:03:14]MH_I2C_Read... [18:03:14]OFD Sender: No OFD packet to send [18:03:15]*** Cut start [18:03:15]*** Purtial cut [18:03:15]*** Stage 1: CUTSNS_PIN = 1 [18:03:15]Read from MH i2c: 01 [18:03:15]MH_I2C_Read... [18:03:15]*** Stop cut motor [18:03:15]*** Cut end [18:03:15]Read from MH i2c: 01 07 00 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: 01 07 00 94 34 00 00 00 00 00 FF 0F DD [18:03:15]process_action close_receipt done [18:03:15]requested_data is exist [18:03:15]produce_requested_data [18:03:15]requested_item fm.sn is exist - process it [18:03:15]wFMCommunicate request_size=4 [18:03:15]MH_SAM_APDU [18:03:15]CAPDU: 80 11 00 00 [18:03:15]Write to MH i2c: E2 08 00 95 34 80 11 00 00 00 00 00 00 43 [18:03:15]Write i2c OK [18:03:15]MH_I2C_Read... [18:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:15]Read from MH i2c: E2 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: E2 17 00 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: E2 17 00 95 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A3 [18:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:03:15]wFMCommunicate OK [18:03:15]requested_item fd.num is exist - process it [18:03:15]SAM_PROTO_GetFieldsCounters [18:03:15]wFMCommunicate request_size=4 [18:03:15]MH_SAM_APDU [18:03:15]CAPDU: 80 13 00 00 [18:03:15]Write to MH i2c: E2 08 00 96 34 80 13 00 00 00 00 00 00 46 [18:03:15]Write i2c OK [18:03:15]MH_I2C_Read... [18:03:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:15]Read from MH i2c: E2 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: E2 62 00 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: E2 62 00 96 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5B 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [18:03:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5B 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:15]wFMCommunicate OK [18:03:15]SAM_PROTO_GetFieldsCounters done [18:03:15]requested_item shift.num is exist - process it [18:03:15]requested_item shift.opened is exist - process it [18:03:15]req_shift_opened [18:03:15]FM_GetShiftState [18:03:15]SAM_PROTO_GetShiftState [18:03:15]wFMCommunicate request_size=4 [18:03:15]MH_SAM_APDU [18:03:15]CAPDU: 80 13 01 00 [18:03:15]Write to MH i2c: E2 08 00 97 34 80 13 01 00 00 00 00 00 48 [18:03:15]Write i2c OK [18:03:15]MH_I2C_Read... [18:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:15]Read from MH i2c: E2 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: E2 0E 00 [18:03:15]MH_I2C_Read... [18:03:15]Read from MH i2c: E2 0E 00 97 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7E [18:03:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:03:15]wFMCommunicate OK [18:03:15]SAM_PROTO_GetShiftState done [18:03:15]FM_GetShiftState done [18:03:15]req_shift_opened done [18:03:15]requested_item shift.open_date is exist - process it [18:03:15]req_shift_open_date [18:03:15]req_shift_open_date done [18:03:15]produce_requested_data done [18:03:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162907,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [18:03:15]process_action_free close_receipt [18:03:15]json_value_free [18:03:15]json_value_free done [18:03:15]process_json_proto returns [18:03:15]Send response to host [18:03:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162907,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [18:03:15]free response buf [18:03:15]execute_script done [18:03:15]execute_script returns [18:03:15]free content buf [18:03:15]Sock 7.Close socket [18:03:15]Sock 7.Thread stoped [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:44]accept exits with 9 [18:04:44]New connection [18:04:44]New thread 3066879332 created [18:04:44]Thread 3066735972 joined [18:04:44]Waiting for new connection... [18:04:44] Sock 9.Parse request [18:04:44]Sock 9.Check first char [18:04:44]Sock 9.First char is OK [18:04:44]request: POST /json_proto HTTP/1.0 [18:04:44]Method: POST [18:04:44]URL: /json_proto [18:04:44]Method is POST - this is cgi request [18:04:44]url: /json_proto [18:04:44]query_string will be loaded in cgi processing [18:04:44]execute_cgi json_proto POST (null) [18:04:44]execute_cgi path=json_proto method=POST [18:04:44]POST find Content-Length [18:04:44]Host: 172.17.39.67:8080 [18:04:44]Content-Length: 809 [18:04:44]Content-Type: application/json [18:04:44] [18:04:44]POST finish read [18:04:44]Found Content-Length = 809 [18:04:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 82.650, "sum" : 6000.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" : 6000.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:44]execute_script... [18:04: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)1319518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 82.650, "sum" : 6000.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" : 6000.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:44]POST & json_proto [18:04:44]process_json_proto [18:04:44]json parsed OK: [18:04:44]protocol is kg_v1.0 [18:04:44]action value=close_receipt [18:04:44]process_action close_receipt [18:04:44]cmd_close_receipt [18:04:44]MH_GetDate [18:04:44]Write to MH i2c: F0 00 00 98 34 BB [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: F0 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: F0 09 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: F0 09 00 98 34 00 3E 13 94 66 B6 85 93 66 43 [18:04:44]GetLastDocTimeStamp 1720980194 [18:04:44]current date 1720980286 [18:04:44]FM_GetShiftState [18:04:44]SAM_PROTO_GetShiftState [18:04:44]wFMCommunicate request_size=4 [18:04:44]MH_SAM_APDU [18:04:44]CAPDU: 80 13 01 00 [18:04:44]Write to MH i2c: E2 08 00 99 34 80 13 01 00 00 00 00 00 4A [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:44]Read from MH i2c: E2 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 0E 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 0E 00 99 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 80 [18:04:44]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:04:44]wFMCommunicate OK [18:04:44]SAM_PROTO_GetShiftState done [18:04:44]FM_GetShiftState done [18:04:44]opened in 1720915483 [18:04:44]opened+sec_in_day 1721001883 [18:04:44]quantity*price = 600039 [18:04:44]sum+1 = 600040 [18:04:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6000.39 НСП 1% : 53.10 НДС 12% : 637.21 Наличными: 0.00 Безнал.: 6000.39 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 220 14.07.2024 18:04 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162908 ФПД: 14116303586176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180446&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162908&fm=14116303586176&tin=02508201610067®Number=0000000000090858&sum=600039 [18:04:45]StoreToDocumentArchive [18:04:45]shift 463 fd 162908 [18:04:45]save to /storage/0463/doc_00162908 [18:04:45]save last doc name /storage/0463/doc_00162908 to /storage/kkm_last_doc_name [18:04:45]save OK [18:04:45]Clear old archive folders... [18:04:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:04:45]tlvbuf is 01326920 [18:04:45]SAM_PROTO_ClearQueue [18:04:45]wFMCommunicate request_size=4 [18:04:45]MH_SAM_APDU [18:04:45]CAPDU: 80 09 00 00 [18:04:45]Write to MH i2c: E2 08 00 A6 34 80 09 00 00 00 00 00 00 4C [18:04:45]Write i2c OK [18:04:45]MH_I2C_Read... [18:04:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:45]Read from MH i2c: E2 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: E2 03 00 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: E2 03 00 A6 34 00 90 00 4E [18:04:45]RAPDU: 90 00 [18:04:45]wFMCommunicate OK [18:04:45]SAM_PROTO_ClearQueue done [18:04:45]KKMCreateOFDPacket [18:04:45]OFDProtocolAddRootSTLVToBuf [18:04:45]FM_MakeSignedData [18:04:45]FM_MakeSignedData [18:04:45]SAM_PROTO_SignData [18:04:45]wFMCommunicate request_size=4 [18:04:45]MH_SAM_APDU [18:04:45]CAPDU: 80 0D 01 02 [18:04:45]Write to MH i2c: E2 08 00 A7 34 80 0D 01 02 00 00 00 00 54 [18:04:45]Write i2c OK [18:04:45]MH_I2C_Read... [18:04:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:45]Read from MH i2c: E2 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: E2 03 00 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: E2 03 00 A7 34 00 90 00 4F [18:04:45]RAPDU: 90 00 [18:04:45]wFMCommunicate OK [18:04:45]wFMCommunicate request_size=255 [18:04:45]MH_SAM_APDU [18:04:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DA 42 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 3E 13 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7C 02 00 35 04 06 00 [18:04:45]Write to MH i2c: E2 02 01 A8 34 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DA 42 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 3E 13 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7C 02 00 35 04 06 00 00 00 09 [18:04:45]Write i2c OK [18:04:45]MH_I2C_Read... [18:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:46]Read from MH i2c: E2 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: E2 03 00 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: E2 03 00 A8 34 00 90 00 50 [18:04:46]RAPDU: 90 00 [18:04:46]wFMCommunicate OK [18:04:46]wFMCommunicate request_size=11 [18:04:46]MH_SAM_APDU [18:04:46]CAPDU: 80 0D 02 02 06 0C D6 B5 42 C3 80 [18:04:46]Write to MH i2c: E2 0E 00 A9 34 80 0D 02 02 06 00 0C D6 B5 42 C3 80 00 00 7F [18:04:46]Write i2c OK [18:04:46]MH_I2C_Read... [18:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:46]Read from MH i2c: E2 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: E2 03 00 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: E2 03 00 A9 34 00 90 00 51 [18:04:46]RAPDU: 90 00 [18:04:46]wFMCommunicate OK [18:04:46]wFMCommunicate request_size=4 [18:04:46]MH_SAM_APDU [18:04:46]CAPDU: 80 0D 03 02 [18:04:46]Write to MH i2c: E2 08 00 AA 34 80 0D 03 02 00 00 00 00 59 [18:04:46]Write i2c OK [18:04:46]MH_I2C_Read... [18:04:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:46]Read from MH i2c: E2 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: E2 0B 00 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: E2 0B 00 AA 34 00 92 14 BC DF 00 7E 3E BE 90 00 15 [18:04:46]RAPDU: 92 14 BC DF 00 7E 3E BE 90 00 [18:04:46]wFMCommunicate OK [18:04:46]SAM_PROTO_SignData done [18:04:46]FM_MakeSignedData done [18:04:46]CreateOFDProtocolMessage [18:04:46]wFMCommunicate request_size=4 [18:04:46]MH_SAM_APDU [18:04:46]CAPDU: 80 11 00 00 [18:04:46]Write to MH i2c: E2 08 00 AB 34 80 11 00 00 00 00 00 00 59 [18:04:46]Write i2c OK [18:04:46]MH_I2C_Read... [18:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:46]Read from MH i2c: E2 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: E2 17 00 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: E2 17 00 AB 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B9 [18:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:04:46]wFMCommunicate OK [18:04:46]CreateOFDProtocolMessage done [18:04:46]OFDSenderStorePacket 162908 [18:04:46]StoreOFDPacket docnum=162908 [18:04:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 05 BF 08 01 BB 66 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DA 42 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 3E 13 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7C 02 00 35 04 06 00 0C D6 B5 42 C3 80 92 14 BC DF 00 7E 3E BE [18:04:46]CheckFolder [18:04:46]dirname=/storage/ofd_packets [18:04:46]CheckFolder done [18:04:46]ProducePacketName [18:04:46]name=ofd_packets/00162908 [18:04:46]NVStorageSaveData ofd_packets/00162908 [18:04:46]File name is /storage/ofd_packets/00162908 [18:04:46]Write 302 bytes [18:04:46]NVStorageSaveData done [18:04:46]OFDSenderStorePacket done [18:04:46]KKMCreateOFDPacket done [18:04:46]NVStorageSaveData kkm_last_timestamp [18:04:46]File name is /storage/kkm_last_timestamp [18:04:46]Write 4 bytes [18:04:46]NVStorageSaveData done [18:04:46]ExternCall_PrintAddStr [18:04:46]wPrintStart [18:04:46]Write to MH i2c: 01 00 00 AC 34 E0 [18:04:46]Write i2c OK [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: 01 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: 01 07 00 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: 01 07 00 AC 34 00 00 00 00 00 FF 0F F5 [18:04:46]RasterBufferAndPrint [18:04:46]line Счет N : (1)1319518 [18:04:46]line ИНН: 02508201610067 [18:04:46]line Контрольно-Кассовый Чек [18:04:46]line ПРОДАЖА [18:04:46]line ТРК (МРК, ГНК) : 61 [18:04:46]line Товар: 2710194210 [18:04:46]line ДТ(л)-К-5 [18:04:46]line 82.650 * 72.60 [18:04:46]line = 6000.39 [18:04:46]line НДС 12% НСП 1% [18:04:46]line > о реализуемом товаре [18:04:46]line ИТОГО: 6000.39 [18:04:46]line НСП 1% : 53.10 [18:04:46]line НДС 12% : 637.21 [18:04:46]line Наличными: 0.00 [18:04:46]line Безнал.: 6000.39 [18:04:46]line Место: АЗС № 140 "Партнер Нефть" [18:04:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:04:46]line СНО: Общий режим [18:04:46]line Чек 220 14.07.2024 18:04 [18:04:46]line Смена: 463 ФФД: 1.0 [18:04:46]line ЗНМ: 0300000129 [18:04:46]line РНМ: 0000000000090858 [18:04:46]line Версия ККМ: 001 [18:04:46]line Платежная система: O! деньги [18:04:46]line ФМ: 0000000000874899 [18:04:46]line ФД: 162908 [18:04:46]line ФПД: 14116303586176 [18:04:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180446&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162908&fm=14116303586176&tin=02508201610067®Number=0000000000090858&sum=600039 [18:04:46]written 0, free lines is 4095 [18:04:46]OFD Sender: Processing packet 162908 [packets to send 106, broken 105] [18:04:46]ProducePacketName [18:04:46]name=ofd_packets/00162908 [18:04:46]OFD Sender: To server: pG, [18:04:46]CommunicateWithHost lk.salyk.kg:30040 [18:04:46]ConnectInit lk.salyk.kg [18:04:46]Connected sock=10 [18: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 34 38 39 39 10 01 00 00 05 BF 08 01 BB 66 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DA 42 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 3E 13 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7C 02 00 35 04 06 00 0C D6 B5 42 C3 80 92 14 BC DF 00 7E 3E BE [18:04:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F3 FC 47 00 42 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7C 02 00 F4 03 04 00 4B BF 93 66 B6 04 01 00 00 5B 57 5D 9E 20 B8 F6 0A [18:04:46]CommunicateWithHost err = 0 [18:04:46]CheckOFDResponse [18:04:46]1017 (14) - 77093643461234 [18:04:46]1041 (16) - 0000000000874899 [18:04:46]1040 (4) - 162908 [18:04:46]1012 (4) - 14.07.2024 12:06 [18:04:46]1206 (1) - 0 [18:04:46]OFD Sender: Remove packet 162908 [18:04:46]ProducePacketName [18:04:46]name=ofd_packets/00162908 [18:04:46]NVStorageDeleteData [18:04:46]Write to MH i2c: 01 00 00 D6 34 0A [18:04:46]Write i2c OK [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: 01 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: 01 07 00 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: 01 07 00 D6 34 00 00 00 00 00 EC 0C 09 [18:04:46]RasterBufferAndPrint [18:04:46]line [18:04:46]line [18:04:46]line [18:04:46]line [18:04:46]line [18:04:46]written 0, free lines is 3317 [18:04:46]MH_Cut [18:04:46]Write to MH i2c: D1 01 00 DD 34 01 E3 [18:04:46]Write i2c OK [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: D1 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: D1 01 00 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: D1 01 00 DD 34 00 E2 [18:04:46]Write to MH i2c: 01 00 00 DE 34 12 [18:04:46]Write i2c OK [18:04:46]MH_I2C_Read... [18:04:47]OFD Sender: No OFD packet to send [18:04:47]*** Cut start [18:04:47]*** Purtial cut [18:04:47]*** CUTSNS_PIN = 0 [18:04:47]*** Stage 1: CUTSNS_PIN = 1 [18:04:49]Read from MH i2c: 01 [18:04:49]MH_I2C_Read... [18:04:49]*** Stop cut motor [18:04:49]*** Cut end [18:04:49]Read from MH i2c: 01 07 00 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: 01 07 00 DE 34 00 00 00 00 00 FF 0F 27 [18:04:49]process_action close_receipt done [18:04:49]requested_data is exist [18:04:49]produce_requested_data [18:04:49]requested_item fm.sn is exist - process it [18:04:49]wFMCommunicate request_size=4 [18:04:49]MH_SAM_APDU [18:04:49]CAPDU: 80 11 00 00 [18:04:49]Write to MH i2c: E2 08 00 DF 34 80 11 00 00 00 00 00 00 8D [18:04:49]Write i2c OK [18:04:49]MH_I2C_Read... [18:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:49]Read from MH i2c: E2 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 17 00 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 17 00 DF 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 ED [18:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:04:49]wFMCommunicate OK [18:04:49]requested_item fd.num is exist - process it [18:04:49]SAM_PROTO_GetFieldsCounters [18:04:49]wFMCommunicate request_size=4 [18:04:49]MH_SAM_APDU [18:04:49]CAPDU: 80 13 00 00 [18:04:49]Write to MH i2c: E2 08 00 E0 34 80 13 00 00 00 00 00 00 90 [18:04:49]Write i2c OK [18:04:49]MH_I2C_Read... [18:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:49]Read from MH i2c: E2 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 62 00 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 62 00 E0 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5C 7C 02 00 0E 04 04 00 CF 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 01 [18:04:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5C 7C 02 00 0E 04 04 00 CF 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 [18:04:49]wFMCommunicate OK [18:04:49]SAM_PROTO_GetFieldsCounters done [18:04:49]requested_item shift.num is exist - process it [18:04:49]requested_item shift.opened is exist - process it [18:04:49]req_shift_opened [18:04:49]FM_GetShiftState [18:04:49]SAM_PROTO_GetShiftState [18:04:49]wFMCommunicate request_size=4 [18:04:49]MH_SAM_APDU [18:04:49]CAPDU: 80 13 01 00 [18:04:49]Write to MH i2c: E2 08 00 E1 34 80 13 01 00 00 00 00 00 92 [18:04:49]Write i2c OK [18:04:49]MH_I2C_Read... [18:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:49]Read from MH i2c: E2 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 0E 00 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: E2 0E 00 E1 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C8 [18:04:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:04:49]wFMCommunicate OK [18:04:49]SAM_PROTO_GetShiftState done [18:04:49]FM_GetShiftState done [18:04:49]req_shift_opened done [18:04:49]requested_item shift.open_date is exist - process it [18:04:49]req_shift_open_date [18:04:49]req_shift_open_date done [18:04:49]produce_requested_data done [18:04:49]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162908,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [18:04:49]process_action_free close_receipt [18:04:49]json_value_free [18:04:49]json_value_free done [18:04:49]process_json_proto returns [18:04:49]Send response to host [18:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162908,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [18:04:49]free response buf [18:04:49]execute_script done [18:04:49]execute_script returns [18:04:49]free content buf [18:04:49]Sock 9.Close socket [18:04:49]Sock 9.Thread stoped [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:19]accept exits with 7 [18:05:19]New connection [18:05:19]New thread 3066735972 created [18:05:19]Thread 3066879332 joined [18:05:19]Waiting for new connection... [18:05:19] Sock 7.Parse request [18:05:19]Sock 7.Check first char [18:05:19]Sock 7.First char is OK [18:05:19]request: POST /json_proto HTTP/1.0 [18:05:19]Method: POST [18:05:19]URL: /json_proto [18:05:19]Method is POST - this is cgi request [18:05:19]url: /json_proto [18:05:19]query_string will be loaded in cgi processing [18:05:19]execute_cgi json_proto POST (null) [18:05:19]execute_cgi path=json_proto method=POST [18:05:19]POST find Content-Length [18:05:19]Host: 172.17.39.67:8080 [18:05:19]Content-Length: 688 [18:05:19]Content-Type: application/json [18:05:19] [18:05:19]POST finish read [18:05:19]Found Content-Length = 688 [18:05:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 26.040, "sum" : 1890.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1890.00, "total" : 1890.00, "payments": [ { "type": 0, "sum" : 1890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:19]execute_script... [18:05: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)1319516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 26.040, "sum" : 1890.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1890.00, "total" : 1890.00, "payments": [ { "type": 0, "sum" : 1890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:19]POST & json_proto [18:05:19]process_json_proto [18:05:19]json parsed OK: [18:05:19]protocol is kg_v1.0 [18:05:19]action value=close_receipt [18:05:19]process_action close_receipt [18:05:19]cmd_close_receipt [18:05:19]MH_GetDate [18:05:19]Write to MH i2c: F0 00 00 E2 34 05 [18:05:19]Write i2c OK [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: F0 [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: F0 09 00 [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: F0 09 00 E2 34 00 62 13 94 66 B6 85 93 66 B1 [18:05:19]GetLastDocTimeStamp 1720980286 [18:05:19]current date 1720980322 [18:05:19]FM_GetShiftState [18:05:19]SAM_PROTO_GetShiftState [18:05:19]wFMCommunicate request_size=4 [18:05:19]MH_SAM_APDU [18:05:19]CAPDU: 80 13 01 00 [18:05:19]Write to MH i2c: E2 08 00 E3 34 80 13 01 00 00 00 00 00 94 [18:05:19]Write i2c OK [18:05:19]MH_I2C_Read... [18:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:19]Read from MH i2c: E2 [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: E2 0E 00 [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: E2 0E 00 E3 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 CA [18:05:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:05:19]wFMCommunicate OK [18:05:19]SAM_PROTO_GetShiftState done [18:05:19]FM_GetShiftState done [18:05:19]opened in 1720915483 [18:05:19]opened+sec_in_day 1721001883 [18:05:19]quantity*price = 189050 [18:05:19]sum+1 = 189051 [18:05:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1890.00 Внесено: 1890.00 СДАЧА: 0.00 НСП 1% : 16.73 НДС 12% : 200.76 Наличными: 1890.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 221 14.07.2024 18:05 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162909 ФПД: 4319475706845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180522&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162909&fm=4319475706845&tin=02508201610067®Number=0000000000090858&sum=189000 [18:05:21]StoreToDocumentArchive [18:05:21]shift 463 fd 162909 [18:05:21]save to /storage/0463/doc_00162909 [18:05:21]save last doc name /storage/0463/doc_00162909 to /storage/kkm_last_doc_name [18:05:21]save OK [18:05:21]Clear old archive folders... [18:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:05:21]tlvbuf is 01387B20 [18:05:21]SAM_PROTO_ClearQueue [18:05:21]wFMCommunicate request_size=4 [18:05:21]MH_SAM_APDU [18:05:21]CAPDU: 80 09 00 00 [18:05:21]Write to MH i2c: E2 08 00 F0 34 80 09 00 00 00 00 00 00 96 [18:05:21]Write i2c OK [18:05:21]MH_I2C_Read... [18:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:21]Read from MH i2c: E2 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 03 00 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 03 00 F0 34 00 90 00 98 [18:05:21]RAPDU: 90 00 [18:05:21]wFMCommunicate OK [18:05:21]SAM_PROTO_ClearQueue done [18:05:21]KKMCreateOFDPacket [18:05:21]OFDProtocolAddRootSTLVToBuf [18:05:21]FM_MakeSignedData [18:05:21]FM_MakeSignedData [18:05:21]SAM_PROTO_SignData [18:05:21]wFMCommunicate request_size=4 [18:05:21]MH_SAM_APDU [18:05:21]CAPDU: 80 0D 01 02 [18:05:21]Write to MH i2c: E2 08 00 F1 34 80 0D 01 02 00 00 00 00 9E [18:05:21]Write i2c OK [18:05:21]MH_I2C_Read... [18:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:21]Read from MH i2c: E2 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 03 00 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 03 00 F1 34 00 90 00 99 [18:05:21]RAPDU: 90 00 [18:05:21]wFMCommunicate OK [18:05:21]wFMCommunicate request_size=255 [18:05:21]MH_SAM_APDU [18:05:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 65 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7A E2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 4E 00 00 00 00 07 04 06 00 48 E2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 62 13 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7C 02 00 35 04 06 00 [18:05:21]Write to MH i2c: E2 02 01 F2 34 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 65 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7A E2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 4E 00 00 00 00 07 04 06 00 48 E2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 62 13 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7C 02 00 35 04 06 00 00 00 80 [18:05:21]Write i2c OK [18:05:21]MH_I2C_Read... [18:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:21]Read from MH i2c: E2 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 03 00 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 03 00 F2 34 00 90 00 9A [18:05:21]RAPDU: 90 00 [18:05:21]wFMCommunicate OK [18:05:21]wFMCommunicate request_size=11 [18:05:21]MH_SAM_APDU [18:05:21]CAPDU: 80 0D 02 02 06 03 ED B4 D0 AB DD [18:05:21]Write to MH i2c: E2 0E 00 F3 34 80 0D 02 02 06 00 03 ED B4 D0 AB DD 00 00 A9 [18:05:21]Write i2c OK [18:05:21]MH_I2C_Read... [18:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:21]Read from MH i2c: E2 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 03 00 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 03 00 F3 34 00 90 00 9B [18:05:21]RAPDU: 90 00 [18:05:21]wFMCommunicate OK [18:05:21]wFMCommunicate request_size=4 [18:05:21]MH_SAM_APDU [18:05:21]CAPDU: 80 0D 03 02 [18:05:21]Write to MH i2c: E2 08 00 F4 34 80 0D 03 02 00 00 00 00 A3 [18:05:21]Write i2c OK [18:05:21]MH_I2C_Read... [18:05:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:21]Read from MH i2c: E2 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 0B 00 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 0B 00 F4 34 00 44 24 55 9F 3E E1 F0 C0 90 00 CF [18:05:21]RAPDU: 44 24 55 9F 3E E1 F0 C0 90 00 [18:05:21]wFMCommunicate OK [18:05:21]SAM_PROTO_SignData done [18:05:21]FM_MakeSignedData done [18:05:21]CreateOFDProtocolMessage [18:05:21]wFMCommunicate request_size=4 [18:05:21]MH_SAM_APDU [18:05:21]CAPDU: 80 11 00 00 [18:05:21]Write to MH i2c: E2 08 00 F5 34 80 11 00 00 00 00 00 00 A3 [18:05:21]Write i2c OK [18:05:21]MH_I2C_Read... [18:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:21]Read from MH i2c: E2 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 17 00 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: E2 17 00 F5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 03 [18:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:05:21]wFMCommunicate OK [18:05:21]CreateOFDProtocolMessage done [18:05:21]OFDSenderStorePacket 162909 [18:05:21]StoreOFDPacket docnum=162909 [18:05:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 13 DB 08 01 47 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 65 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7A E2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 4E 00 00 00 00 07 04 06 00 48 E2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 62 13 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7C 02 00 35 04 06 00 03 ED B4 D0 AB DD 44 24 55 9F 3E E1 F0 C0 [18:05:21]CheckFolder [18:05:21]dirname=/storage/ofd_packets [18:05:21]CheckFolder done [18:05:21]ProducePacketName [18:05:21]name=ofd_packets/00162909 [18:05:21]NVStorageSaveData ofd_packets/00162909 [18:05:21]File name is /storage/ofd_packets/00162909 [18:05:21]Write 302 bytes [18:05:21]NVStorageSaveData done [18:05:21]OFDSenderStorePacket done [18:05:21]KKMCreateOFDPacket done [18:05:21]NVStorageSaveData kkm_last_timestamp [18:05:21]File name is /storage/kkm_last_timestamp [18:05:21]Write 4 bytes [18:05:21]NVStorageSaveData done [18:05:21]ExternCall_PrintAddStr [18:05:21]wPrintStart [18:05:21]Write to MH i2c: 01 00 00 F6 34 2A [18:05:21]Write i2c OK [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: 01 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: 01 07 00 [18:05:21]MH_I2C_Read... [18:05:21]Read from MH i2c: 01 07 00 F6 34 00 00 00 00 00 FF 0F 3F [18:05:21]RasterBufferAndPrint [18:05:21]line Счет N : (1)1319516 [18:05:21]line ИНН: 02508201610067 [18:05:21]line Контрольно-Кассовый Чек [18:05:21]line ПРОДАЖА [18:05:21]line ТРК (МРК, ГНК) : 11 [18:05:21]line Товар: 2710194210 [18:05:21]line ДТ(л)-К-5 [18:05:21]line 26.040 * 72.60 [18:05:21]line = 1890.50 [18:05:21]line НДС 12% НСП 1% [18:05:21]line > о реализуемом товаре [18:05:21]line ОКРУГЛЕНИЕ: -0.50 [18:05:21]line ИТОГО: 1890.00 [18:05:21]line Внесено: 1890.00 [18:05:21]line СДАЧА: 0.00 [18:05:21]line НСП 1% : 16.73 [18:05:21]line НДС 12% : 200.76 [18:05:21]line Наличными: 1890.00 [18:05:21]line Безнал.: 0.00 [18:05:21]line Место: АЗС № 140 "Партнер Нефть" [18:05:21]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:05:21]line СНО: Общий режим [18:05:21]line Чек 221 14.07.2024 18:05 [18:05:21]line Смена: 463 ФФД: 1.0 [18:05:21]line ЗНМ: 0300000129 [18:05:21]line РНМ: 0000000000090858 [18:05:21]line Версия ККМ: 001 [18:05:21]line ФМ: 0000000000874899 [18:05:21]line ФД: 162909 [18:05:21]line ФПД: 4319475706845 [18:05:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180522&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162909&fm=4319475706845&tin=02508201610067®Number=0000000000090858&sum=189000 [18:05:21]OFD Sender: Processing packet 162909 [packets to send 106, broken 105] [18:05:21]ProducePacketName [18:05:21]name=ofd_packets/00162909 [18:05:21]OFD Sender: To server: pG, [18:05:21]CommunicateWithHost lk.salyk.kg:30040 [18:05:21]ConnectInit lk.salyk.kg [18:05:21]written 0, free lines is 4095 [18:05:22]Connected sock=10 [18:05:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 13 DB 08 01 47 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 65 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7A E2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 4E 00 00 00 00 07 04 06 00 48 E2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 62 13 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7C 02 00 35 04 06 00 03 ED B4 D0 AB DD 44 24 55 9F 3E E1 F0 C0 [18:05:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 94 0B 47 00 D6 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 34 38 39 39 10 04 04 00 5D 7C 02 00 F4 03 04 00 6F BF 93 66 B6 04 01 00 00 32 46 87 3E 68 03 56 71 [18:05:22]CommunicateWithHost err = 0 [18:05:22]CheckOFDResponse [18:05:22]1017 (14) - 77093643461234 [18:05:22]1041 (16) - 0000000000874899 [18:05:22]1040 (4) - 162909 [18:05:22]1012 (4) - 14.07.2024 12:07 [18:05:22]1206 (1) - 0 [18:05:22]OFD Sender: Remove packet 162909 [18:05:22]ProducePacketName [18:05:22]name=ofd_packets/00162909 [18:05:22]NVStorageDeleteData [18:05:22]Write to MH i2c: 01 00 00 21 35 56 [18:05:22]Write i2c OK [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: 01 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: 01 07 00 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: 01 07 00 21 35 00 00 00 00 00 DA 0C 43 [18:05:22]RasterBufferAndPrint [18:05:22]line [18:05:22]line [18:05:22]line [18:05:22]line [18:05:22]line [18:05:22]written 0, free lines is 3299 [18:05:22]MH_Cut [18:05:22]Write to MH i2c: D1 01 00 28 35 01 2F [18:05:22]Write i2c OK [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: D1 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: D1 01 00 [18:05:22]MH_I2C_Read... [18:05:22]Read from MH i2c: D1 01 00 28 35 00 2E [18:05:22]Write to MH i2c: 01 00 00 29 35 5E [18:05:22]Write i2c OK [18:05:22]MH_I2C_Read... [18:05:22]OFD Sender: No OFD packet to send [18:05:23]*** Cut start [18:05:23]*** Purtial cut [18:05:23]*** Stage 1: CUTSNS_PIN = 1 [18:05:23]Read from MH i2c: 01 [18:05:23]MH_I2C_Read... [18:05:23]*** Stop cut motor [18:05:23]*** Cut end [18:05:23]Read from MH i2c: 01 07 00 [18:05:23]MH_I2C_Read... [18:05:23]Read from MH i2c: 01 07 00 29 35 00 00 00 00 00 FF 0F 73 [18:05:23]process_action close_receipt done [18:05:23]requested_data is exist [18:05:23]produce_requested_data [18:05:23]requested_item fm.sn is exist - process it [18:05:23]wFMCommunicate request_size=4 [18:05:23]MH_SAM_APDU [18:05:23]CAPDU: 80 11 00 00 [18:05:23]Write to MH i2c: E2 08 00 2A 35 80 11 00 00 00 00 00 00 D9 [18:05:23]Write i2c OK [18:05:23]MH_I2C_Read... [18:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:23]Read from MH i2c: E2 [18:05:23]MH_I2C_Read... [18:05:23]Read from MH i2c: E2 17 00 [18:05:23]MH_I2C_Read... [18:05:23]Read from MH i2c: E2 17 00 2A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 39 [18:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:05:23]wFMCommunicate OK [18:05:23]requested_item fd.num is exist - process it [18:05:23]SAM_PROTO_GetFieldsCounters [18:05:23]wFMCommunicate request_size=4 [18:05:23]MH_SAM_APDU [18:05:23]CAPDU: 80 13 00 00 [18:05:23]Write to MH i2c: E2 08 00 2B 35 80 13 00 00 00 00 00 00 DC [18:05:23]Write i2c OK [18:05:23]MH_I2C_Read... [18:05:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:23]Read from MH i2c: E2 [18:05:23]MH_I2C_Read... [18:05:23]Read from MH i2c: E2 62 00 [18:05:23]MH_I2C_Read... [18:05:23]Read from MH i2c: E2 62 00 2B 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5D 7C 02 00 0E 04 04 00 CF 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 51 [18:05:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5D 7C 02 00 0E 04 04 00 CF 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 [18:05:23]wFMCommunicate OK [18:05:23]SAM_PROTO_GetFieldsCounters done [18:05:23]requested_item shift.num is exist - process it [18:05:23]requested_item shift.opened is exist - process it [18:05:23]req_shift_opened [18:05:23]FM_GetShiftState [18:05:23]SAM_PROTO_GetShiftState [18:05:23]wFMCommunicate request_size=4 [18:05:23]MH_SAM_APDU [18:05:23]CAPDU: 80 13 01 00 [18:05:23]Write to MH i2c: E2 08 00 2C 35 80 13 01 00 00 00 00 00 DE [18:05:23]Write i2c OK [18:05:23]MH_I2C_Read... [18:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:23]Read from MH i2c: E2 [18:05:23]MH_I2C_Read... [18:05:23]Read from MH i2c: E2 0E 00 [18:05:23]MH_I2C_Read... [18:05:23]Read from MH i2c: E2 0E 00 2C 35 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 14 [18:05:23]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:05:23]wFMCommunicate OK [18:05:23]SAM_PROTO_GetShiftState done [18:05:23]FM_GetShiftState done [18:05:23]req_shift_opened done [18:05:23]requested_item shift.open_date is exist - process it [18:05:23]req_shift_open_date [18:05:23]req_shift_open_date done [18:05:23]produce_requested_data done [18:05:23]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162909,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [18:05:23]process_action_free close_receipt [18:05:23]json_value_free [18:05:23]json_value_free done [18:05:23]process_json_proto returns [18:05:23]Send response to host [18:05:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162909,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [18:05:23]free response buf [18:05:23]execute_script done [18:05:23]execute_script returns [18:05:23]free content buf [18:05:23]Sock 7.Close socket [18:05:23]Sock 7.Thread stoped [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]accept exits with 9 [18:08:17]New connection [18:08:17]New thread 3066879332 created [18:08:17]Thread 3066735972 joined [18:08:17]Waiting for new connection... [18:08:17] Sock 9.Parse request [18:08:17]Sock 9.Check first char [18:08:17]Sock 9.First char is OK [18:08:17]request: POST /json_proto HTTP/1.0 [18:08:17]Method: POST [18:08:17]URL: /json_proto [18:08:17]Method is POST - this is cgi request [18:08:17]url: /json_proto [18:08:17]query_string will be loaded in cgi processing [18:08:17]execute_cgi json_proto POST (null) [18:08:17]execute_cgi path=json_proto method=POST [18:08:17]POST find Content-Length [18:08:17]Host: 172.17.39.67:8080 [18:08:17]Content-Length: 809 [18:08:17]Content-Type: application/json [18:08:17] [18:08:17]POST finish read [18:08:17]Found Content-Length = 809 [18:08:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 82.650, "sum" : 6000.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" : 6000.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:17]execute_script... [18:08: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)1319520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 82.650, "sum" : 6000.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" : 6000.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:17]POST & json_proto [18:08:17]process_json_proto [18:08:17]json parsed OK: [18:08:17]protocol is kg_v1.0 [18:08:17]action value=close_receipt [18:08:17]process_action close_receipt [18:08:17]cmd_close_receipt [18:08:17]MH_GetDate [18:08:17]Write to MH i2c: F0 00 00 2D 35 51 [18:08:17]Write i2c OK [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: F0 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: F0 09 00 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: F0 09 00 2D 35 00 13 14 94 66 B6 85 93 66 AF [18:08:17]GetLastDocTimeStamp 1720980322 [18:08:17]current date 1720980499 [18:08:17]FM_GetShiftState [18:08:17]SAM_PROTO_GetShiftState [18:08:17]wFMCommunicate request_size=4 [18:08:17]MH_SAM_APDU [18:08:17]CAPDU: 80 13 01 00 [18:08:17]Write to MH i2c: E2 08 00 2E 35 80 13 01 00 00 00 00 00 E0 [18:08:17]Write i2c OK [18:08:17]MH_I2C_Read... [18:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:17]Read from MH i2c: E2 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: E2 0E 00 [18:08:17]MH_I2C_Read... [18:08:17]Read from MH i2c: E2 0E 00 2E 35 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 16 [18:08:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:08:17]wFMCommunicate OK [18:08:17]SAM_PROTO_GetShiftState done [18:08:17]FM_GetShiftState done [18:08:17]opened in 1720915483 [18:08:17]opened+sec_in_day 1721001883 [18:08:17]quantity*price = 600039 [18:08:17]sum+1 = 600040 [18:08:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6000.39 НСП 1% : 53.10 НДС 12% : 637.21 Наличными: 0.00 Безнал.: 6000.39 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 222 14.07.2024 18:08 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162910 ФПД: 46665129375790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180819&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162910&fm=46665129375790&tin=02508201610067®Number=0000000000090858&sum=600039 [18:08:18]StoreToDocumentArchive [18:08:18]shift 463 fd 162910 [18:08:18]save to /storage/0463/doc_00162910 [18:08:18]save last doc name /storage/0463/doc_00162910 to /storage/kkm_last_doc_name [18:08:18]save OK [18:08:18]Clear old archive folders... [18:08:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:08:18]tlvbuf is 012E7170 [18:08:18]SAM_PROTO_ClearQueue [18:08:18]wFMCommunicate request_size=4 [18:08:18]MH_SAM_APDU [18:08:18]CAPDU: 80 09 00 00 [18:08:18]Write to MH i2c: E2 08 00 3B 35 80 09 00 00 00 00 00 00 E2 [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:18]Read from MH i2c: E2 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 3B 35 00 90 00 E4 [18:08:18]RAPDU: 90 00 [18:08:18]wFMCommunicate OK [18:08:18]SAM_PROTO_ClearQueue done [18:08:18]KKMCreateOFDPacket [18:08:18]OFDProtocolAddRootSTLVToBuf [18:08:18]FM_MakeSignedData [18:08:18]FM_MakeSignedData [18:08:18]SAM_PROTO_SignData [18:08:18]wFMCommunicate request_size=4 [18:08:18]MH_SAM_APDU [18:08:18]CAPDU: 80 0D 01 02 [18:08:18]Write to MH i2c: E2 08 00 3C 35 80 0D 01 02 00 00 00 00 EA [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:18]Read from MH i2c: E2 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 3C 35 00 90 00 E5 [18:08:18]RAPDU: 90 00 [18:08:18]wFMCommunicate OK [18:08:18]wFMCommunicate request_size=255 [18:08:18]MH_SAM_APDU [18:08:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DA 42 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 13 14 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7C 02 00 35 04 06 00 [18:08:18]Write to MH i2c: E2 02 01 3D 35 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DA 42 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 13 14 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7C 02 00 35 04 06 00 00 00 79 [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:18]Read from MH i2c: E2 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 3D 35 00 90 00 E6 [18:08:18]RAPDU: 90 00 [18:08:18]wFMCommunicate OK [18:08:18]wFMCommunicate request_size=11 [18:08:18]MH_SAM_APDU [18:08:18]CAPDU: 80 0D 02 02 06 2A 71 12 75 B8 2E [18:08:18]Write to MH i2c: E2 0E 00 3E 35 80 0D 02 02 06 00 2A 71 12 75 B8 2E 00 00 01 [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:18]Read from MH i2c: E2 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 03 00 3E 35 00 90 00 E7 [18:08:18]RAPDU: 90 00 [18:08:18]wFMCommunicate OK [18:08:18]wFMCommunicate request_size=4 [18:08:18]MH_SAM_APDU [18:08:18]CAPDU: 80 0D 03 02 [18:08:18]Write to MH i2c: E2 08 00 3F 35 80 0D 03 02 00 00 00 00 EF [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:18]Read from MH i2c: E2 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 0B 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 0B 00 3F 35 00 65 A9 CE 47 39 E9 A1 00 90 00 D6 [18:08:18]RAPDU: 65 A9 CE 47 39 E9 A1 00 90 00 [18:08:18]wFMCommunicate OK [18:08:18]SAM_PROTO_SignData done [18:08:18]FM_MakeSignedData done [18:08:18]CreateOFDProtocolMessage [18:08:18]wFMCommunicate request_size=4 [18:08:18]MH_SAM_APDU [18:08:18]CAPDU: 80 11 00 00 [18:08:18]Write to MH i2c: E2 08 00 40 35 80 11 00 00 00 00 00 00 EF [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:18]Read from MH i2c: E2 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 17 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: E2 17 00 40 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4F [18:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:08:18]wFMCommunicate OK [18:08:18]CreateOFDProtocolMessage done [18:08:18]OFDSenderStorePacket 162910 [18:08:18]StoreOFDPacket docnum=162910 [18:08:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 00 08 08 01 0F 89 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DA 42 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 13 14 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7C 02 00 35 04 06 00 2A 71 12 75 B8 2E 65 A9 CE 47 39 E9 A1 00 [18:08:18]CheckFolder [18:08:18]dirname=/storage/ofd_packets [18:08:18]CheckFolder done [18:08:18]ProducePacketName [18:08:18]name=ofd_packets/00162910 [18:08:18]NVStorageSaveData ofd_packets/00162910 [18:08:18]File name is /storage/ofd_packets/00162910 [18:08:18]Write 302 bytes [18:08:18]NVStorageSaveData done [18:08:18]OFDSenderStorePacket done [18:08:18]KKMCreateOFDPacket done [18:08:18]NVStorageSaveData kkm_last_timestamp [18:08:18]File name is /storage/kkm_last_timestamp [18:08:18]Write 4 bytes [18:08:18]NVStorageSaveData done [18:08:18]ExternCall_PrintAddStr [18:08:18]wPrintStart [18:08:18]Write to MH i2c: 01 00 00 41 35 76 [18:08:18]Write i2c OK [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: 01 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: 01 07 00 [18:08:18]MH_I2C_Read... [18:08:18]Read from MH i2c: 01 07 00 41 35 00 00 00 00 00 FF 0F 8B [18:08:18]RasterBufferAndPrint [18:08:18]line Счет N : (1)1319520 [18:08:18]line ИНН: 02508201610067 [18:08:18]line Контрольно-Кассовый Чек [18:08:18]line ПРОДАЖА [18:08:18]line ТРК (МРК, ГНК) : 61 [18:08:18]line Товар: 2710194210 [18:08:18]line ДТ(л)-К-5 [18:08:18]line 82.650 * 72.60 [18:08:18]line = 6000.39 [18:08:18]line НДС 12% НСП 1% [18:08:18]line > о реализуемом товаре [18:08:18]line ИТОГО: 6000.39 [18:08:18]line НСП 1% : 53.10 [18:08:18]line НДС 12% : 637.21 [18:08:18]line Наличными: 0.00 [18:08:18]line Безнал.: 6000.39 [18:08:18]line Место: АЗС № 140 "Партнер Нефть" [18:08:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:08:18]line СНО: Общий режим [18:08:18]line Чек 222 14.07.2024 18:08 [18:08:18]line Смена: 463 ФФД: 1.0 [18:08:18]line ЗНМ: 0300000129 [18:08:18]line РНМ: 0000000000090858 [18:08:18]line Версия ККМ: 001 [18:08:18]line Платежная система: O! деньги [18:08:18]line ФМ: 0000000000874899 [18:08:18]line ФД: 162910 [18:08:18]line ФПД: 46665129375790 [18:08:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T180819&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162910&fm=46665129375790&tin=02508201610067®Number=0000000000090858&sum=600039 [18:08:19]OFD Sender: Processing packet 162910 [packets to send 106, broken 105] [18:08:19]ProducePacketName [18:08:19]name=ofd_packets/00162910 [18:08:19]OFD Sender: To server: pG, [18:08:19]CommunicateWithHost lk.salyk.kg:30040 [18:08:19]ConnectInit lk.salyk.kg [18:08:19]written 0, free lines is 4095 [18:08:19]Connected sock=10 [18:08:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 00 08 08 01 0F 89 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DA 42 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E7 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 13 14 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7C 02 00 35 04 06 00 2A 71 12 75 B8 2E 65 A9 CE 47 39 E9 A1 00 [18:08:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F4 02 47 00 6C 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7C 02 00 F4 03 04 00 20 C0 93 66 B6 04 01 00 00 15 BA 67 99 63 E6 26 82 [18:08:19]CommunicateWithHost err = 0 [18:08:19]CheckOFDResponse [18:08:19]1017 (14) - 77093643461234 [18:08:19]1041 (16) - 0000000000874899 [18:08:19]1040 (4) - 162910 [18:08:19]1012 (4) - 14.07.2024 12:10 [18:08:19]1206 (1) - 0 [18:08:19]OFD Sender: Remove packet 162910 [18:08:19]ProducePacketName [18:08:19]name=ofd_packets/00162910 [18:08:19]NVStorageDeleteData [18:08:19]Write to MH i2c: 01 00 00 6B 35 A0 [18:08:19]Write i2c OK [18:08:19]MH_I2C_Read... [18:08:19]Read from MH i2c: 01 [18:08:19]MH_I2C_Read... [18:08:19]Read from MH i2c: 01 07 00 [18:08:19]MH_I2C_Read... [18:08:19]Read from MH i2c: 01 07 00 6B 35 00 00 00 00 00 F8 0C AB [18:08:19]RasterBufferAndPrint [18:08:19]line [18:08:19]line [18:08:19]line [18:08:19]line [18:08:19]line [18:08:19]written 0, free lines is 3327 [18:08:19]MH_Cut [18:08:19]Write to MH i2c: D1 01 00 72 35 01 79 [18:08:19]Write i2c OK [18:08:19]MH_I2C_Read... [18:08:19]Read from MH i2c: D1 [18:08:19]MH_I2C_Read... [18:08:19]Read from MH i2c: D1 01 00 [18:08:19]MH_I2C_Read... [18:08:19]Read from MH i2c: D1 01 00 72 35 00 78 [18:08:19]Write to MH i2c: 01 00 00 73 35 A8 [18:08:19]Write i2c OK [18:08:19]MH_I2C_Read... [18:08:20]OFD Sender: No OFD packet to send [18:08:20]*** Cut start [18:08:20]*** Purtial cut [18:08:20]*** CUTSNS_PIN = 0 [18:08:20]*** Stage 1: CUTSNS_PIN = 1 [18:08:22]Read from MH i2c: 01 [18:08:22]MH_I2C_Read... [18:08:22]*** Stop cut motor [18:08:22]*** Cut end [18:08:22]Read from MH i2c: 01 07 00 [18:08:22]MH_I2C_Read... [18:08:22]Read from MH i2c: 01 07 00 73 35 00 00 00 00 00 FF 0F BD [18:08:22]process_action close_receipt done [18:08:22]requested_data is exist [18:08:22]produce_requested_data [18:08:22]requested_item fm.sn is exist - process it [18:08:22]wFMCommunicate request_size=4 [18:08:22]MH_SAM_APDU [18:08:22]CAPDU: 80 11 00 00 [18:08:22]Write to MH i2c: E2 08 00 74 35 80 11 00 00 00 00 00 00 23 [18:08:22]Write i2c OK [18:08:22]MH_I2C_Read... [18:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:22]Read from MH i2c: E2 [18:08:22]MH_I2C_Read... [18:08:22]Read from MH i2c: E2 17 00 [18:08:22]MH_I2C_Read... [18:08:22]Read from MH i2c: E2 17 00 74 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 83 [18:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:08:22]wFMCommunicate OK [18:08:22]requested_item fd.num is exist - process it [18:08:22]SAM_PROTO_GetFieldsCounters [18:08:22]wFMCommunicate request_size=4 [18:08:22]MH_SAM_APDU [18:08:22]CAPDU: 80 13 00 00 [18:08:22]Write to MH i2c: E2 08 00 75 35 80 13 00 00 00 00 00 00 26 [18:08:22]Write i2c OK [18:08:22]MH_I2C_Read... [18:08:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:22]Read from MH i2c: E2 [18:08:22]MH_I2C_Read... [18:08:22]Read from MH i2c: E2 62 00 [18:08:22]MH_I2C_Read... [18:08:22]Read from MH i2c: E2 62 00 75 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5E 7C 02 00 0E 04 04 00 CF 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 9F [18:08:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5E 7C 02 00 0E 04 04 00 CF 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 [18:08:22]wFMCommunicate OK [18:08:22]SAM_PROTO_GetFieldsCounters done [18:08:22]requested_item shift.num is exist - process it [18:08:22]requested_item shift.opened is exist - process it [18:08:22]req_shift_opened [18:08:22]FM_GetShiftState [18:08:22]SAM_PROTO_GetShiftState [18:08:22]wFMCommunicate request_size=4 [18:08:22]MH_SAM_APDU [18:08:22]CAPDU: 80 13 01 00 [18:08:22]Write to MH i2c: E2 08 00 76 35 80 13 01 00 00 00 00 00 28 [18:08:22]Write i2c OK [18:08:22]MH_I2C_Read... [18:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:22]Read from MH i2c: E2 [18:08:22]MH_I2C_Read... [18:08:22]Read from MH i2c: E2 0E 00 [18:08:22]MH_I2C_Read... [18:08:22]Read from MH i2c: E2 0E 00 76 35 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5E [18:08:22]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:08:22]wFMCommunicate OK [18:08:22]SAM_PROTO_GetShiftState done [18:08:22]FM_GetShiftState done [18:08:22]req_shift_opened done [18:08:22]requested_item shift.open_date is exist - process it [18:08:22]req_shift_open_date [18:08:22]req_shift_open_date done [18:08:22]produce_requested_data done [18:08:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162910,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [18:08:22]process_action_free close_receipt [18:08:22]json_value_free [18:08:22]json_value_free done [18:08:22]process_json_proto returns [18:08:22]Send response to host [18:08:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162910,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [18:08:22]free response buf [18:08:22]execute_script done [18:08:22]execute_script returns [18:08:22]free content buf [18:08:22]Sock 9.Close socket [18:08:22]Sock 9.Thread stoped [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:14]accept exits with 7 [18:10:14]New connection [18:10:14]New thread 3066735972 created [18:10:14]Thread 3066879332 joined [18:10:14]Waiting for new connection... [18:10:14] Sock 7.Parse request [18:10:14]Sock 7.Check first char [18:10:14]Sock 7.First char is OK [18:10:14]request: POST /json_proto HTTP/1.0 [18:10:14]Method: POST [18:10:14]URL: /json_proto [18:10:14]Method is POST - this is cgi request [18:10:14]url: /json_proto [18:10:14]query_string will be loaded in cgi processing [18:10:14]execute_cgi json_proto POST (null) [18:10:14]execute_cgi path=json_proto method=POST [18:10:14]POST find Content-Length [18:10:14]Host: 172.17.39.67:8080 [18:10:14]Content-Length: 679 [18:10:14]Content-Type: application/json [18:10:14] [18:10:14]POST finish read [18:10:14]Found Content-Length = 679 [18:10:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:14]execute_script... [18:10: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)1319522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:14]POST & json_proto [18:10:14]process_json_proto [18:10:14]json parsed OK: [18:10:14]protocol is kg_v1.0 [18:10:14]action value=close_receipt [18:10:14]process_action close_receipt [18:10:14]cmd_close_receipt [18:10:14]MH_GetDate [18:10:14]Write to MH i2c: F0 00 00 77 35 9B [18:10:14]Write i2c OK [18:10:14]MH_I2C_Read... [18:10:14]Read from MH i2c: F0 [18:10:14]MH_I2C_Read... [18:10:14]Read from MH i2c: F0 09 00 [18:10:14]MH_I2C_Read... [18:10:14]Read from MH i2c: F0 09 00 77 35 00 89 14 94 66 B6 85 93 66 6F [18:10:14]GetLastDocTimeStamp 1720980499 [18:10:14]current date 1720980617 [18:10:14]FM_GetShiftState [18:10:14]SAM_PROTO_GetShiftState [18:10:14]wFMCommunicate request_size=4 [18:10:14]MH_SAM_APDU [18:10:14]CAPDU: 80 13 01 00 [18:10:14]Write to MH i2c: E2 08 00 78 35 80 13 01 00 00 00 00 00 2A [18:10:14]Write i2c OK [18:10:14]MH_I2C_Read... [18:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:15]Read from MH i2c: E2 [18:10:15]MH_I2C_Read... [18:10:15]Read from MH i2c: E2 0E 00 [18:10:15]MH_I2C_Read... [18:10:15]Read from MH i2c: E2 0E 00 78 35 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 60 [18:10:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:10:15]wFMCommunicate OK [18:10:15]SAM_PROTO_GetShiftState done [18:10:15]FM_GetShiftState done [18:10:15]opened in 1720915483 [18:10:15]opened+sec_in_day 1721001883 [18:10:15]quantity*price = 67029 [18:10:15]sum+1 = 67030 [18:10:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.18 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 223 14.07.2024 18:10 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162911 ФПД: 6217006794905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T181017&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162911&fm=6217006794905&tin=02508201610067®Number=0000000000090858&sum=67000 [18:10:16]StoreToDocumentArchive [18:10:16]shift 463 fd 162911 [18:10:16]save to /storage/0463/doc_00162911 [18:10:16]save last doc name /storage/0463/doc_00162911 to /storage/kkm_last_doc_name [18:10:16]save OK [18:10:16]Clear old archive folders... [18:10:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:16]tlvbuf is B6F46480 [18:10:16]SAM_PROTO_ClearQueue [18:10:16]wFMCommunicate request_size=4 [18:10:16]MH_SAM_APDU [18:10:16]CAPDU: 80 09 00 00 [18:10:16]Write to MH i2c: E2 08 00 85 35 80 09 00 00 00 00 00 00 2C [18:10:16]Write i2c OK [18:10:16]MH_I2C_Read... [18:10:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:16]Read from MH i2c: E2 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 03 00 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 03 00 85 35 00 90 00 2E [18:10:16]RAPDU: 90 00 [18:10:16]wFMCommunicate OK [18:10:16]SAM_PROTO_ClearQueue done [18:10:16]KKMCreateOFDPacket [18:10:16]OFDProtocolAddRootSTLVToBuf [18:10:16]FM_MakeSignedData [18:10:16]FM_MakeSignedData [18:10:16]SAM_PROTO_SignData [18:10:16]wFMCommunicate request_size=4 [18:10:16]MH_SAM_APDU [18:10:16]CAPDU: 80 0D 01 02 [18:10:16]Write to MH i2c: E2 08 00 86 35 80 0D 01 02 00 00 00 00 34 [18:10:16]Write i2c OK [18:10:16]MH_I2C_Read... [18:10:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:16]Read from MH i2c: E2 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 03 00 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 03 00 86 35 00 90 00 2F [18:10:16]RAPDU: 90 00 [18:10:16]wFMCommunicate OK [18:10:16]wFMCommunicate request_size=255 [18:10:16]MH_SAM_APDU [18:10: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 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 89 14 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7C 02 00 35 04 06 00 05 [18:10:16]Write to MH i2c: E2 02 01 87 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 89 14 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7C 02 00 35 04 06 00 05 00 00 AF [18:10:16]Write i2c OK [18:10:16]MH_I2C_Read... [18:10:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:16]Read from MH i2c: E2 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 03 00 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 03 00 87 35 00 90 00 30 [18:10:16]RAPDU: 90 00 [18:10:16]wFMCommunicate OK [18:10:16]wFMCommunicate request_size=10 [18:10:16]MH_SAM_APDU [18:10:16]CAPDU: 80 0D 02 02 05 A7 82 7B 48 99 [18:10:16]Write to MH i2c: E2 0D 00 88 35 80 0D 02 02 05 00 A7 82 7B 48 99 00 00 C6 [18:10:16]Write i2c OK [18:10:16]MH_I2C_Read... [18:10:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:16]Read from MH i2c: E2 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 03 00 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 03 00 88 35 00 90 00 31 [18:10:16]RAPDU: 90 00 [18:10:16]wFMCommunicate OK [18:10:16]wFMCommunicate request_size=4 [18:10:16]MH_SAM_APDU [18:10:16]CAPDU: 80 0D 03 02 [18:10:16]Write to MH i2c: E2 08 00 89 35 80 0D 03 02 00 00 00 00 39 [18:10:16]Write i2c OK [18:10:16]MH_I2C_Read... [18:10:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:16]Read from MH i2c: E2 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 0B 00 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 0B 00 89 35 00 53 DE 99 43 8D 91 97 54 90 00 50 [18:10:16]RAPDU: 53 DE 99 43 8D 91 97 54 90 00 [18:10:16]wFMCommunicate OK [18:10:16]SAM_PROTO_SignData done [18:10:16]FM_MakeSignedData done [18:10:16]CreateOFDProtocolMessage [18:10:16]wFMCommunicate request_size=4 [18:10:16]MH_SAM_APDU [18:10:16]CAPDU: 80 11 00 00 [18:10:16]Write to MH i2c: E2 08 00 8A 35 80 11 00 00 00 00 00 00 39 [18:10:16]Write i2c OK [18:10:16]MH_I2C_Read... [18:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:16]Read from MH i2c: E2 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 17 00 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 17 00 8A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 99 [18:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:10:16]wFMCommunicate OK [18:10:16]CreateOFDProtocolMessage done [18:10:16]OFDSenderStorePacket 162911 [18:10:16]StoreOFDPacket docnum=162911 [18:10:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E7 C5 07 01 57 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 89 14 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7C 02 00 35 04 06 00 05 A7 82 7B 48 99 53 DE 99 43 8D 91 97 54 [18:10:16]CheckFolder [18:10:16]dirname=/storage/ofd_packets [18:10:16]CheckFolder done [18:10:16]ProducePacketName [18:10:16]name=ofd_packets/00162911 [18:10:16]NVStorageSaveData ofd_packets/00162911 [18:10:16]File name is /storage/ofd_packets/00162911 [18:10:16]Write 301 bytes [18:10:16]NVStorageSaveData done [18:10:16]OFDSenderStorePacket done [18:10:16]KKMCreateOFDPacket done [18:10:16]NVStorageSaveData kkm_last_timestamp [18:10:16]File name is /storage/kkm_last_timestamp [18:10:16]Write 4 bytes [18:10:16]NVStorageSaveData done [18:10:16]ExternCall_PrintAddStr [18:10:16]wPrintStart [18:10:16]Write to MH i2c: 01 00 00 8B 35 C0 [18:10:16]Write i2c OK [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: 01 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: 01 07 00 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: 01 07 00 8B 35 00 00 00 00 00 FF 0F D5 [18:10:16]RasterBufferAndPrint [18:10:16]line Счет N : (1)1319522 [18:10:16]line ИНН: 02508201610067 [18:10:16]line Контрольно-Кассовый Чек [18:10:16]line ПРОДАЖА [18:10:16]line ТРК (МРК, ГНК) : 53 [18:10:16]line Товар: 2710124130 [18:10:16]line Аи-92-К-5 [18:10:16]line 10.110 * 66.30 [18:10:16]line = 670.29 [18:10:16]line НДС 12% НСП 1% [18:10:16]line > о реализуемом товаре [18:10:16]line ОКРУГЛЕНИЕ: -0.29 [18:10:16]line ИТОГО: 670.00 [18:10:16]line Внесено: 670.00 [18:10:16]line СДАЧА: 0.00 [18:10:16]line НСП 1% : 5.93 [18:10:16]line НДС 12% : 71.18 [18:10:16]line Наличными: 670.00 [18:10:16]line Безнал.: 0.00 [18:10:16]line Место: АЗС № 140 "Партнер Нефть" [18:10:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:10:16]line СНО: Общий режим [18:10:16]line Чек 223 14.07.2024 18:10 [18:10:16]line Смена: 463 ФФД: 1.0 [18:10:16]line ЗНМ: 0300000129 [18:10:16]line РНМ: 0000000000090858 [18:10:16]line Версия ККМ: 001 [18:10:16]line ФМ: 0000000000874899 [18:10:16]line ФД: 162911 [18:10:16]line ФПД: 6217006794905 [18:10:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T181017&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162911&fm=6217006794905&tin=02508201610067®Number=0000000000090858&sum=67000 [18:10:17]OFD Sender: Processing packet 162911 [packets to send 106, broken 105] [18:10:17]ProducePacketName [18:10:17]name=ofd_packets/00162911 [18:10:17]OFD Sender: To server: pG, [18:10:17]CommunicateWithHost lk.salyk.kg:30040 [18:10:17]ConnectInit lk.salyk.kg [18:10:17]written 0, free lines is 4095 [18:10:17]Connected sock=10 [18:10:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E7 C5 07 01 57 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 89 14 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7C 02 00 35 04 06 00 05 A7 82 7B 48 99 53 DE 99 43 8D 91 97 54 [18:10:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BE 00 47 00 06 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7C 02 00 F4 03 04 00 96 C0 93 66 B6 04 01 00 00 A8 1E F0 B7 26 80 AC 7C [18:10:17]CommunicateWithHost err = 0 [18:10:17]CheckOFDResponse [18:10:17]1017 (14) - 77093643461234 [18:10:17]1041 (16) - 0000000000874899 [18:10:17]1040 (4) - 162911 [18:10:17]1012 (4) - 14.07.2024 12:12 [18:10:17]1206 (1) - 0 [18:10:17]OFD Sender: Remove packet 162911 [18:10:17]ProducePacketName [18:10:17]name=ofd_packets/00162911 [18:10:17]NVStorageDeleteData [18:10:17]Write to MH i2c: 01 00 00 B6 35 EB [18:10:17]Write i2c OK [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: 01 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: 01 07 00 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: 01 07 00 B6 35 00 00 00 00 00 D7 0C D5 [18:10:17]RasterBufferAndPrint [18:10:17]line [18:10:17]line [18:10:17]line [18:10:17]line [18:10:17]line [18:10:17]written 0, free lines is 3296 [18:10:17]MH_Cut [18:10:17]Write to MH i2c: D1 01 00 BD 35 01 C4 [18:10:17]Write i2c OK [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: D1 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: D1 01 00 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: D1 01 00 BD 35 00 C3 [18:10:17]Write to MH i2c: 01 00 00 BE 35 F3 [18:10:17]Write i2c OK [18:10:17]MH_I2C_Read... [18:10:17]OFD Sender: No OFD packet to send [18:10:18]*** Cut start [18:10:18]*** Purtial cut [18:10:18]*** Stage 1: CUTSNS_PIN = 1 [18:10:18]Read from MH i2c: 01 [18:10:18]MH_I2C_Read... [18:10:18]*** Stop cut motor [18:10:18]*** Cut end [18:10:18]Read from MH i2c: 01 07 00 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: 01 07 00 BE 35 00 00 00 00 00 FF 0F 08 [18:10:18]process_action close_receipt done [18:10:18]requested_data is exist [18:10:18]produce_requested_data [18:10:18]requested_item fm.sn is exist - process it [18:10:18]wFMCommunicate request_size=4 [18:10:18]MH_SAM_APDU [18:10:18]CAPDU: 80 11 00 00 [18:10:18]Write to MH i2c: E2 08 00 BF 35 80 11 00 00 00 00 00 00 6E [18:10:18]Write i2c OK [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: E2 [18:10:18]MH_I2C_Read... [18:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:18]Read from MH i2c: E2 17 00 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: E2 17 00 BF 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CE [18:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:10:18]wFMCommunicate OK [18:10:18]requested_item fd.num is exist - process it [18:10:18]SAM_PROTO_GetFieldsCounters [18:10:18]wFMCommunicate request_size=4 [18:10:18]MH_SAM_APDU [18:10:18]CAPDU: 80 13 00 00 [18:10:18]Write to MH i2c: E2 08 00 C0 35 80 13 00 00 00 00 00 00 71 [18:10:18]Write i2c OK [18:10:18]MH_I2C_Read... [18:10:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:18]Read from MH i2c: E2 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: E2 62 00 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: E2 62 00 C0 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5F 7C 02 00 0E 04 04 00 CF 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 EE [18:10:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5F 7C 02 00 0E 04 04 00 CF 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 [18:10:18]wFMCommunicate OK [18:10:18]SAM_PROTO_GetFieldsCounters done [18:10:18]requested_item shift.num is exist - process it [18:10:18]requested_item shift.opened is exist - process it [18:10:18]req_shift_opened [18:10:18]FM_GetShiftState [18:10:18]SAM_PROTO_GetShiftState [18:10:18]wFMCommunicate request_size=4 [18:10:18]MH_SAM_APDU [18:10:18]CAPDU: 80 13 01 00 [18:10:18]Write to MH i2c: E2 08 00 C1 35 80 13 01 00 00 00 00 00 73 [18:10:18]Write i2c OK [18:10:18]MH_I2C_Read... [18:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:18]Read from MH i2c: E2 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: E2 0E 00 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: E2 0E 00 C1 35 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A9 [18:10:18]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:10:18]wFMCommunicate OK [18:10:18]SAM_PROTO_GetShiftState done [18:10:18]FM_GetShiftState done [18:10:18]req_shift_opened done [18:10:18]requested_item shift.open_date is exist - process it [18:10:18]req_shift_open_date [18:10:18]req_shift_open_date done [18:10:18]produce_requested_data done [18:10:18]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162911,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [18:10:18]process_action_free close_receipt [18:10:18]json_value_free [18:10:18]json_value_free done [18:10:18]process_json_proto returns [18:10:18]Send response to host [18:10:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162911,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [18:10:18]free response buf [18:10:18]execute_script done [18:10:18]execute_script returns [18:10:18]free content buf [18:10:18]Sock 7.Close socket [18:10:18]Sock 7.Thread stoped [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]accept exits with 9 [18:21:03]New connection [18:21:03]New thread 3066879332 created [18:21:03]Thread 3066735972 joined [18:21:03]Waiting for new connection... [18:21:03] Sock 9.Parse request [18:21:03]Sock 9.Check first char [18:21:03]Sock 9.First char is OK [18:21:03]request: POST /json_proto HTTP/1.0 [18:21:03]Method: POST [18:21:03]URL: /json_proto [18:21:03]Method is POST - this is cgi request [18:21:03]url: /json_proto [18:21:03]query_string will be loaded in cgi processing [18:21:03]execute_cgi json_proto POST (null) [18:21:03]execute_cgi path=json_proto method=POST [18:21:03]POST find Content-Length [18:21:03]Host: 172.17.39.67:8080 [18:21:03]Content-Length: 683 [18:21:03]Content-Type: application/json [18:21:03] [18:21:03]POST finish read [18:21:03]Found Content-Length = 683 [18:21:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:21:03]execute_script... [18:21:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:21:03]POST & json_proto [18:21:03]process_json_proto [18:21:03]json parsed OK: [18:21:03]protocol is kg_v1.0 [18:21:03]action value=close_receipt [18:21:03]process_action close_receipt [18:21:03]cmd_close_receipt [18:21:03]MH_GetDate [18:21:03]Write to MH i2c: F0 00 00 C2 35 E6 [18:21:03]Write i2c OK [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: F0 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: F0 09 00 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: F0 09 00 C2 35 00 11 17 94 66 B6 85 93 66 45 [18:21:03]GetLastDocTimeStamp 1720980617 [18:21:03]current date 1720981265 [18:21:03]FM_GetShiftState [18:21:03]SAM_PROTO_GetShiftState [18:21:03]wFMCommunicate request_size=4 [18:21:03]MH_SAM_APDU [18:21:03]CAPDU: 80 13 01 00 [18:21:03]Write to MH i2c: E2 08 00 C3 35 80 13 01 00 00 00 00 00 75 [18:21:03]Write i2c OK [18:21:03]MH_I2C_Read... [18:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:03]Read from MH i2c: E2 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: E2 0E 00 [18:21:03]MH_I2C_Read... [18:21:03]Read from MH i2c: E2 0E 00 C3 35 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 AB [18:21:03]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:21:03]wFMCommunicate OK [18:21:03]SAM_PROTO_GetShiftState done [18:21:03]FM_GetShiftState done [18:21:03]opened in 1720915483 [18:21:03]opened+sec_in_day 1721001883 [18:21:03]quantity*price = 100046 [18:21:03]sum+1 = 100048 [18:21:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 224 14.07.2024 18:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162912 ФПД: 198134324849607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182105&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162912&fm=198134324849607&tin=02508201610067®Number=0000000000090858&sum=100000 [18:21:04]StoreToDocumentArchive [18:21:04]shift 463 fd 162912 [18:21:04]save to /storage/0463/doc_00162912 [18:21:04]save last doc name /storage/0463/doc_00162912 to /storage/kkm_last_doc_name [18:21:04]save OK [18:21:04]Clear old archive folders... [18:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:04]tlvbuf is B6D962D0 [18:21:04]SAM_PROTO_ClearQueue [18:21:04]wFMCommunicate request_size=4 [18:21:04]MH_SAM_APDU [18:21:04]CAPDU: 80 09 00 00 [18:21:04]Write to MH i2c: E2 08 00 D0 35 80 09 00 00 00 00 00 00 77 [18:21:04]Write i2c OK [18:21:04]MH_I2C_Read... [18:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:04]Read from MH i2c: E2 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 03 00 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 03 00 D0 35 00 90 00 79 [18:21:04]RAPDU: 90 00 [18:21:04]wFMCommunicate OK [18:21:04]SAM_PROTO_ClearQueue done [18:21:04]KKMCreateOFDPacket [18:21:04]OFDProtocolAddRootSTLVToBuf [18:21:04]FM_MakeSignedData [18:21:04]FM_MakeSignedData [18:21:04]SAM_PROTO_SignData [18:21:04]wFMCommunicate request_size=4 [18:21:04]MH_SAM_APDU [18:21:04]CAPDU: 80 0D 01 02 [18:21:04]Write to MH i2c: E2 08 00 D1 35 80 0D 01 02 00 00 00 00 7F [18:21:04]Write i2c OK [18:21:04]MH_I2C_Read... [18:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:04]Read from MH i2c: E2 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 03 00 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 03 00 D1 35 00 90 00 7A [18:21:04]RAPDU: 90 00 [18:21:04]wFMCommunicate OK [18:21:04]wFMCommunicate request_size=255 [18:21:04]MH_SAM_APDU [18:21: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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 11 17 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 60 7C 02 00 35 04 06 00 B4 [18:21:04]Write to MH i2c: E2 02 01 D2 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 11 17 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 60 7C 02 00 35 04 06 00 B4 00 00 EF [18:21:04]Write i2c OK [18:21:04]MH_I2C_Read... [18:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:04]Read from MH i2c: E2 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 03 00 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 03 00 D2 35 00 90 00 7B [18:21:04]RAPDU: 90 00 [18:21:04]wFMCommunicate OK [18:21:04]wFMCommunicate request_size=10 [18:21:04]MH_SAM_APDU [18:21:04]CAPDU: 80 0D 02 02 05 33 BE 0C EB C7 [18:21:04]Write to MH i2c: E2 0D 00 D3 35 80 0D 02 02 05 00 33 BE 0C EB C7 00 00 3B [18:21:04]Write i2c OK [18:21:04]MH_I2C_Read... [18:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:04]Read from MH i2c: E2 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 03 00 [18:21:04]MH_I2C_Read... [18:21:04]Read from MH i2c: E2 03 00 D3 35 00 90 00 7C [18:21:04]RAPDU: 90 00 [18:21:04]wFMCommunicate OK [18:21:04]wFMCommunicate request_size=4 [18:21:04]MH_SAM_APDU [18:21:04]CAPDU: 80 0D 03 02 [18:21:04]Write to MH i2c: E2 08 00 D4 35 80 0D 03 02 00 00 00 00 84 [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:05]Read from MH i2c: E2 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 0B 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 0B 00 D4 35 00 79 06 61 B5 B2 41 C6 9F 90 00 72 [18:21:05]RAPDU: 79 06 61 B5 B2 41 C6 9F 90 00 [18:21:05]wFMCommunicate OK [18:21:05]SAM_PROTO_SignData done [18:21:05]FM_MakeSignedData done [18:21:05]CreateOFDProtocolMessage [18:21:05]wFMCommunicate request_size=4 [18:21:05]MH_SAM_APDU [18:21:05]CAPDU: 80 11 00 00 [18:21:05]Write to MH i2c: E2 08 00 D5 35 80 11 00 00 00 00 00 00 84 [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:05]Read from MH i2c: E2 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 17 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 17 00 D5 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E4 [18:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:21:05]wFMCommunicate OK [18:21:05]CreateOFDProtocolMessage done [18:21:05]OFDSenderStorePacket 162912 [18:21:05]StoreOFDPacket docnum=162912 [18:21:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4D 5C 07 01 54 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 11 17 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 60 7C 02 00 35 04 06 00 B4 33 BE 0C EB C7 79 06 61 B5 B2 41 C6 9F [18:21:05]CheckFolder [18:21:05]dirname=/storage/ofd_packets [18:21:05]CheckFolder done [18:21:05]ProducePacketName [18:21:05]name=ofd_packets/00162912 [18:21:05]NVStorageSaveData ofd_packets/00162912 [18:21:05]File name is /storage/ofd_packets/00162912 [18:21:05]Write 301 bytes [18:21:05]NVStorageSaveData done [18:21:05]OFDSenderStorePacket done [18:21:05]KKMCreateOFDPacket done [18:21:05]NVStorageSaveData kkm_last_timestamp [18:21:05]File name is /storage/kkm_last_timestamp [18:21:05]Write 4 bytes [18:21:05]NVStorageSaveData done [18:21:05]ExternCall_PrintAddStr [18:21:05]wPrintStart [18:21:05]Write to MH i2c: 01 00 00 D6 35 0B [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: 01 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: 01 07 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: 01 07 00 D6 35 00 00 00 00 00 FF 0F 20 [18:21:05]RasterBufferAndPrint [18:21:05]line Счет N : (1)1319524 [18:21:05]line ИНН: 02508201610067 [18:21:05]line Контрольно-Кассовый Чек [18:21:05]line ПРОДАЖА [18:21:05]line ТРК (МРК, ГНК) : 33 [18:21:05]line Товар: 2710124130 [18:21:05]line Аи-92-К-5 [18:21:05]line 15.090 * 66.30 [18:21:05]line = 1000.47 [18:21:05]line НДС 12% НСП 1% [18:21:05]line > о реализуемом товаре [18:21:05]line ОКРУГЛЕНИЕ: -0.47 [18:21:05]line ИТОГО: 1000.00 [18:21:05]line Внесено: 1000.00 [18:21:05]line СДАЧА: 0.00 [18:21:05]line НСП 1% : 8.85 [18:21:05]line НДС 12% : 106.24 [18:21:05]line Наличными: 1000.00 [18:21:05]line Безнал.: 0.00 [18:21:05]line Место: АЗС № 140 "Партнер Нефть" [18:21:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:21:05]line СНО: Общий режим [18:21:05]line Чек 224 14.07.2024 18:21 [18:21:05]line Смена: 463 ФФД: 1.0 [18:21:05]line ЗНМ: 0300000129 [18:21:05]line РНМ: 0000000000090858 [18:21:05]line Версия ККМ: 001 [18:21:05]line ФМ: 0000000000874899 [18:21:05]line ФД: 162912 [18:21:05]line ФПД: 198134324849607 [18:21:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182105&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162912&fm=198134324849607&tin=02508201610067®Number=0000000000090858&sum=100000 [18:21:05]OFD Sender: Processing packet 162912 [packets to send 106, broken 105] [18:21:05]ProducePacketName [18:21:05]name=ofd_packets/00162912 [18:21:05]OFD Sender: To server: pG, [18:21:05]CommunicateWithHost lk.salyk.kg:30040 [18:21:05]ConnectInit lk.salyk.kg [18:21:05]written 0, free lines is 4095 [18:21:05]Connected sock=10 [18:21:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4D 5C 07 01 54 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 11 17 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 60 7C 02 00 35 04 06 00 B4 33 BE 0C EB C7 79 06 61 B5 B2 41 C6 9F [18:21:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CA 81 47 00 B0 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 60 7C 02 00 F4 03 04 00 1E C3 93 66 B6 04 01 00 00 81 A4 A2 FA CD C3 F9 26 [18:21:05]CommunicateWithHost err = 0 [18:21:05]CheckOFDResponse [18:21:05]1017 (14) - 77093643461234 [18:21:05]1041 (16) - 0000000000874899 [18:21:05]1040 (4) - 162912 [18:21:05]1012 (4) - 14.07.2024 12:22 [18:21:05]1206 (1) - 0 [18:21:05]OFD Sender: Remove packet 162912 [18:21:05]ProducePacketName [18:21:05]name=ofd_packets/00162912 [18:21:05]NVStorageDeleteData [18:21:05]Write to MH i2c: 01 00 00 01 36 37 [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: 01 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: 01 07 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: 01 07 00 01 36 00 00 00 00 00 D8 0C 22 [18:21:05]RasterBufferAndPrint [18:21:05]line [18:21:05]line [18:21:05]line [18:21:05]line [18:21:05]line [18:21:05]written 0, free lines is 3298 [18:21:05]MH_Cut [18:21:05]Write to MH i2c: D1 01 00 08 36 01 10 [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: D1 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: D1 01 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: D1 01 00 08 36 00 0F [18:21:05]Write to MH i2c: 01 00 00 09 36 3F [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:06]OFD Sender: No OFD packet to send [18:21:06]*** Cut start [18:21:06]*** Purtial cut [18:21:06]*** CUTSNS_PIN = 0 [18:21:06]*** Stage 1: CUTSNS_PIN = 1 [18:21:08]Read from MH i2c: 01 [18:21:08]MH_I2C_Read... [18:21:08]*** Stop cut motor [18:21:08]*** Cut end [18:21:08]Read from MH i2c: 01 07 00 [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: 01 07 00 09 36 00 00 00 00 00 FF 0F 54 [18:21:08]process_action close_receipt done [18:21:08]requested_data is exist [18:21:08]produce_requested_data [18:21:08]requested_item fm.sn is exist - process it [18:21:08]wFMCommunicate request_size=4 [18:21:08]MH_SAM_APDU [18:21:08]CAPDU: 80 11 00 00 [18:21:08]Write to MH i2c: E2 08 00 0A 36 80 11 00 00 00 00 00 00 BA [18:21:08]Write i2c OK [18:21:08]MH_I2C_Read... [18:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:08]Read from MH i2c: E2 [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: E2 17 00 [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: E2 17 00 0A 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1A [18:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:21:08]wFMCommunicate OK [18:21:08]requested_item fd.num is exist - process it [18:21:08]SAM_PROTO_GetFieldsCounters [18:21:08]wFMCommunicate request_size=4 [18:21:08]MH_SAM_APDU [18:21:08]CAPDU: 80 13 00 00 [18:21:08]Write to MH i2c: E2 08 00 0B 36 80 13 00 00 00 00 00 00 BD [18:21:08]Write i2c OK [18:21:08]MH_I2C_Read... [18:21:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:08]Read from MH i2c: E2 [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: E2 62 00 [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: E2 62 00 0B 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 60 7C 02 00 0E 04 04 00 CF 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 3E [18:21:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 60 7C 02 00 0E 04 04 00 CF 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 [18:21:08]wFMCommunicate OK [18:21:08]SAM_PROTO_GetFieldsCounters done [18:21:08]requested_item shift.num is exist - process it [18:21:08]requested_item shift.opened is exist - process it [18:21:08]req_shift_opened [18:21:08]FM_GetShiftState [18:21:08]SAM_PROTO_GetShiftState [18:21:08]wFMCommunicate request_size=4 [18:21:08]MH_SAM_APDU [18:21:08]CAPDU: 80 13 01 00 [18:21:08]Write to MH i2c: E2 08 00 0C 36 80 13 01 00 00 00 00 00 BF [18:21:08]Write i2c OK [18:21:08]MH_I2C_Read... [18:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:08]Read from MH i2c: E2 [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: E2 0E 00 [18:21:08]MH_I2C_Read... [18:21:08]Read from MH i2c: E2 0E 00 0C 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F5 [18:21:08]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:21:08]wFMCommunicate OK [18:21:08]SAM_PROTO_GetShiftState done [18:21:08]FM_GetShiftState done [18:21:08]req_shift_opened done [18:21:08]requested_item shift.open_date is exist - process it [18:21:08]req_shift_open_date [18:21:08]req_shift_open_date done [18:21:08]produce_requested_data done [18:21:08]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162912,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [18:21:08]process_action_free close_receipt [18:21:08]json_value_free [18:21:08]json_value_free done [18:21:08]process_json_proto returns [18:21:08]Send response to host [18:21:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162912,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [18:21:08]free response buf [18:21:08]execute_script done [18:21:08]execute_script returns [18:21:08]free content buf [18:21:08]Sock 9.Close socket [18:21:08]Sock 9.Thread stoped [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:15]accept exits with 7 [18:27:15]New connection [18:27:15]New thread 3066735972 created [18:27:15]Thread 3066879332 joined [18:27:15]Waiting for new connection... [18:27:15] Sock 7.Parse request [18:27:15]Sock 7.Check first char [18:27:15]Sock 7.First char is OK [18:27:15]request: POST /json_proto HTTP/1.0 [18:27:15]Method: POST [18:27:15]URL: /json_proto [18:27:15]Method is POST - this is cgi request [18:27:15]url: /json_proto [18:27:15]query_string will be loaded in cgi processing [18:27:15]execute_cgi json_proto POST (null) [18:27:15]execute_cgi path=json_proto method=POST [18:27:15]POST find Content-Length [18:27:15]Host: 172.17.39.67:8080 [18:27:15]Content-Length: 688 [18:27:15]Content-Type: application/json [18:27:15] [18:27:15]POST finish read [18:27:15]Found Content-Length = 688 [18:27:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "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" ] } } [18:27:15]execute_script... [18:27: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)1319523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "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" ] } } [18:27:15]POST & json_proto [18:27:15]process_json_proto [18:27:15]json parsed OK: [18:27:15]protocol is kg_v1.0 [18:27:15]action value=close_receipt [18:27:15]process_action close_receipt [18:27:15]cmd_close_receipt [18:27:15]MH_GetDate [18:27:15]Write to MH i2c: F0 00 00 0D 36 32 [18:27:15]Write i2c OK [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: F0 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: F0 09 00 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: F0 09 00 0D 36 00 86 18 94 66 B6 85 93 66 07 [18:27:15]GetLastDocTimeStamp 1720981265 [18:27:15]current date 1720981638 [18:27:15]FM_GetShiftState [18:27:15]SAM_PROTO_GetShiftState [18:27:15]wFMCommunicate request_size=4 [18:27:15]MH_SAM_APDU [18:27:15]CAPDU: 80 13 01 00 [18:27:15]Write to MH i2c: E2 08 00 0E 36 80 13 01 00 00 00 00 00 C1 [18:27:15]Write i2c OK [18:27:15]MH_I2C_Read... [18:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:15]Read from MH i2c: E2 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 0E 00 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 0E 00 0E 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F7 [18:27:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:27:15]wFMCommunicate OK [18:27:15]SAM_PROTO_GetShiftState done [18:27:15]FM_GetShiftState done [18:27:15]opened in 1720915483 [18:27:15]opened+sec_in_day 1721001883 [18:27:15]quantity*price = 200013 [18:27:15]sum+1 = 200014 [18:27:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 225 14.07.2024 18:27 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162913 ФПД: 53097958174716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182718&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162913&fm=53097958174716&tin=02508201610067®Number=0000000000090858&sum=200000 [18:27:16]StoreToDocumentArchive [18:27:16]shift 463 fd 162913 [18:27:16]save to /storage/0463/doc_00162913 [18:27:16]save last doc name /storage/0463/doc_00162913 to /storage/kkm_last_doc_name [18:27:16]save OK [18:27:16]Clear old archive folders... [18:27:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:27:16]tlvbuf is 01346190 [18:27:16]SAM_PROTO_ClearQueue [18:27:16]wFMCommunicate request_size=4 [18:27:16]MH_SAM_APDU [18:27:16]CAPDU: 80 09 00 00 [18:27:16]Write to MH i2c: E2 08 00 1B 36 80 09 00 00 00 00 00 00 C3 [18:27:16]Write i2c OK [18:27:16]MH_I2C_Read... [18:27:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:16]Read from MH i2c: E2 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 03 00 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 03 00 1B 36 00 90 00 C5 [18:27:16]RAPDU: 90 00 [18:27:16]wFMCommunicate OK [18:27:16]SAM_PROTO_ClearQueue done [18:27:16]KKMCreateOFDPacket [18:27:16]OFDProtocolAddRootSTLVToBuf [18:27:16]FM_MakeSignedData [18:27:16]FM_MakeSignedData [18:27:16]SAM_PROTO_SignData [18:27:16]wFMCommunicate request_size=4 [18:27:16]MH_SAM_APDU [18:27:16]CAPDU: 80 0D 01 02 [18:27:16]Write to MH i2c: E2 08 00 1C 36 80 0D 01 02 00 00 00 00 CB [18:27:16]Write i2c OK [18:27:16]MH_I2C_Read... [18:27:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:16]Read from MH i2c: E2 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 03 00 [18:27:16]MH_I2C_Read... [18:27:16]Read from MH i2c: E2 03 00 1C 36 00 90 00 C6 [18:27:16]RAPDU: 90 00 [18:27:16]wFMCommunicate OK [18:27:16]wFMCommunicate request_size=255 [18:27:16]MH_SAM_APDU [18:27:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 86 18 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7C 02 00 35 04 06 00 [18:27:16]Write to MH i2c: E2 02 01 1D 36 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 86 18 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7C 02 00 35 04 06 00 00 00 02 [18:27:16]Write i2c OK [18:27:17]MH_I2C_Read... [18:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:17]Read from MH i2c: E2 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 03 00 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 03 00 1D 36 00 90 00 C7 [18:27:17]RAPDU: 90 00 [18:27:17]wFMCommunicate OK [18:27:17]wFMCommunicate request_size=11 [18:27:17]MH_SAM_APDU [18:27:17]CAPDU: 80 0D 02 02 06 30 4A D4 EF 6F FC [18:27:17]Write to MH i2c: E2 0E 00 1E 36 80 0D 02 02 06 00 30 4A D4 EF 6F FC 00 00 82 [18:27:17]Write i2c OK [18:27:17]MH_I2C_Read... [18:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:17]Read from MH i2c: E2 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 03 00 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 03 00 1E 36 00 90 00 C8 [18:27:17]RAPDU: 90 00 [18:27:17]wFMCommunicate OK [18:27:17]wFMCommunicate request_size=4 [18:27:17]MH_SAM_APDU [18:27:17]CAPDU: 80 0D 03 02 [18:27:17]Write to MH i2c: E2 08 00 1F 36 80 0D 03 02 00 00 00 00 D0 [18:27:17]Write i2c OK [18:27:17]MH_I2C_Read... [18:27:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:17]Read from MH i2c: E2 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 0B 00 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 0B 00 1F 36 00 B8 70 B9 9E C2 FD A6 23 90 00 D8 [18:27:17]RAPDU: B8 70 B9 9E C2 FD A6 23 90 00 [18:27:17]wFMCommunicate OK [18:27:17]SAM_PROTO_SignData done [18:27:17]FM_MakeSignedData done [18:27:17]CreateOFDProtocolMessage [18:27:17]wFMCommunicate request_size=4 [18:27:17]MH_SAM_APDU [18:27:17]CAPDU: 80 11 00 00 [18:27:17]Write to MH i2c: E2 08 00 20 36 80 11 00 00 00 00 00 00 D0 [18:27:17]Write i2c OK [18:27:17]MH_I2C_Read... [18:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:17]Read from MH i2c: E2 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 17 00 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 17 00 20 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 30 [18:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:27:17]wFMCommunicate OK [18:27:17]CreateOFDProtocolMessage done [18:27:17]OFDSenderStorePacket 162913 [18:27:17]StoreOFDPacket docnum=162913 [18:27:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C0 2A 08 01 DF F4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 86 18 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7C 02 00 35 04 06 00 30 4A D4 EF 6F FC B8 70 B9 9E C2 FD A6 23 [18:27:17]CheckFolder [18:27:17]dirname=/storage/ofd_packets [18:27:17]CheckFolder done [18:27:17]ProducePacketName [18:27:17]name=ofd_packets/00162913 [18:27:17]NVStorageSaveData ofd_packets/00162913 [18:27:17]File name is /storage/ofd_packets/00162913 [18:27:17]Write 302 bytes [18:27:17]NVStorageSaveData done [18:27:17]OFDSenderStorePacket done [18:27:17]KKMCreateOFDPacket done [18:27:17]NVStorageSaveData kkm_last_timestamp [18:27:17]File name is /storage/kkm_last_timestamp [18:27:17]Write 4 bytes [18:27:17]NVStorageSaveData done [18:27:17]ExternCall_PrintAddStr [18:27:17]wPrintStart [18:27:17]Write to MH i2c: 01 00 00 21 36 57 [18:27:17]Write i2c OK [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: 01 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: 01 07 00 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: 01 07 00 21 36 00 00 00 00 00 FF 0F 6C [18:27:17]RasterBufferAndPrint [18:27:17]line Счет N : (1)1319523 [18:27:17]line ИНН: 02508201610067 [18:27:17]line Контрольно-Кассовый Чек [18:27:17]line ПРОДАЖА [18:27:17]line ТРК (МРК, ГНК) : 21 [18:27:17]line Товар: 2710194210 [18:27:17]line ДТ(л)-К-5 [18:27:17]line 27.550 * 72.60 [18:27:17]line = 2000.13 [18:27:17]line НДС 12% НСП 1% [18:27:17]line > о реализуемом товаре [18:27:17]line ОКРУГЛЕНИЕ: -0.13 [18:27:17]line ИТОГО: 2000.00 [18:27:17]line Внесено: 2000.00 [18:27:17]line СДАЧА: 0.00 [18:27:17]line НСП 1% : 17.70 [18:27:17]line НДС 12% : 212.40 [18:27:17]line Наличными: 2000.00 [18:27:17]line Безнал.: 0.00 [18:27:17]line Место: АЗС № 140 "Партнер Нефть" [18:27:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:27:17]line СНО: Общий режим [18:27:17]line Чек 225 14.07.2024 18:27 [18:27:17]line Смена: 463 ФФД: 1.0 [18:27:17]line ЗНМ: 0300000129 [18:27:17]line РНМ: 0000000000090858 [18:27:17]line Версия ККМ: 001 [18:27:17]line ФМ: 0000000000874899 [18:27:17]line ФД: 162913 [18:27:17]line ФПД: 53097958174716 [18:27:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182718&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162913&fm=53097958174716&tin=02508201610067®Number=0000000000090858&sum=200000 [18:27:17]OFD Sender: Processing packet 162913 [packets to send 106, broken 105] [18:27:17]ProducePacketName [18:27:17]name=ofd_packets/00162913 [18:27:17]OFD Sender: To server: pG, [18:27:17]CommunicateWithHost lk.salyk.kg:30040 [18:27:17]ConnectInit lk.salyk.kg [18:27:17]written 0, free lines is 4095 [18:27:17]Connected sock=10 [18:27:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C0 2A 08 01 DF F4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 86 18 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7C 02 00 35 04 06 00 30 4A D4 EF 6F FC B8 70 B9 9E C2 FD A6 23 [18:27:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9E C2 47 00 9B 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7C 02 00 F4 03 04 00 93 C4 93 66 B6 04 01 00 00 17 64 2C BB 1D 80 1D E1 [18:27:18]CommunicateWithHost err = 0 [18:27:18]CheckOFDResponse [18:27:18]1017 (14) - 77093643461234 [18:27:18]1041 (16) - 0000000000874899 [18:27:18]1040 (4) - 162913 [18:27:18]1012 (4) - 14.07.2024 12:29 [18:27:18]1206 (1) - 0 [18:27:18]OFD Sender: Remove packet 162913 [18:27:18]ProducePacketName [18:27:18]name=ofd_packets/00162913 [18:27:18]NVStorageDeleteData [18:27:18]Write to MH i2c: 01 00 00 4C 36 82 [18:27:18]Write i2c OK [18:27:18]MH_I2C_Read... [18:27:18]Read from MH i2c: 01 [18:27:18]MH_I2C_Read... [18:27:18]Read from MH i2c: 01 07 00 [18:27:18]MH_I2C_Read... [18:27:18]Read from MH i2c: 01 07 00 4C 36 00 00 00 00 00 D7 0C 6C [18:27:18]RasterBufferAndPrint [18:27:18]line [18:27:18]line [18:27:18]line [18:27:18]line [18:27:18]line [18:27:18]written 0, free lines is 3294 [18:27:18]MH_Cut [18:27:18]Write to MH i2c: D1 01 00 53 36 01 5B [18:27:18]Write i2c OK [18:27:18]MH_I2C_Read... [18:27:18]Read from MH i2c: D1 [18:27:18]MH_I2C_Read... [18:27:18]Read from MH i2c: D1 01 00 [18:27:18]MH_I2C_Read... [18:27:18]Read from MH i2c: D1 01 00 53 36 00 5A [18:27:18]Write to MH i2c: 01 00 00 54 36 8A [18:27:18]Write i2c OK [18:27:18]MH_I2C_Read... [18:27:18]OFD Sender: No OFD packet to send [18:27:18]*** Cut start [18:27:18]*** Purtial cut [18:27:18]*** Stage 1: CUTSNS_PIN = 1 [18:27:19]Read from MH i2c: 01 [18:27:19]MH_I2C_Read... [18:27:19]*** Stop cut motor [18:27:19]*** Cut end [18:27:19]Read from MH i2c: 01 07 00 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: 01 07 00 54 36 00 00 00 00 00 FF 0F 9F [18:27:19]process_action close_receipt done [18:27:19]requested_data is exist [18:27:19]produce_requested_data [18:27:19]requested_item fm.sn is exist - process it [18:27:19]wFMCommunicate request_size=4 [18:27:19]MH_SAM_APDU [18:27:19]CAPDU: 80 11 00 00 [18:27:19]Write to MH i2c: E2 08 00 55 36 80 11 00 00 00 00 00 00 05 [18:27:19]Write i2c OK [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 [18:27:19]MH_I2C_Read... [18:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:19]Read from MH i2c: E2 17 00 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 17 00 55 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 65 [18:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:27:19]wFMCommunicate OK [18:27:19]requested_item fd.num is exist - process it [18:27:19]SAM_PROTO_GetFieldsCounters [18:27:19]wFMCommunicate request_size=4 [18:27:19]MH_SAM_APDU [18:27:19]CAPDU: 80 13 00 00 [18:27:19]Write to MH i2c: E2 08 00 56 36 80 13 00 00 00 00 00 00 08 [18:27:19]Write i2c OK [18:27:19]MH_I2C_Read... [18:27:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:19]Read from MH i2c: E2 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 62 00 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 62 00 56 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 61 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [18:27:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 61 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:19]wFMCommunicate OK [18:27:19]SAM_PROTO_GetFieldsCounters done [18:27:19]requested_item shift.num is exist - process it [18:27:19]requested_item shift.opened is exist - process it [18:27:19]req_shift_opened [18:27:19]FM_GetShiftState [18:27:19]SAM_PROTO_GetShiftState [18:27:19]wFMCommunicate request_size=4 [18:27:19]MH_SAM_APDU [18:27:19]CAPDU: 80 13 01 00 [18:27:19]Write to MH i2c: E2 08 00 57 36 80 13 01 00 00 00 00 00 0A [18:27:19]Write i2c OK [18:27:19]MH_I2C_Read... [18:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:19]Read from MH i2c: E2 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 0E 00 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 0E 00 57 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 40 [18:27:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:27:19]wFMCommunicate OK [18:27:19]SAM_PROTO_GetShiftState done [18:27:19]FM_GetShiftState done [18:27:19]req_shift_opened done [18:27:19]requested_item shift.open_date is exist - process it [18:27:19]req_shift_open_date [18:27:19]req_shift_open_date done [18:27:19]produce_requested_data done [18:27:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162913,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [18:27:19]process_action_free close_receipt [18:27:19]json_value_free [18:27:19]json_value_free done [18:27:19]process_json_proto returns [18:27:19]Send response to host [18:27:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162913,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [18:27:19]free response buf [18:27:19]execute_script done [18:27:19]execute_script returns [18:27:19]free content buf [18:27:19]Sock 7.Close socket [18:27:19]Sock 7.Thread stoped [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:47]accept exits with 9 [18:29:47]New connection [18:29:47]New thread 3066879332 created [18:29:47]Thread 3066735972 joined [18:29:47]Waiting for new connection... [18:29:47] Sock 9.Parse request [18:29:47]Sock 9.Check first char [18:29:47]Sock 9.First char is OK [18:29:47]request: POST /json_proto HTTP/1.0 [18:29:47]Method: POST [18:29:47]URL: /json_proto [18:29:47]Method is POST - this is cgi request [18:29:47]url: /json_proto [18:29:47]query_string will be loaded in cgi processing [18:29:47]execute_cgi json_proto POST (null) [18:29:47]execute_cgi path=json_proto method=POST [18:29:47]POST find Content-Length [18:29:47]Host: 172.17.39.67:8080 [18:29:47]Content-Length: 683 [18:29:47]Content-Type: application/json [18:29:47] [18:29:47]POST finish read [18:29:47]Found Content-Length = 683 [18:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "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" ] } } [18:29:47]execute_script... [18:29:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "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" ] } } [18:29:47]POST & json_proto [18:29:47]process_json_proto [18:29:47]json parsed OK: [18:29:47]protocol is kg_v1.0 [18:29:47]action value=close_receipt [18:29:47]process_action close_receipt [18:29:47]cmd_close_receipt [18:29:47]MH_GetDate [18:29:47]Write to MH i2c: F0 00 00 58 36 7D [18:29:47]Write i2c OK [18:29:47]MH_I2C_Read... [18:29:47]Read from MH i2c: F0 [18:29:47]MH_I2C_Read... [18:29:47]Read from MH i2c: F0 09 00 [18:29:47]MH_I2C_Read... [18:29:47]Read from MH i2c: F0 09 00 58 36 00 1E 19 94 66 B6 85 93 66 EB [18:29:47]GetLastDocTimeStamp 1720981638 [18:29:47]current date 1720981790 [18:29:47]FM_GetShiftState [18:29:47]SAM_PROTO_GetShiftState [18:29:47]wFMCommunicate request_size=4 [18:29:47]MH_SAM_APDU [18:29:47]CAPDU: 80 13 01 00 [18:29:47]Write to MH i2c: E2 08 00 59 36 80 13 01 00 00 00 00 00 0C [18:29:47]Write i2c OK [18:29:47]MH_I2C_Read... [18:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:47]Read from MH i2c: E2 [18:29:47]MH_I2C_Read... [18:29:47]Read from MH i2c: E2 0E 00 [18:29:47]MH_I2C_Read... [18:29:47]Read from MH i2c: E2 0E 00 59 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 42 [18:29:47]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:29:47]wFMCommunicate OK [18:29:47]SAM_PROTO_GetShiftState done [18:29:47]FM_GetShiftState done [18:29:47]opened in 1720915483 [18:29:47]opened+sec_in_day 1721001883 [18:29:47]quantity*price = 70059 [18:29:47]sum+1 = 70060 [18:29:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 226 14.07.2024 18:29 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162914 ФПД: 68018021754227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182950&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162914&fm=68018021754227&tin=02508201610067®Number=0000000000090858&sum=70000 [18:29:48]StoreToDocumentArchive [18:29:48]shift 463 fd 162914 [18:29:48]save to /storage/0463/doc_00162914 [18:29:48]save last doc name /storage/0463/doc_00162914 to /storage/kkm_last_doc_name [18:29:48]save OK [18:29:48]Clear old archive folders... [18:29:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:29:48]tlvbuf is 01346200 [18:29:48]SAM_PROTO_ClearQueue [18:29:48]wFMCommunicate request_size=4 [18:29:48]MH_SAM_APDU [18:29:48]CAPDU: 80 09 00 00 [18:29:48]Write to MH i2c: E2 08 00 66 36 80 09 00 00 00 00 00 00 0E [18:29:48]Write i2c OK [18:29:48]MH_I2C_Read... [18:29:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:48]Read from MH i2c: E2 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: E2 03 00 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: E2 03 00 66 36 00 90 00 10 [18:29:48]RAPDU: 90 00 [18:29:48]wFMCommunicate OK [18:29:48]SAM_PROTO_ClearQueue done [18:29:48]KKMCreateOFDPacket [18:29:48]OFDProtocolAddRootSTLVToBuf [18:29:48]FM_MakeSignedData [18:29:48]FM_MakeSignedData [18:29:48]SAM_PROTO_SignData [18:29:48]wFMCommunicate request_size=4 [18:29:48]MH_SAM_APDU [18:29:48]CAPDU: 80 0D 01 02 [18:29:48]Write to MH i2c: E2 08 00 67 36 80 0D 01 02 00 00 00 00 16 [18:29:48]Write i2c OK [18:29:48]MH_I2C_Read... [18:29:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:48]Read from MH i2c: E2 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: E2 03 00 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: E2 03 00 67 36 00 90 00 11 [18:29:48]RAPDU: 90 00 [18:29:48]wFMCommunicate OK [18:29:48]wFMCommunicate request_size=255 [18:29:48]MH_SAM_APDU [18:29:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 1E 19 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7C 02 00 35 04 06 00 [18:29:49]Write to MH i2c: E2 02 01 68 36 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 1E 19 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7C 02 00 35 04 06 00 00 00 DB [18:29:49]Write i2c OK [18:29:49]MH_I2C_Read... [18:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:49]Read from MH i2c: E2 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: E2 03 00 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: E2 03 00 68 36 00 90 00 12 [18:29:49]RAPDU: 90 00 [18:29:49]wFMCommunicate OK [18:29:49]wFMCommunicate request_size=11 [18:29:49]MH_SAM_APDU [18:29:49]CAPDU: 80 0D 02 02 06 3D DC AE 06 65 73 [18:29:49]Write to MH i2c: E2 0E 00 69 36 80 0D 02 02 06 00 3D DC AE 06 65 73 00 00 CA [18:29:49]Write i2c OK [18:29:49]MH_I2C_Read... [18:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:49]Read from MH i2c: E2 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: E2 03 00 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: E2 03 00 69 36 00 90 00 13 [18:29:49]RAPDU: 90 00 [18:29:49]wFMCommunicate OK [18:29:49]wFMCommunicate request_size=4 [18:29:49]MH_SAM_APDU [18:29:49]CAPDU: 80 0D 03 02 [18:29:49]Write to MH i2c: E2 08 00 6A 36 80 0D 03 02 00 00 00 00 1B [18:29:49]Write i2c OK [18:29:49]MH_I2C_Read... [18:29:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:49]Read from MH i2c: E2 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: E2 0B 00 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: E2 0B 00 6A 36 00 4B A3 B7 3D 2B 7D 9B 4B 90 00 8C [18:29:49]RAPDU: 4B A3 B7 3D 2B 7D 9B 4B 90 00 [18:29:49]wFMCommunicate OK [18:29:49]SAM_PROTO_SignData done [18:29:49]FM_MakeSignedData done [18:29:49]CreateOFDProtocolMessage [18:29:49]wFMCommunicate request_size=4 [18:29:49]MH_SAM_APDU [18:29:49]CAPDU: 80 11 00 00 [18:29:49]Write to MH i2c: E2 08 00 6B 36 80 11 00 00 00 00 00 00 1B [18:29:49]Write i2c OK [18:29:49]MH_I2C_Read... [18:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:49]Read from MH i2c: E2 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: E2 17 00 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: E2 17 00 6B 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7B [18:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:29:49]wFMCommunicate OK [18:29:49]CreateOFDProtocolMessage done [18:29:49]OFDSenderStorePacket 162914 [18:29:49]StoreOFDPacket docnum=162914 [18:29:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 0B BD 08 01 07 E1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 1E 19 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7C 02 00 35 04 06 00 3D DC AE 06 65 73 4B A3 B7 3D 2B 7D 9B 4B [18:29:49]CheckFolder [18:29:49]dirname=/storage/ofd_packets [18:29:49]CheckFolder done [18:29:49]ProducePacketName [18:29:49]name=ofd_packets/00162914 [18:29:49]NVStorageSaveData ofd_packets/00162914 [18:29:49]File name is /storage/ofd_packets/00162914 [18:29:49]Write 302 bytes [18:29:49]NVStorageSaveData done [18:29:49]OFDSenderStorePacket done [18:29:49]KKMCreateOFDPacket done [18:29:49]NVStorageSaveData kkm_last_timestamp [18:29:49]File name is /storage/kkm_last_timestamp [18:29:49]Write 4 bytes [18:29:49]NVStorageSaveData done [18:29:49]ExternCall_PrintAddStr [18:29:49]wPrintStart [18:29:49]Write to MH i2c: 01 00 00 6C 36 A2 [18:29:49]Write i2c OK [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: 01 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: 01 07 00 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: 01 07 00 6C 36 00 00 00 00 00 FF 0F B7 [18:29:49]RasterBufferAndPrint [18:29:49]line Счет N : (1)1319525 [18:29:49]line ИНН: 02508201610067 [18:29:49]line Контрольно-Кассовый Чек [18:29:49]line ПРОДАЖА [18:29:49]line ТРК (МРК, ГНК) : 21 [18:29:49]line Товар: 2710194210 [18:29:49]line ДТ(л)-К-5 [18:29:49]line 9.650 * 72.60 [18:29:49]line = 700.59 [18:29:49]line НДС 12% НСП 1% [18:29:49]line > о реализуемом товаре [18:29:49]line ОКРУГЛЕНИЕ: -0.59 [18:29:49]line ИТОГО: 700.00 [18:29:49]line Внесено: 700.00 [18:29:49]line СДАЧА: 0.00 [18:29:49]line НСП 1% : 6.20 [18:29:49]line НДС 12% : 74.40 [18:29:49]line Наличными: 700.00 [18:29:49]line Безнал.: 0.00 [18:29:49]line Место: АЗС № 140 "Партнер Нефть" [18:29:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:29:49]line СНО: Общий режим [18:29:49]line Чек 226 14.07.2024 18:29 [18:29:49]line Смена: 463 ФФД: 1.0 [18:29:49]line ЗНМ: 0300000129 [18:29:49]line РНМ: 0000000000090858 [18:29:49]line Версия ККМ: 001 [18:29:49]line ФМ: 0000000000874899 [18:29:49]line ФД: 162914 [18:29:49]line ФПД: 68018021754227 [18:29:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T182950&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162914&fm=68018021754227&tin=02508201610067®Number=0000000000090858&sum=70000 [18:29:49]OFD Sender: Processing packet 162914 [packets to send 106, broken 105] [18:29:49]ProducePacketName [18:29:49]name=ofd_packets/00162914 [18:29:49]OFD Sender: To server: pG, [18:29:49]CommunicateWithHost lk.salyk.kg:30040 [18:29:49]ConnectInit lk.salyk.kg [18:29:49]written 0, free lines is 4095 [18:29:49]Connected sock=10 [18:29:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 0B BD 08 01 07 E1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 1E 19 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7C 02 00 35 04 06 00 3D DC AE 06 65 73 4B A3 B7 3D 2B 7D 9B 4B [18:29:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2E 99 47 00 DB 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7C 02 00 F4 03 04 00 2B C5 93 66 B6 04 01 00 00 AA 0C BF 5C 6F CA B9 D8 [18:29:50]CommunicateWithHost err = 0 [18:29:50]CheckOFDResponse [18:29:50]1017 (14) - 77093643461234 [18:29:50]1041 (16) - 0000000000874899 [18:29:50]1040 (4) - 162914 [18:29:50]1012 (4) - 14.07.2024 12:31 [18:29:50]1206 (1) - 0 [18:29:50]OFD Sender: Remove packet 162914 [18:29:50]ProducePacketName [18:29:50]name=ofd_packets/00162914 [18:29:50]NVStorageDeleteData [18:29:50]Write to MH i2c: 01 00 00 97 36 CD [18:29:50]Write i2c OK [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: 01 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: 01 07 00 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: 01 07 00 97 36 00 00 00 00 00 CD 0C AD [18:29:50]RasterBufferAndPrint [18:29:50]line [18:29:50]line [18:29:50]line [18:29:50]line [18:29:50]line [18:29:50]written 0, free lines is 3284 [18:29:50]MH_Cut [18:29:50]Write to MH i2c: D1 01 00 9E 36 01 A6 [18:29:50]Write i2c OK [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: D1 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: D1 01 00 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: D1 01 00 9E 36 00 A5 [18:29:50]Write to MH i2c: 01 00 00 9F 36 D5 [18:29:50]Write i2c OK [18:29:50]MH_I2C_Read... [18:29:50]OFD Sender: No OFD packet to send [18:29:50]*** Cut start [18:29:50]*** Purtial cut [18:29:50]*** CUTSNS_PIN = 0 [18:29:51]*** Stage 1: CUTSNS_PIN = 1 [18:29:52]Read from MH i2c: 01 [18:29:53]MH_I2C_Read... [18:29:53]*** Stop cut motor [18:29:53]*** Cut end [18:29:53]Read from MH i2c: 01 07 00 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: 01 07 00 9F 36 00 00 00 00 00 FF 0F EA [18:29:53]process_action close_receipt done [18:29:53]requested_data is exist [18:29:53]produce_requested_data [18:29:53]requested_item fm.sn is exist - process it [18:29:53]wFMCommunicate request_size=4 [18:29:53]MH_SAM_APDU [18:29:53]CAPDU: 80 11 00 00 [18:29:53]Write to MH i2c: E2 08 00 A0 36 80 11 00 00 00 00 00 00 50 [18:29:53]Write i2c OK [18:29:53]MH_I2C_Read... [18:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:53]Read from MH i2c: E2 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 17 00 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 17 00 A0 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B0 [18:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:29:53]wFMCommunicate OK [18:29:53]requested_item fd.num is exist - process it [18:29:53]SAM_PROTO_GetFieldsCounters [18:29:53]wFMCommunicate request_size=4 [18:29:53]MH_SAM_APDU [18:29:53]CAPDU: 80 13 00 00 [18:29:53]Write to MH i2c: E2 08 00 A1 36 80 13 00 00 00 00 00 00 53 [18:29:53]Write i2c OK [18:29:53]MH_I2C_Read... [18:29:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:53]Read from MH i2c: E2 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 62 00 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 62 00 A1 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 62 7C 02 00 0E 04 04 00 CF 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 DC [18:29:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 62 7C 02 00 0E 04 04 00 CF 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 [18:29:53]wFMCommunicate OK [18:29:53]SAM_PROTO_GetFieldsCounters done [18:29:53]requested_item shift.num is exist - process it [18:29:53]requested_item shift.opened is exist - process it [18:29:53]req_shift_opened [18:29:53]FM_GetShiftState [18:29:53]SAM_PROTO_GetShiftState [18:29:53]wFMCommunicate request_size=4 [18:29:53]MH_SAM_APDU [18:29:53]CAPDU: 80 13 01 00 [18:29:53]Write to MH i2c: E2 08 00 A2 36 80 13 01 00 00 00 00 00 55 [18:29:53]Write i2c OK [18:29:53]MH_I2C_Read... [18:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:53]Read from MH i2c: E2 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 0E 00 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 0E 00 A2 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8B [18:29:53]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:29:53]wFMCommunicate OK [18:29:53]SAM_PROTO_GetShiftState done [18:29:53]FM_GetShiftState done [18:29:53]req_shift_opened done [18:29:53]requested_item shift.open_date is exist - process it [18:29:53]req_shift_open_date [18:29:53]req_shift_open_date done [18:29:53]produce_requested_data done [18:29:53]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162914,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [18:29:53]process_action_free close_receipt [18:29:53]json_value_free [18:29:53]json_value_free done [18:29:53]process_json_proto returns [18:29:53]Send response to host [18:29:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162914,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [18:29:53]free response buf [18:29:53]execute_script done [18:29:53]execute_script returns [18:29:53]free content buf [18:29:53]Sock 9.Close socket [18:29:53]Sock 9.Thread stoped [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]accept exits with 7 [18:34:25]New connection [18:34:25]New thread 3066735972 created [18:34:25]Thread 3066879332 joined [18:34:25]Waiting for new connection... [18:34:25] Sock 7.Parse request [18:34:25]Sock 7.Check first char [18:34:25]Sock 7.First char is OK [18:34:25]request: POST /json_proto HTTP/1.0 [18:34:25]Method: POST [18:34:25]URL: /json_proto [18:34:25]Method is POST - this is cgi request [18:34:25]url: /json_proto [18:34:25]query_string will be loaded in cgi processing [18:34:25]execute_cgi json_proto POST (null) [18:34:25]execute_cgi path=json_proto method=POST [18:34:25]POST find Content-Length [18:34:25]Host: 172.17.39.67:8080 [18:34:25]Content-Length: 688 [18:34:25]Content-Type: application/json [18:34:25] [18:34:25]POST finish read [18:34:25]Found Content-Length = 688 [18:34:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:25]execute_script... [18:34: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)1319526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:25]POST & json_proto [18:34:25]process_json_proto [18:34:25]json parsed OK: [18:34:25]protocol is kg_v1.0 [18:34:25]action value=close_receipt [18:34:25]process_action close_receipt [18:34:25]cmd_close_receipt [18:34:25]MH_GetDate [18:34:25]Write to MH i2c: F0 00 00 A3 36 C8 [18:34:25]Write i2c OK [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: F0 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: F0 09 00 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: F0 09 00 A3 36 00 33 1A 94 66 B6 85 93 66 4C [18:34:25]GetLastDocTimeStamp 1720981790 [18:34:25]current date 1720982067 [18:34:25]FM_GetShiftState [18:34:25]SAM_PROTO_GetShiftState [18:34:25]wFMCommunicate request_size=4 [18:34:25]MH_SAM_APDU [18:34:25]CAPDU: 80 13 01 00 [18:34:25]Write to MH i2c: E2 08 00 A4 36 80 13 01 00 00 00 00 00 57 [18:34:25]Write i2c OK [18:34:25]MH_I2C_Read... [18:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:25]Read from MH i2c: E2 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: E2 0E 00 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: E2 0E 00 A4 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8D [18:34:25]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:34:25]wFMCommunicate OK [18:34:25]SAM_PROTO_GetShiftState done [18:34:25]FM_GetShiftState done [18:34:25]opened in 1720915483 [18:34:25]opened+sec_in_day 1721001883 [18:34:25]quantity*price = 150064 [18:34:25]sum+1 = 150065 [18:34:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 227 14.07.2024 18:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162915 ФПД: 141923767031095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T183427&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162915&fm=141923767031095&tin=02508201610067®Number=0000000000090858&sum=150000 [18:34:26]StoreToDocumentArchive [18:34:26]shift 463 fd 162915 [18:34:26]save to /storage/0463/doc_00162915 [18:34:26]save last doc name /storage/0463/doc_00162915 to /storage/kkm_last_doc_name [18:34:26]save OK [18:34:26]Clear old archive folders... [18:34:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:34:26]tlvbuf is B6F43830 [18:34:26]SAM_PROTO_ClearQueue [18:34:26]wFMCommunicate request_size=4 [18:34:26]MH_SAM_APDU [18:34:26]CAPDU: 80 09 00 00 [18:34:26]Write to MH i2c: E2 08 00 B1 36 80 09 00 00 00 00 00 00 59 [18:34:26]Write i2c OK [18:34:26]MH_I2C_Read... [18:34:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:26]Read from MH i2c: E2 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: E2 03 00 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: E2 03 00 B1 36 00 90 00 5B [18:34:26]RAPDU: 90 00 [18:34:26]wFMCommunicate OK [18:34:26]SAM_PROTO_ClearQueue done [18:34:26]KKMCreateOFDPacket [18:34:26]OFDProtocolAddRootSTLVToBuf [18:34:26]FM_MakeSignedData [18:34:26]FM_MakeSignedData [18:34:26]SAM_PROTO_SignData [18:34:26]wFMCommunicate request_size=4 [18:34:26]MH_SAM_APDU [18:34:26]CAPDU: 80 0D 01 02 [18:34:26]Write to MH i2c: E2 08 00 B2 36 80 0D 01 02 00 00 00 00 61 [18:34:26]Write i2c OK [18:34:26]MH_I2C_Read... [18:34:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:26]Read from MH i2c: E2 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: E2 03 00 [18:34:26]MH_I2C_Read... [18:34:26]Read from MH i2c: E2 03 00 B2 36 00 90 00 5C [18:34:26]RAPDU: 90 00 [18:34:26]wFMCommunicate OK [18:34:26]wFMCommunicate request_size=255 [18:34:26]MH_SAM_APDU [18:34:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 E3 00 00 00 F4 03 04 00 33 1A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7C 02 00 35 04 06 00 [18:34:26]Write to MH i2c: E2 02 01 B3 36 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 E3 00 00 00 F4 03 04 00 33 1A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7C 02 00 35 04 06 00 00 00 BE [18:34:26]Write i2c OK [18:34:26]MH_I2C_Read... [18:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:27]Read from MH i2c: E2 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 03 00 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 03 00 B3 36 00 90 00 5D [18:34:27]RAPDU: 90 00 [18:34:27]wFMCommunicate OK [18:34:27]wFMCommunicate request_size=11 [18:34:27]MH_SAM_APDU [18:34:27]CAPDU: 80 0D 02 02 06 81 14 33 B8 15 37 [18:34:27]Write to MH i2c: E2 0E 00 B4 36 80 0D 02 02 06 00 81 14 33 B8 15 37 00 00 3C [18:34:27]Write i2c OK [18:34:27]MH_I2C_Read... [18:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:27]Read from MH i2c: E2 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 03 00 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 03 00 B4 36 00 90 00 5E [18:34:27]RAPDU: 90 00 [18:34:27]wFMCommunicate OK [18:34:27]wFMCommunicate request_size=4 [18:34:27]MH_SAM_APDU [18:34:27]CAPDU: 80 0D 03 02 [18:34:27]Write to MH i2c: E2 08 00 B5 36 80 0D 03 02 00 00 00 00 66 [18:34:27]Write i2c OK [18:34:27]MH_I2C_Read... [18:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:27]Read from MH i2c: E2 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 0B 00 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 0B 00 B5 36 00 13 63 DB 6D A7 26 81 26 90 00 99 [18:34:27]RAPDU: 13 63 DB 6D A7 26 81 26 90 00 [18:34:27]wFMCommunicate OK [18:34:27]SAM_PROTO_SignData done [18:34:27]FM_MakeSignedData done [18:34:27]CreateOFDProtocolMessage [18:34:27]wFMCommunicate request_size=4 [18:34:27]MH_SAM_APDU [18:34:27]CAPDU: 80 11 00 00 [18:34:27]Write to MH i2c: E2 08 00 B6 36 80 11 00 00 00 00 00 00 66 [18:34:27]Write i2c OK [18:34:27]MH_I2C_Read... [18:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:27]Read from MH i2c: E2 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 17 00 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: E2 17 00 B6 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C6 [18:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:34:27]wFMCommunicate OK [18:34:27]CreateOFDProtocolMessage done [18:34:27]OFDSenderStorePacket 162915 [18:34:27]StoreOFDPacket docnum=162915 [18:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E1 7C 08 01 27 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 E3 00 00 00 F4 03 04 00 33 1A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7C 02 00 35 04 06 00 81 14 33 B8 15 37 13 63 DB 6D A7 26 81 26 [18:34:27]CheckFolder [18:34:27]dirname=/storage/ofd_packets [18:34:27]CheckFolder done [18:34:27]ProducePacketName [18:34:27]name=ofd_packets/00162915 [18:34:27]NVStorageSaveData ofd_packets/00162915 [18:34:27]File name is /storage/ofd_packets/00162915 [18:34:27]Write 302 bytes [18:34:27]NVStorageSaveData done [18:34:27]OFDSenderStorePacket done [18:34:27]KKMCreateOFDPacket done [18:34:27]NVStorageSaveData kkm_last_timestamp [18:34:27]File name is /storage/kkm_last_timestamp [18:34:27]Write 4 bytes [18:34:27]NVStorageSaveData done [18:34:27]ExternCall_PrintAddStr [18:34:27]wPrintStart [18:34:27]Write to MH i2c: 01 00 00 B7 36 ED [18:34:27]Write i2c OK [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: 01 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: 01 07 00 [18:34:27]MH_I2C_Read... [18:34:27]Read from MH i2c: 01 07 00 B7 36 00 00 00 00 00 FF 0F 02 [18:34:27]RasterBufferAndPrint [18:34:27]line Счет N : (1)1319526 [18:34:27]line ИНН: 02508201610067 [18:34:27]line Контрольно-Кассовый Чек [18:34:27]line ПРОДАЖА [18:34:27]line ТРК (МРК, ГНК) : 21 [18:34:27]line Товар: 2710194210 [18:34:27]line ДТ(л)-К-5 [18:34:27]line 20.670 * 72.60 [18:34:27]line = 1500.64 [18:34:27]line НДС 12% НСП 1% [18:34:27]line > о реализуемом товаре [18:34:27]line ОКРУГЛЕНИЕ: -0.64 [18:34:27]line ИТОГО: 1500.00 [18:34:27]line Внесено: 1500.00 [18:34:27]line СДАЧА: 0.00 [18:34:27]line НСП 1% : 13.28 [18:34:27]line НДС 12% : 159.36 [18:34:27]line Наличными: 1500.00 [18:34:27]line Безнал.: 0.00 [18:34:27]line Место: АЗС № 140 "Партнер Нефть" [18:34:27]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:34:27]line СНО: Общий режим [18:34:27]line Чек 227 14.07.2024 18:34 [18:34:27]line Смена: 463 ФФД: 1.0 [18:34:27]line ЗНМ: 0300000129 [18:34:27]line РНМ: 0000000000090858 [18:34:27]line Версия ККМ: 001 [18:34:27]line ФМ: 0000000000874899 [18:34:27]line ФД: 162915 [18:34:27]line ФПД: 141923767031095 [18:34:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T183427&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162915&fm=141923767031095&tin=02508201610067®Number=0000000000090858&sum=150000 [18:34:27]OFD Sender: Processing packet 162915 [packets to send 106, broken 105] [18:34:27]ProducePacketName [18:34:27]name=ofd_packets/00162915 [18:34:27]OFD Sender: To server: pG, [18:34:27]CommunicateWithHost lk.salyk.kg:30040 [18:34:27]ConnectInit lk.salyk.kg [18:34:27]written 0, free lines is 4095 [18:34:27]Connected sock=10 [18:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E1 7C 08 01 27 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 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 40 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 E3 00 00 00 F4 03 04 00 33 1A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7C 02 00 35 04 06 00 81 14 33 B8 15 37 13 63 DB 6D A7 26 81 26 [18:34:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C8 BC 47 00 53 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7C 02 00 F4 03 04 00 40 C6 93 66 B6 04 01 00 00 05 49 01 8E 2D 3E 5C 7C [18:34:27]CommunicateWithHost err = 0 [18:34:27]CheckOFDResponse [18:34:27]1017 (14) - 77093643461234 [18:34:27]1041 (16) - 0000000000874899 [18:34:27]1040 (4) - 162915 [18:34:27]1012 (4) - 14.07.2024 12:36 [18:34:27]1206 (1) - 0 [18:34:27]OFD Sender: Remove packet 162915 [18:34:27]ProducePacketName [18:34:27]name=ofd_packets/00162915 [18:34:27]NVStorageDeleteData [18:34:28]Write to MH i2c: 01 00 00 E2 36 18 [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: 01 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: 01 07 00 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: 01 07 00 E2 36 00 00 00 00 00 E5 0C 10 [18:34:28]RasterBufferAndPrint [18:34:28]line [18:34:28]line [18:34:28]line [18:34:28]line [18:34:28]line [18:34:28]written 0, free lines is 3307 [18:34:28]MH_Cut [18:34:28]Write to MH i2c: D1 01 00 E9 36 01 F1 [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: D1 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: D1 01 00 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: D1 01 00 E9 36 00 F0 [18:34:28]Write to MH i2c: 01 00 00 EA 36 20 [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]OFD Sender: No OFD packet to send [18:34:28]*** Cut start [18:34:28]*** Purtial cut [18:34:28]*** Stage 1: CUTSNS_PIN = 1 [18:34:29]Read from MH i2c: 01 [18:34:29]MH_I2C_Read... [18:34:29]*** Stop cut motor [18:34:29]*** Cut end [18:34:29]Read from MH i2c: 01 07 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: 01 07 00 EA 36 00 00 00 00 00 FF 0F 35 [18:34:29]process_action close_receipt done [18:34:29]requested_data is exist [18:34:29]produce_requested_data [18:34:29]requested_item fm.sn is exist - process it [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 11 00 00 [18:34:29]Write to MH i2c: E2 08 00 EB 36 80 11 00 00 00 00 00 00 9B [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 17 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 17 00 EB 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FB [18:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:34:29]wFMCommunicate OK [18:34:29]requested_item fd.num is exist - process it [18:34:29]SAM_PROTO_GetFieldsCounters [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 13 00 00 [18:34:29]Write to MH i2c: E2 08 00 EC 36 80 13 00 00 00 00 00 00 9E [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 62 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 62 00 EC 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 63 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [18:34:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 63 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:29]wFMCommunicate OK [18:34:29]SAM_PROTO_GetFieldsCounters done [18:34:29]requested_item shift.num is exist - process it [18:34:29]requested_item shift.opened is exist - process it [18:34:29]req_shift_opened [18:34:29]FM_GetShiftState [18:34:29]SAM_PROTO_GetShiftState [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 13 01 00 [18:34:29]Write to MH i2c: E2 08 00 ED 36 80 13 01 00 00 00 00 00 A0 [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 0E 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 0E 00 ED 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D6 [18:34:29]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:34:29]wFMCommunicate OK [18:34:29]SAM_PROTO_GetShiftState done [18:34:29]FM_GetShiftState done [18:34:29]req_shift_opened done [18:34:29]requested_item shift.open_date is exist - process it [18:34:29]req_shift_open_date [18:34:29]req_shift_open_date done [18:34:29]produce_requested_data done [18:34:29]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162915,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [18:34:29]process_action_free close_receipt [18:34:29]json_value_free [18:34:29]json_value_free done [18:34:29]process_json_proto returns [18:34:29]Send response to host [18:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162915,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [18:34:29]free response buf [18:34:29]execute_script done [18:34:29]execute_script returns [18:34:29]free content buf [18:34:29]Sock 7.Close socket [18:34:29]Sock 7.Thread stoped [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35: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: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]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:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:45]accept exits with 9 [18:38:45]New connection [18:38:45]New thread 3066879332 created [18:38:45]Thread 3066735972 joined [18:38:45]Waiting for new connection... [18:38:45] Sock 9.Parse request [18:38:45]Sock 9.Check first char [18:38:45]Sock 9.First char is OK [18:38:45]request: POST /json_proto HTTP/1.0 [18:38:45]Method: POST [18:38:45]URL: /json_proto [18:38:45]Method is POST - this is cgi request [18:38:45]url: /json_proto [18:38:45]query_string will be loaded in cgi processing [18:38:45]execute_cgi json_proto POST (null) [18:38:45]execute_cgi path=json_proto method=POST [18:38:45]POST find Content-Length [18:38:45]Host: 172.17.39.67:8080 [18:38:45]Content-Length: 678 [18:38:45]Content-Type: application/json [18:38:45] [18:38:45]POST finish read [18:38:45]Found Content-Length = 678 [18:38:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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:45]execute_script... [18:38: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)1319527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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:45]POST & json_proto [18:38:45]process_json_proto [18:38:45]json parsed OK: [18:38:45]protocol is kg_v1.0 [18:38:45]action value=close_receipt [18:38:45]process_action close_receipt [18:38:45]cmd_close_receipt [18:38:45]MH_GetDate [18:38:45]Write to MH i2c: F0 00 00 EE 36 13 [18:38:45]Write i2c OK [18:38:45]MH_I2C_Read... [18:38:45]Read from MH i2c: F0 [18:38:45]MH_I2C_Read... [18:38:45]Read from MH i2c: F0 09 00 [18:38:45]MH_I2C_Read... [18:38:45]Read from MH i2c: F0 09 00 EE 36 00 37 1B 94 66 B6 85 93 66 9C [18:38:45]GetLastDocTimeStamp 1720982067 [18:38:45]current date 1720982327 [18:38:45]FM_GetShiftState [18:38:45]SAM_PROTO_GetShiftState [18:38:45]wFMCommunicate request_size=4 [18:38:45]MH_SAM_APDU [18:38:45]CAPDU: 80 13 01 00 [18:38:45]Write to MH i2c: E2 08 00 EF 36 80 13 01 00 00 00 00 00 A2 [18:38:45]Write i2c OK [18:38:45]MH_I2C_Read... [18:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:45]Read from MH i2c: E2 [18:38:45]MH_I2C_Read... [18:38:45]Read from MH i2c: E2 0E 00 [18:38:45]MH_I2C_Read... [18:38:45]Read from MH i2c: E2 0E 00 EF 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D8 [18:38:45]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:38:45]wFMCommunicate OK [18:38:45]SAM_PROTO_GetShiftState done [18:38:45]FM_GetShiftState done [18:38:45]opened in 1720915483 [18:38:45]opened+sec_in_day 1721001883 [18:38:45]quantity*price = 30033 [18:38:45]sum+1 = 30035 [18:38:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 228 14.07.2024 18:38 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162916 ФПД: 206038726266136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T183847&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162916&fm=206038726266136&tin=02508201610067®Number=0000000000090858&sum=30000 [18:38:46]StoreToDocumentArchive [18:38:46]shift 463 fd 162916 [18:38:46]save to /storage/0463/doc_00162916 [18:38:46]save last doc name /storage/0463/doc_00162916 to /storage/kkm_last_doc_name [18:38:46]save OK [18:38:46]Clear old archive folders... [18:38:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:46]tlvbuf is 0134DE80 [18:38:46]SAM_PROTO_ClearQueue [18:38:46]wFMCommunicate request_size=4 [18:38:46]MH_SAM_APDU [18:38:46]CAPDU: 80 09 00 00 [18:38:46]Write to MH i2c: E2 08 00 FC 36 80 09 00 00 00 00 00 00 A4 [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 03 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 03 00 FC 36 00 90 00 A6 [18:38:46]RAPDU: 90 00 [18:38:46]wFMCommunicate OK [18:38:46]SAM_PROTO_ClearQueue done [18:38:46]KKMCreateOFDPacket [18:38:46]OFDProtocolAddRootSTLVToBuf [18:38:46]FM_MakeSignedData [18:38:46]FM_MakeSignedData [18:38:46]SAM_PROTO_SignData [18:38:46]wFMCommunicate request_size=4 [18:38:46]MH_SAM_APDU [18:38:46]CAPDU: 80 0D 01 02 [18:38:46]Write to MH i2c: E2 08 00 FD 36 80 0D 01 02 00 00 00 00 AC [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 03 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 03 00 FD 36 00 90 00 A7 [18:38:46]RAPDU: 90 00 [18:38:46]wFMCommunicate OK [18:38:46]wFMCommunicate request_size=255 [18:38:46]MH_SAM_APDU [18:38:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 E4 00 00 00 F4 03 04 00 37 1B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7C 02 00 35 04 06 00 BB [18:38:46]Write to MH i2c: E2 02 01 FE 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 E4 00 00 00 F4 03 04 00 37 1B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7C 02 00 35 04 06 00 BB 00 00 C4 [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 03 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 03 00 FE 36 00 90 00 A8 [18:38:46]RAPDU: 90 00 [18:38:46]wFMCommunicate OK [18:38:46]wFMCommunicate request_size=10 [18:38:46]MH_SAM_APDU [18:38:46]CAPDU: 80 0D 02 02 05 64 21 16 CD 18 [18:38:46]Write to MH i2c: E2 0D 00 FF 36 80 0D 02 02 05 00 64 21 16 CD 18 00 00 39 [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 03 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 03 00 FF 36 00 90 00 A9 [18:38:46]RAPDU: 90 00 [18:38:46]wFMCommunicate OK [18:38:46]wFMCommunicate request_size=4 [18:38:46]MH_SAM_APDU [18:38:46]CAPDU: 80 0D 03 02 [18:38:46]Write to MH i2c: E2 08 00 00 37 80 0D 03 02 00 00 00 00 B2 [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 0B 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 0B 00 00 37 00 58 0D 3C 2B 6A 9D E1 23 90 00 8A [18:38:46]RAPDU: 58 0D 3C 2B 6A 9D E1 23 90 00 [18:38:46]wFMCommunicate OK [18:38:46]SAM_PROTO_SignData done [18:38:46]FM_MakeSignedData done [18:38:46]CreateOFDProtocolMessage [18:38:46]wFMCommunicate request_size=4 [18:38:46]MH_SAM_APDU [18:38:46]CAPDU: 80 11 00 00 [18:38:46]Write to MH i2c: E2 08 00 01 37 80 11 00 00 00 00 00 00 B2 [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:46]Read from MH i2c: E2 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 17 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: E2 17 00 01 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 12 [18:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:38:46]wFMCommunicate OK [18:38:46]CreateOFDProtocolMessage done [18:38:46]OFDSenderStorePacket 162916 [18:38:46]StoreOFDPacket docnum=162916 [18:38:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 12 0A 07 01 BF 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 E4 00 00 00 F4 03 04 00 37 1B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7C 02 00 35 04 06 00 BB 64 21 16 CD 18 58 0D 3C 2B 6A 9D E1 23 [18:38:46]CheckFolder [18:38:46]dirname=/storage/ofd_packets [18:38:46]CheckFolder done [18:38:46]ProducePacketName [18:38:46]name=ofd_packets/00162916 [18:38:46]NVStorageSaveData ofd_packets/00162916 [18:38:46]File name is /storage/ofd_packets/00162916 [18:38:46]Write 301 bytes [18:38:46]NVStorageSaveData done [18:38:46]OFDSenderStorePacket done [18:38:46]KKMCreateOFDPacket done [18:38:46]NVStorageSaveData kkm_last_timestamp [18:38:46]File name is /storage/kkm_last_timestamp [18:38:46]Write 4 bytes [18:38:46]NVStorageSaveData done [18:38:46]ExternCall_PrintAddStr [18:38:46]wPrintStart [18:38:46]Write to MH i2c: 01 00 00 02 37 39 [18:38:46]Write i2c OK [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: 01 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: 01 07 00 [18:38:46]MH_I2C_Read... [18:38:46]Read from MH i2c: 01 07 00 02 37 00 00 00 00 00 FF 0F 4E [18:38:46]RasterBufferAndPrint [18:38:46]line Счет N : (1)1319527 [18:38:46]line ИНН: 02508201610067 [18:38:46]line Контрольно-Кассовый Чек [18:38:46]line ПРОДАЖА [18:38:46]line ТРК (МРК, ГНК) : 33 [18:38:46]line Товар: 2710124130 [18:38:46]line Аи-92-К-5 [18:38:46]line 4.530 * 66.30 [18:38:46]line = 300.34 [18:38:46]line НДС 12% НСП 1% [18:38:46]line > о реализуемом товаре [18:38:46]line ОКРУГЛЕНИЕ: -0.34 [18:38:46]line ИТОГО: 300.00 [18:38:46]line Внесено: 300.00 [18:38:46]line СДАЧА: 0.00 [18:38:46]line НСП 1% : 2.66 [18:38:46]line НДС 12% : 31.89 [18:38:46]line Наличными: 300.00 [18:38:46]line Безнал.: 0.00 [18:38:46]line Место: АЗС № 140 "Партнер Нефть" [18:38:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:38:46]line СНО: Общий режим [18:38:46]line Чек 228 14.07.2024 18:38 [18:38:46]line Смена: 463 ФФД: 1.0 [18:38:47]line ЗНМ: 0300000129 [18:38:47]line РНМ: 0000000000090858 [18:38:47]line Версия ККМ: 001 [18:38:47]line ФМ: 0000000000874899 [18:38:47]line ФД: 162916 [18:38:47]line ФПД: 206038726266136 [18:38:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T183847&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162916&fm=206038726266136&tin=02508201610067®Number=0000000000090858&sum=30000 [18:38:47]OFD Sender: Processing packet 162916 [packets to send 106, broken 105] [18:38:47]ProducePacketName [18:38:47]name=ofd_packets/00162916 [18:38:47]OFD Sender: To server: pG, [18:38:47]CommunicateWithHost lk.salyk.kg:30040 [18:38:47]ConnectInit lk.salyk.kg [18:38:47]written 0, free lines is 4095 [18:38:47]Connected sock=10 [18:38:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 12 0A 07 01 BF 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 E4 00 00 00 F4 03 04 00 37 1B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7C 02 00 35 04 06 00 BB 64 21 16 CD 18 58 0D 3C 2B 6A 9D E1 23 [18:38:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6B 1C 47 00 59 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7C 02 00 F4 03 04 00 44 C7 93 66 B6 04 01 00 00 BD 20 C5 F4 E8 DF 96 E9 [18:38:47]CommunicateWithHost err = 0 [18:38:47]CheckOFDResponse [18:38:47]1017 (14) - 77093643461234 [18:38:47]1041 (16) - 0000000000874899 [18:38:47]1040 (4) - 162916 [18:38:47]1012 (4) - 14.07.2024 12:40 [18:38:47]1206 (1) - 0 [18:38:47]OFD Sender: Remove packet 162916 [18:38:47]ProducePacketName [18:38:47]name=ofd_packets/00162916 [18:38:47]NVStorageDeleteData [18:38:47]Write to MH i2c: 01 00 00 2D 37 64 [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: 01 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: 01 07 00 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: 01 07 00 2D 37 00 00 00 00 00 DC 0C 53 [18:38:47]RasterBufferAndPrint [18:38:47]line [18:38:47]line [18:38:47]line [18:38:47]line [18:38:47]line [18:38:47]written 0, free lines is 3300 [18:38:47]MH_Cut [18:38:47]Write to MH i2c: D1 01 00 34 37 01 3D [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: D1 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: D1 01 00 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: D1 01 00 34 37 00 3C [18:38:47]Write to MH i2c: 01 00 00 35 37 6C [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:48]OFD Sender: No OFD packet to send [18:38:48]*** Cut start [18:38:48]*** Purtial cut [18:38:48]*** CUTSNS_PIN = 0 [18:38:48]*** Stage 1: CUTSNS_PIN = 1 [18:38:50]Read from MH i2c: 01 [18:38:50]MH_I2C_Read... [18:38:50]*** Stop cut motor [18:38:50]*** Cut end [18:38:50]Read from MH i2c: 01 07 00 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: 01 07 00 35 37 00 00 00 00 00 FF 0F 81 [18:38:50]process_action close_receipt done [18:38:50]requested_data is exist [18:38:50]produce_requested_data [18:38:50]requested_item fm.sn is exist - process it [18:38:50]wFMCommunicate request_size=4 [18:38:50]MH_SAM_APDU [18:38:50]CAPDU: 80 11 00 00 [18:38:50]Write to MH i2c: E2 08 00 36 37 80 11 00 00 00 00 00 00 E7 [18:38:50]Write i2c OK [18:38:50]MH_I2C_Read... [18:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:50]Read from MH i2c: E2 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 17 00 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 17 00 36 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 47 [18:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:38:50]wFMCommunicate OK [18:38:50]requested_item fd.num is exist - process it [18:38:50]SAM_PROTO_GetFieldsCounters [18:38:50]wFMCommunicate request_size=4 [18:38:50]MH_SAM_APDU [18:38:50]CAPDU: 80 13 00 00 [18:38:50]Write to MH i2c: E2 08 00 37 37 80 13 00 00 00 00 00 00 EA [18:38:50]Write i2c OK [18:38:50]MH_I2C_Read... [18:38:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:50]Read from MH i2c: E2 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 62 00 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 62 00 37 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 64 7C 02 00 0E 04 04 00 CF 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 7B [18:38:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 64 7C 02 00 0E 04 04 00 CF 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 [18:38:50]wFMCommunicate OK [18:38:50]SAM_PROTO_GetFieldsCounters done [18:38:50]requested_item shift.num is exist - process it [18:38:50]requested_item shift.opened is exist - process it [18:38:50]req_shift_opened [18:38:50]FM_GetShiftState [18:38:50]SAM_PROTO_GetShiftState [18:38:50]wFMCommunicate request_size=4 [18:38:50]MH_SAM_APDU [18:38:50]CAPDU: 80 13 01 00 [18:38:50]Write to MH i2c: E2 08 00 38 37 80 13 01 00 00 00 00 00 EC [18:38:50]Write i2c OK [18:38:50]MH_I2C_Read... [18:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:50]Read from MH i2c: E2 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 0E 00 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 0E 00 38 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 22 [18:38:50]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:38:50]wFMCommunicate OK [18:38:50]SAM_PROTO_GetShiftState done [18:38:50]FM_GetShiftState done [18:38:50]req_shift_opened done [18:38:50]requested_item shift.open_date is exist - process it [18:38:50]req_shift_open_date [18:38:50]req_shift_open_date done [18:38:50]produce_requested_data done [18:38:50]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162916,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [18:38:50]process_action_free close_receipt [18:38:50]json_value_free [18:38:50]json_value_free done [18:38:50]process_json_proto returns [18:38:50]Send response to host [18:38:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162916,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [18:38:50]free response buf [18:38:50]execute_script done [18:38:50]execute_script returns [18:38:50]free content buf [18:38:50]Sock 9.Close socket [18:38:50]Sock 9.Thread stoped [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:03]accept exits with 7 [18:43:03]New connection [18:43:03]New thread 3066735972 created [18:43:03]Thread 3066879332 joined [18:43:03]Waiting for new connection... [18:43:03] Sock 7.Parse request [18:43:03]Sock 7.Check first char [18:43:03]Sock 7.First char is OK [18:43:03]request: POST /json_proto HTTP/1.0 [18:43:03]Method: POST [18:43:03]URL: /json_proto [18:43:03]Method is POST - this is cgi request [18:43:03]url: /json_proto [18:43:03]query_string will be loaded in cgi processing [18:43:03]execute_cgi json_proto POST (null) [18:43:03]execute_cgi path=json_proto method=POST [18:43:03]POST find Content-Length [18:43:03]Host: 172.17.39.67:8080 [18:43:03]Content-Length: 678 [18:43:03]Content-Type: application/json [18:43:03] [18:43:03]POST finish read [18:43:03]Found Content-Length = 678 [18:43:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.080, "sum" : 270.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:03]execute_script... [18:43:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.080, "sum" : 270.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:03]POST & json_proto [18:43:03]process_json_proto [18:43:03]json parsed OK: [18:43:03]protocol is kg_v1.0 [18:43:03]action value=close_receipt [18:43:03]process_action close_receipt [18:43:03]cmd_close_receipt [18:43:03]MH_GetDate [18:43:03]Write to MH i2c: F0 00 00 39 37 5F [18:43:03]Write i2c OK [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: F0 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: F0 09 00 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: F0 09 00 39 37 00 39 1C 94 66 B6 85 93 66 EB [18:43:03]GetLastDocTimeStamp 1720982327 [18:43:03]current date 1720982585 [18:43:03]FM_GetShiftState [18:43:03]SAM_PROTO_GetShiftState [18:43:03]wFMCommunicate request_size=4 [18:43:03]MH_SAM_APDU [18:43:03]CAPDU: 80 13 01 00 [18:43:03]Write to MH i2c: E2 08 00 3A 37 80 13 01 00 00 00 00 00 EE [18:43:03]Write i2c OK [18:43:03]MH_I2C_Read... [18:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:03]Read from MH i2c: E2 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 0E 00 [18:43:03]MH_I2C_Read... [18:43:03]Read from MH i2c: E2 0E 00 3A 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 24 [18:43:03]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:43:03]wFMCommunicate OK [18:43:03]SAM_PROTO_GetShiftState done [18:43:03]FM_GetShiftState done [18:43:03]opened in 1720915483 [18:43:03]opened+sec_in_day 1721001883 [18:43:03]quantity*price = 27050 [18:43:03]sum+1 = 27051 [18:43:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.73 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 229 14.07.2024 18:43 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162917 ФПД: 185112937514428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T184305&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162917&fm=185112937514428&tin=02508201610067®Number=0000000000090858&sum=27000 [18:43:04]StoreToDocumentArchive [18:43:04]shift 463 fd 162917 [18:43:04]save to /storage/0463/doc_00162917 [18:43:04]save last doc name /storage/0463/doc_00162917 to /storage/kkm_last_doc_name [18:43:04]save OK [18:43:04]Clear old archive folders... [18:43:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:04]tlvbuf is 0134E210 [18:43:04]SAM_PROTO_ClearQueue [18:43:04]wFMCommunicate request_size=4 [18:43:04]MH_SAM_APDU [18:43:04]CAPDU: 80 09 00 00 [18:43:04]Write to MH i2c: E2 08 00 47 37 80 09 00 00 00 00 00 00 F0 [18:43:04]Write i2c OK [18:43:04]MH_I2C_Read... [18:43:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:04]Read from MH i2c: E2 [18:43:04]MH_I2C_Read... [18:43:04]Read from MH i2c: E2 03 00 [18:43:04]MH_I2C_Read... [18:43:04]Read from MH i2c: E2 03 00 47 37 00 90 00 F2 [18:43:04]RAPDU: 90 00 [18:43:04]wFMCommunicate OK [18:43:04]SAM_PROTO_ClearQueue done [18:43:04]KKMCreateOFDPacket [18:43:04]OFDProtocolAddRootSTLVToBuf [18:43:04]FM_MakeSignedData [18:43:04]FM_MakeSignedData [18:43:04]SAM_PROTO_SignData [18:43:04]wFMCommunicate request_size=4 [18:43:04]MH_SAM_APDU [18:43:04]CAPDU: 80 0D 01 02 [18:43:04]Write to MH i2c: E2 08 00 48 37 80 0D 01 02 00 00 00 00 F8 [18:43:04]Write i2c OK [18:43:04]MH_I2C_Read... [18:43:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:04]Read from MH i2c: E2 [18:43:04]MH_I2C_Read... [18:43:04]Read from MH i2c: E2 03 00 [18:43:04]MH_I2C_Read... [18:43:04]Read from MH i2c: E2 03 00 48 37 00 90 00 F3 [18:43:04]RAPDU: 90 00 [18:43:04]wFMCommunicate OK [18:43:04]wFMCommunicate request_size=255 [18:43:04]MH_SAM_APDU [18:43: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 F0 0F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AA 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 39 1C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7C 02 00 35 04 06 00 A8 [18:43:04]Write to MH i2c: E2 02 01 49 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 0F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AA 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 39 1C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7C 02 00 35 04 06 00 A8 00 00 A9 [18:43:04]Write i2c OK [18:43:04]MH_I2C_Read... [18:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:05]Read from MH i2c: E2 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 03 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 03 00 49 37 00 90 00 F4 [18:43:05]RAPDU: 90 00 [18:43:05]wFMCommunicate OK [18:43:05]wFMCommunicate request_size=10 [18:43:05]MH_SAM_APDU [18:43:05]CAPDU: 80 0D 02 02 05 5B F6 E2 45 BC [18:43:05]Write to MH i2c: E2 0D 00 4A 37 80 0D 02 02 05 00 5B F6 E2 45 BC 00 00 39 [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:05]Read from MH i2c: E2 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 03 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 03 00 4A 37 00 90 00 F5 [18:43:05]RAPDU: 90 00 [18:43:05]wFMCommunicate OK [18:43:05]wFMCommunicate request_size=4 [18:43:05]MH_SAM_APDU [18:43:05]CAPDU: 80 0D 03 02 [18:43:05]Write to MH i2c: E2 08 00 4B 37 80 0D 03 02 00 00 00 00 FD [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:05]Read from MH i2c: E2 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 0B 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 0B 00 4B 37 00 98 3C 97 C3 72 FD 96 E6 90 00 17 [18:43:05]RAPDU: 98 3C 97 C3 72 FD 96 E6 90 00 [18:43:05]wFMCommunicate OK [18:43:05]SAM_PROTO_SignData done [18:43:05]FM_MakeSignedData done [18:43:05]CreateOFDProtocolMessage [18:43:05]wFMCommunicate request_size=4 [18:43:05]MH_SAM_APDU [18:43:05]CAPDU: 80 11 00 00 [18:43:05]Write to MH i2c: E2 08 00 4C 37 80 11 00 00 00 00 00 00 FD [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:05]Read from MH i2c: E2 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 17 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 17 00 4C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5D [18:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:43:05]wFMCommunicate OK [18:43:05]CreateOFDProtocolMessage done [18:43:05]OFDSenderStorePacket 162917 [18:43:05]StoreOFDPacket docnum=162917 [18:43:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FC 03 07 01 57 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 0F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AA 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 39 1C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7C 02 00 35 04 06 00 A8 5B F6 E2 45 BC 98 3C 97 C3 72 FD 96 E6 [18:43:05]CheckFolder [18:43:05]dirname=/storage/ofd_packets [18:43:05]CheckFolder done [18:43:05]ProducePacketName [18:43:05]name=ofd_packets/00162917 [18:43:05]NVStorageSaveData ofd_packets/00162917 [18:43:05]File name is /storage/ofd_packets/00162917 [18:43:05]Write 301 bytes [18:43:05]NVStorageSaveData done [18:43:05]OFDSenderStorePacket done [18:43:05]KKMCreateOFDPacket done [18:43:05]NVStorageSaveData kkm_last_timestamp [18:43:05]File name is /storage/kkm_last_timestamp [18:43:05]Write 4 bytes [18:43:05]NVStorageSaveData done [18:43:05]ExternCall_PrintAddStr [18:43:05]wPrintStart [18:43:05]Write to MH i2c: 01 00 00 4D 37 84 [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: 01 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: 01 07 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: 01 07 00 4D 37 00 00 00 00 00 FF 0F 99 [18:43:05]RasterBufferAndPrint [18:43:05]line Счет N : (1)1319528 [18:43:05]line ИНН: 02508201610067 [18:43:05]line Контрольно-Кассовый Чек [18:43:05]line ПРОДАЖА [18:43:05]line ТРК (МРК, ГНК) : 33 [18:43:05]line Товар: 2710124130 [18:43:05]line Аи-92-К-5 [18:43:05]line 4.080 * 66.30 [18:43:05]line = 270.50 [18:43:05]line НДС 12% НСП 1% [18:43:05]line > о реализуемом товаре [18:43:05]line ОКРУГЛЕНИЕ: -0.50 [18:43:05]line ИТОГО: 270.00 [18:43:05]line Внесено: 270.00 [18:43:05]line СДАЧА: 0.00 [18:43:05]line НСП 1% : 2.39 [18:43:05]line НДС 12% : 28.73 [18:43:05]line Наличными: 270.00 [18:43:05]line Безнал.: 0.00 [18:43:05]line Место: АЗС № 140 "Партнер Нефть" [18:43:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:43:05]line СНО: Общий режим [18:43:05]line Чек 229 14.07.2024 18:43 [18:43:05]line Смена: 463 ФФД: 1.0 [18:43:05]line ЗНМ: 0300000129 [18:43:05]line РНМ: 0000000000090858 [18:43:05]line Версия ККМ: 001 [18:43:05]line ФМ: 0000000000874899 [18:43:05]line ФД: 162917 [18:43:05]line ФПД: 185112937514428 [18:43:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T184305&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162917&fm=185112937514428&tin=02508201610067®Number=0000000000090858&sum=27000 [18:43:05]OFD Sender: Processing packet 162917 [packets to send 106, broken 105] [18:43:05]ProducePacketName [18:43:05]name=ofd_packets/00162917 [18:43:05]OFD Sender: To server: pG, [18:43:05]CommunicateWithHost lk.salyk.kg:30040 [18:43:05]ConnectInit lk.salyk.kg [18:43:05]written 0, free lines is 4095 [18:43:05]Connected sock=10 [18:43:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FC 03 07 01 57 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 0F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AA 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 39 1C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7C 02 00 35 04 06 00 A8 5B F6 E2 45 BC 98 3C 97 C3 72 FD 96 E6 [18:43:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 EA F1 47 00 E5 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7C 02 00 F4 03 04 00 46 C8 93 66 B6 04 01 00 00 D5 AA 79 AA 2E 7B 72 06 [18:43:05]CommunicateWithHost err = 0 [18:43:05]CheckOFDResponse [18:43:05]1017 (14) - 77093643461234 [18:43:05]1041 (16) - 0000000000874899 [18:43:05]1040 (4) - 162917 [18:43:05]1012 (4) - 14.07.2024 12:44 [18:43:05]1206 (1) - 0 [18:43:05]OFD Sender: Remove packet 162917 [18:43:05]ProducePacketName [18:43:05]name=ofd_packets/00162917 [18:43:05]NVStorageDeleteData [18:43:06]Write to MH i2c: 01 00 00 78 37 AF [18:43:06]Write i2c OK [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: 01 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: 01 07 00 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: 01 07 00 78 37 00 00 00 00 00 D7 0C 99 [18:43:06]RasterBufferAndPrint [18:43:06]line [18:43:06]line [18:43:06]line [18:43:06]line [18:43:06]line [18:43:06]written 0, free lines is 3296 [18:43:06]MH_Cut [18:43:06]Write to MH i2c: D1 01 00 7F 37 01 88 [18:43:06]Write i2c OK [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: D1 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: D1 01 00 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: D1 01 00 7F 37 00 87 [18:43:06]Write to MH i2c: 01 00 00 80 37 B7 [18:43:06]Write i2c OK [18:43:06]MH_I2C_Read... [18:43:06]OFD Sender: No OFD packet to send [18:43:06]*** Cut start [18:43:06]*** Purtial cut [18:43:06]*** Stage 1: CUTSNS_PIN = 1 [18:43:07]Read from MH i2c: 01 [18:43:07]MH_I2C_Read... [18:43:07]*** Stop cut motor [18:43:07]*** Cut end [18:43:07]Read from MH i2c: 01 07 00 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: 01 07 00 80 37 00 00 00 00 00 FF 0F CC [18:43:07]process_action close_receipt done [18:43:07]requested_data is exist [18:43:07]produce_requested_data [18:43:07]requested_item fm.sn is exist - process it [18:43:07]wFMCommunicate request_size=4 [18:43:07]MH_SAM_APDU [18:43:07]CAPDU: 80 11 00 00 [18:43:07]Write to MH i2c: E2 08 00 81 37 80 11 00 00 00 00 00 00 32 [18:43:07]Write i2c OK [18:43:07]MH_I2C_Read... [18:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:07]Read from MH i2c: E2 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 17 00 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 17 00 81 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 92 [18:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:43:07]wFMCommunicate OK [18:43:07]requested_item fd.num is exist - process it [18:43:07]SAM_PROTO_GetFieldsCounters [18:43:07]wFMCommunicate request_size=4 [18:43:07]MH_SAM_APDU [18:43:07]CAPDU: 80 13 00 00 [18:43:07]Write to MH i2c: E2 08 00 82 37 80 13 00 00 00 00 00 00 35 [18:43:07]Write i2c OK [18:43:07]MH_I2C_Read... [18:43:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:07]Read from MH i2c: E2 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 62 00 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 62 00 82 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 65 7C 02 00 0E 04 04 00 CF 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 CA [18:43:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 65 7C 02 00 0E 04 04 00 CF 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 [18:43:07]wFMCommunicate OK [18:43:07]SAM_PROTO_GetFieldsCounters done [18:43:07]requested_item shift.num is exist - process it [18:43:07]requested_item shift.opened is exist - process it [18:43:07]req_shift_opened [18:43:07]FM_GetShiftState [18:43:07]SAM_PROTO_GetShiftState [18:43:07]wFMCommunicate request_size=4 [18:43:07]MH_SAM_APDU [18:43:07]CAPDU: 80 13 01 00 [18:43:07]Write to MH i2c: E2 08 00 83 37 80 13 01 00 00 00 00 00 37 [18:43:07]Write i2c OK [18:43:07]MH_I2C_Read... [18:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:07]Read from MH i2c: E2 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 0E 00 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 0E 00 83 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6D [18:43:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:43:07]wFMCommunicate OK [18:43:07]SAM_PROTO_GetShiftState done [18:43:07]FM_GetShiftState done [18:43:07]req_shift_opened done [18:43:07]requested_item shift.open_date is exist - process it [18:43:07]req_shift_open_date [18:43:07]req_shift_open_date done [18:43:07]produce_requested_data done [18:43:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162917,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [18:43:07]process_action_free close_receipt [18:43:07]json_value_free [18:43:07]json_value_free done [18:43:07]process_json_proto returns [18:43:07]Send response to host [18:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162917,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [18:43:07]free response buf [18:43:07]execute_script done [18:43:07]execute_script returns [18:43:07]free content buf [18:43:07]Sock 7.Close socket [18:43:07]Sock 7.Thread stoped [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: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:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]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:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [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:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:28]accept exits with 9 [18:56:28]New connection [18:56:28]New thread 3066879332 created [18:56:28]Thread 3066735972 joined [18:56:28]Waiting for new connection... [18:56:28] Sock 9.Parse request [18:56:28]Sock 9.Check first char [18:56:28]Sock 9.First char is OK [18:56:28]request: POST /json_proto HTTP/1.0 [18:56:28]Method: POST [18:56:28]URL: /json_proto [18:56:28]Method is POST - this is cgi request [18:56:28]url: /json_proto [18:56:28]query_string will be loaded in cgi processing [18:56:28]execute_cgi json_proto POST (null) [18:56:28]execute_cgi path=json_proto method=POST [18:56:28]POST find Content-Length [18:56:28]Host: 172.17.39.67:8080 [18:56:28]Content-Length: 688 [18:56:28]Content-Type: application/json [18:56:28] [18:56:28]POST finish read [18:56:28]Found Content-Length = 688 [18:56:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 18.940, "sum" : 1375.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1375.00, "total" : 1375.00, "payments": [ { "type": 0, "sum" : 1375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:28]execute_script... [18:56: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)1319530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 18.940, "sum" : 1375.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1375.00, "total" : 1375.00, "payments": [ { "type": 0, "sum" : 1375.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:28]POST & json_proto [18:56:28]process_json_proto [18:56:28]json parsed OK: [18:56:28]protocol is kg_v1.0 [18:56:28]action value=close_receipt [18:56:28]process_action close_receipt [18:56:28]cmd_close_receipt [18:56:28]MH_GetDate [18:56:28]Write to MH i2c: F0 00 00 84 37 AA [18:56:28]Write i2c OK [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: F0 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: F0 09 00 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: F0 09 00 84 37 00 5F 1F 94 66 B6 85 93 66 5F [18:56:28]GetLastDocTimeStamp 1720982585 [18:56:28]current date 1720983391 [18:56:28]FM_GetShiftState [18:56:28]SAM_PROTO_GetShiftState [18:56:28]wFMCommunicate request_size=4 [18:56:28]MH_SAM_APDU [18:56:28]CAPDU: 80 13 01 00 [18:56:28]Write to MH i2c: E2 08 00 85 37 80 13 01 00 00 00 00 00 39 [18:56:28]Write i2c OK [18:56:28]MH_I2C_Read... [18:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:28]Read from MH i2c: E2 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 0E 00 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 0E 00 85 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6F [18:56:28]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:56:28]wFMCommunicate OK [18:56:28]SAM_PROTO_GetShiftState done [18:56:28]FM_GetShiftState done [18:56:28]opened in 1720915483 [18:56:28]opened+sec_in_day 1721001883 [18:56:28]quantity*price = 137504 [18:56:28]sum+1 = 137505 [18:56:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1375.00 Внесено: 1375.00 СДАЧА: 0.00 НСП 1% : 12.17 НДС 12% : 146.02 Наличными: 1375.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 230 14.07.2024 18:56 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162918 ФПД: 277725704922643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T185631&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162918&fm=277725704922643&tin=02508201610067®Number=0000000000090858&sum=137500 [18:56:30]StoreToDocumentArchive [18:56:30]shift 463 fd 162918 [18:56:30]save to /storage/0463/doc_00162918 [18:56:30]save last doc name /storage/0463/doc_00162918 to /storage/kkm_last_doc_name [18:56:30]save OK [18:56:30]Clear old archive folders... [18:56:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:56:30]tlvbuf is 01343AD0 [18:56:30]SAM_PROTO_ClearQueue [18:56:30]wFMCommunicate request_size=4 [18:56:30]MH_SAM_APDU [18:56:30]CAPDU: 80 09 00 00 [18:56:30]Write to MH i2c: E2 08 00 92 37 80 09 00 00 00 00 00 00 3B [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 03 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 03 00 92 37 00 90 00 3D [18:56:30]RAPDU: 90 00 [18:56:30]wFMCommunicate OK [18:56:30]SAM_PROTO_ClearQueue done [18:56:30]KKMCreateOFDPacket [18:56:30]OFDProtocolAddRootSTLVToBuf [18:56:30]FM_MakeSignedData [18:56:30]FM_MakeSignedData [18:56:30]SAM_PROTO_SignData [18:56:30]wFMCommunicate request_size=4 [18:56:30]MH_SAM_APDU [18:56:30]CAPDU: 80 0D 01 02 [18:56:30]Write to MH i2c: E2 08 00 93 37 80 0D 01 02 00 00 00 00 43 [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 03 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 03 00 93 37 00 90 00 3E [18:56:30]RAPDU: 90 00 [18:56:30]wFMCommunicate OK [18:56:30]wFMCommunicate request_size=255 [18:56:30]MH_SAM_APDU [18:56:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 49 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 20 19 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 19 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 39 00 00 00 00 07 04 06 00 1C 19 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 5F 1F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7C 02 00 35 04 06 00 [18:56:30]Write to MH i2c: E2 02 01 94 37 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 49 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 20 19 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 19 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 39 00 00 00 00 07 04 06 00 1C 19 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 5F 1F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7C 02 00 35 04 06 00 00 00 1A [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 03 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 03 00 94 37 00 90 00 3F [18:56:30]RAPDU: 90 00 [18:56:30]wFMCommunicate OK [18:56:30]wFMCommunicate request_size=11 [18:56:30]MH_SAM_APDU [18:56:30]CAPDU: 80 0D 02 02 06 FC 97 0D FC A6 13 [18:56:30]Write to MH i2c: E2 0E 00 95 37 80 0D 02 02 06 00 FC 97 0D FC A6 13 00 00 A7 [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 03 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 03 00 95 37 00 90 00 40 [18:56:30]RAPDU: 90 00 [18:56:30]wFMCommunicate OK [18:56:30]wFMCommunicate request_size=4 [18:56:30]MH_SAM_APDU [18:56:30]CAPDU: 80 0D 03 02 [18:56:30]Write to MH i2c: E2 08 00 96 37 80 0D 03 02 00 00 00 00 48 [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 0B 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 0B 00 96 37 00 08 AE DF CB BF F5 F9 33 90 00 89 [18:56:30]RAPDU: 08 AE DF CB BF F5 F9 33 90 00 [18:56:30]wFMCommunicate OK [18:56:30]SAM_PROTO_SignData done [18:56:30]FM_MakeSignedData done [18:56:30]CreateOFDProtocolMessage [18:56:30]wFMCommunicate request_size=4 [18:56:30]MH_SAM_APDU [18:56:30]CAPDU: 80 11 00 00 [18:56:30]Write to MH i2c: E2 08 00 97 37 80 11 00 00 00 00 00 00 48 [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 17 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 17 00 97 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A8 [18:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:56:30]wFMCommunicate OK [18:56:30]CreateOFDProtocolMessage done [18:56:30]OFDSenderStorePacket 162918 [18:56:30]StoreOFDPacket docnum=162918 [18:56:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 78 3D 08 01 FC 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 49 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 20 19 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 19 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 39 00 00 00 00 07 04 06 00 1C 19 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 5F 1F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7C 02 00 35 04 06 00 FC 97 0D FC A6 13 08 AE DF CB BF F5 F9 33 [18:56:30]CheckFolder [18:56:30]dirname=/storage/ofd_packets [18:56:30]CheckFolder done [18:56:30]ProducePacketName [18:56:30]name=ofd_packets/00162918 [18:56:30]NVStorageSaveData ofd_packets/00162918 [18:56:30]File name is /storage/ofd_packets/00162918 [18:56:30]Write 302 bytes [18:56:30]NVStorageSaveData done [18:56:30]OFDSenderStorePacket done [18:56:30]KKMCreateOFDPacket done [18:56:30]NVStorageSaveData kkm_last_timestamp [18:56:30]File name is /storage/kkm_last_timestamp [18:56:30]Write 4 bytes [18:56:30]NVStorageSaveData done [18:56:30]ExternCall_PrintAddStr [18:56:30]wPrintStart [18:56:30]Write to MH i2c: 01 00 00 98 37 CF [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: 01 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: 01 07 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: 01 07 00 98 37 00 00 00 00 00 FF 0F E4 [18:56:30]RasterBufferAndPrint [18:56:30]line Счет N : (1)1319530 [18:56:30]line ИНН: 02508201610067 [18:56:30]line Контрольно-Кассовый Чек [18:56:30]line ПРОДАЖА [18:56:30]line ТРК (МРК, ГНК) : 11 [18:56:30]line Товар: 2710194210 [18:56:30]line ДТ(л)-К-5 [18:56:30]line 18.940 * 72.60 [18:56:30]line = 1375.04 [18:56:30]line НДС 12% НСП 1% [18:56:30]line > о реализуемом товаре [18:56:30]line ОКРУГЛЕНИЕ: -0.04 [18:56:30]line ИТОГО: 1375.00 [18:56:30]line Внесено: 1375.00 [18:56:30]line СДАЧА: 0.00 [18:56:30]line НСП 1% : 12.17 [18:56:30]line НДС 12% : 146.02 [18:56:30]line Наличными: 1375.00 [18:56:30]line Безнал.: 0.00 [18:56:30]line Место: АЗС № 140 "Партнер Нефть" [18:56:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:56:30]line СНО: Общий режим [18:56:30]line Чек 230 14.07.2024 18:56 [18:56:30]line Смена: 463 ФФД: 1.0 [18:56:30]line ЗНМ: 0300000129 [18:56:30]line РНМ: 0000000000090858 [18:56:30]line Версия ККМ: 001 [18:56:30]line ФМ: 0000000000874899 [18:56:30]line ФД: 162918 [18:56:30]line ФПД: 277725704922643 [18:56:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T185631&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162918&fm=277725704922643&tin=02508201610067®Number=0000000000090858&sum=137500 [18:56:30]OFD Sender: Processing packet 162918 [packets to send 106, broken 105] [18:56:30]ProducePacketName [18:56:30]name=ofd_packets/00162918 [18:56:30]OFD Sender: To server: pG, [18:56:30]CommunicateWithHost lk.salyk.kg:30040 [18:56:30]ConnectInit lk.salyk.kg [18:56:30]written 0, free lines is 4095 [18:56:30]Connected sock=10 [18:56:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 78 3D 08 01 FC 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 49 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 20 19 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 19 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 39 00 00 00 00 07 04 06 00 1C 19 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 5F 1F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7C 02 00 35 04 06 00 FC 97 0D FC A6 13 08 AE DF CB BF F5 F9 33 [18:56:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 EC 8C 47 00 5F 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7C 02 00 F4 03 04 00 6C CB 93 66 B6 04 01 00 00 86 39 72 91 67 2C C4 61 [18:56:31]CommunicateWithHost err = 0 [18:56:31]CheckOFDResponse [18:56:31]1017 (14) - 77093643461234 [18:56:31]1041 (16) - 0000000000874899 [18:56:31]1040 (4) - 162918 [18:56:31]1012 (4) - 14.07.2024 12:58 [18:56:31]1206 (1) - 0 [18:56:31]OFD Sender: Remove packet 162918 [18:56:31]ProducePacketName [18:56:31]name=ofd_packets/00162918 [18:56:31]NVStorageDeleteData [18:56:31]Write to MH i2c: 01 00 00 C3 37 FA [18:56:31]Write i2c OK [18:56:31]MH_I2C_Read... [18:56:31]Read from MH i2c: 01 [18:56:31]MH_I2C_Read... [18:56:31]Read from MH i2c: 01 07 00 [18:56:31]MH_I2C_Read... [18:56:31]Read from MH i2c: 01 07 00 C3 37 00 00 00 00 00 D4 0C E1 [18:56:31]RasterBufferAndPrint [18:56:31]line [18:56:31]line [18:56:31]line [18:56:31]line [18:56:31]line [18:56:31]written 0, free lines is 3294 [18:56:31]MH_Cut [18:56:31]Write to MH i2c: D1 01 00 CA 37 01 D3 [18:56:31]Write i2c OK [18:56:31]MH_I2C_Read... [18:56:31]Read from MH i2c: D1 [18:56:31]MH_I2C_Read... [18:56:31]Read from MH i2c: D1 01 00 [18:56:31]MH_I2C_Read... [18:56:31]Read from MH i2c: D1 01 00 CA 37 00 D2 [18:56:31]Write to MH i2c: 01 00 00 CB 37 02 [18:56:31]Write i2c OK [18:56:31]MH_I2C_Read... [18:56:31]OFD Sender: No OFD packet to send [18:56:32]*** Cut start [18:56:32]*** Purtial cut [18:56:32]*** CUTSNS_PIN = 0 [18:56:32]*** Stage 1: CUTSNS_PIN = 1 [18:56:34]Read from MH i2c: 01 [18:56:34]MH_I2C_Read... [18:56:34]*** Stop cut motor [18:56:34]*** Cut end [18:56:34]Read from MH i2c: 01 07 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: 01 07 00 CB 37 00 00 00 00 00 FF 0F 17 [18:56:34]process_action close_receipt done [18:56:34]requested_data is exist [18:56:34]produce_requested_data [18:56:34]requested_item fm.sn is exist - process it [18:56:34]wFMCommunicate request_size=4 [18:56:34]MH_SAM_APDU [18:56:34]CAPDU: 80 11 00 00 [18:56:34]Write to MH i2c: E2 08 00 CC 37 80 11 00 00 00 00 00 00 7D [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:34]Read from MH i2c: E2 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 17 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 17 00 CC 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DD [18:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:56:34]wFMCommunicate OK [18:56:34]requested_item fd.num is exist - process it [18:56:34]SAM_PROTO_GetFieldsCounters [18:56:34]wFMCommunicate request_size=4 [18:56:34]MH_SAM_APDU [18:56:34]CAPDU: 80 13 00 00 [18:56:34]Write to MH i2c: E2 08 00 CD 37 80 13 00 00 00 00 00 00 80 [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:34]Read from MH i2c: E2 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 62 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 62 00 CD 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 66 7C 02 00 0E 04 04 00 CF 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 19 [18:56:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 66 7C 02 00 0E 04 04 00 CF 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 [18:56:34]wFMCommunicate OK [18:56:34]SAM_PROTO_GetFieldsCounters done [18:56:34]requested_item shift.num is exist - process it [18:56:34]requested_item shift.opened is exist - process it [18:56:34]req_shift_opened [18:56:34]FM_GetShiftState [18:56:34]SAM_PROTO_GetShiftState [18:56:34]wFMCommunicate request_size=4 [18:56:34]MH_SAM_APDU [18:56:34]CAPDU: 80 13 01 00 [18:56:34]Write to MH i2c: E2 08 00 CE 37 80 13 01 00 00 00 00 00 82 [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:34]Read from MH i2c: E2 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 0E 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 0E 00 CE 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B8 [18:56:34]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:56:34]wFMCommunicate OK [18:56:34]SAM_PROTO_GetShiftState done [18:56:34]FM_GetShiftState done [18:56:34]req_shift_opened done [18:56:34]requested_item shift.open_date is exist - process it [18:56:34]req_shift_open_date [18:56:34]req_shift_open_date done [18:56:34]produce_requested_data done [18:56:34]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162918,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [18:56:34]process_action_free close_receipt [18:56:34]json_value_free [18:56:34]json_value_free done [18:56:34]process_json_proto returns [18:56:34]Send response to host [18:56:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162918,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [18:56:34]free response buf [18:56:34]execute_script done [18:56:34]execute_script returns [18:56:34]free content buf [18:56:34]Sock 9.Close socket [18:56:34]Sock 9.Thread stoped [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]accept exits with 7 [18:58:01]New connection [18:58:01]New thread 3066735972 created [18:58:01]Thread 3066879332 joined [18:58:01]Waiting for new connection... [18:58:01] Sock 7.Parse request [18:58:01]Sock 7.Check first char [18:58:01]Sock 7.First char is OK [18:58:01]request: POST /json_proto HTTP/1.0 [18:58:01]Method: POST [18:58:01]URL: /json_proto [18:58:01]Method is POST - this is cgi request [18:58:01]url: /json_proto [18:58:01]query_string will be loaded in cgi processing [18:58:01]execute_cgi json_proto POST (null) [18:58:01]execute_cgi path=json_proto method=POST [18:58:01]POST find Content-Length [18:58:01]Host: 172.17.39.67:8080 [18:58:01]Content-Length: 809 [18:58:01]Content-Type: application/json [18:58:01] [18:58:01]POST finish read [18:58:01]Found Content-Length = 809 [18:58:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:01]execute_script... [18:58:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:01]POST & json_proto [18:58:01]process_json_proto [18:58:01]json parsed OK: [18:58:01]protocol is kg_v1.0 [18:58:01]action value=close_receipt [18:58:01]process_action close_receipt [18:58:01]cmd_close_receipt [18:58:01]MH_GetDate [18:58:01]Write to MH i2c: F0 00 00 CF 37 F5 [18:58:01]Write i2c OK [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: F0 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: F0 09 00 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: F0 09 00 CF 37 00 BB 1F 94 66 B6 85 93 66 06 [18:58:01]GetLastDocTimeStamp 1720983391 [18:58:01]current date 1720983483 [18:58:01]FM_GetShiftState [18:58:01]SAM_PROTO_GetShiftState [18:58:01]wFMCommunicate request_size=4 [18:58:01]MH_SAM_APDU [18:58:01]CAPDU: 80 13 01 00 [18:58:01]Write to MH i2c: E2 08 00 D0 37 80 13 01 00 00 00 00 00 84 [18:58:01]Write i2c OK [18:58:01]MH_I2C_Read... [18:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:01]Read from MH i2c: E2 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: E2 0E 00 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: E2 0E 00 D0 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BA [18:58:01]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:58:01]wFMCommunicate OK [18:58:01]SAM_PROTO_GetShiftState done [18:58:01]FM_GetShiftState done [18:58:01]opened in 1720915483 [18:58:01]opened+sec_in_day 1721001883 [18:58:01]quantity*price = 300055 [18:58:01]sum+1 = 300057 [18:58:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 231 14.07.2024 18:58 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162919 ФПД: 141773497321223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T185803&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162919&fm=141773497321223&tin=02508201610067®Number=0000000000090858&sum=300056 [18:58:02]StoreToDocumentArchive [18:58:02]shift 463 fd 162919 [18:58:02]save to /storage/0463/doc_00162919 [18:58:02]save last doc name /storage/0463/doc_00162919 to /storage/kkm_last_doc_name [18:58:02]save OK [18:58:02]Clear old archive folders... [18:58:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:58:02]tlvbuf is 01326D60 [18:58:02]SAM_PROTO_ClearQueue [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 09 00 00 [18:58:02]Write to MH i2c: E2 08 00 DD 37 80 09 00 00 00 00 00 00 86 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 DD 37 00 90 00 88 [18:58:02]RAPDU: 90 00 [18:58:02]wFMCommunicate OK [18:58:02]SAM_PROTO_ClearQueue done [18:58:02]KKMCreateOFDPacket [18:58:02]OFDProtocolAddRootSTLVToBuf [18:58:02]FM_MakeSignedData [18:58:02]FM_MakeSignedData [18:58:02]SAM_PROTO_SignData [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 0D 01 02 [18:58:02]Write to MH i2c: E2 08 00 DE 37 80 0D 01 02 00 00 00 00 8E [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 DE 37 00 90 00 89 [18:58:02]RAPDU: 90 00 [18:58:02]wFMCommunicate OK [18:58:02]wFMCommunicate request_size=255 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 BB 1F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7C 02 00 35 04 06 00 [18:58:02]Write to MH i2c: E2 02 01 DF 37 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 BB 1F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7C 02 00 35 04 06 00 00 00 4D [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 DF 37 00 90 00 8A [18:58:02]RAPDU: 90 00 [18:58:02]wFMCommunicate OK [18:58:02]wFMCommunicate request_size=11 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 0D 02 02 06 80 F1 36 F2 47 07 [18:58:02]Write to MH i2c: E2 0E 00 E0 37 80 0D 02 02 06 00 80 F1 36 F2 47 07 00 00 84 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 E0 37 00 90 00 8B [18:58:02]RAPDU: 90 00 [18:58:02]wFMCommunicate OK [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 0D 03 02 [18:58:02]Write to MH i2c: E2 08 00 E1 37 80 0D 03 02 00 00 00 00 93 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 0B 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 0B 00 E1 37 00 85 B4 39 D0 3D 65 CD BF 90 00 04 [18:58:02]RAPDU: 85 B4 39 D0 3D 65 CD BF 90 00 [18:58:02]wFMCommunicate OK [18:58:02]SAM_PROTO_SignData done [18:58:02]FM_MakeSignedData done [18:58:02]CreateOFDProtocolMessage [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 11 00 00 [18:58:02]Write to MH i2c: E2 08 00 E2 37 80 11 00 00 00 00 00 00 93 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 17 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 17 00 E2 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F3 [18:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:58:02]wFMCommunicate OK [18:58:02]CreateOFDProtocolMessage done [18:58:02]OFDSenderStorePacket 162919 [18:58:02]StoreOFDPacket docnum=162919 [18:58:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A6 FB 08 01 09 E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 BB 1F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7C 02 00 35 04 06 00 80 F1 36 F2 47 07 85 B4 39 D0 3D 65 CD BF [18:58:02]CheckFolder [18:58:02]dirname=/storage/ofd_packets [18:58:02]CheckFolder done [18:58:02]ProducePacketName [18:58:02]name=ofd_packets/00162919 [18:58:02]NVStorageSaveData ofd_packets/00162919 [18:58:02]File name is /storage/ofd_packets/00162919 [18:58:02]Write 302 bytes [18:58:02]NVStorageSaveData done [18:58:02]OFDSenderStorePacket done [18:58:02]KKMCreateOFDPacket done [18:58:02]NVStorageSaveData kkm_last_timestamp [18:58:02]File name is /storage/kkm_last_timestamp [18:58:02]Write 4 bytes [18:58:02]NVStorageSaveData done [18:58:02]ExternCall_PrintAddStr [18:58:02]wPrintStart [18:58:02]Write to MH i2c: 01 00 00 E3 37 1A [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: 01 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: 01 07 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: 01 07 00 E3 37 00 00 00 00 00 FF 0F 2F [18:58:02]RasterBufferAndPrint [18:58:02]line Счет N : (1)1319529 [18:58:02]line ИНН: 02508201610067 [18:58:02]line Контрольно-Кассовый Чек [18:58:02]line ПРОДАЖА [18:58:02]line ТРК (МРК, ГНК) : 21 [18:58:02]line Товар: 2710194210 [18:58:02]line ДТ(л)-К-5 [18:58:02]line 41.330 * 72.60 [18:58:02]line = 3000.56 [18:58:02]line НДС 12% НСП 1% [18:58:02]line > о реализуемом товаре [18:58:02]line ИТОГО: 3000.56 [18:58:02]line НСП 1% : 26.55 [18:58:02]line НДС 12% : 318.64 [18:58:02]line Наличными: 0.00 [18:58:02]line Безнал.: 3000.56 [18:58:02]line Место: АЗС № 140 "Партнер Нефть" [18:58:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:58:02]line СНО: Общий режим [18:58:02]line Чек 231 14.07.2024 18:58 [18:58:02]line Смена: 463 ФФД: 1.0 [18:58:02]line ЗНМ: 0300000129 [18:58:02]line РНМ: 0000000000090858 [18:58:02]line Версия ККМ: 001 [18:58:02]line Платежная система: O! деньги [18:58:02]line ФМ: 0000000000874899 [18:58:02]line ФД: 162919 [18:58:02]line ФПД: 141773497321223 [18:58:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T185803&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162919&fm=141773497321223&tin=02508201610067®Number=0000000000090858&sum=300056 [18:58:03]written 0, free lines is 4095 [18:58:03]OFD Sender: Processing packet 162919 [packets to send 106, broken 105] [18:58:03]ProducePacketName [18:58:03]name=ofd_packets/00162919 [18:58:03]OFD Sender: To server: pG, [18:58:03]CommunicateWithHost lk.salyk.kg:30040 [18:58:03]ConnectInit lk.salyk.kg [18:58:03]Connected sock=10 [18:58:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A6 FB 08 01 09 E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 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 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 BB 1F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7C 02 00 35 04 06 00 80 F1 36 F2 47 07 85 B4 39 D0 3D 65 CD BF [18:58:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 98 52 47 00 B2 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7C 02 00 F4 03 04 00 C8 CB 93 66 B6 04 01 00 00 23 3F 79 D5 C7 83 91 12 [18:58:03]CommunicateWithHost err = 0 [18:58:03]CheckOFDResponse [18:58:03]1017 (14) - 77093643461234 [18:58:03]1041 (16) - 0000000000874899 [18:58:03]1040 (4) - 162919 [18:58:03]1012 (4) - 14.07.2024 12:59 [18:58:03]1206 (1) - 0 [18:58:03]OFD Sender: Remove packet 162919 [18:58:03]ProducePacketName [18:58:03]name=ofd_packets/00162919 [18:58:03]NVStorageDeleteData [18:58:03]Write to MH i2c: 01 00 00 0D 38 45 [18:58:03]Write i2c OK [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: 01 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: 01 07 00 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: 01 07 00 0D 38 00 00 00 00 00 E9 0C 41 [18:58:03]RasterBufferAndPrint [18:58:03]line [18:58:03]line [18:58:03]line [18:58:03]line [18:58:03]line [18:58:03]written 0, free lines is 3310 [18:58:03]MH_Cut [18:58:03]Write to MH i2c: D1 01 00 14 38 01 1E [18:58:03]Write i2c OK [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: D1 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: D1 01 00 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: D1 01 00 14 38 00 1D [18:58:03]Write to MH i2c: 01 00 00 15 38 4D [18:58:03]Write i2c OK [18:58:03]MH_I2C_Read... [18:58:03]OFD Sender: No OFD packet to send [18:58:04]*** Cut start [18:58:04]*** Purtial cut [18:58:04]*** Stage 1: CUTSNS_PIN = 1 [18:58:04]Read from MH i2c: 01 [18:58:04]MH_I2C_Read... [18:58:04]*** Stop cut motor [18:58:04]*** Cut end [18:58:04]Read from MH i2c: 01 07 00 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: 01 07 00 15 38 00 00 00 00 00 FF 0F 62 [18:58:04]process_action close_receipt done [18:58:04]requested_data is exist [18:58:04]produce_requested_data [18:58:04]requested_item fm.sn is exist - process it [18:58:04]wFMCommunicate request_size=4 [18:58:04]MH_SAM_APDU [18:58:04]CAPDU: 80 11 00 00 [18:58:04]Write to MH i2c: E2 08 00 16 38 80 11 00 00 00 00 00 00 C8 [18:58:04]Write i2c OK [18:58:04]MH_I2C_Read... [18:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:04]Read from MH i2c: E2 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: E2 17 00 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: E2 17 00 16 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 28 [18:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:58:04]wFMCommunicate OK [18:58:04]requested_item fd.num is exist - process it [18:58:04]SAM_PROTO_GetFieldsCounters [18:58:04]wFMCommunicate request_size=4 [18:58:04]MH_SAM_APDU [18:58:04]CAPDU: 80 13 00 00 [18:58:04]Write to MH i2c: E2 08 00 17 38 80 13 00 00 00 00 00 00 CB [18:58:04]Write i2c OK [18:58:04]MH_I2C_Read... [18:58:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:04]Read from MH i2c: E2 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: E2 62 00 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: E2 62 00 17 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 67 7C 02 00 0E 04 04 00 CF 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 68 [18:58:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 67 7C 02 00 0E 04 04 00 CF 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 [18:58:04]wFMCommunicate OK [18:58:04]SAM_PROTO_GetFieldsCounters done [18:58:04]requested_item shift.num is exist - process it [18:58:04]requested_item shift.opened is exist - process it [18:58:04]req_shift_opened [18:58:04]FM_GetShiftState [18:58:04]SAM_PROTO_GetShiftState [18:58:04]wFMCommunicate request_size=4 [18:58:04]MH_SAM_APDU [18:58:04]CAPDU: 80 13 01 00 [18:58:04]Write to MH i2c: E2 08 00 18 38 80 13 01 00 00 00 00 00 CD [18:58:04]Write i2c OK [18:58:04]MH_I2C_Read... [18:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:04]Read from MH i2c: E2 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: E2 0E 00 [18:58:04]MH_I2C_Read... [18:58:04]Read from MH i2c: E2 0E 00 18 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 03 [18:58:04]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [18:58:04]wFMCommunicate OK [18:58:04]SAM_PROTO_GetShiftState done [18:58:04]FM_GetShiftState done [18:58:04]req_shift_opened done [18:58:04]requested_item shift.open_date is exist - process it [18:58:04]req_shift_open_date [18:58:04]req_shift_open_date done [18:58:04]produce_requested_data done [18:58:04]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162919,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [18:58:04]process_action_free close_receipt [18:58:04]json_value_free [18:58:04]json_value_free done [18:58:04]process_json_proto returns [18:58:04]Send response to host [18:58:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162919,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [18:58:04]free response buf [18:58:04]execute_script done [18:58:04]execute_script returns [18:58:04]free content buf [18:58:04]Sock 7.Close socket [18:58:04]Sock 7.Thread stoped [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:18]accept exits with 9 [19:03:18]New connection [19:03:18]New thread 3066879332 created [19:03:18]Thread 3066735972 joined [19:03:18]Waiting for new connection... [19:03:18] Sock 9.Parse request [19:03:18]Sock 9.Check first char [19:03:18]Sock 9.First char is OK [19:03:18]request: POST /json_proto HTTP/1.0 [19:03:18]Method: POST [19:03:18]URL: /json_proto [19:03:18]Method is POST - this is cgi request [19:03:18]url: /json_proto [19:03:18]query_string will be loaded in cgi processing [19:03:18]execute_cgi json_proto POST (null) [19:03:18]execute_cgi path=json_proto method=POST [19:03:18]POST find Content-Length [19:03:18]Host: 172.17.39.67:8080 [19:03:18]Content-Length: 634 [19:03:18]Content-Type: application/json [19:03:18] [19:03:18]POST finish read [19:03:18]Found Content-Length = 634 [19:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.000, "sum" : 673.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 673.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:18]execute_script... [19:03:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.000, "sum" : 673.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 673.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:18]POST & json_proto [19:03:18]process_json_proto [19:03:18]json parsed OK: [19:03:18]protocol is kg_v1.0 [19:03:18]action value=close_receipt [19:03:18]process_action close_receipt [19:03:18]cmd_close_receipt [19:03:18]MH_GetDate [19:03:18]Write to MH i2c: F0 00 00 19 38 40 [19:03:18]Write i2c OK [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: F0 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: F0 09 00 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: F0 09 00 19 38 00 F8 20 94 66 B6 85 93 66 8F [19:03:18]GetLastDocTimeStamp 1720983483 [19:03:18]current date 1720983800 [19:03:18]FM_GetShiftState [19:03:18]SAM_PROTO_GetShiftState [19:03:18]wFMCommunicate request_size=4 [19:03:18]MH_SAM_APDU [19:03:18]CAPDU: 80 13 01 00 [19:03:18]Write to MH i2c: E2 08 00 1A 38 80 13 01 00 00 00 00 00 CF [19:03:18]Write i2c OK [19:03:18]MH_I2C_Read... [19:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:18]Read from MH i2c: E2 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: E2 0E 00 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: E2 0E 00 1A 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 05 [19:03:18]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:03:18]wFMCommunicate OK [19:03:18]SAM_PROTO_GetShiftState done [19:03:18]FM_GetShiftState done [19:03:18]opened in 1720915483 [19:03:18]opened+sec_in_day 1721001883 [19:03:18]quantity*price = 67300 [19:03:18]sum+1 = 67301 [19:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 673.00 НСП 1% : 5.96 НДС 12% : 71.47 Наличными: 673.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 232 14.07.2024 19:03 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162920 ФПД: 51140167195548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T190320&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162920&fm=51140167195548&tin=02508201610067®Number=0000000000090858&sum=67300 [19:03:19]StoreToDocumentArchive [19:03:19]shift 463 fd 162920 [19:03:19]save to /storage/0463/doc_00162920 [19:03:19]save last doc name /storage/0463/doc_00162920 to /storage/kkm_last_doc_name [19:03:19]save OK [19:03:19]Clear old archive folders... [19:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:03:19]tlvbuf is 01235550 [19:03:19]SAM_PROTO_ClearQueue [19:03:19]wFMCommunicate request_size=4 [19:03:19]MH_SAM_APDU [19:03:19]CAPDU: 80 09 00 00 [19:03:19]Write to MH i2c: E2 08 00 27 38 80 09 00 00 00 00 00 00 D1 [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:19]Read from MH i2c: E2 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 03 00 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 03 00 27 38 00 90 00 D3 [19:03:19]RAPDU: 90 00 [19:03:19]wFMCommunicate OK [19:03:19]SAM_PROTO_ClearQueue done [19:03:19]KKMCreateOFDPacket [19:03:19]OFDProtocolAddRootSTLVToBuf [19:03:19]FM_MakeSignedData [19:03:19]FM_MakeSignedData [19:03:19]SAM_PROTO_SignData [19:03:19]wFMCommunicate request_size=4 [19:03:19]MH_SAM_APDU [19:03:19]CAPDU: 80 0D 01 02 [19:03:19]Write to MH i2c: E2 08 00 28 38 80 0D 01 02 00 00 00 00 D9 [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:19]Read from MH i2c: E2 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 03 00 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 03 00 28 38 00 90 00 D4 [19:03:19]RAPDU: 90 00 [19:03:19]wFMCommunicate OK [19:03:19]wFMCommunicate request_size=255 [19:03:19]MH_SAM_APDU [19:03:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 E4 06 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 1B 00 00 00 00 07 04 06 00 E4 06 01 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 F8 20 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7C 02 00 35 04 06 00 [19:03:19]Write to MH i2c: E2 02 01 29 38 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 E4 06 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 1B 00 00 00 00 07 04 06 00 E4 06 01 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 F8 20 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7C 02 00 35 04 06 00 00 00 87 [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:19]Read from MH i2c: E2 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 03 00 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 03 00 29 38 00 90 00 D5 [19:03:19]RAPDU: 90 00 [19:03:19]wFMCommunicate OK [19:03:19]wFMCommunicate request_size=11 [19:03:19]MH_SAM_APDU [19:03:19]CAPDU: 80 0D 02 02 06 2E 82 FF 7F DB 9C [19:03:19]Write to MH i2c: E2 0E 00 2A 38 80 0D 02 02 06 00 2E 82 FF 7F DB 9C 00 00 8D [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:19]Read from MH i2c: E2 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 03 00 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 03 00 2A 38 00 90 00 D6 [19:03:19]RAPDU: 90 00 [19:03:19]wFMCommunicate OK [19:03:19]wFMCommunicate request_size=4 [19:03:19]MH_SAM_APDU [19:03:19]CAPDU: 80 0D 03 02 [19:03:19]Write to MH i2c: E2 08 00 2B 38 80 0D 03 02 00 00 00 00 DE [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:19]Read from MH i2c: E2 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 0B 00 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 0B 00 2B 38 00 2C CB AC CC 53 AF 97 E3 90 00 CA [19:03:19]RAPDU: 2C CB AC CC 53 AF 97 E3 90 00 [19:03:19]wFMCommunicate OK [19:03:19]SAM_PROTO_SignData done [19:03:19]FM_MakeSignedData done [19:03:19]CreateOFDProtocolMessage [19:03:19]wFMCommunicate request_size=4 [19:03:19]MH_SAM_APDU [19:03:19]CAPDU: 80 11 00 00 [19:03:19]Write to MH i2c: E2 08 00 2C 38 80 11 00 00 00 00 00 00 DE [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:19]Read from MH i2c: E2 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 17 00 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 17 00 2C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3E [19:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:03:19]wFMCommunicate OK [19:03:19]CreateOFDProtocolMessage done [19:03:19]OFDSenderStorePacket 162920 [19:03:19]StoreOFDPacket docnum=162920 [19:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CC 8C 08 01 F5 3C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 E4 06 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 1B 00 00 00 00 07 04 06 00 E4 06 01 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 F8 20 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7C 02 00 35 04 06 00 2E 82 FF 7F DB 9C 2C CB AC CC 53 AF 97 E3 [19:03:19]CheckFolder [19:03:19]dirname=/storage/ofd_packets [19:03:19]CheckFolder done [19:03:19]ProducePacketName [19:03:19]name=ofd_packets/00162920 [19:03:19]NVStorageSaveData ofd_packets/00162920 [19:03:19]File name is /storage/ofd_packets/00162920 [19:03:19]Write 302 bytes [19:03:19]NVStorageSaveData done [19:03:19]OFDSenderStorePacket done [19:03:19]KKMCreateOFDPacket done [19:03:19]NVStorageSaveData kkm_last_timestamp [19:03:19]File name is /storage/kkm_last_timestamp [19:03:19]Write 4 bytes [19:03:19]NVStorageSaveData done [19:03:19]ExternCall_PrintAddStr [19:03:19]wPrintStart [19:03:19]Write to MH i2c: 01 00 00 2D 38 65 [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: 01 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: 01 07 00 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: 01 07 00 2D 38 00 00 00 00 00 FF 0F 7A [19:03:19]RasterBufferAndPrint [19:03:19]line Счет N : (1)1319531 [19:03:19]line ИНН: 02508201610067 [19:03:19]line Контрольно-Кассовый Чек [19:03:19]line ПРОДАЖА [19:03:19]line ТРК (МРК, ГНК) : 42 [19:03:19]line Товар: 2710124130 [19:03:19]line Super-92-К-5 [19:03:19]line 10.000 * 67.30 [19:03:19]line = 673.00 [19:03:19]line НДС 12% НСП 1% [19:03:19]line > о реализуемом товаре [19:03:19]line ИТОГО: 673.00 [19:03:19]line НСП 1% : 5.96 [19:03:19]line НДС 12% : 71.47 [19:03:19]line Наличными: 673.00 [19:03:19]line Безнал.: 0.00 [19:03:19]line Место: АЗС № 140 "Партнер Нефть" [19:03:19]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:03:19]line СНО: Общий режим [19:03:19]line Чек 232 14.07.2024 19:03 [19:03:19]line Смена: 463 ФФД: 1.0 [19:03:19]line ЗНМ: 0300000129 [19:03:19]line РНМ: 0000000000090858 [19:03:19]line Версия ККМ: 001 [19:03:19]line ФМ: 0000000000874899 [19:03:19]line ФД: 162920 [19:03:19]line ФПД: 51140167195548 [19:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T190320&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162920&fm=51140167195548&tin=02508201610067®Number=0000000000090858&sum=67300 [19:03:20]OFD Sender: Processing packet 162920 [packets to send 106, broken 105] [19:03:20]ProducePacketName [19:03:20]name=ofd_packets/00162920 [19:03:20]OFD Sender: To server: pG, [19:03:20]CommunicateWithHost lk.salyk.kg:30040 [19:03:20]ConnectInit lk.salyk.kg [19:03:20]written 0, free lines is 4095 [19:03:20]Connected sock=11 [19:03:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CC 8C 08 01 F5 3C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 E4 06 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 1B 00 00 00 00 07 04 06 00 E4 06 01 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 F8 20 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7C 02 00 35 04 06 00 2E 82 FF 7F DB 9C 2C CB AC CC 53 AF 97 E3 [19:03:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D8 24 47 00 F4 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7C 02 00 F4 03 04 00 05 CD 93 66 B6 04 01 00 00 93 17 03 5E F7 0F 99 92 [19:03:20]CommunicateWithHost err = 0 [19:03:20]CheckOFDResponse [19:03:20]1017 (14) - 77093643461234 [19:03:20]1041 (16) - 0000000000874899 [19:03:20]1040 (4) - 162920 [19:03:20]1012 (4) - 14.07.2024 13:05 [19:03:20]1206 (1) - 0 [19:03:20]OFD Sender: Remove packet 162920 [19:03:20]ProducePacketName [19:03:20]name=ofd_packets/00162920 [19:03:20]NVStorageDeleteData [19:03:20]Write to MH i2c: 01 00 00 55 38 8D [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 07 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 07 00 55 38 00 00 00 00 00 02 0D A3 [19:03:20]RasterBufferAndPrint [19:03:20]line [19:03:20]line [19:03:20]line [19:03:20]line [19:03:20]line [19:03:20]written 0, free lines is 3336 [19:03:20]MH_Cut [19:03:20]Write to MH i2c: D1 01 00 5C 38 01 66 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: D1 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: D1 01 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: D1 01 00 5C 38 00 65 [19:03:20]Write to MH i2c: 01 00 00 5D 38 95 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]OFD Sender: No OFD packet to send [19:03:21]*** Cut start [19:03:21]*** Purtial cut [19:03:21]*** CUTSNS_PIN = 0 [19:03:21]*** Stage 1: CUTSNS_PIN = 1 [19:03:23]Read from MH i2c: 01 [19:03:23]MH_I2C_Read... [19:03:23]*** Stop cut motor [19:03:23]*** Cut end [19:03:23]Read from MH i2c: 01 07 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: 01 07 00 5D 38 00 00 00 00 00 FF 0F AA [19:03:23]process_action close_receipt done [19:03:23]requested_data is exist [19:03:23]produce_requested_data [19:03:23]requested_item fm.sn is exist - process it [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 11 00 00 [19:03:23]Write to MH i2c: E2 08 00 5E 38 80 11 00 00 00 00 00 00 10 [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 17 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 17 00 5E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 70 [19:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:03:23]wFMCommunicate OK [19:03:23]requested_item fd.num is exist - process it [19:03:23]SAM_PROTO_GetFieldsCounters [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 13 00 00 [19:03:23]Write to MH i2c: E2 08 00 5F 38 80 13 00 00 00 00 00 00 13 [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 62 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 62 00 5F 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 68 7C 02 00 0E 04 04 00 CF 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 B4 [19:03:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 68 7C 02 00 0E 04 04 00 CF 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 [19:03:23]wFMCommunicate OK [19:03:23]SAM_PROTO_GetFieldsCounters done [19:03:23]requested_item shift.num is exist - process it [19:03:23]requested_item shift.opened is exist - process it [19:03:23]req_shift_opened [19:03:23]FM_GetShiftState [19:03:23]SAM_PROTO_GetShiftState [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 13 01 00 [19:03:23]Write to MH i2c: E2 08 00 60 38 80 13 01 00 00 00 00 00 15 [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 0E 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 0E 00 60 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4B [19:03:23]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:03:23]wFMCommunicate OK [19:03:23]SAM_PROTO_GetShiftState done [19:03:23]FM_GetShiftState done [19:03:23]req_shift_opened done [19:03:23]requested_item shift.open_date is exist - process it [19:03:23]req_shift_open_date [19:03:23]req_shift_open_date done [19:03:23]produce_requested_data done [19:03:23]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162920,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [19:03:23]process_action_free close_receipt [19:03:23]json_value_free [19:03:23]json_value_free done [19:03:23]process_json_proto returns [19:03:23]Send response to host [19:03:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162920,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [19:03:23]free response buf [19:03:23]execute_script done [19:03:23]execute_script returns [19:03:23]free content buf [19:03:23]Sock 9.Close socket [19:03:23]Sock 9.Thread stoped [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]accept exits with 7 [19:10:31]New connection [19:10:31]New thread 3066735972 created [19:10:31]Thread 3066879332 joined [19:10:31]Waiting for new connection... [19:10:31] Sock 7.Parse request [19:10:31]Sock 7.Check first char [19:10:31]Sock 7.First char is OK [19:10:31]request: POST /json_proto HTTP/1.0 [19:10:31]Method: POST [19:10:31]URL: /json_proto [19:10:31]Method is POST - this is cgi request [19:10:31]url: /json_proto [19:10:31]query_string will be loaded in cgi processing [19:10:31]execute_cgi json_proto POST (null) [19:10:31]execute_cgi path=json_proto method=POST [19:10:31]POST find Content-Length [19:10:31]Host: 172.17.39.67:8080 [19:10:31]Content-Length: 678 [19:10:31]Content-Type: application/json [19:10:31] [19:10:31]POST finish read [19:10:31]Found Content-Length = 678 [19:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.620, "sum" : 240.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:31]execute_script... [19:10: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)1319532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.620, "sum" : 240.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:31]POST & json_proto [19:10:31]process_json_proto [19:10:31]json parsed OK: [19:10:31]protocol is kg_v1.0 [19:10:31]action value=close_receipt [19:10:31]process_action close_receipt [19:10:31]cmd_close_receipt [19:10:31]MH_GetDate [19:10:31]Write to MH i2c: F0 00 00 61 38 88 [19:10:31]Write i2c OK [19:10:31]MH_I2C_Read... [19:10:31]Read from MH i2c: F0 [19:10:31]MH_I2C_Read... [19:10:31]Read from MH i2c: F0 09 00 [19:10:31]MH_I2C_Read... [19:10:31]Read from MH i2c: F0 09 00 61 38 00 A9 22 94 66 B6 85 93 66 8A [19:10:31]GetLastDocTimeStamp 1720983800 [19:10:31]current date 1720984233 [19:10:31]FM_GetShiftState [19:10:31]SAM_PROTO_GetShiftState [19:10:31]wFMCommunicate request_size=4 [19:10:31]MH_SAM_APDU [19:10:31]CAPDU: 80 13 01 00 [19:10:31]Write to MH i2c: E2 08 00 62 38 80 13 01 00 00 00 00 00 17 [19:10:31]Write i2c OK [19:10:31]MH_I2C_Read... [19:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:31]Read from MH i2c: E2 [19:10:31]MH_I2C_Read... [19:10:31]Read from MH i2c: E2 0E 00 [19:10:31]MH_I2C_Read... [19:10:31]Read from MH i2c: E2 0E 00 62 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4D [19:10:31]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:10:31]wFMCommunicate OK [19:10:31]SAM_PROTO_GetShiftState done [19:10:31]FM_GetShiftState done [19:10:31]opened in 1720915483 [19:10:31]opened+sec_in_day 1721001883 [19:10:31]quantity*price = 24000 [19:10:31]sum+1 = 24002 [19:10:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 233 14.07.2024 19:10 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162921 ФПД: 138924432673156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T191033&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162921&fm=138924432673156&tin=02508201610067®Number=0000000000090858&sum=24000 [19:10:32]StoreToDocumentArchive [19:10:32]shift 463 fd 162921 [19:10:32]save to /storage/0463/doc_00162921 [19:10:32]save last doc name /storage/0463/doc_00162921 to /storage/kkm_last_doc_name [19:10:32]save OK [19:10:32]Clear old archive folders... [19:10:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:32]tlvbuf is 012207C0 [19:10:32]SAM_PROTO_ClearQueue [19:10:32]wFMCommunicate request_size=4 [19:10:32]MH_SAM_APDU [19:10:32]CAPDU: 80 09 00 00 [19:10:32]Write to MH i2c: E2 08 00 6F 38 80 09 00 00 00 00 00 00 19 [19:10:32]Write i2c OK [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 [19:10:32]MH_I2C_Read... [19:10:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:32]Read from MH i2c: E2 03 00 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 03 00 6F 38 00 90 00 1B [19:10:32]RAPDU: 90 00 [19:10:32]wFMCommunicate OK [19:10:32]SAM_PROTO_ClearQueue done [19:10:32]KKMCreateOFDPacket [19:10:32]OFDProtocolAddRootSTLVToBuf [19:10:32]FM_MakeSignedData [19:10:32]FM_MakeSignedData [19:10:32]SAM_PROTO_SignData [19:10:32]wFMCommunicate request_size=4 [19:10:32]MH_SAM_APDU [19:10:32]CAPDU: 80 0D 01 02 [19:10:32]Write to MH i2c: E2 08 00 70 38 80 0D 01 02 00 00 00 00 21 [19:10:32]Write i2c OK [19:10:32]MH_I2C_Read... [19:10:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:32]Read from MH i2c: E2 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 03 00 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 03 00 70 38 00 90 00 1C [19:10:32]RAPDU: 90 00 [19:10:32]wFMCommunicate OK [19:10:32]wFMCommunicate request_size=255 [19:10:32]MH_SAM_APDU [19:10: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 24 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 A9 22 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7C 02 00 35 04 06 00 7E [19:10:32]Write to MH i2c: E2 02 01 71 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 A9 22 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7C 02 00 35 04 06 00 7E 00 00 7B [19:10:32]Write i2c OK [19:10:32]MH_I2C_Read... [19:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:32]Read from MH i2c: E2 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 03 00 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 03 00 71 38 00 90 00 1D [19:10:32]RAPDU: 90 00 [19:10:32]wFMCommunicate OK [19:10:32]wFMCommunicate request_size=10 [19:10:32]MH_SAM_APDU [19:10:32]CAPDU: 80 0D 02 02 05 59 DD 75 C9 84 [19:10:32]Write to MH i2c: E2 0D 00 72 38 80 0D 02 02 05 00 59 DD 75 C9 84 00 00 26 [19:10:32]Write i2c OK [19:10:32]MH_I2C_Read... [19:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:32]Read from MH i2c: E2 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 03 00 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 03 00 72 38 00 90 00 1E [19:10:32]RAPDU: 90 00 [19:10:32]wFMCommunicate OK [19:10:32]wFMCommunicate request_size=4 [19:10:32]MH_SAM_APDU [19:10:32]CAPDU: 80 0D 03 02 [19:10:32]Write to MH i2c: E2 08 00 73 38 80 0D 03 02 00 00 00 00 26 [19:10:32]Write i2c OK [19:10:32]MH_I2C_Read... [19:10:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:32]Read from MH i2c: E2 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 0B 00 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 0B 00 73 38 00 04 79 EC 74 36 9B 37 2F 90 00 3B [19:10:32]RAPDU: 04 79 EC 74 36 9B 37 2F 90 00 [19:10:32]wFMCommunicate OK [19:10:32]SAM_PROTO_SignData done [19:10:32]FM_MakeSignedData done [19:10:32]CreateOFDProtocolMessage [19:10:32]wFMCommunicate request_size=4 [19:10:32]MH_SAM_APDU [19:10:32]CAPDU: 80 11 00 00 [19:10:32]Write to MH i2c: E2 08 00 74 38 80 11 00 00 00 00 00 00 26 [19:10:32]Write i2c OK [19:10:32]MH_I2C_Read... [19:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:32]Read from MH i2c: E2 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 17 00 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 17 00 74 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 86 [19:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:10:32]wFMCommunicate OK [19:10:32]CreateOFDProtocolMessage done [19:10:32]OFDSenderStorePacket 162921 [19:10:32]StoreOFDPacket docnum=162921 [19:10:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FB 75 07 01 38 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 24 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 A9 22 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7C 02 00 35 04 06 00 7E 59 DD 75 C9 84 04 79 EC 74 36 9B 37 2F [19:10:32]CheckFolder [19:10:32]dirname=/storage/ofd_packets [19:10:32]CheckFolder done [19:10:32]ProducePacketName [19:10:32]name=ofd_packets/00162921 [19:10:32]NVStorageSaveData ofd_packets/00162921 [19:10:32]File name is /storage/ofd_packets/00162921 [19:10:32]Write 301 bytes [19:10:32]NVStorageSaveData done [19:10:32]OFDSenderStorePacket done [19:10:32]KKMCreateOFDPacket done [19:10:32]NVStorageSaveData kkm_last_timestamp [19:10:32]File name is /storage/kkm_last_timestamp [19:10:32]Write 4 bytes [19:10:32]NVStorageSaveData done [19:10:32]ExternCall_PrintAddStr [19:10:32]wPrintStart [19:10:32]Write to MH i2c: 01 00 00 75 38 AD [19:10:32]Write i2c OK [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: 01 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: 01 07 00 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: 01 07 00 75 38 00 00 00 00 00 FF 0F C2 [19:10:32]RasterBufferAndPrint [19:10:32]line Счет N : (1)1319532 [19:10:32]line ИНН: 02508201610067 [19:10:32]line Контрольно-Кассовый Чек [19:10:32]line ПРОДАЖА [19:10:32]line ТРК (МРК, ГНК) : 63 [19:10:32]line Товар: 2710124130 [19:10:32]line Аи-92-К-5 [19:10:32]line 3.620 * 66.30 [19:10:32]line = 240.01 [19:10:32]line НДС 12% НСП 1% [19:10:32]line > о реализуемом товаре [19:10:32]line ОКРУГЛЕНИЕ: -0.01 [19:10:32]line ИТОГО: 240.00 [19:10:32]line Внесено: 240.00 [19:10:32]line СДАЧА: 0.00 [19:10:32]line НСП 1% : 2.12 [19:10:32]line НДС 12% : 25.49 [19:10:32]line Наличными: 240.00 [19:10:32]line Безнал.: 0.00 [19:10:32]line Место: АЗС № 140 "Партнер Нефть" [19:10:32]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:10:32]line СНО: Общий режим [19:10:32]line Чек 233 14.07.2024 19:10 [19:10:32]line Смена: 463 ФФД: 1.0 [19:10:32]line ЗНМ: 0300000129 [19:10:32]line РНМ: 0000000000090858 [19:10:32]line Версия ККМ: 001 [19:10:32]line ФМ: 0000000000874899 [19:10:32]line ФД: 162921 [19:10:32]line ФПД: 138924432673156 [19:10:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T191033&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162921&fm=138924432673156&tin=02508201610067®Number=0000000000090858&sum=24000 [19:10:33]OFD Sender: Processing packet 162921 [packets to send 106, broken 105] [19:10:33]ProducePacketName [19:10:33]name=ofd_packets/00162921 [19:10:33]OFD Sender: To server: pG, [19:10:33]CommunicateWithHost lk.salyk.kg:30040 [19:10:33]ConnectInit lk.salyk.kg [19:10:33]written 0, free lines is 4095 [19:10:33]Connected sock=10 [19:10:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FB 75 07 01 38 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 24 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 A9 22 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7C 02 00 35 04 06 00 7E 59 DD 75 C9 84 04 79 EC 74 36 9B 37 2F [19:10:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F2 8A 47 00 35 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7C 02 00 F4 03 04 00 B6 CE 93 66 B6 04 01 00 00 4B F5 5F 28 74 9B 5B 4A [19:10:33]CommunicateWithHost err = 0 [19:10:33]CheckOFDResponse [19:10:33]1017 (14) - 77093643461234 [19:10:33]1041 (16) - 0000000000874899 [19:10:33]1040 (4) - 162921 [19:10:33]1012 (4) - 14.07.2024 13:12 [19:10:33]1206 (1) - 0 [19:10:33]OFD Sender: Remove packet 162921 [19:10:33]ProducePacketName [19:10:33]name=ofd_packets/00162921 [19:10:33]NVStorageDeleteData [19:10:33]Write to MH i2c: 01 00 00 A0 38 D8 [19:10:33]Write i2c OK [19:10:33]MH_I2C_Read... [19:10:33]Read from MH i2c: 01 [19:10:33]MH_I2C_Read... [19:10:33]Read from MH i2c: 01 07 00 [19:10:33]MH_I2C_Read... [19:10:33]Read from MH i2c: 01 07 00 A0 38 00 00 00 00 00 DF 0C CA [19:10:33]RasterBufferAndPrint [19:10:33]line [19:10:33]line [19:10:33]line [19:10:33]line [19:10:33]line [19:10:33]written 0, free lines is 3301 [19:10:33]MH_Cut [19:10:33]Write to MH i2c: D1 01 00 A7 38 01 B1 [19:10:33]Write i2c OK [19:10:33]MH_I2C_Read... [19:10:33]Read from MH i2c: D1 [19:10:33]MH_I2C_Read... [19:10:33]Read from MH i2c: D1 01 00 [19:10:33]MH_I2C_Read... [19:10:33]Read from MH i2c: D1 01 00 A7 38 00 B0 [19:10:33]Write to MH i2c: 01 00 00 A8 38 E0 [19:10:33]Write i2c OK [19:10:33]MH_I2C_Read... [19:10:34]OFD Sender: No OFD packet to send [19:10:34]*** Cut start [19:10:34]*** Purtial cut [19:10:34]*** Stage 1: CUTSNS_PIN = 1 [19:10:34]Read from MH i2c: 01 [19:10:34]MH_I2C_Read... [19:10:34]*** Stop cut motor [19:10:34]*** Cut end [19:10:34]Read from MH i2c: 01 07 00 [19:10:34]MH_I2C_Read... [19:10:34]Read from MH i2c: 01 07 00 A8 38 00 00 00 00 00 FF 0F F5 [19:10:34]process_action close_receipt done [19:10:34]requested_data is exist [19:10:34]produce_requested_data [19:10:34]requested_item fm.sn is exist - process it [19:10:34]wFMCommunicate request_size=4 [19:10:34]MH_SAM_APDU [19:10:34]CAPDU: 80 11 00 00 [19:10:34]Write to MH i2c: E2 08 00 A9 38 80 11 00 00 00 00 00 00 5B [19:10:34]Write i2c OK [19:10:34]MH_I2C_Read... [19:10:34]Read from MH i2c: E2 [19:10:34]MH_I2C_Read... [19:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:34]Read from MH i2c: E2 17 00 [19:10:34]MH_I2C_Read... [19:10:34]Read from MH i2c: E2 17 00 A9 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BB [19:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:10:34]wFMCommunicate OK [19:10:34]requested_item fd.num is exist - process it [19:10:34]SAM_PROTO_GetFieldsCounters [19:10:34]wFMCommunicate request_size=4 [19:10:34]MH_SAM_APDU [19:10:34]CAPDU: 80 13 00 00 [19:10:34]Write to MH i2c: E2 08 00 AA 38 80 13 00 00 00 00 00 00 5E [19:10:34]Write i2c OK [19:10:34]MH_I2C_Read... [19:10:34]Read from MH i2c: E2 [19:10:34]MH_I2C_Read... [19:10:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:34]Read from MH i2c: E2 62 00 [19:10:34]MH_I2C_Read... [19:10:34]Read from MH i2c: E2 62 00 AA 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 69 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [19:10:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 69 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:34]wFMCommunicate OK [19:10:34]SAM_PROTO_GetFieldsCounters done [19:10:34]requested_item shift.num is exist - process it [19:10:34]requested_item shift.opened is exist - process it [19:10:34]req_shift_opened [19:10:34]FM_GetShiftState [19:10:34]SAM_PROTO_GetShiftState [19:10:34]wFMCommunicate request_size=4 [19:10:34]MH_SAM_APDU [19:10:34]CAPDU: 80 13 01 00 [19:10:34]Write to MH i2c: E2 08 00 AB 38 80 13 01 00 00 00 00 00 60 [19:10:34]Write i2c OK [19:10:34]MH_I2C_Read... [19:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:35]Read from MH i2c: E2 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 0E 00 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 0E 00 AB 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 96 [19:10:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:10:35]wFMCommunicate OK [19:10:35]SAM_PROTO_GetShiftState done [19:10:35]FM_GetShiftState done [19:10:35]req_shift_opened done [19:10:35]requested_item shift.open_date is exist - process it [19:10:35]req_shift_open_date [19:10:35]req_shift_open_date done [19:10:35]produce_requested_data done [19:10:35]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162921,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [19:10:35]process_action_free close_receipt [19:10:35]json_value_free [19:10:35]json_value_free done [19:10:35]process_json_proto returns [19:10:35]Send response to host [19:10:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162921,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [19:10:35]free response buf [19:10:35]execute_script done [19:10:35]execute_script returns [19:10:35]free content buf [19:10:35]Sock 7.Close socket [19:10:35]Sock 7.Thread stoped [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:12]accept exits with 9 [19:13:12]New connection [19:13:12]New thread 3066879332 created [19:13:12]Thread 3066735972 joined [19:13:12]Waiting for new connection... [19:13:12] Sock 9.Parse request [19:13:12]Sock 9.Check first char [19:13:12]Sock 9.First char is OK [19:13:12]request: POST /json_proto HTTP/1.0 [19:13:12]Method: POST [19:13:12]URL: /json_proto [19:13:12]Method is POST - this is cgi request [19:13:12]url: /json_proto [19:13:12]query_string will be loaded in cgi processing [19:13:12]execute_cgi json_proto POST (null) [19:13:12]execute_cgi path=json_proto method=POST [19:13:12]POST find Content-Length [19:13:12]Host: 172.17.39.67:8080 [19:13:12]Content-Length: 671 [19:13:12]Content-Type: application/json [19:13:12] [19:13:12]POST finish read [19:13:12]Found Content-Length = 671 [19:13:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 8.920, "sum" : 600.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:12]execute_script... [19:13: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)1319533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 8.920, "sum" : 600.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:12]POST & json_proto [19:13:12]process_json_proto [19:13:12]json parsed OK: [19:13:12]protocol is kg_v1.0 [19:13:12]action value=close_receipt [19:13:12]process_action close_receipt [19:13:12]cmd_close_receipt [19:13:12]MH_GetDate [19:13:12]Write to MH i2c: F0 00 00 AC 38 D3 [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: F0 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: F0 09 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: F0 09 00 AC 38 00 4A 23 94 66 B6 85 93 66 77 [19:13:12]GetLastDocTimeStamp 1720984233 [19:13:12]current date 1720984394 [19:13:12]FM_GetShiftState [19:13:12]SAM_PROTO_GetShiftState [19:13:12]wFMCommunicate request_size=4 [19:13:12]MH_SAM_APDU [19:13:12]CAPDU: 80 13 01 00 [19:13:12]Write to MH i2c: E2 08 00 AD 38 80 13 01 00 00 00 00 00 62 [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:12]Read from MH i2c: E2 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 0E 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 0E 00 AD 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 98 [19:13:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:13:12]wFMCommunicate OK [19:13:12]SAM_PROTO_GetShiftState done [19:13:12]FM_GetShiftState done [19:13:12]opened in 1720915483 [19:13:12]opened+sec_in_day 1721001883 [19:13:12]quantity*price = 60031 [19:13:12]sum+1 = 60033 [19:13:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 234 14.07.2024 19:13 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162922 ФПД: 73555390582188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T191314&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162922&fm=73555390582188&tin=02508201610067®Number=0000000000090858&sum=60000 [19:13:13]StoreToDocumentArchive [19:13:13]shift 463 fd 162922 [19:13:13]save to /storage/0463/doc_00162922 [19:13:13]save last doc name /storage/0463/doc_00162922 to /storage/kkm_last_doc_name [19:13:13]save OK [19:13:13]Clear old archive folders... [19:13:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:13:13]tlvbuf is B6F43A20 [19:13:13]SAM_PROTO_ClearQueue [19:13:13]wFMCommunicate request_size=4 [19:13:13]MH_SAM_APDU [19:13:13]CAPDU: 80 09 00 00 [19:13:13]Write to MH i2c: E2 08 00 BA 38 80 09 00 00 00 00 00 00 64 [19:13:13]Write i2c OK [19:13:13]MH_I2C_Read... [19:13:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:13]Read from MH i2c: E2 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 03 00 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 03 00 BA 38 00 90 00 66 [19:13:13]RAPDU: 90 00 [19:13:13]wFMCommunicate OK [19:13:13]SAM_PROTO_ClearQueue done [19:13:13]KKMCreateOFDPacket [19:13:13]OFDProtocolAddRootSTLVToBuf [19:13:13]FM_MakeSignedData [19:13:13]FM_MakeSignedData [19:13:13]SAM_PROTO_SignData [19:13:13]wFMCommunicate request_size=4 [19:13:13]MH_SAM_APDU [19:13:13]CAPDU: 80 0D 01 02 [19:13:13]Write to MH i2c: E2 08 00 BB 38 80 0D 01 02 00 00 00 00 6C [19:13:13]Write i2c OK [19:13:13]MH_I2C_Read... [19:13:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:13]Read from MH i2c: E2 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 03 00 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 03 00 BB 38 00 90 00 67 [19:13:13]RAPDU: 90 00 [19:13:13]wFMCommunicate OK [19:13:13]wFMCommunicate request_size=255 [19:13:13]MH_SAM_APDU [19:13:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 22 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 80 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 EA 00 00 00 F4 03 04 00 4A 23 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7C 02 00 35 04 06 00 [19:13:13]Write to MH i2c: E2 02 01 BC 38 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 22 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 80 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 EA 00 00 00 F4 03 04 00 4A 23 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7C 02 00 35 04 06 00 00 00 2B [19:13:13]Write i2c OK [19:13:13]MH_I2C_Read... [19:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:13]Read from MH i2c: E2 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 03 00 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 03 00 BC 38 00 90 00 68 [19:13:13]RAPDU: 90 00 [19:13:13]wFMCommunicate OK [19:13:13]wFMCommunicate request_size=11 [19:13:13]MH_SAM_APDU [19:13:13]CAPDU: 80 0D 02 02 06 42 E5 F2 ED 4D AC [19:13:13]Write to MH i2c: E2 0E 00 BD 38 80 0D 02 02 06 00 42 E5 F2 ED 4D AC 00 00 7A [19:13:13]Write i2c OK [19:13:13]MH_I2C_Read... [19:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:13]Read from MH i2c: E2 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 03 00 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 03 00 BD 38 00 90 00 69 [19:13:13]RAPDU: 90 00 [19:13:13]wFMCommunicate OK [19:13:13]wFMCommunicate request_size=4 [19:13:13]MH_SAM_APDU [19:13:13]CAPDU: 80 0D 03 02 [19:13:13]Write to MH i2c: E2 08 00 BE 38 80 0D 03 02 00 00 00 00 71 [19:13:13]Write i2c OK [19:13:13]MH_I2C_Read... [19:13:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:13]Read from MH i2c: E2 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 0B 00 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 0B 00 BE 38 00 A0 3C E6 D6 39 D4 06 AA 90 00 C7 [19:13:13]RAPDU: A0 3C E6 D6 39 D4 06 AA 90 00 [19:13:13]wFMCommunicate OK [19:13:13]SAM_PROTO_SignData done [19:13:13]FM_MakeSignedData done [19:13:13]CreateOFDProtocolMessage [19:13:13]wFMCommunicate request_size=4 [19:13:13]MH_SAM_APDU [19:13:13]CAPDU: 80 11 00 00 [19:13:13]Write to MH i2c: E2 08 00 BF 38 80 11 00 00 00 00 00 00 71 [19:13:13]Write i2c OK [19:13:13]MH_I2C_Read... [19:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:13]Read from MH i2c: E2 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 17 00 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: E2 17 00 BF 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D1 [19:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:13:13]wFMCommunicate OK [19:13:13]CreateOFDProtocolMessage done [19:13:13]OFDSenderStorePacket 162922 [19:13:13]StoreOFDPacket docnum=162922 [19:13:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 32 05 08 01 24 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 22 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 80 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 EA 00 00 00 F4 03 04 00 4A 23 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7C 02 00 35 04 06 00 42 E5 F2 ED 4D AC A0 3C E6 D6 39 D4 06 AA [19:13:13]CheckFolder [19:13:13]dirname=/storage/ofd_packets [19:13:13]CheckFolder done [19:13:13]ProducePacketName [19:13:13]name=ofd_packets/00162922 [19:13:13]NVStorageSaveData ofd_packets/00162922 [19:13:13]File name is /storage/ofd_packets/00162922 [19:13:13]Write 302 bytes [19:13:13]NVStorageSaveData done [19:13:13]OFDSenderStorePacket done [19:13:13]KKMCreateOFDPacket done [19:13:13]NVStorageSaveData kkm_last_timestamp [19:13:13]File name is /storage/kkm_last_timestamp [19:13:13]Write 4 bytes [19:13:13]NVStorageSaveData done [19:13:13]ExternCall_PrintAddStr [19:13:13]wPrintStart [19:13:13]Write to MH i2c: 01 00 00 C0 38 F8 [19:13:13]Write i2c OK [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: 01 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: 01 07 00 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: 01 07 00 C0 38 00 00 00 00 00 FF 0F 0D [19:13:13]RasterBufferAndPrint [19:13:13]line Счет N : (1)1319533 [19:13:13]line ИНН: 02508201610067 [19:13:13]line Контрольно-Кассовый Чек [19:13:13]line ПРОДАЖА [19:13:13]line ТРК (МРК, ГНК) : 32 [19:13:13]line Товар: 2710124130 [19:13:13]line Super-92-К-5 [19:13:13]line 8.920 * 67.30 [19:13:13]line = 600.32 [19:13:13]line НДС 12% НСП 1% [19:13:13]line > о реализуемом товаре [19:13:13]line ОКРУГЛЕНИЕ: -0.32 [19:13:13]line ИТОГО: 600.00 [19:13:13]line Внесено: 600.00 [19:13:13]line СДАЧА: 0.00 [19:13:13]line НСП 1% : 5.31 [19:13:13]line НДС 12% : 63.75 [19:13:13]line Наличными: 600.00 [19:13:13]line Безнал.: 0.00 [19:13:13]line Место: АЗС № 140 "Партнер Нефть" [19:13:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:13:13]line СНО: Общий режим [19:13:13]line Чек 234 14.07.2024 19:13 [19:13:13]line Смена: 463 ФФД: 1.0 [19:13:13]line ЗНМ: 0300000129 [19:13:13]line РНМ: 0000000000090858 [19:13:13]line Версия ККМ: 001 [19:13:13]line ФМ: 0000000000874899 [19:13:13]line ФД: 162922 [19:13:13]line ФПД: 73555390582188 [19:13:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T191314&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162922&fm=73555390582188&tin=02508201610067®Number=0000000000090858&sum=60000 [19:13:14]OFD Sender: Processing packet 162922 [packets to send 106, broken 105] [19:13:14]ProducePacketName [19:13:14]name=ofd_packets/00162922 [19:13:14]OFD Sender: To server: pG, [19:13:14]CommunicateWithHost lk.salyk.kg:30040 [19:13:14]ConnectInit lk.salyk.kg [19:13:14]written 0, free lines is 4095 [19:13:14]Connected sock=11 [19:13:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 32 05 08 01 24 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 22 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 80 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 EA 00 00 00 F4 03 04 00 4A 23 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7C 02 00 35 04 06 00 42 E5 F2 ED 4D AC A0 3C E6 D6 39 D4 06 AA [19:13:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 13 46 47 00 4A 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7C 02 00 F4 03 04 00 57 CF 93 66 B6 04 01 00 00 04 A9 F5 67 FC 86 45 AF [19:13:14]CommunicateWithHost err = 0 [19:13:14]CheckOFDResponse [19:13:14]1017 (14) - 77093643461234 [19:13:14]1041 (16) - 0000000000874899 [19:13:14]1040 (4) - 162922 [19:13:14]1012 (4) - 14.07.2024 13:15 [19:13:14]1206 (1) - 0 [19:13:14]OFD Sender: Remove packet 162922 [19:13:14]ProducePacketName [19:13:14]name=ofd_packets/00162922 [19:13:14]NVStorageDeleteData [19:13:14]Write to MH i2c: 01 00 00 EB 38 23 [19:13:14]Write i2c OK [19:13:14]MH_I2C_Read... [19:13:14]Read from MH i2c: 01 [19:13:14]MH_I2C_Read... [19:13:14]Read from MH i2c: 01 07 00 [19:13:14]MH_I2C_Read... [19:13:14]Read from MH i2c: 01 07 00 EB 38 00 00 00 00 00 D7 0C 0D [19:13:14]RasterBufferAndPrint [19:13:14]line [19:13:14]line [19:13:14]line [19:13:14]line [19:13:14]line [19:13:14]written 0, free lines is 3296 [19:13:14]MH_Cut [19:13:14]Write to MH i2c: D1 01 00 F2 38 01 FC [19:13:14]Write i2c OK [19:13:14]MH_I2C_Read... [19:13:14]Read from MH i2c: D1 [19:13:14]MH_I2C_Read... [19:13:14]Read from MH i2c: D1 01 00 [19:13:14]MH_I2C_Read... [19:13:14]Read from MH i2c: D1 01 00 F2 38 00 FB [19:13:14]Write to MH i2c: 01 00 00 F3 38 2B [19:13:14]Write i2c OK [19:13:14]MH_I2C_Read... [19:13:14]OFD Sender: No OFD packet to send [19:13:15]*** Cut start [19:13:15]*** Purtial cut [19:13:15]*** CUTSNS_PIN = 0 [19:13:15]*** Stage 1: CUTSNS_PIN = 1 [19:13:17]Read from MH i2c: 01 [19:13:17]MH_I2C_Read... [19:13:17]*** Stop cut motor [19:13:17]*** Cut end [19:13:17]Read from MH i2c: 01 07 00 [19:13:17]MH_I2C_Read... [19:13:17]Read from MH i2c: 01 07 00 F3 38 00 00 00 00 00 FF 0F 40 [19:13:17]process_action close_receipt done [19:13:17]requested_data is exist [19:13:17]produce_requested_data [19:13:17]requested_item fm.sn is exist - process it [19:13:17]wFMCommunicate request_size=4 [19:13:17]MH_SAM_APDU [19:13:17]CAPDU: 80 11 00 00 [19:13:17]Write to MH i2c: E2 08 00 F4 38 80 11 00 00 00 00 00 00 A6 [19:13:17]Write i2c OK [19:13:17]MH_I2C_Read... [19:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:17]Read from MH i2c: E2 [19:13:17]MH_I2C_Read... [19:13:17]Read from MH i2c: E2 17 00 [19:13:17]MH_I2C_Read... [19:13:17]Read from MH i2c: E2 17 00 F4 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 06 [19:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:13:17]wFMCommunicate OK [19:13:17]requested_item fd.num is exist - process it [19:13:17]SAM_PROTO_GetFieldsCounters [19:13:17]wFMCommunicate request_size=4 [19:13:17]MH_SAM_APDU [19:13:17]CAPDU: 80 13 00 00 [19:13:17]Write to MH i2c: E2 08 00 F5 38 80 13 00 00 00 00 00 00 A9 [19:13:17]Write i2c OK [19:13:17]MH_I2C_Read... [19:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:17]Read from MH i2c: E2 [19:13:17]MH_I2C_Read... [19:13:17]Read from MH i2c: E2 62 00 [19:13:17]MH_I2C_Read... [19:13:17]Read from MH i2c: E2 62 00 F5 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6A 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [19:13:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6A 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:17]wFMCommunicate OK [19:13:17]SAM_PROTO_GetFieldsCounters done [19:13:17]requested_item shift.num is exist - process it [19:13:17]requested_item shift.opened is exist - process it [19:13:17]req_shift_opened [19:13:17]FM_GetShiftState [19:13:17]SAM_PROTO_GetShiftState [19:13:17]wFMCommunicate request_size=4 [19:13:17]MH_SAM_APDU [19:13:17]CAPDU: 80 13 01 00 [19:13:17]Write to MH i2c: E2 08 00 F6 38 80 13 01 00 00 00 00 00 AB [19:13:17]Write i2c OK [19:13:17]MH_I2C_Read... [19:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:17]Read from MH i2c: E2 [19:13:17]MH_I2C_Read... [19:13:17]Read from MH i2c: E2 0E 00 [19:13:17]MH_I2C_Read... [19:13:17]Read from MH i2c: E2 0E 00 F6 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E1 [19:13:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:13:17]wFMCommunicate OK [19:13:17]SAM_PROTO_GetShiftState done [19:13:17]FM_GetShiftState done [19:13:17]req_shift_opened done [19:13:17]requested_item shift.open_date is exist - process it [19:13:17]req_shift_open_date [19:13:17]req_shift_open_date done [19:13:17]produce_requested_data done [19:13:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162922,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [19:13:17]process_action_free close_receipt [19:13:17]json_value_free [19:13:17]json_value_free done [19:13:17]process_json_proto returns [19:13:17]Send response to host [19:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162922,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [19:13:17]free response buf [19:13:17]execute_script done [19:13:17]execute_script returns [19:13:17]free content buf [19:13:17]Sock 9.Close socket [19:13:17]Sock 9.Thread stoped [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:06]accept exits with 10 [19:29:06]New connection [19:29:06]New thread 3066735972 created [19:29:06]Thread 3066879332 joined [19:29:06]Waiting for new connection... [19:29:06] Sock 10.Parse request [19:29:06]Sock 10.Check first char [19:29:06]Sock 10.First char is OK [19:29:06]request: POST /json_proto HTTP/1.0 [19:29:06]Method: POST [19:29:06]URL: /json_proto [19:29:06]Method is POST - this is cgi request [19:29:06]url: /json_proto [19:29:06]query_string will be loaded in cgi processing [19:29:06]execute_cgi json_proto POST (null) [19:29:06]execute_cgi path=json_proto method=POST [19:29:06]POST find Content-Length [19:29:06]Host: 172.17.39.67:8080 [19:29:06]Content-Length: 683 [19:29:06]Content-Type: application/json [19:29:06] [19:29:06]POST finish read [19:29:06]Found Content-Length = 683 [19:29:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:29:06]execute_script... [19:29: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)1319534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:29:06]POST & json_proto [19:29:06]process_json_proto [19:29:06]json parsed OK: [19:29:06]protocol is kg_v1.0 [19:29:06]action value=close_receipt [19:29:06]process_action close_receipt [19:29:06]cmd_close_receipt [19:29:06]MH_GetDate [19:29:06]Write to MH i2c: F0 00 00 F7 38 1E [19:29:06]Write i2c OK [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: F0 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: F0 09 00 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: F0 09 00 F7 38 00 04 27 94 66 B6 85 93 66 80 [19:29:06]GetLastDocTimeStamp 1720984394 [19:29:06]current date 1720985348 [19:29:06]FM_GetShiftState [19:29:06]SAM_PROTO_GetShiftState [19:29:06]wFMCommunicate request_size=4 [19:29:06]MH_SAM_APDU [19:29:06]CAPDU: 80 13 01 00 [19:29:06]Write to MH i2c: E2 08 00 F8 38 80 13 01 00 00 00 00 00 AD [19:29:06]Write i2c OK [19:29:06]MH_I2C_Read... [19:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:06]Read from MH i2c: E2 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 0E 00 [19:29:06]MH_I2C_Read... [19:29:06]Read from MH i2c: E2 0E 00 F8 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E3 [19:29:06]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:29:06]wFMCommunicate OK [19:29:06]SAM_PROTO_GetShiftState done [19:29:06]FM_GetShiftState done [19:29:06]opened in 1720915483 [19:29:06]opened+sec_in_day 1721001883 [19:29:06]quantity*price = 100046 [19:29:06]sum+1 = 100048 [19:29:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 235 14.07.2024 19:29 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162923 ФПД: 171817495022150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T192908&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162923&fm=171817495022150&tin=02508201610067®Number=0000000000090858&sum=100000 [19:29:07]StoreToDocumentArchive [19:29:07]shift 463 fd 162923 [19:29:07]save to /storage/0463/doc_00162923 [19:29:07]save last doc name /storage/0463/doc_00162923 to /storage/kkm_last_doc_name [19:29:07]save OK [19:29:07]Clear old archive folders... [19:29:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:29:07]tlvbuf is 0125BBD0 [19:29:07]SAM_PROTO_ClearQueue [19:29:07]wFMCommunicate request_size=4 [19:29:07]MH_SAM_APDU [19:29:07]CAPDU: 80 09 00 00 [19:29:07]Write to MH i2c: E2 08 00 05 39 80 09 00 00 00 00 00 00 B0 [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:07]Read from MH i2c: E2 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 03 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 03 00 05 39 00 90 00 B2 [19:29:07]RAPDU: 90 00 [19:29:07]wFMCommunicate OK [19:29:07]SAM_PROTO_ClearQueue done [19:29:07]KKMCreateOFDPacket [19:29:07]OFDProtocolAddRootSTLVToBuf [19:29:07]FM_MakeSignedData [19:29:07]FM_MakeSignedData [19:29:07]SAM_PROTO_SignData [19:29:07]wFMCommunicate request_size=4 [19:29:07]MH_SAM_APDU [19:29:07]CAPDU: 80 0D 01 02 [19:29:07]Write to MH i2c: E2 08 00 06 39 80 0D 01 02 00 00 00 00 B8 [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:07]Read from MH i2c: E2 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 03 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 03 00 06 39 00 90 00 B3 [19:29:07]RAPDU: 90 00 [19:29:07]wFMCommunicate OK [19:29:07]wFMCommunicate request_size=255 [19:29:07]MH_SAM_APDU [19:29:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 04 27 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7C 02 00 35 04 06 00 9C [19:29:07]Write to MH i2c: E2 02 01 07 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 04 27 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7C 02 00 35 04 06 00 9C 00 00 29 [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:07]Read from MH i2c: E2 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 03 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 03 00 07 39 00 90 00 B4 [19:29:07]RAPDU: 90 00 [19:29:07]wFMCommunicate OK [19:29:07]wFMCommunicate request_size=10 [19:29:07]MH_SAM_APDU [19:29:07]CAPDU: 80 0D 02 02 05 44 60 C1 CA 46 [19:29:07]Write to MH i2c: E2 0D 00 08 39 80 0D 02 02 05 00 44 60 C1 CA 46 00 00 3A [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:07]Read from MH i2c: E2 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 03 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 03 00 08 39 00 90 00 B5 [19:29:07]RAPDU: 90 00 [19:29:07]wFMCommunicate OK [19:29:07]wFMCommunicate request_size=4 [19:29:07]MH_SAM_APDU [19:29:07]CAPDU: 80 0D 03 02 [19:29:07]Write to MH i2c: E2 08 00 09 39 80 0D 03 02 00 00 00 00 BD [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:07]Read from MH i2c: E2 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 0B 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 0B 00 09 39 00 DC CA 6A 9B AA BE C9 F3 90 00 8D [19:29:07]RAPDU: DC CA 6A 9B AA BE C9 F3 90 00 [19:29:07]wFMCommunicate OK [19:29:07]SAM_PROTO_SignData done [19:29:07]FM_MakeSignedData done [19:29:07]CreateOFDProtocolMessage [19:29:07]wFMCommunicate request_size=4 [19:29:07]MH_SAM_APDU [19:29:07]CAPDU: 80 11 00 00 [19:29:07]Write to MH i2c: E2 08 00 0A 39 80 11 00 00 00 00 00 00 BD [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:07]Read from MH i2c: E2 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 17 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: E2 17 00 0A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1D [19:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:29:07]wFMCommunicate OK [19:29:07]CreateOFDProtocolMessage done [19:29:07]OFDSenderStorePacket 162923 [19:29:07]StoreOFDPacket docnum=162923 [19:29:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 69 DD 07 01 CF E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 04 27 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7C 02 00 35 04 06 00 9C 44 60 C1 CA 46 DC CA 6A 9B AA BE C9 F3 [19:29:07]CheckFolder [19:29:07]dirname=/storage/ofd_packets [19:29:07]CheckFolder done [19:29:07]ProducePacketName [19:29:07]name=ofd_packets/00162923 [19:29:07]NVStorageSaveData ofd_packets/00162923 [19:29:07]File name is /storage/ofd_packets/00162923 [19:29:07]Write 301 bytes [19:29:07]NVStorageSaveData done [19:29:07]OFDSenderStorePacket done [19:29:07]KKMCreateOFDPacket done [19:29:07]NVStorageSaveData kkm_last_timestamp [19:29:07]File name is /storage/kkm_last_timestamp [19:29:07]Write 4 bytes [19:29:07]NVStorageSaveData done [19:29:07]ExternCall_PrintAddStr [19:29:07]wPrintStart [19:29:07]Write to MH i2c: 01 00 00 0B 39 44 [19:29:07]Write i2c OK [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: 01 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: 01 07 00 [19:29:07]MH_I2C_Read... [19:29:07]Read from MH i2c: 01 07 00 0B 39 00 00 00 00 00 FF 0F 59 [19:29:07]RasterBufferAndPrint [19:29:07]line Счет N : (1)1319534 [19:29:07]line ИНН: 02508201610067 [19:29:07]line Контрольно-Кассовый Чек [19:29:07]line ПРОДАЖА [19:29:07]line ТРК (МРК, ГНК) : 43 [19:29:07]line Товар: 2710124130 [19:29:07]line Аи-92-К-5 [19:29:07]line 15.090 * 66.30 [19:29:07]line = 1000.47 [19:29:07]line НДС 12% НСП 1% [19:29:07]line > о реализуемом товаре [19:29:07]line ОКРУГЛЕНИЕ: -0.47 [19:29:07]line ИТОГО: 1000.00 [19:29:07]line Внесено: 1000.00 [19:29:07]line СДАЧА: 0.00 [19:29:07]line НСП 1% : 8.85 [19:29:07]line НДС 12% : 106.24 [19:29:07]line Наличными: 1000.00 [19:29:07]line Безнал.: 0.00 [19:29:07]line Место: АЗС № 140 "Партнер Нефть" [19:29:07]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:29:07]line СНО: Общий режим [19:29:07]line Чек 235 14.07.2024 19:29 [19:29:07]line Смена: 463 ФФД: 1.0 [19:29:07]line ЗНМ: 0300000129 [19:29:07]line РНМ: 0000000000090858 [19:29:07]line Версия ККМ: 001 [19:29:07]line ФМ: 0000000000874899 [19:29:07]line ФД: 162923 [19:29:07]line ФПД: 171817495022150 [19:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T192908&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162923&fm=171817495022150&tin=02508201610067®Number=0000000000090858&sum=100000 [19:29:08]OFD Sender: Processing packet 162923 [packets to send 106, broken 105] [19:29:08]ProducePacketName [19:29:08]name=ofd_packets/00162923 [19:29:08]OFD Sender: To server: pG, [19:29:08]CommunicateWithHost lk.salyk.kg:30040 [19:29:08]ConnectInit lk.salyk.kg [19:29:08]written 0, free lines is 4095 [19:29:08]Connected sock=9 [19:29:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 69 DD 07 01 CF E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 04 27 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7C 02 00 35 04 06 00 9C 44 60 C1 CA 46 DC CA 6A 9B AA BE C9 F3 [19:29:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C1 E3 47 00 56 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7C 02 00 F4 03 04 00 11 D3 93 66 B6 04 01 00 00 BB BD 93 4E 87 E1 F3 BA [19:29:08]CommunicateWithHost err = 0 [19:29:08]CheckOFDResponse [19:29:08]1017 (14) - 77093643461234 [19:29:08]1041 (16) - 0000000000874899 [19:29:08]1040 (4) - 162923 [19:29:08]1012 (4) - 14.07.2024 13:30 [19:29:08]1206 (1) - 0 [19:29:08]OFD Sender: Remove packet 162923 [19:29:08]ProducePacketName [19:29:08]name=ofd_packets/00162923 [19:29:08]NVStorageDeleteData [19:29:08]Write to MH i2c: 01 00 00 36 39 6F [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: 01 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: 01 07 00 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: 01 07 00 36 39 00 00 00 00 00 D6 0C 58 [19:29:08]RasterBufferAndPrint [19:29:08]line [19:29:08]line [19:29:08]line [19:29:08]line [19:29:08]line [19:29:08]written 0, free lines is 3293 [19:29:08]MH_Cut [19:29:08]Write to MH i2c: D1 01 00 3D 39 01 48 [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: D1 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: D1 01 00 [19:29:08]MH_I2C_Read... [19:29:08]Read from MH i2c: D1 01 00 3D 39 00 47 [19:29:08]Write to MH i2c: 01 00 00 3E 39 77 [19:29:08]Write i2c OK [19:29:08]MH_I2C_Read... [19:29:08]OFD Sender: No OFD packet to send [19:29:09]*** Cut start [19:29:09]*** Purtial cut [19:29:09]*** Stage 1: CUTSNS_PIN = 1 [19:29:09]Read from MH i2c: 01 [19:29:09]MH_I2C_Read... [19:29:09]*** Stop cut motor [19:29:09]*** Cut end [19:29:09]Read from MH i2c: 01 07 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: 01 07 00 3E 39 00 00 00 00 00 FF 0F 8C [19:29:09]process_action close_receipt done [19:29:09]requested_data is exist [19:29:09]produce_requested_data [19:29:09]requested_item fm.sn is exist - process it [19:29:09]wFMCommunicate request_size=4 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 11 00 00 [19:29:09]Write to MH i2c: E2 08 00 3F 39 80 11 00 00 00 00 00 00 F2 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 17 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 17 00 3F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 52 [19:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:29:09]wFMCommunicate OK [19:29:09]requested_item fd.num is exist - process it [19:29:09]SAM_PROTO_GetFieldsCounters [19:29:09]wFMCommunicate request_size=4 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 13 00 00 [19:29:09]Write to MH i2c: E2 08 00 40 39 80 13 00 00 00 00 00 00 F5 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 62 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 62 00 40 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6B 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [19:29:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6B 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:09]wFMCommunicate OK [19:29:09]SAM_PROTO_GetFieldsCounters done [19:29:09]requested_item shift.num is exist - process it [19:29:09]requested_item shift.opened is exist - process it [19:29:09]req_shift_opened [19:29:09]FM_GetShiftState [19:29:09]SAM_PROTO_GetShiftState [19:29:09]wFMCommunicate request_size=4 [19:29:09]MH_SAM_APDU [19:29:09]CAPDU: 80 13 01 00 [19:29:09]Write to MH i2c: E2 08 00 41 39 80 13 01 00 00 00 00 00 F7 [19:29:09]Write i2c OK [19:29:09]MH_I2C_Read... [19:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:09]Read from MH i2c: E2 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 0E 00 [19:29:09]MH_I2C_Read... [19:29:09]Read from MH i2c: E2 0E 00 41 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2D [19:29:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:29:09]wFMCommunicate OK [19:29:09]SAM_PROTO_GetShiftState done [19:29:09]FM_GetShiftState done [19:29:09]req_shift_opened done [19:29:09]requested_item shift.open_date is exist - process it [19:29:09]req_shift_open_date [19:29:09]req_shift_open_date done [19:29:09]produce_requested_data done [19:29:09]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162923,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [19:29:09]process_action_free close_receipt [19:29:09]json_value_free [19:29:09]json_value_free done [19:29:09]process_json_proto returns [19:29:09]Send response to host [19:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162923,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [19:29:09]free response buf [19:29:09]execute_script done [19:29:09]execute_script returns [19:29:09]free content buf [19:29:09]Sock 10.Close socket [19:29:09]Sock 10.Thread stoped [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:16]accept exits with 7 [19:30:16]New connection [19:30:16]New thread 3066879332 created [19:30:16]Thread 3066735972 joined [19:30:16]Waiting for new connection... [19:30:16] Sock 7.Parse request [19:30:16]Sock 7.Check first char [19:30:16]Sock 7.First char is OK [19:30:16]request: POST /json_proto HTTP/1.0 [19:30:16]Method: POST [19:30:16]URL: /json_proto [19:30:16]Method is POST - this is cgi request [19:30:16]url: /json_proto [19:30:16]query_string will be loaded in cgi processing [19:30:16]execute_cgi json_proto POST (null) [19:30:16]execute_cgi path=json_proto method=POST [19:30:16]POST find Content-Length [19:30:16]Host: 172.17.39.67:8080 [19:30:16]Content-Length: 794 [19:30:16]Content-Type: application/json [19:30:16] [19:30:16]POST finish read [19:30:16]Found Content-Length = 794 [19:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.420, "sum" : 499.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" : 499.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:16]execute_script... [19:30:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.420, "sum" : 499.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" : 499.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:16]POST & json_proto [19:30:16]process_json_proto [19:30:16]json parsed OK: [19:30:16]protocol is kg_v1.0 [19:30:16]action value=close_receipt [19:30:16]process_action close_receipt [19:30:16]cmd_close_receipt [19:30:16]MH_GetDate [19:30:16]Write to MH i2c: F0 00 00 42 39 6A [19:30:16]Write i2c OK [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: F0 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: F0 09 00 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: F0 09 00 42 39 00 4B 27 94 66 B6 85 93 66 13 [19:30:16]GetLastDocTimeStamp 1720985348 [19:30:16]current date 1720985419 [19:30:16]FM_GetShiftState [19:30:16]SAM_PROTO_GetShiftState [19:30:16]wFMCommunicate request_size=4 [19:30:16]MH_SAM_APDU [19:30:16]CAPDU: 80 13 01 00 [19:30:16]Write to MH i2c: E2 08 00 43 39 80 13 01 00 00 00 00 00 F9 [19:30:16]Write i2c OK [19:30:16]MH_I2C_Read... [19:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:16]Read from MH i2c: E2 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: E2 0E 00 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: E2 0E 00 43 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2F [19:30:16]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:30:16]wFMCommunicate OK [19:30:16]SAM_PROTO_GetShiftState done [19:30:16]FM_GetShiftState done [19:30:16]opened in 1720915483 [19:30:16]opened+sec_in_day 1721001883 [19:30:16]quantity*price = 49936 [19:30:16]sum+1 = 49938 [19:30:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 499.37 НСП 1% : 4.42 НДС 12% : 53.03 Наличными: 0.00 Безнал.: 499.37 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 236 14.07.2024 19:30 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162924 ФПД: 108179460397140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T193019&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162924&fm=108179460397140&tin=02508201610067®Number=0000000000090858&sum=49937 [19:30:17]StoreToDocumentArchive [19:30:17]shift 463 fd 162924 [19:30:17]save to /storage/0463/doc_00162924 [19:30:17]save last doc name /storage/0463/doc_00162924 to /storage/kkm_last_doc_name [19:30:17]save OK [19:30:17]Clear old archive folders... [19:30:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:30:17]tlvbuf is 0123B650 [19:30:17]SAM_PROTO_ClearQueue [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 09 00 00 [19:30:17]Write to MH i2c: E2 08 00 50 39 80 09 00 00 00 00 00 00 FB [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 50 39 00 90 00 FD [19:30:17]RAPDU: 90 00 [19:30:17]wFMCommunicate OK [19:30:17]SAM_PROTO_ClearQueue done [19:30:17]KKMCreateOFDPacket [19:30:17]OFDProtocolAddRootSTLVToBuf [19:30:17]FM_MakeSignedData [19:30:17]FM_MakeSignedData [19:30:17]SAM_PROTO_SignData [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 0D 01 02 [19:30:17]Write to MH i2c: E2 08 00 51 39 80 0D 01 02 00 00 00 00 03 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 51 39 00 90 00 FE [19:30:17]RAPDU: 90 00 [19:30:17]wFMCommunicate OK [19:30:17]wFMCommunicate request_size=255 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 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 B7 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 4B 27 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7C 02 00 35 04 06 00 [19:30:17]Write to MH i2c: E2 02 01 52 39 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 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 B7 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 4B 27 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7C 02 00 35 04 06 00 00 00 D9 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:18]Read from MH i2c: E2 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 03 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 03 00 52 39 00 90 00 FF [19:30:18]RAPDU: 90 00 [19:30:18]wFMCommunicate OK [19:30:18]wFMCommunicate request_size=11 [19:30:18]MH_SAM_APDU [19:30:18]CAPDU: 80 0D 02 02 06 62 63 7E 4F 18 54 [19:30:18]Write to MH i2c: E2 0E 00 53 39 80 0D 02 02 06 00 62 63 7E 4F 18 54 00 00 10 [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:18]Read from MH i2c: E2 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 03 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 03 00 53 39 00 90 00 00 [19:30:18]RAPDU: 90 00 [19:30:18]wFMCommunicate OK [19:30:18]wFMCommunicate request_size=4 [19:30:18]MH_SAM_APDU [19:30:18]CAPDU: 80 0D 03 02 [19:30:18]Write to MH i2c: E2 08 00 54 39 80 0D 03 02 00 00 00 00 08 [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:18]Read from MH i2c: E2 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 0B 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 0B 00 54 39 00 12 5B 48 7A 6E C2 0A AB 90 00 1D [19:30:18]RAPDU: 12 5B 48 7A 6E C2 0A AB 90 00 [19:30:18]wFMCommunicate OK [19:30:18]SAM_PROTO_SignData done [19:30:18]FM_MakeSignedData done [19:30:18]CreateOFDProtocolMessage [19:30:18]wFMCommunicate request_size=4 [19:30:18]MH_SAM_APDU [19:30:18]CAPDU: 80 11 00 00 [19:30:18]Write to MH i2c: E2 08 00 55 39 80 11 00 00 00 00 00 00 08 [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:18]Read from MH i2c: E2 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 17 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: E2 17 00 55 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 68 [19:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:30:18]wFMCommunicate OK [19:30:18]CreateOFDProtocolMessage done [19:30:18]OFDSenderStorePacket 162924 [19:30:18]StoreOFDPacket docnum=162924 [19:30:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B5 36 08 01 CE 46 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 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 B7 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 4B 27 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7C 02 00 35 04 06 00 62 63 7E 4F 18 54 12 5B 48 7A 6E C2 0A AB [19:30:18]CheckFolder [19:30:18]dirname=/storage/ofd_packets [19:30:18]CheckFolder done [19:30:18]ProducePacketName [19:30:18]name=ofd_packets/00162924 [19:30:18]NVStorageSaveData ofd_packets/00162924 [19:30:18]File name is /storage/ofd_packets/00162924 [19:30:18]Write 302 bytes [19:30:18]NVStorageSaveData done [19:30:18]OFDSenderStorePacket done [19:30:18]KKMCreateOFDPacket done [19:30:18]NVStorageSaveData kkm_last_timestamp [19:30:18]File name is /storage/kkm_last_timestamp [19:30:18]Write 4 bytes [19:30:18]NVStorageSaveData done [19:30:18]ExternCall_PrintAddStr [19:30:18]wPrintStart [19:30:18]Write to MH i2c: 01 00 00 56 39 8F [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 07 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 07 00 56 39 00 00 00 00 00 FF 0F A4 [19:30:18]RasterBufferAndPrint [19:30:18]line Счет N : (1)1319535 [19:30:18]line ИНН: 02508201610067 [19:30:18]line Контрольно-Кассовый Чек [19:30:18]line ПРОДАЖА [19:30:18]line ТРК (МРК, ГНК) : 32 [19:30:18]line Товар: 2710124130 [19:30:18]line Super-92-К-5 [19:30:18]line 7.420 * 67.30 [19:30:18]line = 499.37 [19:30:18]line НДС 12% НСП 1% [19:30:18]line > о реализуемом товаре [19:30:18]line ИТОГО: 499.37 [19:30:18]line НСП 1% : 4.42 [19:30:18]line НДС 12% : 53.03 [19:30:18]line Наличными: 0.00 [19:30:18]line Безнал.: 499.37 [19:30:18]line Место: АЗС № 140 "Партнер Нефть" [19:30:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:30:18]line СНО: Общий режим [19:30:18]line Чек 236 14.07.2024 19:30 [19:30:18]line Смена: 463 ФФД: 1.0 [19:30:18]line ЗНМ: 0300000129 [19:30:18]line РНМ: 0000000000090858 [19:30:18]line Версия ККМ: 001 [19:30:18]line Платежная система: O! деньги [19:30:18]line ФМ: 0000000000874899 [19:30:18]line ФД: 162924 [19:30:18]line ФПД: 108179460397140 [19:30:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T193019&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162924&fm=108179460397140&tin=02508201610067®Number=0000000000090858&sum=49937 [19:30:18]written 0, free lines is 4095 [19:30:18]OFD Sender: Processing packet 162924 [packets to send 106, broken 105] [19:30:18]ProducePacketName [19:30:18]name=ofd_packets/00162924 [19:30:18]OFD Sender: To server: pG, [19:30:18]CommunicateWithHost lk.salyk.kg:30040 [19:30:18]ConnectInit lk.salyk.kg [19:30:18]Connected sock=10 [19:30:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B5 36 08 01 CE 46 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 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 B7 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 4B 27 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7C 02 00 35 04 06 00 62 63 7E 4F 18 54 12 5B 48 7A 6E C2 0A AB [19:30:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 62 FE 47 00 58 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7C 02 00 F4 03 04 00 57 D3 93 66 B6 04 01 00 00 BC E2 62 4B 00 4F CC 73 [19:30:18]CommunicateWithHost err = 0 [19:30:18]CheckOFDResponse [19:30:18]1017 (14) - 77093643461234 [19:30:18]1041 (16) - 0000000000874899 [19:30:18]1040 (4) - 162924 [19:30:18]1012 (4) - 14.07.2024 13:32 [19:30:18]1206 (1) - 0 [19:30:18]OFD Sender: Remove packet 162924 [19:30:18]ProducePacketName [19:30:18]name=ofd_packets/00162924 [19:30:18]NVStorageDeleteData [19:30:18]Write to MH i2c: 01 00 00 80 39 B9 [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 07 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 07 00 80 39 00 00 00 00 00 F3 0C BF [19:30:18]RasterBufferAndPrint [19:30:18]line [19:30:18]line [19:30:18]line [19:30:18]line [19:30:18]line [19:30:18]written 0, free lines is 3324 [19:30:18]MH_Cut [19:30:18]Write to MH i2c: D1 01 00 87 39 01 92 [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: D1 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: D1 01 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: D1 01 00 87 39 00 91 [19:30:18]Write to MH i2c: 01 00 00 88 39 C1 [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:19]OFD Sender: No OFD packet to send [19:30:19]*** Cut start [19:30:19]*** Purtial cut [19:30:19]*** CUTSNS_PIN = 0 [19:30:19]*** Stage 1: CUTSNS_PIN = 1 [19:30:21]Read from MH i2c: 01 [19:30:21]MH_I2C_Read... [19:30:21]*** Stop cut motor [19:30:21]*** Cut end [19:30:21]Read from MH i2c: 01 07 00 [19:30:21]MH_I2C_Read... [19:30:21]Read from MH i2c: 01 07 00 88 39 00 00 00 00 00 FF 0F D6 [19:30:21]process_action close_receipt done [19:30:21]requested_data is exist [19:30:21]produce_requested_data [19:30:21]requested_item fm.sn is exist - process it [19:30:21]wFMCommunicate request_size=4 [19:30:21]MH_SAM_APDU [19:30:21]CAPDU: 80 11 00 00 [19:30:21]Write to MH i2c: E2 08 00 89 39 80 11 00 00 00 00 00 00 3C [19:30:21]Write i2c OK [19:30:21]MH_I2C_Read... [19:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:21]Read from MH i2c: E2 [19:30:21]MH_I2C_Read... [19:30:21]Read from MH i2c: E2 17 00 [19:30:21]MH_I2C_Read... [19:30:21]Read from MH i2c: E2 17 00 89 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9C [19:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:30:21]wFMCommunicate OK [19:30:21]requested_item fd.num is exist - process it [19:30:21]SAM_PROTO_GetFieldsCounters [19:30:21]wFMCommunicate request_size=4 [19:30:21]MH_SAM_APDU [19:30:21]CAPDU: 80 13 00 00 [19:30:21]Write to MH i2c: E2 08 00 8A 39 80 13 00 00 00 00 00 00 3F [19:30:21]Write i2c OK [19:30:21]MH_I2C_Read... [19:30:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:21]Read from MH i2c: E2 [19:30:21]MH_I2C_Read... [19:30:21]Read from MH i2c: E2 62 00 [19:30:21]MH_I2C_Read... [19:30:21]Read from MH i2c: E2 62 00 8A 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6C 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [19:30:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6C 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:21]wFMCommunicate OK [19:30:21]SAM_PROTO_GetFieldsCounters done [19:30:21]requested_item shift.num is exist - process it [19:30:21]requested_item shift.opened is exist - process it [19:30:21]req_shift_opened [19:30:21]FM_GetShiftState [19:30:21]SAM_PROTO_GetShiftState [19:30:21]wFMCommunicate request_size=4 [19:30:21]MH_SAM_APDU [19:30:21]CAPDU: 80 13 01 00 [19:30:21]Write to MH i2c: E2 08 00 8B 39 80 13 01 00 00 00 00 00 41 [19:30:21]Write i2c OK [19:30:21]MH_I2C_Read... [19:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:21]Read from MH i2c: E2 [19:30:21]MH_I2C_Read... [19:30:21]Read from MH i2c: E2 0E 00 [19:30:21]MH_I2C_Read... [19:30:21]Read from MH i2c: E2 0E 00 8B 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 77 [19:30:21]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:30:21]wFMCommunicate OK [19:30:21]SAM_PROTO_GetShiftState done [19:30:21]FM_GetShiftState done [19:30:21]req_shift_opened done [19:30:21]requested_item shift.open_date is exist - process it [19:30:21]req_shift_open_date [19:30:21]req_shift_open_date done [19:30:21]produce_requested_data done [19:30:21]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162924,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [19:30:21]process_action_free close_receipt [19:30:21]json_value_free [19:30:21]json_value_free done [19:30:21]process_json_proto returns [19:30:21]Send response to host [19:30:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162924,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [19:30:21]free response buf [19:30:21]execute_script done [19:30:21]execute_script returns [19:30:21]free content buf [19:30:21]Sock 7.Close socket [19:30:21]Sock 7.Thread stoped [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: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: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: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: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:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:00]accept exits with 9 [19:42:00]New connection [19:42:00]New thread 3066735972 created [19:42:00]Thread 3066879332 joined [19:42:00]Waiting for new connection... [19:42:00] Sock 9.Parse request [19:42:00]Sock 9.Check first char [19:42:00]Sock 9.First char is OK [19:42:00]request: POST /json_proto HTTP/1.0 [19:42:00]Method: POST [19:42:00]URL: /json_proto [19:42:00]Method is POST - this is cgi request [19:42:00]url: /json_proto [19:42:00]query_string will be loaded in cgi processing [19:42:00]execute_cgi json_proto POST (null) [19:42:00]execute_cgi path=json_proto method=POST [19:42:00]POST find Content-Length [19:42:00]Host: 172.17.39.67:8080 [19:42:00]Content-Length: 676 [19:42:00]Content-Type: application/json [19:42:00] [19:42:00]POST finish read [19:42:00]Found Content-Length = 676 [19:42:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 18.580, "sum" : 1250.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1250.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:00]execute_script... [19: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)1319536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 18.580, "sum" : 1250.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1250.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:00]POST & json_proto [19:42:00]process_json_proto [19:42:00]json parsed OK: [19:42:00]protocol is kg_v1.0 [19:42:00]action value=close_receipt [19:42:00]process_action close_receipt [19:42:00]cmd_close_receipt [19:42:00]MH_GetDate [19:42:00]Write to MH i2c: F0 00 00 8C 39 B4 [19:42:00]Write i2c OK [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: F0 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: F0 09 00 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: F0 09 00 8C 39 00 0B 2A 94 66 B6 85 93 66 20 [19:42:00]GetLastDocTimeStamp 1720985419 [19:42:00]current date 1720986123 [19:42:00]FM_GetShiftState [19:42:00]SAM_PROTO_GetShiftState [19:42:00]wFMCommunicate request_size=4 [19:42:00]MH_SAM_APDU [19:42:00]CAPDU: 80 13 01 00 [19:42:00]Write to MH i2c: E2 08 00 8D 39 80 13 01 00 00 00 00 00 43 [19:42:00]Write i2c OK [19:42:00]MH_I2C_Read... [19:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:00]Read from MH i2c: E2 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 0E 00 [19:42:00]MH_I2C_Read... [19:42:00]Read from MH i2c: E2 0E 00 8D 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 79 [19:42:00]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:42:00]wFMCommunicate OK [19:42:00]SAM_PROTO_GetShiftState done [19:42:00]FM_GetShiftState done [19:42:00]opened in 1720915483 [19:42:00]opened+sec_in_day 1721001883 [19:42:00]quantity*price = 125043 [19:42:00]sum+1 = 125044 [19:42:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1250.00 Внесено: 1250.00 СДАЧА: 0.00 НСП 1% : 11.07 НДС 12% : 132.79 Наличными: 1250.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 237 14.07.2024 19:42 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162925 ФПД: 81712388655546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T194203&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162925&fm=81712388655546&tin=02508201610067®Number=0000000000090858&sum=125000 [19:42:01]StoreToDocumentArchive [19:42:01]shift 463 fd 162925 [19:42:01]save to /storage/0463/doc_00162925 [19:42:01]save last doc name /storage/0463/doc_00162925 to /storage/kkm_last_doc_name [19:42:01]save OK [19:42:01]Clear old archive folders... [19:42:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:42:01]tlvbuf is B6F43740 [19:42:01]SAM_PROTO_ClearQueue [19:42:01]wFMCommunicate request_size=4 [19:42:01]MH_SAM_APDU [19:42:01]CAPDU: 80 09 00 00 [19:42:01]Write to MH i2c: E2 08 00 9A 39 80 09 00 00 00 00 00 00 45 [19:42:01]Write i2c OK [19:42:01]MH_I2C_Read... [19:42:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:01]Read from MH i2c: E2 [19:42:01]MH_I2C_Read... [19:42:01]Read from MH i2c: E2 03 00 [19:42:01]MH_I2C_Read... [19:42:01]Read from MH i2c: E2 03 00 9A 39 00 90 00 47 [19:42:01]RAPDU: 90 00 [19:42:01]wFMCommunicate OK [19:42:01]SAM_PROTO_ClearQueue done [19:42:01]KKMCreateOFDPacket [19:42:01]OFDProtocolAddRootSTLVToBuf [19:42:01]FM_MakeSignedData [19:42:01]FM_MakeSignedData [19:42:01]SAM_PROTO_SignData [19:42:01]wFMCommunicate request_size=4 [19:42:01]MH_SAM_APDU [19:42:01]CAPDU: 80 0D 01 02 [19:42:01]Write to MH i2c: E2 08 00 9B 39 80 0D 01 02 00 00 00 00 4D [19:42:01]Write i2c OK [19:42:01]MH_I2C_Read... [19:42:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:01]Read from MH i2c: E2 [19:42:01]MH_I2C_Read... [19:42:01]Read from MH i2c: E2 03 00 [19:42:01]MH_I2C_Read... [19:42:01]Read from MH i2c: E2 03 00 9B 39 00 90 00 48 [19:42:01]RAPDU: 90 00 [19:42:01]wFMCommunicate OK [19:42:01]wFMCommunicate request_size=255 [19:42:01]MH_SAM_APDU [19:42:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 48 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 73 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 0B 2A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7C 02 00 35 04 06 00 [19:42:01]Write to MH i2c: E2 02 01 9C 39 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 48 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 73 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 0B 2A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7C 02 00 35 04 06 00 00 00 D1 [19:42:01]Write i2c OK [19:42:01]MH_I2C_Read... [19:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:02]Read from MH i2c: E2 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 03 00 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 03 00 9C 39 00 90 00 49 [19:42:02]RAPDU: 90 00 [19:42:02]wFMCommunicate OK [19:42:02]wFMCommunicate request_size=11 [19:42:02]MH_SAM_APDU [19:42:02]CAPDU: 80 0D 02 02 06 4A 51 25 E6 49 BA [19:42:02]Write to MH i2c: E2 0E 00 9D 39 80 0D 02 02 06 00 4A 51 25 E6 49 BA 00 00 05 [19:42:02]Write i2c OK [19:42:02]MH_I2C_Read... [19:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:02]Read from MH i2c: E2 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 03 00 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 03 00 9D 39 00 90 00 4A [19:42:02]RAPDU: 90 00 [19:42:02]wFMCommunicate OK [19:42:02]wFMCommunicate request_size=4 [19:42:02]MH_SAM_APDU [19:42:02]CAPDU: 80 0D 03 02 [19:42:02]Write to MH i2c: E2 08 00 9E 39 80 0D 03 02 00 00 00 00 52 [19:42:02]Write i2c OK [19:42:02]MH_I2C_Read... [19:42:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:02]Read from MH i2c: E2 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 0B 00 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 0B 00 9E 39 00 3A 6A 3A B4 A8 6F 78 A9 90 00 1D [19:42:02]RAPDU: 3A 6A 3A B4 A8 6F 78 A9 90 00 [19:42:02]wFMCommunicate OK [19:42:02]SAM_PROTO_SignData done [19:42:02]FM_MakeSignedData done [19:42:02]CreateOFDProtocolMessage [19:42:02]wFMCommunicate request_size=4 [19:42:02]MH_SAM_APDU [19:42:02]CAPDU: 80 11 00 00 [19:42:02]Write to MH i2c: E2 08 00 9F 39 80 11 00 00 00 00 00 00 52 [19:42:02]Write i2c OK [19:42:02]MH_I2C_Read... [19:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:02]Read from MH i2c: E2 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 17 00 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: E2 17 00 9F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B2 [19:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:42:02]wFMCommunicate OK [19:42:02]CreateOFDProtocolMessage done [19:42:02]OFDSenderStorePacket 162925 [19:42:02]StoreOFDPacket docnum=162925 [19:42:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6C 9D 08 01 9F 51 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 48 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 73 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 0B 2A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7C 02 00 35 04 06 00 4A 51 25 E6 49 BA 3A 6A 3A B4 A8 6F 78 A9 [19:42:02]CheckFolder [19:42:02]dirname=/storage/ofd_packets [19:42:02]CheckFolder done [19:42:02]ProducePacketName [19:42:02]name=ofd_packets/00162925 [19:42:02]NVStorageSaveData ofd_packets/00162925 [19:42:02]File name is /storage/ofd_packets/00162925 [19:42:02]Write 302 bytes [19:42:02]NVStorageSaveData done [19:42:02]OFDSenderStorePacket done [19:42:02]KKMCreateOFDPacket done [19:42:02]NVStorageSaveData kkm_last_timestamp [19:42:02]File name is /storage/kkm_last_timestamp [19:42:02]Write 4 bytes [19:42:02]NVStorageSaveData done [19:42:02]ExternCall_PrintAddStr [19:42:02]wPrintStart [19:42:02]Write to MH i2c: 01 00 00 A0 39 D9 [19:42:02]Write i2c OK [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: 01 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: 01 07 00 [19:42:02]MH_I2C_Read... [19:42:02]Read from MH i2c: 01 07 00 A0 39 00 00 00 00 00 FF 0F EE [19:42:02]RasterBufferAndPrint [19:42:02]line Счет N : (1)1319536 [19:42:02]line ИНН: 02508201610067 [19:42:02]line Контрольно-Кассовый Чек [19:42:02]line ПРОДАЖА [19:42:02]line ТРК (МРК, ГНК) : 62 [19:42:02]line Товар: 2710124130 [19:42:02]line Super-92-К-5 [19:42:02]line 18.580 * 67.30 [19:42:02]line = 1250.43 [19:42:02]line НДС 12% НСП 1% [19:42:02]line > о реализуемом товаре [19:42:02]line ОКРУГЛЕНИЕ: -0.43 [19:42:02]line ИТОГО: 1250.00 [19:42:02]line Внесено: 1250.00 [19:42:02]line СДАЧА: 0.00 [19:42:02]line НСП 1% : 11.07 [19:42:02]line НДС 12% : 132.79 [19:42:02]line Наличными: 1250.00 [19:42:02]line Безнал.: 0.00 [19:42:02]line Место: АЗС № 140 "Партнер Нефть" [19:42:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:42:02]line СНО: Общий режим [19:42:02]line Чек 237 14.07.2024 19:42 [19:42:02]line Смена: 463 ФФД: 1.0 [19:42:02]line ЗНМ: 0300000129 [19:42:02]line РНМ: 0000000000090858 [19:42:02]line Версия ККМ: 001 [19:42:02]line ФМ: 0000000000874899 [19:42:02]line ФД: 162925 [19:42:02]line ФПД: 81712388655546 [19:42:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T194203&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162925&fm=81712388655546&tin=02508201610067®Number=0000000000090858&sum=125000 [19:42:02]OFD Sender: Processing packet 162925 [packets to send 106, broken 105] [19:42:02]ProducePacketName [19:42:02]name=ofd_packets/00162925 [19:42:02]OFD Sender: To server: pG, [19:42:02]CommunicateWithHost lk.salyk.kg:30040 [19:42:02]ConnectInit lk.salyk.kg [19:42:02]written 0, free lines is 4095 [19:42:02]Connected sock=10 [19: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 34 38 39 39 10 01 00 00 6C 9D 08 01 9F 51 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 48 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 73 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 0B 2A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7C 02 00 35 04 06 00 4A 51 25 E6 49 BA 3A 6A 3A B4 A8 6F 78 A9 [19:42:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 1A D0 47 00 9D FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7C 02 00 F4 03 04 00 18 D6 93 66 B6 04 01 00 00 1F A5 D2 86 C0 43 F9 F9 [19:42:03]CommunicateWithHost err = 0 [19:42:03]CheckOFDResponse [19:42:03]1017 (14) - 77093643461234 [19:42:03]1041 (16) - 0000000000874899 [19:42:03]1040 (4) - 162925 [19:42:03]1012 (4) - 14.07.2024 13:43 [19:42:03]1206 (1) - 0 [19:42:03]OFD Sender: Remove packet 162925 [19:42:03]ProducePacketName [19:42:03]name=ofd_packets/00162925 [19:42:03]NVStorageDeleteData [19:42:03]Write to MH i2c: 01 00 00 CB 39 04 [19:42:03]Write i2c OK [19:42:03]MH_I2C_Read... [19:42:03]Read from MH i2c: 01 [19:42:03]MH_I2C_Read... [19:42:03]Read from MH i2c: 01 07 00 [19:42:03]MH_I2C_Read... [19:42:03]Read from MH i2c: 01 07 00 CB 39 00 00 00 00 00 E4 0C FB [19:42:03]RasterBufferAndPrint [19:42:03]line [19:42:03]line [19:42:03]line [19:42:03]line [19:42:03]line [19:42:03]written 0, free lines is 3306 [19:42:03]MH_Cut [19:42:03]Write to MH i2c: D1 01 00 D2 39 01 DD [19:42:03]Write i2c OK [19:42:03]MH_I2C_Read... [19:42:03]Read from MH i2c: D1 [19:42:03]MH_I2C_Read... [19:42:03]Read from MH i2c: D1 01 00 [19:42:03]MH_I2C_Read... [19:42:03]Read from MH i2c: D1 01 00 D2 39 00 DC [19:42:03]Write to MH i2c: 01 00 00 D3 39 0C [19:42:03]Write i2c OK [19:42:03]MH_I2C_Read... [19:42:03]OFD Sender: No OFD packet to send [19:42:03]*** Cut start [19:42:03]*** Purtial cut [19:42:03]*** Stage 1: CUTSNS_PIN = 1 [19:42:04]Read from MH i2c: 01 [19:42:04]MH_I2C_Read... [19:42:04]*** Stop cut motor [19:42:04]*** Cut end [19:42:04]Read from MH i2c: 01 07 00 [19:42:04]MH_I2C_Read... [19:42:04]Read from MH i2c: 01 07 00 D3 39 00 00 00 00 00 FF 0F 21 [19:42:04]process_action close_receipt done [19:42:04]requested_data is exist [19:42:04]produce_requested_data [19:42:04]requested_item fm.sn is exist - process it [19:42:04]wFMCommunicate request_size=4 [19:42:04]MH_SAM_APDU [19:42:04]CAPDU: 80 11 00 00 [19:42:04]Write to MH i2c: E2 08 00 D4 39 80 11 00 00 00 00 00 00 87 [19:42:04]Write i2c OK [19:42:04]MH_I2C_Read... [19:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:04]Read from MH i2c: E2 [19:42:04]MH_I2C_Read... [19:42:04]Read from MH i2c: E2 17 00 [19:42:04]MH_I2C_Read... [19:42:04]Read from MH i2c: E2 17 00 D4 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E7 [19:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:42:04]wFMCommunicate OK [19:42:04]requested_item fd.num is exist - process it [19:42:04]SAM_PROTO_GetFieldsCounters [19:42:04]wFMCommunicate request_size=4 [19:42:04]MH_SAM_APDU [19:42:04]CAPDU: 80 13 00 00 [19:42:04]Write to MH i2c: E2 08 00 D5 39 80 13 00 00 00 00 00 00 8A [19:42:04]Write i2c OK [19:42:04]MH_I2C_Read... [19:42:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:04]Read from MH i2c: E2 [19:42:04]MH_I2C_Read... [19:42:04]Read from MH i2c: E2 62 00 [19:42:04]MH_I2C_Read... [19:42:04]Read from MH i2c: E2 62 00 D5 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6D 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [19:42:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6D 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:04]wFMCommunicate OK [19:42:04]SAM_PROTO_GetFieldsCounters done [19:42:04]requested_item shift.num is exist - process it [19:42:04]requested_item shift.opened is exist - process it [19:42:04]req_shift_opened [19:42:04]FM_GetShiftState [19:42:04]SAM_PROTO_GetShiftState [19:42:04]wFMCommunicate request_size=4 [19:42:04]MH_SAM_APDU [19:42:04]CAPDU: 80 13 01 00 [19:42:04]Write to MH i2c: E2 08 00 D6 39 80 13 01 00 00 00 00 00 8C [19:42:04]Write i2c OK [19:42:04]MH_I2C_Read... [19:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:04]Read from MH i2c: E2 [19:42:04]MH_I2C_Read... [19:42:04]Read from MH i2c: E2 0E 00 [19:42:04]MH_I2C_Read... [19:42:04]Read from MH i2c: E2 0E 00 D6 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C2 [19:42:04]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:42:04]wFMCommunicate OK [19:42:04]SAM_PROTO_GetShiftState done [19:42:04]FM_GetShiftState done [19:42:04]req_shift_opened done [19:42:04]requested_item shift.open_date is exist - process it [19:42:04]req_shift_open_date [19:42:04]req_shift_open_date done [19:42:04]produce_requested_data done [19:42:04]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162925,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [19:42:04]process_action_free close_receipt [19:42:04]json_value_free [19:42:04]json_value_free done [19:42:04]process_json_proto returns [19:42:04]Send response to host [19:42:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162925,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [19:42:04]free response buf [19:42:04]execute_script done [19:42:04]execute_script returns [19:42:04]free content buf [19:42:04]Sock 9.Close socket [19:42:04]Sock 9.Thread stoped [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:16]accept exits with 7 [19:42:16]New connection [19:42:16]New thread 3066879332 created [19:42:16]Thread 3066735972 joined [19:42:16]Waiting for new connection... [19:42:16] Sock 7.Parse request [19:42:16]Sock 7.Check first char [19:42:16]Sock 7.First char is OK [19:42:16]request: POST /json_proto HTTP/1.0 [19:42:16]Method: POST [19:42:16]URL: /json_proto [19:42:16]Method is POST - this is cgi request [19:42:16]url: /json_proto [19:42:16]query_string will be loaded in cgi processing [19:42:16]execute_cgi json_proto POST (null) [19:42:16]execute_cgi path=json_proto method=POST [19:42:16]POST find Content-Length [19:42:16]Host: 172.17.39.67:8080 [19:42:16]Content-Length: 809 [19:42:16]Content-Type: application/json [19:42:16] [19:42:16]POST finish read [19:42:16]Found Content-Length = 809 [19:42:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.000, "sum" : 1452.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:16]execute_script... [19:42: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)1319537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.000, "sum" : 1452.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:16]POST & json_proto [19:42:16]process_json_proto [19:42:16]json parsed OK: [19:42:16]protocol is kg_v1.0 [19:42:16]action value=close_receipt [19:42:16]process_action close_receipt [19:42:16]cmd_close_receipt [19:42:16]MH_GetDate [19:42:16]Write to MH i2c: F0 00 00 D7 39 FF [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: F0 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: F0 09 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: F0 09 00 D7 39 00 1B 2A 94 66 B6 85 93 66 7B [19:42:16]GetLastDocTimeStamp 1720986123 [19:42:16]current date 1720986139 [19:42:16]FM_GetShiftState [19:42:16]SAM_PROTO_GetShiftState [19:42:16]wFMCommunicate request_size=4 [19:42:16]MH_SAM_APDU [19:42:16]CAPDU: 80 13 01 00 [19:42:16]Write to MH i2c: E2 08 00 D8 39 80 13 01 00 00 00 00 00 8E [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:16]Read from MH i2c: E2 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 0E 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 0E 00 D8 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C4 [19:42:16]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:42:16]wFMCommunicate OK [19:42:16]SAM_PROTO_GetShiftState done [19:42:16]FM_GetShiftState done [19:42:16]opened in 1720915483 [19:42:16]opened+sec_in_day 1721001883 [19:42:16]quantity*price = 145200 [19:42:16]sum+1 = 145201 [19:42:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1452.00 НСП 1% : 12.85 НДС 12% : 154.19 Наличными: 0.00 Безнал.: 1452.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 238 14.07.2024 19:42 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162926 ФПД: 54327867088374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T194219&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162926&fm=54327867088374&tin=02508201610067®Number=0000000000090858&sum=145200 [19:42:18]StoreToDocumentArchive [19:42:18]shift 463 fd 162926 [19:42:18]save to /storage/0463/doc_00162926 [19:42:18]save last doc name /storage/0463/doc_00162926 to /storage/kkm_last_doc_name [19:42:18]save OK [19:42:18]Clear old archive folders... [19:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:42:18]tlvbuf is 013569C0 [19:42:18]SAM_PROTO_ClearQueue [19:42:18]wFMCommunicate request_size=4 [19:42:18]MH_SAM_APDU [19:42:18]CAPDU: 80 09 00 00 [19:42:18]Write to MH i2c: E2 08 00 E5 39 80 09 00 00 00 00 00 00 90 [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:18]Read from MH i2c: E2 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 03 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 03 00 E5 39 00 90 00 92 [19:42:18]RAPDU: 90 00 [19:42:18]wFMCommunicate OK [19:42:18]SAM_PROTO_ClearQueue done [19:42:18]KKMCreateOFDPacket [19:42:18]OFDProtocolAddRootSTLVToBuf [19:42:18]FM_MakeSignedData [19:42:18]FM_MakeSignedData [19:42:18]SAM_PROTO_SignData [19:42:18]wFMCommunicate request_size=4 [19:42:18]MH_SAM_APDU [19:42:18]CAPDU: 80 0D 01 02 [19:42:18]Write to MH i2c: E2 08 00 E6 39 80 0D 01 02 00 00 00 00 98 [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:18]Read from MH i2c: E2 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 03 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 03 00 E6 39 00 90 00 93 [19:42:18]RAPDU: 90 00 [19:42:18]wFMCommunicate OK [19:42:18]wFMCommunicate request_size=255 [19:42:18]MH_SAM_APDU [19:42:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 37 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 1B 2A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7C 02 00 35 04 06 00 [19:42:18]Write to MH i2c: E2 02 01 E7 39 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 37 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 1B 2A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7C 02 00 35 04 06 00 00 00 7A [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:18]Read from MH i2c: E2 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 03 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 03 00 E7 39 00 90 00 94 [19:42:18]RAPDU: 90 00 [19:42:18]wFMCommunicate OK [19:42:18]wFMCommunicate request_size=11 [19:42:18]MH_SAM_APDU [19:42:18]CAPDU: 80 0D 02 02 06 31 69 31 38 1D F6 [19:42:18]Write to MH i2c: E2 0E 00 E8 39 80 0D 02 02 06 00 31 69 31 38 1D F6 00 00 BD [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:18]Read from MH i2c: E2 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 03 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 03 00 E8 39 00 90 00 95 [19:42:18]RAPDU: 90 00 [19:42:18]wFMCommunicate OK [19:42:18]wFMCommunicate request_size=4 [19:42:18]MH_SAM_APDU [19:42:18]CAPDU: 80 0D 03 02 [19:42:18]Write to MH i2c: E2 08 00 E9 39 80 0D 03 02 00 00 00 00 9D [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:18]Read from MH i2c: E2 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 0B 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 0B 00 E9 39 00 9D C0 C7 CA CA 78 F3 E7 90 00 A8 [19:42:18]RAPDU: 9D C0 C7 CA CA 78 F3 E7 90 00 [19:42:18]wFMCommunicate OK [19:42:18]SAM_PROTO_SignData done [19:42:18]FM_MakeSignedData done [19:42:18]CreateOFDProtocolMessage [19:42:18]wFMCommunicate request_size=4 [19:42:18]MH_SAM_APDU [19:42:18]CAPDU: 80 11 00 00 [19:42:18]Write to MH i2c: E2 08 00 EA 39 80 11 00 00 00 00 00 00 9D [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:18]Read from MH i2c: E2 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 17 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: E2 17 00 EA 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FD [19:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:42:18]wFMCommunicate OK [19:42:18]CreateOFDProtocolMessage done [19:42:18]OFDSenderStorePacket 162926 [19:42:18]StoreOFDPacket docnum=162926 [19:42:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 DA 24 08 01 91 CF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 37 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 1B 2A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7C 02 00 35 04 06 00 31 69 31 38 1D F6 9D C0 C7 CA CA 78 F3 E7 [19:42:18]CheckFolder [19:42:18]dirname=/storage/ofd_packets [19:42:18]CheckFolder done [19:42:18]ProducePacketName [19:42:18]name=ofd_packets/00162926 [19:42:18]NVStorageSaveData ofd_packets/00162926 [19:42:18]File name is /storage/ofd_packets/00162926 [19:42:18]Write 302 bytes [19:42:18]NVStorageSaveData done [19:42:18]OFDSenderStorePacket done [19:42:18]KKMCreateOFDPacket done [19:42:18]NVStorageSaveData kkm_last_timestamp [19:42:18]File name is /storage/kkm_last_timestamp [19:42:18]Write 4 bytes [19:42:18]NVStorageSaveData done [19:42:18]ExternCall_PrintAddStr [19:42:18]wPrintStart [19:42:18]Write to MH i2c: 01 00 00 EB 39 24 [19:42:18]Write i2c OK [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 07 00 [19:42:18]MH_I2C_Read... [19:42:18]Read from MH i2c: 01 07 00 EB 39 00 00 00 00 00 FF 0F 39 [19:42:18]RasterBufferAndPrint [19:42:18]line Счет N : (1)1319537 [19:42:18]line ИНН: 02508201610067 [19:42:18]line Контрольно-Кассовый Чек [19:42:18]line ПРОДАЖА [19:42:18]line ТРК (МРК, ГНК) : 11 [19:42:18]line Товар: 2710194210 [19:42:18]line ДТ(л)-К-5 [19:42:18]line 20.000 * 72.60 [19:42:18]line = 1452.00 [19:42:18]line НДС 12% НСП 1% [19:42:18]line > о реализуемом товаре [19:42:18]line ИТОГО: 1452.00 [19:42:18]line НСП 1% : 12.85 [19:42:18]line НДС 12% : 154.19 [19:42:18]line Наличными: 0.00 [19:42:18]line Безнал.: 1452.00 [19:42:18]line Место: АЗС № 140 "Партнер Нефть" [19:42:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:42:18]line СНО: Общий режим [19:42:18]line Чек 238 14.07.2024 19:42 [19:42:18]line Смена: 463 ФФД: 1.0 [19:42:18]line ЗНМ: 0300000129 [19:42:18]line РНМ: 0000000000090858 [19:42:18]line Версия ККМ: 001 [19:42:18]line Платежная система: O! деньги [19:42:18]line ФМ: 0000000000874899 [19:42:18]line ФД: 162926 [19:42:18]line ФПД: 54327867088374 [19:42:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T194219&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162926&fm=54327867088374&tin=02508201610067®Number=0000000000090858&sum=145200 [19:42:18]written 0, free lines is 4095 [19:42:18]OFD Sender: Processing packet 162926 [packets to send 106, broken 105] [19:42:18]ProducePacketName [19:42:18]name=ofd_packets/00162926 [19:42:18]OFD Sender: To server: pG, [19:42:18]CommunicateWithHost lk.salyk.kg:30040 [19:42:18]ConnectInit lk.salyk.kg [19:42:19]Connected sock=11 [19:42:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 DA 24 08 01 91 CF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 37 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 1B 2A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7C 02 00 35 04 06 00 31 69 31 38 1D F6 9D C0 C7 CA CA 78 F3 E7 [19:42:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AC 60 47 00 8B ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7C 02 00 F4 03 04 00 28 D6 93 66 B6 04 01 00 00 A9 21 94 28 A8 6B 51 82 [19:42:19]CommunicateWithHost err = 0 [19:42:19]CheckOFDResponse [19:42:19]1017 (14) - 77093643461234 [19:42:19]1041 (16) - 0000000000874899 [19:42:19]1040 (4) - 162926 [19:42:19]1012 (4) - 14.07.2024 13:44 [19:42:19]1206 (1) - 0 [19:42:19]OFD Sender: Remove packet 162926 [19:42:19]ProducePacketName [19:42:19]name=ofd_packets/00162926 [19:42:19]NVStorageDeleteData [19:42:19]Write to MH i2c: 01 00 00 15 3A 4F [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: 01 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: 01 07 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: 01 07 00 15 3A 00 00 00 00 00 E9 0C 4B [19:42:19]RasterBufferAndPrint [19:42:19]line [19:42:19]line [19:42:19]line [19:42:19]line [19:42:19]line [19:42:19]written 0, free lines is 3310 [19:42:19]MH_Cut [19:42:19]Write to MH i2c: D1 01 00 1C 3A 01 28 [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: D1 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: D1 01 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: D1 01 00 1C 3A 00 27 [19:42:19]Write to MH i2c: 01 00 00 1D 3A 57 [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]OFD Sender: No OFD packet to send [19:42:20]*** Cut start [19:42:20]*** Purtial cut [19:42:20]*** CUTSNS_PIN = 0 [19:42:20]*** Stage 1: CUTSNS_PIN = 1 [19:42:22]Read from MH i2c: 01 [19:42:22]MH_I2C_Read... [19:42:22]*** Stop cut motor [19:42:22]*** Cut end [19:42:22]Read from MH i2c: 01 07 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: 01 07 00 1D 3A 00 00 00 00 00 FF 0F 6C [19:42:22]process_action close_receipt done [19:42:22]requested_data is exist [19:42:22]produce_requested_data [19:42:22]requested_item fm.sn is exist - process it [19:42:22]wFMCommunicate request_size=4 [19:42:22]MH_SAM_APDU [19:42:22]CAPDU: 80 11 00 00 [19:42:22]Write to MH i2c: E2 08 00 1E 3A 80 11 00 00 00 00 00 00 D2 [19:42:22]Write i2c OK [19:42:22]MH_I2C_Read... [19:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:22]Read from MH i2c: E2 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 17 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 17 00 1E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 32 [19:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:42:22]wFMCommunicate OK [19:42:22]requested_item fd.num is exist - process it [19:42:22]SAM_PROTO_GetFieldsCounters [19:42:22]wFMCommunicate request_size=4 [19:42:22]MH_SAM_APDU [19:42:22]CAPDU: 80 13 00 00 [19:42:22]Write to MH i2c: E2 08 00 1F 3A 80 13 00 00 00 00 00 00 D5 [19:42:22]Write i2c OK [19:42:22]MH_I2C_Read... [19:42:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:22]Read from MH i2c: E2 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 62 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 62 00 1F 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [19:42:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:22]wFMCommunicate OK [19:42:22]SAM_PROTO_GetFieldsCounters done [19:42:22]requested_item shift.num is exist - process it [19:42:22]requested_item shift.opened is exist - process it [19:42:22]req_shift_opened [19:42:22]FM_GetShiftState [19:42:22]SAM_PROTO_GetShiftState [19:42:22]wFMCommunicate request_size=4 [19:42:22]MH_SAM_APDU [19:42:22]CAPDU: 80 13 01 00 [19:42:22]Write to MH i2c: E2 08 00 20 3A 80 13 01 00 00 00 00 00 D7 [19:42:22]Write i2c OK [19:42:22]MH_I2C_Read... [19:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:22]Read from MH i2c: E2 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 0E 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 0E 00 20 3A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 0D [19:42:22]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:42:22]wFMCommunicate OK [19:42:22]SAM_PROTO_GetShiftState done [19:42:22]FM_GetShiftState done [19:42:22]req_shift_opened done [19:42:22]requested_item shift.open_date is exist - process it [19:42:22]req_shift_open_date [19:42:22]req_shift_open_date done [19:42:22]produce_requested_data done [19:42:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162926,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [19:42:22]process_action_free close_receipt [19:42:22]json_value_free [19:42:22]json_value_free done [19:42:22]process_json_proto returns [19:42:22]Send response to host [19:42:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162926,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [19:42:22]free response buf [19:42:22]execute_script done [19:42:22]execute_script returns [19:42:22]free content buf [19:42:22]Sock 7.Close socket [19:42:22]Sock 7.Thread stoped [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:53]accept exits with 9 [19:49:53]New connection [19:49:53]New thread 3066735972 created [19:49:53]Thread 3066879332 joined [19:49:53]Waiting for new connection... [19:49:53] Sock 9.Parse request [19:49:53]Sock 9.Check first char [19:49:53]Sock 9.First char is OK [19:49:53]request: POST /json_proto HTTP/1.0 [19:49:53]Method: POST [19:49:53]URL: /json_proto [19:49:53]Method is POST - this is cgi request [19:49:53]url: /json_proto [19:49:53]query_string will be loaded in cgi processing [19:49:53]execute_cgi json_proto POST (null) [19:49:53]execute_cgi path=json_proto method=POST [19:49:53]POST find Content-Length [19:49:53]Host: 172.17.39.67:8080 [19:49:53]Content-Length: 688 [19:49:53]Content-Type: application/json [19:49:53] [19:49:53]POST finish read [19:49:53]Found Content-Length = 688 [19:49:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:53]execute_script... [19:49: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)1319538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:53]POST & json_proto [19:49:53]process_json_proto [19:49:53]json parsed OK: [19:49:53]protocol is kg_v1.0 [19:49:53]action value=close_receipt [19:49:53]process_action close_receipt [19:49:53]cmd_close_receipt [19:49:53]MH_GetDate [19:49:53]Write to MH i2c: F0 00 00 21 3A 4A [19:49:53]Write i2c OK [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: F0 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: F0 09 00 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: F0 09 00 21 3A 00 E4 2B 94 66 B6 85 93 66 90 [19:49:53]GetLastDocTimeStamp 1720986139 [19:49:53]current date 1720986596 [19:49:53]FM_GetShiftState [19:49:53]SAM_PROTO_GetShiftState [19:49:53]wFMCommunicate request_size=4 [19:49:53]MH_SAM_APDU [19:49:53]CAPDU: 80 13 01 00 [19:49:53]Write to MH i2c: E2 08 00 22 3A 80 13 01 00 00 00 00 00 D9 [19:49:53]Write i2c OK [19:49:53]MH_I2C_Read... [19:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:53]Read from MH i2c: E2 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 0E 00 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 0E 00 22 3A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 0F [19:49:53]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:49:53]wFMCommunicate OK [19:49:53]SAM_PROTO_GetShiftState done [19:49:53]FM_GetShiftState done [19:49:53]opened in 1720915483 [19:49:53]opened+sec_in_day 1721001883 [19:49:53]quantity*price = 200013 [19:49:53]sum+1 = 200014 [19:49:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 239 14.07.2024 19:49 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162927 ФПД: 273347912667965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T194956&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162927&fm=273347912667965&tin=02508201610067®Number=0000000000090858&sum=200000 [19:49:54]StoreToDocumentArchive [19:49:54]shift 463 fd 162927 [19:49:54]save to /storage/0463/doc_00162927 [19:49:54]save last doc name /storage/0463/doc_00162927 to /storage/kkm_last_doc_name [19:49:54]save OK [19:49:54]Clear old archive folders... [19:49:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:49:54]tlvbuf is B6F43660 [19:49:54]SAM_PROTO_ClearQueue [19:49:54]wFMCommunicate request_size=4 [19:49:54]MH_SAM_APDU [19:49:54]CAPDU: 80 09 00 00 [19:49:54]Write to MH i2c: E2 08 00 2F 3A 80 09 00 00 00 00 00 00 DB [19:49:54]Write i2c OK [19:49:54]MH_I2C_Read... [19:49:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:54]Read from MH i2c: E2 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 03 00 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 03 00 2F 3A 00 90 00 DD [19:49:54]RAPDU: 90 00 [19:49:54]wFMCommunicate OK [19:49:54]SAM_PROTO_ClearQueue done [19:49:54]KKMCreateOFDPacket [19:49:54]OFDProtocolAddRootSTLVToBuf [19:49:54]FM_MakeSignedData [19:49:54]FM_MakeSignedData [19:49:54]SAM_PROTO_SignData [19:49:54]wFMCommunicate request_size=4 [19:49:54]MH_SAM_APDU [19:49:54]CAPDU: 80 0D 01 02 [19:49:54]Write to MH i2c: E2 08 00 30 3A 80 0D 01 02 00 00 00 00 E3 [19:49:54]Write i2c OK [19:49:54]MH_I2C_Read... [19:49:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:54]Read from MH i2c: E2 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 03 00 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 03 00 30 3A 00 90 00 DE [19:49:54]RAPDU: 90 00 [19:49:54]wFMCommunicate OK [19:49:54]wFMCommunicate request_size=255 [19:49:54]MH_SAM_APDU [19:49:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E4 2B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7C 02 00 35 04 06 00 [19:49:54]Write to MH i2c: E2 02 01 31 3A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E4 2B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7C 02 00 35 04 06 00 00 00 A7 [19:49:54]Write i2c OK [19:49:54]MH_I2C_Read... [19:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:54]Read from MH i2c: E2 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 03 00 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 03 00 31 3A 00 90 00 DF [19:49:54]RAPDU: 90 00 [19:49:54]wFMCommunicate OK [19:49:54]wFMCommunicate request_size=11 [19:49:54]MH_SAM_APDU [19:49:54]CAPDU: 80 0D 02 02 06 F8 9B C5 3C 13 3D [19:49:54]Write to MH i2c: E2 0E 00 32 3A 80 0D 02 02 06 00 F8 9B C5 3C 13 3D 00 00 D6 [19:49:54]Write i2c OK [19:49:54]MH_I2C_Read... [19:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:54]Read from MH i2c: E2 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 03 00 [19:49:54]MH_I2C_Read... [19:49:54]Read from MH i2c: E2 03 00 32 3A 00 90 00 E0 [19:49:54]RAPDU: 90 00 [19:49:54]wFMCommunicate OK [19:49:54]wFMCommunicate request_size=4 [19:49:54]MH_SAM_APDU [19:49:54]CAPDU: 80 0D 03 02 [19:49:54]Write to MH i2c: E2 08 00 33 3A 80 0D 03 02 00 00 00 00 E8 [19:49:54]Write i2c OK [19:49:54]MH_I2C_Read... [19:49:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:55]Read from MH i2c: E2 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: E2 0B 00 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: E2 0B 00 33 3A 00 30 02 6C 92 5F E4 E8 64 90 00 A8 [19:49:55]RAPDU: 30 02 6C 92 5F E4 E8 64 90 00 [19:49:55]wFMCommunicate OK [19:49:55]SAM_PROTO_SignData done [19:49:55]FM_MakeSignedData done [19:49:55]CreateOFDProtocolMessage [19:49:55]wFMCommunicate request_size=4 [19:49:55]MH_SAM_APDU [19:49:55]CAPDU: 80 11 00 00 [19:49:55]Write to MH i2c: E2 08 00 34 3A 80 11 00 00 00 00 00 00 E8 [19:49:55]Write i2c OK [19:49:55]MH_I2C_Read... [19:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:55]Read from MH i2c: E2 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: E2 17 00 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: E2 17 00 34 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 48 [19:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:49:55]wFMCommunicate OK [19:49:55]CreateOFDProtocolMessage done [19:49:55]OFDSenderStorePacket 162927 [19:49:55]StoreOFDPacket docnum=162927 [19:49:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B4 2C 08 01 75 94 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E4 2B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7C 02 00 35 04 06 00 F8 9B C5 3C 13 3D 30 02 6C 92 5F E4 E8 64 [19:49:55]CheckFolder [19:49:55]dirname=/storage/ofd_packets [19:49:55]CheckFolder done [19:49:55]ProducePacketName [19:49:55]name=ofd_packets/00162927 [19:49:55]NVStorageSaveData ofd_packets/00162927 [19:49:55]File name is /storage/ofd_packets/00162927 [19:49:55]Write 302 bytes [19:49:55]NVStorageSaveData done [19:49:55]OFDSenderStorePacket done [19:49:55]KKMCreateOFDPacket done [19:49:55]NVStorageSaveData kkm_last_timestamp [19:49:55]File name is /storage/kkm_last_timestamp [19:49:55]Write 4 bytes [19:49:55]NVStorageSaveData done [19:49:55]ExternCall_PrintAddStr [19:49:55]wPrintStart [19:49:55]Write to MH i2c: 01 00 00 35 3A 6F [19:49:55]Write i2c OK [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: 01 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: 01 07 00 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: 01 07 00 35 3A 00 00 00 00 00 FF 0F 84 [19:49:55]RasterBufferAndPrint [19:49:55]line Счет N : (1)1319538 [19:49:55]line ИНН: 02508201610067 [19:49:55]line Контрольно-Кассовый Чек [19:49:55]line ПРОДАЖА [19:49:55]line ТРК (МРК, ГНК) : 31 [19:49:55]line Товар: 2710194210 [19:49:55]line ДТ(л)-К-5 [19:49:55]line 27.550 * 72.60 [19:49:55]line = 2000.13 [19:49:55]line НДС 12% НСП 1% [19:49:55]line > о реализуемом товаре [19:49:55]line ОКРУГЛЕНИЕ: -0.13 [19:49:55]line ИТОГО: 2000.00 [19:49:55]line Внесено: 2000.00 [19:49:55]line СДАЧА: 0.00 [19:49:55]line НСП 1% : 17.70 [19:49:55]line НДС 12% : 212.40 [19:49:55]line Наличными: 2000.00 [19:49:55]line Безнал.: 0.00 [19:49:55]line Место: АЗС № 140 "Партнер Нефть" [19:49:55]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:49:55]line СНО: Общий режим [19:49:55]line Чек 239 14.07.2024 19:49 [19:49:55]line Смена: 463 ФФД: 1.0 [19:49:55]line ЗНМ: 0300000129 [19:49:55]line РНМ: 0000000000090858 [19:49:55]line Версия ККМ: 001 [19:49:55]line ФМ: 0000000000874899 [19:49:55]line ФД: 162927 [19:49:55]line ФПД: 273347912667965 [19:49:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T194956&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162927&fm=273347912667965&tin=02508201610067®Number=0000000000090858&sum=200000 [19:49:55]OFD Sender: Processing packet 162927 [packets to send 106, broken 105] [19:49:55]ProducePacketName [19:49:55]name=ofd_packets/00162927 [19:49:55]OFD Sender: To server: pG, [19:49:55]CommunicateWithHost lk.salyk.kg:30040 [19:49:55]ConnectInit lk.salyk.kg [19:49:55]written 0, free lines is 4095 [19:49:55]Connected sock=10 [19:49:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B4 2C 08 01 75 94 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E4 2B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7C 02 00 35 04 06 00 F8 9B C5 3C 13 3D 30 02 6C 92 5F E4 E8 64 [19:49:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F3 AF 47 00 02 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7C 02 00 F4 03 04 00 F0 D7 93 66 B6 04 01 00 00 6F 0F D2 E3 96 69 BB F9 [19:49:55]CommunicateWithHost err = 0 [19:49:55]CheckOFDResponse [19:49:55]1017 (14) - 77093643461234 [19:49:55]1041 (16) - 0000000000874899 [19:49:55]1040 (4) - 162927 [19:49:55]1012 (4) - 14.07.2024 13:51 [19:49:55]1206 (1) - 0 [19:49:55]OFD Sender: Remove packet 162927 [19:49:55]ProducePacketName [19:49:55]name=ofd_packets/00162927 [19:49:55]NVStorageDeleteData [19:49:55]Write to MH i2c: 01 00 00 60 3A 9A [19:49:55]Write i2c OK [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: 01 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: 01 07 00 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: 01 07 00 60 3A 00 00 00 00 00 D7 0C 84 [19:49:55]RasterBufferAndPrint [19:49:55]line [19:49:55]line [19:49:55]line [19:49:55]line [19:49:55]line [19:49:55]written 0, free lines is 3296 [19:49:55]MH_Cut [19:49:55]Write to MH i2c: D1 01 00 67 3A 01 73 [19:49:55]Write i2c OK [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: D1 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: D1 01 00 [19:49:55]MH_I2C_Read... [19:49:55]Read from MH i2c: D1 01 00 67 3A 00 72 [19:49:55]Write to MH i2c: 01 00 00 68 3A A2 [19:49:55]Write i2c OK [19:49:55]MH_I2C_Read... [19:49:56]OFD Sender: No OFD packet to send [19:49:56]*** Cut start [19:49:56]*** Purtial cut [19:49:56]*** Stage 1: CUTSNS_PIN = 1 [19:49:56]Read from MH i2c: 01 [19:49:56]MH_I2C_Read... [19:49:56]*** Stop cut motor [19:49:56]*** Cut end [19:49:56]Read from MH i2c: 01 07 00 [19:49:56]MH_I2C_Read... [19:49:56]Read from MH i2c: 01 07 00 68 3A 00 00 00 00 00 FF 0F B7 [19:49:56]process_action close_receipt done [19:49:56]requested_data is exist [19:49:56]produce_requested_data [19:49:56]requested_item fm.sn is exist - process it [19:49:56]wFMCommunicate request_size=4 [19:49:56]MH_SAM_APDU [19:49:56]CAPDU: 80 11 00 00 [19:49:56]Write to MH i2c: E2 08 00 69 3A 80 11 00 00 00 00 00 00 1D [19:49:56]Write i2c OK [19:49:56]MH_I2C_Read... [19:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:56]Read from MH i2c: E2 [19:49:56]MH_I2C_Read... [19:49:56]Read from MH i2c: E2 17 00 [19:49:56]MH_I2C_Read... [19:49:56]Read from MH i2c: E2 17 00 69 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7D [19:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:49:56]wFMCommunicate OK [19:49:56]requested_item fd.num is exist - process it [19:49:56]SAM_PROTO_GetFieldsCounters [19:49:56]wFMCommunicate request_size=4 [19:49:56]MH_SAM_APDU [19:49:56]CAPDU: 80 13 00 00 [19:49:56]Write to MH i2c: E2 08 00 6A 3A 80 13 00 00 00 00 00 00 20 [19:49:56]Write i2c OK [19:49:56]MH_I2C_Read... [19:49:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:57]Read from MH i2c: E2 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 62 00 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 62 00 6A 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [19:49:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:57]wFMCommunicate OK [19:49:57]SAM_PROTO_GetFieldsCounters done [19:49:57]requested_item shift.num is exist - process it [19:49:57]requested_item shift.opened is exist - process it [19:49:57]req_shift_opened [19:49:57]FM_GetShiftState [19:49:57]SAM_PROTO_GetShiftState [19:49:57]wFMCommunicate request_size=4 [19:49:57]MH_SAM_APDU [19:49:57]CAPDU: 80 13 01 00 [19:49:57]Write to MH i2c: E2 08 00 6B 3A 80 13 01 00 00 00 00 00 22 [19:49:57]Write i2c OK [19:49:57]MH_I2C_Read... [19:49:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:57]Read from MH i2c: E2 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 0E 00 [19:49:57]MH_I2C_Read... [19:49:57]Read from MH i2c: E2 0E 00 6B 3A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 58 [19:49:57]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:49:57]wFMCommunicate OK [19:49:57]SAM_PROTO_GetShiftState done [19:49:57]FM_GetShiftState done [19:49:57]req_shift_opened done [19:49:57]requested_item shift.open_date is exist - process it [19:49:57]req_shift_open_date [19:49:57]req_shift_open_date done [19:49:57]produce_requested_data done [19:49:57]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162927,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [19:49:57]process_action_free close_receipt [19:49:57]json_value_free [19:49:57]json_value_free done [19:49:57]process_json_proto returns [19:49:57]Send response to host [19:49:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162927,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [19:49:57]free response buf [19:49:57]execute_script done [19:49:57]execute_script returns [19:49:57]free content buf [19:49:57]Sock 9.Close socket [19:49:57]Sock 9.Thread stoped [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:08]accept exits with 7 [19:52:08]New connection [19:52:08]New thread 3066879332 created [19:52:08]Thread 3066735972 joined [19:52:08]Waiting for new connection... [19:52:08] Sock 7.Parse request [19:52:08]Sock 7.Check first char [19:52:08]Sock 7.First char is OK [19:52:08]request: POST /json_proto HTTP/1.0 [19:52:08]Method: POST [19:52:08]URL: /json_proto [19:52:08]Method is POST - this is cgi request [19:52:08]url: /json_proto [19:52:08]query_string will be loaded in cgi processing [19:52:08]execute_cgi json_proto POST (null) [19:52:08]execute_cgi path=json_proto method=POST [19:52:08]POST find Content-Length [19:52:08]Host: 172.17.39.67:8080 [19:52:08]Content-Length: 676 [19:52:08]Content-Type: application/json [19:52:08] [19:52:08]POST finish read [19:52:08]Found Content-Length = 676 [19:52:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 22.290, "sum" : 1500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:08]execute_script... [19:52: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)1319539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 22.290, "sum" : 1500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:08]POST & json_proto [19:52:08]process_json_proto [19:52:08]json parsed OK: [19:52:08]protocol is kg_v1.0 [19:52:08]action value=close_receipt [19:52:08]process_action close_receipt [19:52:08]cmd_close_receipt [19:52:08]MH_GetDate [19:52:08]Write to MH i2c: F0 00 00 6C 3A 95 [19:52:08]Write i2c OK [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: F0 [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: F0 09 00 [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: F0 09 00 6C 3A 00 6B 2C 94 66 B6 85 93 66 63 [19:52:08]GetLastDocTimeStamp 1720986596 [19:52:08]current date 1720986731 [19:52:08]FM_GetShiftState [19:52:08]SAM_PROTO_GetShiftState [19:52:08]wFMCommunicate request_size=4 [19:52:08]MH_SAM_APDU [19:52:08]CAPDU: 80 13 01 00 [19:52:08]Write to MH i2c: E2 08 00 6D 3A 80 13 01 00 00 00 00 00 24 [19:52:08]Write i2c OK [19:52:08]MH_I2C_Read... [19:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:08]Read from MH i2c: E2 [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: E2 0E 00 [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: E2 0E 00 6D 3A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5A [19:52:08]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:52:08]wFMCommunicate OK [19:52:08]SAM_PROTO_GetShiftState done [19:52:08]FM_GetShiftState done [19:52:08]opened in 1720915483 [19:52:08]opened+sec_in_day 1721001883 [19:52:08]quantity*price = 150011 [19:52:08]sum+1 = 150013 [19:52:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 240 14.07.2024 19:52 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162928 ФПД: 194221705374907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T195211&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162928&fm=194221705374907&tin=02508201610067®Number=0000000000090858&sum=150000 [19:52:09]StoreToDocumentArchive [19:52:09]shift 463 fd 162928 [19:52:09]save to /storage/0463/doc_00162928 [19:52:09]save last doc name /storage/0463/doc_00162928 to /storage/kkm_last_doc_name [19:52:09]save OK [19:52:09]Clear old archive folders... [19:52:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:52:09]tlvbuf is 012FBD20 [19:52:09]SAM_PROTO_ClearQueue [19:52:09]wFMCommunicate request_size=4 [19:52:09]MH_SAM_APDU [19:52:09]CAPDU: 80 09 00 00 [19:52:09]Write to MH i2c: E2 08 00 7A 3A 80 09 00 00 00 00 00 00 26 [19:52:09]Write i2c OK [19:52:09]MH_I2C_Read... [19:52:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:09]Read from MH i2c: E2 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 03 00 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 03 00 7A 3A 00 90 00 28 [19:52:09]RAPDU: 90 00 [19:52:09]wFMCommunicate OK [19:52:09]SAM_PROTO_ClearQueue done [19:52:09]KKMCreateOFDPacket [19:52:09]OFDProtocolAddRootSTLVToBuf [19:52:09]FM_MakeSignedData [19:52:09]FM_MakeSignedData [19:52:09]SAM_PROTO_SignData [19:52:09]wFMCommunicate request_size=4 [19:52:09]MH_SAM_APDU [19:52:09]CAPDU: 80 0D 01 02 [19:52:09]Write to MH i2c: E2 08 00 7B 3A 80 0D 01 02 00 00 00 00 2E [19:52:09]Write i2c OK [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 [19:52:09]MH_I2C_Read... [19:52:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:09]Read from MH i2c: E2 03 00 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 03 00 7B 3A 00 90 00 29 [19:52:09]RAPDU: 90 00 [19:52:09]wFMCommunicate OK [19:52:09]wFMCommunicate request_size=255 [19:52:09]MH_SAM_APDU [19:52:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 F0 00 00 00 F4 03 04 00 6B 2C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7C 02 00 35 04 06 00 [19:52:09]Write to MH i2c: E2 02 01 7C 3A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 F0 00 00 00 F4 03 04 00 6B 2C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7C 02 00 35 04 06 00 00 00 E9 [19:52:09]Write i2c OK [19:52:09]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 03 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 03 00 7C 3A 00 90 00 2A [19:52:10]RAPDU: 90 00 [19:52:10]wFMCommunicate OK [19:52:10]wFMCommunicate request_size=11 [19:52:10]MH_SAM_APDU [19:52:10]CAPDU: 80 0D 02 02 06 B0 A4 C3 C1 AC BB [19:52:10]Write to MH i2c: E2 0E 00 7D 3A 80 0D 02 02 06 00 B0 A4 C3 C1 AC BB 00 00 7C [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 03 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 03 00 7D 3A 00 90 00 2B [19:52:10]RAPDU: 90 00 [19:52:10]wFMCommunicate OK [19:52:10]wFMCommunicate request_size=4 [19:52:10]MH_SAM_APDU [19:52:10]CAPDU: 80 0D 03 02 [19:52:10]Write to MH i2c: E2 08 00 7E 3A 80 0D 03 02 00 00 00 00 33 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 0B 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 0B 00 7E 3A 00 9A AA B3 C9 6F 64 D2 97 90 00 30 [19:52:10]RAPDU: 9A AA B3 C9 6F 64 D2 97 90 00 [19:52:10]wFMCommunicate OK [19:52:10]SAM_PROTO_SignData done [19:52:10]FM_MakeSignedData done [19:52:10]CreateOFDProtocolMessage [19:52:10]wFMCommunicate request_size=4 [19:52:10]MH_SAM_APDU [19:52:10]CAPDU: 80 11 00 00 [19:52:10]Write to MH i2c: E2 08 00 7F 3A 80 11 00 00 00 00 00 00 33 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:10]Read from MH i2c: E2 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 17 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: E2 17 00 7F 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 93 [19:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:52:10]wFMCommunicate OK [19:52:10]CreateOFDProtocolMessage done [19:52:10]OFDSenderStorePacket 162928 [19:52:10]StoreOFDPacket docnum=162928 [19:52:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 3A 64 08 01 BE 24 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 F0 00 00 00 F4 03 04 00 6B 2C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7C 02 00 35 04 06 00 B0 A4 C3 C1 AC BB 9A AA B3 C9 6F 64 D2 97 [19:52:10]CheckFolder [19:52:10]dirname=/storage/ofd_packets [19:52:10]CheckFolder done [19:52:10]ProducePacketName [19:52:10]name=ofd_packets/00162928 [19:52:10]NVStorageSaveData ofd_packets/00162928 [19:52:10]File name is /storage/ofd_packets/00162928 [19:52:10]Write 302 bytes [19:52:10]NVStorageSaveData done [19:52:10]OFDSenderStorePacket done [19:52:10]KKMCreateOFDPacket done [19:52:10]NVStorageSaveData kkm_last_timestamp [19:52:10]File name is /storage/kkm_last_timestamp [19:52:10]Write 4 bytes [19:52:10]NVStorageSaveData done [19:52:10]ExternCall_PrintAddStr [19:52:10]wPrintStart [19:52:10]Write to MH i2c: 01 00 00 80 3A BA [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: 01 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: 01 07 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: 01 07 00 80 3A 00 00 00 00 00 FF 0F CF [19:52:10]RasterBufferAndPrint [19:52:10]line Счет N : (1)1319539 [19:52:10]line ИНН: 02508201610067 [19:52:10]line Контрольно-Кассовый Чек [19:52:10]line ПРОДАЖА [19:52:10]line ТРК (МРК, ГНК) : 42 [19:52:10]line Товар: 2710124130 [19:52:10]line Super-92-К-5 [19:52:10]line 22.290 * 67.30 [19:52:10]line = 1500.12 [19:52:10]line НДС 12% НСП 1% [19:52:10]line > о реализуемом товаре [19:52:10]line ОКРУГЛЕНИЕ: -0.12 [19:52:10]line ИТОГО: 1500.00 [19:52:10]line Внесено: 1500.00 [19:52:10]line СДАЧА: 0.00 [19:52:10]line НСП 1% : 13.27 [19:52:10]line НДС 12% : 159.30 [19:52:10]line Наличными: 1500.00 [19:52:10]line Безнал.: 0.00 [19:52:10]line Место: АЗС № 140 "Партнер Нефть" [19:52:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:52:10]line СНО: Общий режим [19:52:10]line Чек 240 14.07.2024 19:52 [19:52:10]line Смена: 463 ФФД: 1.0 [19:52:10]line ЗНМ: 0300000129 [19:52:10]line РНМ: 0000000000090858 [19:52:10]line Версия ККМ: 001 [19:52:10]line ФМ: 0000000000874899 [19:52:10]line ФД: 162928 [19:52:10]line ФПД: 194221705374907 [19:52:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T195211&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162928&fm=194221705374907&tin=02508201610067®Number=0000000000090858&sum=150000 [19:52:10]OFD Sender: Processing packet 162928 [packets to send 106, broken 105] [19:52:10]ProducePacketName [19:52:10]name=ofd_packets/00162928 [19:52:10]OFD Sender: To server: pG, [19:52:10]CommunicateWithHost lk.salyk.kg:30040 [19:52:10]ConnectInit lk.salyk.kg [19:52:10]written 0, free lines is 4095 [19:52:10]Connected sock=10 [19:52:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 3A 64 08 01 BE 24 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 F0 00 00 00 F4 03 04 00 6B 2C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7C 02 00 35 04 06 00 B0 A4 C3 C1 AC BB 9A AA B3 C9 6F 64 D2 97 [19:52:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9B 51 47 00 A4 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7C 02 00 F4 03 04 00 78 D8 93 66 B6 04 01 00 00 1A 20 86 C7 67 26 2A 84 [19:52:10]CommunicateWithHost err = 0 [19:52:10]CheckOFDResponse [19:52:10]1017 (14) - 77093643461234 [19:52:10]1041 (16) - 0000000000874899 [19:52:10]1040 (4) - 162928 [19:52:10]1012 (4) - 14.07.2024 13:54 [19:52:10]1206 (1) - 0 [19:52:10]OFD Sender: Remove packet 162928 [19:52:10]ProducePacketName [19:52:10]name=ofd_packets/00162928 [19:52:10]NVStorageDeleteData [19:52:11]Write to MH i2c: 01 00 00 AB 3A E5 [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: 01 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: 01 07 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: 01 07 00 AB 3A 00 00 00 00 00 D7 0C CF [19:52:11]RasterBufferAndPrint [19:52:11]line [19:52:11]line [19:52:11]line [19:52:11]line [19:52:11]line [19:52:11]written 0, free lines is 3292 [19:52:11]MH_Cut [19:52:11]Write to MH i2c: D1 01 00 B2 3A 01 BE [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: D1 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: D1 01 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: D1 01 00 B2 3A 00 BD [19:52:11]Write to MH i2c: 01 00 00 B3 3A ED [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]OFD Sender: No OFD packet to send [19:52:11]*** Cut start [19:52:11]*** Purtial cut [19:52:11]*** CUTSNS_PIN = 0 [19:52:12]*** Stage 1: CUTSNS_PIN = 1 [19:52:13]Read from MH i2c: 01 [19:52:13]MH_I2C_Read... [19:52:13]*** Stop cut motor [19:52:13]*** Cut end [19:52:13]Read from MH i2c: 01 07 00 [19:52:13]MH_I2C_Read... [19:52:13]Read from MH i2c: 01 07 00 B3 3A 00 00 00 00 00 FF 0F 02 [19:52:13]process_action close_receipt done [19:52:13]requested_data is exist [19:52:13]produce_requested_data [19:52:13]requested_item fm.sn is exist - process it [19:52:13]wFMCommunicate request_size=4 [19:52:13]MH_SAM_APDU [19:52:13]CAPDU: 80 11 00 00 [19:52:13]Write to MH i2c: E2 08 00 B4 3A 80 11 00 00 00 00 00 00 68 [19:52:13]Write i2c OK [19:52:13]MH_I2C_Read... [19:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:13]Read from MH i2c: E2 [19:52:13]MH_I2C_Read... [19:52:13]Read from MH i2c: E2 17 00 [19:52:13]MH_I2C_Read... [19:52:13]Read from MH i2c: E2 17 00 B4 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C8 [19:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:52:13]wFMCommunicate OK [19:52:13]requested_item fd.num is exist - process it [19:52:13]SAM_PROTO_GetFieldsCounters [19:52:13]wFMCommunicate request_size=4 [19:52:13]MH_SAM_APDU [19:52:13]CAPDU: 80 13 00 00 [19:52:13]Write to MH i2c: E2 08 00 B5 3A 80 13 00 00 00 00 00 00 6B [19:52:13]Write i2c OK [19:52:13]MH_I2C_Read... [19:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:14]Read from MH i2c: E2 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 62 00 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 62 00 B5 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 70 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [19:52:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 70 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:14]wFMCommunicate OK [19:52:14]SAM_PROTO_GetFieldsCounters done [19:52:14]requested_item shift.num is exist - process it [19:52:14]requested_item shift.opened is exist - process it [19:52:14]req_shift_opened [19:52:14]FM_GetShiftState [19:52:14]SAM_PROTO_GetShiftState [19:52:14]wFMCommunicate request_size=4 [19:52:14]MH_SAM_APDU [19:52:14]CAPDU: 80 13 01 00 [19:52:14]Write to MH i2c: E2 08 00 B6 3A 80 13 01 00 00 00 00 00 6D [19:52:14]Write i2c OK [19:52:14]MH_I2C_Read... [19:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:14]Read from MH i2c: E2 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 0E 00 [19:52:14]MH_I2C_Read... [19:52:14]Read from MH i2c: E2 0E 00 B6 3A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A3 [19:52:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:52:14]wFMCommunicate OK [19:52:14]SAM_PROTO_GetShiftState done [19:52:14]FM_GetShiftState done [19:52:14]req_shift_opened done [19:52:14]requested_item shift.open_date is exist - process it [19:52:14]req_shift_open_date [19:52:14]req_shift_open_date done [19:52:14]produce_requested_data done [19:52:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162928,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [19:52:14]process_action_free close_receipt [19:52:14]json_value_free [19:52:14]json_value_free done [19:52:14]process_json_proto returns [19:52:14]Send response to host [19:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162928,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [19:52:14]free response buf [19:52:14]execute_script done [19:52:14]execute_script returns [19:52:14]free content buf [19:52:14]Sock 7.Close socket [19:52:14]Sock 7.Thread stoped [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:26]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:54]accept exits with 9 [19:54:54]New connection [19:54:54]New thread 3066735972 created [19:54:54]Thread 3066879332 joined [19:54:54]Waiting for new connection... [19:54:54] Sock 9.Parse request [19:54:54]Sock 9.Check first char [19:54:54]Sock 9.First char is OK [19:54:54]request: POST /json_proto HTTP/1.0 [19:54:54]Method: POST [19:54:54]URL: /json_proto [19:54:54]Method is POST - this is cgi request [19:54:54]url: /json_proto [19:54:54]query_string will be loaded in cgi processing [19:54:54]execute_cgi json_proto POST (null) [19:54:54]execute_cgi path=json_proto method=POST [19:54:54]POST find Content-Length [19:54:54]Host: 172.17.39.67:8080 [19:54:54]Content-Length: 676 [19:54:54]Content-Type: application/json [19:54:54] [19:54:54]POST finish read [19:54:54]Found Content-Length = 676 [19:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 22.290, "sum" : 1500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:54]execute_script... [19: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)1319540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 22.290, "sum" : 1500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:54]POST & json_proto [19:54:54]process_json_proto [19:54:54]json parsed OK: [19:54:54]protocol is kg_v1.0 [19:54:54]action value=close_receipt [19:54:54]process_action close_receipt [19:54:54]cmd_close_receipt [19:54:54]MH_GetDate [19:54:54]Write to MH i2c: F0 00 00 B7 3A E0 [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: F0 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: F0 09 00 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: F0 09 00 B7 3A 00 11 2D 94 66 B6 85 93 66 55 [19:54:54]GetLastDocTimeStamp 1720986731 [19:54:54]current date 1720986897 [19:54:54]FM_GetShiftState [19:54:54]SAM_PROTO_GetShiftState [19:54:54]wFMCommunicate request_size=4 [19:54:54]MH_SAM_APDU [19:54:54]CAPDU: 80 13 01 00 [19:54:54]Write to MH i2c: E2 08 00 B8 3A 80 13 01 00 00 00 00 00 6F [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:54]Read from MH i2c: E2 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 0E 00 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 0E 00 B8 3A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A5 [19:54:54]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:54:54]wFMCommunicate OK [19:54:54]SAM_PROTO_GetShiftState done [19:54:54]FM_GetShiftState done [19:54:54]opened in 1720915483 [19:54:54]opened+sec_in_day 1721001883 [19:54:54]quantity*price = 150011 [19:54:54]sum+1 = 150013 [19:54:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 241 14.07.2024 19:54 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162929 ФПД: 152878591988583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T195457&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162929&fm=152878591988583&tin=02508201610067®Number=0000000000090858&sum=150000 [19:54:55]StoreToDocumentArchive [19:54:55]shift 463 fd 162929 [19:54:55]save to /storage/0463/doc_00162929 [19:54:55]save last doc name /storage/0463/doc_00162929 to /storage/kkm_last_doc_name [19:54:55]save OK [19:54:55]Clear old archive folders... [19:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:54:55]tlvbuf is 0123B7A0 [19:54:55]SAM_PROTO_ClearQueue [19:54:55]wFMCommunicate request_size=4 [19:54:55]MH_SAM_APDU [19:54:55]CAPDU: 80 09 00 00 [19:54:55]Write to MH i2c: E2 08 00 C5 3A 80 09 00 00 00 00 00 00 71 [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:55]Read from MH i2c: E2 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 03 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 03 00 C5 3A 00 90 00 73 [19:54:55]RAPDU: 90 00 [19:54:55]wFMCommunicate OK [19:54:55]SAM_PROTO_ClearQueue done [19:54:55]KKMCreateOFDPacket [19:54:55]OFDProtocolAddRootSTLVToBuf [19:54:55]FM_MakeSignedData [19:54:55]FM_MakeSignedData [19:54:55]SAM_PROTO_SignData [19:54:55]wFMCommunicate request_size=4 [19:54:55]MH_SAM_APDU [19:54:55]CAPDU: 80 0D 01 02 [19:54:55]Write to MH i2c: E2 08 00 C6 3A 80 0D 01 02 00 00 00 00 79 [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:55]Read from MH i2c: E2 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 03 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 03 00 C6 3A 00 90 00 74 [19:54:55]RAPDU: 90 00 [19:54:55]wFMCommunicate OK [19:54:55]wFMCommunicate request_size=255 [19:54:55]MH_SAM_APDU [19:54:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 F1 00 00 00 F4 03 04 00 11 2D 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7C 02 00 35 04 06 00 [19:54:55]Write to MH i2c: E2 02 01 C7 3A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 F1 00 00 00 F4 03 04 00 11 2D 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7C 02 00 35 04 06 00 00 00 DD [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:56]Read from MH i2c: E2 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 03 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 03 00 C7 3A 00 90 00 75 [19:54:56]RAPDU: 90 00 [19:54:56]wFMCommunicate OK [19:54:56]wFMCommunicate request_size=11 [19:54:56]MH_SAM_APDU [19:54:56]CAPDU: 80 0D 02 02 06 8B 0A D2 2B 53 67 [19:54:56]Write to MH i2c: E2 0E 00 C8 3A 80 0D 02 02 06 00 8B 0A D2 2B 53 67 00 00 D4 [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:56]Read from MH i2c: E2 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 03 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 03 00 C8 3A 00 90 00 76 [19:54:56]RAPDU: 90 00 [19:54:56]wFMCommunicate OK [19:54:56]wFMCommunicate request_size=4 [19:54:56]MH_SAM_APDU [19:54:56]CAPDU: 80 0D 03 02 [19:54:56]Write to MH i2c: E2 08 00 C9 3A 80 0D 03 02 00 00 00 00 7E [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:56]Read from MH i2c: E2 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 0B 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 0B 00 C9 3A 00 FA 2F B2 8C 0E 10 F1 42 90 00 37 [19:54:56]RAPDU: FA 2F B2 8C 0E 10 F1 42 90 00 [19:54:56]wFMCommunicate OK [19:54:56]SAM_PROTO_SignData done [19:54:56]FM_MakeSignedData done [19:54:56]CreateOFDProtocolMessage [19:54:56]wFMCommunicate request_size=4 [19:54:56]MH_SAM_APDU [19:54:56]CAPDU: 80 11 00 00 [19:54:56]Write to MH i2c: E2 08 00 CA 3A 80 11 00 00 00 00 00 00 7E [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:56]Read from MH i2c: E2 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 17 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 17 00 CA 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DE [19:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:54:56]wFMCommunicate OK [19:54:56]CreateOFDProtocolMessage done [19:54:56]OFDSenderStorePacket 162929 [19:54:56]StoreOFDPacket docnum=162929 [19:54:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 34 E7 08 01 48 0A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 F1 00 00 00 F4 03 04 00 11 2D 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7C 02 00 35 04 06 00 8B 0A D2 2B 53 67 FA 2F B2 8C 0E 10 F1 42 [19:54:56]CheckFolder [19:54:56]dirname=/storage/ofd_packets [19:54:56]CheckFolder done [19:54:56]ProducePacketName [19:54:56]name=ofd_packets/00162929 [19:54:56]NVStorageSaveData ofd_packets/00162929 [19:54:56]File name is /storage/ofd_packets/00162929 [19:54:56]Write 302 bytes [19:54:56]NVStorageSaveData done [19:54:56]OFDSenderStorePacket done [19:54:56]KKMCreateOFDPacket done [19:54:56]NVStorageSaveData kkm_last_timestamp [19:54:56]File name is /storage/kkm_last_timestamp [19:54:56]Write 4 bytes [19:54:56]NVStorageSaveData done [19:54:56]ExternCall_PrintAddStr [19:54:56]wPrintStart [19:54:56]Write to MH i2c: 01 00 00 CB 3A 05 [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: 01 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: 01 07 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: 01 07 00 CB 3A 00 00 00 00 00 FF 0F 1A [19:54:56]RasterBufferAndPrint [19:54:56]line Счет N : (1)1319540 [19:54:56]line ИНН: 02508201610067 [19:54:56]line Контрольно-Кассовый Чек [19:54:56]line ПРОДАЖА [19:54:56]line ТРК (МРК, ГНК) : 42 [19:54:56]line Товар: 2710124130 [19:54:56]line Super-92-К-5 [19:54:56]line 22.290 * 67.30 [19:54:56]line = 1500.12 [19:54:56]line НДС 12% НСП 1% [19:54:56]line > о реализуемом товаре [19:54:56]line ОКРУГЛЕНИЕ: -0.12 [19:54:56]line ИТОГО: 1500.00 [19:54:56]line Внесено: 1500.00 [19:54:56]line СДАЧА: 0.00 [19:54:56]line НСП 1% : 13.27 [19:54:56]line НДС 12% : 159.30 [19:54:56]line Наличными: 1500.00 [19:54:56]line Безнал.: 0.00 [19:54:56]line Место: АЗС № 140 "Партнер Нефть" [19:54:56]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:54:56]line СНО: Общий режим [19:54:56]line Чек 241 14.07.2024 19:54 [19:54:56]line Смена: 463 ФФД: 1.0 [19:54:56]line ЗНМ: 0300000129 [19:54:56]line РНМ: 0000000000090858 [19:54:56]line Версия ККМ: 001 [19:54:56]line ФМ: 0000000000874899 [19:54:56]line ФД: 162929 [19:54:56]line ФПД: 152878591988583 [19:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T195457&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162929&fm=152878591988583&tin=02508201610067®Number=0000000000090858&sum=150000 [19:54:56]OFD Sender: Processing packet 162929 [packets to send 106, broken 105] [19:54:56]ProducePacketName [19:54:56]name=ofd_packets/00162929 [19:54:56]OFD Sender: To server: pG, [19:54:56]CommunicateWithHost lk.salyk.kg:30040 [19:54:56]ConnectInit lk.salyk.kg [19:54:56]written 0, free lines is 4095 [19:54:56]Connected sock=10 [19:54:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 34 E7 08 01 48 0A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 F1 00 00 00 F4 03 04 00 11 2D 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7C 02 00 35 04 06 00 8B 0A D2 2B 53 67 FA 2F B2 8C 0E 10 F1 42 [19:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 20 C2 47 00 FC EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7C 02 00 F4 03 04 00 1E D9 93 66 B6 04 01 00 00 AF D4 DC EC 39 4E 75 40 [19:54:57]CommunicateWithHost err = 0 [19:54:57]CheckOFDResponse [19:54:57]1017 (14) - 77093643461234 [19:54:57]1041 (16) - 0000000000874899 [19:54:57]1040 (4) - 162929 [19:54:57]1012 (4) - 14.07.2024 13:56 [19:54:57]1206 (1) - 0 [19:54:57]OFD Sender: Remove packet 162929 [19:54:57]ProducePacketName [19:54:57]name=ofd_packets/00162929 [19:54:57]NVStorageDeleteData [19:54:57]Write to MH i2c: 01 00 00 F6 3A 30 [19:54:57]Write i2c OK [19:54:57]MH_I2C_Read... [19:54:57]Read from MH i2c: 01 [19:54:57]MH_I2C_Read... [19:54:57]Read from MH i2c: 01 07 00 [19:54:57]MH_I2C_Read... [19:54:57]Read from MH i2c: 01 07 00 F6 3A 00 00 00 00 00 DF 0C 22 [19:54:57]RasterBufferAndPrint [19:54:57]line [19:54:57]line [19:54:57]line [19:54:57]line [19:54:57]line [19:54:57]written 0, free lines is 3302 [19:54:57]MH_Cut [19:54:57]Write to MH i2c: D1 01 00 FD 3A 01 09 [19:54:57]Write i2c OK [19:54:57]MH_I2C_Read... [19:54:57]Read from MH i2c: D1 [19:54:57]MH_I2C_Read... [19:54:57]Read from MH i2c: D1 01 00 [19:54:57]MH_I2C_Read... [19:54:57]Read from MH i2c: D1 01 00 FD 3A 00 08 [19:54:57]Write to MH i2c: 01 00 00 FE 3A 38 [19:54:57]Write i2c OK [19:54:57]MH_I2C_Read... [19:54:57]OFD Sender: No OFD packet to send [19:54:57]*** Cut start [19:54:57]*** Purtial cut [19:54:57]*** Stage 1: CUTSNS_PIN = 1 [19:54:58]Read from MH i2c: 01 [19:54:58]MH_I2C_Read... [19:54:58]*** Stop cut motor [19:54:58]*** Cut end [19:54:58]Read from MH i2c: 01 07 00 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: 01 07 00 FE 3A 00 00 00 00 00 FF 0F 4D [19:54:58]process_action close_receipt done [19:54:58]requested_data is exist [19:54:58]produce_requested_data [19:54:58]requested_item fm.sn is exist - process it [19:54:58]wFMCommunicate request_size=4 [19:54:58]MH_SAM_APDU [19:54:58]CAPDU: 80 11 00 00 [19:54:58]Write to MH i2c: E2 08 00 FF 3A 80 11 00 00 00 00 00 00 B3 [19:54:58]Write i2c OK [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 [19:54:58]MH_I2C_Read... [19:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:58]Read from MH i2c: E2 17 00 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 17 00 FF 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 13 [19:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:54:58]wFMCommunicate OK [19:54:58]requested_item fd.num is exist - process it [19:54:58]SAM_PROTO_GetFieldsCounters [19:54:58]wFMCommunicate request_size=4 [19:54:58]MH_SAM_APDU [19:54:58]CAPDU: 80 13 00 00 [19:54:58]Write to MH i2c: E2 08 00 00 3B 80 13 00 00 00 00 00 00 B7 [19:54:58]Write i2c OK [19:54:58]MH_I2C_Read... [19:54:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:58]Read from MH i2c: E2 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 62 00 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 62 00 00 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 71 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [19: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 71 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:58]wFMCommunicate OK [19:54:58]SAM_PROTO_GetFieldsCounters done [19:54:58]requested_item shift.num is exist - process it [19:54:58]requested_item shift.opened is exist - process it [19:54:58]req_shift_opened [19:54:58]FM_GetShiftState [19:54:58]SAM_PROTO_GetShiftState [19:54:58]wFMCommunicate request_size=4 [19:54:58]MH_SAM_APDU [19:54:58]CAPDU: 80 13 01 00 [19:54:58]Write to MH i2c: E2 08 00 01 3B 80 13 01 00 00 00 00 00 B9 [19:54:58]Write i2c OK [19:54:58]MH_I2C_Read... [19:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:58]Read from MH i2c: E2 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 0E 00 [19:54:58]MH_I2C_Read... [19:54:58]Read from MH i2c: E2 0E 00 01 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 EF [19:54:58]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [19:54:58]wFMCommunicate OK [19:54:58]SAM_PROTO_GetShiftState done [19:54:58]FM_GetShiftState done [19:54:58]req_shift_opened done [19:54:58]requested_item shift.open_date is exist - process it [19:54:58]req_shift_open_date [19:54:58]req_shift_open_date done [19:54:58]produce_requested_data done [19:54:58]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162929,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [19:54:58]process_action_free close_receipt [19:54:58]json_value_free [19:54:58]json_value_free done [19:54:58]process_json_proto returns [19:54:58]Send response to host [19:54:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162929,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [19:54:58]free response buf [19:54:58]execute_script done [19:54:58]execute_script returns [19:54:58]free content buf [19:54:58]Sock 9.Close socket [19:54:58]Sock 9.Thread stoped [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:06]accept exits with 7 [20:06:06]New connection [20:06:06]New thread 3066879332 created [20:06:06]Thread 3066735972 joined [20:06:06]Waiting for new connection... [20:06:06] Sock 7.Parse request [20:06:06]Sock 7.Check first char [20:06:06]Sock 7.First char is OK [20:06:06]request: POST /json_proto HTTP/1.0 [20:06:06]Method: POST [20:06:06]URL: /json_proto [20:06:06]Method is POST - this is cgi request [20:06:06]url: /json_proto [20:06:06]query_string will be loaded in cgi processing [20:06:06]execute_cgi json_proto POST (null) [20:06:06]execute_cgi path=json_proto method=POST [20:06:06]POST find Content-Length [20:06:06]Host: 172.17.39.67:8080 [20:06:06]Content-Length: 683 [20:06:06]Content-Type: application/json [20:06:06] [20:06:06]POST finish read [20:06:06]Found Content-Length = 683 [20:06:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.400, "sum" : 1021.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1021.00, "payments": [ { "type": 0, "sum" : 1021.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:06]execute_script... [20:06: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)1319541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.400, "sum" : 1021.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1021.00, "payments": [ { "type": 0, "sum" : 1021.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:06]POST & json_proto [20:06:06]process_json_proto [20:06:06]json parsed OK: [20:06:06]protocol is kg_v1.0 [20:06:06]action value=close_receipt [20:06:06]process_action close_receipt [20:06:06]cmd_close_receipt [20:06:06]MH_GetDate [20:06:06]Write to MH i2c: F0 00 00 02 3B 2C [20:06:06]Write i2c OK [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: F0 [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: F0 09 00 [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: F0 09 00 02 3B 00 B1 2F 94 66 B6 85 93 66 43 [20:06:06]GetLastDocTimeStamp 1720986897 [20:06:06]current date 1720987569 [20:06:06]FM_GetShiftState [20:06:06]SAM_PROTO_GetShiftState [20:06:06]wFMCommunicate request_size=4 [20:06:06]MH_SAM_APDU [20:06:06]CAPDU: 80 13 01 00 [20:06:06]Write to MH i2c: E2 08 00 03 3B 80 13 01 00 00 00 00 00 BB [20:06:06]Write i2c OK [20:06:06]MH_I2C_Read... [20:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:06]Read from MH i2c: E2 [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: E2 0E 00 [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: E2 0E 00 03 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F1 [20:06:06]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:06:06]wFMCommunicate OK [20:06:06]SAM_PROTO_GetShiftState done [20:06:06]FM_GetShiftState done [20:06:06]opened in 1720915483 [20:06:06]opened+sec_in_day 1721001883 [20:06:06]quantity*price = 102102 [20:06:06]sum+1 = 102103 [20:06:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 1021.00 Внесено: 2000.00 СДАЧА: 979.00 НСП 1% : 9.04 НДС 12% : 108.43 Наличными: 1021.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 242 14.07.2024 20:06 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162930 ФПД: 88685760167198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T200609&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162930&fm=88685760167198&tin=02508201610067®Number=0000000000090858&sum=102100 [20:06:08]StoreToDocumentArchive [20:06:08]shift 463 fd 162930 [20:06:08]save to /storage/0463/doc_00162930 [20:06:08]save last doc name /storage/0463/doc_00162930 to /storage/kkm_last_doc_name [20:06:08]save OK [20:06:08]Clear old archive folders... [20:06:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:08]tlvbuf is 0123B650 [20:06:08]SAM_PROTO_ClearQueue [20:06:08]wFMCommunicate request_size=4 [20:06:08]MH_SAM_APDU [20:06:08]CAPDU: 80 09 00 00 [20:06:08]Write to MH i2c: E2 08 00 10 3B 80 09 00 00 00 00 00 00 BD [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:08]Read from MH i2c: E2 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 03 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 03 00 10 3B 00 90 00 BF [20:06:08]RAPDU: 90 00 [20:06:08]wFMCommunicate OK [20:06:08]SAM_PROTO_ClearQueue done [20:06:08]KKMCreateOFDPacket [20:06:08]OFDProtocolAddRootSTLVToBuf [20:06:08]FM_MakeSignedData [20:06:08]FM_MakeSignedData [20:06:08]SAM_PROTO_SignData [20:06:08]wFMCommunicate request_size=4 [20:06:08]MH_SAM_APDU [20:06:08]CAPDU: 80 0D 01 02 [20:06:08]Write to MH i2c: E2 08 00 11 3B 80 0D 01 02 00 00 00 00 C5 [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:08]Read from MH i2c: E2 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 03 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 03 00 11 3B 00 90 00 C0 [20:06:08]RAPDU: 90 00 [20:06:08]wFMCommunicate OK [20:06:08]wFMCommunicate request_size=255 [20:06:08]MH_SAM_APDU [20:06: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 28 3C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D6 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 2A 00 00 00 00 07 04 06 00 D4 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 B1 2F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7C 02 00 35 04 06 00 50 [20:06:08]Write to MH i2c: E2 02 01 12 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 3C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D6 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 2A 00 00 00 00 07 04 06 00 D4 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 B1 2F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7C 02 00 35 04 06 00 50 00 00 5B [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]OFD Sender: No OFD packet to send [20:06:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:08]Read from MH i2c: E2 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 03 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 03 00 12 3B 00 90 00 C1 [20:06:08]RAPDU: 90 00 [20:06:08]wFMCommunicate OK [20:06:08]wFMCommunicate request_size=10 [20:06:08]MH_SAM_APDU [20:06:08]CAPDU: 80 0D 02 02 05 A8 C3 3B 3D 1E [20:06:08]Write to MH i2c: E2 0D 00 13 3B 80 0D 02 02 05 00 A8 C3 3B 3D 1E 00 00 D3 [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 [20:06:08]MH_I2C_Read... [20:06:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:08]Read from MH i2c: E2 03 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 03 00 13 3B 00 90 00 C2 [20:06:08]RAPDU: 90 00 [20:06:08]wFMCommunicate OK [20:06:08]wFMCommunicate request_size=4 [20:06:08]MH_SAM_APDU [20:06:08]CAPDU: 80 0D 03 02 [20:06:08]Write to MH i2c: E2 08 00 14 3B 80 0D 03 02 00 00 00 00 CA [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:08]Read from MH i2c: E2 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 0B 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 0B 00 14 3B 00 BA 5A BA C9 97 78 90 FE 90 00 FF [20:06:08]RAPDU: BA 5A BA C9 97 78 90 FE 90 00 [20:06:08]wFMCommunicate OK [20:06:08]SAM_PROTO_SignData done [20:06:08]FM_MakeSignedData done [20:06:08]CreateOFDProtocolMessage [20:06:08]wFMCommunicate request_size=4 [20:06:08]MH_SAM_APDU [20:06:08]CAPDU: 80 11 00 00 [20:06:08]Write to MH i2c: E2 08 00 15 3B 80 11 00 00 00 00 00 00 CA [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:08]Read from MH i2c: E2 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 17 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 17 00 15 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2A [20:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:06:08]wFMCommunicate OK [20:06:08]CreateOFDProtocolMessage done [20:06:08]OFDSenderStorePacket 162930 [20:06:08]StoreOFDPacket docnum=162930 [20:06:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 60 82 07 01 C2 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 28 3C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D6 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 2A 00 00 00 00 07 04 06 00 D4 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 B1 2F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7C 02 00 35 04 06 00 50 A8 C3 3B 3D 1E BA 5A BA C9 97 78 90 FE [20:06:08]CheckFolder [20:06:08]dirname=/storage/ofd_packets [20:06:08]CheckFolder done [20:06:08]ProducePacketName [20:06:08]name=ofd_packets/00162930 [20:06:08]NVStorageSaveData ofd_packets/00162930 [20:06:08]File name is /storage/ofd_packets/00162930 [20:06:08]Write 301 bytes [20:06:08]NVStorageSaveData done [20:06:08]OFDSenderStorePacket done [20:06:08]KKMCreateOFDPacket done [20:06:08]NVStorageSaveData kkm_last_timestamp [20:06:08]File name is /storage/kkm_last_timestamp [20:06:08]Write 4 bytes [20:06:08]NVStorageSaveData done [20:06:08]ExternCall_PrintAddStr [20:06:08]wPrintStart [20:06:08]Write to MH i2c: 01 00 00 16 3B 51 [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: 01 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: 01 07 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: 01 07 00 16 3B 00 00 00 00 00 FF 0F 66 [20:06:08]RasterBufferAndPrint [20:06:08]line Счет N : (1)1319541 [20:06:08]line ИНН: 02508201610067 [20:06:08]line Контрольно-Кассовый Чек [20:06:08]line ПРОДАЖА [20:06:08]line ТРК (МРК, ГНК) : 33 [20:06:08]line Товар: 2710124130 [20:06:08]line Аи-92-К-5 [20:06:08]line 15.400 * 66.30 [20:06:08]line = 1021.02 [20:06:08]line НДС 12% НСП 1% [20:06:08]line > о реализуемом товаре [20:06:08]line ОКРУГЛЕНИЕ: -0.02 [20:06:08]line ИТОГО: 1021.00 [20:06:08]line Внесено: 2000.00 [20:06:08]line СДАЧА: 979.00 [20:06:08]line НСП 1% : 9.04 [20:06:08]line НДС 12% : 108.43 [20:06:08]line Наличными: 1021.00 [20:06:08]line Безнал.: 0.00 [20:06:08]line Место: АЗС № 140 "Партнер Нефть" [20:06:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:06:08]line СНО: Общий режим [20:06:08]line Чек 242 14.07.2024 20:06 [20:06:08]line Смена: 463 ФФД: 1.0 [20:06:08]line ЗНМ: 0300000129 [20:06:08]line РНМ: 0000000000090858 [20:06:08]line Версия ККМ: 001 [20:06:08]line ФМ: 0000000000874899 [20:06:08]line ФД: 162930 [20:06:08]line ФПД: 88685760167198 [20:06:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T200609&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162930&fm=88685760167198&tin=02508201610067®Number=0000000000090858&sum=102100 [20:06:08]written 0, free lines is 4095 [20:06:08]OFD Sender: Processing packet 162930 [packets to send 106, broken 105] [20:06:08]ProducePacketName [20:06:08]name=ofd_packets/00162930 [20:06:08]OFD Sender: To server: pG, [20:06:08]CommunicateWithHost lk.salyk.kg:30040 [20:06:08]ConnectInit lk.salyk.kg [20:06:08]Connected sock=11 [20:06:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 60 82 07 01 C2 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 28 3C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D6 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 2A 00 00 00 00 07 04 06 00 D4 8E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 B1 2F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7C 02 00 35 04 06 00 50 A8 C3 3B 3D 1E BA 5A BA C9 97 78 90 FE [20:06:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9D 2C 47 00 7B F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7C 02 00 F4 03 04 00 BE DB 93 66 B6 04 01 00 00 87 87 61 F0 E3 3F 47 EC [20:06:08]CommunicateWithHost err = 0 [20:06:08]CheckOFDResponse [20:06:08]1017 (14) - 77093643461234 [20:06:08]1041 (16) - 0000000000874899 [20:06:08]1040 (4) - 162930 [20:06:08]1012 (4) - 14.07.2024 14:07 [20:06:08]1206 (1) - 0 [20:06:08]OFD Sender: Remove packet 162930 [20:06:08]ProducePacketName [20:06:08]name=ofd_packets/00162930 [20:06:08]NVStorageDeleteData [20:06:09]Write to MH i2c: 01 00 00 41 3B 7C [20:06:09]Write i2c OK [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: 01 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: 01 07 00 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: 01 07 00 41 3B 00 00 00 00 00 E3 0C 72 [20:06:09]RasterBufferAndPrint [20:06:09]line [20:06:09]line [20:06:09]line [20:06:09]line [20:06:09]line [20:06:09]written 0, free lines is 3305 [20:06:09]MH_Cut [20:06:09]Write to MH i2c: D1 01 00 48 3B 01 55 [20:06:09]Write i2c OK [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: D1 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: D1 01 00 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: D1 01 00 48 3B 00 54 [20:06:09]Write to MH i2c: 01 00 00 49 3B 84 [20:06:09]Write i2c OK [20:06:09]MH_I2C_Read... [20:06:09]OFD Sender: No OFD packet to send [20:06:09]*** Cut start [20:06:09]*** Purtial cut [20:06:09]*** CUTSNS_PIN = 0 [20:06:09]*** Stage 1: CUTSNS_PIN = 1 [20:06:11]Read from MH i2c: 01 [20:06:11]MH_I2C_Read... [20:06:11]*** Stop cut motor [20:06:11]*** Cut end [20:06:11]Read from MH i2c: 01 07 00 [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: 01 07 00 49 3B 00 00 00 00 00 FF 0F 99 [20:06:11]process_action close_receipt done [20:06:11]requested_data is exist [20:06:11]produce_requested_data [20:06:11]requested_item fm.sn is exist - process it [20:06:11]wFMCommunicate request_size=4 [20:06:11]MH_SAM_APDU [20:06:11]CAPDU: 80 11 00 00 [20:06:11]Write to MH i2c: E2 08 00 4A 3B 80 11 00 00 00 00 00 00 FF [20:06:11]Write i2c OK [20:06:11]MH_I2C_Read... [20:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:11]Read from MH i2c: E2 [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: E2 17 00 [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: E2 17 00 4A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5F [20:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:06:11]wFMCommunicate OK [20:06:11]requested_item fd.num is exist - process it [20:06:11]SAM_PROTO_GetFieldsCounters [20:06:11]wFMCommunicate request_size=4 [20:06:11]MH_SAM_APDU [20:06:11]CAPDU: 80 13 00 00 [20:06:11]Write to MH i2c: E2 08 00 4B 3B 80 13 00 00 00 00 00 00 02 [20:06:11]Write i2c OK [20:06:11]MH_I2C_Read... [20:06:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:12]Read from MH i2c: E2 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 62 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 62 00 4B 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 72 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [20:06:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 72 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:12]wFMCommunicate OK [20:06:12]SAM_PROTO_GetFieldsCounters done [20:06:12]requested_item shift.num is exist - process it [20:06:12]requested_item shift.opened is exist - process it [20:06:12]req_shift_opened [20:06:12]FM_GetShiftState [20:06:12]SAM_PROTO_GetShiftState [20:06:12]wFMCommunicate request_size=4 [20:06:12]MH_SAM_APDU [20:06:12]CAPDU: 80 13 01 00 [20:06:12]Write to MH i2c: E2 08 00 4C 3B 80 13 01 00 00 00 00 00 04 [20:06:12]Write i2c OK [20:06:12]MH_I2C_Read... [20:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:12]Read from MH i2c: E2 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 0E 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 0E 00 4C 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3A [20:06:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:06:12]wFMCommunicate OK [20:06:12]SAM_PROTO_GetShiftState done [20:06:12]FM_GetShiftState done [20:06:12]req_shift_opened done [20:06:12]requested_item shift.open_date is exist - process it [20:06:12]req_shift_open_date [20:06:12]req_shift_open_date done [20:06:12]produce_requested_data done [20:06:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162930,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [20:06:12]process_action_free close_receipt [20:06:12]json_value_free [20:06:12]json_value_free done [20:06:12]process_json_proto returns [20:06:12]Send response to host [20:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162930,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [20:06:12]free response buf [20:06:12]execute_script done [20:06:12]execute_script returns [20:06:12]free content buf [20:06:12]Sock 7.Close socket [20:06:12]Sock 7.Thread stoped [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:02]accept exits with 9 [20:07:02]New connection [20:07:02]New thread 3066735972 created [20:07:02]Thread 3066879332 joined [20:07:02]Waiting for new connection... [20:07:02] Sock 9.Parse request [20:07:02]Sock 9.Check first char [20:07:02]Sock 9.First char is OK [20:07:02]request: POST /json_proto HTTP/1.0 [20:07:02]Method: POST [20:07:02]URL: /json_proto [20:07:02]Method is POST - this is cgi request [20:07:02]url: /json_proto [20:07:02]query_string will be loaded in cgi processing [20:07:02]execute_cgi json_proto POST (null) [20:07:02]execute_cgi path=json_proto method=POST [20:07:02]POST find Content-Length [20:07:02]Host: 172.17.39.67:8080 [20:07:02]Content-Length: 679 [20:07:02]Content-Type: application/json [20:07:02] [20:07:02]POST finish read [20:07:02]Found Content-Length = 679 [20:07:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 11.320, "sum" : 750.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:02]execute_script... [20:07: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)1319542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 11.320, "sum" : 750.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:02]POST & json_proto [20:07:02]process_json_proto [20:07:02]json parsed OK: [20:07:02]protocol is kg_v1.0 [20:07:02]action value=close_receipt [20:07:02]process_action close_receipt [20:07:02]cmd_close_receipt [20:07:02]MH_GetDate [20:07:02]Write to MH i2c: F0 00 00 4D 3B 77 [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: F0 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: F0 09 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: F0 09 00 4D 3B 00 E8 2F 94 66 B6 85 93 66 C5 [20:07:02]GetLastDocTimeStamp 1720987569 [20:07:02]current date 1720987624 [20:07:02]FM_GetShiftState [20:07:02]SAM_PROTO_GetShiftState [20:07:02]wFMCommunicate request_size=4 [20:07:02]MH_SAM_APDU [20:07:02]CAPDU: 80 13 01 00 [20:07:02]Write to MH i2c: E2 08 00 4E 3B 80 13 01 00 00 00 00 00 06 [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:02]Read from MH i2c: E2 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 0E 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 0E 00 4E 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3C [20:07:02]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:07:02]wFMCommunicate OK [20:07:02]SAM_PROTO_GetShiftState done [20:07:02]FM_GetShiftState done [20:07:02]opened in 1720915483 [20:07:02]opened+sec_in_day 1721001883 [20:07:02]quantity*price = 75051 [20:07:02]sum+1 = 75053 [20:07:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.70 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 243 14.07.2024 20:07 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162931 ФПД: 259817177673602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T200704&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162931&fm=259817177673602&tin=02508201610067®Number=0000000000090858&sum=75000 [20:07:03]StoreToDocumentArchive [20:07:03]shift 463 fd 162931 [20:07:03]save to /storage/0463/doc_00162931 [20:07:03]save last doc name /storage/0463/doc_00162931 to /storage/kkm_last_doc_name [20:07:03]save OK [20:07:03]Clear old archive folders... [20:07:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:03]tlvbuf is 01220480 [20:07:03]SAM_PROTO_ClearQueue [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 09 00 00 [20:07:03]Write to MH i2c: E2 08 00 5B 3B 80 09 00 00 00 00 00 00 08 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 5B 3B 00 90 00 0A [20:07:03]RAPDU: 90 00 [20:07:03]wFMCommunicate OK [20:07:03]SAM_PROTO_ClearQueue done [20:07:03]KKMCreateOFDPacket [20:07:03]OFDProtocolAddRootSTLVToBuf [20:07:03]FM_MakeSignedData [20:07:03]FM_MakeSignedData [20:07:03]SAM_PROTO_SignData [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 0D 01 02 [20:07:03]Write to MH i2c: E2 08 00 5C 3B 80 0D 01 02 00 00 00 00 10 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 5C 3B 00 90 00 0B [20:07:03]RAPDU: 90 00 [20:07:03]wFMCommunicate OK [20:07:03]wFMCommunicate request_size=255 [20:07:03]MH_SAM_APDU [20:07: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 38 2C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 2C 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E8 2F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7C 02 00 35 04 06 00 EC [20:07:03]Write to MH i2c: E2 02 01 5D 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 2C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 2C 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E8 2F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7C 02 00 35 04 06 00 EC 00 00 A7 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 5D 3B 00 90 00 0C [20:07:03]RAPDU: 90 00 [20:07:03]wFMCommunicate OK [20:07:03]wFMCommunicate request_size=10 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 0D 02 02 05 4D 66 94 EF 82 [20:07:03]Write to MH i2c: E2 0D 00 5E 3B 80 0D 02 02 05 00 4D 66 94 EF 82 00 00 D5 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 5E 3B 00 90 00 0D [20:07:03]RAPDU: 90 00 [20:07:03]wFMCommunicate OK [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 0D 03 02 [20:07:03]Write to MH i2c: E2 08 00 5F 3B 80 0D 03 02 00 00 00 00 15 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 0B 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 0B 00 5F 3B 00 4A AD CA FB FC E2 3B 5D 90 00 48 [20:07:03]RAPDU: 4A AD CA FB FC E2 3B 5D 90 00 [20:07:03]wFMCommunicate OK [20:07:03]SAM_PROTO_SignData done [20:07:03]FM_MakeSignedData done [20:07:03]CreateOFDProtocolMessage [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 11 00 00 [20:07:03]Write to MH i2c: E2 08 00 60 3B 80 11 00 00 00 00 00 00 15 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 17 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 17 00 60 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 75 [20:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:07:03]wFMCommunicate OK [20:07:03]CreateOFDProtocolMessage done [20:07:03]OFDSenderStorePacket 162931 [20:07:03]StoreOFDPacket docnum=162931 [20:07:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 79 62 07 01 93 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 2C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 2C 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E8 2F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7C 02 00 35 04 06 00 EC 4D 66 94 EF 82 4A AD CA FB FC E2 3B 5D [20:07:03]CheckFolder [20:07:03]dirname=/storage/ofd_packets [20:07:03]CheckFolder done [20:07:03]ProducePacketName [20:07:03]name=ofd_packets/00162931 [20:07:03]NVStorageSaveData ofd_packets/00162931 [20:07:03]File name is /storage/ofd_packets/00162931 [20:07:03]Write 301 bytes [20:07:03]NVStorageSaveData done [20:07:03]OFDSenderStorePacket done [20:07:03]KKMCreateOFDPacket done [20:07:03]NVStorageSaveData kkm_last_timestamp [20:07:03]File name is /storage/kkm_last_timestamp [20:07:03]Write 4 bytes [20:07:03]NVStorageSaveData done [20:07:03]ExternCall_PrintAddStr [20:07:03]wPrintStart [20:07:03]Write to MH i2c: 01 00 00 61 3B 9C [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: 01 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: 01 07 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: 01 07 00 61 3B 00 00 00 00 00 FF 0F B1 [20:07:03]RasterBufferAndPrint [20:07:03]line Счет N : (1)1319542 [20:07:03]line ИНН: 02508201610067 [20:07:03]line Контрольно-Кассовый Чек [20:07:03]line ПРОДАЖА [20:07:03]line ТРК (МРК, ГНК) : 43 [20:07:03]line Товар: 2710124130 [20:07:03]line Аи-92-К-5 [20:07:03]line 11.320 * 66.30 [20:07:03]line = 750.52 [20:07:03]line НДС 12% НСП 1% [20:07:03]line > о реализуемом товаре [20:07:03]line ОКРУГЛЕНИЕ: -0.52 [20:07:03]line ИТОГО: 750.00 [20:07:03]line Внесено: 750.00 [20:07:03]line СДАЧА: 0.00 [20:07:03]line НСП 1% : 6.64 [20:07:03]line НДС 12% : 79.70 [20:07:03]line Наличными: 750.00 [20:07:03]line Безнал.: 0.00 [20:07:03]line Место: АЗС № 140 "Партнер Нефть" [20:07:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:07:03]line СНО: Общий режим [20:07:03]line Чек 243 14.07.2024 20:07 [20:07:03]line Смена: 463 ФФД: 1.0 [20:07:03]line ЗНМ: 0300000129 [20:07:03]line РНМ: 0000000000090858 [20:07:03]line Версия ККМ: 001 [20:07:03]line ФМ: 0000000000874899 [20:07:03]line ФД: 162931 [20:07:03]line ФПД: 259817177673602 [20:07:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T200704&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162931&fm=259817177673602&tin=02508201610067®Number=0000000000090858&sum=75000 [20:07:04]OFD Sender: Processing packet 162931 [packets to send 106, broken 105] [20:07:04]ProducePacketName [20:07:04]name=ofd_packets/00162931 [20:07:04]OFD Sender: To server: pG, [20:07:04]CommunicateWithHost lk.salyk.kg:30040 [20:07:04]ConnectInit lk.salyk.kg [20:07:04]written 0, free lines is 4095 [20:07:04]Connected sock=10 [20:07:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 79 62 07 01 93 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 2C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 2C 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E8 2F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7C 02 00 35 04 06 00 EC 4D 66 94 EF 82 4A AD CA FB FC E2 3B 5D [20:07:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8D 6A 47 00 F4 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7C 02 00 F4 03 04 00 F5 DB 93 66 B6 04 01 00 00 F8 DF B6 47 CB 23 B3 82 [20:07:04]CommunicateWithHost err = 0 [20:07:04]CheckOFDResponse [20:07:04]1017 (14) - 77093643461234 [20:07:04]1041 (16) - 0000000000874899 [20:07:04]1040 (4) - 162931 [20:07:04]1012 (4) - 14.07.2024 14:08 [20:07:04]1206 (1) - 0 [20:07:04]OFD Sender: Remove packet 162931 [20:07:04]ProducePacketName [20:07:04]name=ofd_packets/00162931 [20:07:04]NVStorageDeleteData [20:07:04]Write to MH i2c: 01 00 00 8C 3B C7 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 07 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 07 00 8C 3B 00 00 00 00 00 D1 0C AB [20:07:04]RasterBufferAndPrint [20:07:04]line [20:07:04]line [20:07:04]line [20:07:04]line [20:07:04]line [20:07:04]written 0, free lines is 3290 [20:07:04]MH_Cut [20:07:04]Write to MH i2c: D1 01 00 93 3B 01 A0 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: D1 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: D1 01 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: D1 01 00 93 3B 00 9F [20:07:04]Write to MH i2c: 01 00 00 94 3B CF [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]OFD Sender: No OFD packet to send [20:07:05]*** Cut start [20:07:05]*** Purtial cut [20:07:05]*** Stage 1: CUTSNS_PIN = 1 [20:07:05]Read from MH i2c: 01 [20:07:05]MH_I2C_Read... [20:07:05]*** Stop cut motor [20:07:05]*** Cut end [20:07:05]Read from MH i2c: 01 07 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 94 3B 00 00 00 00 00 FF 0F E4 [20:07:05]process_action close_receipt done [20:07:05]requested_data is exist [20:07:05]produce_requested_data [20:07:05]requested_item fm.sn is exist - process it [20:07:05]wFMCommunicate request_size=4 [20:07:05]MH_SAM_APDU [20:07:05]CAPDU: 80 11 00 00 [20:07:05]Write to MH i2c: E2 08 00 95 3B 80 11 00 00 00 00 00 00 4A [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:05]Read from MH i2c: E2 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 17 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 17 00 95 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AA [20:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:07:05]wFMCommunicate OK [20:07:05]requested_item fd.num is exist - process it [20:07:05]SAM_PROTO_GetFieldsCounters [20:07:05]wFMCommunicate request_size=4 [20:07:05]MH_SAM_APDU [20:07:05]CAPDU: 80 13 00 00 [20:07:05]Write to MH i2c: E2 08 00 96 3B 80 13 00 00 00 00 00 00 4D [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:05]Read from MH i2c: E2 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 62 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 62 00 96 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 73 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [20:07:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 73 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:05]wFMCommunicate OK [20:07:05]SAM_PROTO_GetFieldsCounters done [20:07:05]requested_item shift.num is exist - process it [20:07:05]requested_item shift.opened is exist - process it [20:07:05]req_shift_opened [20:07:05]FM_GetShiftState [20:07:05]SAM_PROTO_GetShiftState [20:07:05]wFMCommunicate request_size=4 [20:07:05]MH_SAM_APDU [20:07:05]CAPDU: 80 13 01 00 [20:07:05]Write to MH i2c: E2 08 00 97 3B 80 13 01 00 00 00 00 00 4F [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:05]Read from MH i2c: E2 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 0E 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 0E 00 97 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 85 [20:07:05]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:07:05]wFMCommunicate OK [20:07:05]SAM_PROTO_GetShiftState done [20:07:05]FM_GetShiftState done [20:07:05]req_shift_opened done [20:07:05]requested_item shift.open_date is exist - process it [20:07:05]req_shift_open_date [20:07:05]req_shift_open_date done [20:07:05]produce_requested_data done [20:07:05]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162931,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [20:07:05]process_action_free close_receipt [20:07:05]json_value_free [20:07:05]json_value_free done [20:07:05]process_json_proto returns [20:07:05]Send response to host [20:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162931,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [20:07:05]free response buf [20:07:05]execute_script done [20:07:05]execute_script returns [20:07:05]free content buf [20:07:05]Sock 9.Close socket [20:07:05]Sock 9.Thread stoped [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]accept exits with 7 [20:07:19]New connection [20:07:19]New thread 3066879332 created [20:07:19]Thread 3066735972 joined [20:07:19]Waiting for new connection... [20:07:19] Sock 7.Parse request [20:07:19]Sock 7.Check first char [20:07:19]Sock 7.First char is OK [20:07:19]request: POST /json_proto HTTP/1.0 [20:07:19]Method: POST [20:07:19]URL: /json_proto [20:07:19]Method is POST - this is cgi request [20:07:19]url: /json_proto [20:07:19]query_string will be loaded in cgi processing [20:07:19]execute_cgi json_proto POST (null) [20:07:19]execute_cgi path=json_proto method=POST [20:07:19]POST find Content-Length [20:07:19]Host: 172.17.39.67:8080 [20:07:19]Content-Length: 679 [20:07:19]Content-Type: application/json [20:07:19] [20:07:19]POST finish read [20:07:19]Found Content-Length = 679 [20:07:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 12.070, "sum" : 800.24, "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" ] } } [20:07:19]execute_script... [20:07: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)1319543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 12.070, "sum" : 800.24, "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" ] } } [20:07:19]POST & json_proto [20:07:19]process_json_proto [20:07:19]json parsed OK: [20:07:19]protocol is kg_v1.0 [20:07:19]action value=close_receipt [20:07:19]process_action close_receipt [20:07:19]cmd_close_receipt [20:07:19]MH_GetDate [20:07:19]Write to MH i2c: F0 00 00 98 3B C2 [20:07:19]Write i2c OK [20:07:19]MH_I2C_Read... [20:07:19]Read from MH i2c: F0 [20:07:19]MH_I2C_Read... [20:07:19]Read from MH i2c: F0 09 00 [20:07:19]MH_I2C_Read... [20:07:19]Read from MH i2c: F0 09 00 98 3B 00 F9 2F 94 66 B6 85 93 66 21 [20:07:19]GetLastDocTimeStamp 1720987624 [20:07:19]current date 1720987641 [20:07:19]FM_GetShiftState [20:07:19]SAM_PROTO_GetShiftState [20:07:19]wFMCommunicate request_size=4 [20:07:19]MH_SAM_APDU [20:07:19]CAPDU: 80 13 01 00 [20:07:19]Write to MH i2c: E2 08 00 99 3B 80 13 01 00 00 00 00 00 51 [20:07:19]Write i2c OK [20:07:19]MH_I2C_Read... [20:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:19]Read from MH i2c: E2 [20:07:19]MH_I2C_Read... [20:07:19]Read from MH i2c: E2 0E 00 [20:07:19]MH_I2C_Read... [20:07:19]Read from MH i2c: E2 0E 00 99 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 87 [20:07:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:07:19]wFMCommunicate OK [20:07:19]SAM_PROTO_GetShiftState done [20:07:19]FM_GetShiftState done [20:07:19]opened in 1720915483 [20:07:19]opened+sec_in_day 1721001883 [20:07:19]quantity*price = 80024 [20:07:19]sum+1 = 80025 [20:07:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 244 14.07.2024 20:07 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162932 ФПД: 250446872927002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T200721&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162932&fm=250446872927002&tin=02508201610067®Number=0000000000090858&sum=80000 [20:07:20]StoreToDocumentArchive [20:07:20]shift 463 fd 162932 [20:07:20]save to /storage/0463/doc_00162932 [20:07:20]save last doc name /storage/0463/doc_00162932 to /storage/kkm_last_doc_name [20:07:20]save OK [20:07:20]Clear old archive folders... [20:07:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:20]tlvbuf is 01227D00 [20:07:20]SAM_PROTO_ClearQueue [20:07:20]wFMCommunicate request_size=4 [20:07:20]MH_SAM_APDU [20:07:20]CAPDU: 80 09 00 00 [20:07:20]Write to MH i2c: E2 08 00 A6 3B 80 09 00 00 00 00 00 00 53 [20:07:20]Write i2c OK [20:07:20]MH_I2C_Read... [20:07:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:20]Read from MH i2c: E2 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 03 00 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 03 00 A6 3B 00 90 00 55 [20:07:20]RAPDU: 90 00 [20:07:20]wFMCommunicate OK [20:07:20]SAM_PROTO_ClearQueue done [20:07:20]KKMCreateOFDPacket [20:07:20]OFDProtocolAddRootSTLVToBuf [20:07:20]FM_MakeSignedData [20:07:20]FM_MakeSignedData [20:07:20]SAM_PROTO_SignData [20:07:20]wFMCommunicate request_size=4 [20:07:20]MH_SAM_APDU [20:07:20]CAPDU: 80 0D 01 02 [20:07:20]Write to MH i2c: E2 08 00 A7 3B 80 0D 01 02 00 00 00 00 5B [20:07:20]Write i2c OK [20:07:20]MH_I2C_Read... [20:07:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:20]Read from MH i2c: E2 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 03 00 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 03 00 A7 3B 00 90 00 56 [20:07:20]RAPDU: 90 00 [20:07:20]wFMCommunicate OK [20:07:20]wFMCommunicate request_size=255 [20:07:20]MH_SAM_APDU [20:07: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 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 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 32 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 F4 00 00 00 F4 03 04 00 F9 2F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7C 02 00 35 04 06 00 E3 [20:07:20]Write to MH i2c: E2 02 01 A8 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 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 32 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 F4 00 00 00 F4 03 04 00 F9 2F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7C 02 00 35 04 06 00 E3 00 00 E2 [20:07:20]Write i2c OK [20:07:20]MH_I2C_Read... [20:07:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:20]Read from MH i2c: E2 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 03 00 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 03 00 A8 3B 00 90 00 57 [20:07:20]RAPDU: 90 00 [20:07:20]wFMCommunicate OK [20:07:20]wFMCommunicate request_size=10 [20:07:20]MH_SAM_APDU [20:07:20]CAPDU: 80 0D 02 02 05 C7 B4 E5 5B 1A [20:07:20]Write to MH i2c: E2 0D 00 A9 3B 80 0D 02 02 05 00 C7 B4 E5 5B 1A 00 00 3D [20:07:20]Write i2c OK [20:07:20]MH_I2C_Read... [20:07:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:20]Read from MH i2c: E2 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 03 00 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 03 00 A9 3B 00 90 00 58 [20:07:20]RAPDU: 90 00 [20:07:20]wFMCommunicate OK [20:07:20]wFMCommunicate request_size=4 [20:07:20]MH_SAM_APDU [20:07:20]CAPDU: 80 0D 03 02 [20:07:20]Write to MH i2c: E2 08 00 AA 3B 80 0D 03 02 00 00 00 00 60 [20:07:20]Write i2c OK [20:07:20]MH_I2C_Read... [20:07:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:20]Read from MH i2c: E2 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 0B 00 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 0B 00 AA 3B 00 C3 1F B0 D4 F1 EE B7 70 90 00 CD [20:07:20]RAPDU: C3 1F B0 D4 F1 EE B7 70 90 00 [20:07:20]wFMCommunicate OK [20:07:20]SAM_PROTO_SignData done [20:07:20]FM_MakeSignedData done [20:07:20]CreateOFDProtocolMessage [20:07:20]wFMCommunicate request_size=4 [20:07:20]MH_SAM_APDU [20:07:20]CAPDU: 80 11 00 00 [20:07:20]Write to MH i2c: E2 08 00 AB 3B 80 11 00 00 00 00 00 00 60 [20:07:20]Write i2c OK [20:07:20]MH_I2C_Read... [20:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:20]Read from MH i2c: E2 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 17 00 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: E2 17 00 AB 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C0 [20:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:07:20]wFMCommunicate OK [20:07:20]CreateOFDProtocolMessage done [20:07:20]OFDSenderStorePacket 162932 [20:07:20]StoreOFDPacket docnum=162932 [20:07:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 03 11 07 01 06 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 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 32 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 F4 00 00 00 F4 03 04 00 F9 2F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7C 02 00 35 04 06 00 E3 C7 B4 E5 5B 1A C3 1F B0 D4 F1 EE B7 70 [20:07:20]CheckFolder [20:07:20]dirname=/storage/ofd_packets [20:07:20]CheckFolder done [20:07:20]ProducePacketName [20:07:20]name=ofd_packets/00162932 [20:07:20]NVStorageSaveData ofd_packets/00162932 [20:07:20]File name is /storage/ofd_packets/00162932 [20:07:20]Write 301 bytes [20:07:20]NVStorageSaveData done [20:07:20]OFDSenderStorePacket done [20:07:20]KKMCreateOFDPacket done [20:07:20]NVStorageSaveData kkm_last_timestamp [20:07:20]File name is /storage/kkm_last_timestamp [20:07:20]Write 4 bytes [20:07:20]NVStorageSaveData done [20:07:20]ExternCall_PrintAddStr [20:07:20]wPrintStart [20:07:20]Write to MH i2c: 01 00 00 AC 3B E7 [20:07:20]Write i2c OK [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: 01 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: 01 07 00 [20:07:20]MH_I2C_Read... [20:07:20]Read from MH i2c: 01 07 00 AC 3B 00 00 00 00 00 FF 0F FC [20:07:20]RasterBufferAndPrint [20:07:20]line Счет N : (1)1319543 [20:07:20]line ИНН: 02508201610067 [20:07:20]line Контрольно-Кассовый Чек [20:07:20]line ПРОДАЖА [20:07:20]line ТРК (МРК, ГНК) : 63 [20:07:20]line Товар: 2710124130 [20:07:20]line Аи-92-К-5 [20:07:20]line 12.070 * 66.30 [20:07:20]line = 800.24 [20:07:20]line НДС 12% НСП 1% [20:07:20]line > о реализуемом товаре [20:07:20]line ОКРУГЛЕНИЕ: -0.24 [20:07:20]line ИТОГО: 800.00 [20:07:20]line Внесено: 800.00 [20:07:20]line СДАЧА: 0.00 [20:07:20]line НСП 1% : 7.08 [20:07:20]line НДС 12% : 84.98 [20:07:20]line Наличными: 800.00 [20:07:20]line Безнал.: 0.00 [20:07:20]line Место: АЗС № 140 "Партнер Нефть" [20:07:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:07:20]line СНО: Общий режим [20:07:20]line Чек 244 14.07.2024 20:07 [20:07:20]line Смена: 463 ФФД: 1.0 [20:07:20]line ЗНМ: 0300000129 [20:07:20]line РНМ: 0000000000090858 [20:07:20]line Версия ККМ: 001 [20:07:20]line ФМ: 0000000000874899 [20:07:20]line ФД: 162932 [20:07:20]line ФПД: 250446872927002 [20:07:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T200721&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162932&fm=250446872927002&tin=02508201610067®Number=0000000000090858&sum=80000 [20:07:21]OFD Sender: Processing packet 162932 [packets to send 106, broken 105] [20:07:21]ProducePacketName [20:07:21]name=ofd_packets/00162932 [20:07:21]OFD Sender: To server: pG, [20:07:21]CommunicateWithHost lk.salyk.kg:30040 [20:07:21]ConnectInit lk.salyk.kg [20:07:21]written 0, free lines is 4095 [20:07:21]Connected sock=10 [20:07:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 03 11 07 01 06 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 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 32 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 F4 00 00 00 F4 03 04 00 F9 2F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7C 02 00 35 04 06 00 E3 C7 B4 E5 5B 1A C3 1F B0 D4 F1 EE B7 70 [20:07:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FB 4F 47 00 C7 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7C 02 00 F4 03 04 00 06 DC 93 66 B6 04 01 00 00 38 70 05 CE CF 27 99 09 [20:07:21]CommunicateWithHost err = 0 [20:07:21]CheckOFDResponse [20:07:21]1017 (14) - 77093643461234 [20:07:21]1041 (16) - 0000000000874899 [20:07:21]1040 (4) - 162932 [20:07:21]1012 (4) - 14.07.2024 14:09 [20:07:21]1206 (1) - 0 [20:07:21]OFD Sender: Remove packet 162932 [20:07:21]ProducePacketName [20:07:21]name=ofd_packets/00162932 [20:07:21]NVStorageDeleteData [20:07:21]Write to MH i2c: 01 00 00 D7 3B 12 [20:07:21]Write i2c OK [20:07:21]MH_I2C_Read... [20:07:21]Read from MH i2c: 01 [20:07:21]MH_I2C_Read... [20:07:21]Read from MH i2c: 01 07 00 [20:07:21]MH_I2C_Read... [20:07:21]Read from MH i2c: 01 07 00 D7 3B 00 00 00 00 00 DA 0C FF [20:07:21]RasterBufferAndPrint [20:07:21]line [20:07:21]line [20:07:21]line [20:07:21]line [20:07:21]line [20:07:21]written 0, free lines is 3296 [20:07:21]MH_Cut [20:07:21]Write to MH i2c: D1 01 00 DE 3B 01 EB [20:07:21]Write i2c OK [20:07:21]MH_I2C_Read... [20:07:21]Read from MH i2c: D1 [20:07:21]MH_I2C_Read... [20:07:21]Read from MH i2c: D1 01 00 [20:07:21]MH_I2C_Read... [20:07:21]Read from MH i2c: D1 01 00 DE 3B 00 EA [20:07:21]Write to MH i2c: 01 00 00 DF 3B 1A [20:07:21]Write i2c OK [20:07:21]MH_I2C_Read... [20:07:21]OFD Sender: No OFD packet to send [20:07:22]*** Cut start [20:07:22]*** Purtial cut [20:07:22]*** CUTSNS_PIN = 0 [20:07:22]*** Stage 1: CUTSNS_PIN = 1 [20:07:24]Read from MH i2c: 01 [20:07:24]MH_I2C_Read... [20:07:24]*** Stop cut motor [20:07:24]*** Cut end [20:07:24]Read from MH i2c: 01 07 00 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: 01 07 00 DF 3B 00 00 00 00 00 FF 0F 2F [20:07:24]process_action close_receipt done [20:07:24]requested_data is exist [20:07:24]produce_requested_data [20:07:24]requested_item fm.sn is exist - process it [20:07:24]wFMCommunicate request_size=4 [20:07:24]MH_SAM_APDU [20:07:24]CAPDU: 80 11 00 00 [20:07:24]Write to MH i2c: E2 08 00 E0 3B 80 11 00 00 00 00 00 00 95 [20:07:24]Write i2c OK [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 [20:07:24]MH_I2C_Read... [20:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:24]Read from MH i2c: E2 17 00 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 17 00 E0 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F5 [20:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:07:24]wFMCommunicate OK [20:07:24]requested_item fd.num is exist - process it [20:07:24]SAM_PROTO_GetFieldsCounters [20:07:24]wFMCommunicate request_size=4 [20:07:24]MH_SAM_APDU [20:07:24]CAPDU: 80 13 00 00 [20:07:24]Write to MH i2c: E2 08 00 E1 3B 80 13 00 00 00 00 00 00 98 [20:07:24]Write i2c OK [20:07:24]MH_I2C_Read... [20:07:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:24]Read from MH i2c: E2 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 62 00 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 62 00 E1 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 74 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [20:07:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 74 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:24]wFMCommunicate OK [20:07:24]SAM_PROTO_GetFieldsCounters done [20:07:24]requested_item shift.num is exist - process it [20:07:24]requested_item shift.opened is exist - process it [20:07:24]req_shift_opened [20:07:24]FM_GetShiftState [20:07:24]SAM_PROTO_GetShiftState [20:07:24]wFMCommunicate request_size=4 [20:07:24]MH_SAM_APDU [20:07:24]CAPDU: 80 13 01 00 [20:07:24]Write to MH i2c: E2 08 00 E2 3B 80 13 01 00 00 00 00 00 9A [20:07:24]Write i2c OK [20:07:24]MH_I2C_Read... [20:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:24]Read from MH i2c: E2 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 0E 00 [20:07:24]MH_I2C_Read... [20:07:24]Read from MH i2c: E2 0E 00 E2 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D0 [20:07:24]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:07:24]wFMCommunicate OK [20:07:24]SAM_PROTO_GetShiftState done [20:07:24]FM_GetShiftState done [20:07:24]req_shift_opened done [20:07:24]requested_item shift.open_date is exist - process it [20:07:24]req_shift_open_date [20:07:24]req_shift_open_date done [20:07:24]produce_requested_data done [20:07:24]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162932,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [20:07:24]process_action_free close_receipt [20:07:24]json_value_free [20:07:24]json_value_free done [20:07:24]process_json_proto returns [20:07:24]Send response to host [20:07:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162932,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [20:07:24]free response buf [20:07:24]execute_script done [20:07:24]execute_script returns [20:07:24]free content buf [20:07:24]Sock 7.Close socket [20:07:24]Sock 7.Thread stoped [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:15]accept exits with 9 [20:20:15]New connection [20:20:15]New thread 3066735972 created [20:20:15]Thread 3066879332 joined [20:20:15]Waiting for new connection... [20:20:15] Sock 9.Parse request [20:20:15]Sock 9.Check first char [20:20:15]Sock 9.First char is OK [20:20:15]request: POST /json_proto HTTP/1.0 [20:20:15]Method: POST [20:20:15]URL: /json_proto [20:20:15]Method is POST - this is cgi request [20:20:15]url: /json_proto [20:20:15]query_string will be loaded in cgi processing [20:20:15]execute_cgi json_proto POST (null) [20:20:15]execute_cgi path=json_proto method=POST [20:20:15]POST find Content-Length [20:20:15]Host: 172.17.39.67:8080 [20:20:15]Content-Length: 678 [20:20:15]Content-Type: application/json [20:20:15] [20:20:15]POST finish read [20:20:15]Found Content-Length = 678 [20:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:20:15]execute_script... [20:20: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)1319544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:20:15]POST & json_proto [20:20:15]process_json_proto [20:20:15]json parsed OK: [20:20:15]protocol is kg_v1.0 [20:20:15]action value=close_receipt [20:20:15]process_action close_receipt [20:20:15]cmd_close_receipt [20:20:15]MH_GetDate [20:20:15]Write to MH i2c: F0 00 00 E3 3B 0D [20:20:15]Write i2c OK [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: F0 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: F0 09 00 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: F0 09 00 E3 3B 00 02 33 94 66 B6 85 93 66 79 [20:20:15]GetLastDocTimeStamp 1720987641 [20:20:15]current date 1720988418 [20:20:15]FM_GetShiftState [20:20:15]SAM_PROTO_GetShiftState [20:20:15]wFMCommunicate request_size=4 [20:20:15]MH_SAM_APDU [20:20:15]CAPDU: 80 13 01 00 [20:20:15]Write to MH i2c: E2 08 00 E4 3B 80 13 01 00 00 00 00 00 9C [20:20:15]Write i2c OK [20:20:15]MH_I2C_Read... [20:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:15]Read from MH i2c: E2 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: E2 0E 00 [20:20:15]MH_I2C_Read... [20:20:15]Read from MH i2c: E2 0E 00 E4 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D2 [20:20:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:20:15]wFMCommunicate OK [20:20:15]SAM_PROTO_GetShiftState done [20:20:15]FM_GetShiftState done [20:20:15]opened in 1720915483 [20:20:15]opened+sec_in_day 1721001883 [20:20:15]quantity*price = 50056 [20:20:15]sum+1 = 50058 [20:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 245 14.07.2024 20:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162933 ФПД: 281435540143515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202018&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162933&fm=281435540143515&tin=02508201610067®Number=0000000000090858&sum=50000 [20:20:16]StoreToDocumentArchive [20:20:16]shift 463 fd 162933 [20:20:16]save to /storage/0463/doc_00162933 [20:20:16]save last doc name /storage/0463/doc_00162933 to /storage/kkm_last_doc_name [20:20:16]save OK [20:20:16]Clear old archive folders... [20:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:16]tlvbuf is 0134DDC0 [20:20:16]SAM_PROTO_ClearQueue [20:20:16]wFMCommunicate request_size=4 [20:20:16]MH_SAM_APDU [20:20:16]CAPDU: 80 09 00 00 [20:20:16]Write to MH i2c: E2 08 00 F1 3B 80 09 00 00 00 00 00 00 9E [20:20:16]Write i2c OK [20:20:16]MH_I2C_Read... [20:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:16]Read from MH i2c: E2 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: E2 03 00 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: E2 03 00 F1 3B 00 90 00 A0 [20:20:16]RAPDU: 90 00 [20:20:16]wFMCommunicate OK [20:20:16]SAM_PROTO_ClearQueue done [20:20:16]KKMCreateOFDPacket [20:20:16]OFDProtocolAddRootSTLVToBuf [20:20:16]FM_MakeSignedData [20:20:16]FM_MakeSignedData [20:20:16]SAM_PROTO_SignData [20:20:16]wFMCommunicate request_size=4 [20:20:16]MH_SAM_APDU [20:20:16]CAPDU: 80 0D 01 02 [20:20:16]Write to MH i2c: E2 08 00 F2 3B 80 0D 01 02 00 00 00 00 A6 [20:20:16]Write i2c OK [20:20:16]MH_I2C_Read... [20:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:16]Read from MH i2c: E2 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: E2 03 00 [20:20:16]MH_I2C_Read... [20:20:16]Read from MH i2c: E2 03 00 F2 3B 00 90 00 A1 [20:20:16]RAPDU: 90 00 [20:20:16]wFMCommunicate OK [20:20:16]wFMCommunicate request_size=255 [20:20:16]MH_SAM_APDU [20:20: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 F5 00 00 00 F4 03 04 00 02 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7C 02 00 35 04 06 00 FF [20:20:16]Write to MH i2c: E2 02 01 F3 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 F5 00 00 00 F4 03 04 00 02 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7C 02 00 35 04 06 00 FF 00 00 48 [20:20:16]Write i2c OK [20:20:16]MH_I2C_Read... [20:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:17]Read from MH i2c: E2 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 03 00 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 03 00 F3 3B 00 90 00 A2 [20:20:17]RAPDU: 90 00 [20:20:17]wFMCommunicate OK [20:20:17]wFMCommunicate request_size=10 [20:20:17]MH_SAM_APDU [20:20:17]CAPDU: 80 0D 02 02 05 F6 D1 65 BD 9B [20:20:17]Write to MH i2c: E2 0D 00 F4 3B 80 0D 02 02 05 00 F6 D1 65 BD 9B 00 00 37 [20:20:17]Write i2c OK [20:20:17]MH_I2C_Read... [20:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:17]Read from MH i2c: E2 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 03 00 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 03 00 F4 3B 00 90 00 A3 [20:20:17]RAPDU: 90 00 [20:20:17]wFMCommunicate OK [20:20:17]wFMCommunicate request_size=4 [20:20:17]MH_SAM_APDU [20:20:17]CAPDU: 80 0D 03 02 [20:20:17]Write to MH i2c: E2 08 00 F5 3B 80 0D 03 02 00 00 00 00 AB [20:20:17]Write i2c OK [20:20:17]MH_I2C_Read... [20:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:17]Read from MH i2c: E2 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 0B 00 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 0B 00 F5 3B 00 EC 89 70 70 F4 40 93 7D 90 00 45 [20:20:17]RAPDU: EC 89 70 70 F4 40 93 7D 90 00 [20:20:17]wFMCommunicate OK [20:20:17]SAM_PROTO_SignData done [20:20:17]FM_MakeSignedData done [20:20:17]CreateOFDProtocolMessage [20:20:17]wFMCommunicate request_size=4 [20:20:17]MH_SAM_APDU [20:20:17]CAPDU: 80 11 00 00 [20:20:17]Write to MH i2c: E2 08 00 F6 3B 80 11 00 00 00 00 00 00 AB [20:20:17]Write i2c OK [20:20:17]MH_I2C_Read... [20:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:17]Read from MH i2c: E2 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 17 00 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: E2 17 00 F6 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0B [20:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:20:17]wFMCommunicate OK [20:20:17]CreateOFDProtocolMessage done [20:20:17]OFDSenderStorePacket 162933 [20:20:17]StoreOFDPacket docnum=162933 [20:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 21 87 07 01 87 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 F5 00 00 00 F4 03 04 00 02 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7C 02 00 35 04 06 00 FF F6 D1 65 BD 9B EC 89 70 70 F4 40 93 7D [20:20:17]CheckFolder [20:20:17]dirname=/storage/ofd_packets [20:20:17]CheckFolder done [20:20:17]ProducePacketName [20:20:17]name=ofd_packets/00162933 [20:20:17]NVStorageSaveData ofd_packets/00162933 [20:20:17]File name is /storage/ofd_packets/00162933 [20:20:17]Write 301 bytes [20:20:17]NVStorageSaveData done [20:20:17]OFDSenderStorePacket done [20:20:17]KKMCreateOFDPacket done [20:20:17]NVStorageSaveData kkm_last_timestamp [20:20:17]File name is /storage/kkm_last_timestamp [20:20:17]Write 4 bytes [20:20:17]NVStorageSaveData done [20:20:17]ExternCall_PrintAddStr [20:20:17]wPrintStart [20:20:17]Write to MH i2c: 01 00 00 F7 3B 32 [20:20:17]Write i2c OK [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: 01 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: 01 07 00 [20:20:17]MH_I2C_Read... [20:20:17]Read from MH i2c: 01 07 00 F7 3B 00 00 00 00 00 FF 0F 47 [20:20:17]RasterBufferAndPrint [20:20:17]line Счет N : (1)1319544 [20:20:17]line ИНН: 02508201610067 [20:20:17]line Контрольно-Кассовый Чек [20:20:17]line ПРОДАЖА [20:20:17]line ТРК (МРК, ГНК) : 63 [20:20:17]line Товар: 2710124130 [20:20:17]line Аи-92-К-5 [20:20:17]line 7.550 * 66.30 [20:20:17]line = 500.57 [20:20:17]line НДС 12% НСП 1% [20:20:17]line > о реализуемом товаре [20:20:17]line ОКРУГЛЕНИЕ: -0.57 [20:20:17]line ИТОГО: 500.00 [20:20:17]line Внесено: 500.00 [20:20:17]line СДАЧА: 0.00 [20:20:17]line НСП 1% : 4.43 [20:20:17]line НДС 12% : 53.16 [20:20:17]line Наличными: 500.00 [20:20:17]line Безнал.: 0.00 [20:20:17]line Место: АЗС № 140 "Партнер Нефть" [20:20:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:20:17]line СНО: Общий режим [20:20:17]line Чек 245 14.07.2024 20:20 [20:20:17]line Смена: 463 ФФД: 1.0 [20:20:17]line ЗНМ: 0300000129 [20:20:17]line РНМ: 0000000000090858 [20:20:17]line Версия ККМ: 001 [20:20:17]line ФМ: 0000000000874899 [20:20:17]line ФД: 162933 [20:20:17]line ФПД: 281435540143515 [20:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202018&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162933&fm=281435540143515&tin=02508201610067®Number=0000000000090858&sum=50000 [20:20:17]OFD Sender: Processing packet 162933 [packets to send 106, broken 105] [20:20:17]ProducePacketName [20:20:17]name=ofd_packets/00162933 [20:20:17]OFD Sender: To server: pG, [20:20:17]CommunicateWithHost lk.salyk.kg:30040 [20:20:17]ConnectInit lk.salyk.kg [20:20:17]written 0, free lines is 4095 [20:20:17]Connected sock=11 [20:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 21 87 07 01 87 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 F5 00 00 00 F4 03 04 00 02 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7C 02 00 35 04 06 00 FF F6 D1 65 BD 9B EC 89 70 70 F4 40 93 7D [20:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B2 B4 47 00 94 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7C 02 00 F4 03 04 00 0F DF 93 66 B6 04 01 00 00 25 0B 07 26 08 4F A7 BC [20:20:17]CommunicateWithHost err = 0 [20:20:17]CheckOFDResponse [20:20:17]1017 (14) - 77093643461234 [20:20:17]1041 (16) - 0000000000874899 [20:20:17]1040 (4) - 162933 [20:20:17]1012 (4) - 14.07.2024 14:22 [20:20:17]1206 (1) - 0 [20:20:17]OFD Sender: Remove packet 162933 [20:20:17]ProducePacketName [20:20:17]name=ofd_packets/00162933 [20:20:17]NVStorageDeleteData [20:20:18]Write to MH i2c: 01 00 00 22 3C 5E [20:20:18]Write i2c OK [20:20:18]MH_I2C_Read... [20:20:18]Read from MH i2c: 01 [20:20:18]MH_I2C_Read... [20:20:18]Read from MH i2c: 01 07 00 [20:20:18]MH_I2C_Read... [20:20:18]Read from MH i2c: 01 07 00 22 3C 00 00 00 00 00 CD 0C 3E [20:20:18]RasterBufferAndPrint [20:20:18]line [20:20:18]line [20:20:18]line [20:20:18]line [20:20:18]line [20:20:18]written 0, free lines is 3284 [20:20:18]MH_Cut [20:20:18]Write to MH i2c: D1 01 00 29 3C 01 37 [20:20:18]Write i2c OK [20:20:18]MH_I2C_Read... [20:20:18]Read from MH i2c: D1 [20:20:18]MH_I2C_Read... [20:20:18]Read from MH i2c: D1 01 00 [20:20:18]MH_I2C_Read... [20:20:18]Read from MH i2c: D1 01 00 29 3C 00 36 [20:20:18]Write to MH i2c: 01 00 00 2A 3C 66 [20:20:18]Write i2c OK [20:20:18]MH_I2C_Read... [20:20:18]OFD Sender: No OFD packet to send [20:20:18]*** Cut start [20:20:18]*** Purtial cut [20:20:18]*** Stage 1: CUTSNS_PIN = 1 [20:20:19]Read from MH i2c: 01 [20:20:19]MH_I2C_Read... [20:20:19]*** Stop cut motor [20:20:19]*** Cut end [20:20:19]Read from MH i2c: 01 07 00 [20:20:19]MH_I2C_Read... [20:20:19]Read from MH i2c: 01 07 00 2A 3C 00 00 00 00 00 FF 0F 7B [20:20:19]process_action close_receipt done [20:20:19]requested_data is exist [20:20:19]produce_requested_data [20:20:19]requested_item fm.sn is exist - process it [20:20:19]wFMCommunicate request_size=4 [20:20:19]MH_SAM_APDU [20:20:19]CAPDU: 80 11 00 00 [20:20:19]Write to MH i2c: E2 08 00 2B 3C 80 11 00 00 00 00 00 00 E1 [20:20:19]Write i2c OK [20:20:19]MH_I2C_Read... [20:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:19]Read from MH i2c: E2 [20:20:19]MH_I2C_Read... [20:20:19]Read from MH i2c: E2 17 00 [20:20:19]MH_I2C_Read... [20:20:19]Read from MH i2c: E2 17 00 2B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 41 [20:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:20:19]wFMCommunicate OK [20:20:19]requested_item fd.num is exist - process it [20:20:19]SAM_PROTO_GetFieldsCounters [20:20:19]wFMCommunicate request_size=4 [20:20:19]MH_SAM_APDU [20:20:19]CAPDU: 80 13 00 00 [20:20:19]Write to MH i2c: E2 08 00 2C 3C 80 13 00 00 00 00 00 00 E4 [20:20:19]Write i2c OK [20:20:19]MH_I2C_Read... [20:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:19]Read from MH i2c: E2 [20:20:19]MH_I2C_Read... [20:20:19]Read from MH i2c: E2 62 00 [20:20:19]MH_I2C_Read... [20:20:19]Read from MH i2c: E2 62 00 2C 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 75 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [20:20:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 75 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:19]wFMCommunicate OK [20:20:19]SAM_PROTO_GetFieldsCounters done [20:20:19]requested_item shift.num is exist - process it [20:20:19]requested_item shift.opened is exist - process it [20:20:19]req_shift_opened [20:20:19]FM_GetShiftState [20:20:19]SAM_PROTO_GetShiftState [20:20:19]wFMCommunicate request_size=4 [20:20:19]MH_SAM_APDU [20:20:19]CAPDU: 80 13 01 00 [20:20:19]Write to MH i2c: E2 08 00 2D 3C 80 13 01 00 00 00 00 00 E6 [20:20:19]Write i2c OK [20:20:19]MH_I2C_Read... [20:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:19]Read from MH i2c: E2 [20:20:19]MH_I2C_Read... [20:20:19]Read from MH i2c: E2 0E 00 [20:20:19]MH_I2C_Read... [20:20:19]Read from MH i2c: E2 0E 00 2D 3C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1C [20:20:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:20:19]wFMCommunicate OK [20:20:19]SAM_PROTO_GetShiftState done [20:20:19]FM_GetShiftState done [20:20:19]req_shift_opened done [20:20:19]requested_item shift.open_date is exist - process it [20:20:19]req_shift_open_date [20:20:19]req_shift_open_date done [20:20:19]produce_requested_data done [20:20:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162933,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [20:20:19]process_action_free close_receipt [20:20:19]json_value_free [20:20:19]json_value_free done [20:20:19]process_json_proto returns [20:20:19]Send response to host [20:20:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162933,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [20:20:19]free response buf [20:20:19]execute_script done [20:20:19]execute_script returns [20:20:19]free content buf [20:20:19]Sock 9.Close socket [20:20:19]Sock 9.Thread stoped [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:05]accept exits with 7 [20:21:05]New connection [20:21:05]New thread 3066879332 created [20:21:05]Thread 3066735972 joined [20:21:05]Waiting for new connection... [20:21:05] Sock 7.Parse request [20:21:05]Sock 7.Check first char [20:21:05]Sock 7.First char is OK [20:21:05]request: POST /json_proto HTTP/1.0 [20:21:05]Method: POST [20:21:05]URL: /json_proto [20:21:05]Method is POST - this is cgi request [20:21:05]url: /json_proto [20:21:05]query_string will be loaded in cgi processing [20:21:05]execute_cgi json_proto POST (null) [20:21:05]execute_cgi path=json_proto method=POST [20:21:05]POST find Content-Length [20:21:05]Host: 172.17.39.67:8080 [20:21:05]Content-Length: 820 [20:21:05]Content-Type: application/json [20:21:05] [20:21:05]POST finish read [20:21:05]Found Content-Length = 820 [20:21:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:05]execute_script... [20:21: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)1319545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:05]POST & json_proto [20:21:05]process_json_proto [20:21:05]json parsed OK: [20:21:05]protocol is kg_v1.0 [20:21:05]action value=close_receipt [20:21:05]process_action close_receipt [20:21:05]cmd_close_receipt [20:21:05]MH_GetDate [20:21:05]Write to MH i2c: F0 00 00 2E 3C 59 [20:21:05]Write i2c OK [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: F0 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: F0 09 00 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: F0 09 00 2E 3C 00 34 33 94 66 B6 85 93 66 F7 [20:21:05]GetLastDocTimeStamp 1720988418 [20:21:05]current date 1720988468 [20:21:05]FM_GetShiftState [20:21:05]SAM_PROTO_GetShiftState [20:21:05]wFMCommunicate request_size=4 [20:21:05]MH_SAM_APDU [20:21:05]CAPDU: 80 13 01 00 [20:21:05]Write to MH i2c: E2 08 00 2F 3C 80 13 01 00 00 00 00 00 E8 [20:21:05]Write i2c OK [20:21:05]MH_I2C_Read... [20:21:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:05]Read from MH i2c: E2 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: E2 0E 00 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: E2 0E 00 2F 3C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1E [20:21:05]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:21:05]wFMCommunicate OK [20:21:05]SAM_PROTO_GetShiftState done [20:21:05]FM_GetShiftState done [20:21:05]opened in 1720915483 [20:21:05]opened+sec_in_day 1721001883 [20:21:05]quantity*price = 100046 [20:21:05]sum+1 = 100048 [20:21:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 246 14.07.2024 20:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162934 ФПД: 139254894151897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202108&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162934&fm=139254894151897&tin=02508201610067®Number=0000000000090858&sum=100047 [20:21:06]StoreToDocumentArchive [20:21:06]shift 463 fd 162934 [20:21:06]save to /storage/0463/doc_00162934 [20:21:06]save last doc name /storage/0463/doc_00162934 to /storage/kkm_last_doc_name [20:21:06]save OK [20:21:06]Clear old archive folders... [20:21:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:06]tlvbuf is 01345FD0 [20:21:06]SAM_PROTO_ClearQueue [20:21:06]wFMCommunicate request_size=4 [20:21:06]MH_SAM_APDU [20:21:06]CAPDU: 80 09 00 00 [20:21:06]Write to MH i2c: E2 08 00 3C 3C 80 09 00 00 00 00 00 00 EA [20:21:06]Write i2c OK [20:21:06]MH_I2C_Read... [20:21:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:06]Read from MH i2c: E2 [20:21:06]MH_I2C_Read... [20:21:06]Read from MH i2c: E2 03 00 [20:21:06]MH_I2C_Read... [20:21:06]Read from MH i2c: E2 03 00 3C 3C 00 90 00 EC [20:21:06]RAPDU: 90 00 [20:21:06]wFMCommunicate OK [20:21:06]SAM_PROTO_ClearQueue done [20:21:06]KKMCreateOFDPacket [20:21:06]OFDProtocolAddRootSTLVToBuf [20:21:06]FM_MakeSignedData [20:21:06]FM_MakeSignedData [20:21:06]SAM_PROTO_SignData [20:21:06]wFMCommunicate request_size=4 [20:21:06]MH_SAM_APDU [20:21:06]CAPDU: 80 0D 01 02 [20:21:06]Write to MH i2c: E2 08 00 3D 3C 80 0D 01 02 00 00 00 00 F2 [20:21:06]Write i2c OK [20:21:06]MH_I2C_Read... [20:21:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:06]Read from MH i2c: E2 [20:21:06]MH_I2C_Read... [20:21:06]Read from MH i2c: E2 03 00 [20:21:06]MH_I2C_Read... [20:21:06]Read from MH i2c: E2 03 00 3D 3C 00 90 00 ED [20:21:06]RAPDU: 90 00 [20:21:06]wFMCommunicate OK [20:21:06]wFMCommunicate request_size=255 [20:21:06]MH_SAM_APDU [20:21: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 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 34 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7C 02 00 35 04 06 00 7E [20:21:06]Write to MH i2c: E2 02 01 3E 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 34 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7C 02 00 35 04 06 00 7E 00 00 F5 [20:21:06]Write i2c OK [20:21:06]MH_I2C_Read... [20:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:06]Read from MH i2c: E2 [20:21:06]MH_I2C_Read... [20:21:06]Read from MH i2c: E2 03 00 [20:21:06]MH_I2C_Read... [20:21:06]Read from MH i2c: E2 03 00 3E 3C 00 90 00 EE [20:21:06]RAPDU: 90 00 [20:21:06]wFMCommunicate OK [20:21:06]wFMCommunicate request_size=10 [20:21:06]MH_SAM_APDU [20:21:06]CAPDU: 80 0D 02 02 05 A6 CE 7F C8 D9 [20:21:06]Write to MH i2c: E2 0D 00 3F 3C 80 0D 02 02 05 00 A6 CE 7F C8 D9 00 00 93 [20:21:06]Write i2c OK [20:21:06]MH_I2C_Read... [20:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:06]Read from MH i2c: E2 [20:21:06]MH_I2C_Read... [20:21:06]Read from MH i2c: E2 03 00 [20:21:06]MH_I2C_Read... [20:21:06]Read from MH i2c: E2 03 00 3F 3C 00 90 00 EF [20:21:06]RAPDU: 90 00 [20:21:06]wFMCommunicate OK [20:21:06]wFMCommunicate request_size=4 [20:21:06]MH_SAM_APDU [20:21:06]CAPDU: 80 0D 03 02 [20:21:06]Write to MH i2c: E2 08 00 40 3C 80 0D 03 02 00 00 00 00 F7 [20:21:06]Write i2c OK [20:21:06]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 0B 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 0B 00 40 3C 00 63 FC D0 13 15 A6 D1 E5 90 00 AB [20:21:07]RAPDU: 63 FC D0 13 15 A6 D1 E5 90 00 [20:21:07]wFMCommunicate OK [20:21:07]SAM_PROTO_SignData done [20:21:07]FM_MakeSignedData done [20:21:07]CreateOFDProtocolMessage [20:21:07]wFMCommunicate request_size=4 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 11 00 00 [20:21:07]Write to MH i2c: E2 08 00 41 3C 80 11 00 00 00 00 00 00 F7 [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 17 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 17 00 41 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 57 [20:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:21:07]wFMCommunicate OK [20:21:07]CreateOFDProtocolMessage done [20:21:07]OFDSenderStorePacket 162934 [20:21:07]StoreOFDPacket docnum=162934 [20:21:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 7D 41 07 01 18 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 34 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7C 02 00 35 04 06 00 7E A6 CE 7F C8 D9 63 FC D0 13 15 A6 D1 E5 [20:21:07]CheckFolder [20:21:07]dirname=/storage/ofd_packets [20:21:07]CheckFolder done [20:21:07]ProducePacketName [20:21:07]name=ofd_packets/00162934 [20:21:07]NVStorageSaveData ofd_packets/00162934 [20:21:07]File name is /storage/ofd_packets/00162934 [20:21:07]Write 301 bytes [20:21:07]NVStorageSaveData done [20:21:07]OFDSenderStorePacket done [20:21:07]KKMCreateOFDPacket done [20:21:07]NVStorageSaveData kkm_last_timestamp [20:21:07]File name is /storage/kkm_last_timestamp [20:21:07]Write 4 bytes [20:21:07]NVStorageSaveData done [20:21:07]ExternCall_PrintAddStr [20:21:07]wPrintStart [20:21:07]Write to MH i2c: 01 00 00 42 3C 7E [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: 01 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: 01 07 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: 01 07 00 42 3C 00 00 00 00 00 FF 0F 93 [20:21:07]RasterBufferAndPrint [20:21:07]line Счет N : (1)1319545 [20:21:07]line ИНН: 02508201610067 [20:21:07]line Контрольно-Кассовый Чек [20:21:07]line ПРОДАЖА [20:21:07]line ТРК (МРК, ГНК) : 33 [20:21:07]line Товар: 2710124130 [20:21:07]line Аи-92-К-5 [20:21:07]line 15.090 * 66.30 [20:21:07]line = 1000.47 [20:21:07]line НДС 12% НСП 1% [20:21:07]line > о реализуемом товаре [20:21:07]line ИТОГО: 1000.47 [20:21:07]line НСП 1% : 8.85 [20:21:07]line НДС 12% : 106.24 [20:21:07]line Наличными: 0.00 [20:21:07]line Безнал.: 1000.47 [20:21:07]line Место: АЗС № 140 "Партнер Нефть" [20:21:07]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:21:07]line СНО: Общий режим [20:21:07]line Чек 246 14.07.2024 20:21 [20:21:07]line Смена: 463 ФФД: 1.0 [20:21:07]line ЗНМ: 0300000129 [20:21:07]line РНМ: 0000000000090858 [20:21:07]line Версия ККМ: 001 [20:21:07]line Платежная система: Бакай Банк [20:21:07]line ФМ: 0000000000874899 [20:21:07]line ФД: 162934 [20:21:07]line ФПД: 139254894151897 [20:21:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202108&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162934&fm=139254894151897&tin=02508201610067®Number=0000000000090858&sum=100047 [20:21:07]written 0, free lines is 4095 [20:21:07]OFD Sender: Processing packet 162934 [packets to send 106, broken 105] [20:21:07]ProducePacketName [20:21:07]name=ofd_packets/00162934 [20:21:07]OFD Sender: To server: pG, [20:21:07]CommunicateWithHost lk.salyk.kg:30040 [20:21:07]ConnectInit lk.salyk.kg [20:21:07]Connected sock=9 [20:21:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 7D 41 07 01 18 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 34 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7C 02 00 35 04 06 00 7E A6 CE 7F C8 D9 63 FC D0 13 15 A6 D1 E5 [20:21:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 27 2B 47 00 28 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7C 02 00 F4 03 04 00 40 DF 93 66 B6 04 01 00 00 83 F2 D3 53 96 D9 88 D6 [20:21:07]CommunicateWithHost err = 0 [20:21:07]CheckOFDResponse [20:21:07]1017 (14) - 77093643461234 [20:21:07]1041 (16) - 0000000000874899 [20:21:07]1040 (4) - 162934 [20:21:07]1012 (4) - 14.07.2024 14:22 [20:21:07]1206 (1) - 0 [20:21:07]OFD Sender: Remove packet 162934 [20:21:07]ProducePacketName [20:21:07]name=ofd_packets/00162934 [20:21:07]NVStorageDeleteData [20:21:07]Write to MH i2c: 01 00 00 6C 3C A8 [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: 01 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: 01 07 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: 01 07 00 6C 3C 00 00 00 00 00 E6 0C A1 [20:21:07]RasterBufferAndPrint [20:21:07]line [20:21:07]line [20:21:07]line [20:21:07]line [20:21:07]line [20:21:07]written 0, free lines is 3310 [20:21:07]MH_Cut [20:21:07]Write to MH i2c: D1 01 00 73 3C 01 81 [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: D1 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: D1 01 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: D1 01 00 73 3C 00 80 [20:21:07]Write to MH i2c: 01 00 00 74 3C B0 [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:08]OFD Sender: No OFD packet to send [20:21:08]*** Cut start [20:21:08]*** Purtial cut [20:21:08]*** CUTSNS_PIN = 0 [20:21:08]*** Stage 1: CUTSNS_PIN = 1 [20:21:10]Read from MH i2c: 01 [20:21:10]MH_I2C_Read... [20:21:10]*** Stop cut motor [20:21:10]*** Cut end [20:21:10]Read from MH i2c: 01 07 00 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: 01 07 00 74 3C 00 00 00 00 00 FF 0F C5 [20:21:10]process_action close_receipt done [20:21:10]requested_data is exist [20:21:10]produce_requested_data [20:21:10]requested_item fm.sn is exist - process it [20:21:10]wFMCommunicate request_size=4 [20:21:10]MH_SAM_APDU [20:21:10]CAPDU: 80 11 00 00 [20:21:10]Write to MH i2c: E2 08 00 75 3C 80 11 00 00 00 00 00 00 2B [20:21:10]Write i2c OK [20:21:10]MH_I2C_Read... [20:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:10]Read from MH i2c: E2 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: E2 17 00 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: E2 17 00 75 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8B [20:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:21:10]wFMCommunicate OK [20:21:10]requested_item fd.num is exist - process it [20:21:10]SAM_PROTO_GetFieldsCounters [20:21:10]wFMCommunicate request_size=4 [20:21:10]MH_SAM_APDU [20:21:10]CAPDU: 80 13 00 00 [20:21:10]Write to MH i2c: E2 08 00 76 3C 80 13 00 00 00 00 00 00 2E [20:21:10]Write i2c OK [20:21:10]MH_I2C_Read... [20:21:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:10]Read from MH i2c: E2 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: E2 62 00 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: E2 62 00 76 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 76 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [20:21:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 76 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:10]wFMCommunicate OK [20:21:10]SAM_PROTO_GetFieldsCounters done [20:21:10]requested_item shift.num is exist - process it [20:21:10]requested_item shift.opened is exist - process it [20:21:10]req_shift_opened [20:21:10]FM_GetShiftState [20:21:10]SAM_PROTO_GetShiftState [20:21:10]wFMCommunicate request_size=4 [20:21:10]MH_SAM_APDU [20:21:10]CAPDU: 80 13 01 00 [20:21:10]Write to MH i2c: E2 08 00 77 3C 80 13 01 00 00 00 00 00 30 [20:21:10]Write i2c OK [20:21:10]MH_I2C_Read... [20:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:10]Read from MH i2c: E2 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: E2 0E 00 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: E2 0E 00 77 3C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 66 [20:21:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:21:10]wFMCommunicate OK [20:21:10]SAM_PROTO_GetShiftState done [20:21:10]FM_GetShiftState done [20:21:10]req_shift_opened done [20:21:10]requested_item shift.open_date is exist - process it [20:21:10]req_shift_open_date [20:21:10]req_shift_open_date done [20:21:10]produce_requested_data done [20:21:10]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162934,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [20:21:10]process_action_free close_receipt [20:21:10]json_value_free [20:21:10]json_value_free done [20:21:10]process_json_proto returns [20:21:10]Send response to host [20:21:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162934,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [20:21:10]free response buf [20:21:10]execute_script done [20:21:10]execute_script returns [20:21:10]free content buf [20:21:10]Sock 7.Close socket [20:21:10]Sock 7.Thread stoped [20:21:13]OFD Sender: No OFD packet to send [20:21:13]accept exits with 10 [20:21:13]New connection [20:21:13]New thread 3066735972 created [20:21:13]Thread 3066879332 joined [20:21:13]Waiting for new connection... [20:21:13] Sock 10.Parse request [20:21:13]Sock 10.Check first char [20:21:13]Sock 10.First char is OK [20:21:13]request: POST /json_proto HTTP/1.0 [20:21:13]Method: POST [20:21:13]URL: /json_proto [20:21:13]Method is POST - this is cgi request [20:21:13]url: /json_proto [20:21:13]query_string will be loaded in cgi processing [20:21:13]execute_cgi json_proto POST (null) [20:21:13]execute_cgi path=json_proto method=POST [20:21:13]POST find Content-Length [20:21:13]Host: 172.17.39.67:8080 [20:21:13]Content-Length: 676 [20:21:13]Content-Type: application/json [20:21:13] [20:21:13]POST finish read [20:21:13]Found Content-Length = 676 [20:21:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "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" ] } } [20:21:13]execute_script... [20:21: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)1319546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "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" ] } } [20:21:13]POST & json_proto [20:21:13]process_json_proto [20:21:13]json parsed OK: [20:21:13]protocol is kg_v1.0 [20:21:13]action value=close_receipt [20:21:13]process_action close_receipt [20:21:13]cmd_close_receipt [20:21:13]MH_GetDate [20:21:13]Write to MH i2c: F0 00 00 78 3C A3 [20:21:13]Write i2c OK [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: F0 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: F0 09 00 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: F0 09 00 78 3C 00 3C 33 94 66 B6 85 93 66 49 [20:21:13]GetLastDocTimeStamp 1720988468 [20:21:13]current date 1720988476 [20:21:13]FM_GetShiftState [20:21:13]SAM_PROTO_GetShiftState [20:21:13]wFMCommunicate request_size=4 [20:21:13]MH_SAM_APDU [20:21:13]CAPDU: 80 13 01 00 [20:21:13]Write to MH i2c: E2 08 00 79 3C 80 13 01 00 00 00 00 00 32 [20:21:13]Write i2c OK [20:21:13]MH_I2C_Read... [20:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:14]Read from MH i2c: E2 [20:21:14]MH_I2C_Read... [20:21:14]Read from MH i2c: E2 0E 00 [20:21:14]MH_I2C_Read... [20:21:14]Read from MH i2c: E2 0E 00 79 3C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 68 [20:21:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:21:14]wFMCommunicate OK [20:21:14]SAM_PROTO_GetShiftState done [20:21:14]FM_GetShiftState done [20:21:14]opened in 1720915483 [20:21:14]opened+sec_in_day 1721001883 [20:21:14]quantity*price = 100007 [20:21:14]sum+1 = 100009 [20:21:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 247 14.07.2024 20:21 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162935 ФПД: 205454244038646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202116&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162935&fm=205454244038646&tin=02508201610067®Number=0000000000090858&sum=100000 [20:21:15]StoreToDocumentArchive [20:21:15]shift 463 fd 162935 [20:21:15]save to /storage/0463/doc_00162935 [20:21:15]save last doc name /storage/0463/doc_00162935 to /storage/kkm_last_doc_name [20:21:15]save OK [20:21:15]Clear old archive folders... [20:21:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:21:15]tlvbuf is 012FFA70 [20:21:15]SAM_PROTO_ClearQueue [20:21:15]wFMCommunicate request_size=4 [20:21:15]MH_SAM_APDU [20:21:15]CAPDU: 80 09 00 00 [20:21:15]Write to MH i2c: E2 08 00 86 3C 80 09 00 00 00 00 00 00 34 [20:21:15]Write i2c OK [20:21:15]MH_I2C_Read... [20:21:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:15]Read from MH i2c: E2 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 03 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 03 00 86 3C 00 90 00 36 [20:21:15]RAPDU: 90 00 [20:21:15]wFMCommunicate OK [20:21:15]SAM_PROTO_ClearQueue done [20:21:15]KKMCreateOFDPacket [20:21:15]OFDProtocolAddRootSTLVToBuf [20:21:15]FM_MakeSignedData [20:21:15]FM_MakeSignedData [20:21:15]SAM_PROTO_SignData [20:21:15]wFMCommunicate request_size=4 [20:21:15]MH_SAM_APDU [20:21:15]CAPDU: 80 0D 01 02 [20:21:15]Write to MH i2c: E2 08 00 87 3C 80 0D 01 02 00 00 00 00 3C [20:21:15]Write i2c OK [20:21:15]MH_I2C_Read... [20:21:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:15]Read from MH i2c: E2 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 03 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 03 00 87 3C 00 90 00 37 [20:21:15]RAPDU: 90 00 [20:21:15]wFMCommunicate OK [20:21:15]wFMCommunicate request_size=255 [20:21:15]MH_SAM_APDU [20:21:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 F7 00 00 00 F4 03 04 00 3C 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7C 02 00 35 04 06 00 [20:21:15]Write to MH i2c: E2 02 01 88 3C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 F7 00 00 00 F4 03 04 00 3C 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7C 02 00 35 04 06 00 00 00 EB [20:21:15]Write i2c OK [20:21:15]MH_I2C_Read... [20:21:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:15]Read from MH i2c: E2 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 03 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 03 00 88 3C 00 90 00 38 [20:21:15]RAPDU: 90 00 [20:21:15]wFMCommunicate OK [20:21:15]wFMCommunicate request_size=11 [20:21:15]MH_SAM_APDU [20:21:15]CAPDU: 80 0D 02 02 06 BA DC 0B 3B C7 F6 [20:21:15]Write to MH i2c: E2 0E 00 89 3C 80 0D 02 02 06 00 BA DC 0B 3B C7 F6 00 00 E4 [20:21:15]Write i2c OK [20:21:15]MH_I2C_Read... [20:21:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:15]Read from MH i2c: E2 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 03 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 03 00 89 3C 00 90 00 39 [20:21:15]RAPDU: 90 00 [20:21:15]wFMCommunicate OK [20:21:15]wFMCommunicate request_size=4 [20:21:15]MH_SAM_APDU [20:21:15]CAPDU: 80 0D 03 02 [20:21:15]Write to MH i2c: E2 08 00 8A 3C 80 0D 03 02 00 00 00 00 41 [20:21:15]Write i2c OK [20:21:15]MH_I2C_Read... [20:21:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:15]Read from MH i2c: E2 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 0B 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 0B 00 8A 3C 00 BA 7F F2 BB B3 68 76 DF 90 00 98 [20:21:15]RAPDU: BA 7F F2 BB B3 68 76 DF 90 00 [20:21:15]wFMCommunicate OK [20:21:15]SAM_PROTO_SignData done [20:21:15]FM_MakeSignedData done [20:21:15]CreateOFDProtocolMessage [20:21:15]wFMCommunicate request_size=4 [20:21:15]MH_SAM_APDU [20:21:15]CAPDU: 80 11 00 00 [20:21:15]Write to MH i2c: E2 08 00 8B 3C 80 11 00 00 00 00 00 00 41 [20:21:15]Write i2c OK [20:21:15]MH_I2C_Read... [20:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:15]Read from MH i2c: E2 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 17 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 17 00 8B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A1 [20:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:21:15]wFMCommunicate OK [20:21:15]CreateOFDProtocolMessage done [20:21:15]OFDSenderStorePacket 162935 [20:21:15]StoreOFDPacket docnum=162935 [20:21:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B6 27 08 01 15 FA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 F7 00 00 00 F4 03 04 00 3C 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7C 02 00 35 04 06 00 BA DC 0B 3B C7 F6 BA 7F F2 BB B3 68 76 DF [20:21:15]CheckFolder [20:21:15]dirname=/storage/ofd_packets [20:21:15]CheckFolder done [20:21:15]ProducePacketName [20:21:15]name=ofd_packets/00162935 [20:21:15]NVStorageSaveData ofd_packets/00162935 [20:21:15]File name is /storage/ofd_packets/00162935 [20:21:15]Write 302 bytes [20:21:15]NVStorageSaveData done [20:21:15]OFDSenderStorePacket done [20:21:15]KKMCreateOFDPacket done [20:21:15]NVStorageSaveData kkm_last_timestamp [20:21:15]File name is /storage/kkm_last_timestamp [20:21:15]Write 4 bytes [20:21:15]NVStorageSaveData done [20:21:15]ExternCall_PrintAddStr [20:21:15]wPrintStart [20:21:15]Write to MH i2c: 01 00 00 8C 3C C8 [20:21:15]Write i2c OK [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: 01 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: 01 07 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: 01 07 00 8C 3C 00 00 00 00 00 FF 0F DD [20:21:15]RasterBufferAndPrint [20:21:15]line Счет N : (1)1319546 [20:21:15]line ИНН: 02508201610067 [20:21:15]line Контрольно-Кассовый Чек [20:21:15]line ПРОДАЖА [20:21:15]line ТРК (МРК, ГНК) : 52 [20:21:15]line Товар: 2710124130 [20:21:15]line Super-92-К-5 [20:21:15]line 14.860 * 67.30 [20:21:15]line = 1000.08 [20:21:15]line НДС 12% НСП 1% [20:21:15]line > о реализуемом товаре [20:21:15]line ОКРУГЛЕНИЕ: -0.08 [20:21:15]line ИТОГО: 1000.00 [20:21:15]line Внесено: 1000.00 [20:21:15]line СДАЧА: 0.00 [20:21:15]line НСП 1% : 8.85 [20:21:15]line НДС 12% : 106.20 [20:21:15]line Наличными: 1000.00 [20:21:15]line Безнал.: 0.00 [20:21:15]line Место: АЗС № 140 "Партнер Нефть" [20:21:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:21:15]line СНО: Общий режим [20:21:15]line Чек 247 14.07.2024 20:21 [20:21:15]line Смена: 463 ФФД: 1.0 [20:21:15]line ЗНМ: 0300000129 [20:21:15]line РНМ: 0000000000090858 [20:21:15]line Версия ККМ: 001 [20:21:15]line ФМ: 0000000000874899 [20:21:15]line ФД: 162935 [20:21:15]line ФПД: 205454244038646 [20:21:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202116&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162935&fm=205454244038646&tin=02508201610067®Number=0000000000090858&sum=100000 [20:21:15]OFD Sender: Processing packet 162935 [packets to send 106, broken 105] [20:21:15]ProducePacketName [20:21:15]name=ofd_packets/00162935 [20:21:15]OFD Sender: To server: pG, [20:21:15]CommunicateWithHost lk.salyk.kg:30040 [20:21:15]ConnectInit lk.salyk.kg [20:21:15]written 0, free lines is 4095 [20:21:15]Connected sock=11 [20:21:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B6 27 08 01 15 FA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 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 F7 00 00 00 F4 03 04 00 3C 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7C 02 00 35 04 06 00 BA DC 0B 3B C7 F6 BA 7F F2 BB B3 68 76 DF [20:21:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 92 94 47 00 75 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7C 02 00 F4 03 04 00 49 DF 93 66 B6 04 01 00 00 33 E3 2B 02 F0 7C BE A4 [20:21:16]CommunicateWithHost err = 0 [20:21:16]CheckOFDResponse [20:21:16]1017 (14) - 77093643461234 [20:21:16]1041 (16) - 0000000000874899 [20:21:16]1040 (4) - 162935 [20:21:16]1012 (4) - 14.07.2024 14:23 [20:21:16]1206 (1) - 0 [20:21:16]OFD Sender: Remove packet 162935 [20:21:16]ProducePacketName [20:21:16]name=ofd_packets/00162935 [20:21:16]NVStorageDeleteData [20:21:16]Write to MH i2c: 01 00 00 B7 3C F3 [20:21:16]Write i2c OK [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: 01 [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: 01 07 00 [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: 01 07 00 B7 3C 00 00 00 00 00 F5 0C FB [20:21:16]RasterBufferAndPrint [20:21:16]line [20:21:16]line [20:21:16]line [20:21:16]line [20:21:16]line [20:21:16]written 0, free lines is 3325 [20:21:16]MH_Cut [20:21:16]Write to MH i2c: D1 01 00 BE 3C 01 CC [20:21:16]Write i2c OK [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: D1 [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: D1 01 00 [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: D1 01 00 BE 3C 00 CB [20:21:16]Write to MH i2c: 01 00 00 BF 3C FB [20:21:16]Write i2c OK [20:21:16]MH_I2C_Read... [20:21:16]OFD Sender: No OFD packet to send [20:21:16]*** Cut start [20:21:16]*** Purtial cut [20:21:17]*** Stage 1: CUTSNS_PIN = 1 [20:21:17]Read from MH i2c: 01 [20:21:17]MH_I2C_Read... [20:21:17]*** Stop cut motor [20:21:17]*** Cut end [20:21:17]Read from MH i2c: 01 07 00 [20:21:17]MH_I2C_Read... [20:21:17]Read from MH i2c: 01 07 00 BF 3C 00 00 00 00 00 FF 0F 10 [20:21:17]process_action close_receipt done [20:21:17]requested_data is exist [20:21:17]produce_requested_data [20:21:17]requested_item fm.sn is exist - process it [20:21:17]wFMCommunicate request_size=4 [20:21:17]MH_SAM_APDU [20:21:17]CAPDU: 80 11 00 00 [20:21:17]Write to MH i2c: E2 08 00 C0 3C 80 11 00 00 00 00 00 00 76 [20:21:17]Write i2c OK [20:21:17]MH_I2C_Read... [20:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:17]Read from MH i2c: E2 [20:21:17]MH_I2C_Read... [20:21:17]Read from MH i2c: E2 17 00 [20:21:17]MH_I2C_Read... [20:21:17]Read from MH i2c: E2 17 00 C0 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D6 [20:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:21:17]wFMCommunicate OK [20:21:17]requested_item fd.num is exist - process it [20:21:17]SAM_PROTO_GetFieldsCounters [20:21:17]wFMCommunicate request_size=4 [20:21:17]MH_SAM_APDU [20:21:17]CAPDU: 80 13 00 00 [20:21:17]Write to MH i2c: E2 08 00 C1 3C 80 13 00 00 00 00 00 00 79 [20:21:17]Write i2c OK [20:21:17]MH_I2C_Read... [20:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:17]Read from MH i2c: E2 [20:21:17]MH_I2C_Read... [20:21:17]Read from MH i2c: E2 62 00 [20:21:17]MH_I2C_Read... [20:21:17]Read from MH i2c: E2 62 00 C1 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 77 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [20:21:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 77 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:17]wFMCommunicate OK [20:21:17]SAM_PROTO_GetFieldsCounters done [20:21:17]requested_item shift.num is exist - process it [20:21:17]requested_item shift.opened is exist - process it [20:21:17]req_shift_opened [20:21:17]FM_GetShiftState [20:21:17]SAM_PROTO_GetShiftState [20:21:17]wFMCommunicate request_size=4 [20:21:17]MH_SAM_APDU [20:21:17]CAPDU: 80 13 01 00 [20:21:17]Write to MH i2c: E2 08 00 C2 3C 80 13 01 00 00 00 00 00 7B [20:21:17]Write i2c OK [20:21:17]MH_I2C_Read... [20:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:17]Read from MH i2c: E2 [20:21:17]MH_I2C_Read... [20:21:17]Read from MH i2c: E2 0E 00 [20:21:17]MH_I2C_Read... [20:21:17]Read from MH i2c: E2 0E 00 C2 3C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B1 [20:21:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:21:17]wFMCommunicate OK [20:21:17]SAM_PROTO_GetShiftState done [20:21:17]FM_GetShiftState done [20:21:17]req_shift_opened done [20:21:17]requested_item shift.open_date is exist - process it [20:21:17]req_shift_open_date [20:21:17]req_shift_open_date done [20:21:17]produce_requested_data done [20:21:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162935,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [20:21:17]process_action_free close_receipt [20:21:17]json_value_free [20:21:17]json_value_free done [20:21:17]process_json_proto returns [20:21:17]Send response to host [20:21:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162935,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [20:21:17]free response buf [20:21:17]execute_script done [20:21:17]execute_script returns [20:21:17]free content buf [20:21:17]Sock 10.Close socket [20:21:17]Sock 10.Thread stoped [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:47]accept exits with 7 [20:23:47]New connection [20:23:47]New thread 3066879332 created [20:23:47]Thread 3066735972 joined [20:23:47]Waiting for new connection... [20:23:47] Sock 7.Parse request [20:23:47]Sock 7.Check first char [20:23:47]Sock 7.First char is OK [20:23:47]request: POST /json_proto HTTP/1.0 [20:23:47]Method: POST [20:23:47]URL: /json_proto [20:23:47]Method is POST - this is cgi request [20:23:47]url: /json_proto [20:23:47]query_string will be loaded in cgi processing [20:23:47]execute_cgi json_proto POST (null) [20:23:47]execute_cgi path=json_proto method=POST [20:23:47]POST find Content-Length [20:23:47]Host: 172.17.39.67:8080 [20:23:47]Content-Length: 809 [20:23:47]Content-Type: application/json [20:23:47] [20:23:47]POST finish read [20:23:47]Found Content-Length = 809 [20:23:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 99.730, "sum" : 7240.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7240.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:47]execute_script... [20:23: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)1319547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 99.730, "sum" : 7240.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7240.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:47]POST & json_proto [20:23:47]process_json_proto [20:23:47]json parsed OK: [20:23:47]protocol is kg_v1.0 [20:23:47]action value=close_receipt [20:23:47]process_action close_receipt [20:23:47]cmd_close_receipt [20:23:47]MH_GetDate [20:23:47]Write to MH i2c: F0 00 00 C3 3C EE [20:23:47]Write i2c OK [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: F0 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: F0 09 00 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: F0 09 00 C3 3C 00 D5 33 94 66 B6 85 93 66 2D [20:23:47]GetLastDocTimeStamp 1720988476 [20:23:47]current date 1720988629 [20:23:47]FM_GetShiftState [20:23:47]SAM_PROTO_GetShiftState [20:23:47]wFMCommunicate request_size=4 [20:23:47]MH_SAM_APDU [20:23:47]CAPDU: 80 13 01 00 [20:23:47]Write to MH i2c: E2 08 00 C4 3C 80 13 01 00 00 00 00 00 7D [20:23:47]Write i2c OK [20:23:47]MH_I2C_Read... [20:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:47]Read from MH i2c: E2 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: E2 0E 00 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: E2 0E 00 C4 3C 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B3 [20:23:47]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:23:47]wFMCommunicate OK [20:23:47]SAM_PROTO_GetShiftState done [20:23:47]FM_GetShiftState done [20:23:47]opened in 1720915483 [20:23:47]opened+sec_in_day 1721001883 [20:23:47]quantity*price = 724039 [20:23:47]sum+1 = 724041 [20:23:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7240.40 НСП 1% : 64.07 НДС 12% : 768.89 Наличными: 0.00 Безнал.: 7240.40 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 248 14.07.2024 20:23 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162936 ФПД: 142206182101173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202349&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162936&fm=142206182101173&tin=02508201610067®Number=0000000000090858&sum=724040 [20:23:48]StoreToDocumentArchive [20:23:48]shift 463 fd 162936 [20:23:48]save to /storage/0463/doc_00162936 [20:23:48]save last doc name /storage/0463/doc_00162936 to /storage/kkm_last_doc_name [20:23:48]save OK [20:23:48]Clear old archive folders... [20:23:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:23:48]tlvbuf is 0123B330 [20:23:48]SAM_PROTO_ClearQueue [20:23:48]wFMCommunicate request_size=4 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 09 00 00 [20:23:48]Write to MH i2c: E2 08 00 D1 3C 80 09 00 00 00 00 00 00 7F [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 D1 3C 00 90 00 81 [20:23:48]RAPDU: 90 00 [20:23:48]wFMCommunicate OK [20:23:48]SAM_PROTO_ClearQueue done [20:23:48]KKMCreateOFDPacket [20:23:48]OFDProtocolAddRootSTLVToBuf [20:23:48]FM_MakeSignedData [20:23:48]FM_MakeSignedData [20:23:48]SAM_PROTO_SignData [20:23:48]wFMCommunicate request_size=4 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 0D 01 02 [20:23:48]Write to MH i2c: E2 08 00 D2 3C 80 0D 01 02 00 00 00 00 87 [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 D2 3C 00 90 00 82 [20:23:48]RAPDU: 90 00 [20:23:48]wFMCommunicate OK [20:23:48]wFMCommunicate request_size=255 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 92 85 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 48 0C 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0C 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 2C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 0C 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 D5 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7C 02 00 35 04 06 00 [20:23:48]Write to MH i2c: E2 02 01 D3 3C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 92 85 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 48 0C 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0C 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 2C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 0C 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 D5 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7C 02 00 35 04 06 00 00 00 F1 [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 D3 3C 00 90 00 83 [20:23:48]RAPDU: 90 00 [20:23:48]wFMCommunicate OK [20:23:48]wFMCommunicate request_size=11 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 0D 02 02 06 81 55 F4 F8 10 B5 [20:23:48]Write to MH i2c: E2 0E 00 D4 3C 80 0D 02 02 06 00 81 55 F4 F8 10 B5 00 00 1D [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 03 00 D4 3C 00 90 00 84 [20:23:48]RAPDU: 90 00 [20:23:48]wFMCommunicate OK [20:23:48]wFMCommunicate request_size=4 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 0D 03 02 [20:23:48]Write to MH i2c: E2 08 00 D5 3C 80 0D 03 02 00 00 00 00 8C [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 0B 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 0B 00 D5 3C 00 C1 29 BA 71 EE 8D F5 C0 90 00 D2 [20:23:48]RAPDU: C1 29 BA 71 EE 8D F5 C0 90 00 [20:23:48]wFMCommunicate OK [20:23:48]SAM_PROTO_SignData done [20:23:48]FM_MakeSignedData done [20:23:48]CreateOFDProtocolMessage [20:23:48]wFMCommunicate request_size=4 [20:23:48]MH_SAM_APDU [20:23:48]CAPDU: 80 11 00 00 [20:23:48]Write to MH i2c: E2 08 00 D6 3C 80 11 00 00 00 00 00 00 8C [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:48]Read from MH i2c: E2 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 17 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: E2 17 00 D6 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EC [20:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:23:48]wFMCommunicate OK [20:23:48]CreateOFDProtocolMessage done [20:23:48]OFDSenderStorePacket 162936 [20:23:48]StoreOFDPacket docnum=162936 [20:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 03 76 08 01 AD AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 92 85 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 48 0C 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0C 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 2C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 0C 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 D5 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7C 02 00 35 04 06 00 81 55 F4 F8 10 B5 C1 29 BA 71 EE 8D F5 C0 [20:23:48]CheckFolder [20:23:48]dirname=/storage/ofd_packets [20:23:48]CheckFolder done [20:23:48]ProducePacketName [20:23:48]name=ofd_packets/00162936 [20:23:48]NVStorageSaveData ofd_packets/00162936 [20:23:48]File name is /storage/ofd_packets/00162936 [20:23:48]Write 302 bytes [20:23:48]NVStorageSaveData done [20:23:48]OFDSenderStorePacket done [20:23:48]KKMCreateOFDPacket done [20:23:48]NVStorageSaveData kkm_last_timestamp [20:23:48]File name is /storage/kkm_last_timestamp [20:23:48]Write 4 bytes [20:23:48]NVStorageSaveData done [20:23:48]ExternCall_PrintAddStr [20:23:48]wPrintStart [20:23:48]Write to MH i2c: 01 00 00 D7 3C 13 [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 07 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 07 00 D7 3C 00 00 00 00 00 FF 0F 28 [20:23:48]RasterBufferAndPrint [20:23:48]line Счет N : (1)1319547 [20:23:48]line ИНН: 02508201610067 [20:23:48]line Контрольно-Кассовый Чек [20:23:48]line ПРОДАЖА [20:23:48]line ТРК (МРК, ГНК) : 61 [20:23:48]line Товар: 2710194210 [20:23:48]line ДТ(л)-К-5 [20:23:48]line 99.730 * 72.60 [20:23:48]line = 7240.40 [20:23:48]line НДС 12% НСП 1% [20:23:48]line > о реализуемом товаре [20:23:48]line ИТОГО: 7240.40 [20:23:48]line НСП 1% : 64.07 [20:23:48]line НДС 12% : 768.89 [20:23:48]line Наличными: 0.00 [20:23:48]line Безнал.: 7240.40 [20:23:48]line Место: АЗС № 140 "Партнер Нефть" [20:23:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:23:48]line СНО: Общий режим [20:23:48]line Чек 248 14.07.2024 20:23 [20:23:48]line Смена: 463 ФФД: 1.0 [20:23:48]line ЗНМ: 0300000129 [20:23:48]line РНМ: 0000000000090858 [20:23:48]line Версия ККМ: 001 [20:23:48]line Платежная система: O! деньги [20:23:48]line ФМ: 0000000000874899 [20:23:48]line ФД: 162936 [20:23:48]line ФПД: 142206182101173 [20:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T202349&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162936&fm=142206182101173&tin=02508201610067®Number=0000000000090858&sum=724040 [20:23:49]written 0, free lines is 4095 [20:23:49]OFD Sender: Processing packet 162936 [packets to send 106, broken 105] [20:23:49]ProducePacketName [20:23:49]name=ofd_packets/00162936 [20:23:49]OFD Sender: To server: pG, [20:23:49]CommunicateWithHost lk.salyk.kg:30040 [20:23:49]ConnectInit lk.salyk.kg [20:23:49]Connected sock=10 [20:23:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 03 76 08 01 AD AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 92 85 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 48 0C 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 0C 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 2C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 0C 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 D5 33 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7C 02 00 35 04 06 00 81 55 F4 F8 10 B5 C1 29 BA 71 EE 8D F5 C0 [20:23:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 1F 86 47 00 2D B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7C 02 00 F4 03 04 00 E2 DF 93 66 B6 04 01 00 00 47 26 97 27 43 8D D8 7E [20:23:49]CommunicateWithHost err = 0 [20:23:49]CheckOFDResponse [20:23:49]1017 (14) - 77093643461234 [20:23:49]1041 (16) - 0000000000874899 [20:23:49]1040 (4) - 162936 [20:23:49]1012 (4) - 14.07.2024 14:25 [20:23:49]1206 (1) - 0 [20:23:49]OFD Sender: Remove packet 162936 [20:23:49]ProducePacketName [20:23:49]name=ofd_packets/00162936 [20:23:49]NVStorageDeleteData [20:23:49]Write to MH i2c: 01 00 00 01 3D 3E [20:23:49]Write i2c OK [20:23:49]MH_I2C_Read... [20:23:49]Read from MH i2c: 01 [20:23:49]MH_I2C_Read... [20:23:49]Read from MH i2c: 01 07 00 [20:23:49]MH_I2C_Read... [20:23:49]Read from MH i2c: 01 07 00 01 3D 00 00 00 00 00 EA 0C 3B [20:23:49]RasterBufferAndPrint [20:23:49]line [20:23:49]line [20:23:49]line [20:23:49]line [20:23:49]line [20:23:49]written 0, free lines is 3311 [20:23:49]MH_Cut [20:23:49]Write to MH i2c: D1 01 00 08 3D 01 17 [20:23:49]Write i2c OK [20:23:49]MH_I2C_Read... [20:23:49]Read from MH i2c: D1 [20:23:49]MH_I2C_Read... [20:23:49]Read from MH i2c: D1 01 00 [20:23:49]MH_I2C_Read... [20:23:49]Read from MH i2c: D1 01 00 08 3D 00 16 [20:23:49]Write to MH i2c: 01 00 00 09 3D 46 [20:23:49]Write i2c OK [20:23:49]MH_I2C_Read... [20:23:49]OFD Sender: No OFD packet to send [20:23:50]*** Cut start [20:23:50]*** Purtial cut [20:23:50]*** CUTSNS_PIN = 0 [20:23:50]*** Stage 1: CUTSNS_PIN = 1 [20:23:52]Read from MH i2c: 01 [20:23:52]MH_I2C_Read... [20:23:52]*** Stop cut motor [20:23:52]*** Cut end [20:23:52]Read from MH i2c: 01 07 00 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: 01 07 00 09 3D 00 00 00 00 00 FF 0F 5B [20:23:52]process_action close_receipt done [20:23:52]requested_data is exist [20:23:52]produce_requested_data [20:23:52]requested_item fm.sn is exist - process it [20:23:52]wFMCommunicate request_size=4 [20:23:52]MH_SAM_APDU [20:23:52]CAPDU: 80 11 00 00 [20:23:52]Write to MH i2c: E2 08 00 0A 3D 80 11 00 00 00 00 00 00 C1 [20:23:52]Write i2c OK [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 [20:23:52]MH_I2C_Read... [20:23:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:52]Read from MH i2c: E2 17 00 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 17 00 0A 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 21 [20:23:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:23:52]wFMCommunicate OK [20:23:52]requested_item fd.num is exist - process it [20:23:52]SAM_PROTO_GetFieldsCounters [20:23:52]wFMCommunicate request_size=4 [20:23:52]MH_SAM_APDU [20:23:52]CAPDU: 80 13 00 00 [20:23:52]Write to MH i2c: E2 08 00 0B 3D 80 13 00 00 00 00 00 00 C4 [20:23:52]Write i2c OK [20:23:52]MH_I2C_Read... [20:23:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:52]Read from MH i2c: E2 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 62 00 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 62 00 0B 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 78 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [20:23:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 78 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:52]wFMCommunicate OK [20:23:52]SAM_PROTO_GetFieldsCounters done [20:23:52]requested_item shift.num is exist - process it [20:23:52]requested_item shift.opened is exist - process it [20:23:52]req_shift_opened [20:23:52]FM_GetShiftState [20:23:52]SAM_PROTO_GetShiftState [20:23:52]wFMCommunicate request_size=4 [20:23:52]MH_SAM_APDU [20:23:52]CAPDU: 80 13 01 00 [20:23:52]Write to MH i2c: E2 08 00 0C 3D 80 13 01 00 00 00 00 00 C6 [20:23:52]Write i2c OK [20:23:52]MH_I2C_Read... [20:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:52]Read from MH i2c: E2 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 0E 00 [20:23:52]MH_I2C_Read... [20:23:52]Read from MH i2c: E2 0E 00 0C 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 FC [20:23:52]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:23:52]wFMCommunicate OK [20:23:52]SAM_PROTO_GetShiftState done [20:23:52]FM_GetShiftState done [20:23:52]req_shift_opened done [20:23:52]requested_item shift.open_date is exist - process it [20:23:52]req_shift_open_date [20:23:52]req_shift_open_date done [20:23:52]produce_requested_data done [20:23:52]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162936,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [20:23:52]process_action_free close_receipt [20:23:52]json_value_free [20:23:52]json_value_free done [20:23:52]process_json_proto returns [20:23:52]Send response to host [20:23:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162936,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [20:23:52]free response buf [20:23:52]execute_script done [20:23:52]execute_script returns [20:23:52]free content buf [20:23:52]Sock 7.Close socket [20:23:52]Sock 7.Thread stoped [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]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: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:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [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: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:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [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: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:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:04]accept exits with 9 [20:50:04]New connection [20:50:04]New thread 3066735972 created [20:50:04]Thread 3066879332 joined [20:50:04]Waiting for new connection... [20:50:04] Sock 9.Parse request [20:50:04]Sock 9.Check first char [20:50:04]Sock 9.First char is OK [20:50:04]request: POST /json_proto HTTP/1.0 [20:50:04]Method: POST [20:50:04]URL: /json_proto [20:50:04]Method is POST - this is cgi request [20:50:04]url: /json_proto [20:50:04]query_string will be loaded in cgi processing [20:50:04]execute_cgi json_proto POST (null) [20:50:04]execute_cgi path=json_proto method=POST [20:50:04]POST find Content-Length [20:50:04]Host: 172.17.39.67:8080 [20:50:04]Content-Length: 678 [20:50:04]Content-Type: application/json [20:50:04] [20:50:04]POST finish read [20:50:04]Found Content-Length = 678 [20:50:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:50:04]execute_script... [20:50: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)1319548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:50:04]POST & json_proto [20:50:04]process_json_proto [20:50:04]json parsed OK: [20:50:04]protocol is kg_v1.0 [20:50:04]action value=close_receipt [20:50:04]process_action close_receipt [20:50:04]cmd_close_receipt [20:50:04]MH_GetDate [20:50:04]Write to MH i2c: F0 00 00 0D 3D 39 [20:50:04]Write i2c OK [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: F0 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: F0 09 00 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: F0 09 00 0D 3D 00 FF 39 94 66 B6 85 93 66 A8 [20:50:04]GetLastDocTimeStamp 1720988629 [20:50:04]current date 1720990207 [20:50:04]FM_GetShiftState [20:50:04]SAM_PROTO_GetShiftState [20:50:04]wFMCommunicate request_size=4 [20:50:04]MH_SAM_APDU [20:50:04]CAPDU: 80 13 01 00 [20:50:04]Write to MH i2c: E2 08 00 0E 3D 80 13 01 00 00 00 00 00 C8 [20:50:04]Write i2c OK [20:50:04]MH_I2C_Read... [20:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:04]Read from MH i2c: E2 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: E2 0E 00 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: E2 0E 00 0E 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 FE [20:50:04]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:50:04]wFMCommunicate OK [20:50:04]SAM_PROTO_GetShiftState done [20:50:04]FM_GetShiftState done [20:50:04]opened in 1720915483 [20:50:04]opened+sec_in_day 1721001883 [20:50:04]quantity*price = 50056 [20:50:04]sum+1 = 50058 [20:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 249 14.07.2024 20:50 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162937 ФПД: 112833677778709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T205007&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162937&fm=112833677778709&tin=02508201610067®Number=0000000000090858&sum=50000 [20:50:05]StoreToDocumentArchive [20:50:05]shift 463 fd 162937 [20:50:05]save to /storage/0463/doc_00162937 [20:50:05]save last doc name /storage/0463/doc_00162937 to /storage/kkm_last_doc_name [20:50:05]save OK [20:50:05]Clear old archive folders... [20:50:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:50:05]tlvbuf is 01345A50 [20:50:05]SAM_PROTO_ClearQueue [20:50:05]wFMCommunicate request_size=4 [20:50:05]MH_SAM_APDU [20:50:05]CAPDU: 80 09 00 00 [20:50:05]Write to MH i2c: E2 08 00 1B 3D 80 09 00 00 00 00 00 00 CA [20:50:05]Write i2c OK [20:50:05]MH_I2C_Read... [20:50:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:05]Read from MH i2c: E2 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: E2 03 00 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: E2 03 00 1B 3D 00 90 00 CC [20:50:05]RAPDU: 90 00 [20:50:05]wFMCommunicate OK [20:50:05]SAM_PROTO_ClearQueue done [20:50:05]KKMCreateOFDPacket [20:50:05]OFDProtocolAddRootSTLVToBuf [20:50:05]FM_MakeSignedData [20:50:05]FM_MakeSignedData [20:50:05]SAM_PROTO_SignData [20:50:05]wFMCommunicate request_size=4 [20:50:05]MH_SAM_APDU [20:50:05]CAPDU: 80 0D 01 02 [20:50:05]Write to MH i2c: E2 08 00 1C 3D 80 0D 01 02 00 00 00 00 D2 [20:50:05]Write i2c OK [20:50:05]MH_I2C_Read... [20:50:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:05]Read from MH i2c: E2 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: E2 03 00 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: E2 03 00 1C 3D 00 90 00 CD [20:50:05]RAPDU: 90 00 [20:50:05]wFMCommunicate OK [20:50:05]wFMCommunicate request_size=255 [20:50:05]MH_SAM_APDU [20:50:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 F9 00 00 00 F4 03 04 00 FF 39 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7C 02 00 35 04 06 00 66 [20:50:05]Write to MH i2c: E2 02 01 1D 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 F9 00 00 00 F4 03 04 00 FF 39 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7C 02 00 35 04 06 00 66 00 00 E6 [20:50:05]Write i2c OK [20:50:05]MH_I2C_Read... [20:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:05]Read from MH i2c: E2 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: E2 03 00 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: E2 03 00 1D 3D 00 90 00 CE [20:50:05]RAPDU: 90 00 [20:50:05]wFMCommunicate OK [20:50:05]wFMCommunicate request_size=10 [20:50:05]MH_SAM_APDU [20:50:05]CAPDU: 80 0D 02 02 05 9F 23 48 5F 15 [20:50:05]Write to MH i2c: E2 0D 00 1E 3D 80 0D 02 02 05 00 9F 23 48 5F 15 00 00 5D [20:50:05]Write i2c OK [20:50:05]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 03 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 03 00 1E 3D 00 90 00 CF [20:50:06]RAPDU: 90 00 [20:50:06]wFMCommunicate OK [20:50:06]wFMCommunicate request_size=4 [20:50:06]MH_SAM_APDU [20:50:06]CAPDU: 80 0D 03 02 [20:50:06]Write to MH i2c: E2 08 00 1F 3D 80 0D 03 02 00 00 00 00 D7 [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 0B 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 0B 00 1F 3D 00 16 0B 54 67 33 6A DA 99 90 00 C4 [20:50:06]RAPDU: 16 0B 54 67 33 6A DA 99 90 00 [20:50:06]wFMCommunicate OK [20:50:06]SAM_PROTO_SignData done [20:50:06]FM_MakeSignedData done [20:50:06]CreateOFDProtocolMessage [20:50:06]wFMCommunicate request_size=4 [20:50:06]MH_SAM_APDU [20:50:06]CAPDU: 80 11 00 00 [20:50:06]Write to MH i2c: E2 08 00 20 3D 80 11 00 00 00 00 00 00 D7 [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 17 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 17 00 20 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 37 [20:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:50:06]wFMCommunicate OK [20:50:06]CreateOFDProtocolMessage done [20:50:06]OFDSenderStorePacket 162937 [20:50:06]StoreOFDPacket docnum=162937 [20:50:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A1 6E 07 01 E0 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 F9 00 00 00 F4 03 04 00 FF 39 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7C 02 00 35 04 06 00 66 9F 23 48 5F 15 16 0B 54 67 33 6A DA 99 [20:50:06]CheckFolder [20:50:06]dirname=/storage/ofd_packets [20:50:06]CheckFolder done [20:50:06]ProducePacketName [20:50:06]name=ofd_packets/00162937 [20:50:06]NVStorageSaveData ofd_packets/00162937 [20:50:06]File name is /storage/ofd_packets/00162937 [20:50:06]Write 301 bytes [20:50:06]NVStorageSaveData done [20:50:06]OFDSenderStorePacket done [20:50:06]KKMCreateOFDPacket done [20:50:06]NVStorageSaveData kkm_last_timestamp [20:50:06]File name is /storage/kkm_last_timestamp [20:50:06]Write 4 bytes [20:50:06]NVStorageSaveData done [20:50:06]ExternCall_PrintAddStr [20:50:06]wPrintStart [20:50:06]Write to MH i2c: 01 00 00 21 3D 5E [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: 01 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: 01 07 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: 01 07 00 21 3D 00 00 00 00 00 FF 0F 73 [20:50:06]RasterBufferAndPrint [20:50:06]line Счет N : (1)1319548 [20:50:06]line ИНН: 02508201610067 [20:50:06]line Контрольно-Кассовый Чек [20:50:06]line ПРОДАЖА [20:50:06]line ТРК (МРК, ГНК) : 33 [20:50:06]line Товар: 2710124130 [20:50:06]line Аи-92-К-5 [20:50:06]line 7.550 * 66.30 [20:50:06]line = 500.57 [20:50:06]line НДС 12% НСП 1% [20:50:06]line > о реализуемом товаре [20:50:06]line ОКРУГЛЕНИЕ: -0.57 [20:50:06]line ИТОГО: 500.00 [20:50:06]line Внесено: 500.00 [20:50:06]line СДАЧА: 0.00 [20:50:06]line НСП 1% : 4.43 [20:50:06]line НДС 12% : 53.16 [20:50:06]line Наличными: 500.00 [20:50:06]line Безнал.: 0.00 [20:50:06]line Место: АЗС № 140 "Партнер Нефть" [20:50:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:50:06]line СНО: Общий режим [20:50:06]line Чек 249 14.07.2024 20:50 [20:50:06]line Смена: 463 ФФД: 1.0 [20:50:06]line ЗНМ: 0300000129 [20:50:06]line РНМ: 0000000000090858 [20:50:06]line Версия ККМ: 001 [20:50:06]line ФМ: 0000000000874899 [20:50:06]line ФД: 162937 [20:50:06]line ФПД: 112833677778709 [20:50:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T205007&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162937&fm=112833677778709&tin=02508201610067®Number=0000000000090858&sum=50000 [20:50:06]OFD Sender: Processing packet 162937 [packets to send 106, broken 105] [20:50:06]ProducePacketName [20:50:06]name=ofd_packets/00162937 [20:50:06]OFD Sender: To server: pG, [20:50:06]CommunicateWithHost lk.salyk.kg:30040 [20:50:06]ConnectInit lk.salyk.kg [20:50:06]written 0, free lines is 4095 [20:50:06]Connected sock=10 [20:50:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A1 6E 07 01 E0 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 F9 00 00 00 F4 03 04 00 FF 39 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7C 02 00 35 04 06 00 66 9F 23 48 5F 15 16 0B 54 67 33 6A DA 99 [20:50:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4D 0A 47 00 32 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7C 02 00 F4 03 04 00 0B E6 93 66 B6 04 01 00 00 8A 0A D9 50 09 A2 7F FE [20:50:06]CommunicateWithHost err = 0 [20:50:06]CheckOFDResponse [20:50:06]1017 (14) - 77093643461234 [20:50:06]1041 (16) - 0000000000874899 [20:50:06]1040 (4) - 162937 [20:50:06]1012 (4) - 14.07.2024 14:51 [20:50:06]1206 (1) - 0 [20:50:06]OFD Sender: Remove packet 162937 [20:50:06]ProducePacketName [20:50:06]name=ofd_packets/00162937 [20:50:06]NVStorageDeleteData [20:50:06]Write to MH i2c: 01 00 00 4C 3D 89 [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: 01 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: 01 07 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: 01 07 00 4C 3D 00 00 00 00 00 D1 0C 6D [20:50:06]RasterBufferAndPrint [20:50:06]line [20:50:06]line [20:50:06]line [20:50:06]line [20:50:06]line [20:50:06]written 0, free lines is 3287 [20:50:06]MH_Cut [20:50:06]Write to MH i2c: D1 01 00 53 3D 01 62 [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: D1 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: D1 01 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: D1 01 00 53 3D 00 61 [20:50:06]Write to MH i2c: 01 00 00 54 3D 91 [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:07]OFD Sender: No OFD packet to send [20:50:07]*** Cut start [20:50:07]*** Purtial cut [20:50:07]*** Stage 1: CUTSNS_PIN = 1 [20:50:07]Read from MH i2c: 01 [20:50:07]MH_I2C_Read... [20:50:07]*** Stop cut motor [20:50:07]*** Cut end [20:50:07]Read from MH i2c: 01 07 00 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: 01 07 00 54 3D 00 00 00 00 00 FF 0F A6 [20:50:07]process_action close_receipt done [20:50:07]requested_data is exist [20:50:07]produce_requested_data [20:50:07]requested_item fm.sn is exist - process it [20:50:07]wFMCommunicate request_size=4 [20:50:07]MH_SAM_APDU [20:50:07]CAPDU: 80 11 00 00 [20:50:07]Write to MH i2c: E2 08 00 55 3D 80 11 00 00 00 00 00 00 0C [20:50:07]Write i2c OK [20:50:07]MH_I2C_Read... [20:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:07]Read from MH i2c: E2 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: E2 17 00 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: E2 17 00 55 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6C [20:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:50:07]wFMCommunicate OK [20:50:07]requested_item fd.num is exist - process it [20:50:07]SAM_PROTO_GetFieldsCounters [20:50:07]wFMCommunicate request_size=4 [20:50:07]MH_SAM_APDU [20:50:07]CAPDU: 80 13 00 00 [20:50:07]Write to MH i2c: E2 08 00 56 3D 80 13 00 00 00 00 00 00 0F [20:50:07]Write i2c OK [20:50:07]MH_I2C_Read... [20:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:08]Read from MH i2c: E2 [20:50:08]MH_I2C_Read... [20:50:08]Read from MH i2c: E2 62 00 [20:50:08]MH_I2C_Read... [20:50:08]Read from MH i2c: E2 62 00 56 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 79 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [20:50:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 79 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:08]wFMCommunicate OK [20:50:08]SAM_PROTO_GetFieldsCounters done [20:50:08]requested_item shift.num is exist - process it [20:50:08]requested_item shift.opened is exist - process it [20:50:08]req_shift_opened [20:50:08]FM_GetShiftState [20:50:08]SAM_PROTO_GetShiftState [20:50:08]wFMCommunicate request_size=4 [20:50:08]MH_SAM_APDU [20:50:08]CAPDU: 80 13 01 00 [20:50:08]Write to MH i2c: E2 08 00 57 3D 80 13 01 00 00 00 00 00 11 [20:50:08]Write i2c OK [20:50:08]MH_I2C_Read... [20:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:08]Read from MH i2c: E2 [20:50:08]MH_I2C_Read... [20:50:08]Read from MH i2c: E2 0E 00 [20:50:08]MH_I2C_Read... [20:50:08]Read from MH i2c: E2 0E 00 57 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 47 [20:50:08]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:50:08]wFMCommunicate OK [20:50:08]SAM_PROTO_GetShiftState done [20:50:08]FM_GetShiftState done [20:50:08]req_shift_opened done [20:50:08]requested_item shift.open_date is exist - process it [20:50:08]req_shift_open_date [20:50:08]req_shift_open_date done [20:50:08]produce_requested_data done [20:50:08]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162937,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [20:50:08]process_action_free close_receipt [20:50:08]json_value_free [20:50:08]json_value_free done [20:50:08]process_json_proto returns [20:50:08]Send response to host [20:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162937,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [20:50:08]free response buf [20:50:08]execute_script done [20:50:08]execute_script returns [20:50:08]free content buf [20:50:08]Sock 9.Close socket [20:50:08]Sock 9.Thread stoped [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:21]accept exits with 7 [20:51:21]New connection [20:51:21]New thread 3066879332 created [20:51:21]Thread 3066735972 joined [20:51:21]Waiting for new connection... [20:51:21] Sock 7.Parse request [20:51:21]Sock 7.Check first char [20:51:21]Sock 7.First char is OK [20:51:21]request: POST /json_proto HTTP/1.0 [20:51:21]Method: POST [20:51:21]URL: /json_proto [20:51:21]Method is POST - this is cgi request [20:51:21]url: /json_proto [20:51:21]query_string will be loaded in cgi processing [20:51:21]execute_cgi json_proto POST (null) [20:51:21]execute_cgi path=json_proto method=POST [20:51:21]POST find Content-Length [20:51:21]Host: 172.17.39.67:8080 [20:51:21]Content-Length: 678 [20:51:21]Content-Type: application/json [20:51:21] [20:51:21]POST finish read [20:51:21]Found Content-Length = 678 [20:51:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:21]execute_script... [20: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)1319549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:21]POST & json_proto [20:51:21]process_json_proto [20:51:21]json parsed OK: [20:51:21]protocol is kg_v1.0 [20:51:21]action value=close_receipt [20:51:21]process_action close_receipt [20:51:21]cmd_close_receipt [20:51:21]MH_GetDate [20:51:21]Write to MH i2c: F0 00 00 58 3D 84 [20:51:21]Write i2c OK [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: F0 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: F0 09 00 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: F0 09 00 58 3D 00 4C 3A 94 66 B6 85 93 66 41 [20:51:21]GetLastDocTimeStamp 1720990207 [20:51:21]current date 1720990284 [20:51:21]FM_GetShiftState [20:51:21]SAM_PROTO_GetShiftState [20:51:21]wFMCommunicate request_size=4 [20:51:21]MH_SAM_APDU [20:51:21]CAPDU: 80 13 01 00 [20:51:21]Write to MH i2c: E2 08 00 59 3D 80 13 01 00 00 00 00 00 13 [20:51:21]Write i2c OK [20:51:21]MH_I2C_Read... [20:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:21]Read from MH i2c: E2 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: E2 0E 00 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: E2 0E 00 59 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 49 [20:51:21]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:51:21]wFMCommunicate OK [20:51:21]SAM_PROTO_GetShiftState done [20:51:21]FM_GetShiftState done [20:51:21]opened in 1720915483 [20:51:21]opened+sec_in_day 1721001883 [20:51:21]quantity*price = 30033 [20:51:21]sum+1 = 30035 [20:51:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 250 14.07.2024 20:51 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162938 ФПД: 68349007878845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T205124&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162938&fm=68349007878845&tin=02508201610067®Number=0000000000090858&sum=30000 [20:51:22]StoreToDocumentArchive [20:51:22]shift 463 fd 162938 [20:51:22]save to /storage/0463/doc_00162938 [20:51:22]save last doc name /storage/0463/doc_00162938 to /storage/kkm_last_doc_name [20:51:22]save OK [20:51:22]Clear old archive folders... [20:51:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:51:22]tlvbuf is 0125BCA0 [20:51:22]SAM_PROTO_ClearQueue [20:51:22]wFMCommunicate request_size=4 [20:51:22]MH_SAM_APDU [20:51:22]CAPDU: 80 09 00 00 [20:51:22]Write to MH i2c: E2 08 00 66 3D 80 09 00 00 00 00 00 00 15 [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:22]Read from MH i2c: E2 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 03 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 03 00 66 3D 00 90 00 17 [20:51:22]RAPDU: 90 00 [20:51:22]wFMCommunicate OK [20:51:22]SAM_PROTO_ClearQueue done [20:51:22]KKMCreateOFDPacket [20:51:22]OFDProtocolAddRootSTLVToBuf [20:51:22]FM_MakeSignedData [20:51:22]FM_MakeSignedData [20:51:22]SAM_PROTO_SignData [20:51:22]wFMCommunicate request_size=4 [20:51:22]MH_SAM_APDU [20:51:22]CAPDU: 80 0D 01 02 [20:51:22]Write to MH i2c: E2 08 00 67 3D 80 0D 01 02 00 00 00 00 1D [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:22]Read from MH i2c: E2 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 03 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: E2 03 00 67 3D 00 90 00 18 [20:51:22]RAPDU: 90 00 [20:51:22]wFMCommunicate OK [20:51:22]wFMCommunicate request_size=255 [20:51:22]MH_SAM_APDU [20:51:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 FA 00 00 00 F4 03 04 00 4C 3A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7C 02 00 35 04 06 00 3E [20:51:22]Write to MH i2c: E2 02 01 68 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 FA 00 00 00 F4 03 04 00 4C 3A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7C 02 00 35 04 06 00 3E 00 00 18 [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 68 3D 00 90 00 19 [20:51:23]RAPDU: 90 00 [20:51:23]wFMCommunicate OK [20:51:23]wFMCommunicate request_size=10 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 0D 02 02 05 29 BE 55 DA BD [20:51:23]Write to MH i2c: E2 0D 00 69 3D 80 0D 02 02 05 00 29 BE 55 DA BD 00 00 FD [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 03 00 69 3D 00 90 00 1A [20:51:23]RAPDU: 90 00 [20:51:23]wFMCommunicate OK [20:51:23]wFMCommunicate request_size=4 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 0D 03 02 [20:51:23]Write to MH i2c: E2 08 00 6A 3D 80 0D 03 02 00 00 00 00 22 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 0B 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 0B 00 6A 3D 00 F4 A8 BD 76 64 D4 40 DB 90 00 45 [20:51:23]RAPDU: F4 A8 BD 76 64 D4 40 DB 90 00 [20:51:23]wFMCommunicate OK [20:51:23]SAM_PROTO_SignData done [20:51:23]FM_MakeSignedData done [20:51:23]CreateOFDProtocolMessage [20:51:23]wFMCommunicate request_size=4 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 11 00 00 [20:51:23]Write to MH i2c: E2 08 00 6B 3D 80 11 00 00 00 00 00 00 22 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 17 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 17 00 6B 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 82 [20:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:51:23]wFMCommunicate OK [20:51:23]CreateOFDProtocolMessage done [20:51:23]OFDSenderStorePacket 162938 [20:51:23]StoreOFDPacket docnum=162938 [20:51:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 1A FD 07 01 84 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 FA 00 00 00 F4 03 04 00 4C 3A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7C 02 00 35 04 06 00 3E 29 BE 55 DA BD F4 A8 BD 76 64 D4 40 DB [20:51:23]CheckFolder [20:51:23]dirname=/storage/ofd_packets [20:51:23]CheckFolder done [20:51:23]ProducePacketName [20:51:23]name=ofd_packets/00162938 [20:51:23]NVStorageSaveData ofd_packets/00162938 [20:51:23]File name is /storage/ofd_packets/00162938 [20:51:23]Write 301 bytes [20:51:23]NVStorageSaveData done [20:51:23]OFDSenderStorePacket done [20:51:23]KKMCreateOFDPacket done [20:51:23]NVStorageSaveData kkm_last_timestamp [20:51:23]File name is /storage/kkm_last_timestamp [20:51:23]Write 4 bytes [20:51:23]NVStorageSaveData done [20:51:23]ExternCall_PrintAddStr [20:51:23]wPrintStart [20:51:23]Write to MH i2c: 01 00 00 6C 3D A9 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: 01 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: 01 07 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: 01 07 00 6C 3D 00 00 00 00 00 FF 0F BE [20:51:23]RasterBufferAndPrint [20:51:23]line Счет N : (1)1319549 [20:51:23]line ИНН: 02508201610067 [20:51:23]line Контрольно-Кассовый Чек [20:51:23]line ПРОДАЖА [20:51:23]line ТРК (МРК, ГНК) : 33 [20:51:23]line Товар: 2710124130 [20:51:23]line Аи-92-К-5 [20:51:23]line 4.530 * 66.30 [20:51:23]line = 300.34 [20:51:23]line НДС 12% НСП 1% [20:51:23]line > о реализуемом товаре [20:51:23]line ОКРУГЛЕНИЕ: -0.34 [20:51:23]line ИТОГО: 300.00 [20:51:23]line Внесено: 300.00 [20:51:23]line СДАЧА: 0.00 [20:51:23]line НСП 1% : 2.66 [20:51:23]line НДС 12% : 31.89 [20:51:23]line Наличными: 300.00 [20:51:23]line Безнал.: 0.00 [20:51:23]line Место: АЗС № 140 "Партнер Нефть" [20:51:23]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:51:23]line СНО: Общий режим [20:51:23]line Чек 250 14.07.2024 20:51 [20:51:23]line Смена: 463 ФФД: 1.0 [20:51:23]line ЗНМ: 0300000129 [20:51:23]line РНМ: 0000000000090858 [20:51:23]line Версия ККМ: 001 [20:51:23]line ФМ: 0000000000874899 [20:51:23]line ФД: 162938 [20:51:23]line ФПД: 68349007878845 [20:51:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T205124&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162938&fm=68349007878845&tin=02508201610067®Number=0000000000090858&sum=30000 [20:51:23]OFD Sender: Processing packet 162938 [packets to send 106, broken 105] [20:51:23]ProducePacketName [20:51:23]name=ofd_packets/00162938 [20:51:23]OFD Sender: To server: pG, [20:51:23]CommunicateWithHost lk.salyk.kg:30040 [20:51:23]ConnectInit lk.salyk.kg [20:51:23]written 0, free lines is 4095 [20:51:23]Connected sock=10 [20: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 34 38 39 39 0F 01 00 00 1A FD 07 01 84 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 FA 00 00 00 F4 03 04 00 4C 3A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7C 02 00 35 04 06 00 3E 29 BE 55 DA BD F4 A8 BD 76 64 D4 40 DB [20:51:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 66 14 47 00 DC 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7C 02 00 F4 03 04 00 59 E6 93 66 B6 04 01 00 00 4C 2A D3 D7 F0 A0 D2 33 [20:51:24]CommunicateWithHost err = 0 [20:51:24]CheckOFDResponse [20:51:24]1017 (14) - 77093643461234 [20:51:24]1041 (16) - 0000000000874899 [20:51:24]1040 (4) - 162938 [20:51:24]1012 (4) - 14.07.2024 14:53 [20:51:24]1206 (1) - 0 [20:51:24]OFD Sender: Remove packet 162938 [20:51:24]ProducePacketName [20:51:24]name=ofd_packets/00162938 [20:51:24]NVStorageDeleteData [20:51:24]Write to MH i2c: 01 00 00 97 3D D4 [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 07 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: 01 07 00 97 3D 00 00 00 00 00 DA 0C C1 [20:51:24]RasterBufferAndPrint [20:51:24]line [20:51:24]line [20:51:24]line [20:51:24]line [20:51:24]line [20:51:24]written 0, free lines is 3299 [20:51:24]MH_Cut [20:51:24]Write to MH i2c: D1 01 00 9E 3D 01 AD [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: D1 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: D1 01 00 [20:51:24]MH_I2C_Read... [20:51:24]Read from MH i2c: D1 01 00 9E 3D 00 AC [20:51:24]Write to MH i2c: 01 00 00 9F 3D DC [20:51:24]Write i2c OK [20:51:24]MH_I2C_Read... [20:51:24]OFD Sender: No OFD packet to send [20:51:24]*** Cut start [20:51:24]*** Purtial cut [20:51:24]*** CUTSNS_PIN = 0 [20:51:25]*** Stage 1: CUTSNS_PIN = 1 [20:51:26]Read from MH i2c: 01 [20:51:26]MH_I2C_Read... [20:51:26]*** Stop cut motor [20:51:26]*** Cut end [20:51:26]Read from MH i2c: 01 07 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: 01 07 00 9F 3D 00 00 00 00 00 FF 0F F1 [20:51:27]process_action close_receipt done [20:51:27]requested_data is exist [20:51:27]produce_requested_data [20:51:27]requested_item fm.sn is exist - process it [20:51:27]wFMCommunicate request_size=4 [20:51:27]MH_SAM_APDU [20:51:27]CAPDU: 80 11 00 00 [20:51:27]Write to MH i2c: E2 08 00 A0 3D 80 11 00 00 00 00 00 00 57 [20:51:27]Write i2c OK [20:51:27]MH_I2C_Read... [20:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:27]Read from MH i2c: E2 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 17 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 17 00 A0 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B7 [20:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:51:27]wFMCommunicate OK [20:51:27]requested_item fd.num is exist - process it [20:51:27]SAM_PROTO_GetFieldsCounters [20:51:27]wFMCommunicate request_size=4 [20:51:27]MH_SAM_APDU [20:51:27]CAPDU: 80 13 00 00 [20:51:27]Write to MH i2c: E2 08 00 A1 3D 80 13 00 00 00 00 00 00 5A [20:51:27]Write i2c OK [20:51:27]MH_I2C_Read... [20:51:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:27]Read from MH i2c: E2 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 62 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 62 00 A1 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7A 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [20:51:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7A 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:51:27]wFMCommunicate OK [20:51:27]SAM_PROTO_GetFieldsCounters done [20:51:27]requested_item shift.num is exist - process it [20:51:27]requested_item shift.opened is exist - process it [20:51:27]req_shift_opened [20:51:27]FM_GetShiftState [20:51:27]SAM_PROTO_GetShiftState [20:51:27]wFMCommunicate request_size=4 [20:51:27]MH_SAM_APDU [20:51:27]CAPDU: 80 13 01 00 [20:51:27]Write to MH i2c: E2 08 00 A2 3D 80 13 01 00 00 00 00 00 5C [20:51:27]Write i2c OK [20:51:27]MH_I2C_Read... [20:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:27]Read from MH i2c: E2 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 0E 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: E2 0E 00 A2 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 92 [20:51:27]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:51:27]wFMCommunicate OK [20:51:27]SAM_PROTO_GetShiftState done [20:51:27]FM_GetShiftState done [20:51:27]req_shift_opened done [20:51:27]requested_item shift.open_date is exist - process it [20:51:27]req_shift_open_date [20:51:27]req_shift_open_date done [20:51:27]produce_requested_data done [20:51:27]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162938,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [20:51:27]process_action_free close_receipt [20:51:27]json_value_free [20:51:27]json_value_free done [20:51:27]process_json_proto returns [20:51:27]Send response to host [20:51:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162938,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [20:51:27]free response buf [20:51:27]execute_script done [20:51:27]execute_script returns [20:51:27]free content buf [20:51:27]Sock 7.Close socket [20:51:27]Sock 7.Thread stoped [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [20:53:14]OFD Sender: No OFD packet to send [20:53:19]OFD Sender: No OFD packet to send [20:53:24]OFD Sender: No OFD packet to send [20:53:29]OFD Sender: No OFD packet to send [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:49]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:39]OFD Sender: No OFD packet to send [20:54:40]accept exits with 9 [20:54:40]New connection [20:54:40]New thread 3066735972 created [20:54:40]Thread 3066879332 joined [20:54:40]Waiting for new connection... [20:54:40] Sock 9.Parse request [20:54:40]Sock 9.Check first char [20:54:40]Sock 9.First char is OK [20:54:40]request: POST /json_proto HTTP/1.0 [20:54:40]Method: POST [20:54:40]URL: /json_proto [20:54:40]Method is POST - this is cgi request [20:54:40]url: /json_proto [20:54:40]query_string will be loaded in cgi processing [20:54:40]execute_cgi json_proto POST (null) [20:54:40]execute_cgi path=json_proto method=POST [20:54:40]POST find Content-Length [20:54:40]Host: 172.17.39.67:8080 [20:54:40]Content-Length: 683 [20:54:40]Content-Type: application/json [20:54:40] [20:54:40]POST finish read [20:54:40]Found Content-Length = 683 [20:54:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:54:40]execute_script... [20:54:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "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:54:40]POST & json_proto [20:54:40]process_json_proto [20:54:40]json parsed OK: [20:54:40]protocol is kg_v1.0 [20:54:40]action value=close_receipt [20:54:40]process_action close_receipt [20:54:40]cmd_close_receipt [20:54:40]MH_GetDate [20:54:40]Write to MH i2c: F0 00 00 A3 3D CF [20:54:40]Write i2c OK [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: F0 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: F0 09 00 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: F0 09 00 A3 3D 00 13 3B 94 66 B6 85 93 66 54 [20:54:40]GetLastDocTimeStamp 1720990284 [20:54:40]current date 1720990483 [20:54:40]FM_GetShiftState [20:54:40]SAM_PROTO_GetShiftState [20:54:40]wFMCommunicate request_size=4 [20:54:40]MH_SAM_APDU [20:54:40]CAPDU: 80 13 01 00 [20:54:40]Write to MH i2c: E2 08 00 A4 3D 80 13 01 00 00 00 00 00 5E [20:54:40]Write i2c OK [20:54:40]MH_I2C_Read... [20:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:41]Read from MH i2c: E2 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 0E 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 0E 00 A4 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 94 [20:54:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:54:41]wFMCommunicate OK [20:54:41]SAM_PROTO_GetShiftState done [20:54:41]FM_GetShiftState done [20:54:41]opened in 1720915483 [20:54:41]opened+sec_in_day 1721001883 [20:54:41]quantity*price = 100046 [20:54:41]sum+1 = 100048 [20:54:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 251 14.07.2024 20:54 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162939 ФПД: 1588672168813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T205443&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162939&fm=1588672168813&tin=02508201610067®Number=0000000000090858&sum=100000 [20:54:42]StoreToDocumentArchive [20:54:42]shift 463 fd 162939 [20:54:42]save to /storage/0463/doc_00162939 [20:54:42]save last doc name /storage/0463/doc_00162939 to /storage/kkm_last_doc_name [20:54:42]save OK [20:54:42]Clear old archive folders... [20:54:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:42]tlvbuf is B6F43880 [20:54:42]SAM_PROTO_ClearQueue [20:54:42]wFMCommunicate request_size=4 [20:54:42]MH_SAM_APDU [20:54:42]CAPDU: 80 09 00 00 [20:54:42]Write to MH i2c: E2 08 00 B1 3D 80 09 00 00 00 00 00 00 60 [20:54:42]Write i2c OK [20:54:42]MH_I2C_Read... [20:54:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:42]Read from MH i2c: E2 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 03 00 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 03 00 B1 3D 00 90 00 62 [20:54:42]RAPDU: 90 00 [20:54:42]wFMCommunicate OK [20:54:42]SAM_PROTO_ClearQueue done [20:54:42]KKMCreateOFDPacket [20:54:42]OFDProtocolAddRootSTLVToBuf [20:54:42]FM_MakeSignedData [20:54:42]FM_MakeSignedData [20:54:42]SAM_PROTO_SignData [20:54:42]wFMCommunicate request_size=4 [20:54:42]MH_SAM_APDU [20:54:42]CAPDU: 80 0D 01 02 [20:54:42]Write to MH i2c: E2 08 00 B2 3D 80 0D 01 02 00 00 00 00 68 [20:54:42]Write i2c OK [20:54:42]MH_I2C_Read... [20:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:42]Read from MH i2c: E2 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 03 00 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 03 00 B2 3D 00 90 00 63 [20:54:42]RAPDU: 90 00 [20:54:42]wFMCommunicate OK [20:54:42]wFMCommunicate request_size=255 [20:54:42]MH_SAM_APDU [20:54:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 13 3B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7C 02 00 35 04 06 00 01 [20:54:42]Write to MH i2c: E2 02 01 B3 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 13 3B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7C 02 00 35 04 06 00 01 00 00 81 [20:54:42]Write i2c OK [20:54:42]MH_I2C_Read... [20:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:42]Read from MH i2c: E2 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 03 00 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 03 00 B3 3D 00 90 00 64 [20:54:42]RAPDU: 90 00 [20:54:42]wFMCommunicate OK [20:54:42]wFMCommunicate request_size=10 [20:54:42]MH_SAM_APDU [20:54:42]CAPDU: 80 0D 02 02 05 71 E4 3D 83 6D [20:54:42]Write to MH i2c: E2 0D 00 B4 3D 80 0D 02 02 05 00 71 E4 3D 83 6D 00 00 F7 [20:54:42]Write i2c OK [20:54:42]MH_I2C_Read... [20:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:42]Read from MH i2c: E2 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 03 00 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 03 00 B4 3D 00 90 00 65 [20:54:42]RAPDU: 90 00 [20:54:42]wFMCommunicate OK [20:54:42]wFMCommunicate request_size=4 [20:54:42]MH_SAM_APDU [20:54:42]CAPDU: 80 0D 03 02 [20:54:42]Write to MH i2c: E2 08 00 B5 3D 80 0D 03 02 00 00 00 00 6D [20:54:42]Write i2c OK [20:54:42]MH_I2C_Read... [20:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:42]Read from MH i2c: E2 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 0B 00 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 0B 00 B5 3D 00 3B 4E C6 C4 62 36 89 AB 90 00 4D [20:54:42]RAPDU: 3B 4E C6 C4 62 36 89 AB 90 00 [20:54:42]wFMCommunicate OK [20:54:42]SAM_PROTO_SignData done [20:54:42]FM_MakeSignedData done [20:54:42]CreateOFDProtocolMessage [20:54:42]wFMCommunicate request_size=4 [20:54:42]MH_SAM_APDU [20:54:42]CAPDU: 80 11 00 00 [20:54:42]Write to MH i2c: E2 08 00 B6 3D 80 11 00 00 00 00 00 00 6D [20:54:42]Write i2c OK [20:54:42]MH_I2C_Read... [20:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:42]Read from MH i2c: E2 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 17 00 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: E2 17 00 B6 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CD [20:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:54:42]wFMCommunicate OK [20:54:42]CreateOFDProtocolMessage done [20:54:42]OFDSenderStorePacket 162939 [20:54:42]StoreOFDPacket docnum=162939 [20:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F2 91 07 01 7E 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 13 3B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7C 02 00 35 04 06 00 01 71 E4 3D 83 6D 3B 4E C6 C4 62 36 89 AB [20:54:42]CheckFolder [20:54:42]dirname=/storage/ofd_packets [20:54:42]CheckFolder done [20:54:42]ProducePacketName [20:54:42]name=ofd_packets/00162939 [20:54:42]NVStorageSaveData ofd_packets/00162939 [20:54:42]File name is /storage/ofd_packets/00162939 [20:54:42]Write 301 bytes [20:54:42]NVStorageSaveData done [20:54:42]OFDSenderStorePacket done [20:54:42]KKMCreateOFDPacket done [20:54:42]NVStorageSaveData kkm_last_timestamp [20:54:42]File name is /storage/kkm_last_timestamp [20:54:42]Write 4 bytes [20:54:42]NVStorageSaveData done [20:54:42]ExternCall_PrintAddStr [20:54:42]wPrintStart [20:54:42]Write to MH i2c: 01 00 00 B7 3D F4 [20:54:42]Write i2c OK [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: 01 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: 01 07 00 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: 01 07 00 B7 3D 00 00 00 00 00 FF 0F 09 [20:54:42]RasterBufferAndPrint [20:54:42]line Счет N : (1)1319550 [20:54:42]line ИНН: 02508201610067 [20:54:42]line Контрольно-Кассовый Чек [20:54:42]line ПРОДАЖА [20:54:42]line ТРК (МРК, ГНК) : 43 [20:54:42]line Товар: 2710124130 [20:54:42]line Аи-92-К-5 [20:54:42]line 15.090 * 66.30 [20:54:42]line = 1000.47 [20:54:42]line НДС 12% НСП 1% [20:54:42]line > о реализуемом товаре [20:54:42]line ОКРУГЛЕНИЕ: -0.47 [20:54:42]line ИТОГО: 1000.00 [20:54:42]line Внесено: 1000.00 [20:54:42]line СДАЧА: 0.00 [20:54:42]line НСП 1% : 8.85 [20:54:42]line НДС 12% : 106.24 [20:54:42]line Наличными: 1000.00 [20:54:42]line Безнал.: 0.00 [20:54:42]line Место: АЗС № 140 "Партнер Нефть" [20:54:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:54:42]line СНО: Общий режим [20:54:42]line Чек 251 14.07.2024 20:54 [20:54:42]line Смена: 463 ФФД: 1.0 [20:54:42]line ЗНМ: 0300000129 [20:54:42]line РНМ: 0000000000090858 [20:54:42]line Версия ККМ: 001 [20:54:42]line ФМ: 0000000000874899 [20:54:42]line ФД: 162939 [20:54:42]line ФПД: 1588672168813 [20:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T205443&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162939&fm=1588672168813&tin=02508201610067®Number=0000000000090858&sum=100000 [20:54:43]OFD Sender: Processing packet 162939 [packets to send 106, broken 105] [20:54:43]ProducePacketName [20:54:43]name=ofd_packets/00162939 [20:54:43]OFD Sender: To server: pG, [20:54:43]CommunicateWithHost lk.salyk.kg:30040 [20:54:43]ConnectInit lk.salyk.kg [20:54:43]written 0, free lines is 4095 [20:54:43]Connected sock=10 [20:54:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F2 91 07 01 7E 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 13 3B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7C 02 00 35 04 06 00 01 71 E4 3D 83 6D 3B 4E C6 C4 62 36 89 AB [20:54:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B9 54 47 00 D6 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7C 02 00 F4 03 04 00 20 E7 93 66 B6 04 01 00 00 3E 03 03 F5 70 70 45 1D [20:54:43]CommunicateWithHost err = 0 [20:54:43]CheckOFDResponse [20:54:43]1017 (14) - 77093643461234 [20:54:43]1041 (16) - 0000000000874899 [20:54:43]1040 (4) - 162939 [20:54:43]1012 (4) - 14.07.2024 14:56 [20:54:43]1206 (1) - 0 [20:54:43]OFD Sender: Remove packet 162939 [20:54:43]ProducePacketName [20:54:43]name=ofd_packets/00162939 [20:54:43]NVStorageDeleteData [20:54:43]Write to MH i2c: 01 00 00 E2 3D 1F [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: 01 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: 01 07 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: 01 07 00 E2 3D 00 00 00 00 00 D8 0C 0A [20:54:43]RasterBufferAndPrint [20:54:43]line [20:54:43]line [20:54:43]line [20:54:43]line [20:54:43]line [20:54:43]written 0, free lines is 3297 [20:54:43]MH_Cut [20:54:43]Write to MH i2c: D1 01 00 E9 3D 01 F8 [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: D1 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: D1 01 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: D1 01 00 E9 3D 00 F7 [20:54:43]Write to MH i2c: 01 00 00 EA 3D 27 [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]OFD Sender: No OFD packet to send [20:54:44]*** Cut start [20:54:44]*** Purtial cut [20:54:44]*** Stage 1: CUTSNS_PIN = 1 [20:54:44]Read from MH i2c: 01 [20:54:44]MH_I2C_Read... [20:54:44]*** Stop cut motor [20:54:44]*** Cut end [20:54:44]Read from MH i2c: 01 07 00 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: 01 07 00 EA 3D 00 00 00 00 00 FF 0F 3C [20:54:44]process_action close_receipt done [20:54:44]requested_data is exist [20:54:44]produce_requested_data [20:54:44]requested_item fm.sn is exist - process it [20:54:44]wFMCommunicate request_size=4 [20:54:44]MH_SAM_APDU [20:54:44]CAPDU: 80 11 00 00 [20:54:44]Write to MH i2c: E2 08 00 EB 3D 80 11 00 00 00 00 00 00 A2 [20:54:44]Write i2c OK [20:54:44]MH_I2C_Read... [20:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:44]Read from MH i2c: E2 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: E2 17 00 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: E2 17 00 EB 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 02 [20:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:54:44]wFMCommunicate OK [20:54:44]requested_item fd.num is exist - process it [20:54:44]SAM_PROTO_GetFieldsCounters [20:54:44]wFMCommunicate request_size=4 [20:54:44]MH_SAM_APDU [20:54:44]CAPDU: 80 13 00 00 [20:54:44]Write to MH i2c: E2 08 00 EC 3D 80 13 00 00 00 00 00 00 A5 [20:54:44]Write i2c OK [20:54:44]MH_I2C_Read... [20:54:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:44]Read from MH i2c: E2 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: E2 62 00 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: E2 62 00 EC 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7B 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [20:54:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7B 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:44]wFMCommunicate OK [20:54:44]SAM_PROTO_GetFieldsCounters done [20:54:44]requested_item shift.num is exist - process it [20:54:44]requested_item shift.opened is exist - process it [20:54:44]req_shift_opened [20:54:44]FM_GetShiftState [20:54:44]SAM_PROTO_GetShiftState [20:54:44]wFMCommunicate request_size=4 [20:54:44]MH_SAM_APDU [20:54:44]CAPDU: 80 13 01 00 [20:54:44]Write to MH i2c: E2 08 00 ED 3D 80 13 01 00 00 00 00 00 A7 [20:54:44]Write i2c OK [20:54:44]MH_I2C_Read... [20:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:44]Read from MH i2c: E2 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: E2 0E 00 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: E2 0E 00 ED 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 DD [20:54:44]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:54:44]wFMCommunicate OK [20:54:44]SAM_PROTO_GetShiftState done [20:54:44]FM_GetShiftState done [20:54:44]req_shift_opened done [20:54:44]requested_item shift.open_date is exist - process it [20:54:44]req_shift_open_date [20:54:44]req_shift_open_date done [20:54:44]produce_requested_data done [20:54:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162939,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [20:54:44]process_action_free close_receipt [20:54:44]json_value_free [20:54:44]json_value_free done [20:54:44]process_json_proto returns [20:54:44]Send response to host [20:54:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162939,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [20:54:44]free response buf [20:54:44]execute_script done [20:54:44]execute_script returns [20:54:44]free content buf [20:54:44]Sock 9.Close socket [20:54:44]Sock 9.Thread stoped [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]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:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:32]accept exits with 7 [20:57:32]New connection [20:57:32]New thread 3066879332 created [20:57:32]Thread 3066735972 joined [20:57:32]Waiting for new connection... [20:57:32] Sock 7.Parse request [20:57:32]Sock 7.Check first char [20:57:32]Sock 7.First char is OK [20:57:32]request: POST /json_proto HTTP/1.0 [20:57:32]Method: POST [20:57:32]URL: /json_proto [20:57:32]Method is POST - this is cgi request [20:57:32]url: /json_proto [20:57:32]query_string will be loaded in cgi processing [20:57:32]execute_cgi json_proto POST (null) [20:57:32]execute_cgi path=json_proto method=POST [20:57:32]POST find Content-Length [20:57:32]Host: 172.17.39.67:8080 [20:57:32]Content-Length: 683 [20:57:32]Content-Type: application/json [20:57:32] [20:57:32]POST finish read [20:57:32]Found Content-Length = 683 [20:57:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 30.170, "sum" : 2000.27, "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:57:32]execute_script... [20:57: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)1319551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 30.170, "sum" : 2000.27, "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:57:32]POST & json_proto [20:57:32]process_json_proto [20:57:32]json parsed OK: [20:57:32]protocol is kg_v1.0 [20:57:32]action value=close_receipt [20:57:32]process_action close_receipt [20:57:32]cmd_close_receipt [20:57:32]MH_GetDate [20:57:32]Write to MH i2c: F0 00 00 EE 3D 1A [20:57:32]Write i2c OK [20:57:32]MH_I2C_Read... [20:57:32]Read from MH i2c: F0 [20:57:32]MH_I2C_Read... [20:57:32]Read from MH i2c: F0 09 00 [20:57:32]MH_I2C_Read... [20:57:32]Read from MH i2c: F0 09 00 EE 3D 00 BF 3B 94 66 B6 85 93 66 4B [20:57:32]GetLastDocTimeStamp 1720990483 [20:57:32]current date 1720990655 [20:57:32]FM_GetShiftState [20:57:32]SAM_PROTO_GetShiftState [20:57:32]wFMCommunicate request_size=4 [20:57:32]MH_SAM_APDU [20:57:32]CAPDU: 80 13 01 00 [20:57:32]Write to MH i2c: E2 08 00 EF 3D 80 13 01 00 00 00 00 00 A9 [20:57:32]Write i2c OK [20:57:32]MH_I2C_Read... [20:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:32]Read from MH i2c: E2 [20:57:32]MH_I2C_Read... [20:57:32]Read from MH i2c: E2 0E 00 [20:57:32]MH_I2C_Read... [20:57:32]Read from MH i2c: E2 0E 00 EF 3D 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 DF [20:57:32]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:57:32]wFMCommunicate OK [20:57:32]SAM_PROTO_GetShiftState done [20:57:32]FM_GetShiftState done [20:57:32]opened in 1720915483 [20:57:32]opened+sec_in_day 1721001883 [20:57:32]quantity*price = 200027 [20:57:32]sum+1 = 200028 [20:57:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 252 14.07.2024 20:57 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162940 ФПД: 232977490405552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T205735&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162940&fm=232977490405552&tin=02508201610067®Number=0000000000090858&sum=200000 [20:57:33]StoreToDocumentArchive [20:57:33]shift 463 fd 162940 [20:57:33]save to /storage/0463/doc_00162940 [20:57:33]save last doc name /storage/0463/doc_00162940 to /storage/kkm_last_doc_name [20:57:33]save OK [20:57:33]Clear old archive folders... [20:57:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:57:33]tlvbuf is B6F46A00 [20:57:33]SAM_PROTO_ClearQueue [20:57:33]wFMCommunicate request_size=4 [20:57:33]MH_SAM_APDU [20:57:33]CAPDU: 80 09 00 00 [20:57:33]Write to MH i2c: E2 08 00 FC 3D 80 09 00 00 00 00 00 00 AB [20:57:33]Write i2c OK [20:57:33]MH_I2C_Read... [20:57:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:33]Read from MH i2c: E2 [20:57:33]MH_I2C_Read... [20:57:33]Read from MH i2c: E2 03 00 [20:57:33]MH_I2C_Read... [20:57:33]Read from MH i2c: E2 03 00 FC 3D 00 90 00 AD [20:57:33]RAPDU: 90 00 [20:57:33]wFMCommunicate OK [20:57:33]SAM_PROTO_ClearQueue done [20:57:33]KKMCreateOFDPacket [20:57:33]OFDProtocolAddRootSTLVToBuf [20:57:33]FM_MakeSignedData [20:57:33]FM_MakeSignedData [20:57:33]SAM_PROTO_SignData [20:57:33]wFMCommunicate request_size=4 [20:57:33]MH_SAM_APDU [20:57:33]CAPDU: 80 0D 01 02 [20:57:33]Write to MH i2c: E2 08 00 FD 3D 80 0D 01 02 00 00 00 00 B3 [20:57:33]Write i2c OK [20:57:33]MH_I2C_Read... [20:57:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:33]Read from MH i2c: E2 [20:57:33]MH_I2C_Read... [20:57:33]Read from MH i2c: E2 03 00 [20:57:33]MH_I2C_Read... [20:57:33]Read from MH i2c: E2 03 00 FD 3D 00 90 00 AE [20:57:33]RAPDU: 90 00 [20:57:33]wFMCommunicate OK [20:57:33]wFMCommunicate request_size=255 [20:57:33]MH_SAM_APDU [20:57: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 DA 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 5B 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 FC 00 00 00 F4 03 04 00 BF 3B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7C 02 00 35 04 06 00 D3 [20:57:33]Write to MH i2c: E2 02 01 FE 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 5B 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 FC 00 00 00 F4 03 04 00 BF 3B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7C 02 00 35 04 06 00 D3 00 00 F1 [20:57:33]Write i2c OK [20:57:33]MH_I2C_Read... [20:57:34]OFD Sender: No OFD packet to send [20:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:34]Read from MH i2c: E2 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: E2 03 00 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: E2 03 00 FE 3D 00 90 00 AF [20:57:34]RAPDU: 90 00 [20:57:34]wFMCommunicate OK [20:57:34]wFMCommunicate request_size=10 [20:57:34]MH_SAM_APDU [20:57:34]CAPDU: 80 0D 02 02 05 E4 4C 8E 68 B0 [20:57:34]Write to MH i2c: E2 0D 00 FF 3D 80 0D 02 02 05 00 E4 4C 8E 68 B0 00 00 96 [20:57:34]Write i2c OK [20:57:34]MH_I2C_Read... [20:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:34]Read from MH i2c: E2 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: E2 03 00 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: E2 03 00 FF 3D 00 90 00 B0 [20:57:34]RAPDU: 90 00 [20:57:34]wFMCommunicate OK [20:57:34]wFMCommunicate request_size=4 [20:57:34]MH_SAM_APDU [20:57:34]CAPDU: 80 0D 03 02 [20:57:34]Write to MH i2c: E2 08 00 00 3E 80 0D 03 02 00 00 00 00 B9 [20:57:34]Write i2c OK [20:57:34]MH_I2C_Read... [20:57:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:34]Read from MH i2c: E2 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: E2 0B 00 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: E2 0B 00 00 3E 00 48 71 FA BD C3 C2 7B 8E 90 00 B8 [20:57:34]RAPDU: 48 71 FA BD C3 C2 7B 8E 90 00 [20:57:34]wFMCommunicate OK [20:57:34]SAM_PROTO_SignData done [20:57:34]FM_MakeSignedData done [20:57:34]CreateOFDProtocolMessage [20:57:34]wFMCommunicate request_size=4 [20:57:34]MH_SAM_APDU [20:57:34]CAPDU: 80 11 00 00 [20:57:34]Write to MH i2c: E2 08 00 01 3E 80 11 00 00 00 00 00 00 B9 [20:57:34]Write i2c OK [20:57:34]MH_I2C_Read... [20:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:34]Read from MH i2c: E2 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: E2 17 00 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: E2 17 00 01 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 19 [20:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:57:34]wFMCommunicate OK [20:57:34]CreateOFDProtocolMessage done [20:57:34]OFDSenderStorePacket 162940 [20:57:34]StoreOFDPacket docnum=162940 [20:57:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 CE 70 07 01 DF 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 5B 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 FC 00 00 00 F4 03 04 00 BF 3B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7C 02 00 35 04 06 00 D3 E4 4C 8E 68 B0 48 71 FA BD C3 C2 7B 8E [20:57:34]CheckFolder [20:57:34]dirname=/storage/ofd_packets [20:57:34]CheckFolder done [20:57:34]ProducePacketName [20:57:34]name=ofd_packets/00162940 [20:57:34]NVStorageSaveData ofd_packets/00162940 [20:57:34]File name is /storage/ofd_packets/00162940 [20:57:34]Write 301 bytes [20:57:34]NVStorageSaveData done [20:57:34]OFDSenderStorePacket done [20:57:34]KKMCreateOFDPacket done [20:57:34]NVStorageSaveData kkm_last_timestamp [20:57:34]File name is /storage/kkm_last_timestamp [20:57:34]Write 4 bytes [20:57:34]NVStorageSaveData done [20:57:34]ExternCall_PrintAddStr [20:57:34]wPrintStart [20:57:34]Write to MH i2c: 01 00 00 02 3E 40 [20:57:34]Write i2c OK [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: 01 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: 01 07 00 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: 01 07 00 02 3E 00 00 00 00 00 FF 0F 55 [20:57:34]RasterBufferAndPrint [20:57:34]line Счет N : (1)1319551 [20:57:34]line ИНН: 02508201610067 [20:57:34]line Контрольно-Кассовый Чек [20:57:34]line ПРОДАЖА [20:57:34]line ТРК (МРК, ГНК) : 43 [20:57:34]line Товар: 2710124130 [20:57:34]line Аи-92-К-5 [20:57:34]line 30.170 * 66.30 [20:57:34]line = 2000.27 [20:57:34]line НДС 12% НСП 1% [20:57:34]line > о реализуемом товаре [20:57:34]line ОКРУГЛЕНИЕ: -0.27 [20:57:34]line ИТОГО: 2000.00 [20:57:34]line Внесено: 2000.00 [20:57:34]line СДАЧА: 0.00 [20:57:34]line НСП 1% : 17.70 [20:57:34]line НДС 12% : 212.42 [20:57:34]line Наличными: 2000.00 [20:57:34]line Безнал.: 0.00 [20:57:34]line Место: АЗС № 140 "Партнер Нефть" [20:57:34]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:57:34]line СНО: Общий режим [20:57:34]line Чек 252 14.07.2024 20:57 [20:57:34]line Смена: 463 ФФД: 1.0 [20:57:34]line ЗНМ: 0300000129 [20:57:34]line РНМ: 0000000000090858 [20:57:34]line Версия ККМ: 001 [20:57:34]line ФМ: 0000000000874899 [20:57:34]line ФД: 162940 [20:57:34]line ФПД: 232977490405552 [20:57:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T205735&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162940&fm=232977490405552&tin=02508201610067®Number=0000000000090858&sum=200000 [20:57:34]written 0, free lines is 4095 [20:57:34]OFD Sender: Processing packet 162940 [packets to send 106, broken 105] [20:57:34]ProducePacketName [20:57:34]name=ofd_packets/00162940 [20:57:34]OFD Sender: To server: pG, [20:57:34]CommunicateWithHost lk.salyk.kg:30040 [20:57:34]ConnectInit lk.salyk.kg [20:57:34]Connected sock=11 [20:57:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 CE 70 07 01 DF 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 5B 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 FC 00 00 00 F4 03 04 00 BF 3B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7C 02 00 35 04 06 00 D3 E4 4C 8E 68 B0 48 71 FA BD C3 C2 7B 8E [20:57:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CC 93 47 00 3D D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7C 02 00 F4 03 04 00 CB E7 93 66 B6 04 01 00 00 D5 90 CD 2C 2A C8 19 41 [20:57:34]CommunicateWithHost err = 0 [20:57:34]CheckOFDResponse [20:57:34]1017 (14) - 77093643461234 [20:57:34]1041 (16) - 0000000000874899 [20:57:34]1040 (4) - 162940 [20:57:34]1012 (4) - 14.07.2024 14:59 [20:57:34]1206 (1) - 0 [20:57:34]OFD Sender: Remove packet 162940 [20:57:34]ProducePacketName [20:57:34]name=ofd_packets/00162940 [20:57:34]NVStorageDeleteData [20:57:34]Write to MH i2c: 01 00 00 2D 3E 6B [20:57:34]Write i2c OK [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: 01 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: 01 07 00 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: 01 07 00 2D 3E 00 00 00 00 00 E5 0C 63 [20:57:34]RasterBufferAndPrint [20:57:34]line [20:57:34]line [20:57:34]line [20:57:34]line [20:57:34]line [20:57:34]written 0, free lines is 3307 [20:57:34]MH_Cut [20:57:34]Write to MH i2c: D1 01 00 34 3E 01 44 [20:57:34]Write i2c OK [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: D1 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: D1 01 00 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: D1 01 00 34 3E 00 43 [20:57:34]Write to MH i2c: 01 00 00 35 3E 73 [20:57:34]Write i2c OK [20:57:34]MH_I2C_Read... [20:57:35]OFD Sender: No OFD packet to send [20:57:35]*** Cut start [20:57:35]*** Purtial cut [20:57:35]*** CUTSNS_PIN = 0 [20:57:35]*** Stage 1: CUTSNS_PIN = 1 [20:57:37]Read from MH i2c: 01 [20:57:37]MH_I2C_Read... [20:57:37]*** Stop cut motor [20:57:37]*** Cut end [20:57:37]Read from MH i2c: 01 07 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 07 00 35 3E 00 00 00 00 00 FF 0F 88 [20:57:37]process_action close_receipt done [20:57:37]requested_data is exist [20:57:37]produce_requested_data [20:57:37]requested_item fm.sn is exist - process it [20:57:37]wFMCommunicate request_size=4 [20:57:37]MH_SAM_APDU [20:57:37]CAPDU: 80 11 00 00 [20:57:37]Write to MH i2c: E2 08 00 36 3E 80 11 00 00 00 00 00 00 EE [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 17 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 17 00 36 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4E [20:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:57:37]wFMCommunicate OK [20:57:37]requested_item fd.num is exist - process it [20:57:37]SAM_PROTO_GetFieldsCounters [20:57:37]wFMCommunicate request_size=4 [20:57:37]MH_SAM_APDU [20:57:37]CAPDU: 80 13 00 00 [20:57:37]Write to MH i2c: E2 08 00 37 3E 80 13 00 00 00 00 00 00 F1 [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 62 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 62 00 37 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7C 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [20:57:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7C 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:37]wFMCommunicate OK [20:57:37]SAM_PROTO_GetFieldsCounters done [20:57:37]requested_item shift.num is exist - process it [20:57:37]requested_item shift.opened is exist - process it [20:57:37]req_shift_opened [20:57:37]FM_GetShiftState [20:57:37]SAM_PROTO_GetShiftState [20:57:37]wFMCommunicate request_size=4 [20:57:37]MH_SAM_APDU [20:57:37]CAPDU: 80 13 01 00 [20:57:37]Write to MH i2c: E2 08 00 38 3E 80 13 01 00 00 00 00 00 F3 [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 0E 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 0E 00 38 3E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 29 [20:57:37]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [20:57:37]wFMCommunicate OK [20:57:37]SAM_PROTO_GetShiftState done [20:57:37]FM_GetShiftState done [20:57:37]req_shift_opened done [20:57:37]requested_item shift.open_date is exist - process it [20:57:37]req_shift_open_date [20:57:37]req_shift_open_date done [20:57:37]produce_requested_data done [20:57:37]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162940,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [20:57:37]process_action_free close_receipt [20:57:37]json_value_free [20:57:37]json_value_free done [20:57:37]process_json_proto returns [20:57:37]Send response to host [20:57:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162940,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [20:57:37]free response buf [20:57:37]execute_script done [20:57:37]execute_script returns [20:57:37]free content buf [20:57:37]Sock 7.Close socket [20:57:37]Sock 7.Thread stoped [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:54]int [20:57:54]Write to MH i2c: 01 00 00 39 3E 77 [20:57:54]*** FLAG_PRN_PAP1 set [20:57:54]Write i2c OK [20:57:54]MH_I2C_Read... [20:57:54]Read from MH i2c: 01 [20:57:54]MH_I2C_Read... [20:57:54]Read from MH i2c: 01 07 00 [20:57:54]MH_I2C_Read... [20:57:54]Read from MH i2c: 01 07 00 39 3E 00 01 00 00 00 FF 0F 8D [20:57:54]state=0 [20:57:54]No paper [20:57:54]int [20:57:54]Write to MH i2c: 01 00 00 3A 3E 78 [20:57:54]*** FLAG_PRN_PAP2 set [20:57:54]Write i2c OK [20:57:54]MH_I2C_Read... [20:57:54]Read from MH i2c: 01 [20:57:54]MH_I2C_Read... [20:57:54]Read from MH i2c: 01 07 00 [20:57:54]MH_I2C_Read... [20:57:54]Read from MH i2c: 01 07 00 3A 3E 00 03 00 00 00 FF 0F 90 [20:57:54]state=0 [20:57:54]No paper [20:57:54]Cover opened [20:57:55]OFD Sender: No OFD packet to send [20:57:56]int [20:57:56]Write to MH i2c: 01 00 00 3B 3E 79 [20:57:56]*** FLAG_PRN_PAP2 reset [20:57:56]Write i2c OK [20:57:56]MH_I2C_Read... [20:57:56]Read from MH i2c: 01 [20:57:56]MH_I2C_Read... [20:57:56]Read from MH i2c: 01 07 00 [20:57:56]MH_I2C_Read... [20:57:56]Read from MH i2c: 01 07 00 3B 3E 00 01 00 00 00 FF 0F 8F [20:57:56]state=3 [20:57:56]No paper [20:57:56]Cover closed [20:57:56]int [20:57:56]Write to MH i2c: 01 00 00 3C 3E 7A [20:57:56]*** FLAG_PRN_PAP2 set [20:57:56]Write i2c OK [20:57:56]MH_I2C_Read... [20:57:56]Read from MH i2c: 01 [20:57:56]MH_I2C_Read... [20:57:56]Read from MH i2c: 01 07 00 [20:57:56]MH_I2C_Read... [20:57:56]Read from MH i2c: 01 07 00 3C 3E 00 03 00 00 00 FF 0F 92 [20:57:56]state=0 [20:57:56]No paper [20:57:56]Cover opened [20:57:59]int [20:57:59]Write to MH i2c: 01 00 00 3D 3E 7B [20:57:59]*** FLAG_PRN_PAP2 reset [20:57:59]Write i2c OK [20:57:59]MH_I2C_Read... [20:57:59]Read from MH i2c: 01 [20:57:59]MH_I2C_Read... [20:57:59]Read from MH i2c: 01 07 00 [20:57:59]MH_I2C_Read... [20:57:59]Read from MH i2c: 01 07 00 3D 3E 00 01 00 00 00 FF 0F 91 [20:57:59]state=3 [20:57:59]No paper [20:57:59]Cover closed [20:57:59]int [20:57:59]Write to MH i2c: 01 00 00 3E 3E 7C [20:57:59]*** FLAG_PRN_PAP1 reset [20:57:59]Write i2c OK [20:57:59]MH_I2C_Read... [20:57:59]Read from MH i2c: 01 [20:57:59]MH_I2C_Read... [20:57:59]Read from MH i2c: 01 07 00 [20:57:59]MH_I2C_Read... [20:57:59]Read from MH i2c: 01 07 00 3E 3E 00 00 00 00 00 FF 0F 91 [20:57:59]state=0 [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:37]accept exits with 9 [21:01:37]New connection [21:01:37]New thread 3066735972 created [21:01:37]Thread 3066879332 joined [21:01:37]Waiting for new connection... [21:01:37] Sock 9.Parse request [21:01:37]Sock 9.Check first char [21:01:37]Sock 9.First char is OK [21:01:37]request: POST /json_proto HTTP/1.0 [21:01:37]Method: POST [21:01:37]URL: /json_proto [21:01:37]Method is POST - this is cgi request [21:01:37]url: /json_proto [21:01:37]query_string will be loaded in cgi processing [21:01:37]execute_cgi json_proto POST (null) [21:01:37]execute_cgi path=json_proto method=POST [21:01:37]POST find Content-Length [21:01:37]Host: 172.17.39.67:8080 [21:01:37]Content-Length: 678 [21:01:37]Content-Type: application/json [21:01:37] [21:01:37]POST finish read [21:01:37]Found Content-Length = 678 [21:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 8.450, "sum" : 560.24, "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" ] } } [21:01:37]execute_script... [21:01: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)1319552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 8.450, "sum" : 560.24, "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" ] } } [21:01:37]POST & json_proto [21:01:37]process_json_proto [21:01:37]json parsed OK: [21:01:37]protocol is kg_v1.0 [21:01:37]action value=close_receipt [21:01:37]process_action close_receipt [21:01:37]cmd_close_receipt [21:01:37]MH_GetDate [21:01:37]Write to MH i2c: F0 00 00 3F 3E 6C [21:01:37]Write i2c OK [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: F0 [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: F0 09 00 [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: F0 09 00 3F 3E 00 B4 3C 94 66 B6 85 93 66 93 [21:01:37]GetLastDocTimeStamp 1720990655 [21:01:37]current date 1720990900 [21:01:37]FM_GetShiftState [21:01:37]SAM_PROTO_GetShiftState [21:01:37]wFMCommunicate request_size=4 [21:01:37]MH_SAM_APDU [21:01:37]CAPDU: 80 13 01 00 [21:01:37]Write to MH i2c: E2 08 00 40 3E 80 13 01 00 00 00 00 00 FB [21:01:37]Write i2c OK [21:01:37]MH_I2C_Read... [21:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:37]Read from MH i2c: E2 [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: E2 0E 00 [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: E2 0E 00 40 3E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 31 [21:01:37]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:01:37]wFMCommunicate OK [21:01:37]SAM_PROTO_GetShiftState done [21:01:37]FM_GetShiftState done [21:01:37]opened in 1720915483 [21:01:37]opened+sec_in_day 1721001883 [21:01:37]quantity*price = 56023 [21:01:37]sum+1 = 56025 [21:01:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 560.00 Внесено: 560.00 СДАЧА: 0.00 НСП 1% : 4.96 НДС 12% : 59.49 Наличными: 560.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 253 14.07.2024 21:01 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162941 ФПД: 12188952400416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T210140&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162941&fm=12188952400416&tin=02508201610067®Number=0000000000090858&sum=56000 [21:01:38]StoreToDocumentArchive [21:01:38]shift 463 fd 162941 [21:01:38]save to /storage/0463/doc_00162941 [21:01:38]save last doc name /storage/0463/doc_00162941 to /storage/kkm_last_doc_name [21:01:38]save OK [21:01:38]Clear old archive folders... [21:01:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:38]tlvbuf is B6EC8BC0 [21:01:38]SAM_PROTO_ClearQueue [21:01:38]wFMCommunicate request_size=4 [21:01:38]MH_SAM_APDU [21:01:38]CAPDU: 80 09 00 00 [21:01:38]Write to MH i2c: E2 08 00 4D 3E 80 09 00 00 00 00 00 00 FD [21:01:38]Write i2c OK [21:01:38]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 4D 3E 00 90 00 FF [21:01:39]RAPDU: 90 00 [21:01:39]wFMCommunicate OK [21:01:39]SAM_PROTO_ClearQueue done [21:01:39]KKMCreateOFDPacket [21:01:39]OFDProtocolAddRootSTLVToBuf [21:01:39]FM_MakeSignedData [21:01:39]FM_MakeSignedData [21:01:39]SAM_PROTO_SignData [21:01:39]wFMCommunicate request_size=4 [21:01:39]MH_SAM_APDU [21:01:39]CAPDU: 80 0D 01 02 [21:01:39]Write to MH i2c: E2 08 00 4E 3E 80 0D 01 02 00 00 00 00 05 [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 4E 3E 00 90 00 00 [21:01:39]RAPDU: 90 00 [21:01:39]wFMCommunicate OK [21:01:39]wFMCommunicate request_size=255 [21:01:39]MH_SAM_APDU [21:01:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 21 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D8 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 B4 3C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7C 02 00 35 04 06 00 0B [21:01:39]Write to MH i2c: E2 02 01 4F 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 21 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D8 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 B4 3C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7C 02 00 35 04 06 00 0B 00 00 2B [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 4F 3E 00 90 00 01 [21:01:39]RAPDU: 90 00 [21:01:39]wFMCommunicate OK [21:01:39]wFMCommunicate request_size=10 [21:01:39]MH_SAM_APDU [21:01:39]CAPDU: 80 0D 02 02 05 15 F6 2D 92 20 [21:01:39]Write to MH i2c: E2 0D 00 50 3E 80 0D 02 02 05 00 15 F6 2D 92 20 00 00 FC [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 50 3E 00 90 00 02 [21:01:39]RAPDU: 90 00 [21:01:39]wFMCommunicate OK [21:01:39]wFMCommunicate request_size=4 [21:01:39]MH_SAM_APDU [21:01:39]CAPDU: 80 0D 03 02 [21:01:39]Write to MH i2c: E2 08 00 51 3E 80 0D 03 02 00 00 00 00 0A [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 0B 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 0B 00 51 3E 00 CD 44 B0 11 39 B7 44 50 90 00 61 [21:01:39]RAPDU: CD 44 B0 11 39 B7 44 50 90 00 [21:01:39]wFMCommunicate OK [21:01:39]SAM_PROTO_SignData done [21:01:39]FM_MakeSignedData done [21:01:39]CreateOFDProtocolMessage [21:01:39]wFMCommunicate request_size=4 [21:01:39]MH_SAM_APDU [21:01:39]CAPDU: 80 11 00 00 [21:01:39]Write to MH i2c: E2 08 00 52 3E 80 11 00 00 00 00 00 00 0A [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 17 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 17 00 52 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6A [21:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:01:39]wFMCommunicate OK [21:01:39]CreateOFDProtocolMessage done [21:01:39]OFDSenderStorePacket 162941 [21:01:39]StoreOFDPacket docnum=162941 [21:01:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 69 71 07 01 66 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 21 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D8 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 B4 3C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7C 02 00 35 04 06 00 0B 15 F6 2D 92 20 CD 44 B0 11 39 B7 44 50 [21:01:39]CheckFolder [21:01:39]dirname=/storage/ofd_packets [21:01:39]CheckFolder done [21:01:39]ProducePacketName [21:01:39]name=ofd_packets/00162941 [21:01:39]NVStorageSaveData ofd_packets/00162941 [21:01:39]File name is /storage/ofd_packets/00162941 [21:01:39]Write 301 bytes [21:01:39]NVStorageSaveData done [21:01:39]OFDSenderStorePacket done [21:01:39]KKMCreateOFDPacket done [21:01:39]NVStorageSaveData kkm_last_timestamp [21:01:39]File name is /storage/kkm_last_timestamp [21:01:39]Write 4 bytes [21:01:39]NVStorageSaveData done [21:01:39]ExternCall_PrintAddStr [21:01:39]wPrintStart [21:01:39]Write to MH i2c: 01 00 00 53 3E 91 [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: 01 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: 01 07 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: 01 07 00 53 3E 00 00 00 00 00 FF 0F A6 [21:01:39]RasterBufferAndPrint [21:01:39]line Счет N : (1)1319552 [21:01:39]line ИНН: 02508201610067 [21:01:39]line Контрольно-Кассовый Чек [21:01:39]line ПРОДАЖА [21:01:39]line ТРК (МРК, ГНК) : 53 [21:01:39]line Товар: 2710124130 [21:01:39]line Аи-92-К-5 [21:01:39]line 8.450 * 66.30 [21:01:39]line = 560.24 [21:01:39]line НДС 12% НСП 1% [21:01:39]line > о реализуемом товаре [21:01:39]line ОКРУГЛЕНИЕ: -0.24 [21:01:39]line ИТОГО: 560.00 [21:01:39]line Внесено: 560.00 [21:01:39]line СДАЧА: 0.00 [21:01:39]line НСП 1% : 4.96 [21:01:39]line НДС 12% : 59.49 [21:01:39]line Наличными: 560.00 [21:01:39]line Безнал.: 0.00 [21:01:39]line Место: АЗС № 140 "Партнер Нефть" [21:01:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:01:39]line СНО: Общий режим [21:01:39]line Чек 253 14.07.2024 21:01 [21:01:39]line Смена: 463 ФФД: 1.0 [21:01:39]line ЗНМ: 0300000129 [21:01:39]line РНМ: 0000000000090858 [21:01:39]line Версия ККМ: 001 [21:01:39]line ФМ: 0000000000874899 [21:01:39]line ФД: 162941 [21:01:39]line ФПД: 12188952400416 [21:01:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T210140&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162941&fm=12188952400416&tin=02508201610067®Number=0000000000090858&sum=56000 [21:01:39]OFD Sender: Processing packet 162941 [packets to send 106, broken 105] [21:01:39]ProducePacketName [21:01:39]name=ofd_packets/00162941 [21:01:39]OFD Sender: To server: pG, [21:01:39]CommunicateWithHost lk.salyk.kg:30040 [21:01:39]ConnectInit lk.salyk.kg [21:01:39]written 0, free lines is 4095 [21:01:39]Connected sock=10 [21:01:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 69 71 07 01 66 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 21 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D8 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 B4 3C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7C 02 00 35 04 06 00 0B 15 F6 2D 92 20 CD 44 B0 11 39 B7 44 50 [21:01:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 EB 1E 47 00 91 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7C 02 00 F4 03 04 00 C1 E8 93 66 B6 04 01 00 00 0D D6 1E 79 79 53 FD 0D [21:01:40]CommunicateWithHost err = 0 [21:01:40]CheckOFDResponse [21:01:40]1017 (14) - 77093643461234 [21:01:40]1041 (16) - 0000000000874899 [21:01:40]1040 (4) - 162941 [21:01:40]1012 (4) - 14.07.2024 15:03 [21:01:40]1206 (1) - 0 [21:01:40]OFD Sender: Remove packet 162941 [21:01:40]ProducePacketName [21:01:40]name=ofd_packets/00162941 [21:01:40]NVStorageDeleteData [21:01:40]Write to MH i2c: 01 00 00 7E 3E BC [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: 01 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: 01 07 00 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: 01 07 00 7E 3E 00 00 00 00 00 D4 0C A3 [21:01:40]RasterBufferAndPrint [21:01:40]line [21:01:40]line [21:01:40]line [21:01:40]line [21:01:40]line [21:01:40]written 0, free lines is 3294 [21:01:40]MH_Cut [21:01:40]Write to MH i2c: D1 01 00 85 3E 01 95 [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: D1 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: D1 01 00 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: D1 01 00 85 3E 00 94 [21:01:40]Write to MH i2c: 01 00 00 86 3E C4 [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]OFD Sender: No OFD packet to send [21:01:41]*** Cut start [21:01:41]*** Purtial cut [21:01:41]*** Stage 1: CUTSNS_PIN = 1 [21:01:41]Read from MH i2c: 01 [21:01:41]MH_I2C_Read... [21:01:41]*** Stop cut motor [21:01:41]*** Cut end [21:01:41]Read from MH i2c: 01 07 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: 01 07 00 86 3E 00 00 00 00 00 FF 0F D9 [21:01:41]process_action close_receipt done [21:01:41]requested_data is exist [21:01:41]produce_requested_data [21:01:41]requested_item fm.sn is exist - process it [21:01:41]wFMCommunicate request_size=4 [21:01:41]MH_SAM_APDU [21:01:41]CAPDU: 80 11 00 00 [21:01:41]Write to MH i2c: E2 08 00 87 3E 80 11 00 00 00 00 00 00 3F [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:41]Read from MH i2c: E2 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 17 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 17 00 87 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9F [21:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:01:41]wFMCommunicate OK [21:01:41]requested_item fd.num is exist - process it [21:01:41]SAM_PROTO_GetFieldsCounters [21:01:41]wFMCommunicate request_size=4 [21:01:41]MH_SAM_APDU [21:01:41]CAPDU: 80 13 00 00 [21:01:41]Write to MH i2c: E2 08 00 88 3E 80 13 00 00 00 00 00 00 42 [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:41]Read from MH i2c: E2 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 62 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 62 00 88 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7D 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [21:01:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7D 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:41]wFMCommunicate OK [21:01:41]SAM_PROTO_GetFieldsCounters done [21:01:41]requested_item shift.num is exist - process it [21:01:41]requested_item shift.opened is exist - process it [21:01:41]req_shift_opened [21:01:41]FM_GetShiftState [21:01:41]SAM_PROTO_GetShiftState [21:01:41]wFMCommunicate request_size=4 [21:01:41]MH_SAM_APDU [21:01:41]CAPDU: 80 13 01 00 [21:01:41]Write to MH i2c: E2 08 00 89 3E 80 13 01 00 00 00 00 00 44 [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:41]Read from MH i2c: E2 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 0E 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 0E 00 89 3E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7A [21:01:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:01:41]wFMCommunicate OK [21:01:41]SAM_PROTO_GetShiftState done [21:01:41]FM_GetShiftState done [21:01:41]req_shift_opened done [21:01:41]requested_item shift.open_date is exist - process it [21:01:41]req_shift_open_date [21:01:41]req_shift_open_date done [21:01:41]produce_requested_data done [21:01:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162941,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:01:41]process_action_free close_receipt [21:01:41]json_value_free [21:01:41]json_value_free done [21:01:41]process_json_proto returns [21:01:41]Send response to host [21:01:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162941,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:01:41]free response buf [21:01:41]execute_script done [21:01:41]execute_script returns [21:01:41]free content buf [21:01:41]Sock 9.Close socket [21:01:41]Sock 9.Thread stoped [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:48]accept exits with 7 [21:05:48]New connection [21:05:48]New thread 3066879332 created [21:05:48]Thread 3066735972 joined [21:05:48]Waiting for new connection... [21:05:48] Sock 7.Parse request [21:05:48]Sock 7.Check first char [21:05:48]Sock 7.First char is OK [21:05:48]request: POST /json_proto HTTP/1.0 [21:05:48]Method: POST [21:05:48]URL: /json_proto [21:05:48]Method is POST - this is cgi request [21:05:48]url: /json_proto [21:05:48]query_string will be loaded in cgi processing [21:05:48]execute_cgi json_proto POST (null) [21:05:48]execute_cgi path=json_proto method=POST [21:05:48]POST find Content-Length [21:05:48]Host: 172.17.39.67:8080 [21:05:48]Content-Length: 809 [21:05:48]Content-Type: application/json [21:05:48] [21:05:48]POST finish read [21:05:48]Found Content-Length = 809 [21:05:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 96.420, "sum" : 7000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7000.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:48]execute_script... [21:05: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)1319553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 96.420, "sum" : 7000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7000.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:48]POST & json_proto [21:05:48]process_json_proto [21:05:48]json parsed OK: [21:05:48]protocol is kg_v1.0 [21:05:48]action value=close_receipt [21:05:48]process_action close_receipt [21:05:48]cmd_close_receipt [21:05:48]MH_GetDate [21:05:48]Write to MH i2c: F0 00 00 8A 3E B7 [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: F0 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: F0 09 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: F0 09 00 8A 3E 00 AF 3D 94 66 B6 85 93 66 DA [21:05:48]GetLastDocTimeStamp 1720990900 [21:05:48]current date 1720991151 [21:05:48]FM_GetShiftState [21:05:48]SAM_PROTO_GetShiftState [21:05:48]wFMCommunicate request_size=4 [21:05:48]MH_SAM_APDU [21:05:48]CAPDU: 80 13 01 00 [21:05:48]Write to MH i2c: E2 08 00 8B 3E 80 13 01 00 00 00 00 00 46 [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:48]Read from MH i2c: E2 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 0E 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 0E 00 8B 3E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7C [21:05:48]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:05:48]wFMCommunicate OK [21:05:48]SAM_PROTO_GetShiftState done [21:05:48]FM_GetShiftState done [21:05:48]opened in 1720915483 [21:05:48]opened+sec_in_day 1721001883 [21:05:48]quantity*price = 700009 [21:05:48]sum+1 = 700010 [21:05:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7000.09 НСП 1% : 61.95 НДС 12% : 743.37 Наличными: 0.00 Безнал.: 7000.09 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 254 14.07.2024 21:05 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162942 ФПД: 271354319230495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T210551&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162942&fm=271354319230495&tin=02508201610067®Number=0000000000090858&sum=700009 [21:05:49]StoreToDocumentArchive [21:05:49]shift 463 fd 162942 [21:05:49]save to /storage/0463/doc_00162942 [21:05:49]save last doc name /storage/0463/doc_00162942 to /storage/kkm_last_doc_name [21:05:49]save OK [21:05:49]Clear old archive folders... [21:05:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:05:49]tlvbuf is B6F43070 [21:05:49]SAM_PROTO_ClearQueue [21:05:49]wFMCommunicate request_size=4 [21:05:49]MH_SAM_APDU [21:05:49]CAPDU: 80 09 00 00 [21:05:49]Write to MH i2c: E2 08 00 98 3E 80 09 00 00 00 00 00 00 48 [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:49]Read from MH i2c: E2 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 03 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 03 00 98 3E 00 90 00 4A [21:05:49]RAPDU: 90 00 [21:05:49]wFMCommunicate OK [21:05:49]SAM_PROTO_ClearQueue done [21:05:49]KKMCreateOFDPacket [21:05:49]OFDProtocolAddRootSTLVToBuf [21:05:49]FM_MakeSignedData [21:05:49]FM_MakeSignedData [21:05:49]SAM_PROTO_SignData [21:05:49]wFMCommunicate request_size=4 [21:05:49]MH_SAM_APDU [21:05:49]CAPDU: 80 0D 01 02 [21:05:49]Write to MH i2c: E2 08 00 99 3E 80 0D 01 02 00 00 00 00 50 [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:49]Read from MH i2c: E2 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 03 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 03 00 99 3E 00 90 00 4B [21:05:49]RAPDU: 90 00 [21:05:49]wFMCommunicate OK [21:05:49]wFMCommunicate request_size=255 [21:05:49]MH_SAM_APDU [21:05:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 78 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 69 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 AF 3D 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7C 02 00 35 04 06 00 [21:05:49]Write to MH i2c: E2 02 01 9A 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 78 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 69 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 AF 3D 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7C 02 00 35 04 06 00 00 00 1E [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:49]Read from MH i2c: E2 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 03 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 03 00 9A 3E 00 90 00 4C [21:05:49]RAPDU: 90 00 [21:05:49]wFMCommunicate OK [21:05:49]wFMCommunicate request_size=11 [21:05:49]MH_SAM_APDU [21:05:49]CAPDU: 80 0D 02 02 06 F6 CB 99 CE 56 1F [21:05:49]Write to MH i2c: E2 0E 00 9B 3E 80 0D 02 02 06 00 F6 CB 99 CE 56 1F 00 00 FC [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:49]Read from MH i2c: E2 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 03 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 03 00 9B 3E 00 90 00 4D [21:05:49]RAPDU: 90 00 [21:05:49]wFMCommunicate OK [21:05:49]wFMCommunicate request_size=4 [21:05:49]MH_SAM_APDU [21:05:49]CAPDU: 80 0D 03 02 [21:05:49]Write to MH i2c: E2 08 00 9C 3E 80 0D 03 02 00 00 00 00 55 [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:49]Read from MH i2c: E2 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 0B 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 0B 00 9C 3E 00 E4 A6 FC 9A 63 68 5D 42 90 00 E0 [21:05:49]RAPDU: E4 A6 FC 9A 63 68 5D 42 90 00 [21:05:49]wFMCommunicate OK [21:05:49]SAM_PROTO_SignData done [21:05:49]FM_MakeSignedData done [21:05:49]CreateOFDProtocolMessage [21:05:49]wFMCommunicate request_size=4 [21:05:49]MH_SAM_APDU [21:05:49]CAPDU: 80 11 00 00 [21:05:49]Write to MH i2c: E2 08 00 9D 3E 80 11 00 00 00 00 00 00 55 [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:50]Read from MH i2c: E2 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 17 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: E2 17 00 9D 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B5 [21:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:05:50]wFMCommunicate OK [21:05:50]CreateOFDProtocolMessage done [21:05:50]OFDSenderStorePacket 162942 [21:05:50]StoreOFDPacket docnum=162942 [21:05:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A9 75 08 01 1A 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 78 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 69 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 AF 3D 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7C 02 00 35 04 06 00 F6 CB 99 CE 56 1F E4 A6 FC 9A 63 68 5D 42 [21:05:50]CheckFolder [21:05:50]dirname=/storage/ofd_packets [21:05:50]CheckFolder done [21:05:50]ProducePacketName [21:05:50]name=ofd_packets/00162942 [21:05:50]NVStorageSaveData ofd_packets/00162942 [21:05:50]File name is /storage/ofd_packets/00162942 [21:05:50]Write 302 bytes [21:05:50]NVStorageSaveData done [21:05:50]OFDSenderStorePacket done [21:05:50]KKMCreateOFDPacket done [21:05:50]NVStorageSaveData kkm_last_timestamp [21:05:50]File name is /storage/kkm_last_timestamp [21:05:50]Write 4 bytes [21:05:50]NVStorageSaveData done [21:05:50]ExternCall_PrintAddStr [21:05:50]wPrintStart [21:05:50]Write to MH i2c: 01 00 00 9E 3E DC [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: 01 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: 01 07 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: 01 07 00 9E 3E 00 00 00 00 00 FF 0F F1 [21:05:50]RasterBufferAndPrint [21:05:50]line Счет N : (1)1319553 [21:05:50]line ИНН: 02508201610067 [21:05:50]line Контрольно-Кассовый Чек [21:05:50]line ПРОДАЖА [21:05:50]line ТРК (МРК, ГНК) : 11 [21:05:50]line Товар: 2710194210 [21:05:50]line ДТ(л)-К-5 [21:05:50]line 96.420 * 72.60 [21:05:50]line = 7000.09 [21:05:50]line НДС 12% НСП 1% [21:05:50]line > о реализуемом товаре [21:05:50]line ИТОГО: 7000.09 [21:05:50]line НСП 1% : 61.95 [21:05:50]line НДС 12% : 743.37 [21:05:50]line Наличными: 0.00 [21:05:50]line Безнал.: 7000.09 [21:05:50]line Место: АЗС № 140 "Партнер Нефть" [21:05:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:05:50]line СНО: Общий режим [21:05:50]line Чек 254 14.07.2024 21:05 [21:05:50]line Смена: 463 ФФД: 1.0 [21:05:50]line ЗНМ: 0300000129 [21:05:50]line РНМ: 0000000000090858 [21:05:50]line Версия ККМ: 001 [21:05:50]line Платежная система: O! деньги [21:05:50]line ФМ: 0000000000874899 [21:05:50]line ФД: 162942 [21:05:50]line ФПД: 271354319230495 [21:05:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T210551&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162942&fm=271354319230495&tin=02508201610067®Number=0000000000090858&sum=700009 [21:05:50]written 0, free lines is 4095 [21:05:50]OFD Sender: Processing packet 162942 [packets to send 106, broken 105] [21:05:50]ProducePacketName [21:05:50]name=ofd_packets/00162942 [21:05:50]OFD Sender: To server: pG, [21:05:50]CommunicateWithHost lk.salyk.kg:30040 [21:05:50]ConnectInit lk.salyk.kg [21:05:50]Connected sock=10 [21:05:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A9 75 08 01 1A 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 78 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 69 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 AF 3D 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7C 02 00 35 04 06 00 F6 CB 99 CE 56 1F E4 A6 FC 9A 63 68 5D 42 [21:05:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2A 07 47 00 CF F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7C 02 00 F4 03 04 00 BB E9 93 66 B6 04 01 00 00 A9 31 77 5E 0A E6 DA 71 [21:05:50]CommunicateWithHost err = 0 [21:05:50]CheckOFDResponse [21:05:50]1017 (14) - 77093643461234 [21:05:50]1041 (16) - 0000000000874899 [21:05:50]1040 (4) - 162942 [21:05:50]1012 (4) - 14.07.2024 15:07 [21:05:50]1206 (1) - 0 [21:05:50]OFD Sender: Remove packet 162942 [21:05:50]ProducePacketName [21:05:50]name=ofd_packets/00162942 [21:05:50]NVStorageDeleteData [21:05:50]Write to MH i2c: 01 00 00 C8 3E 06 [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: 01 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: 01 07 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: 01 07 00 C8 3E 00 00 00 00 00 EA 0C 03 [21:05:50]RasterBufferAndPrint [21:05:50]line [21:05:50]line [21:05:50]line [21:05:50]line [21:05:50]line [21:05:50]written 0, free lines is 3311 [21:05:50]MH_Cut [21:05:50]Write to MH i2c: D1 01 00 CF 3E 01 DF [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: D1 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: D1 01 00 [21:05:50]MH_I2C_Read... [21:05:50]Read from MH i2c: D1 01 00 CF 3E 00 DE [21:05:50]Write to MH i2c: 01 00 00 D0 3E 0E [21:05:50]Write i2c OK [21:05:50]MH_I2C_Read... [21:05:51]OFD Sender: No OFD packet to send [21:05:51]*** Cut start [21:05:51]*** Purtial cut [21:05:51]*** CUTSNS_PIN = 0 [21:05:51]*** Stage 1: CUTSNS_PIN = 1 [21:05:53]Read from MH i2c: 01 [21:05:53]MH_I2C_Read... [21:05:53]*** Stop cut motor [21:05:53]*** Cut end [21:05:53]Read from MH i2c: 01 07 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 D0 3E 00 00 00 00 00 FF 0F 23 [21:05:53]process_action close_receipt done [21:05:53]requested_data is exist [21:05:53]produce_requested_data [21:05:53]requested_item fm.sn is exist - process it [21:05:53]wFMCommunicate request_size=4 [21:05:53]MH_SAM_APDU [21:05:53]CAPDU: 80 11 00 00 [21:05:53]Write to MH i2c: E2 08 00 D1 3E 80 11 00 00 00 00 00 00 89 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:53]Read from MH i2c: E2 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 17 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 17 00 D1 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E9 [21:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:05:53]wFMCommunicate OK [21:05:53]requested_item fd.num is exist - process it [21:05:53]SAM_PROTO_GetFieldsCounters [21:05:53]wFMCommunicate request_size=4 [21:05:53]MH_SAM_APDU [21:05:53]CAPDU: 80 13 00 00 [21:05:53]Write to MH i2c: E2 08 00 D2 3E 80 13 00 00 00 00 00 00 8C [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:53]Read from MH i2c: E2 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 62 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 62 00 D2 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [21:05:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:53]wFMCommunicate OK [21:05:53]SAM_PROTO_GetFieldsCounters done [21:05:53]requested_item shift.num is exist - process it [21:05:53]requested_item shift.opened is exist - process it [21:05:53]req_shift_opened [21:05:53]FM_GetShiftState [21:05:53]SAM_PROTO_GetShiftState [21:05:53]wFMCommunicate request_size=4 [21:05:53]MH_SAM_APDU [21:05:53]CAPDU: 80 13 01 00 [21:05:53]Write to MH i2c: E2 08 00 D3 3E 80 13 01 00 00 00 00 00 8E [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:53]Read from MH i2c: E2 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 0E 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 0E 00 D3 3E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C4 [21:05:53]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:05:53]wFMCommunicate OK [21:05:53]SAM_PROTO_GetShiftState done [21:05:53]FM_GetShiftState done [21:05:53]req_shift_opened done [21:05:53]requested_item shift.open_date is exist - process it [21:05:53]req_shift_open_date [21:05:53]req_shift_open_date done [21:05:53]produce_requested_data done [21:05:53]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162942,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:05:53]process_action_free close_receipt [21:05:53]json_value_free [21:05:53]json_value_free done [21:05:53]process_json_proto returns [21:05:53]Send response to host [21:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162942,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:05:53]free response buf [21:05:53]execute_script done [21:05:53]execute_script returns [21:05:53]free content buf [21:05:53]Sock 7.Close socket [21:05:53]Sock 7.Thread stoped [21:05:56]OFD Sender: No OFD packet to send [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:56]OFD Sender: No OFD packet to send [21:07:01]OFD Sender: No OFD packet to send [21:07:06]OFD Sender: No OFD packet to send [21:07:11]OFD Sender: No OFD packet to send [21:07:16]OFD Sender: No OFD packet to send [21:07:21]OFD Sender: No OFD packet to send [21:07:26]OFD Sender: No OFD packet to send [21:07:31]OFD Sender: No OFD packet to send [21:07:36]OFD Sender: No OFD packet to send [21:07:41]OFD Sender: No OFD packet to send [21:07:46]OFD Sender: No OFD packet to send [21:07:51]OFD Sender: No OFD packet to send [21:07:56]OFD Sender: No OFD packet to send [21:08:01]OFD Sender: No OFD packet to send [21:08:06]OFD Sender: No OFD packet to send [21:08:11]OFD Sender: No OFD packet to send [21:08:16]OFD Sender: No OFD packet to send [21:08:21]OFD Sender: No OFD packet to send [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:14]accept exits with 9 [21:09:14]New connection [21:09:14]New thread 3066735972 created [21:09:14]Thread 3066879332 joined [21:09:14]Waiting for new connection... [21:09:14] Sock 9.Parse request [21:09:14]Sock 9.Check first char [21:09:14]Sock 9.First char is OK [21:09:14]request: POST /json_proto HTTP/1.0 [21:09:14]Method: POST [21:09:14]URL: /json_proto [21:09:14]Method is POST - this is cgi request [21:09:14]url: /json_proto [21:09:14]query_string will be loaded in cgi processing [21:09:14]execute_cgi json_proto POST (null) [21:09:14]execute_cgi path=json_proto method=POST [21:09:14]POST find Content-Length [21:09:14]Host: 172.17.39.67:8080 [21:09:14]Content-Length: 822 [21:09:14]Content-Type: application/json [21:09:14] [21:09:14]POST finish read [21:09:14]Found Content-Length = 822 [21:09:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.880, "sum" : 499.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 499.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:14]execute_script... [21: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)1319555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.880, "sum" : 499.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 499.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:14]POST & json_proto [21:09:14]process_json_proto [21:09:14]json parsed OK: [21:09:14]protocol is kg_v1.0 [21:09:14]action value=close_receipt [21:09:14]process_action close_receipt [21:09:14]cmd_close_receipt [21:09:14]MH_GetDate [21:09:14]Write to MH i2c: F0 00 00 D4 3E 01 [21:09:14]Write i2c OK [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: F0 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: F0 09 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: F0 09 00 D4 3E 00 7D 3E 94 66 B6 85 93 66 F3 [21:09:14]GetLastDocTimeStamp 1720991151 [21:09:14]current date 1720991357 [21:09:14]FM_GetShiftState [21:09:14]SAM_PROTO_GetShiftState [21:09:14]wFMCommunicate request_size=4 [21:09:14]MH_SAM_APDU [21:09:14]CAPDU: 80 13 01 00 [21:09:14]Write to MH i2c: E2 08 00 D5 3E 80 13 01 00 00 00 00 00 90 [21:09:14]Write i2c OK [21:09:14]MH_I2C_Read... [21:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:14]Read from MH i2c: E2 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 0E 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 0E 00 D5 3E 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C6 [21:09:14]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:09:14]wFMCommunicate OK [21:09:14]SAM_PROTO_GetShiftState done [21:09:14]FM_GetShiftState done [21:09:14]opened in 1720915483 [21:09:14]opened+sec_in_day 1721001883 [21:09:14]quantity*price = 49948 [21:09:14]sum+1 = 49950 [21:09:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 499.49 НСП 1% : 4.42 НДС 12% : 53.04 Наличными: 0.00 Безнал.: 499.49 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 255 14.07.2024 21:09 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162943 ФПД: 39075029361427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T210917&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162943&fm=39075029361427&tin=02508201610067®Number=0000000000090858&sum=49949 [21:09:15]StoreToDocumentArchive [21:09:15]shift 463 fd 162943 [21:09:15]save to /storage/0463/doc_00162943 [21:09:15]save last doc name /storage/0463/doc_00162943 to /storage/kkm_last_doc_name [21:09:15]save OK [21:09:15]Clear old archive folders... [21:09:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:09:15]tlvbuf is B6F46230 [21:09:15]SAM_PROTO_ClearQueue [21:09:15]wFMCommunicate request_size=4 [21:09:15]MH_SAM_APDU [21:09:15]CAPDU: 80 09 00 00 [21:09:15]Write to MH i2c: E2 08 00 E2 3E 80 09 00 00 00 00 00 00 92 [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:15]Read from MH i2c: E2 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 E2 3E 00 90 00 94 [21:09:15]RAPDU: 90 00 [21:09:15]wFMCommunicate OK [21:09:15]SAM_PROTO_ClearQueue done [21:09:15]KKMCreateOFDPacket [21:09:15]OFDProtocolAddRootSTLVToBuf [21:09:15]FM_MakeSignedData [21:09:15]FM_MakeSignedData [21:09:15]SAM_PROTO_SignData [21:09:15]wFMCommunicate request_size=4 [21:09:15]MH_SAM_APDU [21:09:15]CAPDU: 80 0D 01 02 [21:09:15]Write to MH i2c: E2 08 00 E3 3E 80 0D 01 02 00 00 00 00 9A [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:15]Read from MH i2c: E2 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 E3 3E 00 90 00 95 [21:09:15]RAPDU: 90 00 [21:09:15]wFMCommunicate OK [21:09:15]wFMCommunicate request_size=255 [21:09:15]MH_SAM_APDU [21:09:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D 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 B8 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 7D 3E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7F 7C 02 00 35 04 06 00 [21:09:15]Write to MH i2c: E2 02 01 E4 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D 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 B8 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 7D 3E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7F 7C 02 00 35 04 06 00 00 00 0B [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:15]Read from MH i2c: E2 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 E4 3E 00 90 00 96 [21:09:15]RAPDU: 90 00 [21:09:15]wFMCommunicate OK [21:09:15]wFMCommunicate request_size=11 [21:09:15]MH_SAM_APDU [21:09:15]CAPDU: 80 0D 02 02 06 23 89 DD 3E A3 13 [21:09:15]Write to MH i2c: E2 0E 00 E5 3E 80 0D 02 02 06 00 23 89 DD 3E A3 13 00 00 26 [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:15]Read from MH i2c: E2 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 03 00 E5 3E 00 90 00 97 [21:09:15]RAPDU: 90 00 [21:09:15]wFMCommunicate OK [21:09:15]wFMCommunicate request_size=4 [21:09:15]MH_SAM_APDU [21:09:15]CAPDU: 80 0D 03 02 [21:09:15]Write to MH i2c: E2 08 00 E6 3E 80 0D 03 02 00 00 00 00 9F [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:15]Read from MH i2c: E2 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 0B 00 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 0B 00 E6 3E 00 C8 17 1B 6B CB 7F 9D 40 90 00 2C [21:09:15]RAPDU: C8 17 1B 6B CB 7F 9D 40 90 00 [21:09:15]wFMCommunicate OK [21:09:15]SAM_PROTO_SignData done [21:09:15]FM_MakeSignedData done [21:09:15]CreateOFDProtocolMessage [21:09:15]wFMCommunicate request_size=4 [21:09:15]MH_SAM_APDU [21:09:15]CAPDU: 80 11 00 00 [21:09:15]Write to MH i2c: E2 08 00 E7 3E 80 11 00 00 00 00 00 00 9F [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:16]Read from MH i2c: E2 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 17 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 17 00 E7 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FF [21:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:09:16]wFMCommunicate OK [21:09:16]CreateOFDProtocolMessage done [21:09:16]OFDSenderStorePacket 162943 [21:09:16]StoreOFDPacket docnum=162943 [21:09:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 69 FD 08 01 67 46 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D 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 B8 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 7D 3E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7F 7C 02 00 35 04 06 00 23 89 DD 3E A3 13 C8 17 1B 6B CB 7F 9D 40 [21:09:16]CheckFolder [21:09:16]dirname=/storage/ofd_packets [21:09:16]CheckFolder done [21:09:16]ProducePacketName [21:09:16]name=ofd_packets/00162943 [21:09:16]NVStorageSaveData ofd_packets/00162943 [21:09:16]File name is /storage/ofd_packets/00162943 [21:09:16]Write 302 bytes [21:09:16]NVStorageSaveData done [21:09:16]OFDSenderStorePacket done [21:09:16]KKMCreateOFDPacket done [21:09:16]NVStorageSaveData kkm_last_timestamp [21:09:16]File name is /storage/kkm_last_timestamp [21:09:16]Write 4 bytes [21:09:16]NVStorageSaveData done [21:09:16]ExternCall_PrintAddStr [21:09:16]wPrintStart [21:09:16]Write to MH i2c: 01 00 00 E8 3E 26 [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: 01 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: 01 07 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: 01 07 00 E8 3E 00 00 00 00 00 FF 0F 3B [21:09:16]RasterBufferAndPrint [21:09:16]line Счет N : (1)1319555 [21:09:16]line ИНН: 02508201610067 [21:09:16]line Контрольно-Кассовый Чек [21:09:16]line ПРОДАЖА [21:09:16]line ТРК (МРК, ГНК) : 61 [21:09:16]line Товар: 2710194210 [21:09:16]line ДТ(л)-К-5 [21:09:16]line 6.880 * 72.60 [21:09:16]line = 499.49 [21:09:16]line НДС 12% НСП 1% [21:09:16]line > о реализуемом товаре [21:09:16]line ИТОГО: 499.49 [21:09:16]line НСП 1% : 4.42 [21:09:16]line НДС 12% : 53.04 [21:09:16]line Наличными: 0.00 [21:09:16]line Безнал.: 499.49 [21:09:16]line Место: АЗС № 140 "Партнер Нефть" [21:09:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:09:16]line СНО: Общий режим [21:09:16]line Чек 255 14.07.2024 21:09 [21:09:16]line Смена: 463 ФФД: 1.0 [21:09:16]line ЗНМ: 0300000129 [21:09:16]line РНМ: 0000000000090858 [21:09:16]line Версия ККМ: 001 [21:09:16]line Платежная система: Бакай Банк [21:09:16]line ФМ: 0000000000874899 [21:09:16]line ФД: 162943 [21:09:16]line ФПД: 39075029361427 [21:09:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T210917&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162943&fm=39075029361427&tin=02508201610067®Number=0000000000090858&sum=49949 [21:09:16]written 0, free lines is 4095 [21:09:16]OFD Sender: Processing packet 162943 [packets to send 106, broken 105] [21:09:16]ProducePacketName [21:09:16]name=ofd_packets/00162943 [21:09:16]OFD Sender: To server: pG, [21:09:16]CommunicateWithHost lk.salyk.kg:30040 [21:09:16]ConnectInit lk.salyk.kg [21:09:16]Connected sock=11 [21:09:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 69 FD 08 01 67 46 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1D C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D 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 B8 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 7D 3E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7F 7C 02 00 35 04 06 00 23 89 DD 3E A3 13 C8 17 1B 6B CB 7F 9D 40 [21:09:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 60 0A 47 00 0C 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7F 7C 02 00 F4 03 04 00 89 EA 93 66 B6 04 01 00 00 F7 B1 AA F2 E4 83 D5 28 [21:09:16]CommunicateWithHost err = 0 [21:09:16]CheckOFDResponse [21:09:16]1017 (14) - 77093643461234 [21:09:16]1041 (16) - 0000000000874899 [21:09:16]1040 (4) - 162943 [21:09:16]1012 (4) - 14.07.2024 15:11 [21:09:16]1206 (1) - 0 [21:09:16]OFD Sender: Remove packet 162943 [21:09:16]ProducePacketName [21:09:16]name=ofd_packets/00162943 [21:09:16]NVStorageDeleteData [21:09:16]Write to MH i2c: 01 00 00 12 3F 51 [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: 01 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: 01 07 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: 01 07 00 12 3F 00 00 00 00 00 F3 0C 57 [21:09:16]RasterBufferAndPrint [21:09:16]line [21:09:16]line [21:09:16]line [21:09:16]line [21:09:16]line [21:09:16]written 0, free lines is 3320 [21:09:16]MH_Cut [21:09:16]Write to MH i2c: D1 01 00 19 3F 01 2A [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: D1 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: D1 01 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: D1 01 00 19 3F 00 29 [21:09:16]Write to MH i2c: 01 00 00 1A 3F 59 [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:17]OFD Sender: No OFD packet to send [21:09:17]*** Cut start [21:09:17]*** Purtial cut [21:09:17]*** Stage 1: CUTSNS_PIN = 1 [21:09:17]Read from MH i2c: 01 [21:09:17]MH_I2C_Read... [21:09:17]*** Stop cut motor [21:09:17]*** Cut end [21:09:17]Read from MH i2c: 01 07 00 [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: 01 07 00 1A 3F 00 00 00 00 00 FF 0F 6E [21:09:17]process_action close_receipt done [21:09:17]requested_data is exist [21:09:17]produce_requested_data [21:09:17]requested_item fm.sn is exist - process it [21:09:17]wFMCommunicate request_size=4 [21:09:17]MH_SAM_APDU [21:09:17]CAPDU: 80 11 00 00 [21:09:17]Write to MH i2c: E2 08 00 1B 3F 80 11 00 00 00 00 00 00 D4 [21:09:17]Write i2c OK [21:09:17]MH_I2C_Read... [21:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:17]Read from MH i2c: E2 [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: E2 17 00 [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: E2 17 00 1B 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 34 [21:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:09:17]wFMCommunicate OK [21:09:17]requested_item fd.num is exist - process it [21:09:17]SAM_PROTO_GetFieldsCounters [21:09:17]wFMCommunicate request_size=4 [21:09:17]MH_SAM_APDU [21:09:17]CAPDU: 80 13 00 00 [21:09:17]Write to MH i2c: E2 08 00 1C 3F 80 13 00 00 00 00 00 00 D7 [21:09:17]Write i2c OK [21:09:17]MH_I2C_Read... [21:09:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:18]Read from MH i2c: E2 [21:09:18]MH_I2C_Read... [21:09:18]Read from MH i2c: E2 62 00 [21:09:18]MH_I2C_Read... [21:09:18]Read from MH i2c: E2 62 00 1C 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [21:09:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:18]wFMCommunicate OK [21:09:18]SAM_PROTO_GetFieldsCounters done [21:09:18]requested_item shift.num is exist - process it [21:09:18]requested_item shift.opened is exist - process it [21:09:18]req_shift_opened [21:09:18]FM_GetShiftState [21:09:18]SAM_PROTO_GetShiftState [21:09:18]wFMCommunicate request_size=4 [21:09:18]MH_SAM_APDU [21:09:18]CAPDU: 80 13 01 00 [21:09:18]Write to MH i2c: E2 08 00 1D 3F 80 13 01 00 00 00 00 00 D9 [21:09:18]Write i2c OK [21:09:18]MH_I2C_Read... [21:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:18]Read from MH i2c: E2 [21:09:18]MH_I2C_Read... [21:09:18]Read from MH i2c: E2 0E 00 [21:09:18]MH_I2C_Read... [21:09:18]Read from MH i2c: E2 0E 00 1D 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 0F [21:09:18]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:09:18]wFMCommunicate OK [21:09:18]SAM_PROTO_GetShiftState done [21:09:18]FM_GetShiftState done [21:09:18]req_shift_opened done [21:09:18]requested_item shift.open_date is exist - process it [21:09:18]req_shift_open_date [21:09:18]req_shift_open_date done [21:09:18]produce_requested_data done [21:09:18]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162943,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:09:18]process_action_free close_receipt [21:09:18]json_value_free [21:09:18]json_value_free done [21:09:18]process_json_proto returns [21:09:18]Send response to host [21:09:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162943,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:09:18]free response buf [21:09:18]execute_script done [21:09:18]execute_script returns [21:09:18]free content buf [21:09:18]Sock 9.Close socket [21:09:18]Sock 9.Thread stoped [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:46]accept exits with 7 [21:10:46]New connection [21:10:46]New thread 3066879332 created [21:10:46]Thread 3066735972 joined [21:10:46]Waiting for new connection... [21:10:46] Sock 7.Parse request [21:10:46]Sock 7.Check first char [21:10:46]Sock 7.First char is OK [21:10:46]request: POST /json_proto HTTP/1.0 [21:10:46]Method: POST [21:10:46]URL: /json_proto [21:10:46]Method is POST - this is cgi request [21:10:46]url: /json_proto [21:10:46]query_string will be loaded in cgi processing [21:10:46]execute_cgi json_proto POST (null) [21:10:46]execute_cgi path=json_proto method=POST [21:10:46]POST find Content-Length [21:10:46]Host: 172.17.39.67:8080 [21:10:46]Content-Length: 825 [21:10:46]Content-Type: application/json [21:10:46] [21:10:46]POST finish read [21:10:46]Found Content-Length = 825 [21:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 70.240, "sum" : 5099.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 5099.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:46]execute_script... [21:10: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)1319554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 70.240, "sum" : 5099.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 5099.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:46]POST & json_proto [21:10:46]process_json_proto [21:10:46]json parsed OK: [21:10:46]protocol is kg_v1.0 [21:10:46]action value=close_receipt [21:10:46]process_action close_receipt [21:10:46]cmd_close_receipt [21:10:46]MH_GetDate [21:10:46]Write to MH i2c: F0 00 00 1E 3F 4C [21:10:46]Write i2c OK [21:10:46]MH_I2C_Read... [21:10:46]Read from MH i2c: F0 [21:10:46]MH_I2C_Read... [21:10:46]Read from MH i2c: F0 09 00 [21:10:46]MH_I2C_Read... [21:10:46]Read from MH i2c: F0 09 00 1E 3F 00 D9 3E 94 66 B6 85 93 66 9A [21:10:46]GetLastDocTimeStamp 1720991357 [21:10:46]current date 1720991449 [21:10:46]FM_GetShiftState [21:10:46]SAM_PROTO_GetShiftState [21:10:46]wFMCommunicate request_size=4 [21:10:46]MH_SAM_APDU [21:10:46]CAPDU: 80 13 01 00 [21:10:46]Write to MH i2c: E2 08 00 1F 3F 80 13 01 00 00 00 00 00 DB [21:10:46]Write i2c OK [21:10:46]MH_I2C_Read... [21:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:46]Read from MH i2c: E2 [21:10:46]MH_I2C_Read... [21:10:46]Read from MH i2c: E2 0E 00 [21:10:46]MH_I2C_Read... [21:10:46]Read from MH i2c: E2 0E 00 1F 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 11 [21:10:46]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:10:46]wFMCommunicate OK [21:10:46]SAM_PROTO_GetShiftState done [21:10:46]FM_GetShiftState done [21:10:46]opened in 1720915483 [21:10:46]opened+sec_in_day 1721001883 [21:10:46]quantity*price = 509942 [21:10:46]sum+1 = 509943 [21:10:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5099.42 НСП 1% : 45.13 НДС 12% : 541.53 Наличными: 0.00 Безнал.: 5099.42 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 256 14.07.2024 21:10 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162944 ФПД: 220964116739188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T211049&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162944&fm=220964116739188&tin=02508201610067®Number=0000000000090858&sum=509942 [21:10:48]StoreToDocumentArchive [21:10:48]shift 463 fd 162944 [21:10:48]save to /storage/0463/doc_00162944 [21:10:48]save last doc name /storage/0463/doc_00162944 to /storage/kkm_last_doc_name [21:10:48]save OK [21:10:48]Clear old archive folders... [21:10:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:10:48]tlvbuf is 013E89C0 [21:10:48]SAM_PROTO_ClearQueue [21:10:48]wFMCommunicate request_size=4 [21:10:48]MH_SAM_APDU [21:10:48]CAPDU: 80 09 00 00 [21:10:48]Write to MH i2c: E2 08 00 2C 3F 80 09 00 00 00 00 00 00 DD [21:10:48]Write i2c OK [21:10:48]MH_I2C_Read... [21:10:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:48]Read from MH i2c: E2 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 03 00 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 03 00 2C 3F 00 90 00 DF [21:10:48]RAPDU: 90 00 [21:10:48]wFMCommunicate OK [21:10:48]SAM_PROTO_ClearQueue done [21:10:48]KKMCreateOFDPacket [21:10:48]OFDProtocolAddRootSTLVToBuf [21:10:48]FM_MakeSignedData [21:10:48]FM_MakeSignedData [21:10:48]SAM_PROTO_SignData [21:10:48]wFMCommunicate request_size=4 [21:10:48]MH_SAM_APDU [21:10:48]CAPDU: 80 0D 01 02 [21:10:48]Write to MH i2c: E2 08 00 2D 3F 80 0D 01 02 00 00 00 00 E5 [21:10:48]Write i2c OK [21:10:48]MH_I2C_Read... [21:10:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:48]Read from MH i2c: E2 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 03 00 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 03 00 2D 3F 00 90 00 E0 [21:10:48]RAPDU: 90 00 [21:10:48]wFMCommunicate OK [21:10:48]wFMCommunicate request_size=255 [21:10:48]MH_SAM_APDU [21:10:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 12 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F6 C7 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 C7 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 D3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 C7 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 D9 3E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 80 7C 02 00 35 04 06 00 [21:10:48]Write to MH i2c: E2 02 01 2E 3F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 12 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F6 C7 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 C7 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 D3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 C7 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 D9 3E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 80 7C 02 00 35 04 06 00 00 00 61 [21:10:48]Write i2c OK [21:10:48]MH_I2C_Read... [21:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:48]Read from MH i2c: E2 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 03 00 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 03 00 2E 3F 00 90 00 E1 [21:10:48]RAPDU: 90 00 [21:10:48]wFMCommunicate OK [21:10:48]wFMCommunicate request_size=11 [21:10:48]MH_SAM_APDU [21:10:48]CAPDU: 80 0D 02 02 06 C8 F7 37 AF B4 74 [21:10:48]Write to MH i2c: E2 0E 00 2F 3F 80 0D 02 02 06 00 C8 F7 37 AF B4 74 00 00 C1 [21:10:48]Write i2c OK [21:10:48]MH_I2C_Read... [21:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:48]Read from MH i2c: E2 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 03 00 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 03 00 2F 3F 00 90 00 E2 [21:10:48]RAPDU: 90 00 [21:10:48]wFMCommunicate OK [21:10:48]wFMCommunicate request_size=4 [21:10:48]MH_SAM_APDU [21:10:48]CAPDU: 80 0D 03 02 [21:10:48]Write to MH i2c: E2 08 00 30 3F 80 0D 03 02 00 00 00 00 EA [21:10:48]Write i2c OK [21:10:48]MH_I2C_Read... [21:10:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:48]Read from MH i2c: E2 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 0B 00 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 0B 00 30 3F 00 C7 0E 7F BB 16 4E D6 78 90 00 AC [21:10:48]RAPDU: C7 0E 7F BB 16 4E D6 78 90 00 [21:10:48]wFMCommunicate OK [21:10:48]SAM_PROTO_SignData done [21:10:48]FM_MakeSignedData done [21:10:48]CreateOFDProtocolMessage [21:10:48]wFMCommunicate request_size=4 [21:10:48]MH_SAM_APDU [21:10:48]CAPDU: 80 11 00 00 [21:10:48]Write to MH i2c: E2 08 00 31 3F 80 11 00 00 00 00 00 00 EA [21:10:48]Write i2c OK [21:10:48]MH_I2C_Read... [21:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:48]Read from MH i2c: E2 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 17 00 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: E2 17 00 31 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4A [21:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:10:48]wFMCommunicate OK [21:10:48]CreateOFDProtocolMessage done [21:10:48]OFDSenderStorePacket 162944 [21:10:48]StoreOFDPacket docnum=162944 [21:10:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 22 29 08 01 19 62 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 12 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F6 C7 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 C7 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 D3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 C7 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 D9 3E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 80 7C 02 00 35 04 06 00 C8 F7 37 AF B4 74 C7 0E 7F BB 16 4E D6 78 [21:10:48]CheckFolder [21:10:48]dirname=/storage/ofd_packets [21:10:48]CheckFolder done [21:10:48]ProducePacketName [21:10:48]name=ofd_packets/00162944 [21:10:48]NVStorageSaveData ofd_packets/00162944 [21:10:48]File name is /storage/ofd_packets/00162944 [21:10:48]Write 302 bytes [21:10:48]NVStorageSaveData done [21:10:48]OFDSenderStorePacket done [21:10:48]KKMCreateOFDPacket done [21:10:48]NVStorageSaveData kkm_last_timestamp [21:10:48]File name is /storage/kkm_last_timestamp [21:10:48]Write 4 bytes [21:10:48]NVStorageSaveData done [21:10:48]ExternCall_PrintAddStr [21:10:48]wPrintStart [21:10:48]Write to MH i2c: 01 00 00 32 3F 71 [21:10:48]Write i2c OK [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: 01 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: 01 07 00 [21:10:48]MH_I2C_Read... [21:10:48]Read from MH i2c: 01 07 00 32 3F 00 00 00 00 00 FF 0F 86 [21:10:48]RasterBufferAndPrint [21:10:48]line Счет N : (1)1319554 [21:10:48]line ИНН: 02508201610067 [21:10:48]line Контрольно-Кассовый Чек [21:10:48]line ПРОДАЖА [21:10:48]line ТРК (МРК, ГНК) : 51 [21:10:48]line Товар: 2710194210 [21:10:48]line ДТ(л)-К-5 [21:10:48]line 70.240 * 72.60 [21:10:48]line = 5099.42 [21:10:48]line НДС 12% НСП 1% [21:10:48]line > о реализуемом товаре [21:10:48]line ИТОГО: 5099.42 [21:10:48]line НСП 1% : 45.13 [21:10:48]line НДС 12% : 541.53 [21:10:48]line Наличными: 0.00 [21:10:48]line Безнал.: 5099.42 [21:10:48]line Место: АЗС № 140 "Партнер Нефть" [21:10:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:10:48]line СНО: Общий режим [21:10:48]line Чек 256 14.07.2024 21:10 [21:10:48]line Смена: 463 ФФД: 1.0 [21:10:48]line ЗНМ: 0300000129 [21:10:48]line РНМ: 0000000000090858 [21:10:48]line Версия ККМ: 001 [21:10:48]line Платежная система: Бакай Банк [21:10:48]line ФМ: 0000000000874899 [21:10:48]line ФД: 162944 [21:10:48]line ФПД: 220964116739188 [21:10:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T211049&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162944&fm=220964116739188&tin=02508201610067®Number=0000000000090858&sum=509942 [21:10:48]OFD Sender: Processing packet 162944 [packets to send 106, broken 105] [21:10:48]ProducePacketName [21:10:48]name=ofd_packets/00162944 [21:10:48]OFD Sender: To server: pG, [21:10:48]CommunicateWithHost lk.salyk.kg:30040 [21:10:48]ConnectInit lk.salyk.kg [21:10:48]written 0, free lines is 4095 [21:10:49]Connected sock=10 [21:10:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 22 29 08 01 19 62 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 12 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F6 C7 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 C7 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 D3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 C7 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 D9 3E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 80 7C 02 00 35 04 06 00 C8 F7 37 AF B4 74 C7 0E 7F BB 16 4E D6 78 [21:10:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7B 4D 47 00 49 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 80 7C 02 00 F4 03 04 00 E6 EA 93 66 B6 04 01 00 00 D8 CD 65 FC 8C 7F 63 53 [21:10:49]CommunicateWithHost err = 0 [21:10:49]CheckOFDResponse [21:10:49]1017 (14) - 77093643461234 [21:10:49]1041 (16) - 0000000000874899 [21:10:49]1040 (4) - 162944 [21:10:49]1012 (4) - 14.07.2024 15:12 [21:10:49]1206 (1) - 0 [21:10:49]OFD Sender: Remove packet 162944 [21:10:49]ProducePacketName [21:10:49]name=ofd_packets/00162944 [21:10:49]NVStorageDeleteData [21:10:49]Write to MH i2c: 01 00 00 5C 3F 9B [21:10:49]Write i2c OK [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: 01 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: 01 07 00 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: 01 07 00 5C 3F 00 00 00 00 00 E9 0C 97 [21:10:49]RasterBufferAndPrint [21:10:49]line [21:10:49]line [21:10:49]line [21:10:49]line [21:10:49]line [21:10:49]written 0, free lines is 3314 [21:10:49]MH_Cut [21:10:49]Write to MH i2c: D1 01 00 63 3F 01 74 [21:10:49]Write i2c OK [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: D1 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: D1 01 00 [21:10:49]MH_I2C_Read... [21:10:49]Read from MH i2c: D1 01 00 63 3F 00 73 [21:10:49]Write to MH i2c: 01 00 00 64 3F A3 [21:10:49]Write i2c OK [21:10:49]MH_I2C_Read... [21:10:49]OFD Sender: No OFD packet to send [21:10:50]*** Cut start [21:10:50]*** Purtial cut [21:10:50]*** CUTSNS_PIN = 0 [21:10:50]*** Stage 1: CUTSNS_PIN = 1 [21:10:52]Read from MH i2c: 01 [21:10:52]MH_I2C_Read... [21:10:52]*** Stop cut motor [21:10:52]*** Cut end [21:10:52]Read from MH i2c: 01 07 00 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: 01 07 00 64 3F 00 00 00 00 00 FF 0F B8 [21:10:52]process_action close_receipt done [21:10:52]requested_data is exist [21:10:52]produce_requested_data [21:10:52]requested_item fm.sn is exist - process it [21:10:52]wFMCommunicate request_size=4 [21:10:52]MH_SAM_APDU [21:10:52]CAPDU: 80 11 00 00 [21:10:52]Write to MH i2c: E2 08 00 65 3F 80 11 00 00 00 00 00 00 1E [21:10:52]Write i2c OK [21:10:52]MH_I2C_Read... [21:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:52]Read from MH i2c: E2 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: E2 17 00 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: E2 17 00 65 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7E [21:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:10:52]wFMCommunicate OK [21:10:52]requested_item fd.num is exist - process it [21:10:52]SAM_PROTO_GetFieldsCounters [21:10:52]wFMCommunicate request_size=4 [21:10:52]MH_SAM_APDU [21:10:52]CAPDU: 80 13 00 00 [21:10:52]Write to MH i2c: E2 08 00 66 3F 80 13 00 00 00 00 00 00 21 [21:10:52]Write i2c OK [21:10:52]MH_I2C_Read... [21:10:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:52]Read from MH i2c: E2 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: E2 62 00 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: E2 62 00 66 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 80 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [21:10:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 80 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:52]wFMCommunicate OK [21:10:52]SAM_PROTO_GetFieldsCounters done [21:10:52]requested_item shift.num is exist - process it [21:10:52]requested_item shift.opened is exist - process it [21:10:52]req_shift_opened [21:10:52]FM_GetShiftState [21:10:52]SAM_PROTO_GetShiftState [21:10:52]wFMCommunicate request_size=4 [21:10:52]MH_SAM_APDU [21:10:52]CAPDU: 80 13 01 00 [21:10:52]Write to MH i2c: E2 08 00 67 3F 80 13 01 00 00 00 00 00 23 [21:10:52]Write i2c OK [21:10:52]MH_I2C_Read... [21:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:52]Read from MH i2c: E2 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: E2 0E 00 [21:10:52]MH_I2C_Read... [21:10:52]Read from MH i2c: E2 0E 00 67 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 59 [21:10:52]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:10:52]wFMCommunicate OK [21:10:52]SAM_PROTO_GetShiftState done [21:10:52]FM_GetShiftState done [21:10:52]req_shift_opened done [21:10:52]requested_item shift.open_date is exist - process it [21:10:52]req_shift_open_date [21:10:52]req_shift_open_date done [21:10:52]produce_requested_data done [21:10:52]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162944,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:10:52]process_action_free close_receipt [21:10:52]json_value_free [21:10:52]json_value_free done [21:10:52]process_json_proto returns [21:10:52]Send response to host [21:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162944,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:10:52]free response buf [21:10:52]execute_script done [21:10:52]execute_script returns [21:10:52]free content buf [21:10:52]Sock 7.Close socket [21:10:52]Sock 7.Thread stoped [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:28]accept exits with 9 [21:12:28]New connection [21:12:28]New thread 3066735972 created [21:12:28]Thread 3066879332 joined [21:12:28]Waiting for new connection... [21:12:28] Sock 9.Parse request [21:12:28]Sock 9.Check first char [21:12:28]Sock 9.First char is OK [21:12:28]request: POST /json_proto HTTP/1.0 [21:12:28]Method: POST [21:12:28]URL: /json_proto [21:12:28]Method is POST - this is cgi request [21:12:28]url: /json_proto [21:12:28]query_string will be loaded in cgi processing [21:12:28]execute_cgi json_proto POST (null) [21:12:28]execute_cgi path=json_proto method=POST [21:12:28]POST find Content-Length [21:12:28]Host: 172.17.39.67:8080 [21:12:28]Content-Length: 825 [21:12:28]Content-Type: application/json [21:12:28] [21:12:28]POST finish read [21:12:28]Found Content-Length = 825 [21:12:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 89.520, "sum" : 6499.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 6499.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:28]execute_script... [21:12: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)1319556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 89.520, "sum" : 6499.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 6499.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:28]POST & json_proto [21:12:28]process_json_proto [21:12:28]json parsed OK: [21:12:28]protocol is kg_v1.0 [21:12:28]action value=close_receipt [21:12:28]process_action close_receipt [21:12:28]cmd_close_receipt [21:12:28]MH_GetDate [21:12:28]Write to MH i2c: F0 00 00 68 3F 96 [21:12:28]Write i2c OK [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: F0 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: F0 09 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: F0 09 00 68 3F 00 3F 3F 94 66 B6 85 93 66 4B [21:12:28]GetLastDocTimeStamp 1720991449 [21:12:28]current date 1720991551 [21:12:28]FM_GetShiftState [21:12:28]SAM_PROTO_GetShiftState [21:12:28]wFMCommunicate request_size=4 [21:12:28]MH_SAM_APDU [21:12:28]CAPDU: 80 13 01 00 [21:12:28]Write to MH i2c: E2 08 00 69 3F 80 13 01 00 00 00 00 00 25 [21:12:28]Write i2c OK [21:12:28]MH_I2C_Read... [21:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:28]Read from MH i2c: E2 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 0E 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 0E 00 69 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5B [21:12:28]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:12:28]wFMCommunicate OK [21:12:28]SAM_PROTO_GetShiftState done [21:12:28]FM_GetShiftState done [21:12:28]opened in 1720915483 [21:12:28]opened+sec_in_day 1721001883 [21:12:28]quantity*price = 649915 [21:12:28]sum+1 = 649916 [21:12:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6499.15 НСП 1% : 57.51 НДС 12% : 690.17 Наличными: 0.00 Безнал.: 6499.15 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 257 14.07.2024 21:12 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162945 ФПД: 246051574119493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T211231&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162945&fm=246051574119493&tin=02508201610067®Number=0000000000090858&sum=649915 [21:12:29]StoreToDocumentArchive [21:12:29]shift 463 fd 162945 [21:12:29]save to /storage/0463/doc_00162945 [21:12:29]save last doc name /storage/0463/doc_00162945 to /storage/kkm_last_doc_name [21:12:29]save OK [21:12:29]Clear old archive folders... [21:12:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:12:29]tlvbuf is 013FB850 [21:12:29]SAM_PROTO_ClearQueue [21:12:29]wFMCommunicate request_size=4 [21:12:29]MH_SAM_APDU [21:12:29]CAPDU: 80 09 00 00 [21:12:29]Write to MH i2c: E2 08 00 76 3F 80 09 00 00 00 00 00 00 27 [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:29]Read from MH i2c: E2 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 03 00 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 03 00 76 3F 00 90 00 29 [21:12:29]RAPDU: 90 00 [21:12:29]wFMCommunicate OK [21:12:29]SAM_PROTO_ClearQueue done [21:12:29]KKMCreateOFDPacket [21:12:29]OFDProtocolAddRootSTLVToBuf [21:12:29]FM_MakeSignedData [21:12:29]FM_MakeSignedData [21:12:29]SAM_PROTO_SignData [21:12:29]wFMCommunicate request_size=4 [21:12:29]MH_SAM_APDU [21:12:29]CAPDU: 80 0D 01 02 [21:12:29]Write to MH i2c: E2 08 00 77 3F 80 0D 01 02 00 00 00 00 2F [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:29]Read from MH i2c: E2 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 03 00 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 03 00 77 3F 00 90 00 2A [21:12:29]RAPDU: 90 00 [21:12:29]wFMCommunicate OK [21:12:29]wFMCommunicate request_size=255 [21:12:29]MH_SAM_APDU [21:12:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B0 5D 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 BB EA 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB EA 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB EA 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 3F 3F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 81 7C 02 00 35 04 06 00 [21:12:29]Write to MH i2c: E2 02 01 78 3F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B0 5D 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 BB EA 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB EA 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB EA 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 3F 3F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 81 7C 02 00 35 04 06 00 00 00 93 [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:29]Read from MH i2c: E2 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 03 00 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 03 00 78 3F 00 90 00 2B [21:12:29]RAPDU: 90 00 [21:12:29]wFMCommunicate OK [21:12:29]wFMCommunicate request_size=11 [21:12:29]MH_SAM_APDU [21:12:29]CAPDU: 80 0D 02 02 06 DF C8 58 AB FC 45 [21:12:29]Write to MH i2c: E2 0E 00 79 3F 80 0D 02 02 06 00 DF C8 58 AB FC 45 00 00 29 [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:29]Read from MH i2c: E2 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 03 00 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 03 00 79 3F 00 90 00 2C [21:12:29]RAPDU: 90 00 [21:12:29]wFMCommunicate OK [21:12:29]wFMCommunicate request_size=4 [21:12:29]MH_SAM_APDU [21:12:29]CAPDU: 80 0D 03 02 [21:12:29]Write to MH i2c: E2 08 00 7A 3F 80 0D 03 02 00 00 00 00 34 [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:29]Read from MH i2c: E2 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 0B 00 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 0B 00 7A 3F 00 31 1A D4 CB C1 AC 0B FC 90 00 93 [21:12:29]RAPDU: 31 1A D4 CB C1 AC 0B FC 90 00 [21:12:29]wFMCommunicate OK [21:12:29]SAM_PROTO_SignData done [21:12:29]FM_MakeSignedData done [21:12:29]CreateOFDProtocolMessage [21:12:29]wFMCommunicate request_size=4 [21:12:29]MH_SAM_APDU [21:12:29]CAPDU: 80 11 00 00 [21:12:29]Write to MH i2c: E2 08 00 7B 3F 80 11 00 00 00 00 00 00 34 [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:29]Read from MH i2c: E2 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 17 00 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: E2 17 00 7B 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 94 [21:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:12:29]wFMCommunicate OK [21:12:29]CreateOFDProtocolMessage done [21:12:29]OFDSenderStorePacket 162945 [21:12:29]StoreOFDPacket docnum=162945 [21:12:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 9E 4D 08 01 35 1A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B0 5D 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 BB EA 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB EA 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB EA 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 3F 3F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 81 7C 02 00 35 04 06 00 DF C8 58 AB FC 45 31 1A D4 CB C1 AC 0B FC [21:12:29]CheckFolder [21:12:29]dirname=/storage/ofd_packets [21:12:29]CheckFolder done [21:12:29]ProducePacketName [21:12:29]name=ofd_packets/00162945 [21:12:29]NVStorageSaveData ofd_packets/00162945 [21:12:29]File name is /storage/ofd_packets/00162945 [21:12:29]Write 302 bytes [21:12:29]NVStorageSaveData done [21:12:29]OFDSenderStorePacket done [21:12:29]KKMCreateOFDPacket done [21:12:29]NVStorageSaveData kkm_last_timestamp [21:12:29]File name is /storage/kkm_last_timestamp [21:12:29]Write 4 bytes [21:12:29]NVStorageSaveData done [21:12:29]ExternCall_PrintAddStr [21:12:29]wPrintStart [21:12:29]Write to MH i2c: 01 00 00 7C 3F BB [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: 01 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: 01 07 00 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: 01 07 00 7C 3F 00 00 00 00 00 FF 0F D0 [21:12:29]RasterBufferAndPrint [21:12:29]line Счет N : (1)1319556 [21:12:29]line ИНН: 02508201610067 [21:12:29]line Контрольно-Кассовый Чек [21:12:29]line ПРОДАЖА [21:12:29]line ТРК (МРК, ГНК) : 21 [21:12:29]line Товар: 2710194210 [21:12:29]line ДТ(л)-К-5 [21:12:29]line 89.520 * 72.60 [21:12:29]line = 6499.15 [21:12:29]line НДС 12% НСП 1% [21:12:29]line > о реализуемом товаре [21:12:29]line ИТОГО: 6499.15 [21:12:29]line НСП 1% : 57.51 [21:12:29]line НДС 12% : 690.17 [21:12:29]line Наличными: 0.00 [21:12:29]line Безнал.: 6499.15 [21:12:29]line Место: АЗС № 140 "Партнер Нефть" [21:12:29]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:12:29]line СНО: Общий режим [21:12:29]line Чек 257 14.07.2024 21:12 [21:12:29]line Смена: 463 ФФД: 1.0 [21:12:29]line ЗНМ: 0300000129 [21:12:29]line РНМ: 0000000000090858 [21:12:29]line Версия ККМ: 001 [21:12:29]line Платежная система: Бакай Банк [21:12:29]line ФМ: 0000000000874899 [21:12:29]line ФД: 162945 [21:12:29]line ФПД: 246051574119493 [21:12:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T211231&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162945&fm=246051574119493&tin=02508201610067®Number=0000000000090858&sum=649915 [21:12:30]OFD Sender: Processing packet 162945 [packets to send 106, broken 105] [21:12:30]ProducePacketName [21:12:30]name=ofd_packets/00162945 [21:12:30]OFD Sender: To server: pG, [21:12:30]CommunicateWithHost lk.salyk.kg:30040 [21:12:30]ConnectInit lk.salyk.kg [21:12:30]written 0, free lines is 4095 [21:12:30]Connected sock=10 [21:12:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 9E 4D 08 01 35 1A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B0 5D 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 BB EA 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB EA 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB EA 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 3F 3F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 81 7C 02 00 35 04 06 00 DF C8 58 AB FC 45 31 1A D4 CB C1 AC 0B FC [21:12:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4E E4 47 00 D2 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 81 7C 02 00 F4 03 04 00 4B EB 93 66 B6 04 01 00 00 C9 EC 4C 30 F5 95 51 45 [21:12:30]CommunicateWithHost err = 0 [21:12:30]CheckOFDResponse [21:12:30]1017 (14) - 77093643461234 [21:12:30]1041 (16) - 0000000000874899 [21:12:30]1040 (4) - 162945 [21:12:30]1012 (4) - 14.07.2024 15:14 [21:12:30]1206 (1) - 0 [21:12:30]OFD Sender: Remove packet 162945 [21:12:30]ProducePacketName [21:12:30]name=ofd_packets/00162945 [21:12:30]NVStorageDeleteData [21:12:30]Write to MH i2c: 01 00 00 A6 3F E5 [21:12:30]Write i2c OK [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: 01 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: 01 07 00 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: 01 07 00 A6 3F 00 00 00 00 00 EE 0C E6 [21:12:30]RasterBufferAndPrint [21:12:30]line [21:12:30]line [21:12:30]line [21:12:30]line [21:12:30]line [21:12:30]written 0, free lines is 3319 [21:12:30]MH_Cut [21:12:30]Write to MH i2c: D1 01 00 AD 3F 01 BE [21:12:30]Write i2c OK [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: D1 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: D1 01 00 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: D1 01 00 AD 3F 00 BD [21:12:30]Write to MH i2c: 01 00 00 AE 3F ED [21:12:30]Write i2c OK [21:12:30]MH_I2C_Read... [21:12:30]OFD Sender: No OFD packet to send [21:12:31]*** Cut start [21:12:31]*** Purtial cut [21:12:31]*** Stage 1: CUTSNS_PIN = 1 [21:12:31]Read from MH i2c: 01 [21:12:31]MH_I2C_Read... [21:12:31]*** Stop cut motor [21:12:31]*** Cut end [21:12:31]Read from MH i2c: 01 07 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: 01 07 00 AE 3F 00 00 00 00 00 FF 0F 02 [21:12:31]process_action close_receipt done [21:12:31]requested_data is exist [21:12:31]produce_requested_data [21:12:31]requested_item fm.sn is exist - process it [21:12:31]wFMCommunicate request_size=4 [21:12:31]MH_SAM_APDU [21:12:31]CAPDU: 80 11 00 00 [21:12:31]Write to MH i2c: E2 08 00 AF 3F 80 11 00 00 00 00 00 00 68 [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:31]Read from MH i2c: E2 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 17 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 17 00 AF 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C8 [21:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:12:31]wFMCommunicate OK [21:12:31]requested_item fd.num is exist - process it [21:12:31]SAM_PROTO_GetFieldsCounters [21:12:31]wFMCommunicate request_size=4 [21:12:31]MH_SAM_APDU [21:12:31]CAPDU: 80 13 00 00 [21:12:31]Write to MH i2c: E2 08 00 B0 3F 80 13 00 00 00 00 00 00 6B [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:31]Read from MH i2c: E2 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 62 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 62 00 B0 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 81 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [21:12:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 81 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:12:31]wFMCommunicate OK [21:12:31]SAM_PROTO_GetFieldsCounters done [21:12:31]requested_item shift.num is exist - process it [21:12:31]requested_item shift.opened is exist - process it [21:12:31]req_shift_opened [21:12:31]FM_GetShiftState [21:12:31]SAM_PROTO_GetShiftState [21:12:31]wFMCommunicate request_size=4 [21:12:31]MH_SAM_APDU [21:12:31]CAPDU: 80 13 01 00 [21:12:31]Write to MH i2c: E2 08 00 B1 3F 80 13 01 00 00 00 00 00 6D [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:31]Read from MH i2c: E2 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 0E 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 0E 00 B1 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A3 [21:12:31]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:12:31]wFMCommunicate OK [21:12:31]SAM_PROTO_GetShiftState done [21:12:31]FM_GetShiftState done [21:12:31]req_shift_opened done [21:12:31]requested_item shift.open_date is exist - process it [21:12:31]req_shift_open_date [21:12:31]req_shift_open_date done [21:12:31]produce_requested_data done [21:12:31]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162945,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:12:31]process_action_free close_receipt [21:12:31]json_value_free [21:12:31]json_value_free done [21:12:31]process_json_proto returns [21:12:31]Send response to host [21:12:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162945,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:12:31]free response buf [21:12:31]execute_script done [21:12:31]execute_script returns [21:12:31]free content buf [21:12:31]Sock 9.Close socket [21:12:31]Sock 9.Thread stoped [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:37]int [21:13:37]Write to MH i2c: 01 00 00 B2 3F F1 [21:13:37]*** FLAG_PRN_PAP1 set [21:13:37]Write i2c OK [21:13:37]MH_I2C_Read... [21:13:37]Read from MH i2c: 01 [21:13:37]MH_I2C_Read... [21:13:37]Read from MH i2c: 01 07 00 [21:13:37]MH_I2C_Read... [21:13:37]Read from MH i2c: 01 07 00 B2 3F 00 01 00 00 00 FF 0F 07 [21:13:37]state=0 [21:13:37]No paper [21:13:37]int [21:13:37]Write to MH i2c: 01 00 00 B3 3F F2 [21:13:37]*** FLAG_PRN_PAP2 set [21:13:37]Write i2c OK [21:13:37]MH_I2C_Read... [21:13:37]Read from MH i2c: 01 [21:13:37]MH_I2C_Read... [21:13:37]Read from MH i2c: 01 07 00 [21:13:37]MH_I2C_Read... [21:13:37]Read from MH i2c: 01 07 00 B3 3F 00 03 00 00 00 FF 0F 0A [21:13:37]state=0 [21:13:37]No paper [21:13:37]Cover opened [21:13:39]int [21:13:39]Write to MH i2c: 01 00 00 B4 3F F3 [21:13:39]*** FLAG_PRN_PAP2 reset [21:13:39]Write i2c OK [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 07 00 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 07 00 B4 3F 00 01 00 00 00 FF 0F 09 [21:13:39]state=3 [21:13:39]No paper [21:13:39]Cover closed [21:13:39]int [21:13:39]Write to MH i2c: 01 00 00 B5 3F F4 [21:13:39]*** FLAG_PRN_PAP2 set [21:13:39]Write i2c OK [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 07 00 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 07 00 B5 3F 00 03 00 00 00 FF 0F 0C [21:13:39]state=0 [21:13:39]No paper [21:13:39]Cover opened [21:13:39]int [21:13:39]Write to MH i2c: 01 00 00 B6 3F F5 [21:13:39]*** FLAG_PRN_PAP2 reset [21:13:39]Write i2c OK [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 07 00 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 07 00 B6 3F 00 01 00 00 00 FF 0F 0B [21:13:39]state=3 [21:13:39]No paper [21:13:39]Cover closed [21:13:39]int [21:13:39]Write to MH i2c: 01 00 00 B7 3F F6 [21:13:39]*** FLAG_PRN_PAP2 set [21:13:39]Write i2c OK [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 07 00 [21:13:39]MH_I2C_Read... [21:13:39]Read from MH i2c: 01 07 00 B7 3F 00 03 00 00 00 FF 0F 0E [21:13:39]state=0 [21:13:39]No paper [21:13:39]Cover opened [21:13:41]OFD Sender: No OFD packet to send [21:13:44]Write to MH i2c: 01 00 00 B8 3F F7 [21:13:44]Write i2c OK [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: 01 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: 01 07 00 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: 01 07 00 B8 3F 00 03 00 00 00 FF 0F 0F [21:13:44]state=3 [21:13:44]No paper [21:13:44]Cover opened [21:13:46]OFD Sender: No OFD packet to send [21:13:49]Write to MH i2c: 01 00 00 B9 3F F8 [21:13:49]Write i2c OK [21:13:49]MH_I2C_Read... [21:13:49]Read from MH i2c: 01 [21:13:49]MH_I2C_Read... [21:13:49]Read from MH i2c: 01 07 00 [21:13:49]MH_I2C_Read... [21:13:49]Read from MH i2c: 01 07 00 B9 3F 00 03 00 00 00 FF 0F 10 [21:13:49]state=3 [21:13:49]No paper [21:13:49]Cover opened [21:13:51]OFD Sender: No OFD packet to send [21:13:51]int [21:13:51]Write to MH i2c: 01 00 00 BA 3F F9 [21:13:51]*** FLAG_PRN_PAP2 reset [21:13:51]Write i2c OK [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: 01 [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: 01 07 00 [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: 01 07 00 BA 3F 00 01 00 00 00 FF 0F 0F [21:13:51]state=3 [21:13:51]No paper [21:13:51]Cover closed [21:13:51]int [21:13:51]Write to MH i2c: 01 00 00 BB 3F FA [21:13:51]*** FLAG_PRN_PAP1 reset [21:13:51]Write i2c OK [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: 01 [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: 01 07 00 [21:13:51]MH_I2C_Read... [21:13:51]Read from MH i2c: 01 07 00 BB 3F 00 00 00 00 00 FF 0F 0F [21:13:51]state=0 [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:01]accept exits with 7 [21:14:01]New connection [21:14:01]New thread 3066879332 created [21:14:01]Thread 3066735972 joined [21:14:01]Waiting for new connection... [21:14:01] Sock 7.Parse request [21:14:01]Sock 7.Check first char [21:14:01]Sock 7.First char is OK [21:14:01]request: POST /json_proto HTTP/1.0 [21:14:01]Method: POST [21:14:01]URL: /json_proto [21:14:01]Method is POST - this is cgi request [21:14:01]url: /json_proto [21:14:01]query_string will be loaded in cgi processing [21:14:01]execute_cgi json_proto POST (null) [21:14:01]execute_cgi path=json_proto method=POST [21:14:01]POST find Content-Length [21:14:01]Host: 172.17.39.67:8080 [21:14:01]Content-Length: 678 [21:14:01]Content-Type: application/json [21:14:01] [21:14:01]POST finish read [21:14:01]Found Content-Length = 678 [21:14:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:14:01]execute_script... [21:14: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)1319557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:14:01]POST & json_proto [21:14:01]process_json_proto [21:14:01]json parsed OK: [21:14:01]protocol is kg_v1.0 [21:14:01]action value=close_receipt [21:14:01]process_action close_receipt [21:14:01]cmd_close_receipt [21:14:01]MH_GetDate [21:14:01]Write to MH i2c: F0 00 00 BC 3F EA [21:14:01]Write i2c OK [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: F0 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: F0 09 00 [21:14:01]MH_I2C_Read... [21:14:01]Read from MH i2c: F0 09 00 BC 3F 00 9C 3F 94 66 B6 85 93 66 FC [21:14:01]GetLastDocTimeStamp 1720991551 [21:14:01]current date 1720991644 [21:14:01]FM_GetShiftState [21:14:01]SAM_PROTO_GetShiftState [21:14:01]wFMCommunicate request_size=4 [21:14:01]MH_SAM_APDU [21:14:01]CAPDU: 80 13 01 00 [21:14:01]Write to MH i2c: E2 08 00 BD 3F 80 13 01 00 00 00 00 00 79 [21:14:01]Write i2c OK [21:14:01]MH_I2C_Read... [21:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:02]Read from MH i2c: E2 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 0E 00 [21:14:02]MH_I2C_Read... [21:14:02]Read from MH i2c: E2 0E 00 BD 3F 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 AF [21:14:02]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:14:02]wFMCommunicate OK [21:14:02]SAM_PROTO_GetShiftState done [21:14:02]FM_GetShiftState done [21:14:02]opened in 1720915483 [21:14:02]opened+sec_in_day 1721001883 [21:14:02]quantity*price = 50056 [21:14:02]sum+1 = 50058 [21:14:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 258 14.07.2024 21:14 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162946 ФПД: 126054294125767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T211404&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162946&fm=126054294125767&tin=02508201610067®Number=0000000000090858&sum=50000 [21:14:03]StoreToDocumentArchive [21:14:03]shift 463 fd 162946 [21:14:03]save to /storage/0463/doc_00162946 [21:14:03]save last doc name /storage/0463/doc_00162946 to /storage/kkm_last_doc_name [21:14:03]save OK [21:14:03]Clear old archive folders... [21:14:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:14:03]tlvbuf is 01346330 [21:14:03]SAM_PROTO_ClearQueue [21:14:03]wFMCommunicate request_size=4 [21:14:03]MH_SAM_APDU [21:14:03]CAPDU: 80 09 00 00 [21:14:03]Write to MH i2c: E2 08 00 CA 3F 80 09 00 00 00 00 00 00 7B [21:14:03]Write i2c OK [21:14:03]MH_I2C_Read... [21:14:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:03]Read from MH i2c: E2 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: E2 03 00 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: E2 03 00 CA 3F 00 90 00 7D [21:14:03]RAPDU: 90 00 [21:14:03]wFMCommunicate OK [21:14:03]SAM_PROTO_ClearQueue done [21:14:03]KKMCreateOFDPacket [21:14:03]OFDProtocolAddRootSTLVToBuf [21:14:03]FM_MakeSignedData [21:14:03]FM_MakeSignedData [21:14:03]SAM_PROTO_SignData [21:14:03]wFMCommunicate request_size=4 [21:14:03]MH_SAM_APDU [21:14:03]CAPDU: 80 0D 01 02 [21:14:03]Write to MH i2c: E2 08 00 CB 3F 80 0D 01 02 00 00 00 00 83 [21:14:03]Write i2c OK [21:14:03]MH_I2C_Read... [21:14:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:03]Read from MH i2c: E2 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: E2 03 00 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: E2 03 00 CB 3F 00 90 00 7E [21:14:03]RAPDU: 90 00 [21:14:03]wFMCommunicate OK [21:14:03]wFMCommunicate request_size=255 [21:14:03]MH_SAM_APDU [21:14: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 02 01 00 00 F4 03 04 00 9C 3F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7C 02 00 35 04 06 00 72 [21:14:03]Write to MH i2c: E2 02 01 CC 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 02 01 00 00 F4 03 04 00 9C 3F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7C 02 00 35 04 06 00 72 00 00 59 [21:14:03]Write i2c OK [21:14:03]MH_I2C_Read... [21:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:03]Read from MH i2c: E2 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: E2 03 00 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: E2 03 00 CC 3F 00 90 00 7F [21:14:03]RAPDU: 90 00 [21:14:03]wFMCommunicate OK [21:14:03]wFMCommunicate request_size=10 [21:14:03]MH_SAM_APDU [21:14:03]CAPDU: 80 0D 02 02 05 A5 4D 6C 7C C7 [21:14:03]Write to MH i2c: E2 0D 00 CD 3F 80 0D 02 02 05 00 A5 4D 6C 7C C7 00 00 31 [21:14:03]Write i2c OK [21:14:03]MH_I2C_Read... [21:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:03]Read from MH i2c: E2 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: E2 03 00 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: E2 03 00 CD 3F 00 90 00 80 [21:14:03]RAPDU: 90 00 [21:14:03]wFMCommunicate OK [21:14:03]wFMCommunicate request_size=4 [21:14:03]MH_SAM_APDU [21:14:03]CAPDU: 80 0D 03 02 [21:14:03]Write to MH i2c: E2 08 00 CE 3F 80 0D 03 02 00 00 00 00 88 [21:14:03]Write i2c OK [21:14:03]MH_I2C_Read... [21:14:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:03]Read from MH i2c: E2 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: E2 0B 00 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: E2 0B 00 CE 3F 00 C8 DE DB 95 63 79 6B 4D 90 00 33 [21:14:03]RAPDU: C8 DE DB 95 63 79 6B 4D 90 00 [21:14:03]wFMCommunicate OK [21:14:03]SAM_PROTO_SignData done [21:14:03]FM_MakeSignedData done [21:14:03]CreateOFDProtocolMessage [21:14:03]wFMCommunicate request_size=4 [21:14:03]MH_SAM_APDU [21:14:03]CAPDU: 80 11 00 00 [21:14:03]Write to MH i2c: E2 08 00 CF 3F 80 11 00 00 00 00 00 00 88 [21:14:03]Write i2c OK [21:14:03]MH_I2C_Read... [21:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:03]Read from MH i2c: E2 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: E2 17 00 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: E2 17 00 CF 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E8 [21:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:14:03]wFMCommunicate OK [21:14:03]CreateOFDProtocolMessage done [21:14:03]OFDSenderStorePacket 162946 [21:14:03]StoreOFDPacket docnum=162946 [21:14:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 AE 91 07 01 6F F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 02 01 00 00 F4 03 04 00 9C 3F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7C 02 00 35 04 06 00 72 A5 4D 6C 7C C7 C8 DE DB 95 63 79 6B 4D [21:14:03]CheckFolder [21:14:03]dirname=/storage/ofd_packets [21:14:03]CheckFolder done [21:14:03]ProducePacketName [21:14:03]name=ofd_packets/00162946 [21:14:03]NVStorageSaveData ofd_packets/00162946 [21:14:03]File name is /storage/ofd_packets/00162946 [21:14:03]Write 301 bytes [21:14:03]NVStorageSaveData done [21:14:03]OFDSenderStorePacket done [21:14:03]KKMCreateOFDPacket done [21:14:03]NVStorageSaveData kkm_last_timestamp [21:14:03]File name is /storage/kkm_last_timestamp [21:14:03]Write 4 bytes [21:14:03]NVStorageSaveData done [21:14:03]ExternCall_PrintAddStr [21:14:03]wPrintStart [21:14:03]Write to MH i2c: 01 00 00 D0 3F 0F [21:14:03]Write i2c OK [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: 01 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: 01 07 00 [21:14:03]MH_I2C_Read... [21:14:03]Read from MH i2c: 01 07 00 D0 3F 00 00 00 00 00 FF 0F 24 [21:14:03]RasterBufferAndPrint [21:14:03]line Счет N : (1)1319557 [21:14:03]line ИНН: 02508201610067 [21:14:03]line Контрольно-Кассовый Чек [21:14:03]line ПРОДАЖА [21:14:03]line ТРК (МРК, ГНК) : 43 [21:14:03]line Товар: 2710124130 [21:14:03]line Аи-92-К-5 [21:14:03]line 7.550 * 66.30 [21:14:03]line = 500.57 [21:14:03]line НДС 12% НСП 1% [21:14:03]line > о реализуемом товаре [21:14:03]line ОКРУГЛЕНИЕ: -0.57 [21:14:03]line ИТОГО: 500.00 [21:14:03]line Внесено: 500.00 [21:14:03]line СДАЧА: 0.00 [21:14:03]line НСП 1% : 4.43 [21:14:03]line НДС 12% : 53.16 [21:14:03]line Наличными: 500.00 [21:14:03]line Безнал.: 0.00 [21:14:03]line Место: АЗС № 140 "Партнер Нефть" [21:14:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:14:03]line СНО: Общий режим [21:14:03]line Чек 258 14.07.2024 21:14 [21:14:03]line Смена: 463 ФФД: 1.0 [21:14:03]line ЗНМ: 0300000129 [21:14:03]line РНМ: 0000000000090858 [21:14:03]line Версия ККМ: 001 [21:14:03]line ФМ: 0000000000874899 [21:14:03]line ФД: 162946 [21:14:03]line ФПД: 126054294125767 [21:14:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T211404&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162946&fm=126054294125767&tin=02508201610067®Number=0000000000090858&sum=50000 [21:14:04]OFD Sender: Processing packet 162946 [packets to send 106, broken 105] [21:14:04]ProducePacketName [21:14:04]name=ofd_packets/00162946 [21:14:04]OFD Sender: To server: pG, [21:14:04]CommunicateWithHost lk.salyk.kg:30040 [21:14:04]ConnectInit lk.salyk.kg [21:14:04]written 0, free lines is 4095 [21:14:04]Connected sock=10 [21:14:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 AE 91 07 01 6F F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 02 01 00 00 F4 03 04 00 9C 3F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7C 02 00 35 04 06 00 72 A5 4D 6C 7C C7 C8 DE DB 95 63 79 6B 4D [21:14:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A2 5B 47 00 57 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7C 02 00 F4 03 04 00 A9 EB 93 66 B6 04 01 00 00 0E 97 1E 3E 99 3C 6C 0D [21:14:04]CommunicateWithHost err = 0 [21:14:04]CheckOFDResponse [21:14:04]1017 (14) - 77093643461234 [21:14:04]1041 (16) - 0000000000874899 [21:14:04]1040 (4) - 162946 [21:14:04]1012 (4) - 14.07.2024 15:15 [21:14:04]1206 (1) - 0 [21:14:04]OFD Sender: Remove packet 162946 [21:14:04]ProducePacketName [21:14:04]name=ofd_packets/00162946 [21:14:04]NVStorageDeleteData [21:14:04]Write to MH i2c: 01 00 00 FB 3F 3A [21:14:04]Write i2c OK [21:14:04]MH_I2C_Read... [21:14:04]Read from MH i2c: 01 [21:14:04]MH_I2C_Read... [21:14:04]Read from MH i2c: 01 07 00 [21:14:04]MH_I2C_Read... [21:14:04]Read from MH i2c: 01 07 00 FB 3F 00 00 00 00 00 D1 0C 1E [21:14:04]RasterBufferAndPrint [21:14:04]line [21:14:04]line [21:14:04]line [21:14:04]line [21:14:04]line [21:14:04]written 0, free lines is 3290 [21:14:04]MH_Cut [21:14:04]Write to MH i2c: D1 01 00 02 40 01 14 [21:14:04]Write i2c OK [21:14:04]MH_I2C_Read... [21:14:04]Read from MH i2c: D1 [21:14:04]MH_I2C_Read... [21:14:04]Read from MH i2c: D1 01 00 [21:14:04]MH_I2C_Read... [21:14:04]Read from MH i2c: D1 01 00 02 40 00 13 [21:14:04]Write to MH i2c: 01 00 00 03 40 43 [21:14:04]Write i2c OK [21:14:04]MH_I2C_Read... [21:14:04]OFD Sender: No OFD packet to send [21:14:05]*** Cut start [21:14:05]*** Purtial cut [21:14:05]*** CUTSNS_PIN = 0 [21:14:05]*** Stage 1: CUTSNS_PIN = 1 [21:14:07]Read from MH i2c: 01 [21:14:07]MH_I2C_Read... [21:14:07]*** Stop cut motor [21:14:07]*** Cut end [21:14:07]Read from MH i2c: 01 07 00 [21:14:07]MH_I2C_Read... [21:14:07]Read from MH i2c: 01 07 00 03 40 00 00 00 00 00 FF 0F 58 [21:14:07]process_action close_receipt done [21:14:07]requested_data is exist [21:14:07]produce_requested_data [21:14:07]requested_item fm.sn is exist - process it [21:14:07]wFMCommunicate request_size=4 [21:14:07]MH_SAM_APDU [21:14:07]CAPDU: 80 11 00 00 [21:14:07]Write to MH i2c: E2 08 00 04 40 80 11 00 00 00 00 00 00 BE [21:14:07]Write i2c OK [21:14:07]MH_I2C_Read... [21:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:07]Read from MH i2c: E2 [21:14:07]MH_I2C_Read... [21:14:07]Read from MH i2c: E2 17 00 [21:14:07]MH_I2C_Read... [21:14:07]Read from MH i2c: E2 17 00 04 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1E [21:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:14:07]wFMCommunicate OK [21:14:07]requested_item fd.num is exist - process it [21:14:07]SAM_PROTO_GetFieldsCounters [21:14:07]wFMCommunicate request_size=4 [21:14:07]MH_SAM_APDU [21:14:07]CAPDU: 80 13 00 00 [21:14:07]Write to MH i2c: E2 08 00 05 40 80 13 00 00 00 00 00 00 C1 [21:14:07]Write i2c OK [21:14:07]MH_I2C_Read... [21:14:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:07]Read from MH i2c: E2 [21:14:07]MH_I2C_Read... [21:14:07]Read from MH i2c: E2 62 00 [21:14:07]MH_I2C_Read... [21:14:07]Read from MH i2c: E2 62 00 05 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 82 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [21:14:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 82 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:07]wFMCommunicate OK [21:14:07]SAM_PROTO_GetFieldsCounters done [21:14:07]requested_item shift.num is exist - process it [21:14:07]requested_item shift.opened is exist - process it [21:14:07]req_shift_opened [21:14:07]FM_GetShiftState [21:14:07]SAM_PROTO_GetShiftState [21:14:07]wFMCommunicate request_size=4 [21:14:07]MH_SAM_APDU [21:14:07]CAPDU: 80 13 01 00 [21:14:07]Write to MH i2c: E2 08 00 06 40 80 13 01 00 00 00 00 00 C3 [21:14:07]Write i2c OK [21:14:07]MH_I2C_Read... [21:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:07]Read from MH i2c: E2 [21:14:07]MH_I2C_Read... [21:14:07]Read from MH i2c: E2 0E 00 [21:14:07]MH_I2C_Read... [21:14:07]Read from MH i2c: E2 0E 00 06 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F9 [21:14:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:14:07]wFMCommunicate OK [21:14:07]SAM_PROTO_GetShiftState done [21:14:07]FM_GetShiftState done [21:14:07]req_shift_opened done [21:14:07]requested_item shift.open_date is exist - process it [21:14:07]req_shift_open_date [21:14:07]req_shift_open_date done [21:14:07]produce_requested_data done [21:14:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162946,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:14:07]process_action_free close_receipt [21:14:07]json_value_free [21:14:07]json_value_free done [21:14:07]process_json_proto returns [21:14:07]Send response to host [21:14:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162946,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:14:07]free response buf [21:14:07]execute_script done [21:14:07]execute_script returns [21:14:07]free content buf [21:14:07]Sock 7.Close socket [21:14:07]Sock 7.Thread stoped [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:05]accept exits with 9 [21:18:05]New connection [21:18:05]New thread 3066735972 created [21:18:05]Thread 3066879332 joined [21:18:05]Waiting for new connection... [21:18:05] Sock 9.Parse request [21:18:05]Sock 9.Check first char [21:18:05]Sock 9.First char is OK [21:18:05]request: POST /json_proto HTTP/1.0 [21:18:05]Method: POST [21:18:05]URL: /json_proto [21:18:05]Method is POST - this is cgi request [21:18:05]url: /json_proto [21:18:05]query_string will be loaded in cgi processing [21:18:05]execute_cgi json_proto POST (null) [21:18:05]execute_cgi path=json_proto method=POST [21:18:05]POST find Content-Length [21:18:05]Host: 172.17.39.67:8080 [21:18:05]Content-Length: 678 [21:18:05]Content-Type: application/json [21:18:05] [21:18:05]POST finish read [21:18:05]Found Content-Length = 678 [21:18:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.960, "sum" : 660.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:05]execute_script... [21:18: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)1319558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.960, "sum" : 660.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:05]POST & json_proto [21:18:05]process_json_proto [21:18:05]json parsed OK: [21:18:05]protocol is kg_v1.0 [21:18:05]action value=close_receipt [21:18:05]process_action close_receipt [21:18:05]cmd_close_receipt [21:18:05]MH_GetDate [21:18:05]Write to MH i2c: F0 00 00 07 40 36 [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: F0 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: F0 09 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: F0 09 00 07 40 00 90 40 94 66 B6 85 93 66 3D [21:18:05]GetLastDocTimeStamp 1720991644 [21:18:05]current date 1720991888 [21:18:05]FM_GetShiftState [21:18:05]SAM_PROTO_GetShiftState [21:18:05]wFMCommunicate request_size=4 [21:18:05]MH_SAM_APDU [21:18:05]CAPDU: 80 13 01 00 [21:18:05]Write to MH i2c: E2 08 00 08 40 80 13 01 00 00 00 00 00 C5 [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:05]Read from MH i2c: E2 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 0E 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 0E 00 08 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 FB [21:18:05]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:18:05]wFMCommunicate OK [21:18:05]SAM_PROTO_GetShiftState done [21:18:05]FM_GetShiftState done [21:18:05]opened in 1720915483 [21:18:05]opened+sec_in_day 1721001883 [21:18:05]quantity*price = 66034 [21:18:05]sum+1 = 66036 [21:18:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.13 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 259 14.07.2024 21:18 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162947 ФПД: 217070330330702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T211808&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162947&fm=217070330330702&tin=02508201610067®Number=0000000000090858&sum=66000 [21:18:06]StoreToDocumentArchive [21:18:06]shift 463 fd 162947 [21:18:06]save to /storage/0463/doc_00162947 [21:18:06]save last doc name /storage/0463/doc_00162947 to /storage/kkm_last_doc_name [21:18:06]save OK [21:18:06]Clear old archive folders... [21:18:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:18:06]tlvbuf is 012277E0 [21:18:06]SAM_PROTO_ClearQueue [21:18:06]wFMCommunicate request_size=4 [21:18:06]MH_SAM_APDU [21:18:06]CAPDU: 80 09 00 00 [21:18:06]Write to MH i2c: E2 08 00 15 40 80 09 00 00 00 00 00 00 C7 [21:18:06]Write i2c OK [21:18:06]MH_I2C_Read... [21:18:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:06]Read from MH i2c: E2 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 15 40 00 90 00 C9 [21:18:06]RAPDU: 90 00 [21:18:06]wFMCommunicate OK [21:18:06]SAM_PROTO_ClearQueue done [21:18:06]KKMCreateOFDPacket [21:18:06]OFDProtocolAddRootSTLVToBuf [21:18:06]FM_MakeSignedData [21:18:06]FM_MakeSignedData [21:18:06]SAM_PROTO_SignData [21:18:06]wFMCommunicate request_size=4 [21:18:06]MH_SAM_APDU [21:18:06]CAPDU: 80 0D 01 02 [21:18:06]Write to MH i2c: E2 08 00 16 40 80 0D 01 02 00 00 00 00 CF [21:18:06]Write i2c OK [21:18:06]MH_I2C_Read... [21:18:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:06]Read from MH i2c: E2 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: E2 03 00 16 40 00 90 00 CA [21:18:06]RAPDU: 90 00 [21:18:06]wFMCommunicate OK [21:18:06]wFMCommunicate request_size=255 [21:18:06]MH_SAM_APDU [21:18: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 E8 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F3 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 90 40 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7C 02 00 35 04 06 00 C5 [21:18:06]Write to MH i2c: E2 02 01 17 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F3 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 90 40 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7C 02 00 35 04 06 00 C5 00 00 BF [21:18:06]Write i2c OK [21:18:06]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 03 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 03 00 17 40 00 90 00 CB [21:18:07]RAPDU: 90 00 [21:18:07]wFMCommunicate OK [21:18:07]wFMCommunicate request_size=10 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 0D 02 02 05 6C 9F EE 3E 4E [21:18:07]Write to MH i2c: E2 0D 00 18 40 80 0D 02 02 05 00 6C 9F EE 3E 4E 00 00 61 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 03 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 03 00 18 40 00 90 00 CC [21:18:07]RAPDU: 90 00 [21:18:07]wFMCommunicate OK [21:18:07]wFMCommunicate request_size=4 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 0D 03 02 [21:18:07]Write to MH i2c: E2 08 00 19 40 80 0D 03 02 00 00 00 00 D4 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 0B 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 0B 00 19 40 00 C7 78 25 B8 B5 5B CC 6E 90 00 3B [21:18:07]RAPDU: C7 78 25 B8 B5 5B CC 6E 90 00 [21:18:07]wFMCommunicate OK [21:18:07]SAM_PROTO_SignData done [21:18:07]FM_MakeSignedData done [21:18:07]CreateOFDProtocolMessage [21:18:07]wFMCommunicate request_size=4 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 11 00 00 [21:18:07]Write to MH i2c: E2 08 00 1A 40 80 11 00 00 00 00 00 00 D4 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 17 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 17 00 1A 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 34 [21:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:18:07]wFMCommunicate OK [21:18:07]CreateOFDProtocolMessage done [21:18:07]OFDSenderStorePacket 162947 [21:18:07]StoreOFDPacket docnum=162947 [21:18:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F5 FC 07 01 A7 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F3 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 90 40 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7C 02 00 35 04 06 00 C5 6C 9F EE 3E 4E C7 78 25 B8 B5 5B CC 6E [21:18:07]CheckFolder [21:18:07]dirname=/storage/ofd_packets [21:18:07]CheckFolder done [21:18:07]ProducePacketName [21:18:07]name=ofd_packets/00162947 [21:18:07]NVStorageSaveData ofd_packets/00162947 [21:18:07]File name is /storage/ofd_packets/00162947 [21:18:07]Write 301 bytes [21:18:07]NVStorageSaveData done [21:18:07]OFDSenderStorePacket done [21:18:07]KKMCreateOFDPacket done [21:18:07]NVStorageSaveData kkm_last_timestamp [21:18:07]File name is /storage/kkm_last_timestamp [21:18:07]Write 4 bytes [21:18:07]NVStorageSaveData done [21:18:07]ExternCall_PrintAddStr [21:18:07]wPrintStart [21:18:07]Write to MH i2c: 01 00 00 1B 40 5B [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 07 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 07 00 1B 40 00 00 00 00 00 FF 0F 70 [21:18:07]RasterBufferAndPrint [21:18:07]line Счет N : (1)1319558 [21:18:07]line ИНН: 02508201610067 [21:18:07]line Контрольно-Кассовый Чек [21:18:07]line ПРОДАЖА [21:18:07]line ТРК (МРК, ГНК) : 43 [21:18:07]line Товар: 2710124130 [21:18:07]line Аи-92-К-5 [21:18:07]line 9.960 * 66.30 [21:18:07]line = 660.35 [21:18:07]line НДС 12% НСП 1% [21:18:07]line > о реализуемом товаре [21:18:07]line ОКРУГЛЕНИЕ: -0.35 [21:18:07]line ИТОГО: 660.00 [21:18:07]line Внесено: 660.00 [21:18:07]line СДАЧА: 0.00 [21:18:07]line НСП 1% : 5.84 [21:18:07]line НДС 12% : 70.13 [21:18:07]line Наличными: 660.00 [21:18:07]line Безнал.: 0.00 [21:18:07]line Место: АЗС № 140 "Партнер Нефть" [21:18:07]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:18:07]line СНО: Общий режим [21:18:07]line Чек 259 14.07.2024 21:18 [21:18:07]line Смена: 463 ФФД: 1.0 [21:18:07]line ЗНМ: 0300000129 [21:18:07]line РНМ: 0000000000090858 [21:18:07]line Версия ККМ: 001 [21:18:07]line ФМ: 0000000000874899 [21:18:07]line ФД: 162947 [21:18:07]line ФПД: 217070330330702 [21:18:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T211808&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162947&fm=217070330330702&tin=02508201610067®Number=0000000000090858&sum=66000 [21:18:07]OFD Sender: Processing packet 162947 [packets to send 106, broken 105] [21:18:07]ProducePacketName [21:18:07]name=ofd_packets/00162947 [21:18:07]OFD Sender: To server: pG, [21:18:07]CommunicateWithHost lk.salyk.kg:30040 [21:18:07]ConnectInit lk.salyk.kg [21:18:07]written 0, free lines is 4095 [21:18:07]Connected sock=10 [21:18:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F5 FC 07 01 A7 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F3 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 90 40 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7C 02 00 35 04 06 00 C5 6C 9F EE 3E 4E C7 78 25 B8 B5 5B CC 6E [21:18:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5D 0B 47 00 F3 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7C 02 00 F4 03 04 00 9D EC 93 66 B6 04 01 00 00 C1 4A 2F D3 52 88 24 41 [21:18:07]CommunicateWithHost err = 0 [21:18:07]CheckOFDResponse [21:18:07]1017 (14) - 77093643461234 [21:18:07]1041 (16) - 0000000000874899 [21:18:07]1040 (4) - 162947 [21:18:07]1012 (4) - 14.07.2024 15:19 [21:18:07]1206 (1) - 0 [21:18:07]OFD Sender: Remove packet 162947 [21:18:07]ProducePacketName [21:18:07]name=ofd_packets/00162947 [21:18:07]NVStorageDeleteData [21:18:08]Write to MH i2c: 01 00 00 46 40 86 [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: 01 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: 01 07 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: 01 07 00 46 40 00 00 00 00 00 DF 0C 78 [21:18:08]RasterBufferAndPrint [21:18:08]line [21:18:08]line [21:18:08]line [21:18:08]line [21:18:08]line [21:18:08]written 0, free lines is 3304 [21:18:08]MH_Cut [21:18:08]Write to MH i2c: D1 01 00 4D 40 01 5F [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: D1 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: D1 01 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: D1 01 00 4D 40 00 5E [21:18:08]Write to MH i2c: 01 00 00 4E 40 8E [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]OFD Sender: No OFD packet to send [21:18:08]*** Cut start [21:18:08]*** Purtial cut [21:18:08]*** Stage 1: CUTSNS_PIN = 1 [21:18:09]Read from MH i2c: 01 [21:18:09]MH_I2C_Read... [21:18:09]*** Stop cut motor [21:18:09]*** Cut end [21:18:09]Read from MH i2c: 01 07 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: 01 07 00 4E 40 00 00 00 00 00 FF 0F A3 [21:18:09]process_action close_receipt done [21:18:09]requested_data is exist [21:18:09]produce_requested_data [21:18:09]requested_item fm.sn is exist - process it [21:18:09]wFMCommunicate request_size=4 [21:18:09]MH_SAM_APDU [21:18:09]CAPDU: 80 11 00 00 [21:18:09]Write to MH i2c: E2 08 00 4F 40 80 11 00 00 00 00 00 00 09 [21:18:09]Write i2c OK [21:18:09]MH_I2C_Read... [21:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:09]Read from MH i2c: E2 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 17 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 17 00 4F 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 69 [21:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:18:09]wFMCommunicate OK [21:18:09]requested_item fd.num is exist - process it [21:18:09]SAM_PROTO_GetFieldsCounters [21:18:09]wFMCommunicate request_size=4 [21:18:09]MH_SAM_APDU [21:18:09]CAPDU: 80 13 00 00 [21:18:09]Write to MH i2c: E2 08 00 50 40 80 13 00 00 00 00 00 00 0C [21:18:09]Write i2c OK [21:18:09]MH_I2C_Read... [21:18:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:09]Read from MH i2c: E2 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 62 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 62 00 50 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 83 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [21:18:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 83 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:09]wFMCommunicate OK [21:18:09]SAM_PROTO_GetFieldsCounters done [21:18:09]requested_item shift.num is exist - process it [21:18:09]requested_item shift.opened is exist - process it [21:18:09]req_shift_opened [21:18:09]FM_GetShiftState [21:18:09]SAM_PROTO_GetShiftState [21:18:09]wFMCommunicate request_size=4 [21:18:09]MH_SAM_APDU [21:18:09]CAPDU: 80 13 01 00 [21:18:09]Write to MH i2c: E2 08 00 51 40 80 13 01 00 00 00 00 00 0E [21:18:09]Write i2c OK [21:18:09]MH_I2C_Read... [21:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:09]Read from MH i2c: E2 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 0E 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 0E 00 51 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 44 [21:18:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:18:09]wFMCommunicate OK [21:18:09]SAM_PROTO_GetShiftState done [21:18:09]FM_GetShiftState done [21:18:09]req_shift_opened done [21:18:09]requested_item shift.open_date is exist - process it [21:18:09]req_shift_open_date [21:18:09]req_shift_open_date done [21:18:09]produce_requested_data done [21:18:09]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162947,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:18:09]process_action_free close_receipt [21:18:09]json_value_free [21:18:09]json_value_free done [21:18:09]process_json_proto returns [21:18:09]Send response to host [21:18:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162947,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:18:09]free response buf [21:18:09]execute_script done [21:18:09]execute_script returns [21:18:09]free content buf [21:18:09]Sock 9.Close socket [21:18:09]Sock 9.Thread stoped [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]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:39]accept exits with 7 [21:37:39]New connection [21:37:39]New thread 3066879332 created [21:37:39]Thread 3066735972 joined [21:37:39]Waiting for new connection... [21:37:39] Sock 7.Parse request [21:37:39]Sock 7.Check first char [21:37:39]Sock 7.First char is OK [21:37:39]request: POST /json_proto HTTP/1.0 [21:37:39]Method: POST [21:37:39]URL: /json_proto [21:37:39]Method is POST - this is cgi request [21:37:39]url: /json_proto [21:37:39]query_string will be loaded in cgi processing [21:37:39]execute_cgi json_proto POST (null) [21:37:39]execute_cgi path=json_proto method=POST [21:37:39]POST find Content-Length [21:37:39]Host: 172.17.39.67:8080 [21:37:39]Content-Length: 809 [21:37:39]Content-Type: application/json [21:37:39] [21:37:39]POST finish read [21:37:39]Found Content-Length = 809 [21:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:39]execute_script... [21:37: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)1319559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:39]POST & json_proto [21:37:39]process_json_proto [21:37:39]json parsed OK: [21:37:39]protocol is kg_v1.0 [21:37:39]action value=close_receipt [21:37:39]process_action close_receipt [21:37:39]cmd_close_receipt [21:37:39]MH_GetDate [21:37:39]Write to MH i2c: F0 00 00 52 40 81 [21:37:39]Write i2c OK [21:37:39]MH_I2C_Read... [21:37:39]Read from MH i2c: F0 [21:37:39]MH_I2C_Read... [21:37:39]Read from MH i2c: F0 09 00 [21:37:39]MH_I2C_Read... [21:37:39]Read from MH i2c: F0 09 00 52 40 00 26 45 94 66 B6 85 93 66 23 [21:37:39]GetLastDocTimeStamp 1720991888 [21:37:39]current date 1720993062 [21:37:39]FM_GetShiftState [21:37:39]SAM_PROTO_GetShiftState [21:37:39]wFMCommunicate request_size=4 [21:37:39]MH_SAM_APDU [21:37:39]CAPDU: 80 13 01 00 [21:37:39]Write to MH i2c: E2 08 00 53 40 80 13 01 00 00 00 00 00 10 [21:37:39]Write i2c OK [21:37:39]MH_I2C_Read... [21:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:39]Read from MH i2c: E2 [21:37:39]MH_I2C_Read... [21:37:39]Read from MH i2c: E2 0E 00 [21:37:39]MH_I2C_Read... [21:37:39]Read from MH i2c: E2 0E 00 53 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 46 [21:37:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:37:39]wFMCommunicate OK [21:37:39]SAM_PROTO_GetShiftState done [21:37:39]FM_GetShiftState done [21:37:39]opened in 1720915483 [21:37:39]opened+sec_in_day 1721001883 [21:37:39]quantity*price = 199940 [21:37:39]sum+1 = 199941 [21:37:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1999.40 НСП 1% : 17.69 НДС 12% : 212.33 Наличными: 0.00 Безнал.: 1999.40 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 260 14.07.2024 21:37 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162948 ФПД: 74463486330833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T213742&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162948&fm=74463486330833&tin=02508201610067®Number=0000000000090858&sum=199940 [21:37:40]StoreToDocumentArchive [21:37:40]shift 463 fd 162948 [21:37:40]save to /storage/0463/doc_00162948 [21:37:40]save last doc name /storage/0463/doc_00162948 to /storage/kkm_last_doc_name [21:37:40]save OK [21:37:40]Clear old archive folders... [21:37:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:37:40]tlvbuf is 01368BE0 [21:37:40]SAM_PROTO_ClearQueue [21:37:40]wFMCommunicate request_size=4 [21:37:40]MH_SAM_APDU [21:37:40]CAPDU: 80 09 00 00 [21:37:40]Write to MH i2c: E2 08 00 60 40 80 09 00 00 00 00 00 00 12 [21:37:40]Write i2c OK [21:37:40]MH_I2C_Read... [21:37:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:40]Read from MH i2c: E2 [21:37:40]MH_I2C_Read... [21:37:40]Read from MH i2c: E2 03 00 [21:37:40]MH_I2C_Read... [21:37:40]Read from MH i2c: E2 03 00 60 40 00 90 00 14 [21:37:40]RAPDU: 90 00 [21:37:40]wFMCommunicate OK [21:37:40]SAM_PROTO_ClearQueue done [21:37:40]KKMCreateOFDPacket [21:37:40]OFDProtocolAddRootSTLVToBuf [21:37:40]FM_MakeSignedData [21:37:40]FM_MakeSignedData [21:37:40]SAM_PROTO_SignData [21:37:40]wFMCommunicate request_size=4 [21:37:40]MH_SAM_APDU [21:37:40]CAPDU: 80 0D 01 02 [21:37:40]Write to MH i2c: E2 08 00 61 40 80 0D 01 02 00 00 00 00 1A [21:37:40]Write i2c OK [21:37:40]MH_I2C_Read... [21:37:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:41]Read from MH i2c: E2 [21:37:41]MH_I2C_Read... [21:37:41]Read from MH i2c: E2 03 00 [21:37:41]MH_I2C_Read... [21:37:41]Read from MH i2c: E2 03 00 61 40 00 90 00 15 [21:37:41]RAPDU: 90 00 [21:37:41]wFMCommunicate OK [21:37:41]wFMCommunicate request_size=255 [21:37:41]MH_SAM_APDU [21:37:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 26 45 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7C 02 00 35 04 06 00 [21:37:41]Write to MH i2c: E2 02 01 62 40 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 26 45 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7C 02 00 35 04 06 00 00 00 92 [21:37:41]Write i2c OK [21:37:41]MH_I2C_Read... [21:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:41]Read from MH i2c: E2 [21:37:41]MH_I2C_Read... [21:37:41]Read from MH i2c: E2 03 00 [21:37:41]MH_I2C_Read... [21:37:41]Read from MH i2c: E2 03 00 62 40 00 90 00 16 [21:37:41]RAPDU: 90 00 [21:37:41]wFMCommunicate OK [21:37:41]wFMCommunicate request_size=11 [21:37:41]MH_SAM_APDU [21:37:41]CAPDU: 80 0D 02 02 06 43 B9 61 A6 C7 D1 [21:37:41]Write to MH i2c: E2 0E 00 63 40 80 0D 02 02 06 00 43 B9 61 A6 C7 D1 00 00 C4 [21:37:41]Write i2c OK [21:37:41]MH_I2C_Read... [21:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:41]Read from MH i2c: E2 [21:37:41]MH_I2C_Read... [21:37:41]Read from MH i2c: E2 03 00 [21:37:41]MH_I2C_Read... [21:37:41]Read from MH i2c: E2 03 00 63 40 00 90 00 17 [21:37:41]RAPDU: 90 00 [21:37:41]wFMCommunicate OK [21:37:41]wFMCommunicate request_size=4 [21:37:41]MH_SAM_APDU [21:37:41]CAPDU: 80 0D 03 02 [21:37:41]Write to MH i2c: E2 08 00 64 40 80 0D 03 02 00 00 00 00 1F [21:37:41]Write i2c OK [21:37:41]MH_I2C_Read... [21:37:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:41]Read from MH i2c: E2 [21:37:41]MH_I2C_Read... [21:37:41]Read from MH i2c: E2 0B 00 [21:37:41]MH_I2C_Read... [21:37:41]Read from MH i2c: E2 0B 00 64 40 00 A4 D5 D0 65 D2 6D AA E4 90 00 9B [21:37:41]RAPDU: A4 D5 D0 65 D2 6D AA E4 90 00 [21:37:41]wFMCommunicate OK [21:37:41]SAM_PROTO_SignData done [21:37:41]FM_MakeSignedData done [21:37:41]CreateOFDProtocolMessage [21:37:41]wFMCommunicate request_size=4 [21:37:41]MH_SAM_APDU [21:37:41]CAPDU: 80 11 00 00 [21:37:41]Write to MH i2c: E2 08 00 65 40 80 11 00 00 00 00 00 00 1F [21:37:41]Write i2c OK [21:37:41]MH_I2C_Read... [21:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:41]Read from MH i2c: E2 [21:37:41]MH_I2C_Read... [21:37:41]Read from MH i2c: E2 17 00 [21:37:41]MH_I2C_Read... [21:37:41]Read from MH i2c: E2 17 00 65 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7F [21:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:37:41]wFMCommunicate OK [21:37:41]CreateOFDProtocolMessage done [21:37:41]OFDSenderStorePacket 162948 [21:37:41]StoreOFDPacket docnum=162948 [21:37:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 97 BE 08 01 12 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 26 45 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7C 02 00 35 04 06 00 43 B9 61 A6 C7 D1 A4 D5 D0 65 D2 6D AA E4 [21:37:41]CheckFolder [21:37:41]dirname=/storage/ofd_packets [21:37:41]CheckFolder done [21:37:41]ProducePacketName [21:37:41]name=ofd_packets/00162948 [21:37:41]NVStorageSaveData ofd_packets/00162948 [21:37:41]File name is /storage/ofd_packets/00162948 [21:37:41]Write 302 bytes [21:37:41]NVStorageSaveData done [21:37:41]OFDSenderStorePacket done [21:37:41]KKMCreateOFDPacket done [21:37:41]NVStorageSaveData kkm_last_timestamp [21:37:41]File name is /storage/kkm_last_timestamp [21:37:41]Write 4 bytes [21:37:41]NVStorageSaveData done [21:37:41]ExternCall_PrintAddStr [21:37:41]wPrintStart [21:37:41]Write to MH i2c: 01 00 00 66 40 A6 [21:37:41]Write i2c OK [21:37:41]MH_I2C_Read... [21:37:41]Read from MH i2c: 01 [21:37:41]MH_I2C_Read... [21:37:41]Read from MH i2c: 01 07 00 [21:37:41]MH_I2C_Read... [21:37:41]Read from MH i2c: 01 07 00 66 40 00 00 00 00 00 FF 0F BB [21:37:41]RasterBufferAndPrint [21:37:41]line Счет N : (1)1319559 [21:37:41]line ИНН: 02508201610067 [21:37:41]line Контрольно-Кассовый Чек [21:37:41]line ПРОДАЖА [21:37:41]line ТРК (МРК, ГНК) : 11 [21:37:41]line Товар: 2710194210 [21:37:41]line ДТ(л)-К-5 [21:37:41]line 27.540 * 72.60 [21:37:41]line = 1999.40 [21:37:41]line НДС 12% НСП 1% [21:37:41]line > о реализуемом товаре [21:37:41]line ИТОГО: 1999.40 [21:37:41]line НСП 1% : 17.69 [21:37:41]line НДС 12% : 212.33 [21:37:41]line Наличными: 0.00 [21:37:41]line Безнал.: 1999.40 [21:37:41]line Место: АЗС № 140 "Партнер Нефть" [21:37:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:37:41]line СНО: Общий режим [21:37:41]line Чек 260 14.07.2024 21:37 [21:37:41]line Смена: 463 ФФД: 1.0 [21:37:41]line ЗНМ: 0300000129 [21:37:41]line РНМ: 0000000000090858 [21:37:41]line Версия ККМ: 001 [21:37:41]line Платежная система: O! деньги [21:37:41]line ФМ: 0000000000874899 [21:37:41]line ФД: 162948 [21:37:41]line ФПД: 74463486330833 [21:37:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T213742&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162948&fm=74463486330833&tin=02508201610067®Number=0000000000090858&sum=199940 [21:37:41]written 0, free lines is 4095 [21:37:41]OFD Sender: Processing packet 162948 [packets to send 106, broken 105] [21:37:41]ProducePacketName [21:37:41]name=ofd_packets/00162948 [21:37:41]OFD Sender: To server: pG, [21:37:41]CommunicateWithHost lk.salyk.kg:30040 [21:37:41]ConnectInit lk.salyk.kg [21:37:41]Connected sock=10 [21:37:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 97 BE 08 01 12 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 26 45 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7C 02 00 35 04 06 00 43 B9 61 A6 C7 D1 A4 D5 D0 65 D2 6D AA E4 [21:37:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E3 23 47 00 88 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7C 02 00 F4 03 04 00 33 F1 93 66 B6 04 01 00 00 FF 4E A7 B4 D6 E0 72 07 [21:37:42]CommunicateWithHost err = 0 [21:37:42]CheckOFDResponse [21:37:42]1017 (14) - 77093643461234 [21:37:42]1041 (16) - 0000000000874899 [21:37:42]1040 (4) - 162948 [21:37:42]1012 (4) - 14.07.2024 15:39 [21:37:42]1206 (1) - 0 [21:37:42]OFD Sender: Remove packet 162948 [21:37:42]ProducePacketName [21:37:42]name=ofd_packets/00162948 [21:37:42]NVStorageDeleteData [21:37:42]Write to MH i2c: 01 00 00 90 40 D0 [21:37:42]Write i2c OK [21:37:42]MH_I2C_Read... [21:37:42]Read from MH i2c: 01 [21:37:42]MH_I2C_Read... [21:37:42]Read from MH i2c: 01 07 00 [21:37:42]MH_I2C_Read... [21:37:42]Read from MH i2c: 01 07 00 90 40 00 00 00 00 00 ED 0C D0 [21:37:42]RasterBufferAndPrint [21:37:42]line [21:37:42]line [21:37:42]line [21:37:42]line [21:37:42]line [21:37:42]written 0, free lines is 3315 [21:37:42]MH_Cut [21:37:42]Write to MH i2c: D1 01 00 97 40 01 A9 [21:37:42]Write i2c OK [21:37:42]MH_I2C_Read... [21:37:42]Read from MH i2c: D1 [21:37:42]MH_I2C_Read... [21:37:42]Read from MH i2c: D1 01 00 [21:37:42]MH_I2C_Read... [21:37:42]Read from MH i2c: D1 01 00 97 40 00 A8 [21:37:42]Write to MH i2c: 01 00 00 98 40 D8 [21:37:42]Write i2c OK [21:37:42]MH_I2C_Read... [21:37:42]OFD Sender: No OFD packet to send [21:37:43]*** Cut start [21:37:43]*** Purtial cut [21:37:43]*** CUTSNS_PIN = 0 [21:37:43]*** Stage 1: CUTSNS_PIN = 1 [21:37:45]Read from MH i2c: 01 [21:37:45]MH_I2C_Read... [21:37:45]*** Stop cut motor [21:37:45]*** Cut end [21:37:45]Read from MH i2c: 01 07 00 [21:37:45]MH_I2C_Read... [21:37:45]Read from MH i2c: 01 07 00 98 40 00 00 00 00 00 FF 0F ED [21:37:45]process_action close_receipt done [21:37:45]requested_data is exist [21:37:45]produce_requested_data [21:37:45]requested_item fm.sn is exist - process it [21:37:45]wFMCommunicate request_size=4 [21:37:45]MH_SAM_APDU [21:37:45]CAPDU: 80 11 00 00 [21:37:45]Write to MH i2c: E2 08 00 99 40 80 11 00 00 00 00 00 00 53 [21:37:45]Write i2c OK [21:37:45]MH_I2C_Read... [21:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:45]Read from MH i2c: E2 [21:37:45]MH_I2C_Read... [21:37:45]Read from MH i2c: E2 17 00 [21:37:45]MH_I2C_Read... [21:37:45]Read from MH i2c: E2 17 00 99 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B3 [21:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:37:45]wFMCommunicate OK [21:37:45]requested_item fd.num is exist - process it [21:37:45]SAM_PROTO_GetFieldsCounters [21:37:45]wFMCommunicate request_size=4 [21:37:45]MH_SAM_APDU [21:37:45]CAPDU: 80 13 00 00 [21:37:45]Write to MH i2c: E2 08 00 9A 40 80 13 00 00 00 00 00 00 56 [21:37:45]Write i2c OK [21:37:45]MH_I2C_Read... [21:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:45]Read from MH i2c: E2 [21:37:45]MH_I2C_Read... [21:37:45]Read from MH i2c: E2 62 00 [21:37:45]MH_I2C_Read... [21:37:45]Read from MH i2c: E2 62 00 9A 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 84 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [21:37:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 84 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:45]wFMCommunicate OK [21:37:45]SAM_PROTO_GetFieldsCounters done [21:37:45]requested_item shift.num is exist - process it [21:37:45]requested_item shift.opened is exist - process it [21:37:45]req_shift_opened [21:37:45]FM_GetShiftState [21:37:45]SAM_PROTO_GetShiftState [21:37:45]wFMCommunicate request_size=4 [21:37:45]MH_SAM_APDU [21:37:45]CAPDU: 80 13 01 00 [21:37:45]Write to MH i2c: E2 08 00 9B 40 80 13 01 00 00 00 00 00 58 [21:37:45]Write i2c OK [21:37:45]MH_I2C_Read... [21:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:45]Read from MH i2c: E2 [21:37:45]MH_I2C_Read... [21:37:45]Read from MH i2c: E2 0E 00 [21:37:45]MH_I2C_Read... [21:37:45]Read from MH i2c: E2 0E 00 9B 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8E [21:37:45]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:37:45]wFMCommunicate OK [21:37:45]SAM_PROTO_GetShiftState done [21:37:45]FM_GetShiftState done [21:37:45]req_shift_opened done [21:37:45]requested_item shift.open_date is exist - process it [21:37:45]req_shift_open_date [21:37:45]req_shift_open_date done [21:37:45]produce_requested_data done [21:37:45]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162948,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:37:45]process_action_free close_receipt [21:37:45]json_value_free [21:37:45]json_value_free done [21:37:45]process_json_proto returns [21:37:45]Send response to host [21:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162948,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:37:45]free response buf [21:37:45]execute_script done [21:37:45]execute_script returns [21:37:45]free content buf [21:37:45]Sock 7.Close socket [21:37:45]Sock 7.Thread stoped [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:21]accept exits with 9 [21:42:21]New connection [21:42:21]New thread 3066735972 created [21:42:21]Thread 3066879332 joined [21:42:21]Waiting for new connection... [21:42:21] Sock 9.Parse request [21:42:21]Sock 9.Check first char [21:42:21]Sock 9.First char is OK [21:42:21]request: POST /json_proto HTTP/1.0 [21:42:21]Method: POST [21:42:21]URL: /json_proto [21:42:21]Method is POST - this is cgi request [21:42:21]url: /json_proto [21:42:21]query_string will be loaded in cgi processing [21:42:21]execute_cgi json_proto POST (null) [21:42:21]execute_cgi path=json_proto method=POST [21:42:21]POST find Content-Length [21:42:21]Host: 172.17.39.67:8080 [21:42:21]Content-Length: 679 [21:42:21]Content-Type: application/json [21:42:21] [21:42:21]POST finish read [21:42:21]Found Content-Length = 679 [21:42:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:21]execute_script... [21:42: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)1319560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:21]POST & json_proto [21:42:21]process_json_proto [21:42:21]json parsed OK: [21:42:21]protocol is kg_v1.0 [21:42:21]action value=close_receipt [21:42:21]process_action close_receipt [21:42:21]cmd_close_receipt [21:42:21]MH_GetDate [21:42:21]Write to MH i2c: F0 00 00 9C 40 CB [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: F0 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: F0 09 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: F0 09 00 9C 40 00 40 46 94 66 B6 85 93 66 88 [21:42:21]GetLastDocTimeStamp 1720993062 [21:42:21]current date 1720993344 [21:42:21]FM_GetShiftState [21:42:21]SAM_PROTO_GetShiftState [21:42:21]wFMCommunicate request_size=4 [21:42:21]MH_SAM_APDU [21:42:21]CAPDU: 80 13 01 00 [21:42:21]Write to MH i2c: E2 08 00 9D 40 80 13 01 00 00 00 00 00 5A [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:21]Read from MH i2c: E2 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 0E 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 0E 00 9D 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 90 [21:42:21]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:42:21]wFMCommunicate OK [21:42:21]SAM_PROTO_GetShiftState done [21:42:21]FM_GetShiftState done [21:42:21]opened in 1720915483 [21:42:21]opened+sec_in_day 1721001883 [21:42:21]quantity*price = 67029 [21:42:21]sum+1 = 67030 [21:42:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.18 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 261 14.07.2024 21:42 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162949 ФПД: 147518365658174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T214224&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162949&fm=147518365658174&tin=02508201610067®Number=0000000000090858&sum=67000 [21:42:22]StoreToDocumentArchive [21:42:22]shift 463 fd 162949 [21:42:22]save to /storage/0463/doc_00162949 [21:42:22]save last doc name /storage/0463/doc_00162949 to /storage/kkm_last_doc_name [21:42:22]save OK [21:42:22]Clear old archive folders... [21:42:22]OFD Sender: No OFD packet to send [21:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:22]tlvbuf is B6F43750 [21:42:22]SAM_PROTO_ClearQueue [21:42:22]wFMCommunicate request_size=4 [21:42:22]MH_SAM_APDU [21:42:22]CAPDU: 80 09 00 00 [21:42:22]Write to MH i2c: E2 08 00 AA 40 80 09 00 00 00 00 00 00 5C [21:42:22]Write i2c OK [21:42:22]MH_I2C_Read... [21:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:22]Read from MH i2c: E2 [21:42:22]MH_I2C_Read... [21:42:22]Read from MH i2c: E2 03 00 [21:42:22]MH_I2C_Read... [21:42:22]Read from MH i2c: E2 03 00 AA 40 00 90 00 5E [21:42:22]RAPDU: 90 00 [21:42:22]wFMCommunicate OK [21:42:22]SAM_PROTO_ClearQueue done [21:42:22]KKMCreateOFDPacket [21:42:22]OFDProtocolAddRootSTLVToBuf [21:42:22]FM_MakeSignedData [21:42:22]FM_MakeSignedData [21:42:22]SAM_PROTO_SignData [21:42:22]wFMCommunicate request_size=4 [21:42:22]MH_SAM_APDU [21:42:22]CAPDU: 80 0D 01 02 [21:42:22]Write to MH i2c: E2 08 00 AB 40 80 0D 01 02 00 00 00 00 64 [21:42:22]Write i2c OK [21:42:22]MH_I2C_Read... [21:42:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:23]Read from MH i2c: E2 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 03 00 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 03 00 AB 40 00 90 00 5F [21:42:23]RAPDU: 90 00 [21:42:23]wFMCommunicate OK [21:42:23]wFMCommunicate request_size=255 [21:42:23]MH_SAM_APDU [21:42: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 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 40 46 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7C 02 00 35 04 06 00 86 [21:42:23]Write to MH i2c: E2 02 01 AC 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 40 46 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7C 02 00 35 04 06 00 86 00 00 96 [21:42:23]Write i2c OK [21:42:23]MH_I2C_Read... [21:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:23]Read from MH i2c: E2 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 03 00 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 03 00 AC 40 00 90 00 60 [21:42:23]RAPDU: 90 00 [21:42:23]wFMCommunicate OK [21:42:23]wFMCommunicate request_size=10 [21:42:23]MH_SAM_APDU [21:42:23]CAPDU: 80 0D 02 02 05 2A CB C8 6C 3E [21:42:23]Write to MH i2c: E2 0D 00 AD 40 80 0D 02 02 05 00 2A CB C8 6C 3E 00 00 D8 [21:42:23]Write i2c OK [21:42:23]MH_I2C_Read... [21:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:23]Read from MH i2c: E2 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 03 00 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 03 00 AD 40 00 90 00 61 [21:42:23]RAPDU: 90 00 [21:42:23]wFMCommunicate OK [21:42:23]wFMCommunicate request_size=4 [21:42:23]MH_SAM_APDU [21:42:23]CAPDU: 80 0D 03 02 [21:42:23]Write to MH i2c: E2 08 00 AE 40 80 0D 03 02 00 00 00 00 69 [21:42:23]Write i2c OK [21:42:23]MH_I2C_Read... [21:42:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:23]Read from MH i2c: E2 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 0B 00 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 0B 00 AE 40 00 98 59 77 3A 54 6C D7 93 90 00 36 [21:42:23]RAPDU: 98 59 77 3A 54 6C D7 93 90 00 [21:42:23]wFMCommunicate OK [21:42:23]SAM_PROTO_SignData done [21:42:23]FM_MakeSignedData done [21:42:23]CreateOFDProtocolMessage [21:42:23]wFMCommunicate request_size=4 [21:42:23]MH_SAM_APDU [21:42:23]CAPDU: 80 11 00 00 [21:42:23]Write to MH i2c: E2 08 00 AF 40 80 11 00 00 00 00 00 00 69 [21:42:23]Write i2c OK [21:42:23]MH_I2C_Read... [21:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:23]Read from MH i2c: E2 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 17 00 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 17 00 AF 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C9 [21:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:42:23]wFMCommunicate OK [21:42:23]CreateOFDProtocolMessage done [21:42:23]OFDSenderStorePacket 162949 [21:42:23]StoreOFDPacket docnum=162949 [21:42:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 31 2F 07 01 BE EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 40 46 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7C 02 00 35 04 06 00 86 2A CB C8 6C 3E 98 59 77 3A 54 6C D7 93 [21:42:23]CheckFolder [21:42:23]dirname=/storage/ofd_packets [21:42:23]CheckFolder done [21:42:23]ProducePacketName [21:42:23]name=ofd_packets/00162949 [21:42:23]NVStorageSaveData ofd_packets/00162949 [21:42:23]File name is /storage/ofd_packets/00162949 [21:42:23]Write 301 bytes [21:42:23]NVStorageSaveData done [21:42:23]OFDSenderStorePacket done [21:42:23]KKMCreateOFDPacket done [21:42:23]NVStorageSaveData kkm_last_timestamp [21:42:23]File name is /storage/kkm_last_timestamp [21:42:23]Write 4 bytes [21:42:23]NVStorageSaveData done [21:42:23]ExternCall_PrintAddStr [21:42:23]wPrintStart [21:42:23]Write to MH i2c: 01 00 00 B0 40 F0 [21:42:23]Write i2c OK [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: 01 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: 01 07 00 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: 01 07 00 B0 40 00 00 00 00 00 FF 0F 05 [21:42:23]RasterBufferAndPrint [21:42:23]line Счет N : (1)1319560 [21:42:23]line ИНН: 02508201610067 [21:42:23]line Контрольно-Кассовый Чек [21:42:23]line ПРОДАЖА [21:42:23]line ТРК (МРК, ГНК) : 43 [21:42:23]line Товар: 2710124130 [21:42:23]line Аи-92-К-5 [21:42:23]line 10.110 * 66.30 [21:42:23]line = 670.29 [21:42:23]line НДС 12% НСП 1% [21:42:23]line > о реализуемом товаре [21:42:23]line ОКРУГЛЕНИЕ: -0.29 [21:42:23]line ИТОГО: 670.00 [21:42:23]line Внесено: 670.00 [21:42:23]line СДАЧА: 0.00 [21:42:23]line НСП 1% : 5.93 [21:42:23]line НДС 12% : 71.18 [21:42:23]line Наличными: 670.00 [21:42:23]line Безнал.: 0.00 [21:42:23]line Место: АЗС № 140 "Партнер Нефть" [21:42:23]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:42:23]line СНО: Общий режим [21:42:23]line Чек 261 14.07.2024 21:42 [21:42:23]line Смена: 463 ФФД: 1.0 [21:42:23]line ЗНМ: 0300000129 [21:42:23]line РНМ: 0000000000090858 [21:42:23]line Версия ККМ: 001 [21:42:23]line ФМ: 0000000000874899 [21:42:23]line ФД: 162949 [21:42:23]line ФПД: 147518365658174 [21:42:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T214224&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162949&fm=147518365658174&tin=02508201610067®Number=0000000000090858&sum=67000 [21:42:23]OFD Sender: Processing packet 162949 [packets to send 106, broken 105] [21:42:23]ProducePacketName [21:42:23]name=ofd_packets/00162949 [21:42:23]OFD Sender: To server: pG, [21:42:23]CommunicateWithHost lk.salyk.kg:30040 [21:42:23]ConnectInit lk.salyk.kg [21:42:23]written 0, free lines is 4095 [21:42:23]Connected sock=10 [21:42:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 31 2F 07 01 BE EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 40 46 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7C 02 00 35 04 06 00 86 2A CB C8 6C 3E 98 59 77 3A 54 6C D7 93 [21:42:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 66 14 47 00 B9 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7C 02 00 F4 03 04 00 4D F2 93 66 B6 04 01 00 00 B4 24 E3 1A 5C 47 EE 5E [21:42:24]CommunicateWithHost err = 0 [21:42:24]CheckOFDResponse [21:42:24]1017 (14) - 77093643461234 [21:42:24]1041 (16) - 0000000000874899 [21:42:24]1040 (4) - 162949 [21:42:24]1012 (4) - 14.07.2024 15:44 [21:42:24]1206 (1) - 0 [21:42:24]OFD Sender: Remove packet 162949 [21:42:24]ProducePacketName [21:42:24]name=ofd_packets/00162949 [21:42:24]NVStorageDeleteData [21:42:24]Write to MH i2c: 01 00 00 DB 40 1B [21:42:24]Write i2c OK [21:42:24]MH_I2C_Read... [21:42:24]Read from MH i2c: 01 [21:42:24]MH_I2C_Read... [21:42:24]Read from MH i2c: 01 07 00 [21:42:24]MH_I2C_Read... [21:42:24]Read from MH i2c: 01 07 00 DB 40 00 00 00 00 00 CE 0C FC [21:42:24]RasterBufferAndPrint [21:42:24]line [21:42:24]line [21:42:24]line [21:42:24]line [21:42:24]line [21:42:24]written 0, free lines is 3284 [21:42:24]MH_Cut [21:42:24]Write to MH i2c: D1 01 00 E2 40 01 F4 [21:42:24]Write i2c OK [21:42:24]MH_I2C_Read... [21:42:24]Read from MH i2c: D1 [21:42:24]MH_I2C_Read... [21:42:24]Read from MH i2c: D1 01 00 [21:42:24]MH_I2C_Read... [21:42:24]Read from MH i2c: D1 01 00 E2 40 00 F3 [21:42:24]Write to MH i2c: 01 00 00 E3 40 23 [21:42:24]Write i2c OK [21:42:24]MH_I2C_Read... [21:42:24]OFD Sender: No OFD packet to send [21:42:25]*** Cut start [21:42:25]*** Purtial cut [21:42:25]*** Stage 1: CUTSNS_PIN = 1 [21:42:25]Read from MH i2c: 01 [21:42:25]MH_I2C_Read... [21:42:25]*** Stop cut motor [21:42:25]*** Cut end [21:42:25]Read from MH i2c: 01 07 00 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: 01 07 00 E3 40 00 00 00 00 00 FF 0F 38 [21:42:25]process_action close_receipt done [21:42:25]requested_data is exist [21:42:25]produce_requested_data [21:42:25]requested_item fm.sn is exist - process it [21:42:25]wFMCommunicate request_size=4 [21:42:25]MH_SAM_APDU [21:42:25]CAPDU: 80 11 00 00 [21:42:25]Write to MH i2c: E2 08 00 E4 40 80 11 00 00 00 00 00 00 9E [21:42:25]Write i2c OK [21:42:25]MH_I2C_Read... [21:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:25]Read from MH i2c: E2 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 17 00 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 17 00 E4 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FE [21:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:42:25]wFMCommunicate OK [21:42:25]requested_item fd.num is exist - process it [21:42:25]SAM_PROTO_GetFieldsCounters [21:42:25]wFMCommunicate request_size=4 [21:42:25]MH_SAM_APDU [21:42:25]CAPDU: 80 13 00 00 [21:42:25]Write to MH i2c: E2 08 00 E5 40 80 13 00 00 00 00 00 00 A1 [21:42:25]Write i2c OK [21:42:25]MH_I2C_Read... [21:42:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:25]Read from MH i2c: E2 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 62 00 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 62 00 E5 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 85 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [21:42:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 85 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:25]wFMCommunicate OK [21:42:25]SAM_PROTO_GetFieldsCounters done [21:42:25]requested_item shift.num is exist - process it [21:42:25]requested_item shift.opened is exist - process it [21:42:25]req_shift_opened [21:42:25]FM_GetShiftState [21:42:25]SAM_PROTO_GetShiftState [21:42:25]wFMCommunicate request_size=4 [21:42:25]MH_SAM_APDU [21:42:25]CAPDU: 80 13 01 00 [21:42:25]Write to MH i2c: E2 08 00 E6 40 80 13 01 00 00 00 00 00 A3 [21:42:25]Write i2c OK [21:42:25]MH_I2C_Read... [21:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:25]Read from MH i2c: E2 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 0E 00 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 0E 00 E6 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D9 [21:42:25]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:42:25]wFMCommunicate OK [21:42:25]SAM_PROTO_GetShiftState done [21:42:25]FM_GetShiftState done [21:42:25]req_shift_opened done [21:42:25]requested_item shift.open_date is exist - process it [21:42:25]req_shift_open_date [21:42:25]req_shift_open_date done [21:42:25]produce_requested_data done [21:42:25]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162949,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:42:25]process_action_free close_receipt [21:42:25]json_value_free [21:42:25]json_value_free done [21:42:25]process_json_proto returns [21:42:25]Send response to host [21:42:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162949,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:42:25]free response buf [21:42:25]execute_script done [21:42:25]execute_script returns [21:42:25]free content buf [21:42:25]Sock 9.Close socket [21:42:25]Sock 9.Thread stoped [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:35]accept exits with 7 [21:47:35]New connection [21:47:35]New thread 3066879332 created [21:47:35]Thread 3066735972 joined [21:47:35]Waiting for new connection... [21:47:35] Sock 7.Parse request [21:47:35]Sock 7.Check first char [21:47:35]Sock 7.First char is OK [21:47:35]request: POST /json_proto HTTP/1.0 [21:47:35]Method: POST [21:47:35]URL: /json_proto [21:47:35]Method is POST - this is cgi request [21:47:35]url: /json_proto [21:47:35]query_string will be loaded in cgi processing [21:47:35]execute_cgi json_proto POST (null) [21:47:35]execute_cgi path=json_proto method=POST [21:47:35]POST find Content-Length [21:47:35]Host: 172.17.39.67:8080 [21:47:35]Content-Length: 678 [21:47:35]Content-Type: application/json [21:47:35] [21:47:35]POST finish read [21:47:35]Found Content-Length = 678 [21:47:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.130, "sum" : 605.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 605.00, "total" : 605.00, "payments": [ { "type": 0, "sum" : 605.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:35]execute_script... [21:47: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)1319561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.130, "sum" : 605.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 605.00, "total" : 605.00, "payments": [ { "type": 0, "sum" : 605.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:35]POST & json_proto [21:47:35]process_json_proto [21:47:35]json parsed OK: [21:47:35]protocol is kg_v1.0 [21:47:35]action value=close_receipt [21:47:35]process_action close_receipt [21:47:35]cmd_close_receipt [21:47:35]MH_GetDate [21:47:35]Write to MH i2c: F0 00 00 E7 40 16 [21:47:35]Write i2c OK [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: F0 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: F0 09 00 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: F0 09 00 E7 40 00 7A 47 94 66 B6 85 93 66 0E [21:47:35]GetLastDocTimeStamp 1720993344 [21:47:35]current date 1720993658 [21:47:35]FM_GetShiftState [21:47:35]SAM_PROTO_GetShiftState [21:47:35]wFMCommunicate request_size=4 [21:47:35]MH_SAM_APDU [21:47:35]CAPDU: 80 13 01 00 [21:47:35]Write to MH i2c: E2 08 00 E8 40 80 13 01 00 00 00 00 00 A5 [21:47:35]Write i2c OK [21:47:35]MH_I2C_Read... [21:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:35]Read from MH i2c: E2 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: E2 0E 00 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: E2 0E 00 E8 40 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 DB [21:47:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:47:35]wFMCommunicate OK [21:47:35]SAM_PROTO_GetShiftState done [21:47:35]FM_GetShiftState done [21:47:35]opened in 1720915483 [21:47:35]opened+sec_in_day 1721001883 [21:47:35]quantity*price = 60531 [21:47:35]sum+1 = 60533 [21:47:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 605.00 Внесено: 605.00 СДАЧА: 0.00 НСП 1% : 5.36 НДС 12% : 64.28 Наличными: 605.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 262 14.07.2024 21:47 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162950 ФПД: 278005075312419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T214738&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162950&fm=278005075312419&tin=02508201610067®Number=0000000000090858&sum=60500 [21:47:36]StoreToDocumentArchive [21:47:36]shift 463 fd 162950 [21:47:36]save to /storage/0463/doc_00162950 [21:47:36]save last doc name /storage/0463/doc_00162950 to /storage/kkm_last_doc_name [21:47:36]save OK [21:47:36]Clear old archive folders... [21:47:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:47:36]tlvbuf is 01220220 [21:47:36]SAM_PROTO_ClearQueue [21:47:36]wFMCommunicate request_size=4 [21:47:36]MH_SAM_APDU [21:47:36]CAPDU: 80 09 00 00 [21:47:36]Write to MH i2c: E2 08 00 F5 40 80 09 00 00 00 00 00 00 A7 [21:47:36]Write i2c OK [21:47:36]MH_I2C_Read... [21:47:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:36]Read from MH i2c: E2 [21:47:36]MH_I2C_Read... [21:47:36]Read from MH i2c: E2 03 00 [21:47:36]MH_I2C_Read... [21:47:36]Read from MH i2c: E2 03 00 F5 40 00 90 00 A9 [21:47:36]RAPDU: 90 00 [21:47:36]wFMCommunicate OK [21:47:36]SAM_PROTO_ClearQueue done [21:47:36]KKMCreateOFDPacket [21:47:36]OFDProtocolAddRootSTLVToBuf [21:47:36]FM_MakeSignedData [21:47:36]FM_MakeSignedData [21:47:36]SAM_PROTO_SignData [21:47:36]wFMCommunicate request_size=4 [21:47:36]MH_SAM_APDU [21:47:36]CAPDU: 80 0D 01 02 [21:47:36]Write to MH i2c: E2 08 00 F6 40 80 0D 01 02 00 00 00 00 AF [21:47:36]Write i2c OK [21:47:36]MH_I2C_Read... [21:47:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:36]Read from MH i2c: E2 [21:47:36]MH_I2C_Read... [21:47:36]Read from MH i2c: E2 03 00 [21:47:36]MH_I2C_Read... [21:47:36]Read from MH i2c: E2 03 00 F6 40 00 90 00 AA [21:47:36]RAPDU: 90 00 [21:47:36]wFMCommunicate OK [21:47:36]wFMCommunicate request_size=255 [21:47:36]MH_SAM_APDU [21:47: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 AA 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 74 EC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 EC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 19 00 00 00 00 07 04 06 00 54 EC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 7A 47 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7C 02 00 35 04 06 00 FC [21:47:36]Write to MH i2c: E2 02 01 F7 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 74 EC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 EC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 19 00 00 00 00 07 04 06 00 54 EC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 7A 47 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7C 02 00 35 04 06 00 FC 00 00 58 [21:47:36]Write i2c OK [21:47:36]MH_I2C_Read... [21:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:37]Read from MH i2c: E2 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: E2 03 00 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: E2 03 00 F7 40 00 90 00 AB [21:47:37]RAPDU: 90 00 [21:47:37]wFMCommunicate OK [21:47:37]wFMCommunicate request_size=10 [21:47:37]MH_SAM_APDU [21:47:37]CAPDU: 80 0D 02 02 05 D8 19 C2 7F 23 [21:47:37]Write to MH i2c: E2 0D 00 F8 40 80 0D 02 02 05 00 D8 19 C2 7F 23 00 00 11 [21:47:37]Write i2c OK [21:47:37]MH_I2C_Read... [21:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:37]Read from MH i2c: E2 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: E2 03 00 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: E2 03 00 F8 40 00 90 00 AC [21:47:37]RAPDU: 90 00 [21:47:37]wFMCommunicate OK [21:47:37]wFMCommunicate request_size=4 [21:47:37]MH_SAM_APDU [21:47:37]CAPDU: 80 0D 03 02 [21:47:37]Write to MH i2c: E2 08 00 F9 40 80 0D 03 02 00 00 00 00 B4 [21:47:37]Write i2c OK [21:47:37]MH_I2C_Read... [21:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:37]Read from MH i2c: E2 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: E2 0B 00 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: E2 0B 00 F9 40 00 42 EC F1 1A 77 D6 78 E1 90 00 94 [21:47:37]RAPDU: 42 EC F1 1A 77 D6 78 E1 90 00 [21:47:37]wFMCommunicate OK [21:47:37]SAM_PROTO_SignData done [21:47:37]FM_MakeSignedData done [21:47:37]CreateOFDProtocolMessage [21:47:37]wFMCommunicate request_size=4 [21:47:37]MH_SAM_APDU [21:47:37]CAPDU: 80 11 00 00 [21:47:37]Write to MH i2c: E2 08 00 FA 40 80 11 00 00 00 00 00 00 B4 [21:47:37]Write i2c OK [21:47:37]MH_I2C_Read... [21:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:37]Read from MH i2c: E2 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: E2 17 00 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: E2 17 00 FA 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 14 [21:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:47:37]wFMCommunicate OK [21:47:37]CreateOFDProtocolMessage done [21:47:37]OFDSenderStorePacket 162950 [21:47:37]StoreOFDPacket docnum=162950 [21:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A1 29 07 01 B8 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 74 EC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 EC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 19 00 00 00 00 07 04 06 00 54 EC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 7A 47 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7C 02 00 35 04 06 00 FC D8 19 C2 7F 23 42 EC F1 1A 77 D6 78 E1 [21:47:37]CheckFolder [21:47:37]dirname=/storage/ofd_packets [21:47:37]CheckFolder done [21:47:37]ProducePacketName [21:47:37]name=ofd_packets/00162950 [21:47:37]NVStorageSaveData ofd_packets/00162950 [21:47:37]File name is /storage/ofd_packets/00162950 [21:47:37]Write 301 bytes [21:47:37]NVStorageSaveData done [21:47:37]OFDSenderStorePacket done [21:47:37]KKMCreateOFDPacket done [21:47:37]NVStorageSaveData kkm_last_timestamp [21:47:37]File name is /storage/kkm_last_timestamp [21:47:37]Write 4 bytes [21:47:37]NVStorageSaveData done [21:47:37]OFD Sender: Processing packet 162950 [packets to send 106, broken 105] [21:47:37]ProducePacketName [21:47:37]name=ofd_packets/00162950 [21:47:37]OFD Sender: To server: pG, [21:47:37]CommunicateWithHost lk.salyk.kg:30040 [21:47:37]ConnectInit lk.salyk.kg [21:47:37]ExternCall_PrintAddStr [21:47:37]wPrintStart [21:47:37]Write to MH i2c: 01 00 00 FB 40 3B [21:47:37]Write i2c OK [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: 01 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: 01 07 00 [21:47:37]MH_I2C_Read... [21:47:37]Read from MH i2c: 01 07 00 FB 40 00 00 00 00 00 FF 0F 50 [21:47:37]RasterBufferAndPrint [21:47:37]line Счет N : (1)1319561 [21:47:37]line ИНН: 02508201610067 [21:47:37]line Контрольно-Кассовый Чек [21:47:37]line ПРОДАЖА [21:47:37]line ТРК (МРК, ГНК) : 43 [21:47:37]line Товар: 2710124130 [21:47:37]line Аи-92-К-5 [21:47:37]line 9.130 * 66.30 [21:47:37]line = 605.32 [21:47:37]line НДС 12% НСП 1% [21:47:37]line > о реализуемом товаре [21:47:37]line ОКРУГЛЕНИЕ: -0.32 [21:47:37]line ИТОГО: 605.00 [21:47:37]line Внесено: 605.00 [21:47:37]line СДАЧА: 0.00 [21:47:37]line НСП 1% : 5.36 [21:47:37]line НДС 12% : 64.28 [21:47:37]line Наличными: 605.00 [21:47:37]line Безнал.: 0.00 [21:47:37]line Место: АЗС № 140 "Партнер Нефть" [21:47:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:47:37]line СНО: Общий режим [21:47:37]line Чек 262 14.07.2024 21:47 [21:47:37]line Смена: 463 ФФД: 1.0 [21:47:37]line ЗНМ: 0300000129 [21:47:37]line РНМ: 0000000000090858 [21:47:37]line Версия ККМ: 001 [21:47:37]line ФМ: 0000000000874899 [21:47:37]line ФД: 162950 [21:47:37]line ФПД: 278005075312419 [21:47:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T214738&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162950&fm=278005075312419&tin=02508201610067®Number=0000000000090858&sum=60500 [21:47:37]Connected sock=11 [21:47:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A1 29 07 01 B8 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 74 EC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 EC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 19 00 00 00 00 07 04 06 00 54 EC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 7A 47 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7C 02 00 35 04 06 00 FC D8 19 C2 7F 23 42 EC F1 1A 77 D6 78 E1 [21:47:37]written 0, free lines is 4095 [21:47:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FF 96 47 00 9D 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7C 02 00 F4 03 04 00 87 F3 93 66 B6 04 01 00 00 FB 29 ED 6F 15 BA EE 1C [21:47:37]CommunicateWithHost err = 0 [21:47:37]CheckOFDResponse [21:47:37]1017 (14) - 77093643461234 [21:47:37]1041 (16) - 0000000000874899 [21:47:37]1040 (4) - 162950 [21:47:37]1012 (4) - 14.07.2024 15:49 [21:47:37]1206 (1) - 0 [21:47:37]OFD Sender: Remove packet 162950 [21:47:37]ProducePacketName [21:47:37]name=ofd_packets/00162950 [21:47:37]NVStorageDeleteData [21:47:38]Write to MH i2c: 01 00 00 26 41 67 [21:47:38]Write i2c OK [21:47:38]MH_I2C_Read... [21:47:38]Read from MH i2c: 01 [21:47:38]MH_I2C_Read... [21:47:38]Read from MH i2c: 01 07 00 [21:47:38]MH_I2C_Read... [21:47:38]Read from MH i2c: 01 07 00 26 41 00 00 00 00 00 D4 0C 4E [21:47:38]RasterBufferAndPrint [21:47:38]line [21:47:38]line [21:47:38]line [21:47:38]line [21:47:38]line [21:47:38]written 0, free lines is 3290 [21:47:38]MH_Cut [21:47:38]Write to MH i2c: D1 01 00 2D 41 01 40 [21:47:38]Write i2c OK [21:47:38]MH_I2C_Read... [21:47:38]Read from MH i2c: D1 [21:47:38]MH_I2C_Read... [21:47:38]Read from MH i2c: D1 01 00 [21:47:38]MH_I2C_Read... [21:47:38]Read from MH i2c: D1 01 00 2D 41 00 3F [21:47:38]Write to MH i2c: 01 00 00 2E 41 6F [21:47:38]Write i2c OK [21:47:38]MH_I2C_Read... [21:47:38]OFD Sender: No OFD packet to send [21:47:38]*** Cut start [21:47:38]*** Purtial cut [21:47:38]*** CUTSNS_PIN = 0 [21:47:39]*** Stage 1: CUTSNS_PIN = 1 [21:47:40]Read from MH i2c: 01 [21:47:41]MH_I2C_Read... [21:47:41]*** Stop cut motor [21:47:41]*** Cut end [21:47:41]Read from MH i2c: 01 07 00 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: 01 07 00 2E 41 00 00 00 00 00 FF 0F 84 [21:47:41]process_action close_receipt done [21:47:41]requested_data is exist [21:47:41]produce_requested_data [21:47:41]requested_item fm.sn is exist - process it [21:47:41]wFMCommunicate request_size=4 [21:47:41]MH_SAM_APDU [21:47:41]CAPDU: 80 11 00 00 [21:47:41]Write to MH i2c: E2 08 00 2F 41 80 11 00 00 00 00 00 00 EA [21:47:41]Write i2c OK [21:47:41]MH_I2C_Read... [21:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:41]Read from MH i2c: E2 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: E2 17 00 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: E2 17 00 2F 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4A [21:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:47:41]wFMCommunicate OK [21:47:41]requested_item fd.num is exist - process it [21:47:41]SAM_PROTO_GetFieldsCounters [21:47:41]wFMCommunicate request_size=4 [21:47:41]MH_SAM_APDU [21:47:41]CAPDU: 80 13 00 00 [21:47:41]Write to MH i2c: E2 08 00 30 41 80 13 00 00 00 00 00 00 ED [21:47:41]Write i2c OK [21:47:41]MH_I2C_Read... [21:47:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:41]Read from MH i2c: E2 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: E2 62 00 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: E2 62 00 30 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 86 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [21:47:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 86 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:41]wFMCommunicate OK [21:47:41]SAM_PROTO_GetFieldsCounters done [21:47:41]requested_item shift.num is exist - process it [21:47:41]requested_item shift.opened is exist - process it [21:47:41]req_shift_opened [21:47:41]FM_GetShiftState [21:47:41]SAM_PROTO_GetShiftState [21:47:41]wFMCommunicate request_size=4 [21:47:41]MH_SAM_APDU [21:47:41]CAPDU: 80 13 01 00 [21:47:41]Write to MH i2c: E2 08 00 31 41 80 13 01 00 00 00 00 00 EF [21:47:41]Write i2c OK [21:47:41]MH_I2C_Read... [21:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:41]Read from MH i2c: E2 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: E2 0E 00 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: E2 0E 00 31 41 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 25 [21:47:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:47:41]wFMCommunicate OK [21:47:41]SAM_PROTO_GetShiftState done [21:47:41]FM_GetShiftState done [21:47:41]req_shift_opened done [21:47:41]requested_item shift.open_date is exist - process it [21:47:41]req_shift_open_date [21:47:41]req_shift_open_date done [21:47:41]produce_requested_data done [21:47:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162950,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:47:41]process_action_free close_receipt [21:47:41]json_value_free [21:47:41]json_value_free done [21:47:41]process_json_proto returns [21:47:41]Send response to host [21:47:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162950,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:47:41]free response buf [21:47:41]execute_script done [21:47:41]execute_script returns [21:47:41]free content buf [21:47:41]Sock 7.Close socket [21:47:41]Sock 7.Thread stoped [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:49:58]accept exits with 9 [21:49:58]New connection [21:49:58]New thread 3066735972 created [21:49:58]Thread 3066879332 joined [21:49:58]Waiting for new connection... [21:49:58] Sock 9.Parse request [21:49:58]Sock 9.Check first char [21:49:58]Sock 9.First char is OK [21:49:58]request: POST /json_proto HTTP/1.0 [21:49:58]Method: POST [21:49:58]URL: /json_proto [21:49:58]Method is POST - this is cgi request [21:49:58]url: /json_proto [21:49:58]query_string will be loaded in cgi processing [21:49:58]execute_cgi json_proto POST (null) [21:49:58]execute_cgi path=json_proto method=POST [21:49:58]POST find Content-Length [21:49:58]Host: 172.17.39.67:8080 [21:49:58]Content-Length: 678 [21:49:58]Content-Type: application/json [21:49:58] [21:49:58]POST finish read [21:49:58]Found Content-Length = 678 [21:49:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 5.110, "sum" : 380.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:58]execute_script... [21:49: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)1319562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 5.110, "sum" : 380.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:58]POST & json_proto [21:49:58]process_json_proto [21:49:58]json parsed OK: [21:49:58]protocol is kg_v1.0 [21:49:58]action value=close_receipt [21:49:58]process_action close_receipt [21:49:58]cmd_close_receipt [21:49:58]MH_GetDate [21:49:58]Write to MH i2c: F0 00 00 32 41 62 [21:49:58]Write i2c OK [21:49:58]MH_I2C_Read... [21:49:58]Read from MH i2c: F0 [21:49:58]MH_I2C_Read... [21:49:58]Read from MH i2c: F0 09 00 [21:49:58]MH_I2C_Read... [21:49:58]Read from MH i2c: F0 09 00 32 41 00 09 48 94 66 B6 85 93 66 EA [21:49:58]GetLastDocTimeStamp 1720993658 [21:49:58]current date 1720993801 [21:49:58]FM_GetShiftState [21:49:58]SAM_PROTO_GetShiftState [21:49:58]wFMCommunicate request_size=4 [21:49:58]MH_SAM_APDU [21:49:58]CAPDU: 80 13 01 00 [21:49:58]Write to MH i2c: E2 08 00 33 41 80 13 01 00 00 00 00 00 F1 [21:49:58]Write i2c OK [21:49:58]MH_I2C_Read... [21:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:58]Read from MH i2c: E2 [21:49:58]MH_I2C_Read... [21:49:58]Read from MH i2c: E2 0E 00 [21:49:58]MH_I2C_Read... [21:49:58]Read from MH i2c: E2 0E 00 33 41 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 27 [21:49:58]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:49:58]wFMCommunicate OK [21:49:58]SAM_PROTO_GetShiftState done [21:49:58]FM_GetShiftState done [21:49:58]opened in 1720915483 [21:49:58]opened+sec_in_day 1721001883 [21:49:58]quantity*price = 38018 [21:49:58]sum+1 = 38019 [21:49:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.36 НДС 12% : 40.37 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 263 14.07.2024 21:50 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162951 ФПД: 216533492829362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T215001&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162951&fm=216533492829362&tin=02508201610067®Number=0000000000090858&sum=38000 [21:49:59]StoreToDocumentArchive [21:49:59]shift 463 fd 162951 [21:49:59]save to /storage/0463/doc_00162951 [21:49:59]save last doc name /storage/0463/doc_00162951 to /storage/kkm_last_doc_name [21:49:59]save OK [21:49:59]Clear old archive folders... [21:49:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:59]tlvbuf is 013E8840 [21:49:59]SAM_PROTO_ClearQueue [21:49:59]wFMCommunicate request_size=4 [21:49:59]MH_SAM_APDU [21:49:59]CAPDU: 80 09 00 00 [21:49:59]Write to MH i2c: E2 08 00 40 41 80 09 00 00 00 00 00 00 F3 [21:49:59]Write i2c OK [21:49:59]MH_I2C_Read... [21:49:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:59]Read from MH i2c: E2 [21:49:59]MH_I2C_Read... [21:49:59]Read from MH i2c: E2 03 00 [21:49:59]MH_I2C_Read... [21:49:59]Read from MH i2c: E2 03 00 40 41 00 90 00 F5 [21:49:59]RAPDU: 90 00 [21:49:59]wFMCommunicate OK [21:49:59]SAM_PROTO_ClearQueue done [21:49:59]KKMCreateOFDPacket [21:49:59]OFDProtocolAddRootSTLVToBuf [21:49:59]FM_MakeSignedData [21:49:59]FM_MakeSignedData [21:49:59]SAM_PROTO_SignData [21:49:59]wFMCommunicate request_size=4 [21:49:59]MH_SAM_APDU [21:49:59]CAPDU: 80 0D 01 02 [21:49:59]Write to MH i2c: E2 08 00 41 41 80 0D 01 02 00 00 00 00 FB [21:49:59]Write i2c OK [21:49:59]MH_I2C_Read... [21:49:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:59]Read from MH i2c: E2 [21:49:59]MH_I2C_Read... [21:49:59]Read from MH i2c: E2 03 00 [21:49:59]MH_I2C_Read... [21:49:59]Read from MH i2c: E2 03 00 41 41 00 90 00 F6 [21:49:59]RAPDU: 90 00 [21:49:59]wFMCommunicate OK [21:49:59]wFMCommunicate request_size=255 [21:49:59]MH_SAM_APDU [21:49:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F6 13 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 82 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 09 48 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7C 02 00 35 04 06 00 C4 [21:49:59]Write to MH i2c: E2 02 01 42 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F6 13 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 82 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 09 48 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7C 02 00 35 04 06 00 C4 00 00 80 [21:49:59]Write i2c OK [21:49:59]MH_I2C_Read... [21:50:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:00]Read from MH i2c: E2 [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: E2 03 00 [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: E2 03 00 42 41 00 90 00 F7 [21:50:00]RAPDU: 90 00 [21:50:00]wFMCommunicate OK [21:50:00]wFMCommunicate request_size=10 [21:50:00]MH_SAM_APDU [21:50:00]CAPDU: 80 0D 02 02 05 EF A1 EC 0C B2 [21:50:00]Write to MH i2c: E2 0D 00 43 41 80 0D 02 02 05 00 EF A1 EC 0C B2 00 00 42 [21:50:00]Write i2c OK [21:50:00]MH_I2C_Read... [21:50:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:00]Read from MH i2c: E2 [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: E2 03 00 [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: E2 03 00 43 41 00 90 00 F8 [21:50:00]RAPDU: 90 00 [21:50:00]wFMCommunicate OK [21:50:00]wFMCommunicate request_size=4 [21:50:00]MH_SAM_APDU [21:50:00]CAPDU: 80 0D 03 02 [21:50:00]Write to MH i2c: E2 08 00 44 41 80 0D 03 02 00 00 00 00 00 [21:50:00]Write i2c OK [21:50:00]MH_I2C_Read... [21:50:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:00]Read from MH i2c: E2 [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: E2 0B 00 [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: E2 0B 00 44 41 00 08 19 99 CA F8 0F 9E 5F 90 00 89 [21:50:00]RAPDU: 08 19 99 CA F8 0F 9E 5F 90 00 [21:50:00]wFMCommunicate OK [21:50:00]SAM_PROTO_SignData done [21:50:00]FM_MakeSignedData done [21:50:00]CreateOFDProtocolMessage [21:50:00]wFMCommunicate request_size=4 [21:50:00]MH_SAM_APDU [21:50:00]CAPDU: 80 11 00 00 [21:50:00]Write to MH i2c: E2 08 00 45 41 80 11 00 00 00 00 00 00 00 [21:50:00]Write i2c OK [21:50:00]MH_I2C_Read... [21:50:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:00]Read from MH i2c: E2 [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: E2 17 00 [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: E2 17 00 45 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 60 [21:50:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:50:00]wFMCommunicate OK [21:50:00]CreateOFDProtocolMessage done [21:50:00]OFDSenderStorePacket 162951 [21:50:00]StoreOFDPacket docnum=162951 [21:50:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 7A 6D 07 01 22 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F6 13 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 82 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 09 48 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7C 02 00 35 04 06 00 C4 EF A1 EC 0C B2 08 19 99 CA F8 0F 9E 5F [21:50:00]CheckFolder [21:50:00]dirname=/storage/ofd_packets [21:50:00]CheckFolder done [21:50:00]ProducePacketName [21:50:00]name=ofd_packets/00162951 [21:50:00]NVStorageSaveData ofd_packets/00162951 [21:50:00]File name is /storage/ofd_packets/00162951 [21:50:00]Write 301 bytes [21:50:00]NVStorageSaveData done [21:50:00]OFDSenderStorePacket done [21:50:00]KKMCreateOFDPacket done [21:50:00]NVStorageSaveData kkm_last_timestamp [21:50:00]File name is /storage/kkm_last_timestamp [21:50:00]Write 4 bytes [21:50:00]NVStorageSaveData done [21:50:00]ExternCall_PrintAddStr [21:50:00]wPrintStart [21:50:00]Write to MH i2c: 01 00 00 46 41 87 [21:50:00]Write i2c OK [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: 01 [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: 01 07 00 [21:50:00]MH_I2C_Read... [21:50:00]Read from MH i2c: 01 07 00 46 41 00 00 00 00 00 FF 0F 9C [21:50:00]RasterBufferAndPrint [21:50:00]line Счет N : (1)1319562 [21:50:00]line ИНН: 02508201610067 [21:50:00]line Контрольно-Кассовый Чек [21:50:00]line ПРОДАЖА [21:50:00]line ТРК (МРК, ГНК) : 34 [21:50:00]line Товар: 2710124500 [21:50:00]line Аи-95-К-5 [21:50:00]line 5.110 * 74.40 [21:50:00]line = 380.18 [21:50:00]line НДС 12% НСП 1% [21:50:00]line > о реализуемом товаре [21:50:00]line ОКРУГЛЕНИЕ: -0.18 [21:50:00]line ИТОГО: 380.00 [21:50:00]line Внесено: 380.00 [21:50:00]line СДАЧА: 0.00 [21:50:00]line НСП 1% : 3.36 [21:50:00]line НДС 12% : 40.37 [21:50:00]line Наличными: 380.00 [21:50:00]line Безнал.: 0.00 [21:50:00]line Место: АЗС № 140 "Партнер Нефть" [21:50:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:50:00]line СНО: Общий режим [21:50:00]line Чек 263 14.07.2024 21:50 [21:50:00]line Смена: 463 ФФД: 1.0 [21:50:00]line ЗНМ: 0300000129 [21:50:00]line РНМ: 0000000000090858 [21:50:00]line Версия ККМ: 001 [21:50:00]line ФМ: 0000000000874899 [21:50:00]line ФД: 162951 [21:50:00]line ФПД: 216533492829362 [21:50:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T215001&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162951&fm=216533492829362&tin=02508201610067®Number=0000000000090858&sum=38000 [21:50:00]OFD Sender: Processing packet 162951 [packets to send 106, broken 105] [21:50:00]ProducePacketName [21:50:00]name=ofd_packets/00162951 [21:50:00]OFD Sender: To server: pG, [21:50:00]CommunicateWithHost lk.salyk.kg:30040 [21:50:00]ConnectInit lk.salyk.kg [21:50:00]written 0, free lines is 4095 [21:50:00]Connected sock=10 [21:50:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 7A 6D 07 01 22 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F6 13 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 82 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 09 48 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7C 02 00 35 04 06 00 C4 EF A1 EC 0C B2 08 19 99 CA F8 0F 9E 5F [21:50:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F6 4B 47 00 3C EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7C 02 00 F4 03 04 00 16 F4 93 66 B6 04 01 00 00 E7 D7 A7 B4 3D FD AD 0F [21:50:01]CommunicateWithHost err = 0 [21:50:01]CheckOFDResponse [21:50:01]1017 (14) - 77093643461234 [21:50:01]1041 (16) - 0000000000874899 [21:50:01]1040 (4) - 162951 [21:50:01]1012 (4) - 14.07.2024 15:51 [21:50:01]1206 (1) - 0 [21:50:01]OFD Sender: Remove packet 162951 [21:50:01]ProducePacketName [21:50:01]name=ofd_packets/00162951 [21:50:01]NVStorageDeleteData [21:50:01]Write to MH i2c: 01 00 00 71 41 B2 [21:50:01]Write i2c OK [21:50:01]MH_I2C_Read... [21:50:01]Read from MH i2c: 01 [21:50:01]MH_I2C_Read... [21:50:01]Read from MH i2c: 01 07 00 [21:50:01]MH_I2C_Read... [21:50:01]Read from MH i2c: 01 07 00 71 41 00 00 00 00 00 D1 0C 96 [21:50:01]RasterBufferAndPrint [21:50:01]line [21:50:01]line [21:50:01]line [21:50:01]line [21:50:01]line [21:50:01]written 0, free lines is 3289 [21:50:01]MH_Cut [21:50:01]Write to MH i2c: D1 01 00 78 41 01 8B [21:50:01]Write i2c OK [21:50:01]MH_I2C_Read... [21:50:01]Read from MH i2c: D1 [21:50:01]MH_I2C_Read... [21:50:01]Read from MH i2c: D1 01 00 [21:50:01]MH_I2C_Read... [21:50:01]Read from MH i2c: D1 01 00 78 41 00 8A [21:50:01]Write to MH i2c: 01 00 00 79 41 BA [21:50:01]Write i2c OK [21:50:01]MH_I2C_Read... [21:50:01]OFD Sender: No OFD packet to send [21:50:01]*** Cut start [21:50:01]*** Purtial cut [21:50:01]*** Stage 1: CUTSNS_PIN = 1 [21:50:02]Read from MH i2c: 01 [21:50:02]MH_I2C_Read... [21:50:02]*** Stop cut motor [21:50:02]*** Cut end [21:50:02]Read from MH i2c: 01 07 00 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: 01 07 00 79 41 00 00 00 00 00 FF 0F CF [21:50:02]process_action close_receipt done [21:50:02]requested_data is exist [21:50:02]produce_requested_data [21:50:02]requested_item fm.sn is exist - process it [21:50:02]wFMCommunicate request_size=4 [21:50:02]MH_SAM_APDU [21:50:02]CAPDU: 80 11 00 00 [21:50:02]Write to MH i2c: E2 08 00 7A 41 80 11 00 00 00 00 00 00 35 [21:50:02]Write i2c OK [21:50:02]MH_I2C_Read... [21:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:02]Read from MH i2c: E2 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 17 00 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 17 00 7A 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 95 [21:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:50:02]wFMCommunicate OK [21:50:02]requested_item fd.num is exist - process it [21:50:02]SAM_PROTO_GetFieldsCounters [21:50:02]wFMCommunicate request_size=4 [21:50:02]MH_SAM_APDU [21:50:02]CAPDU: 80 13 00 00 [21:50:02]Write to MH i2c: E2 08 00 7B 41 80 13 00 00 00 00 00 00 38 [21:50:02]Write i2c OK [21:50:02]MH_I2C_Read... [21:50:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:02]Read from MH i2c: E2 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 62 00 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 62 00 7B 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 87 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [21:50:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 87 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:02]wFMCommunicate OK [21:50:02]SAM_PROTO_GetFieldsCounters done [21:50:02]requested_item shift.num is exist - process it [21:50:02]requested_item shift.opened is exist - process it [21:50:02]req_shift_opened [21:50:02]FM_GetShiftState [21:50:02]SAM_PROTO_GetShiftState [21:50:02]wFMCommunicate request_size=4 [21:50:02]MH_SAM_APDU [21:50:02]CAPDU: 80 13 01 00 [21:50:02]Write to MH i2c: E2 08 00 7C 41 80 13 01 00 00 00 00 00 3A [21:50:02]Write i2c OK [21:50:02]MH_I2C_Read... [21:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:02]Read from MH i2c: E2 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 0E 00 [21:50:02]MH_I2C_Read... [21:50:02]Read from MH i2c: E2 0E 00 7C 41 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 70 [21:50:02]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:50:02]wFMCommunicate OK [21:50:02]SAM_PROTO_GetShiftState done [21:50:02]FM_GetShiftState done [21:50:02]req_shift_opened done [21:50:02]requested_item shift.open_date is exist - process it [21:50:02]req_shift_open_date [21:50:02]req_shift_open_date done [21:50:02]produce_requested_data done [21:50:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162951,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:50:02]process_action_free close_receipt [21:50:02]json_value_free [21:50:02]json_value_free done [21:50:02]process_json_proto returns [21:50:02]Send response to host [21:50:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162951,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:50:02]free response buf [21:50:02]execute_script done [21:50:02]execute_script returns [21:50:02]free content buf [21:50:02]Sock 9.Close socket [21:50:02]Sock 9.Thread stoped [21:50:06]accept exits with 7 [21:50:06]New connection [21:50:06]New thread 3066879332 created [21:50:06]Thread 3066735972 joined [21:50:06]Waiting for new connection... [21:50:06] Sock 7.Parse request [21:50:06]Sock 7.Check first char [21:50:06]Sock 7.First char is OK [21:50:06]request: POST /json_proto HTTP/1.0 [21:50:06]Method: POST [21:50:06]URL: /json_proto [21:50:06]Method is POST - this is cgi request [21:50:06]url: /json_proto [21:50:06]query_string will be loaded in cgi processing [21:50:06]execute_cgi json_proto POST (null) [21:50:06]execute_cgi path=json_proto method=POST [21:50:06]POST find Content-Length [21:50:06]Host: 172.17.39.67:8080 [21:50:06]Content-Length: 688 [21:50:06]Content-Type: application/json [21:50:06] [21:50:06]POST finish read [21:50:06]Found Content-Length = 688 [21:50:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:50:06]execute_script... [21:50: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)1319563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "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:50:06]POST & json_proto [21:50:06]process_json_proto [21:50:06]json parsed OK: [21:50:06]protocol is kg_v1.0 [21:50:06]action value=close_receipt [21:50:06]process_action close_receipt [21:50:06]cmd_close_receipt [21:50:06]MH_GetDate [21:50:06]Write to MH i2c: F0 00 00 7D 41 AD [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: F0 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: F0 09 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: F0 09 00 7D 41 00 11 48 94 66 B6 85 93 66 3D [21:50:06]GetLastDocTimeStamp 1720993801 [21:50:06]current date 1720993809 [21:50:06]FM_GetShiftState [21:50:06]SAM_PROTO_GetShiftState [21:50:06]wFMCommunicate request_size=4 [21:50:06]MH_SAM_APDU [21:50:06]CAPDU: 80 13 01 00 [21:50:06]Write to MH i2c: E2 08 00 7E 41 80 13 01 00 00 00 00 00 3C [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:06]Read from MH i2c: E2 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 0E 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 0E 00 7E 41 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 72 [21:50:06]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:50:06]wFMCommunicate OK [21:50:06]SAM_PROTO_GetShiftState done [21:50:06]FM_GetShiftState done [21:50:06]opened in 1720915483 [21:50:06]opened+sec_in_day 1721001883 [21:50:06]quantity*price = 100042 [21:50:06]sum+1 = 100044 [21:50:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 264 14.07.2024 21:50 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162952 ФПД: 123678699721625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T215009&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162952&fm=123678699721625&tin=02508201610067®Number=0000000000090858&sum=100000 [21:50:07]StoreToDocumentArchive [21:50:07]shift 463 fd 162952 [21:50:07]save to /storage/0463/doc_00162952 [21:50:07]save last doc name /storage/0463/doc_00162952 to /storage/kkm_last_doc_name [21:50:07]save OK [21:50:07]Clear old archive folders... [21:50:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:50:07]tlvbuf is 0136C430 [21:50:07]SAM_PROTO_ClearQueue [21:50:07]wFMCommunicate request_size=4 [21:50:07]MH_SAM_APDU [21:50:07]CAPDU: 80 09 00 00 [21:50:07]Write to MH i2c: E2 08 00 8B 41 80 09 00 00 00 00 00 00 3E [21:50:07]Write i2c OK [21:50:07]MH_I2C_Read... [21:50:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:07]Read from MH i2c: E2 [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: E2 03 00 [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: E2 03 00 8B 41 00 90 00 40 [21:50:07]RAPDU: 90 00 [21:50:07]wFMCommunicate OK [21:50:07]SAM_PROTO_ClearQueue done [21:50:07]KKMCreateOFDPacket [21:50:07]OFDProtocolAddRootSTLVToBuf [21:50:07]FM_MakeSignedData [21:50:07]FM_MakeSignedData [21:50:07]SAM_PROTO_SignData [21:50:07]wFMCommunicate request_size=4 [21:50:07]MH_SAM_APDU [21:50:07]CAPDU: 80 0D 01 02 [21:50:07]Write to MH i2c: E2 08 00 8C 41 80 0D 01 02 00 00 00 00 46 [21:50:07]Write i2c OK [21:50:07]MH_I2C_Read... [21:50:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:07]Read from MH i2c: E2 [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: E2 03 00 [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: E2 03 00 8C 41 00 90 00 41 [21:50:07]RAPDU: 90 00 [21:50:07]wFMCommunicate OK [21:50:07]wFMCommunicate request_size=255 [21:50:07]MH_SAM_APDU [21:50:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 11 48 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7C 02 00 35 04 06 00 [21:50:07]Write to MH i2c: E2 02 01 8D 41 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 11 48 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7C 02 00 35 04 06 00 00 00 11 [21:50:07]Write i2c OK [21:50:07]MH_I2C_Read... [21:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 03 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 03 00 8D 41 00 90 00 42 [21:50:08]RAPDU: 90 00 [21:50:08]wFMCommunicate OK [21:50:08]wFMCommunicate request_size=11 [21:50:08]MH_SAM_APDU [21:50:08]CAPDU: 80 0D 02 02 06 70 7C 30 F6 93 99 [21:50:08]Write to MH i2c: E2 0E 00 8E 41 80 0D 02 02 06 00 70 7C 30 F6 93 99 00 00 93 [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 03 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 03 00 8E 41 00 90 00 43 [21:50:08]RAPDU: 90 00 [21:50:08]wFMCommunicate OK [21:50:08]wFMCommunicate request_size=4 [21:50:08]MH_SAM_APDU [21:50:08]CAPDU: 80 0D 03 02 [21:50:08]Write to MH i2c: E2 08 00 8F 41 80 0D 03 02 00 00 00 00 4B [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 0B 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 0B 00 8F 41 00 15 0F 01 D7 18 69 A1 D2 90 00 3C [21:50:08]RAPDU: 15 0F 01 D7 18 69 A1 D2 90 00 [21:50:08]wFMCommunicate OK [21:50:08]SAM_PROTO_SignData done [21:50:08]FM_MakeSignedData done [21:50:08]CreateOFDProtocolMessage [21:50:08]wFMCommunicate request_size=4 [21:50:08]MH_SAM_APDU [21:50:08]CAPDU: 80 11 00 00 [21:50:08]Write to MH i2c: E2 08 00 90 41 80 11 00 00 00 00 00 00 4B [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 17 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 17 00 90 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AB [21:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:50:08]wFMCommunicate OK [21:50:08]CreateOFDProtocolMessage done [21:50:08]OFDSenderStorePacket 162952 [21:50:08]StoreOFDPacket docnum=162952 [21:50:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 84 49 08 01 50 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 11 48 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7C 02 00 35 04 06 00 70 7C 30 F6 93 99 15 0F 01 D7 18 69 A1 D2 [21:50:08]CheckFolder [21:50:08]dirname=/storage/ofd_packets [21:50:08]CheckFolder done [21:50:08]ProducePacketName [21:50:08]name=ofd_packets/00162952 [21:50:08]NVStorageSaveData ofd_packets/00162952 [21:50:08]File name is /storage/ofd_packets/00162952 [21:50:08]Write 302 bytes [21:50:08]NVStorageSaveData done [21:50:08]OFDSenderStorePacket done [21:50:08]KKMCreateOFDPacket done [21:50:08]NVStorageSaveData kkm_last_timestamp [21:50:08]File name is /storage/kkm_last_timestamp [21:50:08]Write 4 bytes [21:50:08]NVStorageSaveData done [21:50:08]ExternCall_PrintAddStr [21:50:08]wPrintStart [21:50:08]Write to MH i2c: 01 00 00 91 41 D2 [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: 01 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: 01 07 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: 01 07 00 91 41 00 00 00 00 00 FF 0F E7 [21:50:08]RasterBufferAndPrint [21:50:08]line Счет N : (1)1319563 [21:50:08]line ИНН: 02508201610067 [21:50:08]line Контрольно-Кассовый Чек [21:50:08]line ПРОДАЖА [21:50:08]line ТРК (МРК, ГНК) : 21 [21:50:08]line Товар: 2710194210 [21:50:08]line ДТ(л)-К-5 [21:50:08]line 13.780 * 72.60 [21:50:08]line = 1000.43 [21:50:08]line НДС 12% НСП 1% [21:50:08]line > о реализуемом товаре [21:50:08]line ОКРУГЛЕНИЕ: -0.43 [21:50:08]line ИТОГО: 1000.00 [21:50:08]line Внесено: 1000.00 [21:50:08]line СДАЧА: 0.00 [21:50:08]line НСП 1% : 8.85 [21:50:08]line НДС 12% : 106.24 [21:50:08]line Наличными: 1000.00 [21:50:08]line Безнал.: 0.00 [21:50:08]line Место: АЗС № 140 "Партнер Нефть" [21:50:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:50:08]line СНО: Общий режим [21:50:08]line Чек 264 14.07.2024 21:50 [21:50:08]line Смена: 463 ФФД: 1.0 [21:50:08]line ЗНМ: 0300000129 [21:50:08]line РНМ: 0000000000090858 [21:50:08]line Версия ККМ: 001 [21:50:08]line ФМ: 0000000000874899 [21:50:08]line ФД: 162952 [21:50:08]line ФПД: 123678699721625 [21:50:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T215009&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162952&fm=123678699721625&tin=02508201610067®Number=0000000000090858&sum=100000 [21:50:08]OFD Sender: Processing packet 162952 [packets to send 106, broken 105] [21:50:08]ProducePacketName [21:50:08]name=ofd_packets/00162952 [21:50:08]OFD Sender: To server: pG, [21:50:08]CommunicateWithHost lk.salyk.kg:30040 [21:50:08]ConnectInit lk.salyk.kg [21:50:08]written 0, free lines is 4095 [21:50:08]Connected sock=10 [21:50:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 84 49 08 01 50 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 11 48 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7C 02 00 35 04 06 00 70 7C 30 F6 93 99 15 0F 01 D7 18 69 A1 D2 [21:50:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 46 64 47 00 89 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7C 02 00 F4 03 04 00 1D F4 93 66 B6 04 01 00 00 0B 07 9C 00 24 62 17 29 [21:50:08]CommunicateWithHost err = 0 [21:50:08]CheckOFDResponse [21:50:08]1017 (14) - 77093643461234 [21:50:08]1041 (16) - 0000000000874899 [21:50:08]1040 (4) - 162952 [21:50:08]1012 (4) - 14.07.2024 15:51 [21:50:08]1206 (1) - 0 [21:50:08]OFD Sender: Remove packet 162952 [21:50:08]ProducePacketName [21:50:08]name=ofd_packets/00162952 [21:50:08]NVStorageDeleteData [21:50:08]Write to MH i2c: 01 00 00 BC 41 FD [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: 01 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: 01 07 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: 01 07 00 BC 41 00 00 00 00 00 EE 0C FE [21:50:08]RasterBufferAndPrint [21:50:08]line [21:50:08]line [21:50:08]line [21:50:08]line [21:50:08]line [21:50:08]written 0, free lines is 3325 [21:50:08]MH_Cut [21:50:08]Write to MH i2c: D1 01 00 C3 41 01 D6 [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: D1 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: D1 01 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: D1 01 00 C3 41 00 D5 [21:50:08]Write to MH i2c: 01 00 00 C4 41 05 [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:09]OFD Sender: No OFD packet to send [21:50:09]*** Cut start [21:50:09]*** Purtial cut [21:50:09]*** CUTSNS_PIN = 0 [21:50:09]*** Stage 1: CUTSNS_PIN = 1 [21:50:11]Read from MH i2c: 01 [21:50:11]MH_I2C_Read... [21:50:11]*** Stop cut motor [21:50:11]*** Cut end [21:50:11]Read from MH i2c: 01 07 00 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: 01 07 00 C4 41 00 00 00 00 00 FF 0F 1A [21:50:11]process_action close_receipt done [21:50:11]requested_data is exist [21:50:11]produce_requested_data [21:50:11]requested_item fm.sn is exist - process it [21:50:11]wFMCommunicate request_size=4 [21:50:11]MH_SAM_APDU [21:50:11]CAPDU: 80 11 00 00 [21:50:11]Write to MH i2c: E2 08 00 C5 41 80 11 00 00 00 00 00 00 80 [21:50:11]Write i2c OK [21:50:11]MH_I2C_Read... [21:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:11]Read from MH i2c: E2 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 17 00 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 17 00 C5 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E0 [21:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:50:11]wFMCommunicate OK [21:50:11]requested_item fd.num is exist - process it [21:50:11]SAM_PROTO_GetFieldsCounters [21:50:11]wFMCommunicate request_size=4 [21:50:11]MH_SAM_APDU [21:50:11]CAPDU: 80 13 00 00 [21:50:11]Write to MH i2c: E2 08 00 C6 41 80 13 00 00 00 00 00 00 83 [21:50:11]Write i2c OK [21:50:11]MH_I2C_Read... [21:50:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:11]Read from MH i2c: E2 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 62 00 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 62 00 C6 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 88 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [21:50:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 88 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:11]wFMCommunicate OK [21:50:11]SAM_PROTO_GetFieldsCounters done [21:50:11]requested_item shift.num is exist - process it [21:50:11]requested_item shift.opened is exist - process it [21:50:11]req_shift_opened [21:50:11]FM_GetShiftState [21:50:11]SAM_PROTO_GetShiftState [21:50:11]wFMCommunicate request_size=4 [21:50:11]MH_SAM_APDU [21:50:11]CAPDU: 80 13 01 00 [21:50:11]Write to MH i2c: E2 08 00 C7 41 80 13 01 00 00 00 00 00 85 [21:50:11]Write i2c OK [21:50:11]MH_I2C_Read... [21:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:11]Read from MH i2c: E2 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 0E 00 [21:50:11]MH_I2C_Read... [21:50:11]Read from MH i2c: E2 0E 00 C7 41 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BB [21:50:11]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:50:11]wFMCommunicate OK [21:50:11]SAM_PROTO_GetShiftState done [21:50:11]FM_GetShiftState done [21:50:11]req_shift_opened done [21:50:11]requested_item shift.open_date is exist - process it [21:50:11]req_shift_open_date [21:50:11]req_shift_open_date done [21:50:11]produce_requested_data done [21:50:11]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162952,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:50:11]process_action_free close_receipt [21:50:11]json_value_free [21:50:11]json_value_free done [21:50:11]process_json_proto returns [21:50:11]Send response to host [21:50:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162952,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:50:11]free response buf [21:50:11]execute_script done [21:50:11]execute_script returns [21:50:11]free content buf [21:50:11]Sock 7.Close socket [21:50:11]Sock 7.Thread stoped [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:55]accept exits with 9 [21:54:55]New connection [21:54:55]New thread 3066735972 created [21:54:55]Thread 3066879332 joined [21:54:55]Waiting for new connection... [21:54:55] Sock 9.Parse request [21:54:55]Sock 9.Check first char [21:54:55]Sock 9.First char is OK [21:54:55]request: POST /json_proto HTTP/1.0 [21:54:55]Method: POST [21:54:55]URL: /json_proto [21:54:55]Method is POST - this is cgi request [21:54:55]url: /json_proto [21:54:55]query_string will be loaded in cgi processing [21:54:55]execute_cgi json_proto POST (null) [21:54:55]execute_cgi path=json_proto method=POST [21:54:55]POST find Content-Length [21:54:55]Host: 172.17.39.67:8080 [21:54:55]Content-Length: 801 [21:54:55]Content-Type: application/json [21:54:55] [21:54:55]POST finish read [21:54:55]Found Content-Length = 801 [21:54:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.820, "sum" : 319.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 319.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:55]execute_script... [21:54:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.820, "sum" : 319.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 319.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:55]POST & json_proto [21:54:55]process_json_proto [21:54:55]json parsed OK: [21:54:55]protocol is kg_v1.0 [21:54:55]action value=close_receipt [21:54:55]process_action close_receipt [21:54:55]cmd_close_receipt [21:54:55]MH_GetDate [21:54:55]Write to MH i2c: F0 00 00 C8 41 F8 [21:54:55]Write i2c OK [21:54:55]MH_I2C_Read... [21:54:55]Read from MH i2c: F0 [21:54:55]MH_I2C_Read... [21:54:55]Read from MH i2c: F0 09 00 [21:54:55]MH_I2C_Read... [21:54:55]Read from MH i2c: F0 09 00 C8 41 00 32 49 94 66 B6 85 93 66 AA [21:54:55]GetLastDocTimeStamp 1720993809 [21:54:55]current date 1720994098 [21:54:55]FM_GetShiftState [21:54:55]SAM_PROTO_GetShiftState [21:54:55]wFMCommunicate request_size=4 [21:54:55]MH_SAM_APDU [21:54:55]CAPDU: 80 13 01 00 [21:54:55]Write to MH i2c: E2 08 00 C9 41 80 13 01 00 00 00 00 00 87 [21:54:55]Write i2c OK [21:54:55]MH_I2C_Read... [21:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:55]Read from MH i2c: E2 [21:54:55]MH_I2C_Read... [21:54:55]Read from MH i2c: E2 0E 00 [21:54:55]MH_I2C_Read... [21:54:55]Read from MH i2c: E2 0E 00 C9 41 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BD [21:54:55]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:54:55]wFMCommunicate OK [21:54:55]SAM_PROTO_GetShiftState done [21:54:55]FM_GetShiftState done [21:54:55]opened in 1720915483 [21:54:55]opened+sec_in_day 1721001883 [21:54:55]quantity*price = 31956 [21:54:55]sum+1 = 31958 [21:54:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 319.57 НСП 1% : 2.83 НДС 12% : 33.94 Наличными: 0.00 Безнал.: 319.57 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 265 14.07.2024 21:54 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162953 ФПД: 160988552022607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T215458&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162953&fm=160988552022607&tin=02508201610067®Number=0000000000090858&sum=31957 [21:54:56]StoreToDocumentArchive [21:54:56]shift 463 fd 162953 [21:54:56]save to /storage/0463/doc_00162953 [21:54:56]save last doc name /storage/0463/doc_00162953 to /storage/kkm_last_doc_name [21:54:56]save OK [21:54:56]Clear old archive folders... [21:54:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:56]tlvbuf is B6F439C0 [21:54:56]SAM_PROTO_ClearQueue [21:54:56]wFMCommunicate request_size=4 [21:54:56]MH_SAM_APDU [21:54:56]CAPDU: 80 09 00 00 [21:54:56]Write to MH i2c: E2 08 00 D6 41 80 09 00 00 00 00 00 00 89 [21:54:56]Write i2c OK [21:54:56]MH_I2C_Read... [21:54:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:56]Read from MH i2c: E2 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 03 00 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 03 00 D6 41 00 90 00 8B [21:54:56]RAPDU: 90 00 [21:54:56]wFMCommunicate OK [21:54:56]SAM_PROTO_ClearQueue done [21:54:56]KKMCreateOFDPacket [21:54:56]OFDProtocolAddRootSTLVToBuf [21:54:56]FM_MakeSignedData [21:54:56]FM_MakeSignedData [21:54:56]SAM_PROTO_SignData [21:54:56]wFMCommunicate request_size=4 [21:54:56]MH_SAM_APDU [21:54:56]CAPDU: 80 0D 01 02 [21:54:56]Write to MH i2c: E2 08 00 D7 41 80 0D 01 02 00 00 00 00 91 [21:54:56]Write i2c OK [21:54:56]MH_I2C_Read... [21:54:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:56]Read from MH i2c: E2 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 03 00 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 03 00 D7 41 00 90 00 8C [21:54:56]RAPDU: 90 00 [21:54:56]wFMCommunicate OK [21:54:56]wFMCommunicate request_size=255 [21:54:56]MH_SAM_APDU [21:54: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 12 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 32 49 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7C 02 00 35 04 06 00 92 [21:54:56]Write to MH i2c: E2 02 01 D8 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 32 49 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7C 02 00 35 04 06 00 92 00 00 D8 [21:54:56]Write i2c OK [21:54:56]MH_I2C_Read... [21:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:56]Read from MH i2c: E2 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 03 00 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 03 00 D8 41 00 90 00 8D [21:54:56]RAPDU: 90 00 [21:54:56]wFMCommunicate OK [21:54:56]wFMCommunicate request_size=10 [21:54:56]MH_SAM_APDU [21:54:56]CAPDU: 80 0D 02 02 05 6B 11 74 CA 4F [21:54:56]Write to MH i2c: E2 0D 00 D9 41 80 0D 02 02 05 00 6B 11 74 CA 4F 00 00 A7 [21:54:56]Write i2c OK [21:54:56]MH_I2C_Read... [21:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:56]Read from MH i2c: E2 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 03 00 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 03 00 D9 41 00 90 00 8E [21:54:56]RAPDU: 90 00 [21:54:56]wFMCommunicate OK [21:54:56]wFMCommunicate request_size=4 [21:54:56]MH_SAM_APDU [21:54:56]CAPDU: 80 0D 03 02 [21:54:56]Write to MH i2c: E2 08 00 DA 41 80 0D 03 02 00 00 00 00 96 [21:54:56]Write i2c OK [21:54:56]MH_I2C_Read... [21:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:56]Read from MH i2c: E2 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 0B 00 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 0B 00 DA 41 00 F6 7B D4 0E CE 04 C9 FC 90 00 81 [21:54:56]RAPDU: F6 7B D4 0E CE 04 C9 FC 90 00 [21:54:56]wFMCommunicate OK [21:54:56]SAM_PROTO_SignData done [21:54:56]FM_MakeSignedData done [21:54:56]CreateOFDProtocolMessage [21:54:56]wFMCommunicate request_size=4 [21:54:56]MH_SAM_APDU [21:54:56]CAPDU: 80 11 00 00 [21:54:56]Write to MH i2c: E2 08 00 DB 41 80 11 00 00 00 00 00 00 96 [21:54:56]Write i2c OK [21:54:56]MH_I2C_Read... [21:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:56]Read from MH i2c: E2 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 17 00 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 17 00 DB 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F6 [21:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:54:56]wFMCommunicate OK [21:54:56]CreateOFDProtocolMessage done [21:54:56]OFDSenderStorePacket 162953 [21:54:56]StoreOFDPacket docnum=162953 [21:54:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 64 97 07 01 07 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 32 49 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7C 02 00 35 04 06 00 92 6B 11 74 CA 4F F6 7B D4 0E CE 04 C9 FC [21:54:56]CheckFolder [21:54:56]dirname=/storage/ofd_packets [21:54:56]CheckFolder done [21:54:56]ProducePacketName [21:54:56]name=ofd_packets/00162953 [21:54:56]NVStorageSaveData ofd_packets/00162953 [21:54:56]File name is /storage/ofd_packets/00162953 [21:54:56]Write 301 bytes [21:54:56]NVStorageSaveData done [21:54:56]OFDSenderStorePacket done [21:54:56]KKMCreateOFDPacket done [21:54:56]NVStorageSaveData kkm_last_timestamp [21:54:56]File name is /storage/kkm_last_timestamp [21:54:56]Write 4 bytes [21:54:56]NVStorageSaveData done [21:54:56]ExternCall_PrintAddStr [21:54:56]wPrintStart [21:54:56]Write to MH i2c: 01 00 00 DC 41 1D [21:54:56]Write i2c OK [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: 01 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: 01 07 00 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: 01 07 00 DC 41 00 00 00 00 00 FF 0F 32 [21:54:56]RasterBufferAndPrint [21:54:56]line Счет N : (1)1319565 [21:54:56]line ИНН: 02508201610067 [21:54:56]line Контрольно-Кассовый Чек [21:54:56]line ПРОДАЖА [21:54:56]line ТРК (МРК, ГНК) : 53 [21:54:56]line Товар: 2710124130 [21:54:56]line Аи-92-К-5 [21:54:56]line 4.820 * 66.30 [21:54:56]line = 319.57 [21:54:56]line НДС 12% НСП 1% [21:54:56]line > о реализуемом товаре [21:54:56]line ИТОГО: 319.57 [21:54:56]line НСП 1% : 2.83 [21:54:56]line НДС 12% : 33.94 [21:54:56]line Наличными: 0.00 [21:54:56]line Безнал.: 319.57 [21:54:56]line Место: АЗС № 140 "Партнер Нефть" [21:54:56]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:54:56]line СНО: Общий режим [21:54:56]line Чек 265 14.07.2024 21:54 [21:54:56]line Смена: 463 ФФД: 1.0 [21:54:56]line ЗНМ: 0300000129 [21:54:56]line РНМ: 0000000000090858 [21:54:56]line Версия ККМ: 001 [21:54:56]line Платежная система: O! деньги [21:54:56]line ФМ: 0000000000874899 [21:54:56]line ФД: 162953 [21:54:56]line ФПД: 160988552022607 [21:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T215458&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162953&fm=160988552022607&tin=02508201610067®Number=0000000000090858&sum=31957 [21:54:57]written 0, free lines is 4095 [21:54:57]OFD Sender: Processing packet 162953 [packets to send 106, broken 105] [21:54:57]ProducePacketName [21:54:57]name=ofd_packets/00162953 [21:54:57]OFD Sender: To server: pG, [21:54:57]CommunicateWithHost lk.salyk.kg:30040 [21:54:57]ConnectInit lk.salyk.kg [21:54:57]Connected sock=10 [21: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 34 38 39 39 0F 01 00 00 64 97 07 01 07 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 7C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 32 49 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7C 02 00 35 04 06 00 92 6B 11 74 CA 4F F6 7B D4 0E CE 04 C9 FC [21:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6D A8 47 00 31 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7C 02 00 F4 03 04 00 3E F5 93 66 B6 04 01 00 00 83 BA A5 34 69 84 58 3E [21:54:57]CommunicateWithHost err = 0 [21:54:57]CheckOFDResponse [21:54:57]1017 (14) - 77093643461234 [21:54:57]1041 (16) - 0000000000874899 [21:54:57]1040 (4) - 162953 [21:54:57]1012 (4) - 14.07.2024 15:56 [21:54:57]1206 (1) - 0 [21:54:57]OFD Sender: Remove packet 162953 [21:54:57]ProducePacketName [21:54:57]name=ofd_packets/00162953 [21:54:57]NVStorageDeleteData [21:54:57]Write to MH i2c: 01 00 00 06 42 48 [21:54:57]Write i2c OK [21:54:57]MH_I2C_Read... [21:54:57]Read from MH i2c: 01 [21:54:57]MH_I2C_Read... [21:54:57]Read from MH i2c: 01 07 00 [21:54:57]MH_I2C_Read... [21:54:57]Read from MH i2c: 01 07 00 06 42 00 00 00 00 00 EE 0C 49 [21:54:57]RasterBufferAndPrint [21:54:57]line [21:54:57]line [21:54:57]line [21:54:57]line [21:54:57]line [21:54:57]written 0, free lines is 3317 [21:54:57]MH_Cut [21:54:57]Write to MH i2c: D1 01 00 0D 42 01 21 [21:54:57]Write i2c OK [21:54:57]MH_I2C_Read... [21:54:57]Read from MH i2c: D1 [21:54:57]MH_I2C_Read... [21:54:57]Read from MH i2c: D1 01 00 [21:54:57]MH_I2C_Read... [21:54:57]Read from MH i2c: D1 01 00 0D 42 00 20 [21:54:57]Write to MH i2c: 01 00 00 0E 42 50 [21:54:57]Write i2c OK [21:54:57]MH_I2C_Read... [21:54:58]OFD Sender: No OFD packet to send [21:54:58]*** Cut start [21:54:58]*** Purtial cut [21:54:58]*** Stage 1: CUTSNS_PIN = 1 [21:54:58]Read from MH i2c: 01 [21:54:58]MH_I2C_Read... [21:54:58]*** Stop cut motor [21:54:58]*** Cut end [21:54:58]Read from MH i2c: 01 07 00 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: 01 07 00 0E 42 00 00 00 00 00 FF 0F 65 [21:54:58]process_action close_receipt done [21:54:58]requested_data is exist [21:54:58]produce_requested_data [21:54:58]requested_item fm.sn is exist - process it [21:54:58]wFMCommunicate request_size=4 [21:54:58]MH_SAM_APDU [21:54:58]CAPDU: 80 11 00 00 [21:54:58]Write to MH i2c: E2 08 00 0F 42 80 11 00 00 00 00 00 00 CB [21:54:58]Write i2c OK [21:54:58]MH_I2C_Read... [21:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:58]Read from MH i2c: E2 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 17 00 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 17 00 0F 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2B [21:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:54:58]wFMCommunicate OK [21:54:58]requested_item fd.num is exist - process it [21:54:58]SAM_PROTO_GetFieldsCounters [21:54:58]wFMCommunicate request_size=4 [21:54:58]MH_SAM_APDU [21:54:58]CAPDU: 80 13 00 00 [21:54:58]Write to MH i2c: E2 08 00 10 42 80 13 00 00 00 00 00 00 CE [21:54:58]Write i2c OK [21:54:58]MH_I2C_Read... [21:54:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:58]Read from MH i2c: E2 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 62 00 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 62 00 10 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 89 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [21: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 89 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:58]wFMCommunicate OK [21:54:58]SAM_PROTO_GetFieldsCounters done [21:54:58]requested_item shift.num is exist - process it [21:54:58]requested_item shift.opened is exist - process it [21:54:58]req_shift_opened [21:54:58]FM_GetShiftState [21:54:58]SAM_PROTO_GetShiftState [21:54:58]wFMCommunicate request_size=4 [21:54:58]MH_SAM_APDU [21:54:58]CAPDU: 80 13 01 00 [21:54:58]Write to MH i2c: E2 08 00 11 42 80 13 01 00 00 00 00 00 D0 [21:54:58]Write i2c OK [21:54:58]MH_I2C_Read... [21:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:58]Read from MH i2c: E2 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 0E 00 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 0E 00 11 42 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 06 [21:54:58]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:54:58]wFMCommunicate OK [21:54:58]SAM_PROTO_GetShiftState done [21:54:58]FM_GetShiftState done [21:54:58]req_shift_opened done [21:54:58]requested_item shift.open_date is exist - process it [21:54:58]req_shift_open_date [21:54:58]req_shift_open_date done [21:54:58]produce_requested_data done [21:54:58]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162953,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:54:58]process_action_free close_receipt [21:54:58]json_value_free [21:54:58]json_value_free done [21:54:58]process_json_proto returns [21:54:58]Send response to host [21:54:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162953,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:54:58]free response buf [21:54:58]execute_script done [21:54:58]execute_script returns [21:54:58]free content buf [21:54:58]Sock 9.Close socket [21:54:58]Sock 9.Thread stoped [21:55:03]OFD Sender: No OFD packet to send [21:55:05]accept exits with 7 [21:55:05]New connection [21:55:05]New thread 3066879332 created [21:55:05]Thread 3066735972 joined [21:55:05]Waiting for new connection... [21:55:05] Sock 7.Parse request [21:55:05]Sock 7.Check first char [21:55:05]Sock 7.First char is OK [21:55:05]request: POST /json_proto HTTP/1.0 [21:55:05]Method: POST [21:55:05]URL: /json_proto [21:55:05]Method is POST - this is cgi request [21:55:05]url: /json_proto [21:55:05]query_string will be loaded in cgi processing [21:55:05]execute_cgi json_proto POST (null) [21:55:05]execute_cgi path=json_proto method=POST [21:55:05]POST find Content-Length [21:55:05]Host: 172.17.39.67:8080 [21:55:05]Content-Length: 1213 [21:55:05]Content-Type: application/json [21:55:05] [21:55:05]POST finish read [21:55:05]Found Content-Length = 1213 [21:55:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319564\u000A14.07.2024 21:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74684\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:05]execute_script... [21:55:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319564\u000A14.07.2024 21:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74684\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:05]POST & json_proto [21:55:05]process_json_proto [21:55:05]json parsed OK: [21:55:05]protocol is kg_v1.0 [21:55:05]action value=print_text [21:55:05]process_action print_text [21:55:05]cmd_print_text [21:55:05]ExternCall_PrintAddStr [21:55:05]wPrintStart [21:55:05]Write to MH i2c: 01 00 00 12 42 54 [21:55:05]Write i2c OK [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: 01 [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: 01 07 00 [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: 01 07 00 12 42 00 00 00 00 00 FF 0F 69 [21:55:05]RasterBufferAndPrint [21:55:05]line *****ТОВАРНЫЙ ЧЕК***** [21:55:05]line АЗС 140 [21:55:05]line Партнер нефть [21:55:05]line 02508201610067 [21:55:05]line Кассир : Дуйшенбек у Н. [21:55:05]line Счет N : (1)1319564 [21:55:05]line 14.07.2024 21:52 [21:55:05]line ПРОДАЖА [21:55:05]line ТРК (МРК, ГНК): 11 [21:55:05]line Вид ГСМ : 2710194210 [21:55:05]line ДТ(л)-К-5 [21:55:05]line 40.000 x 72.60 [21:55:05]line ИТОГ: 2904.00 [21:55:05]line Тип оплаты: Талоны: Топливная Карта [21:55:05]line 74684 [21:55:05]line ______________________ [21:55:05]line (подпись) [21:55:05]written 0, free lines is 4095 [21:55:06]Write to MH i2c: 01 00 00 26 42 68 [21:55:06]Write i2c OK [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: 01 [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: 01 07 00 [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: 01 07 00 26 42 00 00 00 00 00 12 0E 8F [21:55:06]RasterBufferAndPrint [21:55:06]line [21:55:06]line [21:55:06]line [21:55:06]line [21:55:06]line [21:55:06]written 0, free lines is 3604 [21:55:06]MH_Cut [21:55:06]Write to MH i2c: D1 01 00 2D 42 01 41 [21:55:06]Write i2c OK [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: D1 [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: D1 01 00 [21:55:06]MH_I2C_Read... [21:55:06]Read from MH i2c: D1 01 00 2D 42 00 40 [21:55:06]Write to MH i2c: 01 00 00 2E 42 70 [21:55:06]Write i2c OK [21:55:06]MH_I2C_Read... [21:55:06]*** Cut start [21:55:06]*** Purtial cut [21:55:06]*** CUTSNS_PIN = 0 [21:55:06]*** Stage 1: CUTSNS_PIN = 1 [21:55:08]OFD Sender: No OFD packet to send [21:55:08]Read from MH i2c: 01 [21:55:08]MH_I2C_Read... [21:55:08]*** Stop cut motor [21:55:08]*** Cut end [21:55:08]Read from MH i2c: 01 07 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: 01 07 00 2E 42 00 00 00 00 00 FF 0F 85 [21:55:08]process_action print_text done [21:55:08]requested_data is exist [21:55:08]produce_requested_data [21:55:08]requested_item fm.sn is exist - process it [21:55:08]wFMCommunicate request_size=4 [21:55:08]MH_SAM_APDU [21:55:08]CAPDU: 80 11 00 00 [21:55:08]Write to MH i2c: E2 08 00 2F 42 80 11 00 00 00 00 00 00 EB [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:08]Read from MH i2c: E2 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 17 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 17 00 2F 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4B [21:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:55:08]wFMCommunicate OK [21:55:08]requested_item fd.num is exist - process it [21:55:08]SAM_PROTO_GetFieldsCounters [21:55:08]wFMCommunicate request_size=4 [21:55:08]MH_SAM_APDU [21:55:08]CAPDU: 80 13 00 00 [21:55:08]Write to MH i2c: E2 08 00 30 42 80 13 00 00 00 00 00 00 EE [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:08]Read from MH i2c: E2 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 62 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 62 00 30 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 89 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [21:55:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 89 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:55:08]wFMCommunicate OK [21:55:08]SAM_PROTO_GetFieldsCounters done [21:55:08]requested_item shift.num is exist - process it [21:55:08]requested_item shift.opened is exist - process it [21:55:08]req_shift_opened [21:55:08]FM_GetShiftState [21:55:08]SAM_PROTO_GetShiftState [21:55:08]wFMCommunicate request_size=4 [21:55:08]MH_SAM_APDU [21:55:08]CAPDU: 80 13 01 00 [21:55:08]Write to MH i2c: E2 08 00 31 42 80 13 01 00 00 00 00 00 F0 [21:55:08]Write i2c OK [21:55:08]MH_I2C_Read... [21:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:08]Read from MH i2c: E2 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 0E 00 [21:55:08]MH_I2C_Read... [21:55:08]Read from MH i2c: E2 0E 00 31 42 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 26 [21:55:08]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:55:08]wFMCommunicate OK [21:55:08]SAM_PROTO_GetShiftState done [21:55:08]FM_GetShiftState done [21:55:08]req_shift_opened done [21:55:08]requested_item shift.open_date is exist - process it [21:55:08]req_shift_open_date [21:55:08]req_shift_open_date done [21:55:08]produce_requested_data done [21:55:08]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162953,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:55:08]process_action_free print_text [21:55:08]json_value_free [21:55:08]json_value_free done [21:55:08]process_json_proto returns [21:55:08]Send response to host [21:55:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162953,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:55:08]free response buf [21:55:08]execute_script done [21:55:08]execute_script returns [21:55:08]free content buf [21:55:08]Sock 7.Close socket [21:55:08]Sock 7.Thread stoped [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:34]accept exits with 9 [21:58:34]New connection [21:58:34]New thread 3066735972 created [21:58:34]Thread 3066879332 joined [21:58:34]Waiting for new connection... [21:58:34] Sock 9.Parse request [21:58:34]Sock 9.Check first char [21:58:34]Sock 9.First char is OK [21:58:34]request: POST /json_proto HTTP/1.0 [21:58:34]Method: POST [21:58:34]URL: /json_proto [21:58:34]Method is POST - this is cgi request [21:58:34]url: /json_proto [21:58:34]query_string will be loaded in cgi processing [21:58:34]execute_cgi json_proto POST (null) [21:58:34]execute_cgi path=json_proto method=POST [21:58:34]POST find Content-Length [21:58:34]Host: 172.17.39.67:8080 [21:58:34]Content-Length: 678 [21:58:34]Content-Type: application/json [21:58:34] [21:58:34]POST finish read [21:58:34]Found Content-Length = 678 [21:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:58:34]execute_script... [21:58: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)1319566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:58:34]POST & json_proto [21:58:34]process_json_proto [21:58:34]json parsed OK: [21:58:34]protocol is kg_v1.0 [21:58:34]action value=close_receipt [21:58:34]process_action close_receipt [21:58:34]cmd_close_receipt [21:58:34]MH_GetDate [21:58:34]Write to MH i2c: F0 00 00 32 42 63 [21:58:34]Write i2c OK [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: F0 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: F0 09 00 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: F0 09 00 32 42 00 0D 4A 94 66 B6 85 93 66 F1 [21:58:34]GetLastDocTimeStamp 1720994098 [21:58:34]current date 1720994317 [21:58:34]FM_GetShiftState [21:58:34]SAM_PROTO_GetShiftState [21:58:34]wFMCommunicate request_size=4 [21:58:34]MH_SAM_APDU [21:58:34]CAPDU: 80 13 01 00 [21:58:34]Write to MH i2c: E2 08 00 33 42 80 13 01 00 00 00 00 00 F2 [21:58:34]Write i2c OK [21:58:34]MH_I2C_Read... [21:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:34]Read from MH i2c: E2 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: E2 0E 00 [21:58:34]MH_I2C_Read... [21:58:34]Read from MH i2c: E2 0E 00 33 42 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 28 [21:58:34]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:58:34]wFMCommunicate OK [21:58:34]SAM_PROTO_GetShiftState done [21:58:34]FM_GetShiftState done [21:58:34]opened in 1720915483 [21:58:34]opened+sec_in_day 1721001883 [21:58:34]quantity*price = 50056 [21:58:34]sum+1 = 50058 [21:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 266 14.07.2024 21:58 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162954 ФПД: 202569144376082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T215837&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162954&fm=202569144376082&tin=02508201610067®Number=0000000000090858&sum=50000 [21:58:35]StoreToDocumentArchive [21:58:35]shift 463 fd 162954 [21:58:35]save to /storage/0463/doc_00162954 [21:58:35]save last doc name /storage/0463/doc_00162954 to /storage/kkm_last_doc_name [21:58:35]save OK [21:58:35]Clear old archive folders... [21:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:58:35]tlvbuf is 01256460 [21:58:35]SAM_PROTO_ClearQueue [21:58:35]wFMCommunicate request_size=4 [21:58:35]MH_SAM_APDU [21:58:35]CAPDU: 80 09 00 00 [21:58:35]Write to MH i2c: E2 08 00 40 42 80 09 00 00 00 00 00 00 F4 [21:58:35]Write i2c OK [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: E2 [21:58:35]MH_I2C_Read... [21:58:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:35]Read from MH i2c: E2 03 00 [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: E2 03 00 40 42 00 90 00 F6 [21:58:35]RAPDU: 90 00 [21:58:35]wFMCommunicate OK [21:58:35]SAM_PROTO_ClearQueue done [21:58:35]KKMCreateOFDPacket [21:58:35]OFDProtocolAddRootSTLVToBuf [21:58:35]FM_MakeSignedData [21:58:35]FM_MakeSignedData [21:58:35]SAM_PROTO_SignData [21:58:35]wFMCommunicate request_size=4 [21:58:35]MH_SAM_APDU [21:58:35]CAPDU: 80 0D 01 02 [21:58:35]Write to MH i2c: E2 08 00 41 42 80 0D 01 02 00 00 00 00 FC [21:58:35]Write i2c OK [21:58:35]MH_I2C_Read... [21:58:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:35]Read from MH i2c: E2 [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: E2 03 00 [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: E2 03 00 41 42 00 90 00 F7 [21:58:35]RAPDU: 90 00 [21:58:35]wFMCommunicate OK [21:58:35]wFMCommunicate request_size=255 [21:58:35]MH_SAM_APDU [21:58:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 0A 01 00 00 F4 03 04 00 0D 4A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7C 02 00 35 04 06 00 B8 [21:58:35]Write to MH i2c: E2 02 01 42 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 0A 01 00 00 F4 03 04 00 0D 4A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7C 02 00 35 04 06 00 B8 00 00 A4 [21:58:35]Write i2c OK [21:58:35]MH_I2C_Read... [21:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:35]Read from MH i2c: E2 [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: E2 03 00 [21:58:35]MH_I2C_Read... [21:58:35]Read from MH i2c: E2 03 00 42 42 00 90 00 F8 [21:58:35]RAPDU: 90 00 [21:58:35]wFMCommunicate OK [21:58:35]wFMCommunicate request_size=10 [21:58:35]MH_SAM_APDU [21:58:35]CAPDU: 80 0D 02 02 05 3C 4D E4 9B 12 [21:58:35]Write to MH i2c: E2 0D 00 43 42 80 0D 02 02 05 00 3C 4D E4 9B 12 00 00 23 [21:58:35]Write i2c OK [21:58:35]MH_I2C_Read... [21:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:36]Read from MH i2c: E2 [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: E2 03 00 [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: E2 03 00 43 42 00 90 00 F9 [21:58:36]RAPDU: 90 00 [21:58:36]wFMCommunicate OK [21:58:36]wFMCommunicate request_size=4 [21:58:36]MH_SAM_APDU [21:58:36]CAPDU: 80 0D 03 02 [21:58:36]Write to MH i2c: E2 08 00 44 42 80 0D 03 02 00 00 00 00 01 [21:58:36]Write i2c OK [21:58:36]MH_I2C_Read... [21:58:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:36]Read from MH i2c: E2 [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: E2 0B 00 [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: E2 0B 00 44 42 00 09 D7 19 59 6C 00 9F 3A 90 00 99 [21:58:36]RAPDU: 09 D7 19 59 6C 00 9F 3A 90 00 [21:58:36]wFMCommunicate OK [21:58:36]SAM_PROTO_SignData done [21:58:36]FM_MakeSignedData done [21:58:36]CreateOFDProtocolMessage [21:58:36]wFMCommunicate request_size=4 [21:58:36]MH_SAM_APDU [21:58:36]CAPDU: 80 11 00 00 [21:58:36]Write to MH i2c: E2 08 00 45 42 80 11 00 00 00 00 00 00 01 [21:58:36]Write i2c OK [21:58:36]MH_I2C_Read... [21:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:36]Read from MH i2c: E2 [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: E2 17 00 [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: E2 17 00 45 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 61 [21:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:58:36]wFMCommunicate OK [21:58:36]CreateOFDProtocolMessage done [21:58:36]OFDSenderStorePacket 162954 [21:58:36]StoreOFDPacket docnum=162954 [21:58:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6B B6 07 01 29 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 0A 01 00 00 F4 03 04 00 0D 4A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7C 02 00 35 04 06 00 B8 3C 4D E4 9B 12 09 D7 19 59 6C 00 9F 3A [21:58:36]CheckFolder [21:58:36]dirname=/storage/ofd_packets [21:58:36]CheckFolder done [21:58:36]ProducePacketName [21:58:36]name=ofd_packets/00162954 [21:58:36]NVStorageSaveData ofd_packets/00162954 [21:58:36]File name is /storage/ofd_packets/00162954 [21:58:36]Write 301 bytes [21:58:36]NVStorageSaveData done [21:58:36]OFDSenderStorePacket done [21:58:36]KKMCreateOFDPacket done [21:58:36]NVStorageSaveData kkm_last_timestamp [21:58:36]File name is /storage/kkm_last_timestamp [21:58:36]Write 4 bytes [21:58:36]NVStorageSaveData done [21:58:36]ExternCall_PrintAddStr [21:58:36]wPrintStart [21:58:36]Write to MH i2c: 01 00 00 46 42 88 [21:58:36]Write i2c OK [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: 01 [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: 01 07 00 [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: 01 07 00 46 42 00 00 00 00 00 FF 0F 9D [21:58:36]RasterBufferAndPrint [21:58:36]line Счет N : (1)1319566 [21:58:36]line ИНН: 02508201610067 [21:58:36]line Контрольно-Кассовый Чек [21:58:36]line ПРОДАЖА [21:58:36]line ТРК (МРК, ГНК) : 43 [21:58:36]line Товар: 2710124130 [21:58:36]line Аи-92-К-5 [21:58:36]line 7.550 * 66.30 [21:58:36]line = 500.57 [21:58:36]line НДС 12% НСП 1% [21:58:36]line > о реализуемом товаре [21:58:36]line ОКРУГЛЕНИЕ: -0.57 [21:58:36]line ИТОГО: 500.00 [21:58:36]line Внесено: 500.00 [21:58:36]line СДАЧА: 0.00 [21:58:36]line НСП 1% : 4.43 [21:58:36]line НДС 12% : 53.16 [21:58:36]line Наличными: 500.00 [21:58:36]line Безнал.: 0.00 [21:58:36]line Место: АЗС № 140 "Партнер Нефть" [21:58:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:58:36]line СНО: Общий режим [21:58:36]line Чек 266 14.07.2024 21:58 [21:58:36]line Смена: 463 ФФД: 1.0 [21:58:36]line ЗНМ: 0300000129 [21:58:36]line РНМ: 0000000000090858 [21:58:36]line Версия ККМ: 001 [21:58:36]line ФМ: 0000000000874899 [21:58:36]line ФД: 162954 [21:58:36]line ФПД: 202569144376082 [21:58:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T215837&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162954&fm=202569144376082&tin=02508201610067®Number=0000000000090858&sum=50000 [21:58:36]OFD Sender: Processing packet 162954 [packets to send 106, broken 105] [21:58:36]ProducePacketName [21:58:36]name=ofd_packets/00162954 [21:58:36]OFD Sender: To server: pG, [21:58:36]CommunicateWithHost lk.salyk.kg:30040 [21:58:36]ConnectInit lk.salyk.kg [21:58:36]written 0, free lines is 4095 [21:58:36]Connected sock=10 [21: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 34 38 39 39 0F 01 00 00 6B B6 07 01 29 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 0A 01 00 00 F4 03 04 00 0D 4A 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7C 02 00 35 04 06 00 B8 3C 4D E4 9B 12 09 D7 19 59 6C 00 9F 3A [21:58:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 DA F8 47 00 D9 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7C 02 00 F4 03 04 00 1A F6 93 66 B6 04 01 00 00 61 2E 53 FC 06 EF 86 9A [21:58:36]CommunicateWithHost err = 0 [21:58:36]CheckOFDResponse [21:58:36]1017 (14) - 77093643461234 [21:58:36]1041 (16) - 0000000000874899 [21:58:36]1040 (4) - 162954 [21:58:36]1012 (4) - 14.07.2024 16:00 [21:58:36]1206 (1) - 0 [21:58:36]OFD Sender: Remove packet 162954 [21:58:36]ProducePacketName [21:58:36]name=ofd_packets/00162954 [21:58:36]NVStorageDeleteData [21:58:36]Write to MH i2c: 01 00 00 71 42 B3 [21:58:36]Write i2c OK [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: 01 [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: 01 07 00 [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: 01 07 00 71 42 00 00 00 00 00 E7 0C AD [21:58:36]RasterBufferAndPrint [21:58:36]line [21:58:36]line [21:58:36]line [21:58:36]line [21:58:36]line [21:58:36]written 0, free lines is 3309 [21:58:36]MH_Cut [21:58:36]Write to MH i2c: D1 01 00 78 42 01 8C [21:58:36]Write i2c OK [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: D1 [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: D1 01 00 [21:58:36]MH_I2C_Read... [21:58:36]Read from MH i2c: D1 01 00 78 42 00 8B [21:58:36]Write to MH i2c: 01 00 00 79 42 BB [21:58:36]Write i2c OK [21:58:36]MH_I2C_Read... [21:58:37]OFD Sender: No OFD packet to send [21:58:37]*** Cut start [21:58:37]*** Purtial cut [21:58:37]*** Stage 1: CUTSNS_PIN = 1 [21:58:37]Read from MH i2c: 01 [21:58:37]MH_I2C_Read... [21:58:37]*** Stop cut motor [21:58:37]*** Cut end [21:58:37]Read from MH i2c: 01 07 00 [21:58:37]MH_I2C_Read... [21:58:37]Read from MH i2c: 01 07 00 79 42 00 00 00 00 00 FF 0F D0 [21:58:37]process_action close_receipt done [21:58:37]requested_data is exist [21:58:37]produce_requested_data [21:58:37]requested_item fm.sn is exist - process it [21:58:37]wFMCommunicate request_size=4 [21:58:37]MH_SAM_APDU [21:58:37]CAPDU: 80 11 00 00 [21:58:37]Write to MH i2c: E2 08 00 7A 42 80 11 00 00 00 00 00 00 36 [21:58:37]Write i2c OK [21:58:37]MH_I2C_Read... [21:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:37]Read from MH i2c: E2 [21:58:37]MH_I2C_Read... [21:58:37]Read from MH i2c: E2 17 00 [21:58:37]MH_I2C_Read... [21:58:37]Read from MH i2c: E2 17 00 7A 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 96 [21:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:58:37]wFMCommunicate OK [21:58:37]requested_item fd.num is exist - process it [21:58:37]SAM_PROTO_GetFieldsCounters [21:58:37]wFMCommunicate request_size=4 [21:58:37]MH_SAM_APDU [21:58:37]CAPDU: 80 13 00 00 [21:58:37]Write to MH i2c: E2 08 00 7B 42 80 13 00 00 00 00 00 00 39 [21:58:37]Write i2c OK [21:58:37]MH_I2C_Read... [21:58:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:38]Read from MH i2c: E2 [21:58:38]MH_I2C_Read... [21:58:38]Read from MH i2c: E2 62 00 [21:58:38]MH_I2C_Read... [21:58:38]Read from MH i2c: E2 62 00 7B 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8A 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [21:58:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8A 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:38]wFMCommunicate OK [21:58:38]SAM_PROTO_GetFieldsCounters done [21:58:38]requested_item shift.num is exist - process it [21:58:38]requested_item shift.opened is exist - process it [21:58:38]req_shift_opened [21:58:38]FM_GetShiftState [21:58:38]SAM_PROTO_GetShiftState [21:58:38]wFMCommunicate request_size=4 [21:58:38]MH_SAM_APDU [21:58:38]CAPDU: 80 13 01 00 [21:58:38]Write to MH i2c: E2 08 00 7C 42 80 13 01 00 00 00 00 00 3B [21:58:38]Write i2c OK [21:58:38]MH_I2C_Read... [21:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:38]Read from MH i2c: E2 [21:58:38]MH_I2C_Read... [21:58:38]Read from MH i2c: E2 0E 00 [21:58:38]MH_I2C_Read... [21:58:38]Read from MH i2c: E2 0E 00 7C 42 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 71 [21:58:38]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [21:58:38]wFMCommunicate OK [21:58:38]SAM_PROTO_GetShiftState done [21:58:38]FM_GetShiftState done [21:58:38]req_shift_opened done [21:58:38]requested_item shift.open_date is exist - process it [21:58:38]req_shift_open_date [21:58:38]req_shift_open_date done [21:58:38]produce_requested_data done [21:58:38]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162954,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [21:58:38]process_action_free close_receipt [21:58:38]json_value_free [21:58:38]json_value_free done [21:58:38]process_json_proto returns [21:58:38]Send response to host [21:58:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162954,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [21:58:38]free response buf [21:58:38]execute_script done [21:58:38]execute_script returns [21:58:38]free content buf [21:58:38]Sock 9.Close socket [21:58:38]Sock 9.Thread stoped [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:25]accept exits with 7 [22:04:25]New connection [22:04:25]New thread 3066879332 created [22:04:25]Thread 3066735972 joined [22:04:25]Waiting for new connection... [22:04:25] Sock 7.Parse request [22:04:25]Sock 7.Check first char [22:04:25]Sock 7.First char is OK [22:04:25]request: POST /json_proto HTTP/1.0 [22:04:25]Method: POST [22:04:25]URL: /json_proto [22:04:25]Method is POST - this is cgi request [22:04:25]url: /json_proto [22:04:25]query_string will be loaded in cgi processing [22:04:25]execute_cgi json_proto POST (null) [22:04:25]execute_cgi path=json_proto method=POST [22:04:25]POST find Content-Length [22:04:25]Host: 172.17.39.67:8080 [22:04:25]Content-Length: 676 [22:04:25]Content-Type: application/json [22:04:25] [22:04:25]POST finish read [22:04:25]Found Content-Length = 676 [22:04:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 38.240, "sum" : 2573.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2573.00, "payments": [ { "type": 0, "sum" : 2573.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:25]execute_script... [22: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)1319567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 38.240, "sum" : 2573.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2573.00, "payments": [ { "type": 0, "sum" : 2573.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:25]POST & json_proto [22:04:25]process_json_proto [22:04:25]json parsed OK: [22:04:25]protocol is kg_v1.0 [22:04:25]action value=close_receipt [22:04:25]process_action close_receipt [22:04:25]cmd_close_receipt [22:04:25]MH_GetDate [22:04:25]Write to MH i2c: F0 00 00 7D 42 AE [22:04:25]Write i2c OK [22:04:25]MH_I2C_Read... [22:04:25]Read from MH i2c: F0 [22:04:25]MH_I2C_Read... [22:04:25]Read from MH i2c: F0 09 00 [22:04:25]MH_I2C_Read... [22:04:25]Read from MH i2c: F0 09 00 7D 42 00 6C 4B 94 66 B6 85 93 66 9C [22:04:25]GetLastDocTimeStamp 1720994317 [22:04:25]current date 1720994668 [22:04:25]FM_GetShiftState [22:04:25]SAM_PROTO_GetShiftState [22:04:25]wFMCommunicate request_size=4 [22:04:25]MH_SAM_APDU [22:04:25]CAPDU: 80 13 01 00 [22:04:25]Write to MH i2c: E2 08 00 7E 42 80 13 01 00 00 00 00 00 3D [22:04:25]Write i2c OK [22:04:25]MH_I2C_Read... [22:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:25]Read from MH i2c: E2 [22:04:25]MH_I2C_Read... [22:04:25]Read from MH i2c: E2 0E 00 [22:04:25]MH_I2C_Read... [22:04:25]Read from MH i2c: E2 0E 00 7E 42 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 73 [22:04:25]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:04:25]wFMCommunicate OK [22:04:25]SAM_PROTO_GetShiftState done [22:04:25]FM_GetShiftState done [22:04:25]opened in 1720915483 [22:04:25]opened+sec_in_day 1721001883 [22:04:25]quantity*price = 257355 [22:04:25]sum+1 = 257356 [22:04:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 2573.00 Внесено: 5000.00 СДАЧА: 2427.00 НСП 1% : 22.77 НДС 12% : 273.30 Наличными: 2573.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 267 14.07.2024 22:04 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162955 ФПД: 95056099671188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T220428&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162955&fm=95056099671188&tin=02508201610067®Number=0000000000090858&sum=257300 [22:04:26]StoreToDocumentArchive [22:04:26]shift 463 fd 162955 [22:04:26]save to /storage/0463/doc_00162955 [22:04:26]save last doc name /storage/0463/doc_00162955 to /storage/kkm_last_doc_name [22:04:26]save OK [22:04:26]Clear old archive folders... [22:04:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:04:26]tlvbuf is 01343B30 [22:04:26]SAM_PROTO_ClearQueue [22:04:26]wFMCommunicate request_size=4 [22:04:26]MH_SAM_APDU [22:04:26]CAPDU: 80 09 00 00 [22:04:26]Write to MH i2c: E2 08 00 8B 42 80 09 00 00 00 00 00 00 3F [22:04:26]Write i2c OK [22:04:26]MH_I2C_Read... [22:04:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:26]Read from MH i2c: E2 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: E2 03 00 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: E2 03 00 8B 42 00 90 00 41 [22:04:26]RAPDU: 90 00 [22:04:26]wFMCommunicate OK [22:04:26]SAM_PROTO_ClearQueue done [22:04:26]KKMCreateOFDPacket [22:04:26]OFDProtocolAddRootSTLVToBuf [22:04:26]FM_MakeSignedData [22:04:26]FM_MakeSignedData [22:04:26]SAM_PROTO_SignData [22:04:26]wFMCommunicate request_size=4 [22:04:26]MH_SAM_APDU [22:04:26]CAPDU: 80 0D 01 02 [22:04:26]Write to MH i2c: E2 08 00 8C 42 80 0D 01 02 00 00 00 00 47 [22:04:26]Write i2c OK [22:04:26]MH_I2C_Read... [22:04:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:26]Read from MH i2c: E2 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: E2 03 00 [22:04:26]MH_I2C_Read... [22:04:26]Read from MH i2c: E2 03 00 8C 42 00 90 00 42 [22:04:26]RAPDU: 90 00 [22:04:26]wFMCommunicate OK [22:04:26]wFMCommunicate request_size=255 [22:04:26]MH_SAM_APDU [22:04:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 95 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 4B ED 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 ED 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 6A 00 00 00 00 07 04 06 00 14 ED 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 6C 4B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7C 02 00 35 04 06 00 [22:04:26]Write to MH i2c: E2 02 01 8D 42 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 95 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 4B ED 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 ED 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 6A 00 00 00 00 07 04 06 00 14 ED 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 6C 4B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7C 02 00 35 04 06 00 00 00 D8 [22:04:27]Write i2c OK [22:04:27]MH_I2C_Read... [22:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:27]Read from MH i2c: E2 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 03 00 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 03 00 8D 42 00 90 00 43 [22:04:27]RAPDU: 90 00 [22:04:27]wFMCommunicate OK [22:04:27]wFMCommunicate request_size=11 [22:04:27]MH_SAM_APDU [22:04:27]CAPDU: 80 0D 02 02 06 56 73 F9 0D FC 94 [22:04:27]Write to MH i2c: E2 0E 00 8E 42 80 0D 02 02 06 00 56 73 F9 0D FC 94 00 00 B5 [22:04:27]Write i2c OK [22:04:27]MH_I2C_Read... [22:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:27]Read from MH i2c: E2 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 03 00 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 03 00 8E 42 00 90 00 44 [22:04:27]RAPDU: 90 00 [22:04:27]wFMCommunicate OK [22:04:27]wFMCommunicate request_size=4 [22:04:27]MH_SAM_APDU [22:04:27]CAPDU: 80 0D 03 02 [22:04:27]Write to MH i2c: E2 08 00 8F 42 80 0D 03 02 00 00 00 00 4C [22:04:27]Write i2c OK [22:04:27]MH_I2C_Read... [22:04:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:27]Read from MH i2c: E2 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 0B 00 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 0B 00 8F 42 00 7C 0A 7B 4E 7F 43 4D D9 90 00 84 [22:04:27]RAPDU: 7C 0A 7B 4E 7F 43 4D D9 90 00 [22:04:27]wFMCommunicate OK [22:04:27]SAM_PROTO_SignData done [22:04:27]FM_MakeSignedData done [22:04:27]CreateOFDProtocolMessage [22:04:27]wFMCommunicate request_size=4 [22:04:27]MH_SAM_APDU [22:04:27]CAPDU: 80 11 00 00 [22:04:27]Write to MH i2c: E2 08 00 90 42 80 11 00 00 00 00 00 00 4C [22:04:27]Write i2c OK [22:04:27]MH_I2C_Read... [22:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:27]Read from MH i2c: E2 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 17 00 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: E2 17 00 90 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AC [22:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:04:27]wFMCommunicate OK [22:04:27]CreateOFDProtocolMessage done [22:04:27]OFDSenderStorePacket 162955 [22:04:27]StoreOFDPacket docnum=162955 [22:04:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 DF 03 08 01 0D 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 95 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 4B ED 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 ED 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 6A 00 00 00 00 07 04 06 00 14 ED 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 6C 4B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7C 02 00 35 04 06 00 56 73 F9 0D FC 94 7C 0A 7B 4E 7F 43 4D D9 [22:04:27]CheckFolder [22:04:27]dirname=/storage/ofd_packets [22:04:27]CheckFolder done [22:04:27]ProducePacketName [22:04:27]name=ofd_packets/00162955 [22:04:27]NVStorageSaveData ofd_packets/00162955 [22:04:27]File name is /storage/ofd_packets/00162955 [22:04:27]Write 302 bytes [22:04:27]NVStorageSaveData done [22:04:27]OFDSenderStorePacket done [22:04:27]KKMCreateOFDPacket done [22:04:27]NVStorageSaveData kkm_last_timestamp [22:04:27]File name is /storage/kkm_last_timestamp [22:04:27]Write 4 bytes [22:04:27]NVStorageSaveData done [22:04:27]ExternCall_PrintAddStr [22:04:27]wPrintStart [22:04:27]Write to MH i2c: 01 00 00 91 42 D3 [22:04:27]Write i2c OK [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: 01 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: 01 07 00 [22:04:27]MH_I2C_Read... [22:04:27]Read from MH i2c: 01 07 00 91 42 00 00 00 00 00 FF 0F E8 [22:04:27]RasterBufferAndPrint [22:04:27]line Счет N : (1)1319567 [22:04:27]line ИНН: 02508201610067 [22:04:27]line Контрольно-Кассовый Чек [22:04:27]line ПРОДАЖА [22:04:27]line ТРК (МРК, ГНК) : 52 [22:04:27]line Товар: 2710124130 [22:04:27]line Super-92-К-5 [22:04:27]line 38.240 * 67.30 [22:04:27]line = 2573.55 [22:04:27]line НДС 12% НСП 1% [22:04:27]line > о реализуемом товаре [22:04:27]line ОКРУГЛЕНИЕ: -0.55 [22:04:27]line ИТОГО: 2573.00 [22:04:27]line Внесено: 5000.00 [22:04:27]line СДАЧА: 2427.00 [22:04:27]line НСП 1% : 22.77 [22:04:27]line НДС 12% : 273.30 [22:04:27]line Наличными: 2573.00 [22:04:27]line Безнал.: 0.00 [22:04:27]line Место: АЗС № 140 "Партнер Нефть" [22:04:27]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:04:27]line СНО: Общий режим [22:04:27]line Чек 267 14.07.2024 22:04 [22:04:27]line Смена: 463 ФФД: 1.0 [22:04:27]line ЗНМ: 0300000129 [22:04:27]line РНМ: 0000000000090858 [22:04:27]line Версия ККМ: 001 [22:04:27]line ФМ: 0000000000874899 [22:04:27]line ФД: 162955 [22:04:27]line ФПД: 95056099671188 [22:04:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T220428&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162955&fm=95056099671188&tin=02508201610067®Number=0000000000090858&sum=257300 [22:04:27]OFD Sender: Processing packet 162955 [packets to send 106, broken 105] [22:04:27]ProducePacketName [22:04:27]name=ofd_packets/00162955 [22:04:27]OFD Sender: To server: pG, [22:04:27]CommunicateWithHost lk.salyk.kg:30040 [22:04:27]ConnectInit lk.salyk.kg [22:04:27]written 0, free lines is 4095 [22:04:27]Connected sock=10 [22:04:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 DF 03 08 01 0D 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 95 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 4B ED 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 ED 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 6A 00 00 00 00 07 04 06 00 14 ED 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 6C 4B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7C 02 00 35 04 06 00 56 73 F9 0D FC 94 7C 0A 7B 4E 7F 43 4D D9 [22:04:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E3 D9 47 00 E1 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7C 02 00 F4 03 04 00 79 F7 93 66 B6 04 01 00 00 16 09 1B 81 72 CF 39 46 [22:04:28]CommunicateWithHost err = 0 [22:04:28]CheckOFDResponse [22:04:28]1017 (14) - 77093643461234 [22:04:28]1041 (16) - 0000000000874899 [22:04:28]1040 (4) - 162955 [22:04:28]1012 (4) - 14.07.2024 16:06 [22:04:28]1206 (1) - 0 [22:04:28]OFD Sender: Remove packet 162955 [22:04:28]ProducePacketName [22:04:28]name=ofd_packets/00162955 [22:04:28]NVStorageDeleteData [22:04:28]Write to MH i2c: 01 00 00 BC 42 FE [22:04:28]Write i2c OK [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: 01 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: 01 07 00 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: 01 07 00 BC 42 00 00 00 00 00 DF 0C F0 [22:04:28]RasterBufferAndPrint [22:04:28]line [22:04:28]line [22:04:28]line [22:04:28]line [22:04:28]line [22:04:28]written 0, free lines is 3303 [22:04:28]MH_Cut [22:04:28]Write to MH i2c: D1 01 00 C3 42 01 D7 [22:04:28]Write i2c OK [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: D1 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: D1 01 00 [22:04:28]MH_I2C_Read... [22:04:28]Read from MH i2c: D1 01 00 C3 42 00 D6 [22:04:28]Write to MH i2c: 01 00 00 C4 42 06 [22:04:28]Write i2c OK [22:04:28]MH_I2C_Read... [22:04:28]OFD Sender: No OFD packet to send [22:04:28]*** Cut start [22:04:28]*** Purtial cut [22:04:28]*** CUTSNS_PIN = 0 [22:04:29]*** Stage 1: CUTSNS_PIN = 1 [22:04:30]Read from MH i2c: 01 [22:04:31]MH_I2C_Read... [22:04:31]*** Stop cut motor [22:04:31]*** Cut end [22:04:31]Read from MH i2c: 01 07 00 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: 01 07 00 C4 42 00 00 00 00 00 FF 0F 1B [22:04:31]process_action close_receipt done [22:04:31]requested_data is exist [22:04:31]produce_requested_data [22:04:31]requested_item fm.sn is exist - process it [22:04:31]wFMCommunicate request_size=4 [22:04:31]MH_SAM_APDU [22:04:31]CAPDU: 80 11 00 00 [22:04:31]Write to MH i2c: E2 08 00 C5 42 80 11 00 00 00 00 00 00 81 [22:04:31]Write i2c OK [22:04:31]MH_I2C_Read... [22:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:31]Read from MH i2c: E2 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: E2 17 00 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: E2 17 00 C5 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E1 [22:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:04:31]wFMCommunicate OK [22:04:31]requested_item fd.num is exist - process it [22:04:31]SAM_PROTO_GetFieldsCounters [22:04:31]wFMCommunicate request_size=4 [22:04:31]MH_SAM_APDU [22:04:31]CAPDU: 80 13 00 00 [22:04:31]Write to MH i2c: E2 08 00 C6 42 80 13 00 00 00 00 00 00 84 [22:04:31]Write i2c OK [22:04:31]MH_I2C_Read... [22:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:31]Read from MH i2c: E2 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: E2 62 00 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: E2 62 00 C6 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8B 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [22:04:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8B 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:31]wFMCommunicate OK [22:04:31]SAM_PROTO_GetFieldsCounters done [22:04:31]requested_item shift.num is exist - process it [22:04:31]requested_item shift.opened is exist - process it [22:04:31]req_shift_opened [22:04:31]FM_GetShiftState [22:04:31]SAM_PROTO_GetShiftState [22:04:31]wFMCommunicate request_size=4 [22:04:31]MH_SAM_APDU [22:04:31]CAPDU: 80 13 01 00 [22:04:31]Write to MH i2c: E2 08 00 C7 42 80 13 01 00 00 00 00 00 86 [22:04:31]Write i2c OK [22:04:31]MH_I2C_Read... [22:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:31]Read from MH i2c: E2 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: E2 0E 00 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: E2 0E 00 C7 42 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BC [22:04:31]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:04:31]wFMCommunicate OK [22:04:31]SAM_PROTO_GetShiftState done [22:04:31]FM_GetShiftState done [22:04:31]req_shift_opened done [22:04:31]requested_item shift.open_date is exist - process it [22:04:31]req_shift_open_date [22:04:31]req_shift_open_date done [22:04:31]produce_requested_data done [22:04:31]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162955,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [22:04:31]process_action_free close_receipt [22:04:31]json_value_free [22:04:31]json_value_free done [22:04:31]process_json_proto returns [22:04:31]Send response to host [22:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162955,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [22:04:31]free response buf [22:04:31]execute_script done [22:04:31]execute_script returns [22:04:31]free content buf [22:04:31]Sock 7.Close socket [22:04:31]Sock 7.Thread stoped [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:31]accept exits with 9 [22:09:31]New connection [22:09:31]New thread 3066735972 created [22:09:31]Thread 3066879332 joined [22:09:31]Waiting for new connection... [22:09:31] Sock 9.Parse request [22:09:31]Sock 9.Check first char [22:09:31]Sock 9.First char is OK [22:09:31]request: POST /json_proto HTTP/1.0 [22:09:31]Method: POST [22:09:31]URL: /json_proto [22:09:31]Method is POST - this is cgi request [22:09:31]url: /json_proto [22:09:31]query_string will be loaded in cgi processing [22:09:31]execute_cgi json_proto POST (null) [22:09:31]execute_cgi path=json_proto method=POST [22:09:31]POST find Content-Length [22:09:31]Host: 172.17.39.67:8080 [22:09:31]Content-Length: 801 [22:09:31]Content-Type: application/json [22:09:31] [22:09:31]POST finish read [22:09:31]Found Content-Length = 801 [22:09:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 9.950, "sum" : 740.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 740.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:31]execute_script... [22:09:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 9.950, "sum" : 740.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 740.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:31]POST & json_proto [22:09:31]process_json_proto [22:09:31]json parsed OK: [22:09:31]protocol is kg_v1.0 [22:09:31]action value=close_receipt [22:09:31]process_action close_receipt [22:09:31]cmd_close_receipt [22:09:31]MH_GetDate [22:09:31]Write to MH i2c: F0 00 00 C8 42 F9 [22:09:31]Write i2c OK [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: F0 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: F0 09 00 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: F0 09 00 C8 42 00 9F 4C 94 66 B6 85 93 66 1B [22:09:31]GetLastDocTimeStamp 1720994668 [22:09:31]current date 1720994975 [22:09:31]FM_GetShiftState [22:09:31]SAM_PROTO_GetShiftState [22:09:31]wFMCommunicate request_size=4 [22:09:31]MH_SAM_APDU [22:09:31]CAPDU: 80 13 01 00 [22:09:31]Write to MH i2c: E2 08 00 C9 42 80 13 01 00 00 00 00 00 88 [22:09:31]Write i2c OK [22:09:31]MH_I2C_Read... [22:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:31]Read from MH i2c: E2 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: E2 0E 00 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: E2 0E 00 C9 42 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BE [22:09:31]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:09:31]wFMCommunicate OK [22:09:31]SAM_PROTO_GetShiftState done [22:09:31]FM_GetShiftState done [22:09:31]opened in 1720915483 [22:09:31]opened+sec_in_day 1721001883 [22:09:31]quantity*price = 74028 [22:09:31]sum+1 = 74029 [22:09:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 740.28 НСП 1% : 6.55 НДС 12% : 78.61 Наличными: 0.00 Безнал.: 740.28 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 268 14.07.2024 22:09 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162956 ФПД: 79810900340329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T220935&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162956&fm=79810900340329&tin=02508201610067®Number=0000000000090858&sum=74028 [22:09:33]StoreToDocumentArchive [22:09:33]shift 463 fd 162956 [22:09:33]save to /storage/0463/doc_00162956 [22:09:33]save last doc name /storage/0463/doc_00162956 to /storage/kkm_last_doc_name [22:09:33]save OK [22:09:33]Clear old archive folders... [22:09:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:09:33]tlvbuf is 01307BC0 [22:09:33]SAM_PROTO_ClearQueue [22:09:33]wFMCommunicate request_size=4 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 09 00 00 [22:09:33]Write to MH i2c: E2 08 00 D6 42 80 09 00 00 00 00 00 00 8A [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 D6 42 00 90 00 8C [22:09:33]RAPDU: 90 00 [22:09:33]wFMCommunicate OK [22:09:33]SAM_PROTO_ClearQueue done [22:09:33]KKMCreateOFDPacket [22:09:33]OFDProtocolAddRootSTLVToBuf [22:09:33]FM_MakeSignedData [22:09:33]FM_MakeSignedData [22:09:33]SAM_PROTO_SignData [22:09:33]wFMCommunicate request_size=4 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 0D 01 02 [22:09:33]Write to MH i2c: E2 08 00 D7 42 80 0D 01 02 00 00 00 00 92 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 D7 42 00 90 00 8D [22:09:33]RAPDU: 90 00 [22:09:33]wFMCommunicate OK [22:09:33]wFMCommunicate request_size=255 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DE 26 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 2C 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 B5 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 9F 4C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7C 02 00 35 04 06 00 48 [22:09:33]Write to MH i2c: E2 02 01 D8 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DE 26 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 2C 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 B5 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 9F 4C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7C 02 00 35 04 06 00 48 00 00 45 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 D8 42 00 90 00 8E [22:09:33]RAPDU: 90 00 [22:09:33]wFMCommunicate OK [22:09:33]wFMCommunicate request_size=10 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 0D 02 02 05 96 6C 5D 2E 69 [22:09:33]Write to MH i2c: E2 0D 00 D9 42 80 0D 02 02 05 00 96 6C 5D 2E 69 00 00 95 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 D9 42 00 90 00 8F [22:09:33]RAPDU: 90 00 [22:09:33]wFMCommunicate OK [22:09:33]wFMCommunicate request_size=4 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 0D 03 02 [22:09:33]Write to MH i2c: E2 08 00 DA 42 80 0D 03 02 00 00 00 00 97 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 0B 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 0B 00 DA 42 00 86 17 21 8A 08 6B 9E 18 90 00 09 [22:09:33]RAPDU: 86 17 21 8A 08 6B 9E 18 90 00 [22:09:33]wFMCommunicate OK [22:09:33]SAM_PROTO_SignData done [22:09:33]FM_MakeSignedData done [22:09:33]CreateOFDProtocolMessage [22:09:33]wFMCommunicate request_size=4 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 11 00 00 [22:09:33]Write to MH i2c: E2 08 00 DB 42 80 11 00 00 00 00 00 00 97 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 17 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 17 00 DB 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F7 [22:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:09:33]wFMCommunicate OK [22:09:33]CreateOFDProtocolMessage done [22:09:33]OFDSenderStorePacket 162956 [22:09:33]StoreOFDPacket docnum=162956 [22:09:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 7F 45 07 01 FB EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DE 26 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 2C 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 B5 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 9F 4C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7C 02 00 35 04 06 00 48 96 6C 5D 2E 69 86 17 21 8A 08 6B 9E 18 [22:09:33]CheckFolder [22:09:33]dirname=/storage/ofd_packets [22:09:33]CheckFolder done [22:09:33]ProducePacketName [22:09:33]name=ofd_packets/00162956 [22:09:33]NVStorageSaveData ofd_packets/00162956 [22:09:33]File name is /storage/ofd_packets/00162956 [22:09:33]Write 301 bytes [22:09:33]NVStorageSaveData done [22:09:33]OFDSenderStorePacket done [22:09:33]KKMCreateOFDPacket done [22:09:33]NVStorageSaveData kkm_last_timestamp [22:09:33]File name is /storage/kkm_last_timestamp [22:09:33]Write 4 bytes [22:09:33]NVStorageSaveData done [22:09:33]ExternCall_PrintAddStr [22:09:33]wPrintStart [22:09:33]Write to MH i2c: 01 00 00 DC 42 1E [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 07 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 07 00 DC 42 00 00 00 00 00 FF 0F 33 [22:09:33]RasterBufferAndPrint [22:09:33]line Счет N : (1)1319568 [22:09:33]line ИНН: 02508201610067 [22:09:33]line Контрольно-Кассовый Чек [22:09:33]line ПРОДАЖА [22:09:33]line ТРК (МРК, ГНК) : 54 [22:09:33]line Товар: 2710124500 [22:09:33]line Аи-95-К-5 [22:09:33]line 9.950 * 74.40 [22:09:33]line = 740.28 [22:09:33]line НДС 12% НСП 1% [22:09:33]line > о реализуемом товаре [22:09:33]line ИТОГО: 740.28 [22:09:33]line НСП 1% : 6.55 [22:09:33]line НДС 12% : 78.61 [22:09:33]line Наличными: 0.00 [22:09:33]line Безнал.: 740.28 [22:09:33]line Место: АЗС № 140 "Партнер Нефть" [22:09:33]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:09:33]line СНО: Общий режим [22:09:33]line Чек 268 14.07.2024 22:09 [22:09:33]line Смена: 463 ФФД: 1.0 [22:09:33]line ЗНМ: 0300000129 [22:09:33]line РНМ: 0000000000090858 [22:09:33]line Версия ККМ: 001 [22:09:33]line Платежная система: O! деньги [22:09:33]line ФМ: 0000000000874899 [22:09:33]line ФД: 162956 [22:09:33]line ФПД: 79810900340329 [22:09:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T220935&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162956&fm=79810900340329&tin=02508201610067®Number=0000000000090858&sum=74028 [22:09:33]written 0, free lines is 4095 [22:09:33]OFD Sender: Processing packet 162956 [packets to send 106, broken 105] [22:09:33]ProducePacketName [22:09:33]name=ofd_packets/00162956 [22:09:33]OFD Sender: To server: pG, [22:09:33]CommunicateWithHost lk.salyk.kg:30040 [22:09:33]ConnectInit lk.salyk.kg [22:09:34]Connected sock=10 [22:09:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 7F 45 07 01 FB EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DE 26 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 2C 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 B5 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 9F 4C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7C 02 00 35 04 06 00 48 96 6C 5D 2E 69 86 17 21 8A 08 6B 9E 18 [22:09:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F1 08 47 00 73 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7C 02 00 F4 03 04 00 AB F8 93 66 B6 04 01 00 00 94 C7 50 26 D0 52 31 2B [22:09:34]CommunicateWithHost err = 0 [22:09:34]CheckOFDResponse [22:09:34]1017 (14) - 77093643461234 [22:09:34]1041 (16) - 0000000000874899 [22:09:34]1040 (4) - 162956 [22:09:34]1012 (4) - 14.07.2024 16:11 [22:09:34]1206 (1) - 0 [22:09:34]OFD Sender: Remove packet 162956 [22:09:34]ProducePacketName [22:09:34]name=ofd_packets/00162956 [22:09:34]NVStorageDeleteData [22:09:34]Write to MH i2c: 01 00 00 06 43 49 [22:09:34]Write i2c OK [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: 01 [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: 01 07 00 [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: 01 07 00 06 43 00 00 00 00 00 E3 0C 3F [22:09:34]RasterBufferAndPrint [22:09:34]line [22:09:34]line [22:09:34]line [22:09:34]line [22:09:34]line [22:09:34]written 0, free lines is 3308 [22:09:34]MH_Cut [22:09:34]Write to MH i2c: D1 01 00 0D 43 01 22 [22:09:34]Write i2c OK [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: D1 [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: D1 01 00 [22:09:34]MH_I2C_Read... [22:09:34]Read from MH i2c: D1 01 00 0D 43 00 21 [22:09:34]Write to MH i2c: 01 00 00 0E 43 51 [22:09:34]Write i2c OK [22:09:34]MH_I2C_Read... [22:09:34]OFD Sender: No OFD packet to send [22:09:35]*** Cut start [22:09:35]*** Purtial cut [22:09:35]*** Stage 1: CUTSNS_PIN = 1 [22:09:35]Read from MH i2c: 01 [22:09:35]MH_I2C_Read... [22:09:35]*** Stop cut motor [22:09:35]*** Cut end [22:09:35]Read from MH i2c: 01 07 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: 01 07 00 0E 43 00 00 00 00 00 FF 0F 66 [22:09:35]process_action close_receipt done [22:09:35]requested_data is exist [22:09:35]produce_requested_data [22:09:35]requested_item fm.sn is exist - process it [22:09:35]wFMCommunicate request_size=4 [22:09:35]MH_SAM_APDU [22:09:35]CAPDU: 80 11 00 00 [22:09:35]Write to MH i2c: E2 08 00 0F 43 80 11 00 00 00 00 00 00 CC [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:35]Read from MH i2c: E2 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 17 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 17 00 0F 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2C [22:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:09:35]wFMCommunicate OK [22:09:35]requested_item fd.num is exist - process it [22:09:35]SAM_PROTO_GetFieldsCounters [22:09:35]wFMCommunicate request_size=4 [22:09:35]MH_SAM_APDU [22:09:35]CAPDU: 80 13 00 00 [22:09:35]Write to MH i2c: E2 08 00 10 43 80 13 00 00 00 00 00 00 CF [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:35]Read from MH i2c: E2 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 62 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 62 00 10 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8C 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [22:09:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8C 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:09:35]wFMCommunicate OK [22:09:35]SAM_PROTO_GetFieldsCounters done [22:09:35]requested_item shift.num is exist - process it [22:09:35]requested_item shift.opened is exist - process it [22:09:35]req_shift_opened [22:09:35]FM_GetShiftState [22:09:35]SAM_PROTO_GetShiftState [22:09:35]wFMCommunicate request_size=4 [22:09:35]MH_SAM_APDU [22:09:35]CAPDU: 80 13 01 00 [22:09:35]Write to MH i2c: E2 08 00 11 43 80 13 01 00 00 00 00 00 D1 [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:35]Read from MH i2c: E2 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 0E 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 0E 00 11 43 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 07 [22:09:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:09:35]wFMCommunicate OK [22:09:35]SAM_PROTO_GetShiftState done [22:09:35]FM_GetShiftState done [22:09:35]req_shift_opened done [22:09:35]requested_item shift.open_date is exist - process it [22:09:35]req_shift_open_date [22:09:35]req_shift_open_date done [22:09:35]produce_requested_data done [22:09:35]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162956,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [22:09:35]process_action_free close_receipt [22:09:35]json_value_free [22:09:35]json_value_free done [22:09:35]process_json_proto returns [22:09:35]Send response to host [22:09:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162956,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [22:09:35]free response buf [22:09:35]execute_script done [22:09:35]execute_script returns [22:09:35]free content buf [22:09:35]Sock 9.Close socket [22:09:35]Sock 9.Thread stoped [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [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: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: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:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [22:15:50]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: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:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:07]accept exits with 7 [22:17:07]New connection [22:17:07]New thread 3066879332 created [22:17:07]Thread 3066735972 joined [22:17:07]Waiting for new connection... [22:17:07] Sock 7.Parse request [22:17:07]Sock 7.Check first char [22:17:07]Sock 7.First char is OK [22:17:07]request: POST /json_proto HTTP/1.0 [22:17:07]Method: POST [22:17:07]URL: /json_proto [22:17:07]Method is POST - this is cgi request [22:17:07]url: /json_proto [22:17:07]query_string will be loaded in cgi processing [22:17:07]execute_cgi json_proto POST (null) [22:17:07]execute_cgi path=json_proto method=POST [22:17:07]POST find Content-Length [22:17:07]Host: 172.17.39.67:8080 [22:17:07]Content-Length: 684 [22:17:07]Content-Type: application/json [22:17:07] [22:17:07]POST finish read [22:17:07]Found Content-Length = 684 [22:17:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 12.260, "sum" : 890.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:07]execute_script... [22: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)1319569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 12.260, "sum" : 890.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:07]POST & json_proto [22:17:07]process_json_proto [22:17:07]json parsed OK: [22:17:07]protocol is kg_v1.0 [22:17:07]action value=close_receipt [22:17:07]process_action close_receipt [22:17:07]cmd_close_receipt [22:17:07]MH_GetDate [22:17:07]Write to MH i2c: F0 00 00 12 43 44 [22:17:07]Write i2c OK [22:17:07]MH_I2C_Read... [22:17:07]Read from MH i2c: F0 [22:17:07]MH_I2C_Read... [22:17:07]Read from MH i2c: F0 09 00 [22:17:07]MH_I2C_Read... [22:17:07]Read from MH i2c: F0 09 00 12 43 00 67 4E 94 66 B6 85 93 66 30 [22:17:07]GetLastDocTimeStamp 1720994975 [22:17:07]current date 1720995431 [22:17:07]FM_GetShiftState [22:17:07]SAM_PROTO_GetShiftState [22:17:07]wFMCommunicate request_size=4 [22:17:07]MH_SAM_APDU [22:17:07]CAPDU: 80 13 01 00 [22:17:07]Write to MH i2c: E2 08 00 13 43 80 13 01 00 00 00 00 00 D3 [22:17:07]Write i2c OK [22:17:07]MH_I2C_Read... [22:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:07]Read from MH i2c: E2 [22:17:07]MH_I2C_Read... [22:17:07]Read from MH i2c: E2 0E 00 [22:17:07]MH_I2C_Read... [22:17:07]Read from MH i2c: E2 0E 00 13 43 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 09 [22:17:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:17:07]wFMCommunicate OK [22:17:07]SAM_PROTO_GetShiftState done [22:17:07]FM_GetShiftState done [22:17:07]opened in 1720915483 [22:17:07]opened+sec_in_day 1721001883 [22:17:07]quantity*price = 89007 [22:17:07]sum+1 = 89009 [22:17:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 890.00 Внесено: 890.00 СДАЧА: 0.00 НСП 1% : 7.88 НДС 12% : 94.52 Наличными: 890.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 269 14.07.2024 22:17 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162957 ФПД: 18717580168776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T221711&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162957&fm=18717580168776&tin=02508201610067®Number=0000000000090858&sum=89000 [22:17:09]StoreToDocumentArchive [22:17:09]shift 463 fd 162957 [22:17:09]save to /storage/0463/doc_00162957 [22:17:09]save last doc name /storage/0463/doc_00162957 to /storage/kkm_last_doc_name [22:17:09]save OK [22:17:09]Clear old archive folders... [22:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:17:09]tlvbuf is 0125B6A0 [22:17:09]SAM_PROTO_ClearQueue [22:17:09]wFMCommunicate request_size=4 [22:17:09]MH_SAM_APDU [22:17:09]CAPDU: 80 09 00 00 [22:17:09]Write to MH i2c: E2 08 00 20 43 80 09 00 00 00 00 00 00 D5 [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:09]Read from MH i2c: E2 03 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 20 43 00 90 00 D7 [22:17:09]RAPDU: 90 00 [22:17:09]wFMCommunicate OK [22:17:09]SAM_PROTO_ClearQueue done [22:17:09]KKMCreateOFDPacket [22:17:09]OFDProtocolAddRootSTLVToBuf [22:17:09]FM_MakeSignedData [22:17:09]FM_MakeSignedData [22:17:09]SAM_PROTO_SignData [22:17:09]wFMCommunicate request_size=4 [22:17:09]MH_SAM_APDU [22:17:09]CAPDU: 80 0D 01 02 [22:17:09]Write to MH i2c: E2 08 00 21 43 80 0D 01 02 00 00 00 00 DD [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 21 43 00 90 00 D8 [22:17:09]RAPDU: 90 00 [22:17:09]wFMCommunicate OK [22:17:09]wFMCommunicate request_size=255 [22:17:09]MH_SAM_APDU [22:17:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B0 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 67 4E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7C 02 00 35 04 06 00 [22:17:09]Write to MH i2c: E2 02 01 22 43 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B0 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 67 4E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7C 02 00 35 04 06 00 00 00 92 [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 22 43 00 90 00 D9 [22:17:09]RAPDU: 90 00 [22:17:09]wFMCommunicate OK [22:17:09]wFMCommunicate request_size=11 [22:17:09]MH_SAM_APDU [22:17:09]CAPDU: 80 0D 02 02 06 11 06 06 B7 8E 48 [22:17:09]Write to MH i2c: E2 0E 00 23 43 80 0D 02 02 06 00 11 06 06 B7 8E 48 00 00 96 [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 03 00 23 43 00 90 00 DA [22:17:09]RAPDU: 90 00 [22:17:09]wFMCommunicate OK [22:17:09]wFMCommunicate request_size=4 [22:17:09]MH_SAM_APDU [22:17:09]CAPDU: 80 0D 03 02 [22:17:09]Write to MH i2c: E2 08 00 24 43 80 0D 03 02 00 00 00 00 E2 [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 0B 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 0B 00 24 43 00 1F F2 74 F4 0F 2E 27 C4 90 00 84 [22:17:09]RAPDU: 1F F2 74 F4 0F 2E 27 C4 90 00 [22:17:09]wFMCommunicate OK [22:17:09]SAM_PROTO_SignData done [22:17:09]FM_MakeSignedData done [22:17:09]CreateOFDProtocolMessage [22:17:09]wFMCommunicate request_size=4 [22:17:09]MH_SAM_APDU [22:17:09]CAPDU: 80 11 00 00 [22:17:09]Write to MH i2c: E2 08 00 25 43 80 11 00 00 00 00 00 00 E2 [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:09]Read from MH i2c: E2 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 17 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: E2 17 00 25 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 42 [22:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:17:09]wFMCommunicate OK [22:17:09]CreateOFDProtocolMessage done [22:17:09]OFDSenderStorePacket 162957 [22:17:09]StoreOFDPacket docnum=162957 [22:17:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 FE 72 08 01 05 4D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B0 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 67 4E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7C 02 00 35 04 06 00 11 06 06 B7 8E 48 1F F2 74 F4 0F 2E 27 C4 [22:17:09]CheckFolder [22:17:09]dirname=/storage/ofd_packets [22:17:09]CheckFolder done [22:17:09]ProducePacketName [22:17:09]name=ofd_packets/00162957 [22:17:09]NVStorageSaveData ofd_packets/00162957 [22:17:09]File name is /storage/ofd_packets/00162957 [22:17:09]Write 302 bytes [22:17:09]NVStorageSaveData done [22:17:09]OFDSenderStorePacket done [22:17:09]KKMCreateOFDPacket done [22:17:09]NVStorageSaveData kkm_last_timestamp [22:17:09]File name is /storage/kkm_last_timestamp [22:17:09]Write 4 bytes [22:17:09]NVStorageSaveData done [22:17:09]ExternCall_PrintAddStr [22:17:09]wPrintStart [22:17:09]Write to MH i2c: 01 00 00 26 43 69 [22:17:09]Write i2c OK [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: 01 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: 01 07 00 [22:17:09]MH_I2C_Read... [22:17:09]Read from MH i2c: 01 07 00 26 43 00 00 00 00 00 FF 0F 7E [22:17:09]RasterBufferAndPrint [22:17:09]line Счет N : (1)1319569 [22:17:09]line ИНН: 02508201610067 [22:17:09]line Контрольно-Кассовый Чек [22:17:09]line ПРОДАЖА [22:17:09]line ТРК (МРК, ГНК) : 21 [22:17:09]line Товар: 2710194210 [22:17:09]line ДТ(л)-К-5 [22:17:09]line 12.260 * 72.60 [22:17:09]line = 890.08 [22:17:09]line НДС 12% НСП 1% [22:17:09]line > о реализуемом товаре [22:17:09]line ОКРУГЛЕНИЕ: -0.08 [22:17:09]line ИТОГО: 890.00 [22:17:09]line Внесено: 890.00 [22:17:09]line СДАЧА: 0.00 [22:17:09]line НСП 1% : 7.88 [22:17:09]line НДС 12% : 94.52 [22:17:09]line Наличными: 890.00 [22:17:09]line Безнал.: 0.00 [22:17:09]line Место: АЗС № 140 "Партнер Нефть" [22:17:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:17:09]line СНО: Общий режим [22:17:09]line Чек 269 14.07.2024 22:17 [22:17:09]line Смена: 463 ФФД: 1.0 [22:17:09]line ЗНМ: 0300000129 [22:17:09]line РНМ: 0000000000090858 [22:17:09]line Версия ККМ: 001 [22:17:09]line ФМ: 0000000000874899 [22:17:09]line ФД: 162957 [22:17:09]line ФПД: 18717580168776 [22:17:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T221711&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162957&fm=18717580168776&tin=02508201610067®Number=0000000000090858&sum=89000 [22:17:09]OFD Sender: Processing packet 162957 [packets to send 106, broken 105] [22:17:09]ProducePacketName [22:17:09]name=ofd_packets/00162957 [22:17:09]OFD Sender: To server: pG, [22:17:09]CommunicateWithHost lk.salyk.kg:30040 [22:17:09]ConnectInit lk.salyk.kg [22:17:09]written 0, free lines is 4095 [22:17:10]Connected sock=10 [22:17:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 FE 72 08 01 05 4D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B0 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 67 4E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7C 02 00 35 04 06 00 11 06 06 B7 8E 48 1F F2 74 F4 0F 2E 27 C4 [22:17:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 15 FD 47 00 8B 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7C 02 00 F4 03 04 00 73 FA 93 66 B6 04 01 00 00 9C 17 A0 97 45 23 27 45 [22:17:10]CommunicateWithHost err = 0 [22:17:10]CheckOFDResponse [22:17:10]1017 (14) - 77093643461234 [22:17:10]1041 (16) - 0000000000874899 [22:17:10]1040 (4) - 162957 [22:17:10]1012 (4) - 14.07.2024 16:18 [22:17:10]1206 (1) - 0 [22:17:10]OFD Sender: Remove packet 162957 [22:17:10]ProducePacketName [22:17:10]name=ofd_packets/00162957 [22:17:10]NVStorageDeleteData [22:17:10]Write to MH i2c: 01 00 00 51 43 94 [22:17:10]Write i2c OK [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: 01 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: 01 07 00 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: 01 07 00 51 43 00 00 00 00 00 D3 0C 7A [22:17:10]RasterBufferAndPrint [22:17:10]line [22:17:10]line [22:17:10]line [22:17:10]line [22:17:10]line [22:17:10]written 0, free lines is 3288 [22:17:10]MH_Cut [22:17:10]Write to MH i2c: D1 01 00 58 43 01 6D [22:17:10]Write i2c OK [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: D1 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: D1 01 00 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: D1 01 00 58 43 00 6C [22:17:10]Write to MH i2c: 01 00 00 59 43 9C [22:17:10]Write i2c OK [22:17:10]MH_I2C_Read... [22:17:10]OFD Sender: No OFD packet to send [22:17:11]*** Cut start [22:17:11]*** Purtial cut [22:17:11]*** CUTSNS_PIN = 0 [22:17:11]*** Stage 1: CUTSNS_PIN = 1 [22:17:13]Read from MH i2c: 01 [22:17:13]MH_I2C_Read... [22:17:13]*** Stop cut motor [22:17:13]*** Cut end [22:17:13]Read from MH i2c: 01 07 00 [22:17:13]MH_I2C_Read... [22:17:13]Read from MH i2c: 01 07 00 59 43 00 00 00 00 00 FF 0F B1 [22:17:13]process_action close_receipt done [22:17:13]requested_data is exist [22:17:13]produce_requested_data [22:17:13]requested_item fm.sn is exist - process it [22:17:13]wFMCommunicate request_size=4 [22:17:13]MH_SAM_APDU [22:17:13]CAPDU: 80 11 00 00 [22:17:13]Write to MH i2c: E2 08 00 5A 43 80 11 00 00 00 00 00 00 17 [22:17:13]Write i2c OK [22:17:13]MH_I2C_Read... [22:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:13]Read from MH i2c: E2 [22:17:13]MH_I2C_Read... [22:17:13]Read from MH i2c: E2 17 00 [22:17:13]MH_I2C_Read... [22:17:13]Read from MH i2c: E2 17 00 5A 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 77 [22:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:17:13]wFMCommunicate OK [22:17:13]requested_item fd.num is exist - process it [22:17:13]SAM_PROTO_GetFieldsCounters [22:17:13]wFMCommunicate request_size=4 [22:17:13]MH_SAM_APDU [22:17:13]CAPDU: 80 13 00 00 [22:17:13]Write to MH i2c: E2 08 00 5B 43 80 13 00 00 00 00 00 00 1A [22:17:13]Write i2c OK [22:17:13]MH_I2C_Read... [22:17:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:13]Read from MH i2c: E2 [22:17:13]MH_I2C_Read... [22:17:13]Read from MH i2c: E2 62 00 [22:17:13]MH_I2C_Read... [22:17:13]Read from MH i2c: E2 62 00 5B 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8D 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [22:17:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8D 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:17:13]wFMCommunicate OK [22:17:13]SAM_PROTO_GetFieldsCounters done [22:17:13]requested_item shift.num is exist - process it [22:17:13]requested_item shift.opened is exist - process it [22:17:13]req_shift_opened [22:17:13]FM_GetShiftState [22:17:13]SAM_PROTO_GetShiftState [22:17:13]wFMCommunicate request_size=4 [22:17:13]MH_SAM_APDU [22:17:13]CAPDU: 80 13 01 00 [22:17:13]Write to MH i2c: E2 08 00 5C 43 80 13 01 00 00 00 00 00 1C [22:17:13]Write i2c OK [22:17:13]MH_I2C_Read... [22:17:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:13]Read from MH i2c: E2 [22:17:13]MH_I2C_Read... [22:17:13]Read from MH i2c: E2 0E 00 [22:17:13]MH_I2C_Read... [22:17:13]Read from MH i2c: E2 0E 00 5C 43 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 52 [22:17:13]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:17:13]wFMCommunicate OK [22:17:13]SAM_PROTO_GetShiftState done [22:17:13]FM_GetShiftState done [22:17:13]req_shift_opened done [22:17:13]requested_item shift.open_date is exist - process it [22:17:13]req_shift_open_date [22:17:13]req_shift_open_date done [22:17:13]produce_requested_data done [22:17:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162957,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [22:17:13]process_action_free close_receipt [22:17:13]json_value_free [22:17:13]json_value_free done [22:17:13]process_json_proto returns [22:17:13]Send response to host [22:17:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162957,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [22:17:13]free response buf [22:17:13]execute_script done [22:17:13]execute_script returns [22:17:13]free content buf [22:17:13]Sock 7.Close socket [22:17:13]Sock 7.Thread stoped [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:35]accept exits with 9 [22:19:35]New connection [22:19:35]New thread 3066735972 created [22:19:35]Thread 3066879332 joined [22:19:35]Waiting for new connection... [22:19:35] Sock 9.Parse request [22:19:35]Sock 9.Check first char [22:19:35]Sock 9.First char is OK [22:19:35]request: POST /json_proto HTTP/1.0 [22:19:35]Method: POST [22:19:35]URL: /json_proto [22:19:35]Method is POST - this is cgi request [22:19:35]url: /json_proto [22:19:35]query_string will be loaded in cgi processing [22:19:35]execute_cgi json_proto POST (null) [22:19:35]execute_cgi path=json_proto method=POST [22:19:35]POST find Content-Length [22:19:35]Host: 172.17.39.67:8080 [22:19:35]Content-Length: 810 [22:19:35]Content-Type: application/json [22:19:35] [22:19:35]POST finish read [22:19:35]Found Content-Length = 810 [22:19:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.420, "sum" : 499.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" : 499.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:35]execute_script... [22:19: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)1319571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.420, "sum" : 499.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" : 499.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:35]POST & json_proto [22:19:35]process_json_proto [22:19:35]json parsed OK: [22:19:35]protocol is kg_v1.0 [22:19:35]action value=close_receipt [22:19:35]process_action close_receipt [22:19:35]cmd_close_receipt [22:19:35]MH_GetDate [22:19:35]Write to MH i2c: F0 00 00 5D 43 8F [22:19:35]Write i2c OK [22:19:35]MH_I2C_Read... [22:19:35]Read from MH i2c: F0 [22:19:35]MH_I2C_Read... [22:19:35]Read from MH i2c: F0 09 00 [22:19:35]MH_I2C_Read... [22:19:35]Read from MH i2c: F0 09 00 5D 43 00 FB 4E 94 66 B6 85 93 66 0F [22:19:35]GetLastDocTimeStamp 1720995431 [22:19:35]current date 1720995579 [22:19:35]FM_GetShiftState [22:19:35]SAM_PROTO_GetShiftState [22:19:35]wFMCommunicate request_size=4 [22:19:35]MH_SAM_APDU [22:19:35]CAPDU: 80 13 01 00 [22:19:35]Write to MH i2c: E2 08 00 5E 43 80 13 01 00 00 00 00 00 1E [22:19:35]Write i2c OK [22:19:35]MH_I2C_Read... [22:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:36]Read from MH i2c: E2 [22:19:36]MH_I2C_Read... [22:19:36]Read from MH i2c: E2 0E 00 [22:19:36]MH_I2C_Read... [22:19:36]Read from MH i2c: E2 0E 00 5E 43 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 54 [22:19:36]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:19:36]wFMCommunicate OK [22:19:36]SAM_PROTO_GetShiftState done [22:19:36]FM_GetShiftState done [22:19:36]opened in 1720915483 [22:19:36]opened+sec_in_day 1721001883 [22:19:36]quantity*price = 49936 [22:19:36]sum+1 = 49938 [22:19:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 499.37 НСП 1% : 4.42 НДС 12% : 53.03 Наличными: 0.00 Безнал.: 499.37 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 270 14.07.2024 22:19 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162958 ФПД: 1550871103383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T221939&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162958&fm=1550871103383&tin=02508201610067®Number=0000000000090858&sum=49937 [22:19:37]StoreToDocumentArchive [22:19:37]shift 463 fd 162958 [22:19:37]save to /storage/0463/doc_00162958 [22:19:37]save last doc name /storage/0463/doc_00162958 to /storage/kkm_last_doc_name [22:19:37]save OK [22:19:37]Clear old archive folders... [22:19:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:19:37]tlvbuf is 01249FE0 [22:19:37]SAM_PROTO_ClearQueue [22:19:37]wFMCommunicate request_size=4 [22:19:37]MH_SAM_APDU [22:19:37]CAPDU: 80 09 00 00 [22:19:37]Write to MH i2c: E2 08 00 6B 43 80 09 00 00 00 00 00 00 20 [22:19:37]Write i2c OK [22:19:37]MH_I2C_Read... [22:19:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:37]Read from MH i2c: E2 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: E2 03 00 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: E2 03 00 6B 43 00 90 00 22 [22:19:37]RAPDU: 90 00 [22:19:37]wFMCommunicate OK [22:19:37]SAM_PROTO_ClearQueue done [22:19:37]KKMCreateOFDPacket [22:19:37]OFDProtocolAddRootSTLVToBuf [22:19:37]FM_MakeSignedData [22:19:37]FM_MakeSignedData [22:19:37]SAM_PROTO_SignData [22:19:37]wFMCommunicate request_size=4 [22:19:37]MH_SAM_APDU [22:19:37]CAPDU: 80 0D 01 02 [22:19:37]Write to MH i2c: E2 08 00 6C 43 80 0D 01 02 00 00 00 00 28 [22:19:37]Write i2c OK [22:19:37]MH_I2C_Read... [22:19:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:37]Read from MH i2c: E2 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: E2 03 00 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: E2 03 00 6C 43 00 90 00 23 [22:19:37]RAPDU: 90 00 [22:19:37]wFMCommunicate OK [22:19:37]wFMCommunicate request_size=255 [22:19:37]MH_SAM_APDU [22:19:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 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 B7 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 FB 4E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7C 02 00 35 04 06 00 [22:19:37]Write to MH i2c: E2 02 01 6D 43 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 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 B7 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 FB 4E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7C 02 00 35 04 06 00 00 00 1A [22:19:37]Write i2c OK [22:19:37]MH_I2C_Read... [22:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:37]Read from MH i2c: E2 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: E2 03 00 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: E2 03 00 6D 43 00 90 00 24 [22:19:37]RAPDU: 90 00 [22:19:37]wFMCommunicate OK [22:19:37]wFMCommunicate request_size=11 [22:19:37]MH_SAM_APDU [22:19:37]CAPDU: 80 0D 02 02 06 01 69 17 1F 07 97 [22:19:37]Write to MH i2c: E2 0E 00 6E 43 80 0D 02 02 06 00 01 69 17 1F 07 97 00 00 75 [22:19:37]Write i2c OK [22:19:37]MH_I2C_Read... [22:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:37]Read from MH i2c: E2 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: E2 03 00 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: E2 03 00 6E 43 00 90 00 25 [22:19:37]RAPDU: 90 00 [22:19:37]wFMCommunicate OK [22:19:37]wFMCommunicate request_size=4 [22:19:37]MH_SAM_APDU [22:19:37]CAPDU: 80 0D 03 02 [22:19:37]Write to MH i2c: E2 08 00 6F 43 80 0D 03 02 00 00 00 00 2D [22:19:37]Write i2c OK [22:19:37]MH_I2C_Read... [22:19:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:37]Read from MH i2c: E2 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: E2 0B 00 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: E2 0B 00 6F 43 00 06 56 4E 14 FD C3 67 B5 90 00 C8 [22:19:37]RAPDU: 06 56 4E 14 FD C3 67 B5 90 00 [22:19:37]wFMCommunicate OK [22:19:37]SAM_PROTO_SignData done [22:19:37]FM_MakeSignedData done [22:19:37]CreateOFDProtocolMessage [22:19:37]wFMCommunicate request_size=4 [22:19:37]MH_SAM_APDU [22:19:37]CAPDU: 80 11 00 00 [22:19:37]Write to MH i2c: E2 08 00 70 43 80 11 00 00 00 00 00 00 2D [22:19:37]Write i2c OK [22:19:37]MH_I2C_Read... [22:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:37]Read from MH i2c: E2 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: E2 17 00 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: E2 17 00 70 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8D [22:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:19:37]wFMCommunicate OK [22:19:37]CreateOFDProtocolMessage done [22:19:37]OFDSenderStorePacket 162958 [22:19:37]StoreOFDPacket docnum=162958 [22:19:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CF 61 08 01 18 B6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 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 B7 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 FB 4E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7C 02 00 35 04 06 00 01 69 17 1F 07 97 06 56 4E 14 FD C3 67 B5 [22:19:37]CheckFolder [22:19:37]dirname=/storage/ofd_packets [22:19:37]CheckFolder done [22:19:37]ProducePacketName [22:19:37]name=ofd_packets/00162958 [22:19:37]NVStorageSaveData ofd_packets/00162958 [22:19:37]File name is /storage/ofd_packets/00162958 [22:19:37]Write 302 bytes [22:19:37]NVStorageSaveData done [22:19:37]OFDSenderStorePacket done [22:19:37]KKMCreateOFDPacket done [22:19:37]NVStorageSaveData kkm_last_timestamp [22:19:37]File name is /storage/kkm_last_timestamp [22:19:37]Write 4 bytes [22:19:37]NVStorageSaveData done [22:19:37]ExternCall_PrintAddStr [22:19:37]wPrintStart [22:19:37]Write to MH i2c: 01 00 00 71 43 B4 [22:19:37]Write i2c OK [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: 01 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: 01 07 00 [22:19:37]MH_I2C_Read... [22:19:37]Read from MH i2c: 01 07 00 71 43 00 00 00 00 00 FF 0F C9 [22:19:37]RasterBufferAndPrint [22:19:37]line Счет N : (1)1319571 [22:19:37]line ИНН: 02508201610067 [22:19:37]line Контрольно-Кассовый Чек [22:19:37]line ПРОДАЖА [22:19:37]line ТРК (МРК, ГНК) : 32 [22:19:37]line Товар: 2710124130 [22:19:37]line Super-92-К-5 [22:19:37]line 7.420 * 67.30 [22:19:37]line = 499.37 [22:19:37]line НДС 12% НСП 1% [22:19:37]line > о реализуемом товаре [22:19:37]line ИТОГО: 499.37 [22:19:37]line НСП 1% : 4.42 [22:19:37]line НДС 12% : 53.03 [22:19:37]line Наличными: 0.00 [22:19:37]line Безнал.: 499.37 [22:19:37]line Место: АЗС № 140 "Партнер Нефть" [22:19:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:19:37]line СНО: Общий режим [22:19:37]line Чек 270 14.07.2024 22:19 [22:19:37]line Смена: 463 ФФД: 1.0 [22:19:37]line ЗНМ: 0300000129 [22:19:37]line РНМ: 0000000000090858 [22:19:37]line Версия ККМ: 001 [22:19:37]line Платежная система: Бакай Банк [22:19:37]line ФМ: 0000000000874899 [22:19:37]line ФД: 162958 [22:19:37]line ФПД: 1550871103383 [22:19:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T221939&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162958&fm=1550871103383&tin=02508201610067®Number=0000000000090858&sum=49937 [22:19:38]written 0, free lines is 4095 [22:19:38]OFD Sender: Processing packet 162958 [packets to send 106, broken 105] [22:19:38]ProducePacketName [22:19:38]name=ofd_packets/00162958 [22:19:38]OFD Sender: To server: pG, [22:19:38]CommunicateWithHost lk.salyk.kg:30040 [22:19:38]ConnectInit lk.salyk.kg [22:19:38]Connected sock=10 [22:19:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CF 61 08 01 18 B6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 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 B7 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 FB 4E 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7C 02 00 35 04 06 00 01 69 17 1F 07 97 06 56 4E 14 FD C3 67 B5 [22:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0D E5 47 00 54 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7C 02 00 F4 03 04 00 07 FB 93 66 B6 04 01 00 00 FF B1 B8 54 9F A8 13 DD [22:19:38]CommunicateWithHost err = 0 [22:19:38]CheckOFDResponse [22:19:38]1017 (14) - 77093643461234 [22:19:38]1041 (16) - 0000000000874899 [22:19:38]1040 (4) - 162958 [22:19:38]1012 (4) - 14.07.2024 16:21 [22:19:38]1206 (1) - 0 [22:19:38]OFD Sender: Remove packet 162958 [22:19:38]ProducePacketName [22:19:38]name=ofd_packets/00162958 [22:19:38]NVStorageDeleteData [22:19:38]Write to MH i2c: 01 00 00 9B 43 DE [22:19:38]Write i2c OK [22:19:38]MH_I2C_Read... [22:19:38]Read from MH i2c: 01 [22:19:38]MH_I2C_Read... [22:19:38]Read from MH i2c: 01 07 00 [22:19:38]MH_I2C_Read... [22:19:38]Read from MH i2c: 01 07 00 9B 43 00 00 00 00 00 E6 0C D7 [22:19:38]RasterBufferAndPrint [22:19:38]line [22:19:38]line [22:19:38]line [22:19:38]line [22:19:38]line [22:19:38]written 0, free lines is 3308 [22:19:38]MH_Cut [22:19:38]Write to MH i2c: D1 01 00 A2 43 01 B7 [22:19:38]Write i2c OK [22:19:38]MH_I2C_Read... [22:19:38]Read from MH i2c: D1 [22:19:38]MH_I2C_Read... [22:19:38]Read from MH i2c: D1 01 00 [22:19:38]MH_I2C_Read... [22:19:38]Read from MH i2c: D1 01 00 A2 43 00 B6 [22:19:38]Write to MH i2c: 01 00 00 A3 43 E6 [22:19:38]Write i2c OK [22:19:38]MH_I2C_Read... [22:19:38]OFD Sender: No OFD packet to send [22:19:39]*** Cut start [22:19:39]*** Purtial cut [22:19:39]*** Stage 1: CUTSNS_PIN = 1 [22:19:39]Read from MH i2c: 01 [22:19:39]MH_I2C_Read... [22:19:39]*** Stop cut motor [22:19:39]*** Cut end [22:19:39]Read from MH i2c: 01 07 00 [22:19:39]MH_I2C_Read... [22:19:39]Read from MH i2c: 01 07 00 A3 43 00 00 00 00 00 FF 0F FB [22:19:39]process_action close_receipt done [22:19:39]requested_data is exist [22:19:39]produce_requested_data [22:19:39]requested_item fm.sn is exist - process it [22:19:39]wFMCommunicate request_size=4 [22:19:39]MH_SAM_APDU [22:19:39]CAPDU: 80 11 00 00 [22:19:39]Write to MH i2c: E2 08 00 A4 43 80 11 00 00 00 00 00 00 61 [22:19:39]Write i2c OK [22:19:39]MH_I2C_Read... [22:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:39]Read from MH i2c: E2 [22:19:39]MH_I2C_Read... [22:19:39]Read from MH i2c: E2 17 00 [22:19:39]MH_I2C_Read... [22:19:39]Read from MH i2c: E2 17 00 A4 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C1 [22:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:19:39]wFMCommunicate OK [22:19:39]requested_item fd.num is exist - process it [22:19:39]SAM_PROTO_GetFieldsCounters [22:19:39]wFMCommunicate request_size=4 [22:19:39]MH_SAM_APDU [22:19:39]CAPDU: 80 13 00 00 [22:19:39]Write to MH i2c: E2 08 00 A5 43 80 13 00 00 00 00 00 00 64 [22:19:39]Write i2c OK [22:19:39]MH_I2C_Read... [22:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:39]Read from MH i2c: E2 [22:19:39]MH_I2C_Read... [22:19:39]Read from MH i2c: E2 62 00 [22:19:39]MH_I2C_Read... [22:19:39]Read from MH i2c: E2 62 00 A5 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [22:19:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:19:39]wFMCommunicate OK [22:19:39]SAM_PROTO_GetFieldsCounters done [22:19:39]requested_item shift.num is exist - process it [22:19:39]requested_item shift.opened is exist - process it [22:19:39]req_shift_opened [22:19:39]FM_GetShiftState [22:19:39]SAM_PROTO_GetShiftState [22:19:39]wFMCommunicate request_size=4 [22:19:39]MH_SAM_APDU [22:19:39]CAPDU: 80 13 01 00 [22:19:39]Write to MH i2c: E2 08 00 A6 43 80 13 01 00 00 00 00 00 66 [22:19:39]Write i2c OK [22:19:39]MH_I2C_Read... [22:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:39]Read from MH i2c: E2 [22:19:39]MH_I2C_Read... [22:19:39]Read from MH i2c: E2 0E 00 [22:19:39]MH_I2C_Read... [22:19:39]Read from MH i2c: E2 0E 00 A6 43 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9C [22:19:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:19:39]wFMCommunicate OK [22:19:39]SAM_PROTO_GetShiftState done [22:19:39]FM_GetShiftState done [22:19:39]req_shift_opened done [22:19:39]requested_item shift.open_date is exist - process it [22:19:39]req_shift_open_date [22:19:39]req_shift_open_date done [22:19:39]produce_requested_data done [22:19:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162958,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [22:19:39]process_action_free close_receipt [22:19:39]json_value_free [22:19:39]json_value_free done [22:19:39]process_json_proto returns [22:19:39]Send response to host [22:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162958,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [22:19:39]free response buf [22:19:39]execute_script done [22:19:39]execute_script returns [22:19:39]free content buf [22:19:39]Sock 9.Close socket [22:19:39]Sock 9.Thread stoped [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:56]accept exits with 7 [22:20:56]New connection [22:20:56]New thread 3066879332 created [22:20:56]Thread 3066735972 joined [22:20:56]Waiting for new connection... [22:20:56] Sock 7.Parse request [22:20:56]Sock 7.Check first char [22:20:56]Sock 7.First char is OK [22:20:56]request: POST /json_proto HTTP/1.0 [22:20:56]Method: POST [22:20:56]URL: /json_proto [22:20:56]Method is POST - this is cgi request [22:20:56]url: /json_proto [22:20:56]query_string will be loaded in cgi processing [22:20:56]execute_cgi json_proto POST (null) [22:20:56]execute_cgi path=json_proto method=POST [22:20:56]POST find Content-Length [22:20:56]Host: 172.17.39.67:8080 [22:20:56]Content-Length: 678 [22:20:56]Content-Type: application/json [22:20:56] [22:20:56]POST finish read [22:20:56]Found Content-Length = 678 [22:20:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [22:20:56]execute_script... [22:20: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)1319572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [22:20:56]POST & json_proto [22:20:56]process_json_proto [22:20:56]json parsed OK: [22:20:56]protocol is kg_v1.0 [22:20:56]action value=close_receipt [22:20:56]process_action close_receipt [22:20:56]cmd_close_receipt [22:20:56]MH_GetDate [22:20:56]Write to MH i2c: F0 00 00 A7 43 D9 [22:20:56]Write i2c OK [22:20:56]MH_I2C_Read... [22:20:56]Read from MH i2c: F0 [22:20:56]MH_I2C_Read... [22:20:56]Read from MH i2c: F0 09 00 [22:20:56]MH_I2C_Read... [22:20:56]Read from MH i2c: F0 09 00 A7 43 00 4B 4F 94 66 B6 85 93 66 AA [22:20:56]GetLastDocTimeStamp 1720995579 [22:20:56]current date 1720995659 [22:20:56]FM_GetShiftState [22:20:56]SAM_PROTO_GetShiftState [22:20:56]wFMCommunicate request_size=4 [22:20:56]MH_SAM_APDU [22:20:56]CAPDU: 80 13 01 00 [22:20:56]Write to MH i2c: E2 08 00 A8 43 80 13 01 00 00 00 00 00 68 [22:20:56]Write i2c OK [22:20:56]MH_I2C_Read... [22:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:56]Read from MH i2c: E2 [22:20:56]MH_I2C_Read... [22:20:56]Read from MH i2c: E2 0E 00 [22:20:56]MH_I2C_Read... [22:20:56]Read from MH i2c: E2 0E 00 A8 43 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9E [22:20:56]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:20:56]wFMCommunicate OK [22:20:56]SAM_PROTO_GetShiftState done [22:20:56]FM_GetShiftState done [22:20:56]opened in 1720915483 [22:20:56]opened+sec_in_day 1721001883 [22:20:56]quantity*price = 30033 [22:20:56]sum+1 = 30035 [22:20:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 271 14.07.2024 22:20 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162959 ФПД: 280750487737123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T222059&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162959&fm=280750487737123&tin=02508201610067®Number=0000000000090858&sum=30000 [22:20:57]StoreToDocumentArchive [22:20:57]shift 463 fd 162959 [22:20:57]save to /storage/0463/doc_00162959 [22:20:57]save last doc name /storage/0463/doc_00162959 to /storage/kkm_last_doc_name [22:20:57]save OK [22:20:57]Clear old archive folders... [22:20:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:20:57]tlvbuf is 01356170 [22:20:57]SAM_PROTO_ClearQueue [22:20:57]wFMCommunicate request_size=4 [22:20:57]MH_SAM_APDU [22:20:57]CAPDU: 80 09 00 00 [22:20:57]Write to MH i2c: E2 08 00 B5 43 80 09 00 00 00 00 00 00 6A [22:20:57]Write i2c OK [22:20:57]MH_I2C_Read... [22:20:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:57]Read from MH i2c: E2 [22:20:57]MH_I2C_Read... [22:20:57]Read from MH i2c: E2 03 00 [22:20:57]MH_I2C_Read... [22:20:57]Read from MH i2c: E2 03 00 B5 43 00 90 00 6C [22:20:57]RAPDU: 90 00 [22:20:57]wFMCommunicate OK [22:20:57]SAM_PROTO_ClearQueue done [22:20:57]KKMCreateOFDPacket [22:20:57]OFDProtocolAddRootSTLVToBuf [22:20:57]FM_MakeSignedData [22:20:57]FM_MakeSignedData [22:20:57]SAM_PROTO_SignData [22:20:57]wFMCommunicate request_size=4 [22:20:57]MH_SAM_APDU [22:20:57]CAPDU: 80 0D 01 02 [22:20:57]Write to MH i2c: E2 08 00 B6 43 80 0D 01 02 00 00 00 00 72 [22:20:57]Write i2c OK [22:20:57]MH_I2C_Read... [22:20:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:57]Read from MH i2c: E2 [22:20:57]MH_I2C_Read... [22:20:57]Read from MH i2c: E2 03 00 [22:20:57]MH_I2C_Read... [22:20:57]Read from MH i2c: E2 03 00 B6 43 00 90 00 6D [22:20:57]RAPDU: 90 00 [22:20:57]wFMCommunicate OK [22:20:57]wFMCommunicate request_size=255 [22:20:57]MH_SAM_APDU [22:20: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 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 0F 01 00 00 F4 03 04 00 4B 4F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7C 02 00 35 04 06 00 FF [22:20:57]Write to MH i2c: E2 02 01 B7 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 0F 01 00 00 F4 03 04 00 4B 4F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7C 02 00 35 04 06 00 FF 00 00 6D [22:20:57]Write i2c OK [22:20:57]MH_I2C_Read... [22:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:58]Read from MH i2c: E2 [22:20:58]MH_I2C_Read... [22:20:58]Read from MH i2c: E2 03 00 [22:20:58]MH_I2C_Read... [22:20:58]Read from MH i2c: E2 03 00 B7 43 00 90 00 6E [22:20:58]RAPDU: 90 00 [22:20:58]wFMCommunicate OK [22:20:58]wFMCommunicate request_size=10 [22:20:58]MH_SAM_APDU [22:20:58]CAPDU: 80 0D 02 02 05 57 51 17 93 23 [22:20:58]Write to MH i2c: E2 0D 00 B8 43 80 0D 02 02 05 00 57 51 17 93 23 00 00 F4 [22:20:58]Write i2c OK [22:20:58]MH_I2C_Read... [22:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:58]Read from MH i2c: E2 [22:20:58]MH_I2C_Read... [22:20:58]Read from MH i2c: E2 03 00 [22:20:58]MH_I2C_Read... [22:20:58]Read from MH i2c: E2 03 00 B8 43 00 90 00 6F [22:20:58]RAPDU: 90 00 [22:20:58]wFMCommunicate OK [22:20:58]wFMCommunicate request_size=4 [22:20:58]MH_SAM_APDU [22:20:58]CAPDU: 80 0D 03 02 [22:20:58]Write to MH i2c: E2 08 00 B9 43 80 0D 03 02 00 00 00 00 77 [22:20:58]Write i2c OK [22:20:58]MH_I2C_Read... [22:20:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:58]Read from MH i2c: E2 [22:20:58]MH_I2C_Read... [22:20:58]Read from MH i2c: E2 0B 00 [22:20:58]MH_I2C_Read... [22:20:58]Read from MH i2c: E2 0B 00 B9 43 00 04 C8 5D C4 7F FB 72 8B 90 00 DC [22:20:58]RAPDU: 04 C8 5D C4 7F FB 72 8B 90 00 [22:20:58]wFMCommunicate OK [22:20:58]SAM_PROTO_SignData done [22:20:58]FM_MakeSignedData done [22:20:58]CreateOFDProtocolMessage [22:20:58]wFMCommunicate request_size=4 [22:20:58]MH_SAM_APDU [22:20:58]CAPDU: 80 11 00 00 [22:20:58]Write to MH i2c: E2 08 00 BA 43 80 11 00 00 00 00 00 00 77 [22:20:58]Write i2c OK [22:20:58]MH_I2C_Read... [22:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:58]Read from MH i2c: E2 [22:20:58]MH_I2C_Read... [22:20:58]Read from MH i2c: E2 17 00 [22:20:58]MH_I2C_Read... [22:20:58]Read from MH i2c: E2 17 00 BA 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D7 [22:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:20:58]wFMCommunicate OK [22:20:58]CreateOFDProtocolMessage done [22:20:58]OFDSenderStorePacket 162959 [22:20:58]StoreOFDPacket docnum=162959 [22:20:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8E A3 07 01 77 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 0F 01 00 00 F4 03 04 00 4B 4F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7C 02 00 35 04 06 00 FF 57 51 17 93 23 04 C8 5D C4 7F FB 72 8B [22:20:58]CheckFolder [22:20:58]dirname=/storage/ofd_packets [22:20:58]CheckFolder done [22:20:58]ProducePacketName [22:20:58]name=ofd_packets/00162959 [22:20:58]NVStorageSaveData ofd_packets/00162959 [22:20:58]File name is /storage/ofd_packets/00162959 [22:20:58]Write 301 bytes [22:20:58]NVStorageSaveData done [22:20:58]OFDSenderStorePacket done [22:20:58]KKMCreateOFDPacket done [22:20:58]NVStorageSaveData kkm_last_timestamp [22:20:58]File name is /storage/kkm_last_timestamp [22:20:58]Write 4 bytes [22:20:58]NVStorageSaveData done [22:20:58]ExternCall_PrintAddStr [22:20:58]wPrintStart [22:20:58]Write to MH i2c: 01 00 00 BB 43 FE [22:20:58]Write i2c OK [22:20:58]MH_I2C_Read... [22:20:58]Read from MH i2c: 01 [22:20:58]MH_I2C_Read... [22:20:58]Read from MH i2c: 01 07 00 [22:20:58]MH_I2C_Read... [22:20:58]Read from MH i2c: 01 07 00 BB 43 00 00 00 00 00 FF 0F 13 [22:20:58]RasterBufferAndPrint [22:20:58]line Счет N : (1)1319572 [22:20:58]line ИНН: 02508201610067 [22:20:58]line Контрольно-Кассовый Чек [22:20:58]line ПРОДАЖА [22:20:58]line ТРК (МРК, ГНК) : 43 [22:20:58]line Товар: 2710124130 [22:20:58]line Аи-92-К-5 [22:20:58]line 4.530 * 66.30 [22:20:58]line = 300.34 [22:20:58]line НДС 12% НСП 1% [22:20:58]line > о реализуемом товаре [22:20:58]line ОКРУГЛЕНИЕ: -0.34 [22:20:58]line ИТОГО: 300.00 [22:20:58]line Внесено: 300.00 [22:20:58]line СДАЧА: 0.00 [22:20:58]line НСП 1% : 2.66 [22:20:58]line НДС 12% : 31.89 [22:20:58]line Наличными: 300.00 [22:20:58]line Безнал.: 0.00 [22:20:58]line Место: АЗС № 140 "Партнер Нефть" [22:20:58]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:20:58]line СНО: Общий режим [22:20:58]line Чек 271 14.07.2024 22:20 [22:20:58]line Смена: 463 ФФД: 1.0 [22:20:58]line ЗНМ: 0300000129 [22:20:58]line РНМ: 0000000000090858 [22:20:58]line Версия ККМ: 001 [22:20:58]line ФМ: 0000000000874899 [22:20:58]line ФД: 162959 [22:20:58]line ФПД: 280750487737123 [22:20:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T222059&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162959&fm=280750487737123&tin=02508201610067®Number=0000000000090858&sum=30000 [22:20:58]OFD Sender: Processing packet 162959 [packets to send 106, broken 105] [22:20:58]ProducePacketName [22:20:58]name=ofd_packets/00162959 [22:20:58]OFD Sender: To server: pG, [22:20:58]CommunicateWithHost lk.salyk.kg:30040 [22:20:58]ConnectInit lk.salyk.kg [22:20:58]written 0, free lines is 4095 [22:20:58]Connected sock=10 [22:20:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8E A3 07 01 77 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 0F 01 00 00 F4 03 04 00 4B 4F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7C 02 00 35 04 06 00 FF 57 51 17 93 23 04 C8 5D C4 7F FB 72 8B [22:20:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 27 C9 47 00 31 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7C 02 00 F4 03 04 00 58 FB 93 66 B6 04 01 00 00 13 36 E8 D5 0D F2 23 DC [22:20:58]CommunicateWithHost err = 0 [22:20:58]CheckOFDResponse [22:20:58]1017 (14) - 77093643461234 [22:20:58]1041 (16) - 0000000000874899 [22:20:58]1040 (4) - 162959 [22:20:58]1012 (4) - 14.07.2024 16:22 [22:20:58]1206 (1) - 0 [22:20:58]OFD Sender: Remove packet 162959 [22:20:58]ProducePacketName [22:20:58]name=ofd_packets/00162959 [22:20:58]NVStorageDeleteData [22:20:59]Write to MH i2c: 01 00 00 E6 43 29 [22:20:59]Write i2c OK [22:20:59]MH_I2C_Read... [22:20:59]Read from MH i2c: 01 [22:20:59]MH_I2C_Read... [22:20:59]Read from MH i2c: 01 07 00 [22:20:59]MH_I2C_Read... [22:20:59]Read from MH i2c: 01 07 00 E6 43 00 00 00 00 00 E4 0C 20 [22:20:59]RasterBufferAndPrint [22:20:59]line [22:20:59]line [22:20:59]line [22:20:59]line [22:20:59]line [22:20:59]written 0, free lines is 3309 [22:20:59]MH_Cut [22:20:59]Write to MH i2c: D1 01 00 ED 43 01 02 [22:20:59]Write i2c OK [22:20:59]MH_I2C_Read... [22:20:59]Read from MH i2c: D1 [22:20:59]MH_I2C_Read... [22:20:59]Read from MH i2c: D1 01 00 [22:20:59]MH_I2C_Read... [22:20:59]Read from MH i2c: D1 01 00 ED 43 00 01 [22:20:59]Write to MH i2c: 01 00 00 EE 43 31 [22:20:59]Write i2c OK [22:20:59]MH_I2C_Read... [22:20:59]OFD Sender: No OFD packet to send [22:20:59]*** Cut start [22:20:59]*** Purtial cut [22:20:59]*** CUTSNS_PIN = 0 [22:21:00]*** Stage 1: CUTSNS_PIN = 1 [22:21:01]Read from MH i2c: 01 [22:21:01]MH_I2C_Read... [22:21:01]*** Stop cut motor [22:21:01]*** Cut end [22:21:01]Read from MH i2c: 01 07 00 [22:21:01]MH_I2C_Read... [22:21:01]Read from MH i2c: 01 07 00 EE 43 00 00 00 00 00 FF 0F 46 [22:21:01]process_action close_receipt done [22:21:01]requested_data is exist [22:21:01]produce_requested_data [22:21:01]requested_item fm.sn is exist - process it [22:21:01]wFMCommunicate request_size=4 [22:21:01]MH_SAM_APDU [22:21:01]CAPDU: 80 11 00 00 [22:21:01]Write to MH i2c: E2 08 00 EF 43 80 11 00 00 00 00 00 00 AC [22:21:01]Write i2c OK [22:21:01]MH_I2C_Read... [22:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:01]Read from MH i2c: E2 [22:21:01]MH_I2C_Read... [22:21:01]Read from MH i2c: E2 17 00 [22:21:01]MH_I2C_Read... [22:21:01]Read from MH i2c: E2 17 00 EF 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0C [22:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:21:01]wFMCommunicate OK [22:21:01]requested_item fd.num is exist - process it [22:21:01]SAM_PROTO_GetFieldsCounters [22:21:01]wFMCommunicate request_size=4 [22:21:01]MH_SAM_APDU [22:21:01]CAPDU: 80 13 00 00 [22:21:01]Write to MH i2c: E2 08 00 F0 43 80 13 00 00 00 00 00 00 AF [22:21:01]Write i2c OK [22:21:01]MH_I2C_Read... [22:21:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:02]Read from MH i2c: E2 [22:21:02]MH_I2C_Read... [22:21:02]Read from MH i2c: E2 62 00 [22:21:02]MH_I2C_Read... [22:21:02]Read from MH i2c: E2 62 00 F0 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [22:21:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:02]wFMCommunicate OK [22:21:02]SAM_PROTO_GetFieldsCounters done [22:21:02]requested_item shift.num is exist - process it [22:21:02]requested_item shift.opened is exist - process it [22:21:02]req_shift_opened [22:21:02]FM_GetShiftState [22:21:02]SAM_PROTO_GetShiftState [22:21:02]wFMCommunicate request_size=4 [22:21:02]MH_SAM_APDU [22:21:02]CAPDU: 80 13 01 00 [22:21:02]Write to MH i2c: E2 08 00 F1 43 80 13 01 00 00 00 00 00 B1 [22:21:02]Write i2c OK [22:21:02]MH_I2C_Read... [22:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:02]Read from MH i2c: E2 [22:21:02]MH_I2C_Read... [22:21:02]Read from MH i2c: E2 0E 00 [22:21:02]MH_I2C_Read... [22:21:02]Read from MH i2c: E2 0E 00 F1 43 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E7 [22:21:02]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:21:02]wFMCommunicate OK [22:21:02]SAM_PROTO_GetShiftState done [22:21:02]FM_GetShiftState done [22:21:02]req_shift_opened done [22:21:02]requested_item shift.open_date is exist - process it [22:21:02]req_shift_open_date [22:21:02]req_shift_open_date done [22:21:02]produce_requested_data done [22:21:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162959,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [22:21:02]process_action_free close_receipt [22:21:02]json_value_free [22:21:02]json_value_free done [22:21:02]process_json_proto returns [22:21:02]Send response to host [22:21:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162959,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [22:21:02]free response buf [22:21:02]execute_script done [22:21:02]execute_script returns [22:21:02]free content buf [22:21:02]Sock 7.Close socket [22:21:02]Sock 7.Thread stoped [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24: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:51]accept exits with 9 [22:25:51]New connection [22:25:51]New thread 3066735972 created [22:25:51]Thread 3066879332 joined [22:25:51]Waiting for new connection... [22:25:51] Sock 9.Parse request [22:25:51]Sock 9.Check first char [22:25:51]Sock 9.First char is OK [22:25:51]request: POST /json_proto HTTP/1.0 [22:25:51]Method: POST [22:25:51]URL: /json_proto [22:25:51]Method is POST - this is cgi request [22:25:51]url: /json_proto [22:25:51]query_string will be loaded in cgi processing [22:25:51]execute_cgi json_proto POST (null) [22:25:51]execute_cgi path=json_proto method=POST [22:25:51]POST find Content-Length [22:25:51]Host: 172.17.39.67:8080 [22:25:51]Content-Length: 844 [22:25:51]Content-Type: application/json [22:25:51] [22:25:51]POST finish read [22:25:51]Found Content-Length = 844 [22:25:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 53.770, "sum" : 4000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:51]execute_script... [22:25: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)1319573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 53.770, "sum" : 4000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:51]POST & json_proto [22:25:51]process_json_proto [22:25:51]json parsed OK: [22:25:51]protocol is kg_v1.0 [22:25:51]action value=close_receipt [22:25:51]process_action close_receipt [22:25:51]cmd_close_receipt [22:25:51]MH_GetDate [22:25:51]Write to MH i2c: F0 00 00 F2 43 24 [22:25:51]Write i2c OK [22:25:51]MH_I2C_Read... [22:25:51]Read from MH i2c: F0 [22:25:51]MH_I2C_Read... [22:25:51]Read from MH i2c: F0 09 00 [22:25:51]MH_I2C_Read... [22:25:51]Read from MH i2c: F0 09 00 F2 43 00 72 50 94 66 B6 85 93 66 1D [22:25:51]GetLastDocTimeStamp 1720995659 [22:25:51]current date 1720995954 [22:25:51]FM_GetShiftState [22:25:51]SAM_PROTO_GetShiftState [22:25:51]wFMCommunicate request_size=4 [22:25:51]MH_SAM_APDU [22:25:51]CAPDU: 80 13 01 00 [22:25:51]Write to MH i2c: E2 08 00 F3 43 80 13 01 00 00 00 00 00 B3 [22:25:51]Write i2c OK [22:25:51]MH_I2C_Read... [22:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:51]Read from MH i2c: E2 [22:25:51]MH_I2C_Read... [22:25:51]Read from MH i2c: E2 0E 00 [22:25:51]MH_I2C_Read... [22:25:51]Read from MH i2c: E2 0E 00 F3 43 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E9 [22:25:51]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:25:51]wFMCommunicate OK [22:25:51]SAM_PROTO_GetShiftState done [22:25:51]FM_GetShiftState done [22:25:51]opened in 1720915483 [22:25:51]opened+sec_in_day 1721001883 [22:25:51]quantity*price = 400048 [22:25:51]sum+1 = 400050 [22:25:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.49 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.49 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 272 14.07.2024 22:25 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162960 ФПД: 89766165826628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T222554&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162960&fm=89766165826628&tin=02508201610067®Number=0000000000090858&sum=400049 [22:25:52]StoreToDocumentArchive [22:25:52]shift 463 fd 162960 [22:25:52]save to /storage/0463/doc_00162960 [22:25:52]save last doc name /storage/0463/doc_00162960 to /storage/kkm_last_doc_name [22:25:52]save OK [22:25:52]Clear old archive folders... [22:25:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:25:52]tlvbuf is B6F463D0 [22:25:52]SAM_PROTO_ClearQueue [22:25:52]wFMCommunicate request_size=4 [22:25:52]MH_SAM_APDU [22:25:52]CAPDU: 80 09 00 00 [22:25:52]Write to MH i2c: E2 08 00 00 44 80 09 00 00 00 00 00 00 B6 [22:25:52]Write i2c OK [22:25:52]MH_I2C_Read... [22:25:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:52]Read from MH i2c: E2 [22:25:52]MH_I2C_Read... [22:25:52]Read from MH i2c: E2 03 00 [22:25:52]MH_I2C_Read... [22:25:52]Read from MH i2c: E2 03 00 00 44 00 90 00 B8 [22:25:52]RAPDU: 90 00 [22:25:52]wFMCommunicate OK [22:25:52]SAM_PROTO_ClearQueue done [22:25:52]KKMCreateOFDPacket [22:25:52]OFDProtocolAddRootSTLVToBuf [22:25:52]FM_MakeSignedData [22:25:52]FM_MakeSignedData [22:25:52]SAM_PROTO_SignData [22:25:52]wFMCommunicate request_size=4 [22:25:52]MH_SAM_APDU [22:25:52]CAPDU: 80 0D 01 02 [22:25:52]Write to MH i2c: E2 08 00 01 44 80 0D 01 02 00 00 00 00 BE [22:25:52]Write i2c OK [22:25:52]MH_I2C_Read... [22:25:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:52]Read from MH i2c: E2 [22:25:52]MH_I2C_Read... [22:25:52]Read from MH i2c: E2 03 00 [22:25:52]MH_I2C_Read... [22:25:52]Read from MH i2c: E2 03 00 01 44 00 90 00 B9 [22:25:52]RAPDU: 90 00 [22:25:52]wFMCommunicate OK [22:25:52]wFMCommunicate request_size=255 [22:25:52]MH_SAM_APDU [22:25:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A D2 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B1 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 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 B1 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 72 50 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7C 02 00 35 04 06 00 51 [22:25:52]Write to MH i2c: E2 02 01 02 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A D2 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B1 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 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 B1 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 72 50 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7C 02 00 35 04 06 00 51 00 00 CF [22:25:52]Write i2c OK [22:25:52]MH_I2C_Read... [22:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:52]Read from MH i2c: E2 [22:25:52]MH_I2C_Read... [22:25:52]Read from MH i2c: E2 03 00 [22:25:52]MH_I2C_Read... [22:25:52]Read from MH i2c: E2 03 00 02 44 00 90 00 BA [22:25:52]RAPDU: 90 00 [22:25:52]wFMCommunicate OK [22:25:52]wFMCommunicate request_size=10 [22:25:52]MH_SAM_APDU [22:25:52]CAPDU: 80 0D 02 02 05 A4 50 6D 4C 44 [22:25:52]Write to MH i2c: E2 0D 00 03 44 80 0D 02 02 05 00 A4 50 6D 4C 44 00 00 BC [22:25:52]Write i2c OK [22:25:52]MH_I2C_Read... [22:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:53]Read from MH i2c: E2 [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: E2 03 00 [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: E2 03 00 03 44 00 90 00 BB [22:25:53]RAPDU: 90 00 [22:25:53]wFMCommunicate OK [22:25:53]wFMCommunicate request_size=4 [22:25:53]MH_SAM_APDU [22:25:53]CAPDU: 80 0D 03 02 [22:25:53]Write to MH i2c: E2 08 00 04 44 80 0D 03 02 00 00 00 00 C3 [22:25:53]Write i2c OK [22:25:53]MH_I2C_Read... [22:25:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:53]Read from MH i2c: E2 [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: E2 0B 00 [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: E2 0B 00 04 44 00 2A FE B5 22 40 B3 DC 38 90 00 CA [22:25:53]RAPDU: 2A FE B5 22 40 B3 DC 38 90 00 [22:25:53]wFMCommunicate OK [22:25:53]SAM_PROTO_SignData done [22:25:53]FM_MakeSignedData done [22:25:53]CreateOFDProtocolMessage [22:25:53]wFMCommunicate request_size=4 [22:25:53]MH_SAM_APDU [22:25:53]CAPDU: 80 11 00 00 [22:25:53]Write to MH i2c: E2 08 00 05 44 80 11 00 00 00 00 00 00 C3 [22:25:53]Write i2c OK [22:25:53]MH_I2C_Read... [22:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:53]Read from MH i2c: E2 [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: E2 17 00 [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: E2 17 00 05 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 23 [22:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:25:53]wFMCommunicate OK [22:25:53]CreateOFDProtocolMessage done [22:25:53]OFDSenderStorePacket 162960 [22:25:53]StoreOFDPacket docnum=162960 [22:25:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E7 F5 07 01 25 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A D2 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B1 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 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 B1 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 72 50 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7C 02 00 35 04 06 00 51 A4 50 6D 4C 44 2A FE B5 22 40 B3 DC 38 [22:25:53]CheckFolder [22:25:53]dirname=/storage/ofd_packets [22:25:53]CheckFolder done [22:25:53]ProducePacketName [22:25:53]name=ofd_packets/00162960 [22:25:53]NVStorageSaveData ofd_packets/00162960 [22:25:53]File name is /storage/ofd_packets/00162960 [22:25:53]Write 301 bytes [22:25:53]NVStorageSaveData done [22:25:53]OFDSenderStorePacket done [22:25:53]KKMCreateOFDPacket done [22:25:53]NVStorageSaveData kkm_last_timestamp [22:25:53]File name is /storage/kkm_last_timestamp [22:25:53]Write 4 bytes [22:25:53]NVStorageSaveData done [22:25:53]ExternCall_PrintAddStr [22:25:53]wPrintStart [22:25:53]Write to MH i2c: 01 00 00 06 44 4A [22:25:53]Write i2c OK [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: 01 [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: 01 07 00 [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: 01 07 00 06 44 00 00 00 00 00 FF 0F 5F [22:25:53]RasterBufferAndPrint [22:25:53]line Счет N : (1)1319573 [22:25:53]line ИНН: 02508201610067 [22:25:53]line Контрольно-Кассовый Чек [22:25:53]line ПРОДАЖА [22:25:53]line ТРК (МРК, ГНК) : 54 [22:25:53]line Товар: 2710124500 [22:25:53]line Аи-95-К-5 [22:25:53]line 53.770 * 74.40 [22:25:53]line = 4000.49 [22:25:53]line НДС 12% НСП 1% [22:25:53]line > о реализуемом товаре [22:25:53]line ИТОГО: 4000.49 [22:25:53]line НСП 1% : 35.40 [22:25:53]line НДС 12% : 424.83 [22:25:53]line Наличными: 0.00 [22:25:53]line Безнал.: 4000.49 [22:25:53]line Место: АЗС № 140 "Партнер Нефть" [22:25:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:25:53]line СНО: Общий режим [22:25:53]line Чек 272 14.07.2024 22:25 [22:25:53]line Смена: 463 ФФД: 1.0 [22:25:53]line ЗНМ: 0300000129 [22:25:53]line РНМ: 0000000000090858 [22:25:53]line Версия ККМ: 001 [22:25:53]line Платежная система: АКБ Кыргызстан [22:25:53]line ФМ: 0000000000874899 [22:25:53]line ФД: 162960 [22:25:53]line ФПД: 89766165826628 [22:25:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T222554&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162960&fm=89766165826628&tin=02508201610067®Number=0000000000090858&sum=400049 [22:25:53]written 0, free lines is 4095 [22:25:53]OFD Sender: Processing packet 162960 [packets to send 106, broken 105] [22:25:53]ProducePacketName [22:25:53]name=ofd_packets/00162960 [22:25:53]OFD Sender: To server: pG, [22:25:53]CommunicateWithHost lk.salyk.kg:30040 [22:25:53]ConnectInit lk.salyk.kg [22:25:53]Connected sock=10 [22:25:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E7 F5 07 01 25 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A D2 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B1 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 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 B1 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 72 50 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7C 02 00 35 04 06 00 51 A4 50 6D 4C 44 2A FE B5 22 40 B3 DC 38 [22:25:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8A AB 47 00 59 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7C 02 00 F4 03 04 00 7F FC 93 66 B6 04 01 00 00 6F 42 3A 59 52 A2 1C 46 [22:25:53]CommunicateWithHost err = 0 [22:25:53]CheckOFDResponse [22:25:53]1017 (14) - 77093643461234 [22:25:53]1041 (16) - 0000000000874899 [22:25:53]1040 (4) - 162960 [22:25:53]1012 (4) - 14.07.2024 16:27 [22:25:53]1206 (1) - 0 [22:25:53]OFD Sender: Remove packet 162960 [22:25:53]ProducePacketName [22:25:53]name=ofd_packets/00162960 [22:25:53]NVStorageDeleteData [22:25:53]Write to MH i2c: 01 00 00 30 44 74 [22:25:53]Write i2c OK [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: 01 [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: 01 07 00 [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: 01 07 00 30 44 00 00 00 00 00 0D 0D 95 [22:25:53]RasterBufferAndPrint [22:25:53]line [22:25:53]line [22:25:53]line [22:25:53]line [22:25:53]line [22:25:53]written 0, free lines is 3350 [22:25:53]MH_Cut [22:25:53]Write to MH i2c: D1 01 00 37 44 01 4D [22:25:53]Write i2c OK [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: D1 [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: D1 01 00 [22:25:53]MH_I2C_Read... [22:25:53]Read from MH i2c: D1 01 00 37 44 00 4C [22:25:53]Write to MH i2c: 01 00 00 38 44 7C [22:25:53]Write i2c OK [22:25:53]MH_I2C_Read... [22:25:54]OFD Sender: No OFD packet to send [22:25:54]*** Cut start [22:25:54]*** Purtial cut [22:25:54]*** Stage 1: CUTSNS_PIN = 1 [22:25:54]Read from MH i2c: 01 [22:25:54]MH_I2C_Read... [22:25:54]*** Stop cut motor [22:25:54]*** Cut end [22:25:54]Read from MH i2c: 01 07 00 [22:25:54]MH_I2C_Read... [22:25:54]Read from MH i2c: 01 07 00 38 44 00 00 00 00 00 FF 0F 91 [22:25:54]process_action close_receipt done [22:25:54]requested_data is exist [22:25:54]produce_requested_data [22:25:54]requested_item fm.sn is exist - process it [22:25:54]wFMCommunicate request_size=4 [22:25:54]MH_SAM_APDU [22:25:54]CAPDU: 80 11 00 00 [22:25:54]Write to MH i2c: E2 08 00 39 44 80 11 00 00 00 00 00 00 F7 [22:25:54]Write i2c OK [22:25:54]MH_I2C_Read... [22:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:55]Read from MH i2c: E2 [22:25:55]MH_I2C_Read... [22:25:55]Read from MH i2c: E2 17 00 [22:25:55]MH_I2C_Read... [22:25:55]Read from MH i2c: E2 17 00 39 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 57 [22:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:25:55]wFMCommunicate OK [22:25:55]requested_item fd.num is exist - process it [22:25:55]SAM_PROTO_GetFieldsCounters [22:25:55]wFMCommunicate request_size=4 [22:25:55]MH_SAM_APDU [22:25:55]CAPDU: 80 13 00 00 [22:25:55]Write to MH i2c: E2 08 00 3A 44 80 13 00 00 00 00 00 00 FA [22:25:55]Write i2c OK [22:25:55]MH_I2C_Read... [22:25:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:55]Read from MH i2c: E2 [22:25:55]MH_I2C_Read... [22:25:55]Read from MH i2c: E2 62 00 [22:25:55]MH_I2C_Read... [22:25:55]Read from MH i2c: E2 62 00 3A 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 90 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [22:25:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 90 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:55]wFMCommunicate OK [22:25:55]SAM_PROTO_GetFieldsCounters done [22:25:55]requested_item shift.num is exist - process it [22:25:55]requested_item shift.opened is exist - process it [22:25:55]req_shift_opened [22:25:55]FM_GetShiftState [22:25:55]SAM_PROTO_GetShiftState [22:25:55]wFMCommunicate request_size=4 [22:25:55]MH_SAM_APDU [22:25:55]CAPDU: 80 13 01 00 [22:25:55]Write to MH i2c: E2 08 00 3B 44 80 13 01 00 00 00 00 00 FC [22:25:55]Write i2c OK [22:25:55]MH_I2C_Read... [22:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:55]Read from MH i2c: E2 [22:25:55]MH_I2C_Read... [22:25:55]Read from MH i2c: E2 0E 00 [22:25:55]MH_I2C_Read... [22:25:55]Read from MH i2c: E2 0E 00 3B 44 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 32 [22:25:55]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:25:55]wFMCommunicate OK [22:25:55]SAM_PROTO_GetShiftState done [22:25:55]FM_GetShiftState done [22:25:55]req_shift_opened done [22:25:55]requested_item shift.open_date is exist - process it [22:25:55]req_shift_open_date [22:25:55]req_shift_open_date done [22:25:55]produce_requested_data done [22:25:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162960,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [22:25:55]process_action_free close_receipt [22:25:55]json_value_free [22:25:55]json_value_free done [22:25:55]process_json_proto returns [22:25:55]Send response to host [22:25:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162960,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [22:25:55]free response buf [22:25:55]execute_script done [22:25:55]execute_script returns [22:25:55]free content buf [22:25:55]Sock 9.Close socket [22:25:55]Sock 9.Thread stoped [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:27]accept exits with 7 [22:27:27]New connection [22:27:27]New thread 3066879332 created [22:27:27]Thread 3066735972 joined [22:27:27]Waiting for new connection... [22:27:27] Sock 7.Parse request [22:27:27]Sock 7.Check first char [22:27:27]Sock 7.First char is OK [22:27:27]request: POST /json_proto HTTP/1.0 [22:27:27]Method: POST [22:27:27]URL: /json_proto [22:27:27]Method is POST - this is cgi request [22:27:27]url: /json_proto [22:27:27]query_string will be loaded in cgi processing [22:27:27]execute_cgi json_proto POST (null) [22:27:27]execute_cgi path=json_proto method=POST [22:27:27]POST find Content-Length [22:27:27]Host: 172.17.39.67:8080 [22:27:27]Content-Length: 683 [22:27:27]Content-Type: application/json [22:27:27] [22:27:27]POST finish read [22:27:27]Found Content-Length = 683 [22:27:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 34.950, "sum" : 2600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:27]execute_script... [22:27: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)1319574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 34.950, "sum" : 2600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:27]POST & json_proto [22:27:27]process_json_proto [22:27:27]json parsed OK: [22:27:27]protocol is kg_v1.0 [22:27:27]action value=close_receipt [22:27:27]process_action close_receipt [22:27:27]cmd_close_receipt [22:27:27]MH_GetDate [22:27:27]Write to MH i2c: F0 00 00 3C 44 6F [22:27:27]Write i2c OK [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: F0 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: F0 09 00 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: F0 09 00 3C 44 00 D2 50 94 66 B6 85 93 66 C8 [22:27:27]GetLastDocTimeStamp 1720995954 [22:27:27]current date 1720996050 [22:27:27]FM_GetShiftState [22:27:27]SAM_PROTO_GetShiftState [22:27:27]wFMCommunicate request_size=4 [22:27:27]MH_SAM_APDU [22:27:27]CAPDU: 80 13 01 00 [22:27:27]Write to MH i2c: E2 08 00 3D 44 80 13 01 00 00 00 00 00 FE [22:27:27]Write i2c OK [22:27:27]MH_I2C_Read... [22:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:27]Read from MH i2c: E2 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 0E 00 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 0E 00 3D 44 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 34 [22:27:27]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:27:27]wFMCommunicate OK [22:27:27]SAM_PROTO_GetShiftState done [22:27:27]FM_GetShiftState done [22:27:27]opened in 1720915483 [22:27:27]opened+sec_in_day 1721001883 [22:27:27]quantity*price = 260028 [22:27:27]sum+1 = 260029 [22:27:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 2600.00 Внесено: 5000.00 СДАЧА: 2400.00 НСП 1% : 23.01 НДС 12% : 276.14 Наличными: 2600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 273 14.07.2024 22:27 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162961 ФПД: 76668104276988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T222730&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162961&fm=76668104276988&tin=02508201610067®Number=0000000000090858&sum=260000 [22:27:28]StoreToDocumentArchive [22:27:28]shift 463 fd 162961 [22:27:28]save to /storage/0463/doc_00162961 [22:27:28]save last doc name /storage/0463/doc_00162961 to /storage/kkm_last_doc_name [22:27:28]save OK [22:27:28]Clear old archive folders... [22:27:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:28]tlvbuf is 0125BEA0 [22:27:28]SAM_PROTO_ClearQueue [22:27:28]wFMCommunicate request_size=4 [22:27:28]MH_SAM_APDU [22:27:28]CAPDU: 80 09 00 00 [22:27:28]Write to MH i2c: E2 08 00 4A 44 80 09 00 00 00 00 00 00 00 [22:27:28]Write i2c OK [22:27:28]MH_I2C_Read... [22:27:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:28]Read from MH i2c: E2 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 03 00 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 03 00 4A 44 00 90 00 02 [22:27:28]RAPDU: 90 00 [22:27:28]wFMCommunicate OK [22:27:28]SAM_PROTO_ClearQueue done [22:27:28]KKMCreateOFDPacket [22:27:28]OFDProtocolAddRootSTLVToBuf [22:27:28]FM_MakeSignedData [22:27:28]FM_MakeSignedData [22:27:28]SAM_PROTO_SignData [22:27:28]wFMCommunicate request_size=4 [22:27:28]MH_SAM_APDU [22:27:28]CAPDU: 80 0D 01 02 [22:27:28]Write to MH i2c: E2 08 00 4B 44 80 0D 01 02 00 00 00 00 08 [22:27:28]Write i2c OK [22:27:28]MH_I2C_Read... [22:27:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:28]Read from MH i2c: E2 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 03 00 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 03 00 4B 44 00 90 00 03 [22:27:28]RAPDU: 90 00 [22:27:28]wFMCommunicate OK [22:27:28]wFMCommunicate request_size=255 [22:27:28]MH_SAM_APDU [22:27: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 86 88 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 BC F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D2 50 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7C 02 00 35 04 06 00 45 [22:27:28]Write to MH i2c: E2 02 01 4C 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 88 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 BC F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D2 50 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7C 02 00 35 04 06 00 45 00 00 ED [22:27:28]Write i2c OK [22:27:28]MH_I2C_Read... [22:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:28]Read from MH i2c: E2 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 03 00 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 03 00 4C 44 00 90 00 04 [22:27:28]RAPDU: 90 00 [22:27:28]wFMCommunicate OK [22:27:28]wFMCommunicate request_size=10 [22:27:28]MH_SAM_APDU [22:27:28]CAPDU: 80 0D 02 02 05 BA AF 1E FB FC [22:27:28]Write to MH i2c: E2 0D 00 4D 44 80 0D 02 02 05 00 BA AF 1E FB FC 00 00 93 [22:27:28]Write i2c OK [22:27:28]MH_I2C_Read... [22:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:28]Read from MH i2c: E2 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 03 00 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 03 00 4D 44 00 90 00 05 [22:27:28]RAPDU: 90 00 [22:27:28]wFMCommunicate OK [22:27:28]wFMCommunicate request_size=4 [22:27:28]MH_SAM_APDU [22:27:28]CAPDU: 80 0D 03 02 [22:27:28]Write to MH i2c: E2 08 00 4E 44 80 0D 03 02 00 00 00 00 0D [22:27:28]Write i2c OK [22:27:28]MH_I2C_Read... [22:27:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:28]Read from MH i2c: E2 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 0B 00 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 0B 00 4E 44 00 25 E9 95 B3 EA 16 6B 50 90 00 1F [22:27:28]RAPDU: 25 E9 95 B3 EA 16 6B 50 90 00 [22:27:28]wFMCommunicate OK [22:27:28]SAM_PROTO_SignData done [22:27:28]FM_MakeSignedData done [22:27:28]CreateOFDProtocolMessage [22:27:28]wFMCommunicate request_size=4 [22:27:28]MH_SAM_APDU [22:27:28]CAPDU: 80 11 00 00 [22:27:28]Write to MH i2c: E2 08 00 4F 44 80 11 00 00 00 00 00 00 0D [22:27:28]Write i2c OK [22:27:28]MH_I2C_Read... [22:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:28]Read from MH i2c: E2 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 17 00 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 17 00 4F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6D [22:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:27:28]wFMCommunicate OK [22:27:28]CreateOFDProtocolMessage done [22:27:28]OFDSenderStorePacket 162961 [22:27:28]StoreOFDPacket docnum=162961 [22:27:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8D 35 07 01 B8 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 88 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 BC F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D2 50 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7C 02 00 35 04 06 00 45 BA AF 1E FB FC 25 E9 95 B3 EA 16 6B 50 [22:27:28]CheckFolder [22:27:28]dirname=/storage/ofd_packets [22:27:28]CheckFolder done [22:27:28]ProducePacketName [22:27:28]name=ofd_packets/00162961 [22:27:28]NVStorageSaveData ofd_packets/00162961 [22:27:28]File name is /storage/ofd_packets/00162961 [22:27:28]Write 301 bytes [22:27:28]NVStorageSaveData done [22:27:28]OFDSenderStorePacket done [22:27:28]KKMCreateOFDPacket done [22:27:28]NVStorageSaveData kkm_last_timestamp [22:27:28]File name is /storage/kkm_last_timestamp [22:27:28]Write 4 bytes [22:27:28]NVStorageSaveData done [22:27:28]ExternCall_PrintAddStr [22:27:28]wPrintStart [22:27:28]Write to MH i2c: 01 00 00 50 44 94 [22:27:28]Write i2c OK [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: 01 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: 01 07 00 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: 01 07 00 50 44 00 00 00 00 00 FF 0F A9 [22:27:28]RasterBufferAndPrint [22:27:28]line Счет N : (1)1319574 [22:27:28]line ИНН: 02508201610067 [22:27:28]line Контрольно-Кассовый Чек [22:27:28]line ПРОДАЖА [22:27:28]line ТРК (МРК, ГНК) : 34 [22:27:28]line Товар: 2710124500 [22:27:28]line Аи-95-К-5 [22:27:28]line 34.950 * 74.40 [22:27:28]line = 2600.28 [22:27:28]line НДС 12% НСП 1% [22:27:28]line > о реализуемом товаре [22:27:28]line ОКРУГЛЕНИЕ: -0.28 [22:27:28]line ИТОГО: 2600.00 [22:27:28]line Внесено: 5000.00 [22:27:28]line СДАЧА: 2400.00 [22:27:28]line НСП 1% : 23.01 [22:27:28]line НДС 12% : 276.14 [22:27:28]line Наличными: 2600.00 [22:27:28]line Безнал.: 0.00 [22:27:28]line Место: АЗС № 140 "Партнер Нефть" [22:27:28]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:27:28]line СНО: Общий режим [22:27:28]line Чек 273 14.07.2024 22:27 [22:27:28]line Смена: 463 ФФД: 1.0 [22:27:28]line ЗНМ: 0300000129 [22:27:28]line РНМ: 0000000000090858 [22:27:28]line Версия ККМ: 001 [22:27:28]line ФМ: 0000000000874899 [22:27:28]line ФД: 162961 [22:27:28]line ФПД: 76668104276988 [22:27:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T222730&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162961&fm=76668104276988&tin=02508201610067®Number=0000000000090858&sum=260000 [22:27:29]OFD Sender: Processing packet 162961 [packets to send 106, broken 105] [22:27:29]ProducePacketName [22:27:29]name=ofd_packets/00162961 [22:27:29]OFD Sender: To server: pG, [22:27:29]CommunicateWithHost lk.salyk.kg:30040 [22:27:29]ConnectInit lk.salyk.kg [22:27:29]written 0, free lines is 4095 [22:27:29]Connected sock=10 [22:27:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8D 35 07 01 B8 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 88 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 BC F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D2 50 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7C 02 00 35 04 06 00 45 BA AF 1E FB FC 25 E9 95 B3 EA 16 6B 50 [22:27:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B2 41 47 00 77 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7C 02 00 F4 03 04 00 DE FC 93 66 B6 04 01 00 00 10 B9 22 EC 7C 99 C4 6E [22:27:29]CommunicateWithHost err = 0 [22:27:29]CheckOFDResponse [22:27:29]1017 (14) - 77093643461234 [22:27:29]1041 (16) - 0000000000874899 [22:27:29]1040 (4) - 162961 [22:27:29]1012 (4) - 14.07.2024 16:29 [22:27:29]1206 (1) - 0 [22:27:29]OFD Sender: Remove packet 162961 [22:27:29]ProducePacketName [22:27:29]name=ofd_packets/00162961 [22:27:29]NVStorageDeleteData [22:27:29]Write to MH i2c: 01 00 00 7B 44 BF [22:27:29]Write i2c OK [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: 01 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: 01 07 00 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: 01 07 00 7B 44 00 00 00 00 00 E0 0C B2 [22:27:29]RasterBufferAndPrint [22:27:29]line [22:27:29]line [22:27:29]line [22:27:29]line [22:27:29]line [22:27:29]written 0, free lines is 3304 [22:27:29]MH_Cut [22:27:29]Write to MH i2c: D1 01 00 82 44 01 98 [22:27:29]Write i2c OK [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: D1 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: D1 01 00 [22:27:29]MH_I2C_Read... [22:27:29]Read from MH i2c: D1 01 00 82 44 00 97 [22:27:29]Write to MH i2c: 01 00 00 83 44 C7 [22:27:29]Write i2c OK [22:27:29]MH_I2C_Read... [22:27:30]OFD Sender: No OFD packet to send [22:27:30]*** Cut start [22:27:30]*** Purtial cut [22:27:30]*** CUTSNS_PIN = 0 [22:27:30]*** Stage 1: CUTSNS_PIN = 1 [22:27:32]Read from MH i2c: 01 [22:27:32]MH_I2C_Read... [22:27:32]*** Stop cut motor [22:27:32]*** Cut end [22:27:32]Read from MH i2c: 01 07 00 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: 01 07 00 83 44 00 00 00 00 00 FF 0F DC [22:27:32]process_action close_receipt done [22:27:32]requested_data is exist [22:27:32]produce_requested_data [22:27:32]requested_item fm.sn is exist - process it [22:27:32]wFMCommunicate request_size=4 [22:27:32]MH_SAM_APDU [22:27:32]CAPDU: 80 11 00 00 [22:27:32]Write to MH i2c: E2 08 00 84 44 80 11 00 00 00 00 00 00 42 [22:27:32]Write i2c OK [22:27:32]MH_I2C_Read... [22:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:32]Read from MH i2c: E2 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 17 00 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 17 00 84 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A2 [22:27:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:27:32]wFMCommunicate OK [22:27:32]requested_item fd.num is exist - process it [22:27:32]SAM_PROTO_GetFieldsCounters [22:27:32]wFMCommunicate request_size=4 [22:27:32]MH_SAM_APDU [22:27:32]CAPDU: 80 13 00 00 [22:27:32]Write to MH i2c: E2 08 00 85 44 80 13 00 00 00 00 00 00 45 [22:27:32]Write i2c OK [22:27:32]MH_I2C_Read... [22:27:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:32]Read from MH i2c: E2 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 62 00 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 62 00 85 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 91 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [22:27:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 91 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:32]wFMCommunicate OK [22:27:32]SAM_PROTO_GetFieldsCounters done [22:27:32]requested_item shift.num is exist - process it [22:27:32]requested_item shift.opened is exist - process it [22:27:32]req_shift_opened [22:27:32]FM_GetShiftState [22:27:32]SAM_PROTO_GetShiftState [22:27:32]wFMCommunicate request_size=4 [22:27:32]MH_SAM_APDU [22:27:32]CAPDU: 80 13 01 00 [22:27:32]Write to MH i2c: E2 08 00 86 44 80 13 01 00 00 00 00 00 47 [22:27:32]Write i2c OK [22:27:32]MH_I2C_Read... [22:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:32]Read from MH i2c: E2 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 0E 00 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: E2 0E 00 86 44 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7D [22:27:32]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:27:32]wFMCommunicate OK [22:27:32]SAM_PROTO_GetShiftState done [22:27:32]FM_GetShiftState done [22:27:32]req_shift_opened done [22:27:32]requested_item shift.open_date is exist - process it [22:27:32]req_shift_open_date [22:27:32]req_shift_open_date done [22:27:32]produce_requested_data done [22:27:32]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162961,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [22:27:32]process_action_free close_receipt [22:27:32]json_value_free [22:27:32]json_value_free done [22:27:32]process_json_proto returns [22:27:32]Send response to host [22:27:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162961,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [22:27:32]free response buf [22:27:32]execute_script done [22:27:32]execute_script returns [22:27:32]free content buf [22:27:32]Sock 7.Close socket [22:27:32]Sock 7.Thread stoped [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [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: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: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:35:00]accept exits with 9 [22:35:00]New connection [22:35:00]New thread 3066735972 created [22:35:00]Thread 3066879332 joined [22:35:00]Waiting for new connection... [22:35:00] Sock 9.Parse request [22:35:00]Sock 9.Check first char [22:35:00]Sock 9.First char is OK [22:35:00]request: POST /json_proto HTTP/1.0 [22:35:00]Method: POST [22:35:00]URL: /json_proto [22:35:00]Method is POST - this is cgi request [22:35:00]url: /json_proto [22:35:00]query_string will be loaded in cgi processing [22:35:00]execute_cgi json_proto POST (null) [22:35:00]execute_cgi path=json_proto method=POST [22:35:00]POST find Content-Length [22:35:00]Host: 172.17.39.67:8080 [22:35:00]Content-Length: 1203 [22:35:00]Content-Type: application/json [22:35:00] [22:35:00]POST finish read [22:35:00]Found Content-Length = 1203 [22:35:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319575\u000A14.07.2024 22:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092718\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:00]execute_script... [22:35:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)1319575\u000A14.07.2024 22:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092718\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:00]POST & json_proto [22:35:00]process_json_proto [22:35:00]json parsed OK: [22:35:00]protocol is kg_v1.0 [22:35:00]action value=print_text [22:35:00]process_action print_text [22:35:00]cmd_print_text [22:35:00]ExternCall_PrintAddStr [22:35:00]wPrintStart [22:35:00]Write to MH i2c: 01 00 00 87 44 CB [22:35:00]Write i2c OK [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: 01 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: 01 07 00 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: 01 07 00 87 44 00 00 00 00 00 FF 0F E0 [22:35:00]RasterBufferAndPrint [22:35:00]line *****ТОВАРНЫЙ ЧЕК***** [22:35:00]line АЗС 140 [22:35:00]line Партнер нефть [22:35:00]line 02508201610067 [22:35:00]line Кассир : Дуйшенбек у Н. [22:35:00]line Счет N : (1)1319575 [22:35:00]line 14.07.2024 22:32 [22:35:00]line ПРОДАЖА [22:35:00]line ТРК (МРК, ГНК): 11 [22:35:00]line Вид ГСМ : 2710194210 [22:35:00]line ДТ(л)-К-5 [22:35:00]line 20.000 x 72.60 [22:35:00]line ИТОГ: 1452.00 [22:35:00]line Тип оплаты: Талоны: Партнер нефть [22:35:00]line 4092718 [22:35:00]line ______________________ [22:35:00]line (подпись) [22:35:00]written 0, free lines is 4095 [22:35:00]OFD Sender: No OFD packet to send [22:35:00]Write to MH i2c: 01 00 00 9B 44 DF [22:35:00]Write i2c OK [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: 01 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: 01 07 00 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: 01 07 00 9B 44 00 00 00 00 00 12 0E 06 [22:35:00]RasterBufferAndPrint [22:35:00]line [22:35:00]line [22:35:00]line [22:35:00]line [22:35:00]line [22:35:00]written 0, free lines is 3603 [22:35:00]MH_Cut [22:35:00]Write to MH i2c: D1 01 00 A2 44 01 B8 [22:35:00]Write i2c OK [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: D1 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: D1 01 00 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: D1 01 00 A2 44 00 B7 [22:35:00]Write to MH i2c: 01 00 00 A3 44 E7 [22:35:00]Write i2c OK [22:35:00]MH_I2C_Read... [22:35:01]*** Cut start [22:35:01]*** Purtial cut [22:35:01]*** Stage 1: CUTSNS_PIN = 1 [22:35:01]Read from MH i2c: 01 [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: 01 07 00 [22:35:01]MH_I2C_Read... [22:35:01]*** Stop cut motor [22:35:01]*** Cut end [22:35:01]Read from MH i2c: 01 07 00 A3 44 00 00 00 00 00 FF 0F FC [22:35:01]process_action print_text done [22:35:01]requested_data is exist [22:35:01]produce_requested_data [22:35:01]requested_item fm.sn is exist - process it [22:35:01]wFMCommunicate request_size=4 [22:35:01]MH_SAM_APDU [22:35:01]CAPDU: 80 11 00 00 [22:35:01]Write to MH i2c: E2 08 00 A4 44 80 11 00 00 00 00 00 00 62 [22:35:01]Write i2c OK [22:35:01]MH_I2C_Read... [22:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:01]Read from MH i2c: E2 [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: E2 17 00 [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: E2 17 00 A4 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C2 [22:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:35:01]wFMCommunicate OK [22:35:01]requested_item fd.num is exist - process it [22:35:01]SAM_PROTO_GetFieldsCounters [22:35:01]wFMCommunicate request_size=4 [22:35:01]MH_SAM_APDU [22:35:01]CAPDU: 80 13 00 00 [22:35:01]Write to MH i2c: E2 08 00 A5 44 80 13 00 00 00 00 00 00 65 [22:35:01]Write i2c OK [22:35:01]MH_I2C_Read... [22:35:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:01]Read from MH i2c: E2 [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: E2 62 00 [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: E2 62 00 A5 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 91 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [22:35:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 91 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:35:01]wFMCommunicate OK [22:35:01]SAM_PROTO_GetFieldsCounters done [22:35:01]requested_item shift.num is exist - process it [22:35:01]requested_item shift.opened is exist - process it [22:35:01]req_shift_opened [22:35:01]FM_GetShiftState [22:35:01]SAM_PROTO_GetShiftState [22:35:01]wFMCommunicate request_size=4 [22:35:01]MH_SAM_APDU [22:35:01]CAPDU: 80 13 01 00 [22:35:01]Write to MH i2c: E2 08 00 A6 44 80 13 01 00 00 00 00 00 67 [22:35:01]Write i2c OK [22:35:01]MH_I2C_Read... [22:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:01]Read from MH i2c: E2 [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: E2 0E 00 [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: E2 0E 00 A6 44 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9D [22:35:01]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:35:01]wFMCommunicate OK [22:35:01]SAM_PROTO_GetShiftState done [22:35:01]FM_GetShiftState done [22:35:01]req_shift_opened done [22:35:01]requested_item shift.open_date is exist - process it [22:35:01]req_shift_open_date [22:35:01]req_shift_open_date done [22:35:01]produce_requested_data done [22:35:01]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162961,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [22:35:01]process_action_free print_text [22:35:01]json_value_free [22:35:01]json_value_free done [22:35:01]process_json_proto returns [22:35:01]Send response to host [22:35:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162961,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [22:35:01]free response buf [22:35:01]execute_script done [22:35:01]execute_script returns [22:35:01]free content buf [22:35:01]Sock 9.Close socket [22:35:01]Sock 9.Thread stoped [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]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:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]accept exits with 7 [22:36:45]New connection [22:36:45]New thread 3066879332 created [22:36:45]Thread 3066735972 joined [22:36:45]Waiting for new connection... [22:36:45] Sock 7.Parse request [22:36:45]Sock 7.Check first char [22:36:45]Sock 7.First char is OK [22:36:45]request: POST /json_proto HTTP/1.0 [22:36:45]Method: POST [22:36:45]URL: /json_proto [22:36:45]Method is POST - this is cgi request [22:36:45]url: /json_proto [22:36:45]query_string will be loaded in cgi processing [22:36:45]execute_cgi json_proto POST (null) [22:36:45]execute_cgi path=json_proto method=POST [22:36:45]POST find Content-Length [22:36:45]Host: 172.17.39.67:8080 [22:36:45]Content-Length: 678 [22:36:45]Content-Type: application/json [22:36:45] [22:36:45]POST finish read [22:36:45]Found Content-Length = 678 [22:36:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:45]execute_script... [22:36: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)1319577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:45]POST & json_proto [22:36:45]process_json_proto [22:36:45]json parsed OK: [22:36:45]protocol is kg_v1.0 [22:36:45]action value=close_receipt [22:36:45]process_action close_receipt [22:36:45]cmd_close_receipt [22:36:45]MH_GetDate [22:36:45]Write to MH i2c: F0 00 00 A7 44 DA [22:36:45]Write i2c OK [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: F0 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: F0 09 00 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: F0 09 00 A7 44 00 00 53 94 66 B6 85 93 66 64 [22:36:45]GetLastDocTimeStamp 1720996050 [22:36:45]current date 1720996608 [22:36:45]FM_GetShiftState [22:36:45]SAM_PROTO_GetShiftState [22:36:45]wFMCommunicate request_size=4 [22:36:45]MH_SAM_APDU [22:36:45]CAPDU: 80 13 01 00 [22:36:45]Write to MH i2c: E2 08 00 A8 44 80 13 01 00 00 00 00 00 69 [22:36:45]Write i2c OK [22:36:45]MH_I2C_Read... [22:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:45]Read from MH i2c: E2 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: E2 0E 00 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: E2 0E 00 A8 44 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9F [22:36:45]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:36:45]wFMCommunicate OK [22:36:45]SAM_PROTO_GetShiftState done [22:36:45]FM_GetShiftState done [22:36:45]opened in 1720915483 [22:36:45]opened+sec_in_day 1721001883 [22:36:45]quantity*price = 40045 [22:36:45]sum+1 = 40046 [22:36:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 274 14.07.2024 22:36 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162962 ФПД: 202392594394206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T223648&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162962&fm=202392594394206&tin=02508201610067®Number=0000000000090858&sum=40000 [22:36:46]StoreToDocumentArchive [22:36:46]shift 463 fd 162962 [22:36:46]save to /storage/0463/doc_00162962 [22:36:46]save last doc name /storage/0463/doc_00162962 to /storage/kkm_last_doc_name [22:36:46]save OK [22:36:46]Clear old archive folders... [22:36:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:36:46]tlvbuf is 0130C480 [22:36:46]SAM_PROTO_ClearQueue [22:36:46]wFMCommunicate request_size=4 [22:36:46]MH_SAM_APDU [22:36:46]CAPDU: 80 09 00 00 [22:36:46]Write to MH i2c: E2 08 00 B5 44 80 09 00 00 00 00 00 00 6B [22:36:46]Write i2c OK [22:36:46]MH_I2C_Read... [22:36:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:46]Read from MH i2c: E2 [22:36:46]MH_I2C_Read... [22:36:46]Read from MH i2c: E2 03 00 [22:36:46]MH_I2C_Read... [22:36:46]Read from MH i2c: E2 03 00 B5 44 00 90 00 6D [22:36:46]RAPDU: 90 00 [22:36:46]wFMCommunicate OK [22:36:46]SAM_PROTO_ClearQueue done [22:36:46]KKMCreateOFDPacket [22:36:46]OFDProtocolAddRootSTLVToBuf [22:36:46]FM_MakeSignedData [22:36:46]FM_MakeSignedData [22:36:46]SAM_PROTO_SignData [22:36:46]wFMCommunicate request_size=4 [22:36:46]MH_SAM_APDU [22:36:46]CAPDU: 80 0D 01 02 [22:36:46]Write to MH i2c: E2 08 00 B6 44 80 0D 01 02 00 00 00 00 73 [22:36:46]Write i2c OK [22:36:46]MH_I2C_Read... [22:36:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:46]Read from MH i2c: E2 [22:36:46]MH_I2C_Read... [22:36:46]Read from MH i2c: E2 03 00 [22:36:46]MH_I2C_Read... [22:36:46]Read from MH i2c: E2 03 00 B6 44 00 90 00 6E [22:36:46]RAPDU: 90 00 [22:36:46]wFMCommunicate OK [22:36:46]wFMCommunicate request_size=255 [22:36:46]MH_SAM_APDU [22:36: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 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 00 53 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7C 02 00 35 04 06 00 B8 [22:36:46]Write to MH i2c: E2 02 01 B7 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 00 53 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7C 02 00 35 04 06 00 B8 00 00 06 [22:36:46]Write i2c OK [22:36:46]MH_I2C_Read... [22:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:47]Read from MH i2c: E2 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 03 00 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 03 00 B7 44 00 90 00 6F [22:36:47]RAPDU: 90 00 [22:36:47]wFMCommunicate OK [22:36:47]wFMCommunicate request_size=10 [22:36:47]MH_SAM_APDU [22:36:47]CAPDU: 80 0D 02 02 05 13 32 B1 AC 5E [22:36:47]Write to MH i2c: E2 0D 00 B8 44 80 0D 02 02 05 00 13 32 B1 AC 5E 00 00 80 [22:36:47]Write i2c OK [22:36:47]MH_I2C_Read... [22:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:47]Read from MH i2c: E2 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 03 00 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 03 00 B8 44 00 90 00 70 [22:36:47]RAPDU: 90 00 [22:36:47]wFMCommunicate OK [22:36:47]wFMCommunicate request_size=4 [22:36:47]MH_SAM_APDU [22:36:47]CAPDU: 80 0D 03 02 [22:36:47]Write to MH i2c: E2 08 00 B9 44 80 0D 03 02 00 00 00 00 78 [22:36:47]Write i2c OK [22:36:47]MH_I2C_Read... [22:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:47]Read from MH i2c: E2 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 0B 00 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 0B 00 B9 44 00 FC 30 45 36 F1 1D 68 E5 90 00 7B [22:36:47]RAPDU: FC 30 45 36 F1 1D 68 E5 90 00 [22:36:47]wFMCommunicate OK [22:36:47]SAM_PROTO_SignData done [22:36:47]FM_MakeSignedData done [22:36:47]CreateOFDProtocolMessage [22:36:47]wFMCommunicate request_size=4 [22:36:47]MH_SAM_APDU [22:36:47]CAPDU: 80 11 00 00 [22:36:47]Write to MH i2c: E2 08 00 BA 44 80 11 00 00 00 00 00 00 78 [22:36:47]Write i2c OK [22:36:47]MH_I2C_Read... [22:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:47]Read from MH i2c: E2 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 17 00 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: E2 17 00 BA 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D8 [22:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:36:47]wFMCommunicate OK [22:36:47]CreateOFDProtocolMessage done [22:36:47]OFDSenderStorePacket 162962 [22:36:47]StoreOFDPacket docnum=162962 [22:36:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D0 57 07 01 45 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 00 53 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7C 02 00 35 04 06 00 B8 13 32 B1 AC 5E FC 30 45 36 F1 1D 68 E5 [22:36:47]CheckFolder [22:36:47]dirname=/storage/ofd_packets [22:36:47]CheckFolder done [22:36:47]ProducePacketName [22:36:47]name=ofd_packets/00162962 [22:36:47]NVStorageSaveData ofd_packets/00162962 [22:36:47]File name is /storage/ofd_packets/00162962 [22:36:47]Write 301 bytes [22:36:47]NVStorageSaveData done [22:36:47]OFDSenderStorePacket done [22:36:47]KKMCreateOFDPacket done [22:36:47]NVStorageSaveData kkm_last_timestamp [22:36:47]File name is /storage/kkm_last_timestamp [22:36:47]Write 4 bytes [22:36:47]NVStorageSaveData done [22:36:47]ExternCall_PrintAddStr [22:36:47]wPrintStart [22:36:47]Write to MH i2c: 01 00 00 BB 44 FF [22:36:47]Write i2c OK [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: 01 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: 01 07 00 [22:36:47]MH_I2C_Read... [22:36:47]Read from MH i2c: 01 07 00 BB 44 00 00 00 00 00 FF 0F 14 [22:36:47]RasterBufferAndPrint [22:36:47]line Счет N : (1)1319577 [22:36:47]line ИНН: 02508201610067 [22:36:47]line Контрольно-Кассовый Чек [22:36:47]line ПРОДАЖА [22:36:47]line ТРК (МРК, ГНК) : 33 [22:36:47]line Товар: 2710124130 [22:36:47]line Аи-92-К-5 [22:36:47]line 6.040 * 66.30 [22:36:47]line = 400.45 [22:36:47]line НДС 12% НСП 1% [22:36:47]line > о реализуемом товаре [22:36:47]line ОКРУГЛЕНИЕ: -0.45 [22:36:47]line ИТОГО: 400.00 [22:36:47]line Внесено: 400.00 [22:36:47]line СДАЧА: 0.00 [22:36:47]line НСП 1% : 3.54 [22:36:47]line НДС 12% : 42.53 [22:36:47]line Наличными: 400.00 [22:36:47]line Безнал.: 0.00 [22:36:47]line Место: АЗС № 140 "Партнер Нефть" [22:36:47]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:36:47]line СНО: Общий режим [22:36:47]line Чек 274 14.07.2024 22:36 [22:36:47]line Смена: 463 ФФД: 1.0 [22:36:47]line ЗНМ: 0300000129 [22:36:47]line РНМ: 0000000000090858 [22:36:47]line Версия ККМ: 001 [22:36:47]line ФМ: 0000000000874899 [22:36:47]line ФД: 162962 [22:36:47]line ФПД: 202392594394206 [22:36:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T223648&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162962&fm=202392594394206&tin=02508201610067®Number=0000000000090858&sum=40000 [22:36:47]OFD Sender: Processing packet 162962 [packets to send 106, broken 105] [22:36:47]ProducePacketName [22:36:47]name=ofd_packets/00162962 [22:36:47]OFD Sender: To server: pG, [22:36:47]CommunicateWithHost lk.salyk.kg:30040 [22:36:47]ConnectInit lk.salyk.kg [22:36:47]written 0, free lines is 4095 [22:36:47]Connected sock=10 [22:36:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D0 57 07 01 45 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 00 53 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7C 02 00 35 04 06 00 B8 13 32 B1 AC 5E FC 30 45 36 F1 1D 68 E5 [22:36:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 06 42 47 00 58 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7C 02 00 F4 03 04 00 0D FF 93 66 B6 04 01 00 00 17 60 C2 5E 5D 88 7E 0D [22:36:47]CommunicateWithHost err = 0 [22:36:47]CheckOFDResponse [22:36:47]1017 (14) - 77093643461234 [22:36:47]1041 (16) - 0000000000874899 [22:36:47]1040 (4) - 162962 [22:36:47]1012 (4) - 14.07.2024 16:38 [22:36:47]1206 (1) - 0 [22:36:47]OFD Sender: Remove packet 162962 [22:36:47]ProducePacketName [22:36:47]name=ofd_packets/00162962 [22:36:47]NVStorageDeleteData [22:36:48]Write to MH i2c: 01 00 00 E6 44 2A [22:36:48]Write i2c OK [22:36:48]MH_I2C_Read... [22:36:48]Read from MH i2c: 01 [22:36:48]MH_I2C_Read... [22:36:48]Read from MH i2c: 01 07 00 [22:36:48]MH_I2C_Read... [22:36:48]Read from MH i2c: 01 07 00 E6 44 00 00 00 00 00 D4 0C 11 [22:36:48]RasterBufferAndPrint [22:36:48]line [22:36:48]line [22:36:48]line [22:36:48]line [22:36:48]line [22:36:48]written 0, free lines is 3294 [22:36:48]MH_Cut [22:36:48]Write to MH i2c: D1 01 00 ED 44 01 03 [22:36:48]Write i2c OK [22:36:48]MH_I2C_Read... [22:36:48]Read from MH i2c: D1 [22:36:48]MH_I2C_Read... [22:36:48]Read from MH i2c: D1 01 00 [22:36:48]MH_I2C_Read... [22:36:48]Read from MH i2c: D1 01 00 ED 44 00 02 [22:36:48]Write to MH i2c: 01 00 00 EE 44 32 [22:36:48]Write i2c OK [22:36:48]MH_I2C_Read... [22:36:48]OFD Sender: No OFD packet to send [22:36:48]*** Cut start [22:36:48]*** Purtial cut [22:36:48]*** CUTSNS_PIN = 0 [22:36:48]*** Stage 1: CUTSNS_PIN = 1 [22:36:50]Read from MH i2c: 01 [22:36:50]MH_I2C_Read... [22:36:50]*** Stop cut motor [22:36:50]*** Cut end [22:36:50]Read from MH i2c: 01 07 00 [22:36:50]MH_I2C_Read... [22:36:50]Read from MH i2c: 01 07 00 EE 44 00 00 00 00 00 FF 0F 47 [22:36:50]process_action close_receipt done [22:36:50]requested_data is exist [22:36:50]produce_requested_data [22:36:50]requested_item fm.sn is exist - process it [22:36:50]wFMCommunicate request_size=4 [22:36:50]MH_SAM_APDU [22:36:50]CAPDU: 80 11 00 00 [22:36:50]Write to MH i2c: E2 08 00 EF 44 80 11 00 00 00 00 00 00 AD [22:36:50]Write i2c OK [22:36:50]MH_I2C_Read... [22:36:50]Read from MH i2c: E2 [22:36:50]MH_I2C_Read... [22:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:50]Read from MH i2c: E2 17 00 [22:36:50]MH_I2C_Read... [22:36:50]Read from MH i2c: E2 17 00 EF 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0D [22:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:36:50]wFMCommunicate OK [22:36:50]requested_item fd.num is exist - process it [22:36:50]SAM_PROTO_GetFieldsCounters [22:36:50]wFMCommunicate request_size=4 [22:36:50]MH_SAM_APDU [22:36:50]CAPDU: 80 13 00 00 [22:36:50]Write to MH i2c: E2 08 00 F0 44 80 13 00 00 00 00 00 00 B0 [22:36:50]Write i2c OK [22:36:50]MH_I2C_Read... [22:36:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:51]Read from MH i2c: E2 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 62 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 62 00 F0 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 92 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [22:36:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 92 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:51]wFMCommunicate OK [22:36:51]SAM_PROTO_GetFieldsCounters done [22:36:51]requested_item shift.num is exist - process it [22:36:51]requested_item shift.opened is exist - process it [22:36:51]req_shift_opened [22:36:51]FM_GetShiftState [22:36:51]SAM_PROTO_GetShiftState [22:36:51]wFMCommunicate request_size=4 [22:36:51]MH_SAM_APDU [22:36:51]CAPDU: 80 13 01 00 [22:36:51]Write to MH i2c: E2 08 00 F1 44 80 13 01 00 00 00 00 00 B2 [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:51]Read from MH i2c: E2 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 0E 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 0E 00 F1 44 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E8 [22:36:51]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:36:51]wFMCommunicate OK [22:36:51]SAM_PROTO_GetShiftState done [22:36:51]FM_GetShiftState done [22:36:51]req_shift_opened done [22:36:51]requested_item shift.open_date is exist - process it [22:36:51]req_shift_open_date [22:36:51]req_shift_open_date done [22:36:51]produce_requested_data done [22:36:51]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162962,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [22:36:51]process_action_free close_receipt [22:36:51]json_value_free [22:36:51]json_value_free done [22:36:51]process_json_proto returns [22:36:51]Send response to host [22:36:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162962,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [22:36:51]free response buf [22:36:51]execute_script done [22:36:51]execute_script returns [22:36:51]free content buf [22:36:51]Sock 7.Close socket [22:36:51]Sock 7.Thread stoped [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:10]accept exits with 9 [22:37:10]New connection [22:37:10]New thread 3066735972 created [22:37:10]Thread 3066879332 joined [22:37:10]Waiting for new connection... [22:37:10] Sock 9.Parse request [22:37:10]Sock 9.Check first char [22:37:10]Sock 9.First char is OK [22:37:10]request: POST /json_proto HTTP/1.0 [22:37:10]Method: POST [22:37:10]URL: /json_proto [22:37:10]Method is POST - this is cgi request [22:37:10]url: /json_proto [22:37:10]query_string will be loaded in cgi processing [22:37:10]execute_cgi json_proto POST (null) [22:37:10]execute_cgi path=json_proto method=POST [22:37:10]POST find Content-Length [22:37:10]Host: 172.17.39.67:8080 [22:37:10]Content-Length: 678 [22:37:10]Content-Type: application/json [22:37:10] [22:37:10]POST finish read [22:37:10]Found Content-Length = 678 [22:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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" ] } } [22:37:10]execute_script... [22:37:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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" ] } } [22:37:10]POST & json_proto [22:37:10]process_json_proto [22:37:10]json parsed OK: [22:37:10]protocol is kg_v1.0 [22:37:10]action value=close_receipt [22:37:10]process_action close_receipt [22:37:10]cmd_close_receipt [22:37:10]MH_GetDate [22:37:10]Write to MH i2c: F0 00 00 F2 44 25 [22:37:10]Write i2c OK [22:37:10]MH_I2C_Read... [22:37:10]Read from MH i2c: F0 [22:37:10]MH_I2C_Read... [22:37:10]Read from MH i2c: F0 09 00 [22:37:10]MH_I2C_Read... [22:37:10]Read from MH i2c: F0 09 00 F2 44 00 19 53 94 66 B6 85 93 66 C8 [22:37:10]GetLastDocTimeStamp 1720996608 [22:37:10]current date 1720996633 [22:37:10]FM_GetShiftState [22:37:10]SAM_PROTO_GetShiftState [22:37:10]wFMCommunicate request_size=4 [22:37:10]MH_SAM_APDU [22:37:10]CAPDU: 80 13 01 00 [22:37:10]Write to MH i2c: E2 08 00 F3 44 80 13 01 00 00 00 00 00 B4 [22:37:10]Write i2c OK [22:37:10]MH_I2C_Read... [22:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:10]Read from MH i2c: E2 [22:37:10]MH_I2C_Read... [22:37:10]Read from MH i2c: E2 0E 00 [22:37:10]MH_I2C_Read... [22:37:10]Read from MH i2c: E2 0E 00 F3 44 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 EA [22:37:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:37:10]wFMCommunicate OK [22:37:10]SAM_PROTO_GetShiftState done [22:37:10]FM_GetShiftState done [22:37:10]opened in 1720915483 [22:37:10]opened+sec_in_day 1721001883 [22:37:10]quantity*price = 50056 [22:37:10]sum+1 = 50058 [22:37:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 275 14.07.2024 22:37 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162963 ФПД: 270222072268525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T223713&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162963&fm=270222072268525&tin=02508201610067®Number=0000000000090858&sum=50000 [22:37:11]StoreToDocumentArchive [22:37:11]shift 463 fd 162963 [22:37:11]save to /storage/0463/doc_00162963 [22:37:11]save last doc name /storage/0463/doc_00162963 to /storage/kkm_last_doc_name [22:37:11]save OK [22:37:11]Clear old archive folders... [22:37:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:37:11]tlvbuf is 01326B60 [22:37:11]SAM_PROTO_ClearQueue [22:37:11]wFMCommunicate request_size=4 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 09 00 00 [22:37:11]Write to MH i2c: E2 08 00 00 45 80 09 00 00 00 00 00 00 B7 [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 00 45 00 90 00 B9 [22:37:11]RAPDU: 90 00 [22:37:11]wFMCommunicate OK [22:37:11]SAM_PROTO_ClearQueue done [22:37:11]KKMCreateOFDPacket [22:37:11]OFDProtocolAddRootSTLVToBuf [22:37:11]FM_MakeSignedData [22:37:11]FM_MakeSignedData [22:37:11]SAM_PROTO_SignData [22:37:11]wFMCommunicate request_size=4 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 0D 01 02 [22:37:11]Write to MH i2c: E2 08 00 01 45 80 0D 01 02 00 00 00 00 BF [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 01 45 00 90 00 BA [22:37:11]RAPDU: 90 00 [22:37:11]wFMCommunicate OK [22:37:11]wFMCommunicate request_size=255 [22:37:11]MH_SAM_APDU [22:37: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 13 01 00 00 F4 03 04 00 19 53 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 93 7C 02 00 35 04 06 00 F5 [22:37:11]Write to MH i2c: E2 02 01 02 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 13 01 00 00 F4 03 04 00 19 53 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 93 7C 02 00 35 04 06 00 F5 00 00 CB [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 02 45 00 90 00 BB [22:37:11]RAPDU: 90 00 [22:37:11]wFMCommunicate OK [22:37:11]wFMCommunicate request_size=10 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 0D 02 02 05 C3 FA A0 C6 ED [22:37:11]Write to MH i2c: E2 0D 00 03 45 80 0D 02 02 05 00 C3 FA A0 C6 ED 00 00 DC [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 03 00 03 45 00 90 00 BC [22:37:11]RAPDU: 90 00 [22:37:11]wFMCommunicate OK [22:37:11]wFMCommunicate request_size=4 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 0D 03 02 [22:37:11]Write to MH i2c: E2 08 00 04 45 80 0D 03 02 00 00 00 00 C4 [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 0B 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 0B 00 04 45 00 A2 53 88 AF EA 3F BA 8C 90 00 60 [22:37:11]RAPDU: A2 53 88 AF EA 3F BA 8C 90 00 [22:37:11]wFMCommunicate OK [22:37:11]SAM_PROTO_SignData done [22:37:11]FM_MakeSignedData done [22:37:11]CreateOFDProtocolMessage [22:37:11]wFMCommunicate request_size=4 [22:37:11]MH_SAM_APDU [22:37:11]CAPDU: 80 11 00 00 [22:37:11]Write to MH i2c: E2 08 00 05 45 80 11 00 00 00 00 00 00 C4 [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:11]Read from MH i2c: E2 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 17 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: E2 17 00 05 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 24 [22:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:37:11]wFMCommunicate OK [22:37:11]CreateOFDProtocolMessage done [22:37:11]OFDSenderStorePacket 162963 [22:37:11]StoreOFDPacket docnum=162963 [22:37:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E5 CD 07 01 67 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 13 01 00 00 F4 03 04 00 19 53 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 93 7C 02 00 35 04 06 00 F5 C3 FA A0 C6 ED A2 53 88 AF EA 3F BA 8C [22:37:11]CheckFolder [22:37:11]dirname=/storage/ofd_packets [22:37:11]CheckFolder done [22:37:11]ProducePacketName [22:37:11]name=ofd_packets/00162963 [22:37:11]NVStorageSaveData ofd_packets/00162963 [22:37:11]File name is /storage/ofd_packets/00162963 [22:37:11]Write 301 bytes [22:37:11]NVStorageSaveData done [22:37:11]OFDSenderStorePacket done [22:37:11]KKMCreateOFDPacket done [22:37:11]NVStorageSaveData kkm_last_timestamp [22:37:11]File name is /storage/kkm_last_timestamp [22:37:11]Write 4 bytes [22:37:11]NVStorageSaveData done [22:37:11]ExternCall_PrintAddStr [22:37:11]wPrintStart [22:37:11]Write to MH i2c: 01 00 00 06 45 4B [22:37:11]Write i2c OK [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: 01 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: 01 07 00 [22:37:11]MH_I2C_Read... [22:37:11]Read from MH i2c: 01 07 00 06 45 00 00 00 00 00 FF 0F 60 [22:37:11]RasterBufferAndPrint [22:37:11]line Счет N : (1)1319579 [22:37:11]line ИНН: 02508201610067 [22:37:11]line Контрольно-Кассовый Чек [22:37:11]line ПРОДАЖА [22:37:11]line ТРК (МРК, ГНК) : 53 [22:37:11]line Товар: 2710124130 [22:37:11]line Аи-92-К-5 [22:37:11]line 7.550 * 66.30 [22:37:11]line = 500.57 [22:37:11]line НДС 12% НСП 1% [22:37:11]line > о реализуемом товаре [22:37:11]line ОКРУГЛЕНИЕ: -0.57 [22:37:11]line ИТОГО: 500.00 [22:37:11]line Внесено: 500.00 [22:37:11]line СДАЧА: 0.00 [22:37:11]line НСП 1% : 4.43 [22:37:11]line НДС 12% : 53.16 [22:37:11]line Наличными: 500.00 [22:37:11]line Безнал.: 0.00 [22:37:11]line Место: АЗС № 140 "Партнер Нефть" [22:37:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:37:11]line СНО: Общий режим [22:37:11]line Чек 275 14.07.2024 22:37 [22:37:11]line Смена: 463 ФФД: 1.0 [22:37:11]line ЗНМ: 0300000129 [22:37:11]line РНМ: 0000000000090858 [22:37:11]line Версия ККМ: 001 [22:37:11]line ФМ: 0000000000874899 [22:37:11]line ФД: 162963 [22:37:11]line ФПД: 270222072268525 [22:37:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T223713&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162963&fm=270222072268525&tin=02508201610067®Number=0000000000090858&sum=50000 [22:37:12]OFD Sender: Processing packet 162963 [packets to send 106, broken 105] [22:37:12]ProducePacketName [22:37:12]name=ofd_packets/00162963 [22:37:12]OFD Sender: To server: pG, [22:37:12]CommunicateWithHost lk.salyk.kg:30040 [22:37:12]ConnectInit lk.salyk.kg [22:37:12]written 0, free lines is 4095 [22:37:12]Connected sock=10 [22:37:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E5 CD 07 01 67 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 13 01 00 00 F4 03 04 00 19 53 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 93 7C 02 00 35 04 06 00 F5 C3 FA A0 C6 ED A2 53 88 AF EA 3F BA 8C [22:37:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 07 D6 47 00 53 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 93 7C 02 00 F4 03 04 00 25 FF 93 66 B6 04 01 00 00 EF 70 C7 65 5B 78 30 BF [22:37:12]CommunicateWithHost err = 0 [22:37:12]CheckOFDResponse [22:37:12]1017 (14) - 77093643461234 [22:37:12]1041 (16) - 0000000000874899 [22:37:12]1040 (4) - 162963 [22:37:12]1012 (4) - 14.07.2024 16:39 [22:37:12]1206 (1) - 0 [22:37:12]OFD Sender: Remove packet 162963 [22:37:12]ProducePacketName [22:37:12]name=ofd_packets/00162963 [22:37:12]NVStorageDeleteData [22:37:12]Write to MH i2c: 01 00 00 31 45 76 [22:37:12]Write i2c OK [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: 01 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: 01 07 00 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: 01 07 00 31 45 00 00 00 00 00 D4 0C 5D [22:37:12]RasterBufferAndPrint [22:37:12]line [22:37:12]line [22:37:12]line [22:37:12]line [22:37:12]line [22:37:12]written 0, free lines is 3289 [22:37:12]MH_Cut [22:37:12]Write to MH i2c: D1 01 00 38 45 01 4F [22:37:12]Write i2c OK [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: D1 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: D1 01 00 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: D1 01 00 38 45 00 4E [22:37:12]Write to MH i2c: 01 00 00 39 45 7E [22:37:12]Write i2c OK [22:37:12]MH_I2C_Read... [22:37:12]OFD Sender: No OFD packet to send [22:37:13]*** Cut start [22:37:13]*** Purtial cut [22:37:13]*** Stage 1: CUTSNS_PIN = 1 [22:37:13]Read from MH i2c: 01 [22:37:13]MH_I2C_Read... [22:37:13]*** Stop cut motor [22:37:13]*** Cut end [22:37:13]Read from MH i2c: 01 07 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: 01 07 00 39 45 00 00 00 00 00 FF 0F 93 [22:37:13]process_action close_receipt done [22:37:13]requested_data is exist [22:37:13]produce_requested_data [22:37:13]requested_item fm.sn is exist - process it [22:37:13]wFMCommunicate request_size=4 [22:37:13]MH_SAM_APDU [22:37:13]CAPDU: 80 11 00 00 [22:37:13]Write to MH i2c: E2 08 00 3A 45 80 11 00 00 00 00 00 00 F9 [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:13]Read from MH i2c: E2 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 17 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 17 00 3A 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 59 [22:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:37:13]wFMCommunicate OK [22:37:13]requested_item fd.num is exist - process it [22:37:13]SAM_PROTO_GetFieldsCounters [22:37:13]wFMCommunicate request_size=4 [22:37:13]MH_SAM_APDU [22:37:13]CAPDU: 80 13 00 00 [22:37:13]Write to MH i2c: E2 08 00 3B 45 80 13 00 00 00 00 00 00 FC [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:13]Read from MH i2c: E2 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 62 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 62 00 3B 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 93 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 4C [22:37:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 93 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:13]wFMCommunicate OK [22:37:13]SAM_PROTO_GetFieldsCounters done [22:37:13]requested_item shift.num is exist - process it [22:37:13]requested_item shift.opened is exist - process it [22:37:13]req_shift_opened [22:37:13]FM_GetShiftState [22:37:13]SAM_PROTO_GetShiftState [22:37:13]wFMCommunicate request_size=4 [22:37:13]MH_SAM_APDU [22:37:13]CAPDU: 80 13 01 00 [22:37:13]Write to MH i2c: E2 08 00 3C 45 80 13 01 00 00 00 00 00 FE [22:37:13]Write i2c OK [22:37:13]MH_I2C_Read... [22:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:13]Read from MH i2c: E2 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 0E 00 [22:37:13]MH_I2C_Read... [22:37:13]Read from MH i2c: E2 0E 00 3C 45 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 34 [22:37:13]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:37:13]wFMCommunicate OK [22:37:13]SAM_PROTO_GetShiftState done [22:37:13]FM_GetShiftState done [22:37:13]req_shift_opened done [22:37:13]requested_item shift.open_date is exist - process it [22:37:13]req_shift_open_date [22:37:13]req_shift_open_date done [22:37:13]produce_requested_data done [22:37:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162963,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [22:37:13]process_action_free close_receipt [22:37:13]json_value_free [22:37:13]json_value_free done [22:37:13]process_json_proto returns [22:37:13]Send response to host [22:37:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162963,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [22:37:13]free response buf [22:37:13]execute_script done [22:37:13]execute_script returns [22:37:13]free content buf [22:37:13]Sock 9.Close socket [22:37:13]Sock 9.Thread stoped [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:29]accept exits with 7 [22:37:29]New connection [22:37:29]New thread 3066879332 created [22:37:29]Thread 3066735972 joined [22:37:29]Waiting for new connection... [22:37:29] Sock 7.Parse request [22:37:29]Sock 7.Check first char [22:37:29]Sock 7.First char is OK [22:37:29]request: POST /json_proto HTTP/1.0 [22:37:29]Method: POST [22:37:29]URL: /json_proto [22:37:29]Method is POST - this is cgi request [22:37:29]url: /json_proto [22:37:29]query_string will be loaded in cgi processing [22:37:29]execute_cgi json_proto POST (null) [22:37:29]execute_cgi path=json_proto method=POST [22:37:29]POST find Content-Length [22:37:29]Host: 172.17.39.67:8080 [22:37:29]Content-Length: 683 [22:37:29]Content-Type: application/json [22:37:29] [22:37:29]POST finish read [22:37:29]Found Content-Length = 683 [22:37:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 8.410, "sum" : 610.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:29]execute_script... [22:37:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 8.410, "sum" : 610.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:29]POST & json_proto [22:37:29]process_json_proto [22:37:29]json parsed OK: [22:37:29]protocol is kg_v1.0 [22:37:29]action value=close_receipt [22:37:29]process_action close_receipt [22:37:29]cmd_close_receipt [22:37:29]MH_GetDate [22:37:29]Write to MH i2c: F0 00 00 3D 45 71 [22:37:29]Write i2c OK [22:37:29]MH_I2C_Read... [22:37:29]Read from MH i2c: F0 [22:37:29]MH_I2C_Read... [22:37:29]Read from MH i2c: F0 09 00 [22:37:29]MH_I2C_Read... [22:37:29]Read from MH i2c: F0 09 00 3D 45 00 2D 53 94 66 B6 85 93 66 28 [22:37:29]GetLastDocTimeStamp 1720996633 [22:37:29]current date 1720996653 [22:37:29]FM_GetShiftState [22:37:29]SAM_PROTO_GetShiftState [22:37:29]wFMCommunicate request_size=4 [22:37:29]MH_SAM_APDU [22:37:29]CAPDU: 80 13 01 00 [22:37:29]Write to MH i2c: E2 08 00 3E 45 80 13 01 00 00 00 00 00 00 [22:37:29]Write i2c OK [22:37:29]MH_I2C_Read... [22:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:29]Read from MH i2c: E2 [22:37:29]MH_I2C_Read... [22:37:29]Read from MH i2c: E2 0E 00 [22:37:29]MH_I2C_Read... [22:37:29]Read from MH i2c: E2 0E 00 3E 45 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 36 [22:37:29]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:37:29]wFMCommunicate OK [22:37:29]SAM_PROTO_GetShiftState done [22:37:29]FM_GetShiftState done [22:37:29]opened in 1720915483 [22:37:29]opened+sec_in_day 1721001883 [22:37:29]quantity*price = 61056 [22:37:29]sum+1 = 61058 [22:37:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 610.00 Внесено: 610.00 СДАЧА: 0.00 НСП 1% : 5.40 НДС 12% : 64.84 Наличными: 610.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 276 14.07.2024 22:37 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162964 ФПД: 236205918931183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T223733&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162964&fm=236205918931183&tin=02508201610067®Number=0000000000090858&sum=61000 [22:37:30]StoreToDocumentArchive [22:37:30]shift 463 fd 162964 [22:37:30]save to /storage/0463/doc_00162964 [22:37:30]save last doc name /storage/0463/doc_00162964 to /storage/kkm_last_doc_name [22:37:30]save OK [22:37:30]Clear old archive folders... [22:37:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:37:31]tlvbuf is 01316A00 [22:37:31]SAM_PROTO_ClearQueue [22:37:31]wFMCommunicate request_size=4 [22:37:31]MH_SAM_APDU [22:37:31]CAPDU: 80 09 00 00 [22:37:31]Write to MH i2c: E2 08 00 4B 45 80 09 00 00 00 00 00 00 02 [22:37:31]Write i2c OK [22:37:31]MH_I2C_Read... [22:37:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:31]Read from MH i2c: E2 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: E2 03 00 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: E2 03 00 4B 45 00 90 00 04 [22:37:31]RAPDU: 90 00 [22:37:31]wFMCommunicate OK [22:37:31]SAM_PROTO_ClearQueue done [22:37:31]KKMCreateOFDPacket [22:37:31]OFDProtocolAddRootSTLVToBuf [22:37:31]FM_MakeSignedData [22:37:31]FM_MakeSignedData [22:37:31]SAM_PROTO_SignData [22:37:31]wFMCommunicate request_size=4 [22:37:31]MH_SAM_APDU [22:37:31]CAPDU: 80 0D 01 02 [22:37:31]Write to MH i2c: E2 08 00 4C 45 80 0D 01 02 00 00 00 00 0A [22:37:31]Write i2c OK [22:37:31]MH_I2C_Read... [22:37:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:31]Read from MH i2c: E2 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: E2 03 00 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: E2 03 00 4C 45 00 90 00 05 [22:37:31]RAPDU: 90 00 [22:37:31]wFMCommunicate OK [22:37:31]wFMCommunicate request_size=255 [22:37:31]MH_SAM_APDU [22:37:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DA 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 81 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 2D 53 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7C 02 00 35 04 06 00 [22:37:31]Write to MH i2c: E2 02 01 4D 45 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DA 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 81 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 2D 53 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7C 02 00 35 04 06 00 00 00 AA [22:37:31]Write i2c OK [22:37:31]MH_I2C_Read... [22:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:31]Read from MH i2c: E2 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: E2 03 00 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: E2 03 00 4D 45 00 90 00 06 [22:37:31]RAPDU: 90 00 [22:37:31]wFMCommunicate OK [22:37:31]wFMCommunicate request_size=11 [22:37:31]MH_SAM_APDU [22:37:31]CAPDU: 80 0D 02 02 06 D6 D3 F9 E4 48 EF [22:37:31]Write to MH i2c: E2 0E 00 4E 45 80 0D 02 02 06 00 D6 D3 F9 E4 48 EF 00 00 D6 [22:37:31]Write i2c OK [22:37:31]MH_I2C_Read... [22:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:31]Read from MH i2c: E2 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: E2 03 00 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: E2 03 00 4E 45 00 90 00 07 [22:37:31]RAPDU: 90 00 [22:37:31]wFMCommunicate OK [22:37:31]wFMCommunicate request_size=4 [22:37:31]MH_SAM_APDU [22:37:31]CAPDU: 80 0D 03 02 [22:37:31]Write to MH i2c: E2 08 00 4F 45 80 0D 03 02 00 00 00 00 0F [22:37:31]Write i2c OK [22:37:31]MH_I2C_Read... [22:37:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:31]Read from MH i2c: E2 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: E2 0B 00 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: E2 0B 00 4F 45 00 6F 65 27 41 50 D3 80 A0 90 00 8F [22:37:31]RAPDU: 6F 65 27 41 50 D3 80 A0 90 00 [22:37:31]wFMCommunicate OK [22:37:31]SAM_PROTO_SignData done [22:37:31]FM_MakeSignedData done [22:37:31]CreateOFDProtocolMessage [22:37:31]wFMCommunicate request_size=4 [22:37:31]MH_SAM_APDU [22:37:31]CAPDU: 80 11 00 00 [22:37:31]Write to MH i2c: E2 08 00 50 45 80 11 00 00 00 00 00 00 0F [22:37:31]Write i2c OK [22:37:31]MH_I2C_Read... [22:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:31]Read from MH i2c: E2 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: E2 17 00 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: E2 17 00 50 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6F [22:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:37:31]wFMCommunicate OK [22:37:31]CreateOFDProtocolMessage done [22:37:31]OFDSenderStorePacket 162964 [22:37:31]StoreOFDPacket docnum=162964 [22:37:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F2 4E 08 01 2C 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DA 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 81 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 2D 53 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7C 02 00 35 04 06 00 D6 D3 F9 E4 48 EF 6F 65 27 41 50 D3 80 A0 [22:37:31]CheckFolder [22:37:31]dirname=/storage/ofd_packets [22:37:31]CheckFolder done [22:37:31]ProducePacketName [22:37:31]name=ofd_packets/00162964 [22:37:31]NVStorageSaveData ofd_packets/00162964 [22:37:31]File name is /storage/ofd_packets/00162964 [22:37:31]Write 302 bytes [22:37:31]NVStorageSaveData done [22:37:31]OFDSenderStorePacket done [22:37:31]KKMCreateOFDPacket done [22:37:31]NVStorageSaveData kkm_last_timestamp [22:37:31]File name is /storage/kkm_last_timestamp [22:37:31]Write 4 bytes [22:37:31]NVStorageSaveData done [22:37:31]ExternCall_PrintAddStr [22:37:31]wPrintStart [22:37:31]Write to MH i2c: 01 00 00 51 45 96 [22:37:31]Write i2c OK [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: 01 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: 01 07 00 [22:37:31]MH_I2C_Read... [22:37:31]Read from MH i2c: 01 07 00 51 45 00 00 00 00 00 FF 0F AB [22:37:31]RasterBufferAndPrint [22:37:31]line Счет N : (1)1319578 [22:37:31]line ИНН: 02508201610067 [22:37:31]line Контрольно-Кассовый Чек [22:37:31]line ПРОДАЖА [22:37:31]line ТРК (МРК, ГНК) : 41 [22:37:31]line Товар: 2710194210 [22:37:31]line ДТ(л)-К-5 [22:37:31]line 8.410 * 72.60 [22:37:31]line = 610.57 [22:37:31]line НДС 12% НСП 1% [22:37:31]line > о реализуемом товаре [22:37:31]line ОКРУГЛЕНИЕ: -0.57 [22:37:31]line ИТОГО: 610.00 [22:37:31]line Внесено: 610.00 [22:37:31]line СДАЧА: 0.00 [22:37:31]line НСП 1% : 5.40 [22:37:31]line НДС 12% : 64.84 [22:37:31]line Наличными: 610.00 [22:37:31]line Безнал.: 0.00 [22:37:31]line Место: АЗС № 140 "Партнер Нефть" [22:37:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:37:31]line СНО: Общий режим [22:37:31]line Чек 276 14.07.2024 22:37 [22:37:31]line Смена: 463 ФФД: 1.0 [22:37:31]line ЗНМ: 0300000129 [22:37:31]line РНМ: 0000000000090858 [22:37:31]line Версия ККМ: 001 [22:37:31]line ФМ: 0000000000874899 [22:37:31]line ФД: 162964 [22:37:31]line ФПД: 236205918931183 [22:37:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T223733&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162964&fm=236205918931183&tin=02508201610067®Number=0000000000090858&sum=61000 [22:37:31]OFD Sender: Processing packet 162964 [packets to send 106, broken 105] [22:37:31]ProducePacketName [22:37:31]name=ofd_packets/00162964 [22:37:31]OFD Sender: To server: pG, [22:37:31]CommunicateWithHost lk.salyk.kg:30040 [22:37:31]ConnectInit lk.salyk.kg [22:37:31]written 0, free lines is 4095 [22:37:31]Connected sock=10 [22:37:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F2 4E 08 01 2C 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DA 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 81 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 2D 53 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7C 02 00 35 04 06 00 D6 D3 F9 E4 48 EF 6F 65 27 41 50 D3 80 A0 [22:37:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BF DF 47 00 1E 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7C 02 00 F4 03 04 00 39 FF 93 66 B6 04 01 00 00 C5 FA E4 D7 6E BD 84 7E [22:37:32]CommunicateWithHost err = 0 [22:37:32]CheckOFDResponse [22:37:32]1017 (14) - 77093643461234 [22:37:32]1041 (16) - 0000000000874899 [22:37:32]1040 (4) - 162964 [22:37:32]1012 (4) - 14.07.2024 16:39 [22:37:32]1206 (1) - 0 [22:37:32]OFD Sender: Remove packet 162964 [22:37:32]ProducePacketName [22:37:32]name=ofd_packets/00162964 [22:37:32]NVStorageDeleteData [22:37:32]Write to MH i2c: 01 00 00 7C 45 C1 [22:37:32]Write i2c OK [22:37:32]MH_I2C_Read... [22:37:32]Read from MH i2c: 01 [22:37:32]MH_I2C_Read... [22:37:32]Read from MH i2c: 01 07 00 [22:37:32]MH_I2C_Read... [22:37:32]Read from MH i2c: 01 07 00 7C 45 00 00 00 00 00 CE 0C A2 [22:37:32]RasterBufferAndPrint [22:37:32]line [22:37:32]line [22:37:32]line [22:37:32]line [22:37:32]line [22:37:32]written 0, free lines is 3284 [22:37:32]MH_Cut [22:37:32]Write to MH i2c: D1 01 00 83 45 01 9A [22:37:32]Write i2c OK [22:37:32]MH_I2C_Read... [22:37:32]Read from MH i2c: D1 [22:37:32]MH_I2C_Read... [22:37:32]Read from MH i2c: D1 01 00 [22:37:32]MH_I2C_Read... [22:37:32]Read from MH i2c: D1 01 00 83 45 00 99 [22:37:32]Write to MH i2c: 01 00 00 84 45 C9 [22:37:32]Write i2c OK [22:37:32]MH_I2C_Read... [22:37:32]OFD Sender: No OFD packet to send [22:37:33]*** Cut start [22:37:33]*** Purtial cut [22:37:33]*** CUTSNS_PIN = 0 [22:37:33]*** Stage 1: CUTSNS_PIN = 1 [22:37:35]Read from MH i2c: 01 [22:37:35]MH_I2C_Read... [22:37:35]*** Stop cut motor [22:37:35]*** Cut end [22:37:35]Read from MH i2c: 01 07 00 [22:37:35]MH_I2C_Read... [22:37:35]Read from MH i2c: 01 07 00 84 45 00 00 00 00 00 FF 0F DE [22:37:35]process_action close_receipt done [22:37:35]requested_data is exist [22:37:35]produce_requested_data [22:37:35]requested_item fm.sn is exist - process it [22:37:35]wFMCommunicate request_size=4 [22:37:35]MH_SAM_APDU [22:37:35]CAPDU: 80 11 00 00 [22:37:35]Write to MH i2c: E2 08 00 85 45 80 11 00 00 00 00 00 00 44 [22:37:35]Write i2c OK [22:37:35]MH_I2C_Read... [22:37:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:35]Read from MH i2c: E2 [22:37:35]MH_I2C_Read... [22:37:35]Read from MH i2c: E2 17 00 [22:37:35]MH_I2C_Read... [22:37:35]Read from MH i2c: E2 17 00 85 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A4 [22:37:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:37:35]wFMCommunicate OK [22:37:35]requested_item fd.num is exist - process it [22:37:35]SAM_PROTO_GetFieldsCounters [22:37:35]wFMCommunicate request_size=4 [22:37:35]MH_SAM_APDU [22:37:35]CAPDU: 80 13 00 00 [22:37:35]Write to MH i2c: E2 08 00 86 45 80 13 00 00 00 00 00 00 47 [22:37:35]Write i2c OK [22:37:35]MH_I2C_Read... [22:37:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:35]Read from MH i2c: E2 [22:37:35]MH_I2C_Read... [22:37:35]Read from MH i2c: E2 62 00 [22:37:35]MH_I2C_Read... [22:37:35]Read from MH i2c: E2 62 00 86 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 94 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [22:37:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 94 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:35]wFMCommunicate OK [22:37:35]SAM_PROTO_GetFieldsCounters done [22:37:35]requested_item shift.num is exist - process it [22:37:35]requested_item shift.opened is exist - process it [22:37:35]req_shift_opened [22:37:35]FM_GetShiftState [22:37:35]SAM_PROTO_GetShiftState [22:37:35]wFMCommunicate request_size=4 [22:37:35]MH_SAM_APDU [22:37:35]CAPDU: 80 13 01 00 [22:37:35]Write to MH i2c: E2 08 00 87 45 80 13 01 00 00 00 00 00 49 [22:37:35]Write i2c OK [22:37:35]MH_I2C_Read... [22:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:35]Read from MH i2c: E2 [22:37:35]MH_I2C_Read... [22:37:35]Read from MH i2c: E2 0E 00 [22:37:35]MH_I2C_Read... [22:37:35]Read from MH i2c: E2 0E 00 87 45 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7F [22:37:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:37:35]wFMCommunicate OK [22:37:35]SAM_PROTO_GetShiftState done [22:37:35]FM_GetShiftState done [22:37:35]req_shift_opened done [22:37:35]requested_item shift.open_date is exist - process it [22:37:35]req_shift_open_date [22:37:35]req_shift_open_date done [22:37:35]produce_requested_data done [22:37:35]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162964,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [22:37:35]process_action_free close_receipt [22:37:35]json_value_free [22:37:35]json_value_free done [22:37:35]process_json_proto returns [22:37:35]Send response to host [22:37:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162964,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [22:37:35]free response buf [22:37:35]execute_script done [22:37:35]execute_script returns [22:37:35]free content buf [22:37:35]Sock 7.Close socket [22:37:35]Sock 7.Thread stoped [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:09]accept exits with 9 [22:43:09]New connection [22:43:09]New thread 3066735972 created [22:43:09]Thread 3066879332 joined [22:43:09]Waiting for new connection... [22:43:09] Sock 9.Parse request [22:43:09]Sock 9.Check first char [22:43:09]Sock 9.First char is OK [22:43:09]request: POST /json_proto HTTP/1.0 [22:43:09]Method: POST [22:43:09]URL: /json_proto [22:43:09]Method is POST - this is cgi request [22:43:09]url: /json_proto [22:43:09]query_string will be loaded in cgi processing [22:43:09]execute_cgi json_proto POST (null) [22:43:09]execute_cgi path=json_proto method=POST [22:43:09]POST find Content-Length [22:43:09]Host: 172.17.39.67:8080 [22:43:09]Content-Length: 678 [22:43:09]Content-Type: application/json [22:43:09] [22:43:09]POST finish read [22:43:09]Found Content-Length = 678 [22:43:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.780, "sum" : 250.61, "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" ] } } [22:43:09]execute_script... [22:43:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.780, "sum" : 250.61, "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" ] } } [22:43:09]POST & json_proto [22:43:09]process_json_proto [22:43:09]json parsed OK: [22:43:09]protocol is kg_v1.0 [22:43:09]action value=close_receipt [22:43:09]process_action close_receipt [22:43:09]cmd_close_receipt [22:43:09]MH_GetDate [22:43:09]Write to MH i2c: F0 00 00 88 45 BC [22:43:09]Write i2c OK [22:43:09]MH_I2C_Read... [22:43:09]Read from MH i2c: F0 [22:43:09]MH_I2C_Read... [22:43:09]Read from MH i2c: F0 09 00 [22:43:09]MH_I2C_Read... [22:43:09]Read from MH i2c: F0 09 00 88 45 00 80 54 94 66 B6 85 93 66 C7 [22:43:09]GetLastDocTimeStamp 1720996653 [22:43:09]current date 1720996992 [22:43:09]FM_GetShiftState [22:43:09]SAM_PROTO_GetShiftState [22:43:09]wFMCommunicate request_size=4 [22:43:09]MH_SAM_APDU [22:43:09]CAPDU: 80 13 01 00 [22:43:09]Write to MH i2c: E2 08 00 89 45 80 13 01 00 00 00 00 00 4B [22:43:09]Write i2c OK [22:43:09]MH_I2C_Read... [22:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:09]Read from MH i2c: E2 [22:43:09]MH_I2C_Read... [22:43:09]Read from MH i2c: E2 0E 00 [22:43:09]MH_I2C_Read... [22:43:09]Read from MH i2c: E2 0E 00 89 45 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 81 [22:43:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:43:09]wFMCommunicate OK [22:43:09]SAM_PROTO_GetShiftState done [22:43:09]FM_GetShiftState done [22:43:09]opened in 1720915483 [22:43:09]opened+sec_in_day 1721001883 [22:43:09]quantity*price = 25061 [22:43:09]sum+1 = 25062 [22:43:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.61 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 277 14.07.2024 22:43 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162965 ФПД: 107872425151515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T224312&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162965&fm=107872425151515&tin=02508201610067®Number=0000000000090858&sum=25000 [22:43:10]StoreToDocumentArchive [22:43:10]shift 463 fd 162965 [22:43:10]save to /storage/0463/doc_00162965 [22:43:10]save last doc name /storage/0463/doc_00162965 to /storage/kkm_last_doc_name [22:43:10]save OK [22:43:10]Clear old archive folders... [22:43:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:43:10]tlvbuf is B6F468B0 [22:43:10]SAM_PROTO_ClearQueue [22:43:10]wFMCommunicate request_size=4 [22:43:10]MH_SAM_APDU [22:43:10]CAPDU: 80 09 00 00 [22:43:10]Write to MH i2c: E2 08 00 96 45 80 09 00 00 00 00 00 00 4D [22:43:10]Write i2c OK [22:43:10]MH_I2C_Read... [22:43:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:10]Read from MH i2c: E2 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: E2 03 00 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: E2 03 00 96 45 00 90 00 4F [22:43:10]RAPDU: 90 00 [22:43:10]wFMCommunicate OK [22:43:10]SAM_PROTO_ClearQueue done [22:43:10]KKMCreateOFDPacket [22:43:10]OFDProtocolAddRootSTLVToBuf [22:43:10]FM_MakeSignedData [22:43:10]FM_MakeSignedData [22:43:10]SAM_PROTO_SignData [22:43:10]wFMCommunicate request_size=4 [22:43:10]MH_SAM_APDU [22:43:10]CAPDU: 80 0D 01 02 [22:43:10]Write to MH i2c: E2 08 00 97 45 80 0D 01 02 00 00 00 00 55 [22:43:10]Write i2c OK [22:43:10]MH_I2C_Read... [22:43:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:10]Read from MH i2c: E2 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: E2 03 00 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: E2 03 00 97 45 00 90 00 50 [22:43:10]RAPDU: 90 00 [22:43:10]wFMCommunicate OK [22:43:10]wFMCommunicate request_size=255 [22:43:10]MH_SAM_APDU [22:43:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E5 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 65 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 80 54 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7C 02 00 35 04 06 00 62 [22:43:10]Write to MH i2c: E2 02 01 98 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E5 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 65 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 80 54 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7C 02 00 35 04 06 00 62 00 00 10 [22:43:10]Write i2c OK [22:43:10]MH_I2C_Read... [22:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:10]Read from MH i2c: E2 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: E2 03 00 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: E2 03 00 98 45 00 90 00 51 [22:43:10]RAPDU: 90 00 [22:43:10]wFMCommunicate OK [22:43:10]wFMCommunicate request_size=10 [22:43:10]MH_SAM_APDU [22:43:10]CAPDU: 80 0D 02 02 05 1C 01 95 0C 1B [22:43:10]Write to MH i2c: E2 0D 00 99 45 80 0D 02 02 05 00 1C 01 95 0C 1B 00 00 3B [22:43:10]Write i2c OK [22:43:10]MH_I2C_Read... [22:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:10]Read from MH i2c: E2 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: E2 03 00 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: E2 03 00 99 45 00 90 00 52 [22:43:10]RAPDU: 90 00 [22:43:10]wFMCommunicate OK [22:43:10]wFMCommunicate request_size=4 [22:43:10]MH_SAM_APDU [22:43:10]CAPDU: 80 0D 03 02 [22:43:10]Write to MH i2c: E2 08 00 9A 45 80 0D 03 02 00 00 00 00 5A [22:43:10]Write i2c OK [22:43:10]MH_I2C_Read... [22:43:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:10]Read from MH i2c: E2 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: E2 0B 00 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: E2 0B 00 9A 45 00 AA 24 DA 75 B9 8C 7C 83 90 00 BC [22:43:10]RAPDU: AA 24 DA 75 B9 8C 7C 83 90 00 [22:43:10]wFMCommunicate OK [22:43:10]SAM_PROTO_SignData done [22:43:10]FM_MakeSignedData done [22:43:10]CreateOFDProtocolMessage [22:43:10]wFMCommunicate request_size=4 [22:43:10]MH_SAM_APDU [22:43:10]CAPDU: 80 11 00 00 [22:43:10]Write to MH i2c: E2 08 00 9B 45 80 11 00 00 00 00 00 00 5A [22:43:10]Write i2c OK [22:43:10]MH_I2C_Read... [22:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:10]Read from MH i2c: E2 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: E2 17 00 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: E2 17 00 9B 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BA [22:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:43:10]wFMCommunicate OK [22:43:10]CreateOFDProtocolMessage done [22:43:10]OFDSenderStorePacket 162965 [22:43:10]StoreOFDPacket docnum=162965 [22:43:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 67 1A 07 01 F9 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E5 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 65 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 80 54 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7C 02 00 35 04 06 00 62 1C 01 95 0C 1B AA 24 DA 75 B9 8C 7C 83 [22:43:10]CheckFolder [22:43:10]dirname=/storage/ofd_packets [22:43:10]CheckFolder done [22:43:10]ProducePacketName [22:43:10]name=ofd_packets/00162965 [22:43:10]NVStorageSaveData ofd_packets/00162965 [22:43:10]File name is /storage/ofd_packets/00162965 [22:43:10]Write 301 bytes [22:43:10]NVStorageSaveData done [22:43:10]OFDSenderStorePacket done [22:43:10]KKMCreateOFDPacket done [22:43:10]NVStorageSaveData kkm_last_timestamp [22:43:10]File name is /storage/kkm_last_timestamp [22:43:10]Write 4 bytes [22:43:10]NVStorageSaveData done [22:43:10]ExternCall_PrintAddStr [22:43:10]wPrintStart [22:43:10]Write to MH i2c: 01 00 00 9C 45 E1 [22:43:10]Write i2c OK [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: 01 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: 01 07 00 [22:43:10]MH_I2C_Read... [22:43:10]Read from MH i2c: 01 07 00 9C 45 00 00 00 00 00 FF 0F F6 [22:43:10]RasterBufferAndPrint [22:43:10]line Счет N : (1)1319580 [22:43:10]line ИНН: 02508201610067 [22:43:10]line Контрольно-Кассовый Чек [22:43:10]line ПРОДАЖА [22:43:10]line ТРК (МРК, ГНК) : 43 [22:43:10]line Товар: 2710124130 [22:43:10]line Аи-92-К-5 [22:43:10]line 3.780 * 66.30 [22:43:10]line = 250.61 [22:43:10]line НДС 12% НСП 1% [22:43:10]line > о реализуемом товаре [22:43:10]line ОКРУГЛЕНИЕ: -0.61 [22:43:10]line ИТОГО: 250.00 [22:43:10]line Внесено: 250.00 [22:43:10]line СДАЧА: 0.00 [22:43:10]line НСП 1% : 2.22 [22:43:10]line НДС 12% : 26.61 [22:43:10]line Наличными: 250.00 [22:43:10]line Безнал.: 0.00 [22:43:10]line Место: АЗС № 140 "Партнер Нефть" [22:43:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:43:10]line СНО: Общий режим [22:43:10]line Чек 277 14.07.2024 22:43 [22:43:10]line Смена: 463 ФФД: 1.0 [22:43:10]line ЗНМ: 0300000129 [22:43:10]line РНМ: 0000000000090858 [22:43:10]line Версия ККМ: 001 [22:43:10]line ФМ: 0000000000874899 [22:43:10]line ФД: 162965 [22:43:10]line ФПД: 107872425151515 [22:43:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T224312&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162965&fm=107872425151515&tin=02508201610067®Number=0000000000090858&sum=25000 [22:43:10]written 0, free lines is 4095 [22:43:10]OFD Sender: Processing packet 162965 [packets to send 106, broken 105] [22:43:10]ProducePacketName [22:43:10]name=ofd_packets/00162965 [22:43:10]OFD Sender: To server: pG, [22:43:10]CommunicateWithHost lk.salyk.kg:30040 [22:43:10]ConnectInit lk.salyk.kg [22:43:11]Connected sock=10 [22:43:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 67 1A 07 01 F9 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E5 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 65 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 80 54 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7C 02 00 35 04 06 00 62 1C 01 95 0C 1B AA 24 DA 75 B9 8C 7C 83 [22:43:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 56 F0 47 00 50 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7C 02 00 F4 03 04 00 8C 00 94 66 B6 04 01 00 00 06 C6 03 97 FE 17 36 BD [22:43:11]CommunicateWithHost err = 0 [22:43:11]CheckOFDResponse [22:43:11]1017 (14) - 77093643461234 [22:43:11]1041 (16) - 0000000000874899 [22:43:11]1040 (4) - 162965 [22:43:11]1012 (4) - 14.07.2024 16:45 [22:43:11]1206 (1) - 0 [22:43:11]OFD Sender: Remove packet 162965 [22:43:11]ProducePacketName [22:43:11]name=ofd_packets/00162965 [22:43:11]NVStorageDeleteData [22:43:11]Write to MH i2c: 01 00 00 C7 45 0C [22:43:11]Write i2c OK [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: 01 [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: 01 07 00 [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: 01 07 00 C7 45 00 00 00 00 00 D1 0C F0 [22:43:11]RasterBufferAndPrint [22:43:11]line [22:43:11]line [22:43:11]line [22:43:11]line [22:43:11]line [22:43:11]written 0, free lines is 3287 [22:43:11]MH_Cut [22:43:11]Write to MH i2c: D1 01 00 CE 45 01 E5 [22:43:11]Write i2c OK [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: D1 [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: D1 01 00 [22:43:11]MH_I2C_Read... [22:43:11]Read from MH i2c: D1 01 00 CE 45 00 E4 [22:43:11]Write to MH i2c: 01 00 00 CF 45 14 [22:43:11]Write i2c OK [22:43:11]MH_I2C_Read... [22:43:11]OFD Sender: No OFD packet to send [22:43:12]*** Cut start [22:43:12]*** Purtial cut [22:43:12]*** Stage 1: CUTSNS_PIN = 1 [22:43:12]Read from MH i2c: 01 [22:43:12]MH_I2C_Read... [22:43:12]*** Stop cut motor [22:43:12]*** Cut end [22:43:12]Read from MH i2c: 01 07 00 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: 01 07 00 CF 45 00 00 00 00 00 FF 0F 29 [22:43:12]process_action close_receipt done [22:43:12]requested_data is exist [22:43:12]produce_requested_data [22:43:12]requested_item fm.sn is exist - process it [22:43:12]wFMCommunicate request_size=4 [22:43:12]MH_SAM_APDU [22:43:12]CAPDU: 80 11 00 00 [22:43:12]Write to MH i2c: E2 08 00 D0 45 80 11 00 00 00 00 00 00 8F [22:43:12]Write i2c OK [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 [22:43:12]MH_I2C_Read... [22:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:12]Read from MH i2c: E2 17 00 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 17 00 D0 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EF [22:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:43:12]wFMCommunicate OK [22:43:12]requested_item fd.num is exist - process it [22:43:12]SAM_PROTO_GetFieldsCounters [22:43:12]wFMCommunicate request_size=4 [22:43:12]MH_SAM_APDU [22:43:12]CAPDU: 80 13 00 00 [22:43:12]Write to MH i2c: E2 08 00 D1 45 80 13 00 00 00 00 00 00 92 [22:43:12]Write i2c OK [22:43:12]MH_I2C_Read... [22:43:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:12]Read from MH i2c: E2 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 62 00 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 62 00 D1 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 95 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [22:43:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 95 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:12]wFMCommunicate OK [22:43:12]SAM_PROTO_GetFieldsCounters done [22:43:12]requested_item shift.num is exist - process it [22:43:12]requested_item shift.opened is exist - process it [22:43:12]req_shift_opened [22:43:12]FM_GetShiftState [22:43:12]SAM_PROTO_GetShiftState [22:43:12]wFMCommunicate request_size=4 [22:43:12]MH_SAM_APDU [22:43:12]CAPDU: 80 13 01 00 [22:43:12]Write to MH i2c: E2 08 00 D2 45 80 13 01 00 00 00 00 00 94 [22:43:12]Write i2c OK [22:43:12]MH_I2C_Read... [22:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:12]Read from MH i2c: E2 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 0E 00 [22:43:12]MH_I2C_Read... [22:43:12]Read from MH i2c: E2 0E 00 D2 45 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 CA [22:43:12]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:43:12]wFMCommunicate OK [22:43:12]SAM_PROTO_GetShiftState done [22:43:12]FM_GetShiftState done [22:43:12]req_shift_opened done [22:43:12]requested_item shift.open_date is exist - process it [22:43:12]req_shift_open_date [22:43:12]req_shift_open_date done [22:43:12]produce_requested_data done [22:43:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162965,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [22:43:12]process_action_free close_receipt [22:43:12]json_value_free [22:43:12]json_value_free done [22:43:12]process_json_proto returns [22:43:12]Send response to host [22:43:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162965,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [22:43:12]free response buf [22:43:12]execute_script done [22:43:12]execute_script returns [22:43:12]free content buf [22:43:12]Sock 9.Close socket [22:43:12]Sock 9.Thread stoped [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [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:02]accept exits with 7 [22:49:02]New connection [22:49:02]New thread 3066879332 created [22:49:02]Thread 3066735972 joined [22:49:02]Waiting for new connection... [22:49:02] Sock 7.Parse request [22:49:02]Sock 7.Check first char [22:49:02]Sock 7.First char is OK [22:49:02]request: POST /json_proto HTTP/1.0 [22:49:02]Method: POST [22:49:02]URL: /json_proto [22:49:02]Method is POST - this is cgi request [22:49:02]url: /json_proto [22:49:02]query_string will be loaded in cgi processing [22:49:02]execute_cgi json_proto POST (null) [22:49:02]execute_cgi path=json_proto method=POST [22:49:02]POST find Content-Length [22:49:02]Host: 172.17.39.67:8080 [22:49:02]Content-Length: 678 [22:49:02]Content-Type: application/json [22:49:02] [22:49:02]POST finish read [22:49:02]Found Content-Length = 678 [22:49:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 2.120, "sum" : 140.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:02]execute_script... [22:49: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)1319581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 2.120, "sum" : 140.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:02]POST & json_proto [22:49:02]process_json_proto [22:49:02]json parsed OK: [22:49:02]protocol is kg_v1.0 [22:49:02]action value=close_receipt [22:49:02]process_action close_receipt [22:49:02]cmd_close_receipt [22:49:02]MH_GetDate [22:49:02]Write to MH i2c: F0 00 00 D3 45 07 [22:49:02]Write i2c OK [22:49:02]MH_I2C_Read... [22:49:02]Read from MH i2c: F0 [22:49:02]MH_I2C_Read... [22:49:02]Read from MH i2c: F0 09 00 [22:49:02]MH_I2C_Read... [22:49:02]Read from MH i2c: F0 09 00 D3 45 00 E2 55 94 66 B6 85 93 66 75 [22:49:02]GetLastDocTimeStamp 1720996992 [22:49:02]current date 1720997346 [22:49:02]FM_GetShiftState [22:49:02]SAM_PROTO_GetShiftState [22:49:02]wFMCommunicate request_size=4 [22:49:02]MH_SAM_APDU [22:49:02]CAPDU: 80 13 01 00 [22:49:02]Write to MH i2c: E2 08 00 D4 45 80 13 01 00 00 00 00 00 96 [22:49:02]Write i2c OK [22:49:02]MH_I2C_Read... [22:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:02]Read from MH i2c: E2 [22:49:02]MH_I2C_Read... [22:49:02]Read from MH i2c: E2 0E 00 [22:49:02]MH_I2C_Read... [22:49:02]Read from MH i2c: E2 0E 00 D4 45 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 CC [22:49:02]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:49:02]wFMCommunicate OK [22:49:02]SAM_PROTO_GetShiftState done [22:49:02]FM_GetShiftState done [22:49:02]opened in 1720915483 [22:49:02]opened+sec_in_day 1721001883 [22:49:02]quantity*price = 14055 [22:49:02]sum+1 = 14057 [22:49:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.93 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 278 14.07.2024 22:49 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162966 ФПД: 157806041072114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T224906&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162966&fm=157806041072114&tin=02508201610067®Number=0000000000090858&sum=14000 [22:49:03]StoreToDocumentArchive [22:49:03]shift 463 fd 162966 [22:49:03]save to /storage/0463/doc_00162966 [22:49:03]save last doc name /storage/0463/doc_00162966 to /storage/kkm_last_doc_name [22:49:03]save OK [22:49:03]Clear old archive folders... [22:49:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:49:03]tlvbuf is 012FB9F0 [22:49:03]SAM_PROTO_ClearQueue [22:49:03]wFMCommunicate request_size=4 [22:49:03]MH_SAM_APDU [22:49:03]CAPDU: 80 09 00 00 [22:49:03]Write to MH i2c: E2 08 00 E1 45 80 09 00 00 00 00 00 00 98 [22:49:03]Write i2c OK [22:49:03]MH_I2C_Read... [22:49:03]Read from MH i2c: E2 [22:49:03]MH_I2C_Read... [22:49:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:03]Read from MH i2c: E2 03 00 [22:49:03]MH_I2C_Read... [22:49:03]Read from MH i2c: E2 03 00 E1 45 00 90 00 9A [22:49:03]RAPDU: 90 00 [22:49:03]wFMCommunicate OK [22:49:03]SAM_PROTO_ClearQueue done [22:49:03]KKMCreateOFDPacket [22:49:03]OFDProtocolAddRootSTLVToBuf [22:49:03]FM_MakeSignedData [22:49:03]FM_MakeSignedData [22:49:03]SAM_PROTO_SignData [22:49:03]wFMCommunicate request_size=4 [22:49:03]MH_SAM_APDU [22:49:03]CAPDU: 80 0D 01 02 [22:49:03]Write to MH i2c: E2 08 00 E2 45 80 0D 01 02 00 00 00 00 A0 [22:49:03]Write i2c OK [22:49:03]MH_I2C_Read... [22:49:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:04]Read from MH i2c: E2 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: E2 03 00 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: E2 03 00 E2 45 00 90 00 9B [22:49:04]RAPDU: 90 00 [22:49:04]wFMCommunicate OK [22:49:04]wFMCommunicate request_size=255 [22:49:04]MH_SAM_APDU [22:49: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 48 08 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 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 D5 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 16 01 00 00 F4 03 04 00 E2 55 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7C 02 00 35 04 06 00 8F [22:49:04]Write to MH i2c: E2 02 01 E3 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 08 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 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 D5 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 16 01 00 00 F4 03 04 00 E2 55 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7C 02 00 35 04 06 00 8F 00 00 06 [22:49:04]Write i2c OK [22:49:04]MH_I2C_Read... [22:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:04]Read from MH i2c: E2 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: E2 03 00 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: E2 03 00 E3 45 00 90 00 9C [22:49:04]RAPDU: 90 00 [22:49:04]wFMCommunicate OK [22:49:04]wFMCommunicate request_size=10 [22:49:04]MH_SAM_APDU [22:49:04]CAPDU: 80 0D 02 02 05 86 15 05 81 F2 [22:49:04]Write to MH i2c: E2 0D 00 E4 45 80 0D 02 02 05 00 86 15 05 81 F2 00 00 C0 [22:49:04]Write i2c OK [22:49:04]MH_I2C_Read... [22:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:04]Read from MH i2c: E2 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: E2 03 00 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: E2 03 00 E4 45 00 90 00 9D [22:49:04]RAPDU: 90 00 [22:49:04]wFMCommunicate OK [22:49:04]wFMCommunicate request_size=4 [22:49:04]MH_SAM_APDU [22:49:04]CAPDU: 80 0D 03 02 [22:49:04]Write to MH i2c: E2 08 00 E5 45 80 0D 03 02 00 00 00 00 A5 [22:49:04]Write i2c OK [22:49:04]MH_I2C_Read... [22:49:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:04]Read from MH i2c: E2 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: E2 0B 00 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: E2 0B 00 E5 45 00 58 57 09 1B 4B F8 24 91 90 00 71 [22:49:04]RAPDU: 58 57 09 1B 4B F8 24 91 90 00 [22:49:04]wFMCommunicate OK [22:49:04]SAM_PROTO_SignData done [22:49:04]FM_MakeSignedData done [22:49:04]CreateOFDProtocolMessage [22:49:04]wFMCommunicate request_size=4 [22:49:04]MH_SAM_APDU [22:49:04]CAPDU: 80 11 00 00 [22:49:04]Write to MH i2c: E2 08 00 E6 45 80 11 00 00 00 00 00 00 A5 [22:49:04]Write i2c OK [22:49:04]MH_I2C_Read... [22:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:04]Read from MH i2c: E2 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: E2 17 00 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: E2 17 00 E6 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 05 [22:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:49:04]wFMCommunicate OK [22:49:04]CreateOFDProtocolMessage done [22:49:04]OFDSenderStorePacket 162966 [22:49:04]StoreOFDPacket docnum=162966 [22:49:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 46 25 07 01 08 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 08 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 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 D5 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 16 01 00 00 F4 03 04 00 E2 55 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7C 02 00 35 04 06 00 8F 86 15 05 81 F2 58 57 09 1B 4B F8 24 91 [22:49:04]CheckFolder [22:49:04]dirname=/storage/ofd_packets [22:49:04]CheckFolder done [22:49:04]ProducePacketName [22:49:04]name=ofd_packets/00162966 [22:49:04]NVStorageSaveData ofd_packets/00162966 [22:49:04]File name is /storage/ofd_packets/00162966 [22:49:04]Write 301 bytes [22:49:04]NVStorageSaveData done [22:49:04]OFDSenderStorePacket done [22:49:04]KKMCreateOFDPacket done [22:49:04]NVStorageSaveData kkm_last_timestamp [22:49:04]File name is /storage/kkm_last_timestamp [22:49:04]Write 4 bytes [22:49:04]NVStorageSaveData done [22:49:04]ExternCall_PrintAddStr [22:49:04]wPrintStart [22:49:04]Write to MH i2c: 01 00 00 E7 45 2C [22:49:04]Write i2c OK [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: 01 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: 01 07 00 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: 01 07 00 E7 45 00 00 00 00 00 FF 0F 41 [22:49:04]RasterBufferAndPrint [22:49:04]line Счет N : (1)1319581 [22:49:04]line ИНН: 02508201610067 [22:49:04]line Контрольно-Кассовый Чек [22:49:04]line ПРОДАЖА [22:49:04]line ТРК (МРК, ГНК) : 33 [22:49:04]line Товар: 2710124130 [22:49:04]line Аи-92-К-5 [22:49:04]line 2.120 * 66.30 [22:49:04]line = 140.56 [22:49:04]line НДС 12% НСП 1% [22:49:04]line > о реализуемом товаре [22:49:04]line ОКРУГЛЕНИЕ: -0.56 [22:49:04]line ИТОГО: 140.00 [22:49:04]line Внесено: 140.00 [22:49:04]line СДАЧА: 0.00 [22:49:04]line НСП 1% : 1.24 [22:49:04]line НДС 12% : 14.93 [22:49:04]line Наличными: 140.00 [22:49:04]line Безнал.: 0.00 [22:49:04]line Место: АЗС № 140 "Партнер Нефть" [22:49:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:49:04]line СНО: Общий режим [22:49:04]line Чек 278 14.07.2024 22:49 [22:49:04]line Смена: 463 ФФД: 1.0 [22:49:04]line ЗНМ: 0300000129 [22:49:04]line РНМ: 0000000000090858 [22:49:04]line Версия ККМ: 001 [22:49:04]line ФМ: 0000000000874899 [22:49:04]line ФД: 162966 [22:49:04]line ФПД: 157806041072114 [22:49:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T224906&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162966&fm=157806041072114&tin=02508201610067®Number=0000000000090858&sum=14000 [22:49:04]OFD Sender: Processing packet 162966 [packets to send 106, broken 105] [22:49:04]ProducePacketName [22:49:04]name=ofd_packets/00162966 [22:49:04]OFD Sender: To server: pG, [22:49:04]CommunicateWithHost lk.salyk.kg:30040 [22:49:04]ConnectInit lk.salyk.kg [22:49:04]written 0, free lines is 4095 [22:49:04]Connected sock=10 [22:49:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 46 25 07 01 08 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 08 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 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 D5 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 16 01 00 00 F4 03 04 00 E2 55 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7C 02 00 35 04 06 00 8F 86 15 05 81 F2 58 57 09 1B 4B F8 24 91 [22:49:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5E E9 47 00 6D F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7C 02 00 F4 03 04 00 EE 01 94 66 B6 04 01 00 00 E2 9E 37 E0 39 ED B3 F8 [22:49:05]CommunicateWithHost err = 0 [22:49:05]CheckOFDResponse [22:49:05]1017 (14) - 77093643461234 [22:49:05]1041 (16) - 0000000000874899 [22:49:05]1040 (4) - 162966 [22:49:05]1012 (4) - 14.07.2024 16:50 [22:49:05]1206 (1) - 0 [22:49:05]OFD Sender: Remove packet 162966 [22:49:05]ProducePacketName [22:49:05]name=ofd_packets/00162966 [22:49:05]NVStorageDeleteData [22:49:05]Write to MH i2c: 01 00 00 12 46 58 [22:49:05]Write i2c OK [22:49:05]MH_I2C_Read... [22:49:05]Read from MH i2c: 01 [22:49:05]MH_I2C_Read... [22:49:05]Read from MH i2c: 01 07 00 [22:49:05]MH_I2C_Read... [22:49:05]Read from MH i2c: 01 07 00 12 46 00 00 00 00 00 CD 0C 38 [22:49:05]RasterBufferAndPrint [22:49:05]line [22:49:05]line [22:49:05]line [22:49:05]line [22:49:05]line [22:49:05]written 0, free lines is 3284 [22:49:05]MH_Cut [22:49:05]Write to MH i2c: D1 01 00 19 46 01 31 [22:49:05]Write i2c OK [22:49:05]MH_I2C_Read... [22:49:05]Read from MH i2c: D1 [22:49:05]MH_I2C_Read... [22:49:05]Read from MH i2c: D1 01 00 [22:49:05]MH_I2C_Read... [22:49:05]Read from MH i2c: D1 01 00 19 46 00 30 [22:49:05]Write to MH i2c: 01 00 00 1A 46 60 [22:49:05]Write i2c OK [22:49:05]MH_I2C_Read... [22:49:05]OFD Sender: No OFD packet to send [22:49:05]*** Cut start [22:49:05]*** Purtial cut [22:49:05]*** CUTSNS_PIN = 0 [22:49:06]*** Stage 1: CUTSNS_PIN = 1 [22:49:08]Read from MH i2c: 01 [22:49:08]MH_I2C_Read... [22:49:08]*** Stop cut motor [22:49:08]*** Cut end [22:49:08]Read from MH i2c: 01 07 00 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: 01 07 00 1A 46 00 00 00 00 00 FF 0F 75 [22:49:08]process_action close_receipt done [22:49:08]requested_data is exist [22:49:08]produce_requested_data [22:49:08]requested_item fm.sn is exist - process it [22:49:08]wFMCommunicate request_size=4 [22:49:08]MH_SAM_APDU [22:49:08]CAPDU: 80 11 00 00 [22:49:08]Write to MH i2c: E2 08 00 1B 46 80 11 00 00 00 00 00 00 DB [22:49:08]Write i2c OK [22:49:08]MH_I2C_Read... [22:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:08]Read from MH i2c: E2 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: E2 17 00 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: E2 17 00 1B 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3B [22:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:49:08]wFMCommunicate OK [22:49:08]requested_item fd.num is exist - process it [22:49:08]SAM_PROTO_GetFieldsCounters [22:49:08]wFMCommunicate request_size=4 [22:49:08]MH_SAM_APDU [22:49:08]CAPDU: 80 13 00 00 [22:49:08]Write to MH i2c: E2 08 00 1C 46 80 13 00 00 00 00 00 00 DE [22:49:08]Write i2c OK [22:49:08]MH_I2C_Read... [22:49:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:08]Read from MH i2c: E2 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: E2 62 00 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: E2 62 00 1C 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 96 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [22:49:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 96 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:49:08]wFMCommunicate OK [22:49:08]SAM_PROTO_GetFieldsCounters done [22:49:08]requested_item shift.num is exist - process it [22:49:08]requested_item shift.opened is exist - process it [22:49:08]req_shift_opened [22:49:08]FM_GetShiftState [22:49:08]SAM_PROTO_GetShiftState [22:49:08]wFMCommunicate request_size=4 [22:49:08]MH_SAM_APDU [22:49:08]CAPDU: 80 13 01 00 [22:49:08]Write to MH i2c: E2 08 00 1D 46 80 13 01 00 00 00 00 00 E0 [22:49:08]Write i2c OK [22:49:08]MH_I2C_Read... [22:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:08]Read from MH i2c: E2 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: E2 0E 00 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: E2 0E 00 1D 46 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 16 [22:49:08]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [22:49:08]wFMCommunicate OK [22:49:08]SAM_PROTO_GetShiftState done [22:49:08]FM_GetShiftState done [22:49:08]req_shift_opened done [22:49:08]requested_item shift.open_date is exist - process it [22:49:08]req_shift_open_date [22:49:08]req_shift_open_date done [22:49:08]produce_requested_data done [22:49:08]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162966,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [22:49:08]process_action_free close_receipt [22:49:08]json_value_free [22:49:08]json_value_free done [22:49:08]process_json_proto returns [22:49:08]Send response to host [22:49:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162966,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [22:49:08]free response buf [22:49:08]execute_script done [22:49:08]execute_script returns [22:49:08]free content buf [22:49:08]Sock 7.Close socket [22:49:08]Sock 7.Thread stoped [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:34]accept exits with 9 [23:05:34]New connection [23:05:34]New thread 3066735972 created [23:05:34]Thread 3066879332 joined [23:05:34]Waiting for new connection... [23:05:34] Sock 9.Parse request [23:05:34]Sock 9.Check first char [23:05:34]Sock 9.First char is OK [23:05:34]request: POST /json_proto HTTP/1.0 [23:05:34]Method: POST [23:05:34]URL: /json_proto [23:05:34]Method is POST - this is cgi request [23:05:34]url: /json_proto [23:05:34]query_string will be loaded in cgi processing [23:05:34]execute_cgi json_proto POST (null) [23:05:34]execute_cgi path=json_proto method=POST [23:05:34]POST find Content-Length [23:05:34]Host: 172.17.39.67:8080 [23:05:34]Content-Length: 678 [23:05:34]Content-Type: application/json [23:05:34] [23:05:34]POST finish read [23:05:34]Found Content-Length = 678 [23:05:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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" ] } } [23:05:34]execute_script... [23:05: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)1319582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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" ] } } [23:05:34]POST & json_proto [23:05:34]process_json_proto [23:05:34]json parsed OK: [23:05:34]protocol is kg_v1.0 [23:05:34]action value=close_receipt [23:05:34]process_action close_receipt [23:05:34]cmd_close_receipt [23:05:34]MH_GetDate [23:05:34]Write to MH i2c: F0 00 00 1E 46 53 [23:05:34]Write i2c OK [23:05:34]MH_I2C_Read... [23:05:34]Read from MH i2c: F0 [23:05:34]MH_I2C_Read... [23:05:34]Read from MH i2c: F0 09 00 [23:05:34]MH_I2C_Read... [23:05:34]Read from MH i2c: F0 09 00 1E 46 00 C2 59 94 66 B6 85 93 66 A5 [23:05:34]GetLastDocTimeStamp 1720997346 [23:05:34]current date 1720998338 [23:05:34]FM_GetShiftState [23:05:34]SAM_PROTO_GetShiftState [23:05:34]wFMCommunicate request_size=4 [23:05:34]MH_SAM_APDU [23:05:34]CAPDU: 80 13 01 00 [23:05:34]Write to MH i2c: E2 08 00 1F 46 80 13 01 00 00 00 00 00 E2 [23:05:34]Write i2c OK [23:05:34]MH_I2C_Read... [23:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:35]Read from MH i2c: E2 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: E2 0E 00 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: E2 0E 00 1F 46 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 18 [23:05:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:05:35]wFMCommunicate OK [23:05:35]SAM_PROTO_GetShiftState done [23:05:35]FM_GetShiftState done [23:05:35]opened in 1720915483 [23:05:35]opened+sec_in_day 1721001883 [23:05:35]quantity*price = 50056 [23:05:35]sum+1 = 50058 [23:05:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 279 14.07.2024 23:05 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162967 ФПД: 166878520276901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T230538&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162967&fm=166878520276901&tin=02508201610067®Number=0000000000090858&sum=50000 [23:05:36]StoreToDocumentArchive [23:05:36]shift 463 fd 162967 [23:05:36]save to /storage/0463/doc_00162967 [23:05:36]save last doc name /storage/0463/doc_00162967 to /storage/kkm_last_doc_name [23:05:36]save OK [23:05:36]Clear old archive folders... [23:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:05:36]tlvbuf is 01307DB0 [23:05:36]SAM_PROTO_ClearQueue [23:05:36]wFMCommunicate request_size=4 [23:05:36]MH_SAM_APDU [23:05:36]CAPDU: 80 09 00 00 [23:05:36]Write to MH i2c: E2 08 00 2C 46 80 09 00 00 00 00 00 00 E4 [23:05:36]Write i2c OK [23:05:36]MH_I2C_Read... [23:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:36]Read from MH i2c: E2 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: E2 03 00 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: E2 03 00 2C 46 00 90 00 E6 [23:05:36]RAPDU: 90 00 [23:05:36]wFMCommunicate OK [23:05:36]SAM_PROTO_ClearQueue done [23:05:36]KKMCreateOFDPacket [23:05:36]OFDProtocolAddRootSTLVToBuf [23:05:36]FM_MakeSignedData [23:05:36]FM_MakeSignedData [23:05:36]SAM_PROTO_SignData [23:05:36]wFMCommunicate request_size=4 [23:05:36]MH_SAM_APDU [23:05:36]CAPDU: 80 0D 01 02 [23:05:36]Write to MH i2c: E2 08 00 2D 46 80 0D 01 02 00 00 00 00 EC [23:05:36]Write i2c OK [23:05:36]MH_I2C_Read... [23:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:36]Read from MH i2c: E2 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: E2 03 00 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: E2 03 00 2D 46 00 90 00 E7 [23:05:36]RAPDU: 90 00 [23:05:36]wFMCommunicate OK [23:05:36]wFMCommunicate request_size=255 [23:05:36]MH_SAM_APDU [23:05: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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 17 01 00 00 F4 03 04 00 C2 59 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7C 02 00 35 04 06 00 97 [23:05:36]Write to MH i2c: E2 02 01 2E 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 17 01 00 00 F4 03 04 00 C2 59 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7C 02 00 35 04 06 00 97 00 00 51 [23:05:36]Write i2c OK [23:05:36]MH_I2C_Read... [23:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:36]Read from MH i2c: E2 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: E2 03 00 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: E2 03 00 2E 46 00 90 00 E8 [23:05:36]RAPDU: 90 00 [23:05:36]wFMCommunicate OK [23:05:36]wFMCommunicate request_size=10 [23:05:36]MH_SAM_APDU [23:05:36]CAPDU: 80 0D 02 02 05 C6 6E EB F7 A5 [23:05:36]Write to MH i2c: E2 0D 00 2F 46 80 0D 02 02 05 00 C6 6E EB F7 A5 00 00 B4 [23:05:36]Write i2c OK [23:05:36]MH_I2C_Read... [23:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:36]Read from MH i2c: E2 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: E2 03 00 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: E2 03 00 2F 46 00 90 00 E9 [23:05:36]RAPDU: 90 00 [23:05:36]wFMCommunicate OK [23:05:36]wFMCommunicate request_size=4 [23:05:36]MH_SAM_APDU [23:05:36]CAPDU: 80 0D 03 02 [23:05:36]Write to MH i2c: E2 08 00 30 46 80 0D 03 02 00 00 00 00 F1 [23:05:36]Write i2c OK [23:05:36]MH_I2C_Read... [23:05:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:36]Read from MH i2c: E2 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: E2 0B 00 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: E2 0B 00 30 46 00 64 FA 4A 0E 8A 20 16 7B 90 00 E3 [23:05:36]RAPDU: 64 FA 4A 0E 8A 20 16 7B 90 00 [23:05:36]wFMCommunicate OK [23:05:36]SAM_PROTO_SignData done [23:05:36]FM_MakeSignedData done [23:05:36]CreateOFDProtocolMessage [23:05:36]wFMCommunicate request_size=4 [23:05:36]MH_SAM_APDU [23:05:36]CAPDU: 80 11 00 00 [23:05:36]Write to MH i2c: E2 08 00 31 46 80 11 00 00 00 00 00 00 F1 [23:05:36]Write i2c OK [23:05:36]MH_I2C_Read... [23:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:36]Read from MH i2c: E2 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: E2 17 00 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: E2 17 00 31 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 51 [23:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:05:36]wFMCommunicate OK [23:05:36]CreateOFDProtocolMessage done [23:05:36]OFDSenderStorePacket 162967 [23:05:36]StoreOFDPacket docnum=162967 [23:05:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4B 2B 07 01 86 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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 17 01 00 00 F4 03 04 00 C2 59 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7C 02 00 35 04 06 00 97 C6 6E EB F7 A5 64 FA 4A 0E 8A 20 16 7B [23:05:36]CheckFolder [23:05:36]dirname=/storage/ofd_packets [23:05:36]CheckFolder done [23:05:36]ProducePacketName [23:05:36]name=ofd_packets/00162967 [23:05:36]NVStorageSaveData ofd_packets/00162967 [23:05:36]File name is /storage/ofd_packets/00162967 [23:05:36]Write 301 bytes [23:05:36]NVStorageSaveData done [23:05:36]OFDSenderStorePacket done [23:05:36]KKMCreateOFDPacket done [23:05:36]NVStorageSaveData kkm_last_timestamp [23:05:36]File name is /storage/kkm_last_timestamp [23:05:36]Write 4 bytes [23:05:36]NVStorageSaveData done [23:05:36]ExternCall_PrintAddStr [23:05:36]wPrintStart [23:05:36]Write to MH i2c: 01 00 00 32 46 78 [23:05:36]Write i2c OK [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: 01 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: 01 07 00 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: 01 07 00 32 46 00 00 00 00 00 FF 0F 8D [23:05:36]RasterBufferAndPrint [23:05:36]line Счет N : (1)1319582 [23:05:36]line ИНН: 02508201610067 [23:05:36]line Контрольно-Кассовый Чек [23:05:36]line ПРОДАЖА [23:05:36]line ТРК (МРК, ГНК) : 53 [23:05:36]line Товар: 2710124130 [23:05:36]line Аи-92-К-5 [23:05:36]line 7.550 * 66.30 [23:05:36]line = 500.57 [23:05:36]line НДС 12% НСП 1% [23:05:36]line > о реализуемом товаре [23:05:36]line ОКРУГЛЕНИЕ: -0.57 [23:05:36]line ИТОГО: 500.00 [23:05:36]line Внесено: 500.00 [23:05:36]line СДАЧА: 0.00 [23:05:36]line НСП 1% : 4.43 [23:05:36]line НДС 12% : 53.16 [23:05:36]line Наличными: 500.00 [23:05:36]line Безнал.: 0.00 [23:05:36]line Место: АЗС № 140 "Партнер Нефть" [23:05:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:05:36]line СНО: Общий режим [23:05:36]line Чек 279 14.07.2024 23:05 [23:05:36]line Смена: 463 ФФД: 1.0 [23:05:36]line ЗНМ: 0300000129 [23:05:36]line РНМ: 0000000000090858 [23:05:36]line Версия ККМ: 001 [23:05:36]line ФМ: 0000000000874899 [23:05:36]line ФД: 162967 [23:05:36]line ФПД: 166878520276901 [23:05:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T230538&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162967&fm=166878520276901&tin=02508201610067®Number=0000000000090858&sum=50000 [23:05:37]OFD Sender: Processing packet 162967 [packets to send 106, broken 105] [23:05:37]ProducePacketName [23:05:37]name=ofd_packets/00162967 [23:05:37]OFD Sender: To server: pG, [23:05:37]CommunicateWithHost lk.salyk.kg:30040 [23:05:37]ConnectInit lk.salyk.kg [23:05:37]written 0, free lines is 4095 [23:05:37]Connected sock=10 [23:05:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4B 2B 07 01 86 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 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 17 01 00 00 F4 03 04 00 C2 59 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7C 02 00 35 04 06 00 97 C6 6E EB F7 A5 64 FA 4A 0E 8A 20 16 7B [23:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F6 5F 47 00 11 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7C 02 00 F4 03 04 00 CE 05 94 66 B6 04 01 00 00 9F FB 52 77 26 B8 90 B4 [23:05:37]CommunicateWithHost err = 0 [23:05:37]CheckOFDResponse [23:05:37]1017 (14) - 77093643461234 [23:05:37]1041 (16) - 0000000000874899 [23:05:37]1040 (4) - 162967 [23:05:37]1012 (4) - 14.07.2024 17:07 [23:05:37]1206 (1) - 0 [23:05:37]OFD Sender: Remove packet 162967 [23:05:37]ProducePacketName [23:05:37]name=ofd_packets/00162967 [23:05:37]NVStorageDeleteData [23:05:37]Write to MH i2c: 01 00 00 5D 46 A3 [23:05:37]Write i2c OK [23:05:37]MH_I2C_Read... [23:05:37]Read from MH i2c: 01 [23:05:37]MH_I2C_Read... [23:05:37]Read from MH i2c: 01 07 00 [23:05:37]MH_I2C_Read... [23:05:37]Read from MH i2c: 01 07 00 5D 46 00 00 00 00 00 E4 0C 9A [23:05:37]RasterBufferAndPrint [23:05:37]line [23:05:37]line [23:05:37]line [23:05:37]line [23:05:37]line [23:05:37]written 0, free lines is 3306 [23:05:37]MH_Cut [23:05:37]Write to MH i2c: D1 01 00 64 46 01 7C [23:05:37]Write i2c OK [23:05:37]MH_I2C_Read... [23:05:37]Read from MH i2c: D1 [23:05:37]MH_I2C_Read... [23:05:37]Read from MH i2c: D1 01 00 [23:05:37]MH_I2C_Read... [23:05:37]Read from MH i2c: D1 01 00 64 46 00 7B [23:05:37]Write to MH i2c: 01 00 00 65 46 AB [23:05:37]Write i2c OK [23:05:37]MH_I2C_Read... [23:05:37]OFD Sender: No OFD packet to send [23:05:38]*** Cut start [23:05:38]*** Purtial cut [23:05:38]*** Stage 1: CUTSNS_PIN = 1 [23:05:38]Read from MH i2c: 01 [23:05:38]MH_I2C_Read... [23:05:38]*** Stop cut motor [23:05:38]*** Cut end [23:05:38]Read from MH i2c: 01 07 00 [23:05:38]MH_I2C_Read... [23:05:38]Read from MH i2c: 01 07 00 65 46 00 00 00 00 00 FF 0F C0 [23:05:38]process_action close_receipt done [23:05:38]requested_data is exist [23:05:38]produce_requested_data [23:05:38]requested_item fm.sn is exist - process it [23:05:38]wFMCommunicate request_size=4 [23:05:38]MH_SAM_APDU [23:05:38]CAPDU: 80 11 00 00 [23:05:38]Write to MH i2c: E2 08 00 66 46 80 11 00 00 00 00 00 00 26 [23:05:38]Write i2c OK [23:05:38]MH_I2C_Read... [23:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:38]Read from MH i2c: E2 [23:05:38]MH_I2C_Read... [23:05:38]Read from MH i2c: E2 17 00 [23:05:38]MH_I2C_Read... [23:05:38]Read from MH i2c: E2 17 00 66 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 86 [23:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:05:38]wFMCommunicate OK [23:05:38]requested_item fd.num is exist - process it [23:05:38]SAM_PROTO_GetFieldsCounters [23:05:38]wFMCommunicate request_size=4 [23:05:38]MH_SAM_APDU [23:05:38]CAPDU: 80 13 00 00 [23:05:38]Write to MH i2c: E2 08 00 67 46 80 13 00 00 00 00 00 00 29 [23:05:38]Write i2c OK [23:05:38]MH_I2C_Read... [23:05:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:38]Read from MH i2c: E2 [23:05:38]MH_I2C_Read... [23:05:38]Read from MH i2c: E2 62 00 [23:05:38]MH_I2C_Read... [23:05:38]Read from MH i2c: E2 62 00 67 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 97 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [23:05:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 97 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:05:38]wFMCommunicate OK [23:05:38]SAM_PROTO_GetFieldsCounters done [23:05:38]requested_item shift.num is exist - process it [23:05:38]requested_item shift.opened is exist - process it [23:05:38]req_shift_opened [23:05:38]FM_GetShiftState [23:05:38]SAM_PROTO_GetShiftState [23:05:38]wFMCommunicate request_size=4 [23:05:38]MH_SAM_APDU [23:05:38]CAPDU: 80 13 01 00 [23:05:38]Write to MH i2c: E2 08 00 68 46 80 13 01 00 00 00 00 00 2B [23:05:38]Write i2c OK [23:05:38]MH_I2C_Read... [23:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:38]Read from MH i2c: E2 [23:05:38]MH_I2C_Read... [23:05:38]Read from MH i2c: E2 0E 00 [23:05:38]MH_I2C_Read... [23:05:38]Read from MH i2c: E2 0E 00 68 46 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 61 [23:05:38]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:05:38]wFMCommunicate OK [23:05:38]SAM_PROTO_GetShiftState done [23:05:38]FM_GetShiftState done [23:05:38]req_shift_opened done [23:05:38]requested_item shift.open_date is exist - process it [23:05:38]req_shift_open_date [23:05:38]req_shift_open_date done [23:05:38]produce_requested_data done [23:05:38]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162967,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [23:05:38]process_action_free close_receipt [23:05:38]json_value_free [23:05:38]json_value_free done [23:05:38]process_json_proto returns [23:05:38]Send response to host [23:05:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162967,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [23:05:38]free response buf [23:05:38]execute_script done [23:05:38]execute_script returns [23:05:38]free content buf [23:05:38]Sock 9.Close socket [23:05:38]Sock 9.Thread stoped [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]accept exits with 7 [23:12:43]New connection [23:12:43]New thread 3066879332 created [23:12:43]Thread 3066735972 joined [23:12:43]Waiting for new connection... [23:12:43] Sock 7.Parse request [23:12:43]Sock 7.Check first char [23:12:43]Sock 7.First char is OK [23:12:43]request: POST /json_proto HTTP/1.0 [23:12:43]Method: POST [23:12:43]URL: /json_proto [23:12:43]Method is POST - this is cgi request [23:12:43]url: /json_proto [23:12:43]query_string will be loaded in cgi processing [23:12:43]execute_cgi json_proto POST (null) [23:12:43]execute_cgi path=json_proto method=POST [23:12:43]POST find Content-Length [23:12:43]Host: 172.17.39.67:8080 [23:12:43]Content-Length: 823 [23:12:43]Content-Type: application/json [23:12:43] [23:12:43]POST finish read [23:12:43]Found Content-Length = 823 [23:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.050, "sum" : 729.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" : 729.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:43]execute_script... [23:12: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)1319585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.050, "sum" : 729.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" : 729.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:43]POST & json_proto [23:12:43]process_json_proto [23:12:43]json parsed OK: [23:12:43]protocol is kg_v1.0 [23:12:43]action value=close_receipt [23:12:43]process_action close_receipt [23:12:43]cmd_close_receipt [23:12:43]MH_GetDate [23:12:43]Write to MH i2c: F0 00 00 69 46 9E [23:12:43]Write i2c OK [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: F0 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: F0 09 00 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: F0 09 00 69 46 00 6E 5B 94 66 B6 85 93 66 9E [23:12:43]GetLastDocTimeStamp 1720998338 [23:12:43]current date 1720998766 [23:12:43]FM_GetShiftState [23:12:43]SAM_PROTO_GetShiftState [23:12:43]wFMCommunicate request_size=4 [23:12:43]MH_SAM_APDU [23:12:43]CAPDU: 80 13 01 00 [23:12:43]Write to MH i2c: E2 08 00 6A 46 80 13 01 00 00 00 00 00 2D [23:12:43]Write i2c OK [23:12:43]MH_I2C_Read... [23:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:43]Read from MH i2c: E2 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 0E 00 [23:12:43]MH_I2C_Read... [23:12:43]Read from MH i2c: E2 0E 00 6A 46 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 63 [23:12:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:12:43]wFMCommunicate OK [23:12:43]SAM_PROTO_GetShiftState done [23:12:43]FM_GetShiftState done [23:12:43]opened in 1720915483 [23:12:43]opened+sec_in_day 1721001883 [23:12:43]quantity*price = 72963 [23:12:43]sum+1 = 72964 [23:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 729.63 НСП 1% : 6.46 НДС 12% : 77.48 Наличными: 0.00 Безнал.: 729.63 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 280 14.07.2024 23:12 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162968 ФПД: 186593107264891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T231246&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162968&fm=186593107264891&tin=02508201610067®Number=0000000000090858&sum=72963 [23:12:44]StoreToDocumentArchive [23:12:44]shift 463 fd 162968 [23:12:44]save to /storage/0463/doc_00162968 [23:12:44]save last doc name /storage/0463/doc_00162968 to /storage/kkm_last_doc_name [23:12:44]save OK [23:12:44]Clear old archive folders... [23:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:12:44]tlvbuf is B6F466D0 [23:12:44]SAM_PROTO_ClearQueue [23:12:44]wFMCommunicate request_size=4 [23:12:44]MH_SAM_APDU [23:12:44]CAPDU: 80 09 00 00 [23:12:44]Write to MH i2c: E2 08 00 77 46 80 09 00 00 00 00 00 00 2F [23:12:44]Write i2c OK [23:12:44]MH_I2C_Read... [23:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:44]Read from MH i2c: E2 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: E2 03 00 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: E2 03 00 77 46 00 90 00 31 [23:12:44]RAPDU: 90 00 [23:12:44]wFMCommunicate OK [23:12:44]SAM_PROTO_ClearQueue done [23:12:44]KKMCreateOFDPacket [23:12:44]OFDProtocolAddRootSTLVToBuf [23:12:44]FM_MakeSignedData [23:12:44]FM_MakeSignedData [23:12:44]SAM_PROTO_SignData [23:12:44]wFMCommunicate request_size=4 [23:12:44]MH_SAM_APDU [23:12:44]CAPDU: 80 0D 01 02 [23:12:44]Write to MH i2c: E2 08 00 78 46 80 0D 01 02 00 00 00 00 37 [23:12:44]Write i2c OK [23:12:44]MH_I2C_Read... [23:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:44]Read from MH i2c: E2 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: E2 03 00 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: E2 03 00 78 46 00 90 00 32 [23:12:44]RAPDU: 90 00 [23:12:44]wFMCommunicate OK [23:12:44]wFMCommunicate request_size=255 [23:12:44]MH_SAM_APDU [23:12:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 03 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 6E 5B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7C 02 00 35 04 06 00 [23:12:44]Write to MH i2c: E2 02 01 79 46 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 03 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 6E 5B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7C 02 00 35 04 06 00 00 00 7E [23:12:44]Write i2c OK [23:12:44]MH_I2C_Read... [23:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:44]Read from MH i2c: E2 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: E2 03 00 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: E2 03 00 79 46 00 90 00 33 [23:12:44]RAPDU: 90 00 [23:12:44]wFMCommunicate OK [23:12:44]wFMCommunicate request_size=11 [23:12:44]MH_SAM_APDU [23:12:44]CAPDU: 80 0D 02 02 06 A9 B4 97 E0 45 7B [23:12:44]Write to MH i2c: E2 0E 00 7A 46 80 0D 02 02 06 00 A9 B4 97 E0 45 7B 00 00 DA [23:12:44]Write i2c OK [23:12:44]MH_I2C_Read... [23:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:44]Read from MH i2c: E2 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: E2 03 00 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: E2 03 00 7A 46 00 90 00 34 [23:12:44]RAPDU: 90 00 [23:12:44]wFMCommunicate OK [23:12:44]wFMCommunicate request_size=4 [23:12:44]MH_SAM_APDU [23:12:44]CAPDU: 80 0D 03 02 [23:12:44]Write to MH i2c: E2 08 00 7B 46 80 0D 03 02 00 00 00 00 3C [23:12:44]Write i2c OK [23:12:44]MH_I2C_Read... [23:12:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:44]Read from MH i2c: E2 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: E2 0B 00 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: E2 0B 00 7B 46 00 7B BF 5B 23 D5 CA 23 BA 90 00 71 [23:12:44]RAPDU: 7B BF 5B 23 D5 CA 23 BA 90 00 [23:12:44]wFMCommunicate OK [23:12:44]SAM_PROTO_SignData done [23:12:44]FM_MakeSignedData done [23:12:44]CreateOFDProtocolMessage [23:12:44]wFMCommunicate request_size=4 [23:12:44]MH_SAM_APDU [23:12:44]CAPDU: 80 11 00 00 [23:12:44]Write to MH i2c: E2 08 00 7C 46 80 11 00 00 00 00 00 00 3C [23:12:44]Write i2c OK [23:12:44]MH_I2C_Read... [23:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:44]Read from MH i2c: E2 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: E2 17 00 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: E2 17 00 7C 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9C [23:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:12:44]wFMCommunicate OK [23:12:44]CreateOFDProtocolMessage done [23:12:44]OFDSenderStorePacket 162968 [23:12:44]StoreOFDPacket docnum=162968 [23:12:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 7A F9 08 01 63 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 03 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 6E 5B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7C 02 00 35 04 06 00 A9 B4 97 E0 45 7B 7B BF 5B 23 D5 CA 23 BA [23:12:44]CheckFolder [23:12:44]dirname=/storage/ofd_packets [23:12:44]CheckFolder done [23:12:44]ProducePacketName [23:12:44]name=ofd_packets/00162968 [23:12:44]NVStorageSaveData ofd_packets/00162968 [23:12:44]File name is /storage/ofd_packets/00162968 [23:12:44]Write 302 bytes [23:12:44]NVStorageSaveData done [23:12:44]OFDSenderStorePacket done [23:12:44]KKMCreateOFDPacket done [23:12:44]NVStorageSaveData kkm_last_timestamp [23:12:44]File name is /storage/kkm_last_timestamp [23:12:44]Write 4 bytes [23:12:44]NVStorageSaveData done [23:12:44]ExternCall_PrintAddStr [23:12:44]wPrintStart [23:12:44]Write to MH i2c: 01 00 00 7D 46 C3 [23:12:44]Write i2c OK [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: 01 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: 01 07 00 [23:12:44]MH_I2C_Read... [23:12:44]Read from MH i2c: 01 07 00 7D 46 00 00 00 00 00 FF 0F D8 [23:12:44]RasterBufferAndPrint [23:12:44]line Счет N : (1)1319585 [23:12:44]line ИНН: 02508201610067 [23:12:44]line Контрольно-Кассовый Чек [23:12:44]line ПРОДАЖА [23:12:44]line ТРК (МРК, ГНК) : 41 [23:12:44]line Товар: 2710194210 [23:12:44]line ДТ(л)-К-5 [23:12:44]line 10.050 * 72.60 [23:12:44]line = 729.63 [23:12:44]line НДС 12% НСП 1% [23:12:44]line > о реализуемом товаре [23:12:44]line ИТОГО: 729.63 [23:12:44]line НСП 1% : 6.46 [23:12:44]line НДС 12% : 77.48 [23:12:44]line Наличными: 0.00 [23:12:44]line Безнал.: 729.63 [23:12:44]line Место: АЗС № 140 "Партнер Нефть" [23:12:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:12:44]line СНО: Общий режим [23:12:44]line Чек 280 14.07.2024 23:12 [23:12:44]line Смена: 463 ФФД: 1.0 [23:12:44]line ЗНМ: 0300000129 [23:12:44]line РНМ: 0000000000090858 [23:12:44]line Версия ККМ: 001 [23:12:44]line Платежная система: Бакай Банк [23:12:44]line ФМ: 0000000000874899 [23:12:44]line ФД: 162968 [23:12:44]line ФПД: 186593107264891 [23:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T231246&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162968&fm=186593107264891&tin=02508201610067®Number=0000000000090858&sum=72963 [23:12:45]OFD Sender: Processing packet 162968 [packets to send 106, broken 105] [23:12:45]ProducePacketName [23:12:45]name=ofd_packets/00162968 [23:12:45]OFD Sender: To server: pG, [23:12:45]CommunicateWithHost lk.salyk.kg:30040 [23:12:45]ConnectInit lk.salyk.kg [23:12:45]written 0, free lines is 4095 [23:12:45]Connected sock=10 [23:12:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 7A F9 08 01 63 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 42 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 03 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 6E 5B 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7C 02 00 35 04 06 00 A9 B4 97 E0 45 7B 7B BF 5B 23 D5 CA 23 BA [23:12:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2A B9 47 00 79 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7C 02 00 F4 03 04 00 7A 07 94 66 B6 04 01 00 00 3B 91 0C 9C CA 00 07 7B [23:12:45]CommunicateWithHost err = 0 [23:12:45]CheckOFDResponse [23:12:45]1017 (14) - 77093643461234 [23:12:45]1041 (16) - 0000000000874899 [23:12:45]1040 (4) - 162968 [23:12:45]1012 (4) - 14.07.2024 17:14 [23:12:45]1206 (1) - 0 [23:12:45]OFD Sender: Remove packet 162968 [23:12:45]ProducePacketName [23:12:45]name=ofd_packets/00162968 [23:12:45]NVStorageDeleteData [23:12:45]Write to MH i2c: 01 00 00 A7 46 ED [23:12:45]Write i2c OK [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: 01 [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: 01 07 00 [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: 01 07 00 A7 46 00 00 00 00 00 E6 0C E6 [23:12:45]RasterBufferAndPrint [23:12:45]line [23:12:45]line [23:12:45]line [23:12:45]line [23:12:45]line [23:12:45]written 0, free lines is 3311 [23:12:45]MH_Cut [23:12:45]Write to MH i2c: D1 01 00 AE 46 01 C6 [23:12:45]Write i2c OK [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: D1 [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: D1 01 00 [23:12:45]MH_I2C_Read... [23:12:45]Read from MH i2c: D1 01 00 AE 46 00 C5 [23:12:45]Write to MH i2c: 01 00 00 AF 46 F5 [23:12:45]Write i2c OK [23:12:45]MH_I2C_Read... [23:12:45]OFD Sender: No OFD packet to send [23:12:46]*** Cut start [23:12:46]*** Purtial cut [23:12:46]*** CUTSNS_PIN = 0 [23:12:46]*** Stage 1: CUTSNS_PIN = 1 [23:12:48]Read from MH i2c: 01 [23:12:48]MH_I2C_Read... [23:12:48]*** Stop cut motor [23:12:48]*** Cut end [23:12:48]Read from MH i2c: 01 07 00 [23:12:48]MH_I2C_Read... [23:12:48]Read from MH i2c: 01 07 00 AF 46 00 00 00 00 00 FF 0F 0A [23:12:48]process_action close_receipt done [23:12:48]requested_data is exist [23:12:48]produce_requested_data [23:12:48]requested_item fm.sn is exist - process it [23:12:48]wFMCommunicate request_size=4 [23:12:48]MH_SAM_APDU [23:12:48]CAPDU: 80 11 00 00 [23:12:48]Write to MH i2c: E2 08 00 B0 46 80 11 00 00 00 00 00 00 70 [23:12:48]Write i2c OK [23:12:48]MH_I2C_Read... [23:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:48]Read from MH i2c: E2 [23:12:48]MH_I2C_Read... [23:12:48]Read from MH i2c: E2 17 00 [23:12:48]MH_I2C_Read... [23:12:48]Read from MH i2c: E2 17 00 B0 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D0 [23:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:12:48]wFMCommunicate OK [23:12:48]requested_item fd.num is exist - process it [23:12:48]SAM_PROTO_GetFieldsCounters [23:12:48]wFMCommunicate request_size=4 [23:12:48]MH_SAM_APDU [23:12:48]CAPDU: 80 13 00 00 [23:12:48]Write to MH i2c: E2 08 00 B1 46 80 13 00 00 00 00 00 00 73 [23:12:48]Write i2c OK [23:12:48]MH_I2C_Read... [23:12:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:48]Read from MH i2c: E2 [23:12:48]MH_I2C_Read... [23:12:48]Read from MH i2c: E2 62 00 [23:12:48]MH_I2C_Read... [23:12:48]Read from MH i2c: E2 62 00 B1 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 98 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [23:12:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 98 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:12:48]wFMCommunicate OK [23:12:48]SAM_PROTO_GetFieldsCounters done [23:12:48]requested_item shift.num is exist - process it [23:12:48]requested_item shift.opened is exist - process it [23:12:48]req_shift_opened [23:12:48]FM_GetShiftState [23:12:48]SAM_PROTO_GetShiftState [23:12:48]wFMCommunicate request_size=4 [23:12:48]MH_SAM_APDU [23:12:48]CAPDU: 80 13 01 00 [23:12:48]Write to MH i2c: E2 08 00 B2 46 80 13 01 00 00 00 00 00 75 [23:12:48]Write i2c OK [23:12:48]MH_I2C_Read... [23:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:48]Read from MH i2c: E2 [23:12:48]MH_I2C_Read... [23:12:48]Read from MH i2c: E2 0E 00 [23:12:48]MH_I2C_Read... [23:12:48]Read from MH i2c: E2 0E 00 B2 46 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 AB [23:12:48]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:12:48]wFMCommunicate OK [23:12:48]SAM_PROTO_GetShiftState done [23:12:48]FM_GetShiftState done [23:12:48]req_shift_opened done [23:12:48]requested_item shift.open_date is exist - process it [23:12:48]req_shift_open_date [23:12:48]req_shift_open_date done [23:12:48]produce_requested_data done [23:12:48]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162968,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [23:12:48]process_action_free close_receipt [23:12:48]json_value_free [23:12:48]json_value_free done [23:12:48]process_json_proto returns [23:12:48]Send response to host [23:12:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162968,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [23:12:48]free response buf [23:12:48]execute_script done [23:12:48]execute_script returns [23:12:48]free content buf [23:12:48]Sock 7.Close socket [23:12:48]Sock 7.Thread stoped [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:19]accept exits with 9 [23:15:19]New connection [23:15:19]New thread 3066735972 created [23:15:19]Thread 3066879332 joined [23:15:19]Waiting for new connection... [23:15:19] Sock 9.Parse request [23:15:19]Sock 9.Check first char [23:15:19]Sock 9.First char is OK [23:15:19]request: POST /json_proto HTTP/1.0 [23:15:19]Method: POST [23:15:19]URL: /json_proto [23:15:19]Method is POST - this is cgi request [23:15:19]url: /json_proto [23:15:19]query_string will be loaded in cgi processing [23:15:19]execute_cgi json_proto POST (null) [23:15:19]execute_cgi path=json_proto method=POST [23:15:19]POST find Content-Length [23:15:19]Host: 172.17.39.67:8080 [23:15:19]Content-Length: 804 [23:15:19]Content-Type: application/json [23:15:19] [23:15:19]POST finish read [23:15:19]Found Content-Length = 804 [23:15:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 19.310, "sum" : 1280.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1280.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:19]execute_script... [23:15: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)1319586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 19.310, "sum" : 1280.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1280.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:19]POST & json_proto [23:15:19]process_json_proto [23:15:19]json parsed OK: [23:15:19]protocol is kg_v1.0 [23:15:19]action value=close_receipt [23:15:19]process_action close_receipt [23:15:19]cmd_close_receipt [23:15:19]MH_GetDate [23:15:19]Write to MH i2c: F0 00 00 B3 46 E8 [23:15:19]Write i2c OK [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: F0 [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: F0 09 00 [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: F0 09 00 B3 46 00 0A 5C 94 66 B6 85 93 66 85 [23:15:19]GetLastDocTimeStamp 1720998766 [23:15:19]current date 1720998922 [23:15:19]FM_GetShiftState [23:15:19]SAM_PROTO_GetShiftState [23:15:19]wFMCommunicate request_size=4 [23:15:19]MH_SAM_APDU [23:15:19]CAPDU: 80 13 01 00 [23:15:19]Write to MH i2c: E2 08 00 B4 46 80 13 01 00 00 00 00 00 77 [23:15:19]Write i2c OK [23:15:19]MH_I2C_Read... [23:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:19]Read from MH i2c: E2 [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: E2 0E 00 [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: E2 0E 00 B4 46 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 AD [23:15:19]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:15:19]wFMCommunicate OK [23:15:19]SAM_PROTO_GetShiftState done [23:15:19]FM_GetShiftState done [23:15:19]opened in 1720915483 [23:15:19]opened+sec_in_day 1721001883 [23:15:19]quantity*price = 128025 [23:15:19]sum+1 = 128026 [23:15:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1280.25 НСП 1% : 11.33 НДС 12% : 135.96 Наличными: 0.00 Безнал.: 1280.25 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 281 14.07.2024 23:15 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162969 ФПД: 216495571003441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T231522&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162969&fm=216495571003441&tin=02508201610067®Number=0000000000090858&sum=128025 [23:15:20]StoreToDocumentArchive [23:15:20]shift 463 fd 162969 [23:15:20]save to /storage/0463/doc_00162969 [23:15:20]save last doc name /storage/0463/doc_00162969 to /storage/kkm_last_doc_name [23:15:20]save OK [23:15:20]Clear old archive folders... [23:15:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:15:20]tlvbuf is 01235820 [23:15:20]SAM_PROTO_ClearQueue [23:15:20]wFMCommunicate request_size=4 [23:15:20]MH_SAM_APDU [23:15:20]CAPDU: 80 09 00 00 [23:15:20]Write to MH i2c: E2 08 00 C1 46 80 09 00 00 00 00 00 00 79 [23:15:20]Write i2c OK [23:15:20]MH_I2C_Read... [23:15:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:15:20]Read from MH i2c: E2 [23:15:20]MH_I2C_Read... [23:15:20]Read from MH i2c: E2 03 00 [23:15:20]MH_I2C_Read... [23:15:20]Read from MH i2c: E2 03 00 C1 46 00 90 00 7B [23:15:20]RAPDU: 90 00 [23:15:20]wFMCommunicate OK [23:15:20]SAM_PROTO_ClearQueue done [23:15:20]KKMCreateOFDPacket [23:15:20]OFDProtocolAddRootSTLVToBuf [23:15:20]FM_MakeSignedData [23:15:20]FM_MakeSignedData [23:15:20]SAM_PROTO_SignData [23:15:20]wFMCommunicate request_size=4 [23:15:20]MH_SAM_APDU [23:15:20]CAPDU: 80 0D 01 02 [23:15:20]Write to MH i2c: E2 08 00 C2 46 80 0D 01 02 00 00 00 00 81 [23:15:20]Write i2c OK [23:15:20]MH_I2C_Read... [23:15:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:15:20]Read from MH i2c: E2 [23:15:20]MH_I2C_Read... [23:15:20]Read from MH i2c: E2 03 00 [23:15:20]MH_I2C_Read... [23:15:20]Read from MH i2c: E2 03 00 C2 46 00 90 00 7C [23:15:20]RAPDU: 90 00 [23:15:20]wFMCommunicate OK [23:15:20]wFMCommunicate request_size=255 [23:15:20]MH_SAM_APDU [23:15: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 6E 4B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 19 F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 F4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 0A 5C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7C 02 00 35 04 06 00 C4 [23:15:20]Write to MH i2c: E2 02 01 C3 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 4B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 19 F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 F4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 0A 5C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7C 02 00 35 04 06 00 C4 00 00 66 [23:15:20]Write i2c OK [23:15:20]MH_I2C_Read... [23:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:20]Read from MH i2c: E2 [23:15:20]MH_I2C_Read... [23:15:20]Read from MH i2c: E2 03 00 [23:15:20]MH_I2C_Read... [23:15:20]Read from MH i2c: E2 03 00 C3 46 00 90 00 7D [23:15:20]RAPDU: 90 00 [23:15:20]wFMCommunicate OK [23:15:20]wFMCommunicate request_size=10 [23:15:20]MH_SAM_APDU [23:15:20]CAPDU: 80 0D 02 02 05 E6 CD 9A E8 31 [23:15:20]Write to MH i2c: E2 0D 00 C4 46 80 0D 02 02 05 00 E6 CD 9A E8 31 00 00 F4 [23:15:20]Write i2c OK [23:15:20]MH_I2C_Read... [23:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:20]Read from MH i2c: E2 [23:15:20]MH_I2C_Read... [23:15:20]Read from MH i2c: E2 03 00 [23:15:20]MH_I2C_Read... [23:15:20]Read from MH i2c: E2 03 00 C4 46 00 90 00 7E [23:15:20]RAPDU: 90 00 [23:15:20]wFMCommunicate OK [23:15:20]wFMCommunicate request_size=4 [23:15:20]MH_SAM_APDU [23:15:20]CAPDU: 80 0D 03 02 [23:15:20]Write to MH i2c: E2 08 00 C5 46 80 0D 03 02 00 00 00 00 86 [23:15:20]Write i2c OK [23:15:20]MH_I2C_Read... [23:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:15:20]Read from MH i2c: E2 [23:15:20]MH_I2C_Read... [23:15:20]Read from MH i2c: E2 0B 00 [23:15:20]MH_I2C_Read... [23:15:20]Read from MH i2c: E2 0B 00 C5 46 00 4B C9 3C 5C A6 40 78 45 90 00 D6 [23:15:20]RAPDU: 4B C9 3C 5C A6 40 78 45 90 00 [23:15:20]wFMCommunicate OK [23:15:20]SAM_PROTO_SignData done [23:15:20]FM_MakeSignedData done [23:15:20]CreateOFDProtocolMessage [23:15:20]wFMCommunicate request_size=4 [23:15:20]MH_SAM_APDU [23:15:20]CAPDU: 80 11 00 00 [23:15:20]Write to MH i2c: E2 08 00 C6 46 80 11 00 00 00 00 00 00 86 [23:15:20]Write i2c OK [23:15:20]MH_I2C_Read... [23:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:21]Read from MH i2c: E2 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: E2 17 00 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: E2 17 00 C6 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E6 [23:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:15:21]wFMCommunicate OK [23:15:21]CreateOFDProtocolMessage done [23:15:21]OFDSenderStorePacket 162969 [23:15:21]StoreOFDPacket docnum=162969 [23:15:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 10 94 07 01 BB 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 4B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 19 F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 F4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 0A 5C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7C 02 00 35 04 06 00 C4 E6 CD 9A E8 31 4B C9 3C 5C A6 40 78 45 [23:15:21]CheckFolder [23:15:21]dirname=/storage/ofd_packets [23:15:21]CheckFolder done [23:15:21]ProducePacketName [23:15:21]name=ofd_packets/00162969 [23:15:21]NVStorageSaveData ofd_packets/00162969 [23:15:21]File name is /storage/ofd_packets/00162969 [23:15:21]Write 301 bytes [23:15:21]NVStorageSaveData done [23:15:21]OFDSenderStorePacket done [23:15:21]KKMCreateOFDPacket done [23:15:21]NVStorageSaveData kkm_last_timestamp [23:15:21]File name is /storage/kkm_last_timestamp [23:15:21]Write 4 bytes [23:15:21]NVStorageSaveData done [23:15:21]ExternCall_PrintAddStr [23:15:21]wPrintStart [23:15:21]Write to MH i2c: 01 00 00 C7 46 0D [23:15:21]Write i2c OK [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: 01 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: 01 07 00 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: 01 07 00 C7 46 00 00 00 00 00 FF 0F 22 [23:15:21]RasterBufferAndPrint [23:15:21]line Счет N : (1)1319586 [23:15:21]line ИНН: 02508201610067 [23:15:21]line Контрольно-Кассовый Чек [23:15:21]line ПРОДАЖА [23:15:21]line ТРК (МРК, ГНК) : 63 [23:15:21]line Товар: 2710124130 [23:15:21]line Аи-92-К-5 [23:15:21]line 19.310 * 66.30 [23:15:21]line = 1280.25 [23:15:21]line НДС 12% НСП 1% [23:15:21]line > о реализуемом товаре [23:15:21]line ИТОГО: 1280.25 [23:15:21]line НСП 1% : 11.33 [23:15:21]line НДС 12% : 135.96 [23:15:21]line Наличными: 0.00 [23:15:21]line Безнал.: 1280.25 [23:15:21]line Место: АЗС № 140 "Партнер Нефть" [23:15:21]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:15:21]line СНО: Общий режим [23:15:21]line Чек 281 14.07.2024 23:15 [23:15:21]line Смена: 463 ФФД: 1.0 [23:15:21]line ЗНМ: 0300000129 [23:15:21]line РНМ: 0000000000090858 [23:15:21]line Версия ККМ: 001 [23:15:21]line Платежная система: O! деньги [23:15:21]line ФМ: 0000000000874899 [23:15:21]line ФД: 162969 [23:15:21]line ФПД: 216495571003441 [23:15:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T231522&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162969&fm=216495571003441&tin=02508201610067®Number=0000000000090858&sum=128025 [23:15:21]OFD Sender: Processing packet 162969 [packets to send 106, broken 105] [23:15:21]ProducePacketName [23:15:21]name=ofd_packets/00162969 [23:15:21]OFD Sender: To server: pG, [23:15:21]CommunicateWithHost lk.salyk.kg:30040 [23:15:21]ConnectInit lk.salyk.kg [23:15:21]written 0, free lines is 4095 [23:15:21]Connected sock=10 [23:15:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 10 94 07 01 BB 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 4B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 19 F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 F4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 0A 5C 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7C 02 00 35 04 06 00 C4 E6 CD 9A E8 31 4B C9 3C 5C A6 40 78 45 [23:15:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 56 5A 47 00 8D B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7C 02 00 F4 03 04 00 17 08 94 66 B6 04 01 00 00 D2 E4 8E 52 AC 7C BD B3 [23:15:21]CommunicateWithHost err = 0 [23:15:21]CheckOFDResponse [23:15:21]1017 (14) - 77093643461234 [23:15:21]1041 (16) - 0000000000874899 [23:15:21]1040 (4) - 162969 [23:15:21]1012 (4) - 14.07.2024 17:17 [23:15:21]1206 (1) - 0 [23:15:21]OFD Sender: Remove packet 162969 [23:15:21]ProducePacketName [23:15:21]name=ofd_packets/00162969 [23:15:21]NVStorageDeleteData [23:15:21]Write to MH i2c: 01 00 00 F1 46 37 [23:15:21]Write i2c OK [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: 01 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: 01 07 00 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: 01 07 00 F1 46 00 00 00 00 00 EE 0C 38 [23:15:21]RasterBufferAndPrint [23:15:21]line [23:15:21]line [23:15:21]line [23:15:21]line [23:15:21]line [23:15:21]written 0, free lines is 3316 [23:15:21]MH_Cut [23:15:21]Write to MH i2c: D1 01 00 F8 46 01 10 [23:15:21]Write i2c OK [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: D1 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: D1 01 00 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: D1 01 00 F8 46 00 0F [23:15:21]Write to MH i2c: 01 00 00 F9 46 3F [23:15:21]Write i2c OK [23:15:21]MH_I2C_Read... [23:15:22]OFD Sender: No OFD packet to send [23:15:22]*** Cut start [23:15:22]*** Purtial cut [23:15:22]*** Stage 1: CUTSNS_PIN = 1 [23:15:22]Read from MH i2c: 01 [23:15:22]MH_I2C_Read... [23:15:22]*** Stop cut motor [23:15:22]*** Cut end [23:15:22]Read from MH i2c: 01 07 00 [23:15:22]MH_I2C_Read... [23:15:22]Read from MH i2c: 01 07 00 F9 46 00 00 00 00 00 FF 0F 54 [23:15:22]process_action close_receipt done [23:15:22]requested_data is exist [23:15:22]produce_requested_data [23:15:22]requested_item fm.sn is exist - process it [23:15:22]wFMCommunicate request_size=4 [23:15:22]MH_SAM_APDU [23:15:22]CAPDU: 80 11 00 00 [23:15:22]Write to MH i2c: E2 08 00 FA 46 80 11 00 00 00 00 00 00 BA [23:15:22]Write i2c OK [23:15:22]MH_I2C_Read... [23:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:22]Read from MH i2c: E2 [23:15:22]MH_I2C_Read... [23:15:22]Read from MH i2c: E2 17 00 [23:15:22]MH_I2C_Read... [23:15:22]Read from MH i2c: E2 17 00 FA 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1A [23:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:15:22]wFMCommunicate OK [23:15:22]requested_item fd.num is exist - process it [23:15:22]SAM_PROTO_GetFieldsCounters [23:15:22]wFMCommunicate request_size=4 [23:15:22]MH_SAM_APDU [23:15:22]CAPDU: 80 13 00 00 [23:15:22]Write to MH i2c: E2 08 00 FB 46 80 13 00 00 00 00 00 00 BD [23:15:22]Write i2c OK [23:15:22]MH_I2C_Read... [23:15:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:15:23]Read from MH i2c: E2 [23:15:23]MH_I2C_Read... [23:15:23]Read from MH i2c: E2 62 00 [23:15:23]MH_I2C_Read... [23:15:23]Read from MH i2c: E2 62 00 FB 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 99 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [23:15:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 99 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:15:23]wFMCommunicate OK [23:15:23]SAM_PROTO_GetFieldsCounters done [23:15:23]requested_item shift.num is exist - process it [23:15:23]requested_item shift.opened is exist - process it [23:15:23]req_shift_opened [23:15:23]FM_GetShiftState [23:15:23]SAM_PROTO_GetShiftState [23:15:23]wFMCommunicate request_size=4 [23:15:23]MH_SAM_APDU [23:15:23]CAPDU: 80 13 01 00 [23:15:23]Write to MH i2c: E2 08 00 FC 46 80 13 01 00 00 00 00 00 BF [23:15:23]Write i2c OK [23:15:23]MH_I2C_Read... [23:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:23]Read from MH i2c: E2 [23:15:23]MH_I2C_Read... [23:15:23]Read from MH i2c: E2 0E 00 [23:15:23]MH_I2C_Read... [23:15:23]Read from MH i2c: E2 0E 00 FC 46 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F5 [23:15:23]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:15:23]wFMCommunicate OK [23:15:23]SAM_PROTO_GetShiftState done [23:15:23]FM_GetShiftState done [23:15:23]req_shift_opened done [23:15:23]requested_item shift.open_date is exist - process it [23:15:23]req_shift_open_date [23:15:23]req_shift_open_date done [23:15:23]produce_requested_data done [23:15:23]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162969,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [23:15:23]process_action_free close_receipt [23:15:23]json_value_free [23:15:23]json_value_free done [23:15:23]process_json_proto returns [23:15:23]Send response to host [23:15:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162969,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [23:15:23]free response buf [23:15:23]execute_script done [23:15:23]execute_script returns [23:15:23]free content buf [23:15:23]Sock 9.Close socket [23:15:23]Sock 9.Thread stoped [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:07]accept exits with 7 [23:32:07]New connection [23:32:07]New thread 3066879332 created [23:32:07]Thread 3066735972 joined [23:32:07]Waiting for new connection... [23:32:07] Sock 7.Parse request [23:32:07]Sock 7.Check first char [23:32:07]Sock 7.First char is OK [23:32:07]request: POST /json_proto HTTP/1.0 [23:32:07]Method: POST [23:32:07]URL: /json_proto [23:32:07]Method is POST - this is cgi request [23:32:07]url: /json_proto [23:32:07]query_string will be loaded in cgi processing [23:32:07]execute_cgi json_proto POST (null) [23:32:07]execute_cgi path=json_proto method=POST [23:32:07]POST find Content-Length [23:32:07]Host: 172.17.39.67:8080 [23:32:07]Content-Length: 802 [23:32:07]Content-Type: application/json [23:32:07] [23:32:07]POST finish read [23:32:07]Found Content-Length = 802 [23:32:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:07]execute_script... [23:32:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:07]POST & json_proto [23:32:07]process_json_proto [23:32:07]json parsed OK: [23:32:07]protocol is kg_v1.0 [23:32:07]action value=close_receipt [23:32:07]process_action close_receipt [23:32:07]cmd_close_receipt [23:32:07]MH_GetDate [23:32:07]Write to MH i2c: F0 00 00 FD 46 32 [23:32:07]Write i2c OK [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: F0 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: F0 09 00 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: F0 09 00 FD 46 00 FB 5F 94 66 B6 85 93 66 C3 [23:32:07]GetLastDocTimeStamp 1720998922 [23:32:07]current date 1720999931 [23:32:07]FM_GetShiftState [23:32:07]SAM_PROTO_GetShiftState [23:32:07]wFMCommunicate request_size=4 [23:32:07]MH_SAM_APDU [23:32:07]CAPDU: 80 13 01 00 [23:32:07]Write to MH i2c: E2 08 00 FE 46 80 13 01 00 00 00 00 00 C1 [23:32:07]Write i2c OK [23:32:07]MH_I2C_Read... [23:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:07]Read from MH i2c: E2 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: E2 0E 00 [23:32:07]MH_I2C_Read... [23:32:07]Read from MH i2c: E2 0E 00 FE 46 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F7 [23:32:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:32:07]wFMCommunicate OK [23:32:07]SAM_PROTO_GetShiftState done [23:32:07]FM_GetShiftState done [23:32:07]opened in 1720915483 [23:32:07]opened+sec_in_day 1721001883 [23:32:07]quantity*price = 66300 [23:32:07]sum+1 = 66301 [23:32:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 0.00 Безнал.: 663.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 282 14.07.2024 23:32 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162970 ФПД: 131649088220916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T233211&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162970&fm=131649088220916&tin=02508201610067®Number=0000000000090858&sum=66300 [23:32:08]StoreToDocumentArchive [23:32:08]shift 463 fd 162970 [23:32:08]save to /storage/0463/doc_00162970 [23:32:08]save last doc name /storage/0463/doc_00162970 to /storage/kkm_last_doc_name [23:32:08]save OK [23:32:08]Clear old archive folders... [23:32:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:32:08]tlvbuf is 012A8DC0 [23:32:08]SAM_PROTO_ClearQueue [23:32:08]wFMCommunicate request_size=4 [23:32:08]MH_SAM_APDU [23:32:08]CAPDU: 80 09 00 00 [23:32:08]Write to MH i2c: E2 08 00 0B 47 80 09 00 00 00 00 00 00 C4 [23:32:08]Write i2c OK [23:32:08]MH_I2C_Read... [23:32:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:08]Read from MH i2c: E2 [23:32:08]MH_I2C_Read... [23:32:08]Read from MH i2c: E2 03 00 [23:32:08]MH_I2C_Read... [23:32:08]Read from MH i2c: E2 03 00 0B 47 00 90 00 C6 [23:32:08]RAPDU: 90 00 [23:32:08]wFMCommunicate OK [23:32:08]SAM_PROTO_ClearQueue done [23:32:08]KKMCreateOFDPacket [23:32:08]OFDProtocolAddRootSTLVToBuf [23:32:08]FM_MakeSignedData [23:32:08]FM_MakeSignedData [23:32:08]SAM_PROTO_SignData [23:32:08]wFMCommunicate request_size=4 [23:32:08]MH_SAM_APDU [23:32:08]CAPDU: 80 0D 01 02 [23:32:08]Write to MH i2c: E2 08 00 0C 47 80 0D 01 02 00 00 00 00 CC [23:32:08]Write i2c OK [23:32:08]MH_I2C_Read... [23:32:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:08]Read from MH i2c: E2 [23:32:08]MH_I2C_Read... [23:32:08]Read from MH i2c: E2 03 00 [23:32:08]MH_I2C_Read... [23:32:08]Read from MH i2c: E2 03 00 0C 47 00 90 00 C7 [23:32:08]RAPDU: 90 00 [23:32:08]wFMCommunicate OK [23:32:08]wFMCommunicate request_size=255 [23:32:08]MH_SAM_APDU [23:32:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 FB 5F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7C 02 00 35 04 06 00 77 [23:32:08]Write to MH i2c: E2 02 01 0D 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 FB 5F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7C 02 00 35 04 06 00 77 00 00 D2 [23:32:08]Write i2c OK [23:32:08]MH_I2C_Read... [23:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:09]Read from MH i2c: E2 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 03 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 03 00 0D 47 00 90 00 C8 [23:32:09]RAPDU: 90 00 [23:32:09]wFMCommunicate OK [23:32:09]wFMCommunicate request_size=10 [23:32:09]MH_SAM_APDU [23:32:09]CAPDU: 80 0D 02 02 05 BB F1 23 6E F4 [23:32:09]Write to MH i2c: E2 0D 00 0E 47 80 0D 02 02 05 00 BB F1 23 6E F4 00 00 0A [23:32:09]Write i2c OK [23:32:09]MH_I2C_Read... [23:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:09]Read from MH i2c: E2 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 03 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 03 00 0E 47 00 90 00 C9 [23:32:09]RAPDU: 90 00 [23:32:09]wFMCommunicate OK [23:32:09]wFMCommunicate request_size=4 [23:32:09]MH_SAM_APDU [23:32:09]CAPDU: 80 0D 03 02 [23:32:09]Write to MH i2c: E2 08 00 0F 47 80 0D 03 02 00 00 00 00 D1 [23:32:09]Write i2c OK [23:32:09]MH_I2C_Read... [23:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:09]Read from MH i2c: E2 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 0B 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 0B 00 0F 47 00 FC 1E 18 00 FB 5B 82 C0 90 00 9C [23:32:09]RAPDU: FC 1E 18 00 FB 5B 82 C0 90 00 [23:32:09]wFMCommunicate OK [23:32:09]SAM_PROTO_SignData done [23:32:09]FM_MakeSignedData done [23:32:09]CreateOFDProtocolMessage [23:32:09]wFMCommunicate request_size=4 [23:32:09]MH_SAM_APDU [23:32:09]CAPDU: 80 11 00 00 [23:32:09]Write to MH i2c: E2 08 00 10 47 80 11 00 00 00 00 00 00 D1 [23:32:09]Write i2c OK [23:32:09]MH_I2C_Read... [23:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:09]Read from MH i2c: E2 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 17 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: E2 17 00 10 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 31 [23:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:32:09]wFMCommunicate OK [23:32:09]CreateOFDProtocolMessage done [23:32:09]OFDSenderStorePacket 162970 [23:32:09]StoreOFDPacket docnum=162970 [23:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 7A 4A 07 01 B2 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 FB 5F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7C 02 00 35 04 06 00 77 BB F1 23 6E F4 FC 1E 18 00 FB 5B 82 C0 [23:32:09]CheckFolder [23:32:09]dirname=/storage/ofd_packets [23:32:09]CheckFolder done [23:32:09]ProducePacketName [23:32:09]name=ofd_packets/00162970 [23:32:09]NVStorageSaveData ofd_packets/00162970 [23:32:09]File name is /storage/ofd_packets/00162970 [23:32:09]Write 301 bytes [23:32:09]NVStorageSaveData done [23:32:09]OFDSenderStorePacket done [23:32:09]KKMCreateOFDPacket done [23:32:09]NVStorageSaveData kkm_last_timestamp [23:32:09]File name is /storage/kkm_last_timestamp [23:32:09]Write 4 bytes [23:32:09]NVStorageSaveData done [23:32:09]ExternCall_PrintAddStr [23:32:09]wPrintStart [23:32:09]Write to MH i2c: 01 00 00 11 47 58 [23:32:09]Write i2c OK [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: 01 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: 01 07 00 [23:32:09]MH_I2C_Read... [23:32:09]Read from MH i2c: 01 07 00 11 47 00 00 00 00 00 FF 0F 6D [23:32:09]RasterBufferAndPrint [23:32:09]line Счет N : (1)1319587 [23:32:09]line ИНН: 02508201610067 [23:32:09]line Контрольно-Кассовый Чек [23:32:09]line ПРОДАЖА [23:32:09]line ТРК (МРК, ГНК) : 53 [23:32:09]line Товар: 2710124130 [23:32:09]line Аи-92-К-5 [23:32:09]line 10.000 * 66.30 [23:32:09]line = 663.00 [23:32:09]line НДС 12% НСП 1% [23:32:09]line > о реализуемом товаре [23:32:09]line ИТОГО: 663.00 [23:32:09]line НСП 1% : 5.87 [23:32:09]line НДС 12% : 70.41 [23:32:09]line Наличными: 0.00 [23:32:09]line Безнал.: 663.00 [23:32:09]line Место: АЗС № 140 "Партнер Нефть" [23:32:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:32:09]line СНО: Общий режим [23:32:09]line Чек 282 14.07.2024 23:32 [23:32:09]line Смена: 463 ФФД: 1.0 [23:32:09]line ЗНМ: 0300000129 [23:32:09]line РНМ: 0000000000090858 [23:32:09]line Версия ККМ: 001 [23:32:09]line Платежная система: O! деньги [23:32:09]line ФМ: 0000000000874899 [23:32:09]line ФД: 162970 [23:32:09]line ФПД: 131649088220916 [23:32:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T233211&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162970&fm=131649088220916&tin=02508201610067®Number=0000000000090858&sum=66300 [23:32:09]OFD Sender: Processing packet 162970 [packets to send 106, broken 105] [23:32:09]ProducePacketName [23:32:09]name=ofd_packets/00162970 [23:32:09]OFD Sender: To server: pG, [23:32:09]CommunicateWithHost lk.salyk.kg:30040 [23:32:09]ConnectInit lk.salyk.kg [23:32:09]written 0, free lines is 4095 [23:32:09]Connected sock=10 [23:32:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 7A 4A 07 01 B2 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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 FB 5F 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7C 02 00 35 04 06 00 77 BB F1 23 6E F4 FC 1E 18 00 FB 5B 82 C0 [23:32:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BE AA 47 00 F8 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7C 02 00 F4 03 04 00 07 0C 94 66 B6 04 01 00 00 15 5A C4 51 94 A3 05 1D [23:32:09]CommunicateWithHost err = 0 [23:32:09]CheckOFDResponse [23:32:09]1017 (14) - 77093643461234 [23:32:09]1041 (16) - 0000000000874899 [23:32:09]1040 (4) - 162970 [23:32:09]1012 (4) - 14.07.2024 17:33 [23:32:09]1206 (1) - 0 [23:32:09]OFD Sender: Remove packet 162970 [23:32:09]ProducePacketName [23:32:09]name=ofd_packets/00162970 [23:32:09]NVStorageDeleteData [23:32:10]Write to MH i2c: 01 00 00 3B 47 82 [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: 01 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: 01 07 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: 01 07 00 3B 47 00 00 00 00 00 F3 0C 88 [23:32:10]RasterBufferAndPrint [23:32:10]line [23:32:10]line [23:32:10]line [23:32:10]line [23:32:10]line [23:32:10]written 0, free lines is 3320 [23:32:10]MH_Cut [23:32:10]Write to MH i2c: D1 01 00 42 47 01 5B [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: D1 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: D1 01 00 [23:32:10]MH_I2C_Read... [23:32:10]Read from MH i2c: D1 01 00 42 47 00 5A [23:32:10]Write to MH i2c: 01 00 00 43 47 8A [23:32:10]Write i2c OK [23:32:10]MH_I2C_Read... [23:32:10]OFD Sender: No OFD packet to send [23:32:10]*** Cut start [23:32:10]*** Purtial cut [23:32:10]*** CUTSNS_PIN = 0 [23:32:11]*** Stage 1: CUTSNS_PIN = 1 [23:32:12]Read from MH i2c: 01 [23:32:12]MH_I2C_Read... [23:32:12]*** Stop cut motor [23:32:12]*** Cut end [23:32:12]Read from MH i2c: 01 07 00 [23:32:12]MH_I2C_Read... [23:32:12]Read from MH i2c: 01 07 00 43 47 00 00 00 00 00 FF 0F 9F [23:32:12]process_action close_receipt done [23:32:12]requested_data is exist [23:32:12]produce_requested_data [23:32:12]requested_item fm.sn is exist - process it [23:32:12]wFMCommunicate request_size=4 [23:32:12]MH_SAM_APDU [23:32:12]CAPDU: 80 11 00 00 [23:32:12]Write to MH i2c: E2 08 00 44 47 80 11 00 00 00 00 00 00 05 [23:32:12]Write i2c OK [23:32:12]MH_I2C_Read... [23:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:13]Read from MH i2c: E2 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: E2 17 00 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: E2 17 00 44 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 65 [23:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:32:13]wFMCommunicate OK [23:32:13]requested_item fd.num is exist - process it [23:32:13]SAM_PROTO_GetFieldsCounters [23:32:13]wFMCommunicate request_size=4 [23:32:13]MH_SAM_APDU [23:32:13]CAPDU: 80 13 00 00 [23:32:13]Write to MH i2c: E2 08 00 45 47 80 13 00 00 00 00 00 00 08 [23:32:13]Write i2c OK [23:32:13]MH_I2C_Read... [23:32:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:13]Read from MH i2c: E2 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: E2 62 00 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: E2 62 00 45 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9A 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [23:32:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9A 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:32:13]wFMCommunicate OK [23:32:13]SAM_PROTO_GetFieldsCounters done [23:32:13]requested_item shift.num is exist - process it [23:32:13]requested_item shift.opened is exist - process it [23:32:13]req_shift_opened [23:32:13]FM_GetShiftState [23:32:13]SAM_PROTO_GetShiftState [23:32:13]wFMCommunicate request_size=4 [23:32:13]MH_SAM_APDU [23:32:13]CAPDU: 80 13 01 00 [23:32:13]Write to MH i2c: E2 08 00 46 47 80 13 01 00 00 00 00 00 0A [23:32:13]Write i2c OK [23:32:13]MH_I2C_Read... [23:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:13]Read from MH i2c: E2 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: E2 0E 00 [23:32:13]MH_I2C_Read... [23:32:13]Read from MH i2c: E2 0E 00 46 47 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 40 [23:32:13]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:32:13]wFMCommunicate OK [23:32:13]SAM_PROTO_GetShiftState done [23:32:13]FM_GetShiftState done [23:32:13]req_shift_opened done [23:32:13]requested_item shift.open_date is exist - process it [23:32:13]req_shift_open_date [23:32:13]req_shift_open_date done [23:32:13]produce_requested_data done [23:32:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162970,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [23:32:13]process_action_free close_receipt [23:32:13]json_value_free [23:32:13]json_value_free done [23:32:13]process_json_proto returns [23:32:13]Send response to host [23:32:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162970,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [23:32:13]free response buf [23:32:13]execute_script done [23:32:13]execute_script returns [23:32:13]free content buf [23:32:13]Sock 7.Close socket [23:32:13]Sock 7.Thread stoped [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:41]accept exits with 9 [23:37:41]New connection [23:37:41]New thread 3066735972 created [23:37:41]Thread 3066879332 joined [23:37:41]Waiting for new connection... [23:37:41] Sock 9.Parse request [23:37:41]Sock 9.Check first char [23:37:41]Sock 9.First char is OK [23:37:41]request: POST /json_proto HTTP/1.0 [23:37:41]Method: POST [23:37:41]URL: /json_proto [23:37:41]Method is POST - this is cgi request [23:37:41]url: /json_proto [23:37:41]query_string will be loaded in cgi processing [23:37:41]execute_cgi json_proto POST (null) [23:37:41]execute_cgi path=json_proto method=POST [23:37:41]POST find Content-Length [23:37:41]Host: 172.17.39.67:8080 [23:37:41]Content-Length: 678 [23:37:41]Content-Type: application/json [23:37:41] [23:37:41]POST finish read [23:37:41]Found Content-Length = 678 [23:37:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [23:37:41]execute_script... [23:37: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)1319588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [23:37:41]POST & json_proto [23:37:41]process_json_proto [23:37:41]json parsed OK: [23:37:41]protocol is kg_v1.0 [23:37:41]action value=close_receipt [23:37:41]process_action close_receipt [23:37:41]cmd_close_receipt [23:37:41]MH_GetDate [23:37:41]Write to MH i2c: F0 00 00 47 47 7D [23:37:41]Write i2c OK [23:37:41]MH_I2C_Read... [23:37:41]Read from MH i2c: F0 [23:37:41]MH_I2C_Read... [23:37:41]Read from MH i2c: F0 09 00 [23:37:41]MH_I2C_Read... [23:37:41]Read from MH i2c: F0 09 00 47 47 00 49 61 94 66 B6 85 93 66 5E [23:37:41]GetLastDocTimeStamp 1720999931 [23:37:41]current date 1721000265 [23:37:41]FM_GetShiftState [23:37:41]SAM_PROTO_GetShiftState [23:37:41]wFMCommunicate request_size=4 [23:37:41]MH_SAM_APDU [23:37:41]CAPDU: 80 13 01 00 [23:37:41]Write to MH i2c: E2 08 00 48 47 80 13 01 00 00 00 00 00 0C [23:37:41]Write i2c OK [23:37:41]MH_I2C_Read... [23:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:41]Read from MH i2c: E2 [23:37:41]MH_I2C_Read... [23:37:41]Read from MH i2c: E2 0E 00 [23:37:41]MH_I2C_Read... [23:37:41]Read from MH i2c: E2 0E 00 48 47 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 42 [23:37:41]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:37:41]wFMCommunicate OK [23:37:41]SAM_PROTO_GetShiftState done [23:37:41]FM_GetShiftState done [23:37:41]opened in 1720915483 [23:37:41]opened+sec_in_day 1721001883 [23:37:41]quantity*price = 30033 [23:37:41]sum+1 = 30035 [23:37:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 283 14.07.2024 23:37 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162971 ФПД: 31066556710080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T233745&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162971&fm=31066556710080&tin=02508201610067®Number=0000000000090858&sum=30000 [23:37:42]StoreToDocumentArchive [23:37:42]shift 463 fd 162971 [23:37:42]save to /storage/0463/doc_00162971 [23:37:42]save last doc name /storage/0463/doc_00162971 to /storage/kkm_last_doc_name [23:37:42]save OK [23:37:42]Clear old archive folders... [23:37:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:37:42]tlvbuf is 01228070 [23:37:42]SAM_PROTO_ClearQueue [23:37:42]wFMCommunicate request_size=4 [23:37:42]MH_SAM_APDU [23:37:42]CAPDU: 80 09 00 00 [23:37:42]Write to MH i2c: E2 08 00 55 47 80 09 00 00 00 00 00 00 0E [23:37:42]Write i2c OK [23:37:42]MH_I2C_Read... [23:37:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:42]Read from MH i2c: E2 [23:37:42]MH_I2C_Read... [23:37:42]Read from MH i2c: E2 03 00 [23:37:42]MH_I2C_Read... [23:37:42]Read from MH i2c: E2 03 00 55 47 00 90 00 10 [23:37:42]RAPDU: 90 00 [23:37:42]wFMCommunicate OK [23:37:42]SAM_PROTO_ClearQueue done [23:37:42]KKMCreateOFDPacket [23:37:42]OFDProtocolAddRootSTLVToBuf [23:37:42]FM_MakeSignedData [23:37:42]FM_MakeSignedData [23:37:42]SAM_PROTO_SignData [23:37:42]wFMCommunicate request_size=4 [23:37:42]MH_SAM_APDU [23:37:42]CAPDU: 80 0D 01 02 [23:37:42]Write to MH i2c: E2 08 00 56 47 80 0D 01 02 00 00 00 00 16 [23:37:42]Write i2c OK [23:37:42]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 56 47 00 90 00 11 [23:37:43]RAPDU: 90 00 [23:37:43]wFMCommunicate OK [23:37:43]wFMCommunicate request_size=255 [23:37:43]MH_SAM_APDU [23:37: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 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 1B 01 00 00 F4 03 04 00 49 61 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7C 02 00 35 04 06 00 1C [23:37:43]Write to MH i2c: E2 02 01 57 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 1B 01 00 00 F4 03 04 00 49 61 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7C 02 00 35 04 06 00 1C 00 00 56 [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 57 47 00 90 00 12 [23:37:43]RAPDU: 90 00 [23:37:43]wFMCommunicate OK [23:37:43]wFMCommunicate request_size=10 [23:37:43]MH_SAM_APDU [23:37:43]CAPDU: 80 0D 02 02 05 41 3F 13 BC C0 [23:37:43]Write to MH i2c: E2 0D 00 58 47 80 0D 02 02 05 00 41 3F 13 BC C0 00 00 32 [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 03 00 58 47 00 90 00 13 [23:37:43]RAPDU: 90 00 [23:37:43]wFMCommunicate OK [23:37:43]wFMCommunicate request_size=4 [23:37:43]MH_SAM_APDU [23:37:43]CAPDU: 80 0D 03 02 [23:37:43]Write to MH i2c: E2 08 00 59 47 80 0D 03 02 00 00 00 00 1B [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 0B 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 0B 00 59 47 00 6E 09 EB 24 B6 0A 3E 06 90 00 A6 [23:37:43]RAPDU: 6E 09 EB 24 B6 0A 3E 06 90 00 [23:37:43]wFMCommunicate OK [23:37:43]SAM_PROTO_SignData done [23:37:43]FM_MakeSignedData done [23:37:43]CreateOFDProtocolMessage [23:37:43]wFMCommunicate request_size=4 [23:37:43]MH_SAM_APDU [23:37:43]CAPDU: 80 11 00 00 [23:37:43]Write to MH i2c: E2 08 00 5A 47 80 11 00 00 00 00 00 00 1B [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:43]Read from MH i2c: E2 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 17 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: E2 17 00 5A 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7B [23:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:37:43]wFMCommunicate OK [23:37:43]CreateOFDProtocolMessage done [23:37:43]OFDSenderStorePacket 162971 [23:37:43]StoreOFDPacket docnum=162971 [23:37:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F1 A1 07 01 F7 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 1B 01 00 00 F4 03 04 00 49 61 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7C 02 00 35 04 06 00 1C 41 3F 13 BC C0 6E 09 EB 24 B6 0A 3E 06 [23:37:43]CheckFolder [23:37:43]dirname=/storage/ofd_packets [23:37:43]CheckFolder done [23:37:43]ProducePacketName [23:37:43]name=ofd_packets/00162971 [23:37:43]NVStorageSaveData ofd_packets/00162971 [23:37:43]File name is /storage/ofd_packets/00162971 [23:37:43]Write 301 bytes [23:37:43]NVStorageSaveData done [23:37:43]OFDSenderStorePacket done [23:37:43]KKMCreateOFDPacket done [23:37:43]NVStorageSaveData kkm_last_timestamp [23:37:43]File name is /storage/kkm_last_timestamp [23:37:43]Write 4 bytes [23:37:43]NVStorageSaveData done [23:37:43]ExternCall_PrintAddStr [23:37:43]wPrintStart [23:37:43]Write to MH i2c: 01 00 00 5B 47 A2 [23:37:43]Write i2c OK [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: 01 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: 01 07 00 [23:37:43]MH_I2C_Read... [23:37:43]Read from MH i2c: 01 07 00 5B 47 00 00 00 00 00 FF 0F B7 [23:37:43]RasterBufferAndPrint [23:37:43]line Счет N : (1)1319588 [23:37:43]line ИНН: 02508201610067 [23:37:43]line Контрольно-Кассовый Чек [23:37:43]line ПРОДАЖА [23:37:43]line ТРК (МРК, ГНК) : 63 [23:37:43]line Товар: 2710124130 [23:37:43]line Аи-92-К-5 [23:37:43]line 4.530 * 66.30 [23:37:43]line = 300.34 [23:37:43]line НДС 12% НСП 1% [23:37:43]line > о реализуемом товаре [23:37:43]line ОКРУГЛЕНИЕ: -0.34 [23:37:43]line ИТОГО: 300.00 [23:37:43]line Внесено: 300.00 [23:37:43]line СДАЧА: 0.00 [23:37:43]line НСП 1% : 2.66 [23:37:43]line НДС 12% : 31.89 [23:37:43]line Наличными: 300.00 [23:37:43]line Безнал.: 0.00 [23:37:43]line Место: АЗС № 140 "Партнер Нефть" [23:37:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:37:43]line СНО: Общий режим [23:37:43]line Чек 283 14.07.2024 23:37 [23:37:43]line Смена: 463 ФФД: 1.0 [23:37:43]line ЗНМ: 0300000129 [23:37:43]line РНМ: 0000000000090858 [23:37:43]line Версия ККМ: 001 [23:37:43]line ФМ: 0000000000874899 [23:37:43]line ФД: 162971 [23:37:43]line ФПД: 31066556710080 [23:37:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T233745&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162971&fm=31066556710080&tin=02508201610067®Number=0000000000090858&sum=30000 [23:37:43]OFD Sender: Processing packet 162971 [packets to send 106, broken 105] [23:37:43]ProducePacketName [23:37:43]name=ofd_packets/00162971 [23:37:43]OFD Sender: To server: pG, [23:37:43]CommunicateWithHost lk.salyk.kg:30040 [23:37:43]ConnectInit lk.salyk.kg [23:37:43]written 0, free lines is 4095 [23:37:43]Connected sock=10 [23:37:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F1 A1 07 01 F7 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 1B 01 00 00 F4 03 04 00 49 61 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7C 02 00 35 04 06 00 1C 41 3F 13 BC C0 6E 09 EB 24 B6 0A 3E 06 [23:37:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 54 B5 47 00 7E A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7C 02 00 F4 03 04 00 55 0D 94 66 B6 04 01 00 00 FB 83 3E 8D E3 A4 A0 50 [23:37:44]CommunicateWithHost err = 0 [23:37:44]CheckOFDResponse [23:37:44]1017 (14) - 77093643461234 [23:37:44]1041 (16) - 0000000000874899 [23:37:44]1040 (4) - 162971 [23:37:44]1012 (4) - 14.07.2024 17:39 [23:37:44]1206 (1) - 0 [23:37:44]OFD Sender: Remove packet 162971 [23:37:44]ProducePacketName [23:37:44]name=ofd_packets/00162971 [23:37:44]NVStorageDeleteData [23:37:44]Write to MH i2c: 01 00 00 86 47 CD [23:37:44]Write i2c OK [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 07 00 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: 01 07 00 86 47 00 00 00 00 00 D9 0C B9 [23:37:44]RasterBufferAndPrint [23:37:44]line [23:37:44]line [23:37:44]line [23:37:44]line [23:37:44]line [23:37:44]written 0, free lines is 3297 [23:37:44]MH_Cut [23:37:44]Write to MH i2c: D1 01 00 8D 47 01 A6 [23:37:44]Write i2c OK [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: D1 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: D1 01 00 [23:37:44]MH_I2C_Read... [23:37:44]Read from MH i2c: D1 01 00 8D 47 00 A5 [23:37:44]Write to MH i2c: 01 00 00 8E 47 D5 [23:37:44]Write i2c OK [23:37:44]MH_I2C_Read... [23:37:44]OFD Sender: No OFD packet to send [23:37:45]*** Cut start [23:37:45]*** Purtial cut [23:37:45]*** Stage 1: CUTSNS_PIN = 1 [23:37:45]Read from MH i2c: 01 [23:37:45]MH_I2C_Read... [23:37:45]*** Stop cut motor [23:37:45]*** Cut end [23:37:45]Read from MH i2c: 01 07 00 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: 01 07 00 8E 47 00 00 00 00 00 FF 0F EA [23:37:45]process_action close_receipt done [23:37:45]requested_data is exist [23:37:45]produce_requested_data [23:37:45]requested_item fm.sn is exist - process it [23:37:45]wFMCommunicate request_size=4 [23:37:45]MH_SAM_APDU [23:37:45]CAPDU: 80 11 00 00 [23:37:45]Write to MH i2c: E2 08 00 8F 47 80 11 00 00 00 00 00 00 50 [23:37:45]Write i2c OK [23:37:45]MH_I2C_Read... [23:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:45]Read from MH i2c: E2 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 17 00 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 17 00 8F 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B0 [23:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:37:45]wFMCommunicate OK [23:37:45]requested_item fd.num is exist - process it [23:37:45]SAM_PROTO_GetFieldsCounters [23:37:45]wFMCommunicate request_size=4 [23:37:45]MH_SAM_APDU [23:37:45]CAPDU: 80 13 00 00 [23:37:45]Write to MH i2c: E2 08 00 90 47 80 13 00 00 00 00 00 00 53 [23:37:45]Write i2c OK [23:37:45]MH_I2C_Read... [23:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:45]Read from MH i2c: E2 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 62 00 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 62 00 90 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9B 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [23:37:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9B 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:45]wFMCommunicate OK [23:37:45]SAM_PROTO_GetFieldsCounters done [23:37:45]requested_item shift.num is exist - process it [23:37:45]requested_item shift.opened is exist - process it [23:37:45]req_shift_opened [23:37:45]FM_GetShiftState [23:37:45]SAM_PROTO_GetShiftState [23:37:45]wFMCommunicate request_size=4 [23:37:45]MH_SAM_APDU [23:37:45]CAPDU: 80 13 01 00 [23:37:45]Write to MH i2c: E2 08 00 91 47 80 13 01 00 00 00 00 00 55 [23:37:45]Write i2c OK [23:37:45]MH_I2C_Read... [23:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:45]Read from MH i2c: E2 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 0E 00 [23:37:45]MH_I2C_Read... [23:37:45]Read from MH i2c: E2 0E 00 91 47 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8B [23:37:45]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:37:45]wFMCommunicate OK [23:37:45]SAM_PROTO_GetShiftState done [23:37:45]FM_GetShiftState done [23:37:45]req_shift_opened done [23:37:45]requested_item shift.open_date is exist - process it [23:37:45]req_shift_open_date [23:37:45]req_shift_open_date done [23:37:45]produce_requested_data done [23:37:45]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162971,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [23:37:45]process_action_free close_receipt [23:37:45]json_value_free [23:37:45]json_value_free done [23:37:45]process_json_proto returns [23:37:45]Send response to host [23:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162971,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [23:37:45]free response buf [23:37:45]execute_script done [23:37:45]execute_script returns [23:37:45]free content buf [23:37:45]Sock 9.Close socket [23:37:45]Sock 9.Thread stoped [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:47]accept exits with 7 [23:41:47]New connection [23:41:47]New thread 3066879332 created [23:41:47]Thread 3066735972 joined [23:41:47]Waiting for new connection... [23:41:47] Sock 7.Parse request [23:41:47]Sock 7.Check first char [23:41:47]Sock 7.First char is OK [23:41:47]request: POST /json_proto HTTP/1.0 [23:41:47]Method: POST [23:41:47]URL: /json_proto [23:41:47]Method is POST - this is cgi request [23:41:47]url: /json_proto [23:41:47]query_string will be loaded in cgi processing [23:41:47]execute_cgi json_proto POST (null) [23:41:47]execute_cgi path=json_proto method=POST [23:41:47]POST find Content-Length [23:41:47]Host: 172.17.39.67:8080 [23:41:47]Content-Length: 676 [23:41:47]Content-Type: application/json [23:41:47] [23:41:47]POST finish read [23:41:47]Found Content-Length = 676 [23:41:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 22.290, "sum" : 1500.12, "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" ] } } [23:41:47]execute_script... [23:41: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)1319589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 22.290, "sum" : 1500.12, "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" ] } } [23:41:47]POST & json_proto [23:41:47]process_json_proto [23:41:47]json parsed OK: [23:41:47]protocol is kg_v1.0 [23:41:47]action value=close_receipt [23:41:47]process_action close_receipt [23:41:47]cmd_close_receipt [23:41:47]MH_GetDate [23:41:47]Write to MH i2c: F0 00 00 92 47 C8 [23:41:47]Write i2c OK [23:41:47]MH_I2C_Read... [23:41:47]Read from MH i2c: F0 [23:41:47]MH_I2C_Read... [23:41:47]Read from MH i2c: F0 09 00 [23:41:47]MH_I2C_Read... [23:41:47]Read from MH i2c: F0 09 00 92 47 00 3E 62 94 66 B6 85 93 66 9F [23:41:47]GetLastDocTimeStamp 1721000265 [23:41:47]current date 1721000510 [23:41:47]FM_GetShiftState [23:41:47]SAM_PROTO_GetShiftState [23:41:47]wFMCommunicate request_size=4 [23:41:47]MH_SAM_APDU [23:41:47]CAPDU: 80 13 01 00 [23:41:47]Write to MH i2c: E2 08 00 93 47 80 13 01 00 00 00 00 00 57 [23:41:47]Write i2c OK [23:41:47]MH_I2C_Read... [23:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:47]Read from MH i2c: E2 [23:41:47]MH_I2C_Read... [23:41:47]Read from MH i2c: E2 0E 00 [23:41:47]MH_I2C_Read... [23:41:47]Read from MH i2c: E2 0E 00 93 47 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 8D [23:41:47]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:41:47]wFMCommunicate OK [23:41:47]SAM_PROTO_GetShiftState done [23:41:47]FM_GetShiftState done [23:41:47]opened in 1720915483 [23:41:47]opened+sec_in_day 1721001883 [23:41:47]quantity*price = 150011 [23:41:47]sum+1 = 150013 [23:41:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 284 14.07.2024 23:41 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162972 ФПД: 142327805283704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T234150&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162972&fm=142327805283704&tin=02508201610067®Number=0000000000090858&sum=150000 [23:41:48]StoreToDocumentArchive [23:41:48]shift 463 fd 162972 [23:41:48]save to /storage/0463/doc_00162972 [23:41:48]save last doc name /storage/0463/doc_00162972 to /storage/kkm_last_doc_name [23:41:48]save OK [23:41:48]Clear old archive folders... [23:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:41:48]tlvbuf is 0130C030 [23:41:48]SAM_PROTO_ClearQueue [23:41:48]wFMCommunicate request_size=4 [23:41:48]MH_SAM_APDU [23:41:48]CAPDU: 80 09 00 00 [23:41:48]Write to MH i2c: E2 08 00 A0 47 80 09 00 00 00 00 00 00 59 [23:41:48]Write i2c OK [23:41:48]MH_I2C_Read... [23:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:48]Read from MH i2c: E2 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: E2 03 00 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: E2 03 00 A0 47 00 90 00 5B [23:41:48]RAPDU: 90 00 [23:41:48]wFMCommunicate OK [23:41:48]SAM_PROTO_ClearQueue done [23:41:48]KKMCreateOFDPacket [23:41:48]OFDProtocolAddRootSTLVToBuf [23:41:48]FM_MakeSignedData [23:41:48]FM_MakeSignedData [23:41:48]SAM_PROTO_SignData [23:41:48]wFMCommunicate request_size=4 [23:41:48]MH_SAM_APDU [23:41:48]CAPDU: 80 0D 01 02 [23:41:48]Write to MH i2c: E2 08 00 A1 47 80 0D 01 02 00 00 00 00 61 [23:41:48]Write i2c OK [23:41:48]MH_I2C_Read... [23:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:48]Read from MH i2c: E2 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: E2 03 00 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: E2 03 00 A1 47 00 90 00 5C [23:41:48]RAPDU: 90 00 [23:41:48]wFMCommunicate OK [23:41:48]wFMCommunicate request_size=255 [23:41:48]MH_SAM_APDU [23:41:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 1C 01 00 00 F4 03 04 00 3E 62 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7C 02 00 35 04 06 00 [23:41:48]Write to MH i2c: E2 02 01 A2 47 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 1C 01 00 00 F4 03 04 00 3E 62 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7C 02 00 35 04 06 00 00 00 7E [23:41:48]Write i2c OK [23:41:48]MH_I2C_Read... [23:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:48]Read from MH i2c: E2 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: E2 03 00 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: E2 03 00 A2 47 00 90 00 5D [23:41:48]RAPDU: 90 00 [23:41:48]wFMCommunicate OK [23:41:48]wFMCommunicate request_size=11 [23:41:48]MH_SAM_APDU [23:41:48]CAPDU: 80 0D 02 02 06 81 72 46 46 8D 78 [23:41:48]Write to MH i2c: E2 0E 00 A3 47 80 0D 02 02 06 00 81 72 46 46 8D 78 00 00 F4 [23:41:48]Write i2c OK [23:41:48]MH_I2C_Read... [23:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:48]Read from MH i2c: E2 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: E2 03 00 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: E2 03 00 A3 47 00 90 00 5E [23:41:48]RAPDU: 90 00 [23:41:48]wFMCommunicate OK [23:41:48]wFMCommunicate request_size=4 [23:41:48]MH_SAM_APDU [23:41:48]CAPDU: 80 0D 03 02 [23:41:48]Write to MH i2c: E2 08 00 A4 47 80 0D 03 02 00 00 00 00 66 [23:41:48]Write i2c OK [23:41:48]MH_I2C_Read... [23:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:48]Read from MH i2c: E2 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: E2 0B 00 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: E2 0B 00 A4 47 00 1C 80 76 29 DC 43 1F EE 90 00 CE [23:41:48]RAPDU: 1C 80 76 29 DC 43 1F EE 90 00 [23:41:48]wFMCommunicate OK [23:41:48]SAM_PROTO_SignData done [23:41:48]FM_MakeSignedData done [23:41:48]CreateOFDProtocolMessage [23:41:48]wFMCommunicate request_size=4 [23:41:48]MH_SAM_APDU [23:41:48]CAPDU: 80 11 00 00 [23:41:48]Write to MH i2c: E2 08 00 A5 47 80 11 00 00 00 00 00 00 66 [23:41:48]Write i2c OK [23:41:48]MH_I2C_Read... [23:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:48]Read from MH i2c: E2 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: E2 17 00 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: E2 17 00 A5 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C6 [23:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:41:48]wFMCommunicate OK [23:41:48]CreateOFDProtocolMessage done [23:41:48]OFDSenderStorePacket 162972 [23:41:48]StoreOFDPacket docnum=162972 [23:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 94 8D 08 01 62 3D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 1C 01 00 00 F4 03 04 00 3E 62 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7C 02 00 35 04 06 00 81 72 46 46 8D 78 1C 80 76 29 DC 43 1F EE [23:41:48]CheckFolder [23:41:48]dirname=/storage/ofd_packets [23:41:48]CheckFolder done [23:41:48]ProducePacketName [23:41:48]name=ofd_packets/00162972 [23:41:48]NVStorageSaveData ofd_packets/00162972 [23:41:48]File name is /storage/ofd_packets/00162972 [23:41:48]Write 302 bytes [23:41:48]NVStorageSaveData done [23:41:48]OFDSenderStorePacket done [23:41:48]KKMCreateOFDPacket done [23:41:48]NVStorageSaveData kkm_last_timestamp [23:41:48]File name is /storage/kkm_last_timestamp [23:41:48]Write 4 bytes [23:41:48]NVStorageSaveData done [23:41:48]ExternCall_PrintAddStr [23:41:48]wPrintStart [23:41:48]Write to MH i2c: 01 00 00 A6 47 ED [23:41:48]Write i2c OK [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: 01 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: 01 07 00 [23:41:48]MH_I2C_Read... [23:41:48]Read from MH i2c: 01 07 00 A6 47 00 00 00 00 00 FF 0F 02 [23:41:48]RasterBufferAndPrint [23:41:48]line Счет N : (1)1319589 [23:41:48]line ИНН: 02508201610067 [23:41:48]line Контрольно-Кассовый Чек [23:41:48]line ПРОДАЖА [23:41:48]line ТРК (МРК, ГНК) : 52 [23:41:48]line Товар: 2710124130 [23:41:48]line Super-92-К-5 [23:41:48]line 22.290 * 67.30 [23:41:48]line = 1500.12 [23:41:48]line НДС 12% НСП 1% [23:41:48]line > о реализуемом товаре [23:41:48]line ОКРУГЛЕНИЕ: -0.12 [23:41:48]line ИТОГО: 1500.00 [23:41:48]line Внесено: 1500.00 [23:41:48]line СДАЧА: 0.00 [23:41:48]line НСП 1% : 13.27 [23:41:48]line НДС 12% : 159.30 [23:41:48]line Наличными: 1500.00 [23:41:48]line Безнал.: 0.00 [23:41:48]line Место: АЗС № 140 "Партнер Нефть" [23:41:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:41:48]line СНО: Общий режим [23:41:48]line Чек 284 14.07.2024 23:41 [23:41:48]line Смена: 463 ФФД: 1.0 [23:41:48]line ЗНМ: 0300000129 [23:41:48]line РНМ: 0000000000090858 [23:41:48]line Версия ККМ: 001 [23:41:48]line ФМ: 0000000000874899 [23:41:48]line ФД: 162972 [23:41:48]line ФПД: 142327805283704 [23:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T234150&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162972&fm=142327805283704&tin=02508201610067®Number=0000000000090858&sum=150000 [23:41:49]OFD Sender: Processing packet 162972 [packets to send 106, broken 105] [23:41:49]ProducePacketName [23:41:49]name=ofd_packets/00162972 [23:41:49]OFD Sender: To server: pG, [23:41:49]CommunicateWithHost lk.salyk.kg:30040 [23:41:49]ConnectInit lk.salyk.kg [23:41:49]written 0, free lines is 4095 [23:41:49]Connected sock=11 [23:41:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 94 8D 08 01 62 3D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 1C 01 00 00 F4 03 04 00 3E 62 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7C 02 00 35 04 06 00 81 72 46 46 8D 78 1C 80 76 29 DC 43 1F EE [23:41:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D7 CC 47 00 6D 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7C 02 00 F4 03 04 00 4A 0E 94 66 B6 04 01 00 00 5A 7D 55 4C 2B 5F DC BB [23:41:49]CommunicateWithHost err = 0 [23:41:49]CheckOFDResponse [23:41:49]1017 (14) - 77093643461234 [23:41:49]1041 (16) - 0000000000874899 [23:41:49]1040 (4) - 162972 [23:41:49]1012 (4) - 14.07.2024 17:43 [23:41:49]1206 (1) - 0 [23:41:49]OFD Sender: Remove packet 162972 [23:41:49]ProducePacketName [23:41:49]name=ofd_packets/00162972 [23:41:49]NVStorageDeleteData [23:41:49]Write to MH i2c: 01 00 00 D1 47 18 [23:41:49]Write i2c OK [23:41:49]MH_I2C_Read... [23:41:49]Read from MH i2c: 01 [23:41:49]MH_I2C_Read... [23:41:49]Read from MH i2c: 01 07 00 [23:41:49]MH_I2C_Read... [23:41:49]Read from MH i2c: 01 07 00 D1 47 00 00 00 00 00 E3 0C 0E [23:41:49]RasterBufferAndPrint [23:41:49]line [23:41:49]line [23:41:49]line [23:41:49]line [23:41:49]line [23:41:49]written 0, free lines is 3305 [23:41:49]MH_Cut [23:41:49]Write to MH i2c: D1 01 00 D8 47 01 F1 [23:41:49]Write i2c OK [23:41:49]MH_I2C_Read... [23:41:49]Read from MH i2c: D1 [23:41:49]MH_I2C_Read... [23:41:49]Read from MH i2c: D1 01 00 [23:41:49]MH_I2C_Read... [23:41:49]Read from MH i2c: D1 01 00 D8 47 00 F0 [23:41:49]Write to MH i2c: 01 00 00 D9 47 20 [23:41:49]Write i2c OK [23:41:49]MH_I2C_Read... [23:41:49]OFD Sender: No OFD packet to send [23:41:50]*** Cut start [23:41:50]*** Purtial cut [23:41:50]*** CUTSNS_PIN = 0 [23:41:50]*** Stage 1: CUTSNS_PIN = 1 [23:41:52]Read from MH i2c: 01 [23:41:52]MH_I2C_Read... [23:41:52]*** Stop cut motor [23:41:52]*** Cut end [23:41:52]Read from MH i2c: 01 07 00 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: 01 07 00 D9 47 00 00 00 00 00 FF 0F 35 [23:41:52]process_action close_receipt done [23:41:52]requested_data is exist [23:41:52]produce_requested_data [23:41:52]requested_item fm.sn is exist - process it [23:41:52]wFMCommunicate request_size=4 [23:41:52]MH_SAM_APDU [23:41:52]CAPDU: 80 11 00 00 [23:41:52]Write to MH i2c: E2 08 00 DA 47 80 11 00 00 00 00 00 00 9B [23:41:52]Write i2c OK [23:41:52]MH_I2C_Read... [23:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:52]Read from MH i2c: E2 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 17 00 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 17 00 DA 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FB [23:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:41:52]wFMCommunicate OK [23:41:52]requested_item fd.num is exist - process it [23:41:52]SAM_PROTO_GetFieldsCounters [23:41:52]wFMCommunicate request_size=4 [23:41:52]MH_SAM_APDU [23:41:52]CAPDU: 80 13 00 00 [23:41:52]Write to MH i2c: E2 08 00 DB 47 80 13 00 00 00 00 00 00 9E [23:41:52]Write i2c OK [23:41:52]MH_I2C_Read... [23:41:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:52]Read from MH i2c: E2 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 62 00 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 62 00 DB 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9C 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [23:41:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9C 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:41:52]wFMCommunicate OK [23:41:52]SAM_PROTO_GetFieldsCounters done [23:41:52]requested_item shift.num is exist - process it [23:41:52]requested_item shift.opened is exist - process it [23:41:52]req_shift_opened [23:41:52]FM_GetShiftState [23:41:52]SAM_PROTO_GetShiftState [23:41:52]wFMCommunicate request_size=4 [23:41:52]MH_SAM_APDU [23:41:52]CAPDU: 80 13 01 00 [23:41:52]Write to MH i2c: E2 08 00 DC 47 80 13 01 00 00 00 00 00 A0 [23:41:52]Write i2c OK [23:41:52]MH_I2C_Read... [23:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:52]Read from MH i2c: E2 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 0E 00 [23:41:52]MH_I2C_Read... [23:41:52]Read from MH i2c: E2 0E 00 DC 47 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D6 [23:41:52]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:41:52]wFMCommunicate OK [23:41:52]SAM_PROTO_GetShiftState done [23:41:52]FM_GetShiftState done [23:41:52]req_shift_opened done [23:41:52]requested_item shift.open_date is exist - process it [23:41:52]req_shift_open_date [23:41:52]req_shift_open_date done [23:41:52]produce_requested_data done [23:41:52]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162972,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [23:41:52]process_action_free close_receipt [23:41:52]json_value_free [23:41:52]json_value_free done [23:41:52]process_json_proto returns [23:41:52]Send response to host [23:41:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162972,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [23:41:52]free response buf [23:41:52]execute_script done [23:41:52]execute_script returns [23:41:52]free content buf [23:41:52]Sock 7.Close socket [23:41:52]Sock 7.Thread stoped [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:43]accept exits with 9 [23:43:43]New connection [23:43:43]New thread 3066735972 created [23:43:43]Thread 3066879332 joined [23:43:43]Waiting for new connection... [23:43:43] Sock 9.Parse request [23:43:43]Sock 9.Check first char [23:43:43]Sock 9.First char is OK [23:43:43]request: POST /json_proto HTTP/1.0 [23:43:43]Method: POST [23:43:43]URL: /json_proto [23:43:43]Method is POST - this is cgi request [23:43:43]url: /json_proto [23:43:43]query_string will be loaded in cgi processing [23:43:43]execute_cgi json_proto POST (null) [23:43:43]execute_cgi path=json_proto method=POST [23:43:43]POST find Content-Length [23:43:43]Host: 172.17.39.67:8080 [23:43:43]Content-Length: 806 [23:43:43]Content-Type: application/json [23:43:43] [23:43:43]POST finish read [23:43:43]Found Content-Length = 806 [23:43:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:43]execute_script... [23:43: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)1319590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:43]POST & json_proto [23:43:43]process_json_proto [23:43:43]json parsed OK: [23:43:43]protocol is kg_v1.0 [23:43:43]action value=close_receipt [23:43:43]process_action close_receipt [23:43:43]cmd_close_receipt [23:43:43]MH_GetDate [23:43:43]Write to MH i2c: F0 00 00 DD 47 13 [23:43:43]Write i2c OK [23:43:43]MH_I2C_Read... [23:43:43]Read from MH i2c: F0 [23:43:43]MH_I2C_Read... [23:43:43]Read from MH i2c: F0 09 00 [23:43:43]MH_I2C_Read... [23:43:43]Read from MH i2c: F0 09 00 DD 47 00 B2 62 94 66 B6 85 93 66 5E [23:43:43]GetLastDocTimeStamp 1721000510 [23:43:43]current date 1721000626 [23:43:43]FM_GetShiftState [23:43:43]SAM_PROTO_GetShiftState [23:43:43]wFMCommunicate request_size=4 [23:43:43]MH_SAM_APDU [23:43:43]CAPDU: 80 13 01 00 [23:43:43]Write to MH i2c: E2 08 00 DE 47 80 13 01 00 00 00 00 00 A2 [23:43:43]Write i2c OK [23:43:43]MH_I2C_Read... [23:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:43]Read from MH i2c: E2 [23:43:43]MH_I2C_Read... [23:43:43]Read from MH i2c: E2 0E 00 [23:43:43]MH_I2C_Read... [23:43:43]Read from MH i2c: E2 0E 00 DE 47 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D8 [23:43:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:43:43]wFMCommunicate OK [23:43:43]SAM_PROTO_GetShiftState done [23:43:43]FM_GetShiftState done [23:43:43]opened in 1720915483 [23:43:43]opened+sec_in_day 1721001883 [23:43:43]quantity*price = 50021 [23:43:43]sum+1 = 50022 [23:43:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.21 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.21 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 285 14.07.2024 23:43 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162973 ФПД: 26992212668600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T234346&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162973&fm=26992212668600&tin=02508201610067®Number=0000000000090858&sum=50021 [23:43:44]StoreToDocumentArchive [23:43:44]shift 463 fd 162973 [23:43:44]save to /storage/0463/doc_00162973 [23:43:44]save last doc name /storage/0463/doc_00162973 to /storage/kkm_last_doc_name [23:43:44]save OK [23:43:44]Clear old archive folders... [23:43:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:43:44]tlvbuf is 0123B5E0 [23:43:44]SAM_PROTO_ClearQueue [23:43:44]wFMCommunicate request_size=4 [23:43:44]MH_SAM_APDU [23:43:44]CAPDU: 80 09 00 00 [23:43:44]Write to MH i2c: E2 08 00 EB 47 80 09 00 00 00 00 00 00 A4 [23:43:44]Write i2c OK [23:43:44]MH_I2C_Read... [23:43:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:43:44]Read from MH i2c: E2 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 03 00 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 03 00 EB 47 00 90 00 A6 [23:43:44]RAPDU: 90 00 [23:43:44]wFMCommunicate OK [23:43:44]SAM_PROTO_ClearQueue done [23:43:44]KKMCreateOFDPacket [23:43:44]OFDProtocolAddRootSTLVToBuf [23:43:44]FM_MakeSignedData [23:43:44]FM_MakeSignedData [23:43:44]SAM_PROTO_SignData [23:43:44]wFMCommunicate request_size=4 [23:43:44]MH_SAM_APDU [23:43:44]CAPDU: 80 0D 01 02 [23:43:44]Write to MH i2c: E2 08 00 EC 47 80 0D 01 02 00 00 00 00 AC [23:43:44]Write i2c OK [23:43:44]MH_I2C_Read... [23:43:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:43:44]Read from MH i2c: E2 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 03 00 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 03 00 EC 47 00 90 00 A7 [23:43:44]RAPDU: 90 00 [23:43:44]wFMCommunicate OK [23:43:44]wFMCommunicate request_size=255 [23:43:44]MH_SAM_APDU [23:43:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 B2 62 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7C 02 00 35 04 06 00 [23:43:44]Write to MH i2c: E2 02 01 ED 47 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 B2 62 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7C 02 00 35 04 06 00 00 00 9E [23:43:44]Write i2c OK [23:43:44]MH_I2C_Read... [23:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:44]Read from MH i2c: E2 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 03 00 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 03 00 ED 47 00 90 00 A8 [23:43:44]RAPDU: 90 00 [23:43:44]wFMCommunicate OK [23:43:44]wFMCommunicate request_size=11 [23:43:44]MH_SAM_APDU [23:43:44]CAPDU: 80 0D 02 02 06 18 8C 9D 3F 70 B8 [23:43:44]Write to MH i2c: E2 0E 00 EE 47 80 0D 02 02 06 00 18 8C 9D 3F 70 B8 00 00 63 [23:43:44]Write i2c OK [23:43:44]MH_I2C_Read... [23:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:44]Read from MH i2c: E2 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 03 00 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 03 00 EE 47 00 90 00 A9 [23:43:44]RAPDU: 90 00 [23:43:44]wFMCommunicate OK [23:43:44]wFMCommunicate request_size=4 [23:43:44]MH_SAM_APDU [23:43:44]CAPDU: 80 0D 03 02 [23:43:44]Write to MH i2c: E2 08 00 EF 47 80 0D 03 02 00 00 00 00 B1 [23:43:44]Write i2c OK [23:43:44]MH_I2C_Read... [23:43:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:43:44]Read from MH i2c: E2 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 0B 00 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 0B 00 EF 47 00 36 AE 69 DE 19 23 4E 10 90 00 77 [23:43:44]RAPDU: 36 AE 69 DE 19 23 4E 10 90 00 [23:43:44]wFMCommunicate OK [23:43:44]SAM_PROTO_SignData done [23:43:44]FM_MakeSignedData done [23:43:44]CreateOFDProtocolMessage [23:43:44]wFMCommunicate request_size=4 [23:43:44]MH_SAM_APDU [23:43:44]CAPDU: 80 11 00 00 [23:43:44]Write to MH i2c: E2 08 00 F0 47 80 11 00 00 00 00 00 00 B1 [23:43:44]Write i2c OK [23:43:44]MH_I2C_Read... [23:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:44]Read from MH i2c: E2 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 17 00 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 17 00 F0 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 11 [23:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:43:44]wFMCommunicate OK [23:43:44]CreateOFDProtocolMessage done [23:43:44]OFDSenderStorePacket 162973 [23:43:44]StoreOFDPacket docnum=162973 [23:43:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 49 50 08 01 67 AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 B2 62 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7C 02 00 35 04 06 00 18 8C 9D 3F 70 B8 36 AE 69 DE 19 23 4E 10 [23:43:44]CheckFolder [23:43:44]dirname=/storage/ofd_packets [23:43:44]CheckFolder done [23:43:44]ProducePacketName [23:43:44]name=ofd_packets/00162973 [23:43:44]NVStorageSaveData ofd_packets/00162973 [23:43:44]File name is /storage/ofd_packets/00162973 [23:43:44]Write 302 bytes [23:43:44]NVStorageSaveData done [23:43:44]OFDSenderStorePacket done [23:43:44]KKMCreateOFDPacket done [23:43:44]NVStorageSaveData kkm_last_timestamp [23:43:44]File name is /storage/kkm_last_timestamp [23:43:44]Write 4 bytes [23:43:44]NVStorageSaveData done [23:43:44]ExternCall_PrintAddStr [23:43:44]wPrintStart [23:43:44]Write to MH i2c: 01 00 00 F1 47 38 [23:43:44]Write i2c OK [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: 01 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: 01 07 00 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: 01 07 00 F1 47 00 00 00 00 00 FF 0F 4D [23:43:44]RasterBufferAndPrint [23:43:44]line Счет N : (1)1319590 [23:43:44]line ИНН: 02508201610067 [23:43:44]line Контрольно-Кассовый Чек [23:43:44]line ПРОДАЖА [23:43:44]line ТРК (МРК, ГНК) : 21 [23:43:44]line Товар: 2710194210 [23:43:44]line ДТ(л)-К-5 [23:43:44]line 6.890 * 72.60 [23:43:44]line = 500.21 [23:43:44]line НДС 12% НСП 1% [23:43:44]line > о реализуемом товаре [23:43:44]line ИТОГО: 500.21 [23:43:44]line НСП 1% : 4.43 [23:43:44]line НДС 12% : 53.12 [23:43:44]line Наличными: 0.00 [23:43:44]line Безнал.: 500.21 [23:43:44]line Место: АЗС № 140 "Партнер Нефть" [23:43:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:43:44]line СНО: Общий режим [23:43:44]line Чек 285 14.07.2024 23:43 [23:43:44]line Смена: 463 ФФД: 1.0 [23:43:44]line ЗНМ: 0300000129 [23:43:44]line РНМ: 0000000000090858 [23:43:44]line Версия ККМ: 001 [23:43:44]line Платежная система: O! деньги [23:43:44]line ФМ: 0000000000874899 [23:43:44]line ФД: 162973 [23:43:44]line ФПД: 26992212668600 [23:43:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T234346&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162973&fm=26992212668600&tin=02508201610067®Number=0000000000090858&sum=50021 [23:43:45]OFD Sender: Processing packet 162973 [packets to send 106, broken 105] [23:43:45]ProducePacketName [23:43:45]name=ofd_packets/00162973 [23:43:45]OFD Sender: To server: pG, [23:43:45]CommunicateWithHost lk.salyk.kg:30040 [23:43:45]ConnectInit lk.salyk.kg [23:43:45]written 0, free lines is 4095 [23:43:45]Connected sock=11 [23:43:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 49 50 08 01 67 AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 B2 62 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7C 02 00 35 04 06 00 18 8C 9D 3F 70 B8 36 AE 69 DE 19 23 4E 10 [23:43:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4F D9 47 00 95 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7C 02 00 F4 03 04 00 BE 0E 94 66 B6 04 01 00 00 A7 AF 33 74 DE 9A 00 66 [23:43:45]CommunicateWithHost err = 0 [23:43:45]CheckOFDResponse [23:43:45]1017 (14) - 77093643461234 [23:43:45]1041 (16) - 0000000000874899 [23:43:45]1040 (4) - 162973 [23:43:45]1012 (4) - 14.07.2024 17:45 [23:43:45]1206 (1) - 0 [23:43:45]OFD Sender: Remove packet 162973 [23:43:45]ProducePacketName [23:43:45]name=ofd_packets/00162973 [23:43:45]NVStorageDeleteData [23:43:45]Write to MH i2c: 01 00 00 1B 48 63 [23:43:45]Write i2c OK [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: 01 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: 01 07 00 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: 01 07 00 1B 48 00 00 00 00 00 E2 0C 58 [23:43:45]RasterBufferAndPrint [23:43:45]line [23:43:45]line [23:43:45]line [23:43:45]line [23:43:45]line [23:43:45]written 0, free lines is 3303 [23:43:45]MH_Cut [23:43:45]Write to MH i2c: D1 01 00 22 48 01 3C [23:43:45]Write i2c OK [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: D1 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: D1 01 00 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: D1 01 00 22 48 00 3B [23:43:45]Write to MH i2c: 01 00 00 23 48 6B [23:43:45]Write i2c OK [23:43:45]MH_I2C_Read... [23:43:45]OFD Sender: No OFD packet to send [23:43:46]*** Cut start [23:43:46]*** Purtial cut [23:43:46]*** Stage 1: CUTSNS_PIN = 1 [23:43:46]Read from MH i2c: 01 [23:43:46]MH_I2C_Read... [23:43:46]*** Stop cut motor [23:43:46]*** Cut end [23:43:46]Read from MH i2c: 01 07 00 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 07 00 23 48 00 00 00 00 00 FF 0F 80 [23:43:46]process_action close_receipt done [23:43:46]requested_data is exist [23:43:46]produce_requested_data [23:43:46]requested_item fm.sn is exist - process it [23:43:46]wFMCommunicate request_size=4 [23:43:46]MH_SAM_APDU [23:43:46]CAPDU: 80 11 00 00 [23:43:46]Write to MH i2c: E2 08 00 24 48 80 11 00 00 00 00 00 00 E6 [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:46]Read from MH i2c: E2 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: E2 17 00 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: E2 17 00 24 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 46 [23:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:43:46]wFMCommunicate OK [23:43:46]requested_item fd.num is exist - process it [23:43:46]SAM_PROTO_GetFieldsCounters [23:43:46]wFMCommunicate request_size=4 [23:43:46]MH_SAM_APDU [23:43:46]CAPDU: 80 13 00 00 [23:43:46]Write to MH i2c: E2 08 00 25 48 80 13 00 00 00 00 00 00 E9 [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:43:46]Read from MH i2c: E2 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: E2 62 00 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: E2 62 00 25 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9D 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [23:43:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9D 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:43:46]wFMCommunicate OK [23:43:46]SAM_PROTO_GetFieldsCounters done [23:43:46]requested_item shift.num is exist - process it [23:43:46]requested_item shift.opened is exist - process it [23:43:46]req_shift_opened [23:43:46]FM_GetShiftState [23:43:46]SAM_PROTO_GetShiftState [23:43:46]wFMCommunicate request_size=4 [23:43:46]MH_SAM_APDU [23:43:46]CAPDU: 80 13 01 00 [23:43:46]Write to MH i2c: E2 08 00 26 48 80 13 01 00 00 00 00 00 EB [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:46]Read from MH i2c: E2 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: E2 0E 00 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: E2 0E 00 26 48 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 21 [23:43:46]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:43:46]wFMCommunicate OK [23:43:46]SAM_PROTO_GetShiftState done [23:43:46]FM_GetShiftState done [23:43:46]req_shift_opened done [23:43:46]requested_item shift.open_date is exist - process it [23:43:46]req_shift_open_date [23:43:46]req_shift_open_date done [23:43:46]produce_requested_data done [23:43:46]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162973,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [23:43:46]process_action_free close_receipt [23:43:46]json_value_free [23:43:46]json_value_free done [23:43:46]process_json_proto returns [23:43:46]Send response to host [23:43:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162973,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [23:43:46]free response buf [23:43:46]execute_script done [23:43:46]execute_script returns [23:43:46]free content buf [23:43:46]Sock 9.Close socket [23:43:46]Sock 9.Thread stoped [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:37]accept exits with 7 [23:52:37]New connection [23:52:37]New thread 3066879332 created [23:52:37]Thread 3066735972 joined [23:52:37]Waiting for new connection... [23:52:37] Sock 7.Parse request [23:52:37]Sock 7.Check first char [23:52:37]Sock 7.First char is OK [23:52:37]request: POST /json_proto HTTP/1.0 [23:52:37]Method: POST [23:52:37]URL: /json_proto [23:52:37]Method is POST - this is cgi request [23:52:37]url: /json_proto [23:52:37]query_string will be loaded in cgi processing [23:52:37]execute_cgi json_proto POST (null) [23:52:37]execute_cgi path=json_proto method=POST [23:52:37]POST find Content-Length [23:52:37]Host: 172.17.39.67:8080 [23:52:37]Content-Length: 678 [23:52:37]Content-Type: application/json [23:52:37] [23:52:37]POST finish read [23:52:37]Found Content-Length = 678 [23:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 9.140, "sum" : 680.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:37]execute_script... [23:52:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 9.140, "sum" : 680.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:37]POST & json_proto [23:52:37]process_json_proto [23:52:37]json parsed OK: [23:52:37]protocol is kg_v1.0 [23:52:37]action value=close_receipt [23:52:37]process_action close_receipt [23:52:37]cmd_close_receipt [23:52:37]MH_GetDate [23:52:37]Write to MH i2c: F0 00 00 27 48 5E [23:52:37]Write i2c OK [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: F0 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: F0 09 00 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: F0 09 00 27 48 00 C9 64 94 66 B6 85 93 66 C2 [23:52:37]GetLastDocTimeStamp 1721000626 [23:52:37]current date 1721001161 [23:52:37]FM_GetShiftState [23:52:37]SAM_PROTO_GetShiftState [23:52:37]wFMCommunicate request_size=4 [23:52:37]MH_SAM_APDU [23:52:37]CAPDU: 80 13 01 00 [23:52:37]Write to MH i2c: E2 08 00 28 48 80 13 01 00 00 00 00 00 ED [23:52:37]Write i2c OK [23:52:37]MH_I2C_Read... [23:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:38]Read from MH i2c: E2 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: E2 0E 00 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: E2 0E 00 28 48 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 23 [23:52:38]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:52:38]wFMCommunicate OK [23:52:38]SAM_PROTO_GetShiftState done [23:52:38]FM_GetShiftState done [23:52:38]opened in 1720915483 [23:52:38]opened+sec_in_day 1721001883 [23:52:38]quantity*price = 68001 [23:52:38]sum+1 = 68003 [23:52:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.21 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 286 14.07.2024 23:52 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162974 ФПД: 276191539276037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T235241&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162974&fm=276191539276037&tin=02508201610067®Number=0000000000090858&sum=68000 [23:52:39]StoreToDocumentArchive [23:52:39]shift 463 fd 162974 [23:52:39]save to /storage/0463/doc_00162974 [23:52:39]save last doc name /storage/0463/doc_00162974 to /storage/kkm_last_doc_name [23:52:39]save OK [23:52:39]Clear old archive folders... [23:52:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:52:39]tlvbuf is 012207C0 [23:52:39]SAM_PROTO_ClearQueue [23:52:39]wFMCommunicate request_size=4 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 09 00 00 [23:52:39]Write to MH i2c: E2 08 00 35 48 80 09 00 00 00 00 00 00 EF [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 35 48 00 90 00 F1 [23:52:39]RAPDU: 90 00 [23:52:39]wFMCommunicate OK [23:52:39]SAM_PROTO_ClearQueue done [23:52:39]KKMCreateOFDPacket [23:52:39]OFDProtocolAddRootSTLVToBuf [23:52:39]FM_MakeSignedData [23:52:39]FM_MakeSignedData [23:52:39]SAM_PROTO_SignData [23:52:39]wFMCommunicate request_size=4 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 0D 01 02 [23:52:39]Write to MH i2c: E2 08 00 36 48 80 0D 01 02 00 00 00 00 F7 [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 36 48 00 90 00 F2 [23:52:39]RAPDU: 90 00 [23:52:39]wFMCommunicate OK [23:52:39]wFMCommunicate request_size=255 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B4 23 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A2 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C9 64 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7C 02 00 35 04 06 00 FB [23:52:39]Write to MH i2c: E2 02 01 37 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B4 23 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A2 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C9 64 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7C 02 00 35 04 06 00 FB 00 00 F5 [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 37 48 00 90 00 F3 [23:52:39]RAPDU: 90 00 [23:52:39]wFMCommunicate OK [23:52:39]wFMCommunicate request_size=10 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 0D 02 02 05 31 DA 96 A9 05 [23:52:39]Write to MH i2c: E2 0D 00 38 48 80 0D 02 02 05 00 31 DA 96 A9 05 00 00 53 [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 03 00 38 48 00 90 00 F4 [23:52:39]RAPDU: 90 00 [23:52:39]wFMCommunicate OK [23:52:39]wFMCommunicate request_size=4 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 0D 03 02 [23:52:39]Write to MH i2c: E2 08 00 39 48 80 0D 03 02 00 00 00 00 FC [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 0B 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 0B 00 39 48 00 44 53 BD 34 4A 4E B8 4C 90 00 21 [23:52:39]RAPDU: 44 53 BD 34 4A 4E B8 4C 90 00 [23:52:39]wFMCommunicate OK [23:52:39]SAM_PROTO_SignData done [23:52:39]FM_MakeSignedData done [23:52:39]CreateOFDProtocolMessage [23:52:39]wFMCommunicate request_size=4 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 11 00 00 [23:52:39]Write to MH i2c: E2 08 00 3A 48 80 11 00 00 00 00 00 00 FC [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 17 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 17 00 3A 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5C [23:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:52:39]wFMCommunicate OK [23:52:39]CreateOFDProtocolMessage done [23:52:39]OFDSenderStorePacket 162974 [23:52:39]StoreOFDPacket docnum=162974 [23:52:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 11 88 07 01 8C 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B4 23 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A2 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C9 64 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7C 02 00 35 04 06 00 FB 31 DA 96 A9 05 44 53 BD 34 4A 4E B8 4C [23:52:39]CheckFolder [23:52:39]dirname=/storage/ofd_packets [23:52:39]CheckFolder done [23:52:39]ProducePacketName [23:52:39]name=ofd_packets/00162974 [23:52:39]NVStorageSaveData ofd_packets/00162974 [23:52:39]File name is /storage/ofd_packets/00162974 [23:52:39]Write 301 bytes [23:52:39]NVStorageSaveData done [23:52:39]OFDSenderStorePacket done [23:52:39]KKMCreateOFDPacket done [23:52:39]NVStorageSaveData kkm_last_timestamp [23:52:39]File name is /storage/kkm_last_timestamp [23:52:39]Write 4 bytes [23:52:39]NVStorageSaveData done [23:52:39]ExternCall_PrintAddStr [23:52:39]wPrintStart [23:52:39]Write to MH i2c: 01 00 00 3B 48 83 [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: 01 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: 01 07 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: 01 07 00 3B 48 00 00 00 00 00 FF 0F 98 [23:52:39]RasterBufferAndPrint [23:52:39]line Счет N : (1)1319591 [23:52:39]line ИНН: 02508201610067 [23:52:39]line Контрольно-Кассовый Чек [23:52:39]line ПРОДАЖА [23:52:39]line ТРК (МРК, ГНК) : 34 [23:52:39]line Товар: 2710124500 [23:52:39]line Аи-95-К-5 [23:52:39]line 9.140 * 74.40 [23:52:39]line = 680.02 [23:52:39]line НДС 12% НСП 1% [23:52:39]line > о реализуемом товаре [23:52:39]line ОКРУГЛЕНИЕ: -0.02 [23:52:39]line ИТОГО: 680.00 [23:52:39]line Внесено: 680.00 [23:52:39]line СДАЧА: 0.00 [23:52:39]line НСП 1% : 6.02 [23:52:39]line НДС 12% : 72.21 [23:52:39]line Наличными: 680.00 [23:52:39]line Безнал.: 0.00 [23:52:39]line Место: АЗС № 140 "Партнер Нефть" [23:52:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:52:39]line СНО: Общий режим [23:52:39]line Чек 286 14.07.2024 23:52 [23:52:39]line Смена: 463 ФФД: 1.0 [23:52:39]line ЗНМ: 0300000129 [23:52:39]line РНМ: 0000000000090858 [23:52:39]line Версия ККМ: 001 [23:52:39]line ФМ: 0000000000874899 [23:52:39]line ФД: 162974 [23:52:39]line ФПД: 276191539276037 [23:52:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T235241&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162974&fm=276191539276037&tin=02508201610067®Number=0000000000090858&sum=68000 [23:52:40]OFD Sender: Processing packet 162974 [packets to send 106, broken 105] [23:52:40]ProducePacketName [23:52:40]name=ofd_packets/00162974 [23:52:40]OFD Sender: To server: pG, [23:52:40]CommunicateWithHost lk.salyk.kg:30040 [23:52:40]ConnectInit lk.salyk.kg [23:52:40]written 0, free lines is 4095 [23:52:40]Connected sock=10 [23:52:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 11 88 07 01 8C 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B4 23 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A2 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C9 64 94 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7C 02 00 35 04 06 00 FB 31 DA 96 A9 05 44 53 BD 34 4A 4E B8 4C [23:52:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 86 20 47 00 48 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7C 02 00 F4 03 04 00 D5 10 94 66 B6 04 01 00 00 5A 2F B4 58 54 A0 5D 78 [23:52:40]CommunicateWithHost err = 0 [23:52:40]CheckOFDResponse [23:52:40]1017 (14) - 77093643461234 [23:52:40]1041 (16) - 0000000000874899 [23:52:40]1040 (4) - 162974 [23:52:40]1012 (4) - 14.07.2024 17:54 [23:52:40]1206 (1) - 0 [23:52:40]OFD Sender: Remove packet 162974 [23:52:40]ProducePacketName [23:52:40]name=ofd_packets/00162974 [23:52:40]NVStorageDeleteData [23:52:40]Write to MH i2c: 01 00 00 66 48 AE [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: 01 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: 01 07 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: 01 07 00 66 48 00 00 00 00 00 F5 0C B6 [23:52:40]RasterBufferAndPrint [23:52:40]line [23:52:40]line [23:52:40]line [23:52:40]line [23:52:40]line [23:52:40]written 0, free lines is 3325 [23:52:40]MH_Cut [23:52:40]Write to MH i2c: D1 01 00 6D 48 01 87 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: D1 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: D1 01 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: D1 01 00 6D 48 00 86 [23:52:40]Write to MH i2c: 01 00 00 6E 48 B6 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]OFD Sender: No OFD packet to send [23:52:41]*** Cut start [23:52:41]*** Purtial cut [23:52:41]*** CUTSNS_PIN = 0 [23:52:41]*** Stage 1: CUTSNS_PIN = 1 [23:52:43]Read from MH i2c: 01 [23:52:43]MH_I2C_Read... [23:52:43]*** Stop cut motor [23:52:43]*** Cut end [23:52:43]Read from MH i2c: 01 07 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: 01 07 00 6E 48 00 00 00 00 00 FF 0F CB [23:52:43]process_action close_receipt done [23:52:43]requested_data is exist [23:52:43]produce_requested_data [23:52:43]requested_item fm.sn is exist - process it [23:52:43]wFMCommunicate request_size=4 [23:52:43]MH_SAM_APDU [23:52:43]CAPDU: 80 11 00 00 [23:52:43]Write to MH i2c: E2 08 00 6F 48 80 11 00 00 00 00 00 00 31 [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:43]Read from MH i2c: E2 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 17 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 17 00 6F 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 91 [23:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:52:43]wFMCommunicate OK [23:52:43]requested_item fd.num is exist - process it [23:52:43]SAM_PROTO_GetFieldsCounters [23:52:43]wFMCommunicate request_size=4 [23:52:43]MH_SAM_APDU [23:52:43]CAPDU: 80 13 00 00 [23:52:43]Write to MH i2c: E2 08 00 70 48 80 13 00 00 00 00 00 00 34 [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:43]Read from MH i2c: E2 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 62 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 62 00 70 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 B0 [23: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:43]wFMCommunicate OK [23:52:43]SAM_PROTO_GetFieldsCounters done [23:52:43]requested_item shift.num is exist - process it [23:52:43]requested_item shift.opened is exist - process it [23:52:43]req_shift_opened [23:52:43]FM_GetShiftState [23:52:43]SAM_PROTO_GetShiftState [23:52:43]wFMCommunicate request_size=4 [23:52:43]MH_SAM_APDU [23:52:43]CAPDU: 80 13 01 00 [23:52:43]Write to MH i2c: E2 08 00 71 48 80 13 01 00 00 00 00 00 36 [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:43]Read from MH i2c: E2 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 0E 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 0E 00 71 48 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6C [23:52:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:52:43]wFMCommunicate OK [23:52:43]SAM_PROTO_GetShiftState done [23:52:43]FM_GetShiftState done [23:52:43]req_shift_opened done [23:52:43]requested_item shift.open_date is exist - process it [23:52:43]req_shift_open_date [23:52:43]req_shift_open_date done [23:52:43]produce_requested_data done [23:52:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162974,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [23:52:43]process_action_free close_receipt [23:52:43]json_value_free [23:52:43]json_value_free done [23:52:43]process_json_proto returns [23:52:43]Send response to host [23:52:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162974,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [23:52:43]free response buf [23:52:43]execute_script done [23:52:43]execute_script returns [23:52:43]free content buf [23:52:43]Sock 7.Close socket [23:52:43]Sock 7.Thread stoped [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]accept exits with 9 [23:55:00]New connection [23:55:00]New thread 3066735972 created [23:55:00]Thread 3066879332 joined [23:55:00]Waiting for new connection... [23:55:00] Sock 9.Parse request [23:55:00]Sock 9.Check first char [23:55:00]Sock 9.First char is OK [23:55:00]request: POST /json_proto HTTP/1.0 [23:55:00]Method: POST [23:55:00]URL: /json_proto [23:55:00]Method is POST - this is cgi request [23:55:00]url: /json_proto [23:55:00]query_string will be loaded in cgi processing [23:55:00]execute_cgi json_proto POST (null) [23:55:00]execute_cgi path=json_proto method=POST [23:55:00]POST find Content-Length [23:55:00]Host: 172.17.39.67:8080 [23:55:00]Content-Length: 215 [23:55:00]Content-Type: application/json [23:55:00] [23:55:00]POST finish read [23:55:00]Found Content-Length = 215 [23:55:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:00]execute_script... [23:55:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:00]POST & json_proto [23:55:00]process_json_proto [23:55:00]json parsed OK: [23:55:00]protocol is kg_v1.0 [23:55:00]action value=get_value [23:55:00]process_action get_value [23:55:00]cmd_get_value [23:55:00]process_action get_value done [23:55:00]requested_data is exist [23:55:00]produce_requested_data [23:55:00]requested_item kkm.sn is exist - process it [23:55:00]requested_item kkm.ver is exist - process it [23:55:00]requested_item fm.sn is exist - process it [23:55:00]wFMCommunicate request_size=4 [23:55:00]MH_SAM_APDU [23:55:00]CAPDU: 80 11 00 00 [23:55:00]Write to MH i2c: E2 08 00 72 48 80 11 00 00 00 00 00 00 34 [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:00]Read from MH i2c: E2 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 17 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 17 00 72 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 94 [23:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:55:00]wFMCommunicate OK [23:55:00]requested_item fd.num is exist - process it [23:55:00]SAM_PROTO_GetFieldsCounters [23:55:00]wFMCommunicate request_size=4 [23:55:00]MH_SAM_APDU [23:55:00]CAPDU: 80 13 00 00 [23:55:00]Write to MH i2c: E2 08 00 73 48 80 13 00 00 00 00 00 00 37 [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:00]OFD Sender: No OFD packet to send [23:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 62 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 62 00 73 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [23:55:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:01]wFMCommunicate OK [23:55:01]SAM_PROTO_GetFieldsCounters done [23:55:01]requested_item shift.num is exist - process it [23:55:01]requested_item shift.opened is exist - process it [23:55:01]req_shift_opened [23:55:01]FM_GetShiftState [23:55:01]SAM_PROTO_GetShiftState [23:55:01]wFMCommunicate request_size=4 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 13 01 00 [23:55:01]Write to MH i2c: E2 08 00 74 48 80 13 01 00 00 00 00 00 39 [23:55:01]Write i2c OK [23:55:01]MH_I2C_Read... [23:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 0E 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 0E 00 74 48 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 6F [23:55:01]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:55:01]wFMCommunicate OK [23:55:01]SAM_PROTO_GetShiftState done [23:55:01]FM_GetShiftState done [23:55:01]req_shift_opened done [23:55:01]requested_item shift.open_date is exist - process it [23:55:01]req_shift_open_date [23:55:01]req_shift_open_date done [23:55:01]produce_requested_data done [23:55:01]produce_requested_data return {"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162974,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [23:55:01]process_action_free get_value [23:55:01]json_value_free [23:55:01]json_value_free done [23:55:01]process_json_proto returns [23:55:01]Send response to host [23:55:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162974,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [23:55:01]free response buf [23:55:01]execute_script done [23:55:01]execute_script returns [23:55:01]free content buf [23:55:01]Sock 9.Close socket [23:55:01]Sock 9.Thread stoped [23:55:01]accept exits with 7 [23:55:01]New connection [23:55:01]New thread 3066879332 created [23:55:01]Thread 3066735972 joined [23:55:01]Waiting for new connection... [23:55:01] Sock 7.Parse request [23:55:01]Sock 7.Check first char [23:55:01]Sock 7.First char is OK [23:55:01]request: POST /json_proto HTTP/1.0 [23:55:01]Method: POST [23:55:01]URL: /json_proto [23:55:01]Method is POST - this is cgi request [23:55:01]url: /json_proto [23:55:01]query_string will be loaded in cgi processing [23:55:01]execute_cgi json_proto POST (null) [23:55:01]execute_cgi path=json_proto method=POST [23:55:01]POST find Content-Length [23:55:01]Host: 172.17.39.67:8080 [23:55:01]Content-Length: 331 [23:55:01]Content-Type: application/json [23:55:01] [23:55:01]POST finish read [23:55:01]Found Content-Length = 331 [23:55:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:01]execute_script... [23:55:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:01]POST & json_proto [23:55:01]process_json_proto [23:55:01]json parsed OK: [23:55:01]protocol is kg_v1.0 [23:55:01]action value=get_value [23:55:01]process_action get_value [23:55:01]cmd_get_value [23:55:01]process_action get_value done [23:55:01]requested_data is exist [23:55:01]produce_requested_data [23:55:01]requested_item fm.sale.total is exist - process it [23:55:01]SAM_PROTO_GetFMData [23:55:01]wFMCommunicate request_size=4 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 13 03 00 [23:55:01]Write to MH i2c: E2 08 00 75 48 80 13 03 00 00 00 00 00 3C [23:55:01]Write i2c OK [23:55:01]MH_I2C_Read... [23:55:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 FD 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 FD 00 75 48 00 C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 3F [23:55:01]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [23:55:01]wFMCommunicate OK [23:55:01]wFMCommunicate request_size=4 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 17 00 00 [23:55:01]Write to MH i2c: E2 08 00 76 48 80 17 00 00 00 00 00 00 3E [23:55:01]Write i2c OK [23:55:01]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 FD 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 FD 00 76 48 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 77 [23:55:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [23:55:02]wFMCommunicate OK [23:55:02]wFMCommunicate request_size=4 [23:55:02]MH_SAM_APDU [23:55:02]CAPDU: 80 17 00 00 [23:55:02]Write to MH i2c: E2 08 00 77 48 80 17 00 00 00 00 00 00 3F [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 FD 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 FD 00 77 48 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 DF [23:55:02]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:55:02]wFMCommunicate OK [23:55:02]wFMCommunicate request_size=4 [23:55:02]MH_SAM_APDU [23:55:02]CAPDU: 80 17 00 00 [23:55:02]Write to MH i2c: E2 08 00 78 48 80 17 00 00 00 00 00 00 40 [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 FD 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 FD 00 78 48 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C5 [23:55:02]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:02]wFMCommunicate OK [23:55:02]wFMCommunicate request_size=4 [23:55:02]MH_SAM_APDU [23:55:02]CAPDU: 80 17 00 00 [23:55:02]Write to MH i2c: E2 08 00 79 48 80 17 00 00 00 00 00 00 41 [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 DE 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 DE 00 79 48 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:55:02]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:02]wFMCommunicate OK [23:55:02]SAM_PROTO_GetFMData done [23:55:02]requested_item fm.sale_refund.total is exist - process it [23:55:02]requested_item fm.buy.total is exist - process it [23:55:02]requested_item shift.sale.total is exist - process it [23:55:02]SAM_PROTO_GetShiftData [23:55:02]wFMCommunicate request_size=4 [23:55:02]MH_SAM_APDU [23:55:02]CAPDU: 80 13 02 00 [23:55:02]Write to MH i2c: E2 08 00 7A 48 80 13 02 00 00 00 00 00 40 [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:03]Read from MH i2c: E2 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 7A 48 00 B1 04 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 3A [23:55:03]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:55:03]wFMCommunicate OK [23:55:03]wFMCommunicate request_size=4 [23:55:03]MH_SAM_APDU [23:55:03]CAPDU: 80 17 00 00 [23:55:03]Write to MH i2c: E2 08 00 7B 48 80 17 00 00 00 00 00 00 43 [23:55:03]Write i2c OK [23:55:03]MH_I2C_Read... [23:55:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:03]Read from MH i2c: E2 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 7B 48 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 5C [23:55:03]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [23:55:03]wFMCommunicate OK [23:55:03]wFMCommunicate request_size=4 [23:55:03]MH_SAM_APDU [23:55:03]CAPDU: 80 17 00 00 [23:55:03]Write to MH i2c: E2 08 00 7C 48 80 17 00 00 00 00 00 00 44 [23:55:03]Write i2c OK [23:55:03]MH_I2C_Read... [23:55:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:03]Read from MH i2c: E2 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 7C 48 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 FD [23:55:03]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:55:04]wFMCommunicate OK [23:55:04]wFMCommunicate request_size=4 [23:55:04]MH_SAM_APDU [23:55:04]CAPDU: 80 17 00 00 [23:55:04]Write to MH i2c: E2 08 00 7D 48 80 17 00 00 00 00 00 00 45 [23:55:04]Write i2c OK [23:55:04]MH_I2C_Read... [23:55:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:04]Read from MH i2c: E2 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 FD 00 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 FD 00 7D 48 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 90 00 BD [23:55:04]RAPDU: 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 90 00 [23:55:04]wFMCommunicate OK [23:55:04]wFMCommunicate request_size=4 [23:55:04]MH_SAM_APDU [23:55:04]CAPDU: 80 17 00 00 [23:55:04]Write to MH i2c: E2 08 00 7E 48 80 17 00 00 00 00 00 00 46 [23:55:04]Write i2c OK [23:55:04]MH_I2C_Read... [23:55:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:55:04]Read from MH i2c: E2 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 CE 00 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 CE 00 7E 48 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2B [23:55:04]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:04]wFMCommunicate OK [23:55:04]SAM_PROTO_GetShiftData done [23:55:04]requested_item shift.sale.total_cash is exist - process it [23:55:04]requested_item shift.sale_refund.total is exist - process it [23:55:04]requested_item shift.sale_refund.total_cash is exist - process it [23:55:04]requested_item shift.buy.total is exist - process it [23:55:04]requested_item shift.buy.total_cash is exist - process it [23:55:04]produce_requested_data done [23:55:04]produce_requested_data return {"fm.sale.total":143362533.00,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":385897.18,"shift.sale.total_cash":245725.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:55:04]process_action_free get_value [23:55:04]json_value_free [23:55:04]json_value_free done [23:55:04]process_json_proto returns [23:55:04]Send response to host [23:55:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":143362533.00,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":385897.18,"shift.sale.total_cash":245725.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:55:04]free response buf [23:55:04]execute_script done [23:55:04]execute_script returns [23:55:04]free content buf [23:55:04]Sock 7.Close socket [23:55:04]Sock 7.Thread stoped [23:55:04]accept exits with 9 [23:55:04]New connection [23:55:04]New thread 3066735972 created [23:55:04]Thread 3066879332 joined [23:55:04]Waiting for new connection... [23:55:04] Sock 9.Parse request [23:55:04]Sock 9.Check first char [23:55:04]Sock 9.First char is OK [23:55:04]request: POST /json_proto HTTP/1.0 [23:55:04]Method: POST [23:55:04]URL: /json_proto [23:55:04]Method is POST - this is cgi request [23:55:04]url: /json_proto [23:55:04]query_string will be loaded in cgi processing [23:55:04]execute_cgi json_proto POST (null) [23:55:04]execute_cgi path=json_proto method=POST [23:55:04]POST find Content-Length [23:55:04]Host: 172.17.39.67:8080 [23:55:04]Content-Length: 331 [23:55:04]Content-Type: application/json [23:55:04] [23:55:04]POST finish read [23:55:04]Found Content-Length = 331 [23:55:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:04]execute_script... [23:55:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:04]POST & json_proto [23:55:04]process_json_proto [23:55:04]json parsed OK: [23:55:04]protocol is kg_v1.0 [23:55:04]action value=get_value [23:55:04]process_action get_value [23:55:04]cmd_get_value [23:55:04]process_action get_value done [23:55:04]requested_data is exist [23:55:04]produce_requested_data [23:55:04]requested_item fm.sale.total is exist - process it [23:55:04]SAM_PROTO_GetFMData [23:55:04]wFMCommunicate request_size=4 [23:55:04]MH_SAM_APDU [23:55:04]CAPDU: 80 13 03 00 [23:55:04]Write to MH i2c: E2 08 00 7F 48 80 13 03 00 00 00 00 00 46 [23:55:04]Write i2c OK [23:55:04]MH_I2C_Read... [23:55:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:05]Read from MH i2c: E2 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 7F 48 00 C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 49 [23:55:05]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [23:55:05]wFMCommunicate OK [23:55:05]wFMCommunicate request_size=4 [23:55:05]MH_SAM_APDU [23:55:05]CAPDU: 80 17 00 00 [23:55:05]Write to MH i2c: E2 08 00 80 48 80 17 00 00 00 00 00 00 48 [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:05]Read from MH i2c: E2 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 80 48 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 81 [23:55:05]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [23:55:05]wFMCommunicate OK [23:55:05]wFMCommunicate request_size=4 [23:55:05]MH_SAM_APDU [23:55:05]CAPDU: 80 17 00 00 [23:55:05]Write to MH i2c: E2 08 00 81 48 80 17 00 00 00 00 00 00 49 [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:05]Read from MH i2c: E2 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 81 48 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 E9 [23:55:05]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:55:06]wFMCommunicate OK [23:55:06]wFMCommunicate request_size=4 [23:55:06]MH_SAM_APDU [23:55:06]CAPDU: 80 17 00 00 [23:55:06]Write to MH i2c: E2 08 00 82 48 80 17 00 00 00 00 00 00 4A [23:55:06]Write i2c OK [23:55:06]MH_I2C_Read... [23:55:06]OFD Sender: No OFD packet to send [23:55:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:06]Read from MH i2c: E2 [23:55:06]MH_I2C_Read... [23:55:06]Read from MH i2c: E2 FD 00 [23:55:06]MH_I2C_Read... [23:55:06]Read from MH i2c: E2 FD 00 82 48 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CF [23:55:06]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:06]wFMCommunicate OK [23:55:06]wFMCommunicate request_size=4 [23:55:06]MH_SAM_APDU [23:55:06]CAPDU: 80 17 00 00 [23:55:06]Write to MH i2c: E2 08 00 83 48 80 17 00 00 00 00 00 00 4B [23:55:06]Write i2c OK [23:55:06]MH_I2C_Read... [23:55:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:55:06]Read from MH i2c: E2 [23:55:06]MH_I2C_Read... [23:55:06]Read from MH i2c: E2 DE 00 [23:55:06]MH_I2C_Read... [23:55:06]Read from MH i2c: E2 DE 00 83 48 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2A [23:55:06]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:06]wFMCommunicate OK [23:55:06]SAM_PROTO_GetFMData done [23:55:06]requested_item fm.sale_refund.total is exist - process it [23:55:06]requested_item fm.buy.total is exist - process it [23:55:06]requested_item shift.sale.total is exist - process it [23:55:06]SAM_PROTO_GetShiftData [23:55:06]wFMCommunicate request_size=4 [23:55:06]MH_SAM_APDU [23:55:06]CAPDU: 80 13 02 00 [23:55:06]Write to MH i2c: E2 08 00 84 48 80 13 02 00 00 00 00 00 4A [23:55:06]Write i2c OK [23:55:06]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 FD 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 FD 00 84 48 00 B1 04 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 44 [23:55:07]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:55:07]wFMCommunicate OK [23:55:07]wFMCommunicate request_size=4 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 17 00 00 [23:55:07]Write to MH i2c: E2 08 00 85 48 80 17 00 00 00 00 00 00 4D [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 FD 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 FD 00 85 48 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 66 [23:55:07]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [23:55:07]wFMCommunicate OK [23:55:07]wFMCommunicate request_size=4 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 17 00 00 [23:55:07]Write to MH i2c: E2 08 00 86 48 80 17 00 00 00 00 00 00 4E [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 86 48 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 07 [23:55:08]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:55:08]wFMCommunicate OK [23:55:08]wFMCommunicate request_size=4 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 17 00 00 [23:55:08]Write to MH i2c: E2 08 00 87 48 80 17 00 00 00 00 00 00 4F [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 87 48 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 90 00 C7 [23:55:08]RAPDU: 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 90 00 [23:55:08]wFMCommunicate OK [23:55:08]wFMCommunicate request_size=4 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 17 00 00 [23:55:08]Write to MH i2c: E2 08 00 88 48 80 17 00 00 00 00 00 00 50 [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 CE 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 CE 00 88 48 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 35 [23:55:09]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:09]wFMCommunicate OK [23:55:09]SAM_PROTO_GetShiftData done [23:55:09]requested_item shift.sale.total_cash is exist - process it [23:55:09]requested_item shift.sale_refund.total is exist - process it [23:55:09]requested_item shift.sale_refund.total_cash is exist - process it [23:55:09]requested_item shift.buy.total is exist - process it [23:55:09]requested_item shift.buy.total_cash is exist - process it [23:55:09]produce_requested_data done [23:55:09]produce_requested_data return {"fm.sale.total":143362533.00,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":385897.18,"shift.sale.total_cash":245725.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:55:09]process_action_free get_value [23:55:09]json_value_free [23:55:09]json_value_free done [23:55:09]process_json_proto returns [23:55:09]Send response to host [23:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":143362533.00,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":385897.18,"shift.sale.total_cash":245725.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:55:09]free response buf [23:55:09]execute_script done [23:55:09]execute_script returns [23:55:09]free content buf [23:55:09]Sock 9.Close socket [23:55:09]Sock 9.Thread stoped [23:55:09]accept exits with 7 [23:55:09]New connection [23:55:09]New thread 3066879332 created [23:55:09]Thread 3066735972 joined [23:55:09]Waiting for new connection... [23:55:09] Sock 7.Parse request [23:55:09]Sock 7.Check first char [23:55:09]Sock 7.First char is OK [23:55:09]request: POST /json_proto HTTP/1.0 [23:55:09]Method: POST [23:55:09]URL: /json_proto [23:55:09]Method is POST - this is cgi request [23:55:09]url: /json_proto [23:55:09]query_string will be loaded in cgi processing [23:55:09]execute_cgi json_proto POST (null) [23:55:09]execute_cgi path=json_proto method=POST [23:55:09]POST find Content-Length [23:55:09]Host: 172.17.39.67:8080 [23:55:09]Content-Length: 269 [23:55:09]Content-Type: application/json [23:55:09] [23:55:09]POST finish read [23:55:09]Found Content-Length = 269 [23:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:09]execute_script... [23:55:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:09]POST & json_proto [23:55:09]process_json_proto [23:55:09]json parsed OK: [23:55:09]protocol is kg_v1.0 [23:55:09]action value=x_report [23:55:09]process_action x_report [23:55:09]cmd_x_report [23:55:09]MH_GetDate [23:55:09]Write to MH i2c: F0 00 00 89 48 C0 [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: F0 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: F0 09 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: F0 09 00 89 48 00 60 65 94 66 B6 85 93 66 BC [23:55:09]GetLastDocTimeStamp 1721001161 [23:55:09]current date 1721001312 [23:55:09]FM_GetShiftState [23:55:09]SAM_PROTO_GetShiftState [23:55:09]wFMCommunicate request_size=4 [23:55:09]MH_SAM_APDU [23:55:09]CAPDU: 80 13 01 00 [23:55:09]Write to MH i2c: E2 08 00 8A 48 80 13 01 00 00 00 00 00 4F [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:09]Read from MH i2c: E2 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 0E 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 0E 00 8A 48 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 85 [23:55:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:55:09]wFMCommunicate OK [23:55:09]SAM_PROTO_GetShiftState done [23:55:09]FM_GetShiftState done [23:55:09]KKMCreateXReportDocument [23:55:09]Load OK [23:55:09]Malloc new data [23:55:09]MH_GetDate [23:55:09]Write to MH i2c: F0 00 00 8B 48 C2 [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: F0 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: F0 09 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: F0 09 00 8B 48 00 60 65 94 66 B6 85 93 66 BE [23:55:09]Malloc new data [23:55:09]Malloc new data [23:55:09]wFMCommunicate request_size=4 [23:55:09]MH_SAM_APDU [23:55:09]CAPDU: 80 11 00 00 [23:55:09]Write to MH i2c: E2 08 00 8C 48 80 11 00 00 00 00 00 00 4E [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:09]Read from MH i2c: E2 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 17 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 17 00 8C 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AE [23:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:55:09]wFMCommunicate OK [23:55:09]SAM_PROTO_GetFieldsCounters [23:55:09]wFMCommunicate request_size=4 [23:55:09]MH_SAM_APDU [23:55:09]CAPDU: 80 13 00 00 [23:55:09]Write to MH i2c: E2 08 00 8D 48 80 13 00 00 00 00 00 00 51 [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:09]Read from MH i2c: E2 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 62 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 62 00 8D 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [23:55:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:09]wFMCommunicate OK [23:55:09]SAM_PROTO_GetFieldsCounters done [23:55:09]Malloc new data [23:55:09]Malloc new data [23:55:09]Malloc new data [23:55:09]KKMCreateXReportDocument OK [23:55:09]KKMSetXReportData OK [23:55:09]KKMPrepareXReportFMData [23:55:09]SAM_PROTO_GetShiftData [23:55:09]wFMCommunicate request_size=4 [23:55:09]MH_SAM_APDU [23:55:09]CAPDU: 80 13 02 00 [23:55:09]Write to MH i2c: E2 08 00 8E 48 80 13 02 00 00 00 00 00 54 [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:10]Read from MH i2c: E2 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 FD 00 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 FD 00 8E 48 00 B1 04 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 4E [23:55:10]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:55:10]wFMCommunicate OK [23:55:10]wFMCommunicate request_size=4 [23:55:10]MH_SAM_APDU [23:55:10]CAPDU: 80 17 00 00 [23:55:10]Write to MH i2c: E2 08 00 8F 48 80 17 00 00 00 00 00 00 57 [23:55:10]Write i2c OK [23:55:10]MH_I2C_Read... [23:55:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:10]Read from MH i2c: E2 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 FD 00 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 FD 00 8F 48 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 70 [23:55:10]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [23:55:10]wFMCommunicate OK [23:55:10]wFMCommunicate request_size=4 [23:55:10]MH_SAM_APDU [23:55:10]CAPDU: 80 17 00 00 [23:55:10]Write to MH i2c: E2 08 00 90 48 80 17 00 00 00 00 00 00 58 [23:55:10]Write i2c OK [23:55:10]MH_I2C_Read... [23:55:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:11]Read from MH i2c: E2 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 FD 00 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 FD 00 90 48 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 11 [23:55:11]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 OFD Sender: No OFD packet to send [23:55:11]00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:55:11]wFMCommunicate OK [23:55:11]wFMCommunicate request_size=4 [23:55:11]MH_SAM_APDU [23:55:11]CAPDU: 80 17 00 00 [23:55:11]Write to MH i2c: E2 08 00 91 48 80 17 00 00 00 00 00 00 59 [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:11]Read from MH i2c: E2 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 FD 00 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 FD 00 91 48 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 90 00 D1 [23:55:11]RAPDU: 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 90 00 [23:55:11]wFMCommunicate OK [23:55:11]wFMCommunicate request_size=4 [23:55:11]MH_SAM_APDU [23:55:11]CAPDU: 80 17 00 00 [23:55:11]Write to MH i2c: E2 08 00 92 48 80 17 00 00 00 00 00 00 5A [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:55:12]Read from MH i2c: E2 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 CE 00 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 CE 00 92 48 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3F [23:55:12]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:12]wFMCommunicate OK [23:55:12]SAM_PROTO_GetShiftData done [23:55:12]1194 (1197) - счетчики итогов смены [23:55:12] 1134 (4) - 286 - количество чеков со всеми признаками расчетов [23:55:12] 1129 (158) - счетчики операций «приход» [23:55:12] 1135 (4) - 286 - количество чеков по признаку расчетов [23:55:12] 1201 (4) - 385897.18 - общая итоговая сумма в чеках [23:55:12] 1136 (4) - 245725.00 - итоговая сумма в чеках наличными [23:55:12] 1138 (3) - 140172.18 - итоговая сумма в чеках безналичными [23:55:12] 1024 (123) - суммы налогов [23:55:12] 1006 (9) - суммы НДС [23:55:12] 1010 (1) - 0% - код ставки НДС [23:55:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:12] 1006 (12) - суммы НДС [23:55:12] 1010 (1) - 12% - код ставки НДС [23:55:12] 1011 (3) - 40988.79 - сумма НДС по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 0% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (12) - суммы НСП [23:55:12] 1014 (1) - 1% - код ставки НСП [23:55:12] 1015 (3) - 3415.55 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 2% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 3% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 5% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 0,50% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 1,50% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1130 (141) - счетчики операций «возврат прихода» [23:55:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:12] 1024 (117) - суммы налогов [23:55:12] 1006 (9) - суммы НДС [23:55:12] 1010 (1) - 0% - код ставки НДС [23:55:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:12] 1006 (9) - суммы НДС [23:55:12] 1010 (1) - 12% - код ставки НДС [23:55:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 0% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 1% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 2% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 3% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 5% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 0,50% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 1,50% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1131 (141) - счетчики операций «расход» [23:55:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:12] 1024 (117) - суммы налогов [23:55:12] 1006 (9) - суммы НДС [23:55:12] 1010 (1) - 0% - код ставки НДС [23:55:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:12] 1006 (9) - суммы НДС [23:55:12] 1010 (1) - 12% - код ставки НДС [23:55:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 0% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 1% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 2% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 3% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 5% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 0,50% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 1,50% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1132 (141) - счетчики операций «возврат расхода» [23:55:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:12] 1024 (117) - суммы налогов [23:55:12] 1006 (9) - суммы НДС [23:55:12] 1010 (1) - 0% - код ставки НДС [23:55:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:12] 1006 (9) - суммы НДС [23:55:12] 1010 (1) - 12% - код ставки НДС [23:55:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 0% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 1% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 2% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 3% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 5% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 0,50% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1007 (9) - суммы НСП [23:55:12] 1014 (1) - 1,50% - код ставки НСП [23:55:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:12] 1133 (588) - - счетчики коррекции - не используются [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1194 (04AA) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1134 (046E) [23:55:12]Malloc new data [23:55:12]Processing tag 1129 (0469) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1135 (046F) [23:55:12]Malloc new data [23:55:12]Processing tag 1201 (04B1) [23:55:12]Malloc new data [23:55:12]Processing tag 1136 (0470) [23:55:12]Malloc new data [23:55:12]Processing tag 1138 (0472) [23:55:12]Malloc new data [23:55:12]Processing tag 1024 (0400) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1006 (03EE) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1010 (03F2) [23:55:12]Malloc new data [23:55:12]Processing tag 1011 (03F3) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1006 (03EE) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1010 (03F2) [23:55:12]Malloc new data [23:55:12]Processing tag 1011 (03F3) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]SetTLVBufToDocument err=0 [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1130 (046A) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1135 (046F) [23:55:12]Malloc new data [23:55:12]Processing tag 1201 (04B1) [23:55:12]Malloc new data [23:55:12]Processing tag 1136 (0470) [23:55:12]Malloc new data [23:55:12]Processing tag 1138 (0472) [23:55:12]Malloc new data [23:55:12]Processing tag 1024 (0400) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1006 (03EE) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1010 (03F2) [23:55:12]Malloc new data [23:55:12]Processing tag 1011 (03F3) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1006 (03EE) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1010 (03F2) [23:55:12]Malloc new data [23:55:12]Processing tag 1011 (03F3) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]SetTLVBufToDocument err=0 [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1131 (046B) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1135 (046F) [23:55:12]Malloc new data [23:55:12]Processing tag 1201 (04B1) [23:55:12]Malloc new data [23:55:12]Processing tag 1136 (0470) [23:55:12]Malloc new data [23:55:12]Processing tag 1138 (0472) [23:55:12]Malloc new data [23:55:12]Processing tag 1024 (0400) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1006 (03EE) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1010 (03F2) [23:55:12]Malloc new data [23:55:12]Processing tag 1011 (03F3) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1006 (03EE) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1010 (03F2) [23:55:12]Malloc new data [23:55:12]Processing tag 1011 (03F3) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1007 (03EF) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1014 (03F6) [23:55:12]Malloc new data [23:55:12]Processing tag 1015 (03F7) [23:55:12]Malloc new data [23:55:12]SetTLVBufToDocument err=0 [23:55:12]SetTLVBufToDocument err=0 [23:55:12]SetTLVBufToDocument err=0 [23:55:12]Processing tag 1132 (046C) [23:55:12]Load OK [23:55:12]SetTLVBufToDocument [23:55:12]Processing tag 1135 (046F) [23:55:12]Malloc new data [23:55:12]Processing tag 1201 (04B1) [23:55:12]Malloc new data [23:55:12]Processing tag 1136 (0470) [23:55:12]Malloc new data [23:55:12]Processing tag 1138 (0472) [23:55:13]Malloc new data [23:55:13]Processing tag 1024 (0400) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1006 (03EE) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1010 (03F2) [23:55:13]Malloc new data [23:55:13]Processing tag 1011 (03F3) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1006 (03EE) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1010 (03F2) [23:55:13]Malloc new data [23:55:13]Processing tag 1011 (03F3) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1007 (03EF) [23:55:13]Load OK [23:55:13]SetTLVBufToDocument [23:55:13]Processing tag 1014 (03F6) [23:55:13]Malloc new data [23:55:13]Processing tag 1015 (03F7) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]SetTLVBufToDocument err=0 [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Processing tag 1133 (046D) [23:55:13]Malloc new data [23:55:13]SetTLVBufToDocument err=0 [23:55:13]SetTLVBufToDocument err=0 [23:55:13]Malloc new data [23:55:13]SAM_PROTO_GetFMData [23:55:13]wFMCommunicate request_size=4 [23:55:13]MH_SAM_APDU [23:55:13]CAPDU: 80 13 03 00 [23:55:13]Write to MH i2c: E2 08 00 93 48 80 13 03 00 00 00 00 00 5A [23:55:13]Write i2c OK [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 [23:55:13]MH_I2C_Read... [23:55:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:13]Read from MH i2c: E2 FD 00 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 FD 00 93 48 00 C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 5D [23:55:13]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [23:55:14]wFMCommunicate OK [23:55:14]wFMCommunicate request_size=4 [23:55:14]MH_SAM_APDU [23:55:14]CAPDU: 80 17 00 00 [23:55:14]Write to MH i2c: E2 08 00 94 48 80 17 00 00 00 00 00 00 5C [23:55:14]Write i2c OK [23:55:14]MH_I2C_Read... [23:55:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:14]Read from MH i2c: E2 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 94 48 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 95 [23:55:14]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [23:55:14]wFMCommunicate OK [23:55:14]wFMCommunicate request_size=4 [23:55:14]MH_SAM_APDU [23:55:14]CAPDU: 80 17 00 00 [23:55:14]Write to MH i2c: E2 08 00 95 48 80 17 00 00 00 00 00 00 5D [23:55:14]Write i2c OK [23:55:14]MH_I2C_Read... [23:55:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:14]Read from MH i2c: E2 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 95 48 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 FD [23:55:15]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:55:15]wFMCommunicate OK [23:55:15]wFMCommunicate request_size=4 [23:55:15]MH_SAM_APDU [23:55:15]CAPDU: 80 17 00 00 [23:55:15]Write to MH i2c: E2 08 00 96 48 80 17 00 00 00 00 00 00 5E [23:55:15]Write i2c OK [23:55:15]MH_I2C_Read... [23:55:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:15]Read from MH i2c: E2 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 FD 00 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 FD 00 96 48 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E3 [23:55:15]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:15]wFMCommunicate OK [23:55:15]wFMCommunicate request_size=4 [23:55:15]MH_SAM_APDU [23:55:15]CAPDU: 80 17 00 00 [23:55:15]Write to MH i2c: E2 08 00 97 48 80 17 00 00 00 00 00 00 5F [23:55:15]Write i2c OK [23:55:15]MH_I2C_Read... [23:55:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:55:16]Read from MH i2c: E2 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: E2 DE 00 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: E2 DE 00 97 48 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3E [23:55:16]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 OFD Sender: No OFD packet to send [23:55:16]00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:16]wFMCommunicate OK [23:55:16]SAM_PROTO_GetFMData done [23:55:16]FM_GetFMData:85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A 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 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:17]oper:6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:17]total:74 DD 81 56 03 [23:55:17]Malloc new data [23:55:17]oper:6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A 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 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:17]total:94 DE 5F [23:55:17]Malloc new data [23:55:17]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:17]total: [23:55:17]Malloc new data [23:55:17]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:17]total: [23:55:17]Malloc new data [23:55:17]KKMPrepareXReportFMData err=0 [23:55:17]Х отчет ИНН: 02508201610067 Кассир: Дуйшенбек у Н. 14.07.2024 23:55 Смена: 266 РНМ: 0000000000090858 ЗНМ: 0300000129 СНО: Общий режим Всего чеков: 286 ИТОГИ ПРИХОД Чеков: 286 Общий итог: 385897.18 Итого наличными: 245725.00 Итого безнал.: 140172.18 НДС 0% : 0.00 НДС 12% : 40988.79 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3415.55 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 245725.00 НС Приход: 143362533.00 НС Возвр.Прихода: 62829.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874899 [23:55:17]StoreToDocumentArchive [23:55:17]MH_GetDate [23:55:17]Write to MH i2c: F0 00 00 98 48 CF [23:55:17]Write i2c OK [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: F0 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: F0 09 00 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: F0 09 00 98 48 00 68 65 94 66 B6 85 93 66 D3 [23:55:17]shift 266 fd 1721001320 [23:55:17]Create dir for shift 0266 [23:55:17]save to /storage/0266/doc_1721001320 [23:55:17]save last doc name /storage/0266/doc_1721001320 to /storage/kkm_last_doc_name [23:55:17]save OK [23:55:17]Clear old archive folders... [23:55:17]NVStorageSaveData kkm_last_timestamp [23:55:17]File name is /storage/kkm_last_timestamp [23:55:17]Write 4 bytes [23:55:17]NVStorageSaveData done [23:55:17]ExternCall_PrintAddStr [23:55:17]wPrintStart [23:55:17]Write to MH i2c: 01 00 00 99 48 E1 [23:55:17]Write i2c OK [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: 01 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: 01 07 00 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: 01 07 00 99 48 00 00 00 00 00 FF 0F F6 [23:55:17]RasterBufferAndPrint [23:55:17]line Х отчет [23:55:17]line ИНН: 02508201610067 [23:55:17]line Кассир: Дуйшенбек у Н. [23:55:17]line 14.07.2024 23:55 [23:55:17]line Смена: 266 [23:55:17]line РНМ: 0000000000090858 [23:55:17]line ЗНМ: 0300000129 [23:55:17]line СНО: Общий режим [23:55:17]line Всего чеков: 286 [23:55:17]line ИТОГИ ПРИХОД [23:55:17]line Чеков: 286 [23:55:17]line Общий итог: 385897.18 [23:55:17]line Итого наличными: 245725.00 [23:55:17]line Итого безнал.: 140172.18 [23:55:17]line НДС 0% : 0.00 [23:55:17]line НДС 12% : 40988.79 [23:55:17]line НСП 0% : 0.00 [23:55:17]line НСП 1,50% : 0.00 [23:55:17]line НСП 0,50% : 0.00 [23:55:17]line НСП 5% : 0.00 [23:55:17]line НСП 3% : 0.00 [23:55:17]line НСП 2% : 0.00 [23:55:17]line НСП 1% : 3415.55 [23:55:17]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:55:17]line Чеков: 0 [23:55:17]line Общий итог: 0.00 [23:55:17]line Итого наличными: 0.00 [23:55:17]line Итого безнал.: 0.00 [23:55:17]line НДС 0% : 0.00 [23:55:17]line НДС 12% : 0.00 [23:55:17]line НСП 0% : 0.00 [23:55:17]line НСП 1,50% : 0.00 [23:55:17]line НСП 0,50% : 0.00 [23:55:17]line НСП 5% : 0.00 [23:55:17]line НСП 3% : 0.00 [23:55:17]line НСП 2% : 0.00 [23:55:17]line НСП 1% : 0.00 [23:55:17]line ИТОГИ РАСХОД [23:55:17]line Чеков: 0 [23:55:17]line Общий итог: 0.00 [23:55:17]line Итого наличными: 0.00 [23:55:17]line Итого безнал.: 0.00 [23:55:17]line НДС 0% : 0.00 [23:55:17]line НДС 12% : 0.00 [23:55:17]line НСП 0% : 0.00 [23:55:17]line НСП 1,50% : 0.00 [23:55:17]line НСП 0,50% : 0.00 [23:55:17]line НСП 5% : 0.00 [23:55:17]line НСП 3% : 0.00 [23:55:17]line НСП 2% : 0.00 [23:55:17]line НСП 1% : 0.00 [23:55:17]line ИТОГИ ВОЗВРАТ РАСХОДА [23:55:17]line Чеков: 0 [23:55:17]line Общий итог: 0.00 [23:55:17]line Итого наличными: 0.00 [23:55:17]line Итого безнал.: 0.00 [23:55:17]line НДС 0% : 0.00 [23:55:17]line НДС 12% : 0.00 [23:55:17]line НСП 0% : 0.00 [23:55:17]line НСП 1,50% : 0.00 [23:55:17]line НСП 0,50% : 0.00 [23:55:17]line НСП 5% : 0.00 [23:55:17]line НСП 3% : 0.00 [23:55:17]line НСП 2% : 0.00 [23:55:17]line НСП 1% : 0.00 [23:55:17]line Сумма внесений: 0.00 [23:55:17]line Сумма выплат: 0.00 [23:55:17]line Нал. в кассе: 245725.00 [23:55:17]line НС Приход: 143362533.00 [23:55:17]line НС Возвр.Прихода: 62829.00 [23:55:17]line НС Расход: 0.00 [23:55:17]line НС Возвр.Расхода: 0.00 [23:55:17]line ФМ: 0000000000874899 [23:55:17]written 0, free lines is 4095 [23:55:18]Write to MH i2c: 01 00 00 E4 48 2C [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: 01 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: 01 07 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: 01 07 00 E4 48 00 00 00 00 00 BD 0A FA [23:55:18]RasterBufferAndPrint [23:55:18]line [23:55:18]line [23:55:18]line [23:55:18]line [23:55:18]line [23:55:18]written 0, free lines is 2787 [23:55:18]MH_Cut [23:55:18]Write to MH i2c: D1 01 00 EB 48 01 05 [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: D1 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: D1 01 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: D1 01 00 EB 48 00 04 [23:55:18]Write to MH i2c: 01 00 00 EC 48 34 [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:19]*** Cut start [23:55:19]*** Purtial cut [23:55:19]*** Stage 1: CUTSNS_PIN = 1 [23:55:19]Read from MH i2c: 01 [23:55:19]MH_I2C_Read... [23:55:19]*** Stop cut motor [23:55:19]*** Cut end [23:55:19]Read from MH i2c: 01 07 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: 01 07 00 EC 48 00 00 00 00 00 FF 0F 49 [23:55:19]process_action x_report done [23:55:19]requested_data is exist [23:55:19]produce_requested_data [23:55:19]requested_item fd.num is exist - process it [23:55:19]SAM_PROTO_GetFieldsCounters [23:55:19]wFMCommunicate request_size=4 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 13 00 00 [23:55:19]Write to MH i2c: E2 08 00 ED 48 80 13 00 00 00 00 00 00 B1 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 62 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 62 00 ED 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [23:55:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:19]wFMCommunicate OK [23:55:19]SAM_PROTO_GetFieldsCounters done [23:55:19]requested_item shift.num is exist - process it [23:55:19]requested_item shift.opened is exist - process it [23:55:19]req_shift_opened [23:55:19]FM_GetShiftState [23:55:19]SAM_PROTO_GetShiftState [23:55:19]wFMCommunicate request_size=4 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 13 01 00 [23:55:19]Write to MH i2c: E2 08 00 EE 48 80 13 01 00 00 00 00 00 B3 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 0E 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 0E 00 EE 48 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E9 [23:55:20]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:55:20]wFMCommunicate OK [23:55:20]SAM_PROTO_GetShiftState done [23:55:20]FM_GetShiftState done [23:55:20]req_shift_opened done [23:55:20]requested_item shift.open_date is exist - process it [23:55:20]req_shift_open_date [23:55:20]req_shift_open_date done [23:55:20]produce_requested_data done [23:55:20]produce_requested_data return {"fd.num":162974,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [23:55:20]process_action_free x_report [23:55:20]json_value_free [23:55:20]json_value_free done [23:55:20]process_json_proto returns [23:55:20]Send response to host [23:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":162974,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [23:55:20]free response buf [23:55:20]execute_script done [23:55:20]execute_script returns [23:55:20]free content buf [23:55:20]Sock 7.Close socket [23:55:20]Sock 7.Thread stoped [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:42]accept exits with 9 [23:55:42]New connection [23:55:42]New thread 3066735972 created [23:55:42]Thread 3066879332 joined [23:55:42]Waiting for new connection... [23:55:42] Sock 9.Parse request [23:55:42]Sock 9.Check first char [23:55:42]Sock 9.First char is OK [23:55:42]request: POST /json_proto HTTP/1.0 [23:55:42]Method: POST [23:55:42]URL: /json_proto [23:55:42]Method is POST - this is cgi request [23:55:42]url: /json_proto [23:55:42]query_string will be loaded in cgi processing [23:55:42]execute_cgi json_proto POST (null) [23:55:42]execute_cgi path=json_proto method=POST [23:55:42]POST find Content-Length [23:55:42]Host: 172.17.39.67:8080 [23:55:42]Content-Length: 215 [23:55:42]Content-Type: application/json [23:55:42] [23:55:42]POST finish read [23:55:42]Found Content-Length = 215 [23:55:42]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:55:42]execute_script... [23:55:42]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:55:42]POST & json_proto [23:55:42]process_json_proto [23:55:42]json parsed OK: [23:55:42]protocol is kg_v1.0 [23:55:42]action value=get_value [23:55:42]process_action get_value [23:55:42]cmd_get_value [23:55:42]process_action get_value done [23:55:42]requested_data is exist [23:55:42]produce_requested_data [23:55:42]requested_item kkm.sn is exist - process it [23:55:42]requested_item kkm.ver is exist - process it [23:55:42]requested_item fm.sn is exist - process it [23:55:42]wFMCommunicate request_size=4 [23:55:42]MH_SAM_APDU [23:55:42]CAPDU: 80 11 00 00 [23:55:42]Write to MH i2c: E2 08 00 EF 48 80 11 00 00 00 00 00 00 B1 [23:55:42]Write i2c OK [23:55:42]MH_I2C_Read... [23:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:42]Read from MH i2c: E2 [23:55:42]MH_I2C_Read... [23:55:42]Read from MH i2c: E2 17 00 [23:55:42]MH_I2C_Read... [23:55:42]Read from MH i2c: E2 17 00 EF 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 11 [23:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:55:42]wFMCommunicate OK [23:55:42]requested_item fd.num is exist - process it [23:55:42]SAM_PROTO_GetFieldsCounters [23:55:42]wFMCommunicate request_size=4 [23:55:42]MH_SAM_APDU [23:55:42]CAPDU: 80 13 00 00 [23:55:42]Write to MH i2c: E2 08 00 F0 48 80 13 00 00 00 00 00 00 B4 [23:55:42]Write i2c OK [23:55:42]MH_I2C_Read... [23:55:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:43]Read from MH i2c: E2 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 62 00 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 62 00 F0 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [23:55:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:43]wFMCommunicate OK [23:55:43]SAM_PROTO_GetFieldsCounters done [23:55:43]requested_item shift.num is exist - process it [23:55:43]requested_item shift.opened is exist - process it [23:55:43]req_shift_opened [23:55:43]FM_GetShiftState [23:55:43]SAM_PROTO_GetShiftState [23:55:43]wFMCommunicate request_size=4 [23:55:43]MH_SAM_APDU [23:55:43]CAPDU: 80 13 01 00 [23:55:43]Write to MH i2c: E2 08 00 F1 48 80 13 01 00 00 00 00 00 B6 [23:55:43]Write i2c OK [23:55:43]MH_I2C_Read... [23:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:43]Read from MH i2c: E2 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 0E 00 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 0E 00 F1 48 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 EC [23:55:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:55:43]wFMCommunicate OK [23:55:43]SAM_PROTO_GetShiftState done [23:55:43]FM_GetShiftState done [23:55:43]req_shift_opened done [23:55:43]requested_item shift.open_date is exist - process it [23:55:43]req_shift_open_date [23:55:43]req_shift_open_date done [23:55:43]produce_requested_data done [23:55:43]produce_requested_data return {"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162974,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [23:55:43]process_action_free get_value [23:55:43]json_value_free [23:55:43]json_value_free done [23:55:43]process_json_proto returns [23:55:43]Send response to host [23:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162974,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [23:55:43]free response buf [23:55:43]execute_script done [23:55:43]execute_script returns [23:55:43]free content buf [23:55:43]Sock 9.Close socket [23:55:43]Sock 9.Thread stoped [23:55:43]accept exits with 10 [23:55:43]New connection [23:55:43]New thread 3066879332 created [23:55:43]Thread 3066735972 joined [23:55:43]Waiting for new connection... [23:55:43] Sock 10.Parse request [23:55:43]Sock 10.Check first char [23:55:43]Sock 10.First char is OK [23:55:43]request: POST /json_proto HTTP/1.0 [23:55:43]Method: POST [23:55:43]URL: /json_proto [23:55:43]Method is POST - this is cgi request [23:55:43]url: /json_proto [23:55:43]query_string will be loaded in cgi processing [23:55:43]execute_cgi json_proto POST (null) [23:55:43]execute_cgi path=json_proto method=POST [23:55:43]POST find Content-Length [23:55:43]Host: 172.17.39.67:8080 [23:55:43]Content-Length: 331 [23:55:43]Content-Type: application/json [23:55:43] [23:55:43]POST finish read [23:55:43]Found Content-Length = 331 [23:55:43]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:55:43]execute_script... [23:55:43]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:55:43]POST & json_proto [23:55:43]process_json_proto [23:55:43]json parsed OK: [23:55:43]protocol is kg_v1.0 [23:55:43]action value=get_value [23:55:43]process_action get_value [23:55:43]cmd_get_value [23:55:43]process_action get_value done [23:55:43]requested_data is exist [23:55:43]produce_requested_data [23:55:43]requested_item fm.sale.total is exist - process it [23:55:43]SAM_PROTO_GetFMData [23:55:43]wFMCommunicate request_size=4 [23:55:43]MH_SAM_APDU [23:55:43]CAPDU: 80 13 03 00 [23:55:43]Write to MH i2c: E2 08 00 F2 48 80 13 03 00 00 00 00 00 B9 [23:55:43]Write i2c OK [23:55:43]MH_I2C_Read... [23:55:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:43]Read from MH i2c: E2 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 FD 00 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 FD 00 F2 48 00 C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 BC [23:55:43]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [23:55:43]wFMCommunicate OK [23:55:43]wFMCommunicate request_size=4 [23:55:43]MH_SAM_APDU [23:55:43]CAPDU: 80 17 00 00 [23:55:43]Write to MH i2c: E2 08 00 F3 48 80 17 00 00 00 00 00 00 BB [23:55:43]Write i2c OK [23:55:43]MH_I2C_Read... [23:55:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:43]Read from MH i2c: E2 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 FD 00 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 FD 00 F3 48 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 F4 [23:55:44]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [23:55:44]wFMCommunicate OK [23:55:44]wFMCommunicate request_size=4 [23:55:44]MH_SAM_APDU [23:55:44]CAPDU: 80 17 00 00 [23:55:44]Write to MH i2c: E2 08 00 F4 48 80 17 00 00 00 00 00 00 BC [23:55:44]Write i2c OK [23:55:44]MH_I2C_Read... [23:55:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:44]Read from MH i2c: E2 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 FD 00 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 FD 00 F4 48 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 5C [23:55:44]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:55:44]wFMCommunicate OK [23:55:44]wFMCommunicate request_size=4 [23:55:44]MH_SAM_APDU [23:55:44]CAPDU: 80 17 00 00 [23:55:44]Write to MH i2c: E2 08 00 F5 48 80 17 00 00 00 00 00 00 BD [23:55:44]Write i2c OK [23:55:44]MH_I2C_Read... [23:55:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:44]Read from MH i2c: E2 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 FD 00 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 FD 00 F5 48 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 42 [23:55:44]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:44]wFMCommunicate OK [23:55:44]wFMCommunicate request_size=4 [23:55:44]MH_SAM_APDU [23:55:44]CAPDU: 80 17 00 00 [23:55:44]Write to MH i2c: E2 08 00 F6 48 80 17 00 00 00 00 00 00 BE [23:55:44]Write i2c OK [23:55:44]MH_I2C_Read... [23:55:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:55:45]Read from MH i2c: E2 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: E2 DE 00 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: E2 DE 00 F6 48 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9D [23:55:45]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:45]wFMCommunicate OK [23:55:45]SAM_PROTO_GetFMData done [23:55:45]requested_item fm.sale_refund.total is exist - process it [23:55:45]requested_item fm.buy.total is exist - process it [23:55:45]requested_item shift.sale.total is exist - process it [23:55:45]SAM_PROTO_GetShiftData [23:55:45]wFMCommunicate request_size=4 [23:55:45]MH_SAM_APDU [23:55:45]CAPDU: 80 13 02 00 [23:55:45]Write to MH i2c: E2 08 00 F7 48 80 13 02 00 00 00 00 00 BD [23:55:45]Write i2c OK [23:55:45]MH_I2C_Read... [23:55:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:45]Read from MH i2c: E2 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: E2 FD 00 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: E2 FD 00 F7 48 00 B1 04 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B7 [23:55:45]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:55:46]wFMCommunicate OK [23:55:46]wFMCommunicate request_size=4 [23:55:46]MH_SAM_APDU [23:55:46]CAPDU: 80 17 00 00 [23:55:46]Write to MH i2c: E2 08 00 F8 48 80 17 00 00 00 00 00 00 C0 [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:46]Read from MH i2c: E2 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 FD 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 FD 00 F8 48 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 D9 [23:55:46]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [23:55:46]wFMCommunicate OK [23:55:46]wFMCommunicate request_size=4 [23:55:46]MH_SAM_APDU [23:55:46]CAPDU: 80 17 00 00 [23:55:46]Write to MH i2c: E2 08 00 F9 48 80 17 00 00 00 00 00 00 C1 [23:55:46]OFD Sender: No OFD packet to send [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 [23:55:46]MH_I2C_Read... [23:55:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:46]Read from MH i2c: E2 FD 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 FD 00 F9 48 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 7A [23:55:46]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:55:47]wFMCommunicate OK [23:55:47]wFMCommunicate request_size=4 [23:55:47]MH_SAM_APDU [23:55:47]CAPDU: 80 17 00 00 [23:55:47]Write to MH i2c: E2 08 00 FA 48 80 17 00 00 00 00 00 00 C2 [23:55:47]Write i2c OK [23:55:47]MH_I2C_Read... [23:55:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:47]Read from MH i2c: E2 [23:55:47]MH_I2C_Read... [23:55:47]Read from MH i2c: E2 FD 00 [23:55:47]MH_I2C_Read... [23:55:47]Read from MH i2c: E2 FD 00 FA 48 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 90 00 3A [23:55:47]RAPDU: 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 90 00 [23:55:47]wFMCommunicate OK [23:55:47]wFMCommunicate request_size=4 [23:55:47]MH_SAM_APDU [23:55:47]CAPDU: 80 17 00 00 [23:55:47]Write to MH i2c: E2 08 00 FB 48 80 17 00 00 00 00 00 00 C3 [23:55:47]Write i2c OK [23:55:47]MH_I2C_Read... [23:55:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:55:47]Read from MH i2c: E2 [23:55:47]MH_I2C_Read... [23:55:47]Read from MH i2c: E2 CE 00 [23:55:47]MH_I2C_Read... [23:55:47]Read from MH i2c: E2 CE 00 FB 48 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A8 [23:55:47]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:48]wFMCommunicate OK [23:55:48]SAM_PROTO_GetShiftData done [23:55:48]requested_item shift.sale.total_cash is exist - process it [23:55:48]requested_item shift.sale_refund.total is exist - process it [23:55:48]requested_item shift.sale_refund.total_cash is exist - process it [23:55:48]requested_item shift.buy.total is exist - process it [23:55:48]requested_item shift.buy.total_cash is exist - process it [23:55:48]produce_requested_data done [23:55:48]produce_requested_data return {"fm.sale.total":143362533.00,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":385897.18,"shift.sale.total_cash":245725.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:55:48]process_action_free get_value [23:55:48]json_value_free [23:55:48]json_value_free done [23:55:48]process_json_proto returns [23:55:48]Send response to host [23:55:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":143362533.00,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":385897.18,"shift.sale.total_cash":245725.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:55:48]free response buf [23:55:48]execute_script done [23:55:48]execute_script returns [23:55:48]free content buf [23:55:48]Sock 10.Close socket [23:55:48]Sock 10.Thread stoped [23:55:48]accept exits with 7 [23:55:48]New connection [23:55:48]New thread 3066735972 created [23:55:48]Thread 3066879332 joined [23:55:48]Waiting for new connection... [23:55:48] Sock 7.Parse request [23:55:48]Sock 7.Check first char [23:55:48]Sock 7.First char is OK [23:55:48]request: POST /json_proto HTTP/1.0 [23:55:48]Method: POST [23:55:48]URL: /json_proto [23:55:48]Method is POST - this is cgi request [23:55:48]url: /json_proto [23:55:48]query_string will be loaded in cgi processing [23:55:48]execute_cgi json_proto POST (null) [23:55:48]execute_cgi path=json_proto method=POST [23:55:48]POST find Content-Length [23:55:48]Host: 172.17.39.67:8080 [23:55:48]Content-Length: 331 [23:55:48]Content-Type: application/json [23:55:48] [23:55:48]POST finish read [23:55:48]Found Content-Length = 331 [23:55: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" ] } } [23:55:48]execute_script... [23:55: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" ] } } [23:55:48]POST & json_proto [23:55:48]process_json_proto [23:55:48]json parsed OK: [23:55:48]protocol is kg_v1.0 [23:55:48]action value=get_value [23:55:48]process_action get_value [23:55:48]cmd_get_value [23:55:48]process_action get_value done [23:55:48]requested_data is exist [23:55:48]produce_requested_data [23:55:48]requested_item fm.sale.total is exist - process it [23:55:48]SAM_PROTO_GetFMData [23:55:48]wFMCommunicate request_size=4 [23:55:48]MH_SAM_APDU [23:55:48]CAPDU: 80 13 03 00 [23:55:48]Write to MH i2c: E2 08 00 FC 48 80 13 03 00 00 00 00 00 C3 [23:55:48]Write i2c OK [23:55:48]MH_I2C_Read... [23:55:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:48]Read from MH i2c: E2 [23:55:48]MH_I2C_Read... [23:55:48]Read from MH i2c: E2 FD 00 [23:55:48]MH_I2C_Read... [23:55:48]Read from MH i2c: E2 FD 00 FC 48 00 C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 C6 [23:55:48]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [23:55:48]wFMCommunicate OK [23:55:48]wFMCommunicate request_size=4 [23:55:48]MH_SAM_APDU [23:55:48]CAPDU: 80 17 00 00 [23:55:48]Write to MH i2c: E2 08 00 FD 48 80 17 00 00 00 00 00 00 C5 [23:55:48]Write i2c OK [23:55:48]MH_I2C_Read... [23:55:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:49]Read from MH i2c: E2 [23:55:49]MH_I2C_Read... [23:55:49]Read from MH i2c: E2 FD 00 [23:55:49]MH_I2C_Read... [23:55:49]Read from MH i2c: E2 FD 00 FD 48 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 FE [23:55:49]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [23:55:49]wFMCommunicate OK [23:55:49]wFMCommunicate request_size=4 [23:55:49]MH_SAM_APDU [23:55:49]CAPDU: 80 17 00 00 [23:55:49]Write to MH i2c: E2 08 00 FE 48 80 17 00 00 00 00 00 00 C6 [23:55:49]Write i2c OK [23:55:49]MH_I2C_Read... [23:55:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:49]Read from MH i2c: E2 [23:55:49]MH_I2C_Read... [23:55:49]Read from MH i2c: E2 FD 00 [23:55:49]MH_I2C_Read... [23:55:49]Read from MH i2c: E2 FD 00 FE 48 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 66 [23:55:49]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:55:49]wFMCommunicate OK [23:55:49]wFMCommunicate request_size=4 [23:55:49]MH_SAM_APDU [23:55:49]CAPDU: 80 17 00 00 [23:55:49]Write to MH i2c: E2 08 00 FF 48 80 17 00 00 00 00 00 00 C7 [23:55:50]Write i2c OK [23:55:50]MH_I2C_Read... [23:55:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:50]Read from MH i2c: E2 [23:55:50]MH_I2C_Read... [23:55:50]Read from MH i2c: E2 FD 00 [23:55:50]MH_I2C_Read... [23:55:50]Read from MH i2c: E2 FD 00 FF 48 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4C [23:55:50]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:50]wFMCommunicate OK [23:55:50]wFMCommunicate request_size=4 [23:55:50]MH_SAM_APDU [23:55:50]CAPDU: 80 17 00 00 [23:55:50]Write to MH i2c: E2 08 00 00 49 80 17 00 00 00 00 00 00 C9 [23:55:50]Write i2c OK [23:55:50]MH_I2C_Read... [23:55:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:55:50]Read from MH i2c: E2 [23:55:50]MH_I2C_Read... [23:55:50]Read from MH i2c: E2 DE 00 [23:55:50]MH_I2C_Read... [23:55:50]Read from MH i2c: E2 DE 00 00 49 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A8 [23:55:50]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:51]wFMCommunicate OK [23:55:51]SAM_PROTO_GetFMData done [23:55:51]requested_item fm.sale_refund.total is exist - process it [23:55:51]requested_item fm.buy.total is exist - process it [23:55:51]requested_item shift.sale.total is exist - process it [23:55:51]SAM_PROTO_GetShiftData [23:55:51]wFMCommunicate request_size=4 [23:55:51]MH_SAM_APDU [23:55:51]CAPDU: 80 13 02 00 [23:55:51]Write to MH i2c: E2 08 00 01 49 80 13 02 00 00 00 00 00 C8 [23:55:51]Write i2c OK [23:55:51]MH_I2C_Read... [23:55:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:51]Read from MH i2c: E2 [23:55:51]MH_I2C_Read... [23:55:51]Read from MH i2c: E2 FD 00 [23:55:51]MH_I2C_Read... [23:55:51]Read from MH i2c: E2 FD 00 01 49 00 B1 04 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 C2 [23:55:51]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 OFD Sender: No OFD packet to send [23:55:51]01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:55:51]wFMCommunicate OK [23:55:51]wFMCommunicate request_size=4 [23:55:51]MH_SAM_APDU [23:55:51]CAPDU: 80 17 00 00 [23:55:51]Write to MH i2c: E2 08 00 02 49 80 17 00 00 00 00 00 00 CB [23:55:51]Write i2c OK [23:55:51]MH_I2C_Read... [23:55:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:52]Read from MH i2c: E2 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 FD 00 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 FD 00 02 49 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 E4 [23:55:52]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [23:55:52]wFMCommunicate OK [23:55:52]wFMCommunicate request_size=4 [23:55:52]MH_SAM_APDU [23:55:52]CAPDU: 80 17 00 00 [23:55:52]Write to MH i2c: E2 08 00 03 49 80 17 00 00 00 00 00 00 CC [23:55:52]Write i2c OK [23:55:52]MH_I2C_Read... [23:55:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:52]Read from MH i2c: E2 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 FD 00 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 FD 00 03 49 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 85 [23:55:52]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:55:52]wFMCommunicate OK [23:55:52]wFMCommunicate request_size=4 [23:55:52]MH_SAM_APDU [23:55:52]CAPDU: 80 17 00 00 [23:55:52]Write to MH i2c: E2 08 00 04 49 80 17 00 00 00 00 00 00 CD [23:55:52]Write i2c OK [23:55:52]MH_I2C_Read... [23:55:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:53]Read from MH i2c: E2 [23:55:53]MH_I2C_Read... [23:55:53]Read from MH i2c: E2 FD 00 [23:55:53]MH_I2C_Read... [23:55:53]Read from MH i2c: E2 FD 00 04 49 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 90 00 45 [23:55:53]RAPDU: 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 90 00 [23:55:53]wFMCommunicate OK [23:55:53]wFMCommunicate request_size=4 [23:55:53]MH_SAM_APDU [23:55:53]CAPDU: 80 17 00 00 [23:55:53]Write to MH i2c: E2 08 00 05 49 80 17 00 00 00 00 00 00 CE [23:55:53]Write i2c OK [23:55:53]MH_I2C_Read... [23:55:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:55:53]Read from MH i2c: E2 [23:55:53]MH_I2C_Read... [23:55:53]Read from MH i2c: E2 CE 00 [23:55:53]MH_I2C_Read... [23:55:53]Read from MH i2c: E2 CE 00 05 49 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B3 [23:55:53]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:54]wFMCommunicate OK [23:55:54]SAM_PROTO_GetShiftData done [23:55:54]requested_item shift.sale.total_cash is exist - process it [23:55:54]requested_item shift.sale_refund.total is exist - process it [23:55:54]requested_item shift.sale_refund.total_cash is exist - process it [23:55:54]requested_item shift.buy.total is exist - process it [23:55:54]requested_item shift.buy.total_cash is exist - process it [23:55:54]produce_requested_data done [23:55:54]produce_requested_data return {"fm.sale.total":143362533.00,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":385897.18,"shift.sale.total_cash":245725.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:55:54]process_action_free get_value [23:55:54]json_value_free [23:55:54]json_value_free done [23:55:54]process_json_proto returns [23:55:54]Send response to host [23:55:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":143362533.00,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":385897.18,"shift.sale.total_cash":245725.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:55:54]free response buf [23:55:54]execute_script done [23:55:54]execute_script returns [23:55:54]free content buf [23:55:54]Sock 7.Close socket [23:55:54]Sock 7.Thread stoped [23:55:54]accept exits with 10 [23:55:54]New connection [23:55:54]New thread 3066879332 created [23:55:54]Thread 3066735972 joined [23:55:54]Waiting for new connection... [23:55:54] Sock 10.Parse request [23:55:54]Sock 10.Check first char [23:55:54]Sock 10.First char is OK [23:55:54]request: POST /json_proto HTTP/1.0 [23:55:54]Method: POST [23:55:54]URL: /json_proto [23:55:54]Method is POST - this is cgi request [23:55:54]url: /json_proto [23:55:54]query_string will be loaded in cgi processing [23:55:54]execute_cgi json_proto POST (null) [23:55:54]execute_cgi path=json_proto method=POST [23:55:54]POST find Content-Length [23:55:54]Host: 172.17.39.67:8080 [23:55:54]Content-Length: 272 [23:55:54]Content-Type: application/json [23:55:54] [23:55:54]POST finish read [23:55:54]Found Content-Length = 272 [23:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:54]execute_script... [23:55:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:54]POST & json_proto [23:55:54]process_json_proto [23:55:54]json parsed OK: [23:55:54]protocol is kg_v1.0 [23:55:54]action value=close_shift [23:55:54]process_action close_shift [23:55:54]cmd_close_shift [23:55:54]MH_GetDate [23:55:54]Write to MH i2c: F0 00 00 06 49 3E [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: F0 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: F0 09 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: F0 09 00 06 49 00 8D 65 94 66 B6 85 93 66 67 [23:55:54]GetLastDocTimeStamp 1721001312 [23:55:54]current date 1721001357 [23:55:54]FM_GetShiftState [23:55:54]SAM_PROTO_GetShiftState [23:55:54]wFMCommunicate request_size=4 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 13 01 00 [23:55:54]Write to MH i2c: E2 08 00 07 49 80 13 01 00 00 00 00 00 CD [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 0E 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 0E 00 07 49 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 03 [23:55:54]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [23:55:54]wFMCommunicate OK [23:55:54]SAM_PROTO_GetShiftState done [23:55:54]FM_GetShiftState done [23:55:54]KKMCreateCloseShiftDocument [23:55:54]Load OK [23:55:54]Malloc new data [23:55:54]MH_GetDate [23:55:54]Write to MH i2c: F0 00 00 08 49 40 [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: F0 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: F0 09 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: F0 09 00 08 49 00 8D 65 94 66 B6 85 93 66 69 [23:55:54]Malloc new data [23:55:54]Malloc new data [23:55:54]Malloc new data [23:55:54]Malloc new data [23:55:54]KKMCreateCloseShiftDocument OK [23:55:54]KKMSetCloseShiftData OK [23:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=75 [23:55:54]tlvbuf is 01206080 [23:55:54]KKMLoadAndSignCloseShiftData [23:55:54]SAM_PROTO_ProcessDocument [23:55:54]wFMCommunicate request_size=9 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 15 01 00 04 05 00 4B 00 [23:55:54]Write to MH i2c: E2 0C 00 09 49 80 15 01 00 04 00 05 00 4B 00 00 00 29 [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 09 49 00 90 00 C6 [23:55:54]RAPDU: 90 00 [23:55:54]wFMCommunicate OK [23:55:54]wFMCommunicate request_size=23 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:55:54]Write to MH i2c: E2 1A 00 0A 49 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 C8 [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 0A 49 00 90 00 C7 [23:55:54]RAPDU: 90 00 [23:55:54]wFMCommunicate OK [23:55:54]wFMCommunicate request_size=34 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E [23:55:54]Write to MH i2c: E2 25 00 0B 49 80 15 02 00 1D 00 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E 00 00 92 [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 0B 49 00 90 00 C8 [23:55:54]RAPDU: 90 00 [23:55:54]wFMCommunicate OK [23:55:54]wFMCommunicate request_size=13 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 15 02 00 08 F4 03 04 00 8D 65 94 66 [23:55:54]Write to MH i2c: E2 10 00 0C 49 80 15 02 00 08 00 F4 03 04 00 8D 65 94 66 00 00 CC [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 0C 49 00 90 00 C9 [23:55:54]RAPDU: 90 00 [23:55:54]wFMCommunicate OK [23:55:54]wFMCommunicate request_size=25 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 [23:55:54]Write to MH i2c: E2 1C 00 0D 49 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 00 00 3D [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 0D 49 00 90 00 CA [23:55:54]RAPDU: 90 00 [23:55:54]wFMCommunicate OK [23:55:54]wFMCommunicate request_size=4 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 15 03 00 [23:55:54]Write to MH i2c: E2 08 00 0E 49 80 15 03 00 00 00 00 00 D8 [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:55]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:55:55]Read from MH i2c: E2 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: E2 FD 00 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: E2 FD 00 0E 49 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9F 7C 02 00 0E 04 04 00 CF 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 20 01 00 00 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 9F [23:55:55]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9F 7C 02 00 0E 04 04 00 CF 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 20 01 00 00 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [23:55:55]wFMCommunicate OK [23:55:55]SAM_PROTO_ProcessDocument answer len = 1268 [23:55:55]SAM_PROTO_ProcessDocument remain to read = 1020 [23:55:55]wFMCommunicate request_size=4 [23:55:55]MH_SAM_APDU [23:55:55]CAPDU: 80 17 00 00 [23:55:55]Write to MH i2c: E2 08 00 0F 49 80 17 00 00 00 00 00 00 D8 [23:55:55]Write i2c OK [23:55:55]MH_I2C_Read... [23:55:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:55]Read from MH i2c: E2 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: E2 FD 00 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: E2 FD 00 0F 49 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 2C [23:55:56]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [23:55:56]wFMCommunicate OK [23:55:56]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:56]SAM_PROTO_ProcessDocument remain to read = 770 [23:55:56]wFMCommunicate request_size=4 [23:55:56]MH_SAM_APDU [23:55:56]CAPDU: 80 17 00 00 [23:55:56]Write to MH i2c: E2 08 00 10 49 80 17 00 00 00 00 00 00 D9 [23:55:56]Write i2c OK [23:55:56]MH_I2C_Read... [23:55:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:56]Read from MH i2c: E2 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 FD 00 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 FD 00 10 49 00 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 3B [23:55:56]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 OFD Sender: No OFD packet to send [23:55:56]B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [23:55:56]wFMCommunicate OK [23:55:56]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:56]SAM_PROTO_ProcessDocument remain to read = 520 [23:55:56]wFMCommunicate request_size=4 [23:55:56]MH_SAM_APDU [23:55:56]CAPDU: 80 17 00 00 [23:55:56]Write to MH i2c: E2 08 00 11 49 80 17 00 00 00 00 00 00 DA [23:55:56]Write i2c OK [23:55:56]MH_I2C_Read... [23:55:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:57]Read from MH i2c: E2 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 FD 00 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 FD 00 11 49 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 62 [23:55:57]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:57]wFMCommunicate OK [23:55:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:57]SAM_PROTO_ProcessDocument remain to read = 270 [23:55:57]wFMCommunicate request_size=4 [23:55:57]MH_SAM_APDU [23:55:57]CAPDU: 80 17 00 00 [23:55:57]Write to MH i2c: E2 08 00 12 49 80 17 00 00 00 00 00 00 DB [23:55:57]Write i2c OK [23:55:57]MH_I2C_Read... [23:55:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:57]Read from MH i2c: E2 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 FD 00 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 FD 00 12 49 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 A5 [23:55:57]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [23:55:58]wFMCommunicate OK [23:55:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:58]SAM_PROTO_ProcessDocument remain to read = 20 [23:55:58]wFMCommunicate request_size=4 [23:55:58]MH_SAM_APDU [23:55:58]CAPDU: 80 17 00 00 [23:55:58]Write to MH i2c: E2 08 00 13 49 80 17 00 00 00 00 00 00 DC [23:55:58]Write i2c OK [23:55:58]MH_I2C_Read... [23:55:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [23:55:58]Read from MH i2c: E2 [23:55:58]MH_I2C_Read... [23:55:58]Read from MH i2c: E2 17 00 [23:55:58]MH_I2C_Read... [23:55:58]Read from MH i2c: E2 17 00 13 49 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 ED 2A 9C FA 86 D7 90 00 27 [23:55:58]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 ED 2A 9C FA 86 D7 90 00 [23:55:58]wFMCommunicate OK [23:55:58]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [23:55:58]SAM_PROTO_ProcessDocument done [23:55:58]1209 (1) - 1.0 - номер версии ФФД [23:55:58]1041 (16) - 0000000000874899 - номер ФМ [23:55:58]1040 (4) - 162975 - номер ФД [23:55:58]1038 (4) - 463 - номер смены [23:55:58]1118 (4) - 286 - количество кассовых чеков за смену [23:55:58]1111 (4) - 288 - общее количество ФД за смену [23:55:58]1194 (1197) - счетчики итогов смены [23:55:58] 1134 (4) - 286 - количество чеков со всеми признаками расчетов [23:55:58] 1129 (158) - счетчики операций «приход» [23:55:58] 1135 (4) - 286 - количество чеков по признаку расчетов [23:55:58] 1201 (4) - 385897.18 - общая итоговая сумма в чеках [23:55:58] 1136 (4) - 245725.00 - итоговая сумма в чеках наличными [23:55:58] 1138 (3) - 140172.18 - итоговая сумма в чеках безналичными [23:55:58] 1024 (123) - суммы налогов [23:55:58] 1006 (9) - суммы НДС [23:55:58] 1010 (1) - 0% - код ставки НДС [23:55:58] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:58] 1006 (12) - суммы НДС [23:55:58] 1010 (1) - 12% - код ставки НДС [23:55:58] 1011 (3) - 40988.79 - сумма НДС по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 0% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (12) - суммы НСП [23:55:58] 1014 (1) - 1% - код ставки НСП [23:55:58] 1015 (3) - 3415.55 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 2% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 3% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 5% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 0,50% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 1,50% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1130 (141) - счетчики операций «возврат прихода» [23:55:58] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:58] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:58] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:58] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:58] 1024 (117) - суммы налогов [23:55:58] 1006 (9) - суммы НДС [23:55:58] 1010 (1) - 0% - код ставки НДС [23:55:58] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:58] 1006 (9) - суммы НДС [23:55:58] 1010 (1) - 12% - код ставки НДС [23:55:58] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 0% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 1% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 2% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 3% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 5% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 0,50% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 1,50% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1131 (141) - счетчики операций «расход» [23:55:58] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:58] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:58] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:58] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:58] 1024 (117) - суммы налогов [23:55:58] 1006 (9) - суммы НДС [23:55:58] 1010 (1) - 0% - код ставки НДС [23:55:58] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:58] 1006 (9) - суммы НДС [23:55:58] 1010 (1) - 12% - код ставки НДС [23:55:58] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 0% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 1% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 2% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 3% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 5% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 0,50% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 1,50% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1132 (141) - счетчики операций «возврат расхода» [23:55:58] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:58] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:58] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:58] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:58] 1024 (117) - суммы налогов [23:55:58] 1006 (9) - суммы НДС [23:55:58] 1010 (1) - 0% - код ставки НДС [23:55:58] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:58] 1006 (9) - суммы НДС [23:55:58] 1010 (1) - 12% - код ставки НДС [23:55:58] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 0% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 1% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 2% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 3% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 5% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 0,50% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1007 (9) - суммы НСП [23:55:58] 1014 (1) - 1,50% - код ставки НСП [23:55:58] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:58] 1133 (588) - - счетчики коррекции - не используются [23:55:58]1077 (6) - 260767278073559 - ФПД [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1209 (04B9) [23:55:58]Malloc new data [23:55:58]Processing tag 1041 (0411) [23:55:58]Processing tag 1040 (0410) [23:55:58]Malloc new data [23:55:58]Processing tag 1038 (040E) [23:55:58]Malloc new data [23:55:58]Processing tag 1118 (045E) [23:55:58]Malloc new data [23:55:58]Processing tag 1111 (0457) [23:55:58]Malloc new data [23:55:58]Processing tag 1194 (04AA) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1134 (046E) [23:55:58]Malloc new data [23:55:58]Processing tag 1129 (0469) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1135 (046F) [23:55:58]Malloc new data [23:55:58]Processing tag 1201 (04B1) [23:55:58]Malloc new data [23:55:58]Processing tag 1136 (0470) [23:55:58]Malloc new data [23:55:58]Processing tag 1138 (0472) [23:55:58]Malloc new data [23:55:58]Processing tag 1024 (0400) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1006 (03EE) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1010 (03F2) [23:55:58]Malloc new data [23:55:58]Processing tag 1011 (03F3) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1006 (03EE) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1010 (03F2) [23:55:58]Malloc new data [23:55:58]Processing tag 1011 (03F3) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]SetTLVBufToDocument err=0 [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1130 (046A) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1135 (046F) [23:55:58]Malloc new data [23:55:58]Processing tag 1201 (04B1) [23:55:58]Malloc new data [23:55:58]Processing tag 1136 (0470) [23:55:58]Malloc new data [23:55:58]Processing tag 1138 (0472) [23:55:58]Malloc new data [23:55:58]Processing tag 1024 (0400) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1006 (03EE) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1010 (03F2) [23:55:58]Malloc new data [23:55:58]Processing tag 1011 (03F3) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1006 (03EE) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1010 (03F2) [23:55:58]Malloc new data [23:55:58]Processing tag 1011 (03F3) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1007 (03EF) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1014 (03F6) [23:55:58]Malloc new data [23:55:58]Processing tag 1015 (03F7) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]SetTLVBufToDocument err=0 [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1131 (046B) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1135 (046F) [23:55:58]Malloc new data [23:55:58]Processing tag 1201 (04B1) [23:55:58]Malloc new data [23:55:58]Processing tag 1136 (0470) [23:55:58]Malloc new data [23:55:58]Processing tag 1138 (0472) [23:55:58]Malloc new data [23:55:58]Processing tag 1024 (0400) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1006 (03EE) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1010 (03F2) [23:55:58]Malloc new data [23:55:58]Processing tag 1011 (03F3) [23:55:58]Malloc new data [23:55:58]SetTLVBufToDocument err=0 [23:55:58]Processing tag 1006 (03EE) [23:55:58]Load OK [23:55:58]SetTLVBufToDocument [23:55:58]Processing tag 1010 (03F2) [23:55:58]Malloc new data [23:55:59]Processing tag 1011 (03F3) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]SetTLVBufToDocument err=0 [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1132 (046C) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1135 (046F) [23:55:59]Malloc new data [23:55:59]Processing tag 1201 (04B1) [23:55:59]Malloc new data [23:55:59]Processing tag 1136 (0470) [23:55:59]Malloc new data [23:55:59]Processing tag 1138 (0472) [23:55:59]Malloc new data [23:55:59]Processing tag 1024 (0400) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1006 (03EE) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1010 (03F2) [23:55:59]Malloc new data [23:55:59]Processing tag 1011 (03F3) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1006 (03EE) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1010 (03F2) [23:55:59]Malloc new data [23:55:59]Processing tag 1011 (03F3) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1007 (03EF) [23:55:59]Load OK [23:55:59]SetTLVBufToDocument [23:55:59]Processing tag 1014 (03F6) [23:55:59]Malloc new data [23:55:59]Processing tag 1015 (03F7) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]SetTLVBufToDocument err=0 [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1133 (046D) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Processing tag 1077 (0435) [23:55:59]Malloc new data [23:55:59]SetTLVBufToDocument err=0 [23:55:59]Malloc new data [23:55:59]SAM_PROTO_GetFMData [23:55:59]wFMCommunicate request_size=4 [23:55:59]MH_SAM_APDU [23:55:59]CAPDU: 80 13 03 00 [23:55:59]Write to MH i2c: E2 08 00 14 49 80 13 03 00 00 00 00 00 DC [23:55:59]Write i2c OK [23:55:59]MH_I2C_Read... [23:55:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:59]Read from MH i2c: E2 [23:55:59]MH_I2C_Read... [23:55:59]Read from MH i2c: E2 FD 00 [23:55:59]MH_I2C_Read... [23:55:59]Read from MH i2c: E2 FD 00 14 49 00 C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 DF [23:56:00]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [23:56:00]wFMCommunicate OK [23:56:00]wFMCommunicate request_size=4 [23:56:00]MH_SAM_APDU [23:56:00]CAPDU: 80 17 00 00 [23:56:00]Write to MH i2c: E2 08 00 15 49 80 17 00 00 00 00 00 00 DE [23:56:00]Write i2c OK [23:56:00]MH_I2C_Read... [23:56:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:00]Read from MH i2c: E2 [23:56:00]MH_I2C_Read... [23:56:00]Read from MH i2c: E2 FD 00 [23:56:00]MH_I2C_Read... [23:56:00]Read from MH i2c: E2 FD 00 15 49 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 17 [23:56:00]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [23:56:00]wFMCommunicate OK [23:56:00]wFMCommunicate request_size=4 [23:56:00]MH_SAM_APDU [23:56:00]CAPDU: 80 17 00 00 [23:56:00]Write to MH i2c: E2 08 00 16 49 80 17 00 00 00 00 00 00 DF [23:56:00]Write i2c OK [23:56:00]MH_I2C_Read... [23:56:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:01]Read from MH i2c: E2 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 FD 00 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 FD 00 16 49 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 7F [23:56:01]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:56:01]wFMCommunicate OK [23:56:01]wFMCommunicate request_size=4 [23:56:01]MH_SAM_APDU [23:56:01]CAPDU: 80 17 00 00 [23:56:01]Write to MH i2c: E2 08 00 17 49 80 17 00 00 00 00 00 00 E0 [23:56:01]Write i2c OK [23:56:01]MH_I2C_Read... [23:56:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:01]Read from MH i2c: E2 [23:56:01]MH_I2C_Read... [23:56:01]OFD Sender: No OFD packet to send [23:56:01]Read from MH i2c: E2 FD 00 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 FD 00 17 49 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [23:56:02]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:02]wFMCommunicate OK [23:56:02]wFMCommunicate request_size=4 [23:56:02]MH_SAM_APDU [23:56:02]CAPDU: 80 17 00 00 [23:56:02]Write to MH i2c: E2 08 00 18 49 80 17 00 00 00 00 00 00 E1 [23:56:02]Write i2c OK [23:56:02]MH_I2C_Read... [23:56:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:56:02]Read from MH i2c: E2 [23:56:02]MH_I2C_Read... [23:56:02]Read from MH i2c: E2 DE 00 [23:56:02]MH_I2C_Read... [23:56:02]Read from MH i2c: E2 DE 00 18 49 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:56:02]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02]wFMCommunicate OK [23:56:02]SAM_PROTO_GetFMData done [23:56:02]Malloc new data [23:56:02]Malloc new data [23:56:02]Malloc new data [23:56:02]Malloc new data [23:56:02]KKMLoadAndSignCloseShiftData err=0 [23:56:02]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Дуйшенбек у Н. 14.07.2024 23:55 Смена: 463 РНМ: 0000000000090858 ЗНМ: 0300000129 СНО: Общий режим Чеков за смену: 286 ФД за смену: 288 Всего чеков: 286 ИТОГИ ПРИХОД Чеков: 286 Общий итог: 385897.18 Итого наличными: 245725.00 Итого безнал.: 140172.18 НДС 0% : 0.00 НДС 12% : 40988.79 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3415.55 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 245725.00 НС Приход: 143362533.00 НС Возвр.Прихода: 62829.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 162975 ФМ: 0000000000874899 ФПД: 260767278073559 [23:56:02]StoreToDocumentArchive [23:56:02]shift 463 fd 162975 [23:56:02]save to /storage/0463/doc_00162975 [23:56:02]save last doc name /storage/0463/doc_00162975 to /storage/kkm_last_doc_name [23:56:02]save OK [23:56:02]Clear old archive folders... [23:56:02]Remove dir /storage/0266 [23:56:02]opendir ok [23:56:02]file . [23:56:02]file .. [23:56:02]file doc_1721001320 [23:56:02]remove file /storage/0266/doc_1721001320 [23:56:02]remove dir /storage/0266 [23:56:02]NVStorageSaveData kkm_registers [23:56:02]File name is /storage/kkm_registers [23:56:02]Write 24 bytes [23:56:02]NVStorageSaveData done [23:56:02]NVStorageSaveData kkm_registers [23:56:02]File name is /storage/kkm_registers [23:56:02]Write 24 bytes [23:56:02]NVStorageSaveData done [23:56:02]ProcessDocumentItem done err = 0, tmpTLVsize=1386 [23:56:02]tlvbuf is 012CDDC0 [23:56:02]SAM_PROTO_ClearQueue [23:56:02]wFMCommunicate request_size=4 [23:56:02]MH_SAM_APDU [23:56:02]CAPDU: 80 09 00 00 [23:56:02]Write to MH i2c: E2 08 00 19 49 80 09 00 00 00 00 00 00 D4 [23:56:02]Write i2c OK [23:56:02]MH_I2C_Read... [23:56:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:56:03]Read from MH i2c: E2 [23:56:03]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 03 00 [23:56:03]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 03 00 19 49 00 90 00 D6 [23:56:03]RAPDU: 90 00 [23:56:03]wFMCommunicate OK [23:56:03]SAM_PROTO_ClearQueue done [23:56:03]KKMCreateOFDPacket [23:56:03]OFDProtocolAddRootSTLVToBuf [23:56:03]FM_MakeSignedData [23:56:03]FM_MakeSignedData [23:56:03]SAM_PROTO_SignData [23:56:03]wFMCommunicate request_size=4 [23:56:03]MH_SAM_APDU [23:56:03]CAPDU: 80 0D 01 02 [23:56:03]Write to MH i2c: E2 08 00 1A 49 80 0D 01 02 00 00 00 00 DC [23:56:03]Write i2c OK [23:56:03]MH_I2C_Read... [23:56:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:56:03]Read from MH i2c: E2 [23:56:03]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 03 00 [23:56:03]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 03 00 1A 49 00 90 00 D7 [23:56:03]RAPDU: 90 00 [23:56:03]wFMCommunicate OK [23:56:03]wFMCommunicate request_size=255 [23:56:03]MH_SAM_APDU [23:56:03]CAPDU: 80 0D 02 02 FA 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F4 03 04 00 8D 65 94 66 0E 04 04 00 CF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 5E 04 04 00 1E 01 00 00 57 04 04 00 20 01 00 00 AA 04 D8 04 6E 04 04 00 1E 01 00 00 69 04 A5 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 3F 8B 3E EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [23:56:03]Write to MH i2c: E2 02 01 1B 49 80 0D 02 02 FA 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F4 03 04 00 8D 65 94 66 0E 04 04 00 CF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 5E 04 04 00 1E 01 00 00 57 04 04 00 20 01 00 00 AA 04 D8 04 6E 04 04 00 1E 01 00 00 69 04 A5 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 3F 8B 3E EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 74 [23:56:03]Write i2c OK [23:56:03]MH_I2C_Read... [23:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:03]Read from MH i2c: E2 [23:56:03]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 03 00 [23:56:03]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 03 00 1B 49 00 90 00 D8 [23:56:03]RAPDU: 90 00 [23:56:03]wFMCommunicate OK [23:56:03]wFMCommunicate request_size=255 [23:56:03]MH_SAM_APDU [23:56:03]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 33 36 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 [23:56:04]Write to MH i2c: E2 02 01 1C 49 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 33 36 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 00 00 C9 [23:56:04]Write i2c OK [23:56:04]MH_I2C_Read... [23:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:04]Read from MH i2c: E2 [23:56:04]MH_I2C_Read... [23:56:04]Read from MH i2c: E2 03 00 [23:56:04]MH_I2C_Read... [23:56:04]Read from MH i2c: E2 03 00 1C 49 00 90 00 D9 [23:56:04]RAPDU: 90 00 [23:56:04]wFMCommunicate OK [23:56:04]wFMCommunicate request_size=255 [23:56:04]MH_SAM_APDU [23:56:04]CAPDU: 80 0D 02 02 FA F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 [23:56:04]Write to MH i2c: E2 02 01 1D 49 80 0D 02 02 FA 00 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 00 00 A3 [23:56:05]Write i2c OK [23:56:05]MH_I2C_Read... [23:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:05]Read from MH i2c: E2 [23:56:05]MH_I2C_Read... [23:56:05]Read from MH i2c: E2 03 00 [23:56:05]MH_I2C_Read... [23:56:05]Read from MH i2c: E2 03 00 1D 49 00 90 00 DA [23:56:05]RAPDU: 90 00 [23:56:05]wFMCommunicate OK [23:56:05]wFMCommunicate request_size=255 [23:56:05]MH_SAM_APDU [23:56:05]CAPDU: 80 0D 02 02 FA F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 [23:56:05]Write to MH i2c: E2 02 01 1E 49 80 0D 02 02 FA 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 00 A6 [23:56:05]Write i2c OK [23:56:05]MH_I2C_Read... [23:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:06]Read from MH i2c: E2 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 03 00 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 03 00 1E 49 00 90 00 DB [23:56:06]RAPDU: 90 00 [23:56:06]wFMCommunicate OK [23:56:06]wFMCommunicate request_size=255 [23:56:06]MH_SAM_APDU [23:56:06]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 [23:56:06]Write to MH i2c: E2 02 01 1F 49 80 0D 02 02 FA 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 00 00 68 [23:56:06]Write i2c OK [23:56:06]MH_I2C_Read... [23:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:06]Read from MH i2c: E2 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 03 00 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 03 00 1F 49 00 90 00 DC [23:56:06]RAPDU: 90 00 [23:56:06]wFMCommunicate OK [23:56:06]wFMCommunicate request_size=145 [23:56:06]MH_SAM_APDU [23:56:06]CAPDU: 80 0D 02 02 8C 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [23:56:07]01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 9F 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 35 04 06 00 ED 2A 9C FA 86 D7 [23:56:07]Write to MH i2c: E2 94 00 20 49 80 0D 02 02 8C 00 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 9F 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 35 04 06 00 ED 2A 9C FA 86 D7 00 00 5F [23:56:07]Write i2c OK [23:56:07]MH_I2C_Read... [23:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:07]Read from MH i2c: E2 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 03 00 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 03 00 20 49 00 90 00 DD [23:56:07]RAPDU: 90 00 [23:56:07]wFMCommunicate OK [23:56:07]wFMCommunicate request_size=4 [23:56:07]MH_SAM_APDU [23:56:07]CAPDU: 80 0D 03 02 [23:56:07]Write to MH i2c: E2 08 00 21 49 80 0D 03 02 00 00 00 00 E5 [23:56:07]Write i2c OK [23:56:07]MH_I2C_Read... [23:56:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:56:07]Read from MH i2c: E2 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 0B 00 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 0B 00 21 49 00 8D 1B 88 7A DD 7E 25 BE 90 00 CE [23:56:07]RAPDU: 8D 1B 88 7A DD 7E 25 BE 90 00 [23:56:07]wFMCommunicate OK [23:56:07]SAM_PROTO_SignData done [23:56:07]FM_MakeSignedData done [23:56:07]CreateOFDProtocolMessage [23:56:07]wFMCommunicate request_size=4 [23:56:07]MH_SAM_APDU [23:56:07]CAPDU: 80 11 00 00 [23:56:07]Write to MH i2c: E2 08 00 22 49 80 11 00 00 00 00 00 00 E5 [23:56:07]Write i2c OK [23:56:07]MH_I2C_Read... [23:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:07]Read from MH i2c: E2 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 17 00 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 17 00 22 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 45 [23:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:56:07]wFMCommunicate OK [23:56:07]CreateOFDProtocolMessage done [23:56:07]OFDSenderStorePacket 162975 [23:56:07]StoreOFDPacket docnum=162975 [23:56:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 7E 05 00 00 04 59 76 05 73 84 5A 05 01 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F4 03 04 00 8D 65 94 66 0E 04 04 00 CF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 5E 04 04 00 1E 01 00 00 57 04 04 00 20 01 00 00 AA 04 D8 04 6E 04 04 00 1E 01 00 00 69 04 A5 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 3F 8B 3E EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 33 36 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 9F 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 35 04 06 00 ED 2A 9C FA 86 D7 8D 1B 88 7A DD 7E 25 BE [23:56:07]CheckFolder [23:56:07]dirname=/storage/ofd_packets [23:56:07]CheckFolder done [23:56:07]ProducePacketName [23:56:07]name=ofd_packets/00162975 [23:56:07]NVStorageSaveData ofd_packets/00162975 [23:56:07]File name is /storage/ofd_packets/00162975 [23:56:07]Write 1436 bytes [23:56:07]NVStorageSaveData done [23:56:07]OFDSenderStorePacket done [23:56:07]KKMCreateOFDPacket done [23:56:07]NVStorageSaveData kkm_last_timestamp [23:56:07]File name is /storage/kkm_last_timestamp [23:56:07]Write 4 bytes [23:56:07]NVStorageSaveData done [23:56:07]ExternCall_PrintAddStr [23:56:07]wPrintStart [23:56:07]Write to MH i2c: 01 00 00 23 49 6C [23:56:07]Write i2c OK [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: 01 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: 01 07 00 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: 01 07 00 23 49 00 00 00 00 00 FF 0F 81 [23:56:08]RasterBufferAndPrint [23:56:08]line Отчет о закрытии смены [23:56:08]line ФФД: 1.0 [23:56:08]line ИНН: 02508201610067 [23:56:08]line Кассир: Дуйшенбек у Н. [23:56:08]line 14.07.2024 23:55 [23:56:08]line Смена: 463 [23:56:08]line РНМ: 0000000000090858 [23:56:08]line ЗНМ: 0300000129 [23:56:08]line СНО: Общий режим [23:56:08]line Чеков за смену: 286 [23:56:08]line ФД за смену: 288 [23:56:08]line Всего чеков: 286 [23:56:08]line ИТОГИ ПРИХОД [23:56:08]line Чеков: 286 [23:56:08]line Общий итог: 385897.18 [23:56:08]line Итого наличными: 245725.00 [23:56:08]line Итого безнал.: 140172.18 [23:56:08]line НДС 0% : 0.00 [23:56:08]line НДС 12% : 40988.79 [23:56:08]line НСП 0% : 0.00 [23:56:08]line НСП 1,50% : 0.00 [23:56:08]line НСП 0,50% : 0.00 [23:56:08]line НСП 5% : 0.00 [23:56:08]line НСП 3% : 0.00 [23:56:08]line НСП 2% : 0.00 [23:56:08]line НСП 1% : 3415.55 [23:56:08]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:56:08]line Чеков: 0 [23:56:08]line Общий итог: 0.00 [23:56:08]line Итого наличными: 0.00 [23:56:08]line Итого безнал.: 0.00 [23:56:08]line НДС 0% : 0.00 [23:56:08]line НДС 12% : 0.00 [23:56:08]line НСП 0% : 0.00 [23:56:08]line НСП 1,50% : 0.00 [23:56:08]line НСП 0,50% : 0.00 [23:56:08]line НСП 5% : 0.00 [23:56:08]line НСП 3% : 0.00 [23:56:08]line НСП 2% : 0.00 [23:56:08]line НСП 1% : 0.00 [23:56:08]line ИТОГИ РАСХОД [23:56:08]line Чеков: 0 [23:56:08]line Общий итог: 0.00 [23:56:08]line Итого наличными: 0.00 [23:56:08]line Итого безнал.: 0.00 [23:56:08]line НДС 0% : 0.00 [23:56:08]line НДС 12% : 0.00 [23:56:08]line НСП 0% : 0.00 [23:56:08]line НСП 1,50% : 0.00 [23:56:08]line НСП 0,50% : 0.00 [23:56:08]line НСП 5% : 0.00 [23:56:08]OFD Sender: Processing packet 162975 [packets to send 106, broken 105] [23:56:08]ProducePacketName [23:56:08]name=ofd_packets/00162975 [23:56:08]OFD Sender: To server: pG, [23:56:08]line НСП 3% : 0.00 [23:56:08]CommunicateWithHost lk.salyk.kg:30040 [23:56:08]line НСП 2% : 0.00 [23:56:08]ConnectInit lk.salyk.kg [23:56:08]line НСП 1% : 0.00 [23:56:08]line ИТОГИ ВОЗВРАТ РАСХОДА [23:56:08]line Чеков: 0 [23:56:08]line Общий итог: 0.00 [23:56:08]line Итого наличными: 0.00 [23:56:08]line Итого безнал.: 0.00 [23:56:08]line НДС 0% : 0.00 [23:56:08]line НДС 12% : 0.00 [23:56:08]line НСП 0% : 0.00 [23:56:08]line НСП 1,50% : 0.00 [23:56:08]line НСП 0,50% : 0.00 [23:56:08]line НСП 5% : 0.00 [23:56:08]line НСП 3% : 0.00 [23:56:08]line НСП 2% : 0.00 [23:56:08]line НСП 1% : 0.00 [23:56:08]line Сумма внесений: 0.00 [23:56:08]line Сумма выплат: 0.00 [23:56:08]line Нал. в кассе: 245725.00 [23:56:08]line НС Приход: 143362533.00 [23:56:08]line НС Возвр.Прихода: 62829.00 [23:56:08]line НС Расход: 0.00 [23:56:08]line НС Возвр.Расхода: 0.00 [23:56:08]line ФД: 162975 [23:56:08]line ФМ: 0000000000874899 [23:56:08]line ФПД: 260767278073559 [23:56:08]written 0, free lines is 4095 [23:56:08]Connected sock=9 [23:56:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 7E 05 00 00 04 59 76 05 73 84 5A 05 01 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F4 03 04 00 8D 65 94 66 0E 04 04 00 CF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 5E 04 04 00 1E 01 00 00 57 04 04 00 20 01 00 00 AA 04 D8 04 6E 04 04 00 1E 01 00 00 69 04 A5 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 3F 8B 3E EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 33 36 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A Write to MH i2c: 00 01 F6 00 03 00 01 73 00 49 01 BC F7 [23:56:09]03 Write i2c OK [23:56:09]01 MH_I2C_Read... [23:56:09]00 Read from MH i2c: 00 01 6D [23:56:09]04 MH_I2C_Read... [23:56:09]4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F Read from MH i2c: 04 01 04 07 00 00 00 [23:56:09]00 MH_I2C_Read... [23:56:09]00 Read from MH i2c: 00 01 B1 07 04 00 00 73 00 49 70 00 04 00 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 00 AF F2 0C 03 7E 01 [23:56:09]00 RasterBufferAndPrint [23:56:09]00 line [23:56:09]F3 line [23:56:09]03 line [23:56:09]00 line [23:56:09]00 line [23:56:09]EE 03 written 0, free lines is 3445 [23:56:09]09 00 F2 03 01 00 01 F3 03 00 MH_Cut [23:56:09]00 Write to MH i2c: EF D1 03 01 09 00 00 7A F6 49 03 01 01 95 00 [23:56:09]00 F7 03 00 00 EF 03 Write i2c OK [23:56:09]09 MH_I2C_Read... [23:56:09]00 F6 03 01 00 01 F7 Read from MH i2c: 03 D1 00 [23:56:09]00 MH_I2C_Read... [23:56:09]EF 03 09 00 F6 03 01 00 02 F7 03 00 00 Read from MH i2c: EF D1 03 01 09 00 00 [23:56:09]F6 MH_I2C_Read... [23:56:09]03 01 00 03 F7 03 00 00 EF 03 Read from MH i2c: 09 D1 00 01 F6 00 03 7A 01 49 00 00 94 04 [23:56:09]F7 Write to MH i2c: 03 01 00 00 EF 03 09 00 F6 03 01 00 05 F7 00 03 00 00 7B 00 49 EF C4 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:56:09]D0 Write i2c OK [23:56:09]04 MH_I2C_Read... [23:56:09]8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 *** Cut start [23:56:10]09 00 *** Purtial cut [23:56:10]F6 03 01 00 01 F7 03 00 00 EF 03 09 00 *** CUTSNS_PIN = 0 [23:56:10]F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 *** Stage 1: CUTSNS_PIN = 1 [23:56:10]00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 9F 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 35 04 06 00 ED 2A 9C FA 86 D7 8D 1B 88 7A DD 7E 25 BE [23:56:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A5 5F 47 00 56 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9F 7C 02 00 F4 03 04 00 A8 11 94 66 B6 04 01 00 00 F2 CD 9E EA D7 A5 EE EC [23:56:11]CommunicateWithHost err = 0 [23:56:11]CheckOFDResponse [23:56:11]1017 (14) - 77093643461234 [23:56:11]1041 (16) - 0000000000874899 [23:56:11]1040 (4) - 162975 [23:56:11]1012 (4) - 14.07.2024 17:58 [23:56:11]1206 (1) - 0 [23:56:11]OFD Sender: Remove packet 162975 [23:56:11]ProducePacketName [23:56:11]name=ofd_packets/00162975 [23:56:11]NVStorageDeleteData [23:56:11]OFD Sender: No OFD packet to send [23:56:12]Read from MH i2c: 01 [23:56:12]MH_I2C_Read... [23:56:12]*** Stop cut motor [23:56:12]*** Cut end [23:56:12]Read from MH i2c: 01 07 00 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: 01 07 00 7B 49 00 00 00 00 00 FF 0F D9 [23:56:12]process_action close_shift done [23:56:12]requested_data is exist [23:56:12]produce_requested_data [23:56:12]requested_item fd.num is exist - process it [23:56:12]SAM_PROTO_GetFieldsCounters [23:56:12]wFMCommunicate request_size=4 [23:56:12]MH_SAM_APDU [23:56:12]CAPDU: 80 13 00 00 [23:56:12]Write to MH i2c: E2 08 00 7C 49 80 13 00 00 00 00 00 00 41 [23:56:12]Write i2c OK [23:56:12]MH_I2C_Read... [23:56:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:12]Read from MH i2c: E2 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: E2 62 00 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: E2 62 00 7C 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [23:56:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:12]wFMCommunicate OK [23:56:12]SAM_PROTO_GetFieldsCounters done [23:56:12]requested_item shift.num is exist - process it [23:56:12]requested_item shift.opened is exist - process it [23:56:12]req_shift_opened [23:56:12]FM_GetShiftState [23:56:12]SAM_PROTO_GetShiftState [23:56:12]wFMCommunicate request_size=4 [23:56:12]MH_SAM_APDU [23:56:12]CAPDU: 80 13 01 00 [23:56:12]Write to MH i2c: E2 08 00 7D 49 80 13 01 00 00 00 00 00 43 [23:56:12]Write i2c OK [23:56:12]MH_I2C_Read... [23:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:12]Read from MH i2c: E2 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: E2 0E 00 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: E2 0E 00 7D 49 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4E [23:56:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:56:12]wFMCommunicate OK [23:56:12]SAM_PROTO_GetShiftState done [23:56:12]FM_GetShiftState done [23:56:12]req_shift_opened done [23:56:12]requested_item shift.open_date is exist - process it [23:56:12]req_shift_open_date [23:56:12]FM_GetShiftState [23:56:12]SAM_PROTO_GetShiftState [23:56:12]wFMCommunicate request_size=4 [23:56:12]MH_SAM_APDU [23:56:12]CAPDU: 80 13 01 00 [23:56:12]Write to MH i2c: E2 08 00 7E 49 80 13 01 00 00 00 00 00 44 [23:56:12]Write i2c OK [23:56:12]MH_I2C_Read... [23:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:12]Read from MH i2c: E2 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: E2 0E 00 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: E2 0E 00 7E 49 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4F [23:56:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:56:12]wFMCommunicate OK [23:56:12]SAM_PROTO_GetShiftState done [23:56:12]FM_GetShiftState done [23:56:12]req_shift_open_date done [23:56:12]produce_requested_data done [23:56:12]produce_requested_data return {"fd.num":162975,"shift.num":463,"shift.opened":0,"shift.open_date":0} [23:56:12]process_action_free close_shift [23:56:12]json_value_free [23:56:12]json_value_free done [23:56:12]process_json_proto returns [23:56:12]Send response to host [23:56:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":162975,"shift.num":463,"shift.opened":0,"shift.open_date":0}}} [23:56:12]free response buf [23:56:12]execute_script done [23:56:12]execute_script returns [23:56:12]free content buf [23:56:12]Sock 10.Close socket [23:56:12]Sock 10.Thread stoped [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:09]accept exits with 7 [00:03:09]New connection [00:03:09]New thread 3066735972 created [00:03:09]Thread 3066879332 joined [00:03:09]Waiting for new connection... [00:03:09] Sock 7.Parse request [00:03:09]Sock 7.Check first char [00:03:09]Sock 7.First char is OK [00:03:09]request: POST /json_proto HTTP/1.0 [00:03:09]Method: POST [00:03:09]URL: /json_proto [00:03:09]Method is POST - this is cgi request [00:03:09]url: /json_proto [00:03:09]query_string will be loaded in cgi processing [00:03:09]execute_cgi json_proto POST (null) [00:03:09]execute_cgi path=json_proto method=POST [00:03:09]POST find Content-Length [00:03:09]Host: 172.17.39.67:8080 [00:03:09]Content-Length: 215 [00:03:09]Content-Type: application/json [00:03:09] [00:03:09]POST finish read [00:03:09]Found Content-Length = 215 [00:03: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" ] } } [00:03:09]execute_script... [00:03: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" ] } } [00:03:09]POST & json_proto [00:03:09]process_json_proto [00:03:09]json parsed OK: [00:03:09]protocol is kg_v1.0 [00:03:09]action value=get_value [00:03:09]process_action get_value [00:03:09]cmd_get_value [00:03:09]process_action get_value done [00:03:09]requested_data is exist [00:03:09]produce_requested_data [00:03:09]requested_item kkm.sn is exist - process it [00:03:09]requested_item kkm.ver is exist - process it [00:03:09]requested_item fm.sn is exist - process it [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 11 00 00 [00:03:09]Write to MH i2c: E2 08 00 7F 49 80 11 00 00 00 00 00 00 42 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 17 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 17 00 7F 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A2 [00:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:03:09]wFMCommunicate OK [00:03:09]requested_item fd.num is exist - process it [00:03:09]SAM_PROTO_GetFieldsCounters [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 13 00 00 [00:03:09]Write to MH i2c: E2 08 00 80 49 80 13 00 00 00 00 00 00 45 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 62 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 62 00 80 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [00:03:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9F 7C 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:09]wFMCommunicate OK [00:03:09]SAM_PROTO_GetFieldsCounters done [00:03:09]requested_item shift.num is exist - process it [00:03:09]requested_item shift.opened is exist - process it [00:03:09]req_shift_opened [00:03:09]FM_GetShiftState [00:03:09]SAM_PROTO_GetShiftState [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 13 01 00 [00:03:09]Write to MH i2c: E2 08 00 81 49 80 13 01 00 00 00 00 00 47 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 0E 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 0E 00 81 49 00 09 00 00 00 00 00 00 00 00 00 00 90 00 52 [00:03:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:09]wFMCommunicate OK [00:03:09]SAM_PROTO_GetShiftState done [00:03:09]FM_GetShiftState done [00:03:09]req_shift_opened done [00:03:09]requested_item shift.open_date is exist - process it [00:03:09]req_shift_open_date [00:03:09]FM_GetShiftState [00:03:09]SAM_PROTO_GetShiftState [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 13 01 00 [00:03:09]Write to MH i2c: E2 08 00 82 49 80 13 01 00 00 00 00 00 48 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0E 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0E 00 82 49 00 09 00 00 00 00 00 00 00 00 00 00 90 00 53 [00:03:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:10]wFMCommunicate OK [00:03:10]SAM_PROTO_GetShiftState done [00:03:10]FM_GetShiftState done [00:03:10]req_shift_open_date done [00:03:10]produce_requested_data done [00:03:10]produce_requested_data return {"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162975,"shift.num":463,"shift.opened":0,"shift.open_date":0} [00:03:10]process_action_free get_value [00:03:10]json_value_free [00:03:10]json_value_free done [00:03:10]process_json_proto returns [00:03:10]Send response to host [00:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162975,"shift.num":463,"shift.opened":0,"shift.open_date":0}}} [00:03:10]free response buf [00:03:10]execute_script done [00:03:10]execute_script returns [00:03:10]free content buf [00:03:10]Sock 7.Close socket [00:03:10]Sock 7.Thread stoped [00:03:10]accept exits with 9 [00:03:10]New connection [00:03:10]New thread 3066879332 created [00:03:10]Thread 3066735972 joined [00:03:10]Waiting for new connection... [00:03:10] Sock 9.Parse request [00:03:10]Sock 9.Check first char [00:03:10]Sock 9.First char is OK [00:03:10]request: POST /json_proto HTTP/1.0 [00:03:10]Method: POST [00:03:10]URL: /json_proto [00:03:10]Method is POST - this is cgi request [00:03:10]url: /json_proto [00:03:10]query_string will be loaded in cgi processing [00:03:10]execute_cgi json_proto POST (null) [00:03:10]execute_cgi path=json_proto method=POST [00:03:10]POST find Content-Length [00:03:10]Host: 172.17.39.67:8080 [00:03:10]Content-Length: 331 [00:03:10]Content-Type: application/json [00:03:10] [00:03:10]POST finish read [00:03:10]Found Content-Length = 331 [00:03:10]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:03:10]execute_script... [00:03:10]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:03:10]POST & json_proto [00:03:10]process_json_proto [00:03:10]json parsed OK: [00:03:10]protocol is kg_v1.0 [00:03:10]action value=get_value [00:03:10]process_action get_value [00:03:10]cmd_get_value [00:03:10]process_action get_value done [00:03:10]requested_data is exist [00:03:10]produce_requested_data [00:03:10]requested_item fm.sale.total is exist - process it [00:03:10]SAM_PROTO_GetFMData [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 13 03 00 [00:03:10]Write to MH i2c: E2 08 00 83 49 80 13 03 00 00 00 00 00 4B [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 FD 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 FD 00 83 49 00 C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 4E [00:03:10]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [00:03:10]wFMCommunicate OK [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 17 00 00 [00:03:10]Write to MH i2c: E2 08 00 84 49 80 17 00 00 00 00 00 00 4D [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 84 49 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 86 [00:03:11]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 17 00 00 [00:03:11]Write to MH i2c: E2 08 00 85 49 80 17 00 00 00 00 00 00 4E [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 85 49 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 EE [00:03:11]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 17 00 00 [00:03:11]Write to MH i2c: E2 08 00 86 49 80 17 00 00 00 00 00 00 4F [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 86 49 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [00:03:11]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 17 00 00 [00:03:11]Write to MH i2c: E2 08 00 87 49 80 17 00 00 00 00 00 00 50 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 DE 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 DE 00 87 49 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2F [00:03:11]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:03:11]wFMCommunicate OK [00:03:11]SAM_PROTO_GetFMData done [00:03:11]requested_item fm.sale_refund.total is exist - process it [00:03:11]requested_item fm.buy.total is exist - process it [00:03:11]requested_item shift.sale.total is exist - process it [00:03:11]SAM_PROTO_GetShiftData [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 13 02 00 [00:03:11]Write to MH i2c: E2 08 00 88 49 80 13 02 00 00 00 00 00 4F [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:12]OFD Sender: No OFD packet to send [00:03:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 88 49 00 B1 04 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 49 [00:03:12]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 1E 01 00 00 69 04 9E 00 6F 04 04 00 1E 01 00 00 B1 04 04 00 16 D5 4C 02 70 04 04 00 54 F2 76 01 72 04 03 00 C2 E2 D5 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 3F 8B 3E 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 33 36 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:03:12]wFMCommunicate OK [00:03:12]wFMCommunicate request_size=4 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 17 00 00 [00:03:12]Write to MH i2c: E2 08 00 89 49 80 17 00 00 00 00 00 00 52 [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 89 49 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 6B [00:03:12]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [00:03:12]wFMCommunicate OK [00:03:12]wFMCommunicate request_size=4 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 17 00 00 [00:03:12]Write to MH i2c: E2 08 00 8A 49 80 17 00 00 00 00 00 00 53 [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 8A 49 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 0C [00:03:12]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:03:12]wFMCommunicate OK [00:03:12]wFMCommunicate request_size=4 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 17 00 00 [00:03:12]Write to MH i2c: E2 08 00 8B 49 80 17 00 00 00 00 00 00 54 [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 FD 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 FD 00 8B 49 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 90 00 CC [00:03:13]RAPDU: 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 90 00 [00:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 17 00 00 [00:03:13]Write to MH i2c: E2 08 00 8C 49 80 17 00 00 00 00 00 00 55 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 CE 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 CE 00 8C 49 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3A [00:03:13]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:03:13]wFMCommunicate OK [00:03:13]SAM_PROTO_GetShiftData done [00:03:13]requested_item shift.sale.total_cash is exist - process it [00:03:13]requested_item shift.sale_refund.total is exist - process it [00:03:13]requested_item shift.sale_refund.total_cash is exist - process it [00:03:13]requested_item shift.buy.total is exist - process it [00:03:13]requested_item shift.buy.total_cash is exist - process it [00:03:13]produce_requested_data done [00:03:13]produce_requested_data return {"fm.sale.total":143362533.00,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":385897.18,"shift.sale.total_cash":245725.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:03:13]process_action_free get_value [00:03:13]json_value_free [00:03:13]json_value_free done [00:03:13]process_json_proto returns [00:03:13]Send response to host [00:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":143362533.00,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":385897.18,"shift.sale.total_cash":245725.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:03:13]free response buf [00:03:13]execute_script done [00:03:13]execute_script returns [00:03:13]free content buf [00:03:13]Sock 9.Close socket [00:03:13]Sock 9.Thread stoped [00:03:13]accept exits with 7 [00:03:13]New connection [00:03:13]New thread 3066735972 created [00:03:13]Thread 3066879332 joined [00:03:13]Waiting for new connection... [00:03:13] Sock 7.Parse request [00:03:13]Sock 7.Check first char [00:03:13]Sock 7.First char is OK [00:03:13]request: POST /json_proto HTTP/1.0 [00:03:13]Method: POST [00:03:13]URL: /json_proto [00:03:13]Method is POST - this is cgi request [00:03:13]url: /json_proto [00:03:13]query_string will be loaded in cgi processing [00:03:13]execute_cgi json_proto POST (null) [00:03:13]execute_cgi path=json_proto method=POST [00:03:13]POST find Content-Length [00:03:13]Host: 172.17.39.67:8080 [00:03:13]Content-Length: 276 [00:03:13]Content-Type: application/json [00:03:13] [00:03:13]POST finish read [00:03:13]Found Content-Length = 276 [00:03:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:13]execute_script... [00:03:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:13]POST & json_proto [00:03:13]process_json_proto [00:03:13]json parsed OK: [00:03:13]protocol is kg_v1.0 [00:03:13]action value=open_shift [00:03:13]process_action open_shift [00:03:13]cmd_open_shift [00:03:13]MH_GetDate [00:03:13]Write to MH i2c: F0 00 00 8D 49 C5 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 8D 49 00 45 67 94 66 B6 85 93 66 A8 [00:03:13]GetLastDocTimeStamp 1721001357 [00:03:13]current date 1721001797 [00:03:13]FM_GetShiftState [00:03:13]SAM_PROTO_GetShiftState [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 13 01 00 [00:03:13]Write to MH i2c: E2 08 00 8E 49 80 13 01 00 00 00 00 00 54 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:13]Read from MH i2c: E2 0E 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 0E 00 8E 49 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5F [00:03:13]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:13]wFMCommunicate OK [00:03:13]SAM_PROTO_GetShiftState done [00:03:13]FM_GetShiftState done [00:03:13]KKMCreateOpenShiftDocument [00:03:13]Load OK [00:03:13]Malloc new data [00:03:13]MH_GetDate [00:03:13]Write to MH i2c: F0 00 00 8F 49 C7 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 8F 49 00 45 67 94 66 B6 85 93 66 AA [00:03:13]Malloc new data [00:03:13]KKMCreateOpenShiftDocument OK [00:03:13]KKMSetOpenShiftData OK [00:03:13]ProcessDocumentItem done err = 0, tmpTLVsize=213 [00:03:13]tlvbuf is 013AF970 [00:03:13]KKMLoadAndSignOpenShiftData [00:03:13]SAM_PROTO_ProcessDocument [00:03:13]wFMCommunicate request_size=9 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 15 01 00 04 02 00 D5 00 [00:03:13]Write to MH i2c: E2 0C 00 90 49 80 15 01 00 04 00 02 00 D5 00 00 00 37 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 90 49 00 90 00 4D [00:03:13]RAPDU: 90 00 [00:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=23 [00:03:13]MH_SAM_APDU [00:03:13]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:03:13]Write to MH i2c: E2 1A 00 91 49 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 4F [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 91 49 00 90 00 4E [00:03:13]RAPDU: 90 00 [00:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=35 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 15 02 00 1E FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E [00:03:13]Write to MH i2c: E2 26 00 92 49 80 15 02 00 1E 00 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E 00 00 D6 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 92 49 00 90 00 4F [00:03:13]RAPDU: 90 00 [00:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=96 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 15 02 00 5B F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 [00:03:13]Write to MH i2c: E2 63 00 93 49 80 15 02 00 5B 00 F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 00 00 6F [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 93 49 00 90 00 50 [00:03:13]RAPDU: 90 00 [00:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=51 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 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:03:13]Write to MH i2c: E2 36 00 94 49 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 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 04 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 94 49 00 90 00 51 [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=13 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 02 00 08 F4 03 04 00 45 67 94 66 [00:03:14]Write to MH i2c: E2 10 00 95 49 80 15 02 00 08 00 F4 03 04 00 45 67 94 66 00 00 0F [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 95 49 00 90 00 52 [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=25 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 [00:03:14]Write to MH i2c: E2 1C 00 96 49 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 00 00 C6 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 96 49 00 90 00 53 [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=4 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 03 00 [00:03:14]Write to MH i2c: E2 08 00 97 49 80 15 03 00 00 00 00 00 61 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 38 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 38 00 97 49 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A0 7C 02 00 0E 04 04 00 D0 01 00 00 35 04 06 00 3D F4 F0 4C 75 4D 90 00 58 [00:03:14]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A0 7C 02 00 0E 04 04 00 D0 01 00 00 35 04 06 00 3D F4 F0 4C 75 4D 90 00 [00:03:14]wFMCommunicate OK [00:03:14]SAM_PROTO_ProcessDocument answer len = 51 [00:03:14]SAM_PROTO_ProcessDocument done [00:03:14]SetTLVBufToDocument [00:03:14]Processing tag 1209 (04B9) [00:03:14]Malloc new data [00:03:14]Processing tag 1041 (0411) [00:03:14]Processing tag 1040 (0410) [00:03:14]Malloc new data [00:03:14]Processing tag 1038 (040E) [00:03:14]Malloc new data [00:03:14]Processing tag 1077 (0435) [00:03:14]Malloc new data [00:03:14]SetTLVBufToDocument err=0 [00:03:14]KKMLoadAndSignOpenShiftData store KKM data [00:03:14]KKMLoadAndSignOpenShiftData err=0 [00:03:14]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Шамбеталиев А. Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 Место: АЗС № 140 "Партнер Нефть" 15.07.2024 00:03 Смена: 464 РНМ: 0000000000090858 ЗНМ: 0300000129 ФД: 162976 ФМ: 0000000000874899 ФПД: 68122212857165 [00:03:14]StoreToDocumentArchive [00:03:14]shift 464 fd 162976 [00:03:14]Create dir for shift 0464 [00:03:14]save to /storage/0464/doc_00162976 [00:03:14]save last doc name /storage/0464/doc_00162976 to /storage/kkm_last_doc_name [00:03:14]save OK [00:03:14]Clear old archive folders... [00:03:14]Remove dir /storage/0463 [00:03:14]opendir ok [00:03:14]file . [00:03:14]file .. [00:03:14]file doc_00162688 [00:03:14]remove file /storage/0463/doc_00162688 [00:03:14]file doc_00162689 [00:03:14]remove file /storage/0463/doc_00162689 [00:03:14]file doc_00162690 [00:03:14]remove file /storage/0463/doc_00162690 [00:03:14]file doc_00162691 [00:03:14]remove file /storage/0463/doc_00162691 [00:03:14]file doc_00162692 [00:03:14]remove file /storage/0463/doc_00162692 [00:03:14]file doc_00162693 [00:03:14]remove file /storage/0463/doc_00162693 [00:03:14]file doc_00162694 [00:03:14]remove file /storage/0463/doc_00162694 [00:03:14]file doc_00162695 [00:03:14]remove file /storage/0463/doc_00162695 [00:03:14]file doc_00162696 [00:03:14]remove file /storage/0463/doc_00162696 [00:03:14]file doc_00162697 [00:03:14]remove file /storage/0463/doc_00162697 [00:03:14]file doc_00162698 [00:03:14]remove file /storage/0463/doc_00162698 [00:03:14]file doc_00162699 [00:03:14]remove file /storage/0463/doc_00162699 [00:03:14]file doc_00162700 [00:03:14]remove file /storage/0463/doc_00162700 [00:03:14]file doc_00162701 [00:03:14]remove file /storage/0463/doc_00162701 [00:03:14]file doc_00162702 [00:03:14]remove file /storage/0463/doc_00162702 [00:03:14]file doc_00162703 [00:03:14]remove file /storage/0463/doc_00162703 [00:03:14]file doc_00162704 [00:03:14]remove file /storage/0463/doc_00162704 [00:03:14]file doc_00162705 [00:03:14]remove file /storage/0463/doc_00162705 [00:03:14]file doc_00162706 [00:03:14]remove file /storage/0463/doc_00162706 [00:03:14]file doc_00162707 [00:03:14]remove file /storage/0463/doc_00162707 [00:03:14]file doc_00162708 [00:03:14]remove file /storage/0463/doc_00162708 [00:03:14]file doc_00162709 [00:03:14]remove file /storage/0463/doc_00162709 [00:03:14]file doc_00162710 [00:03:14]remove file /storage/0463/doc_00162710 [00:03:14]file doc_00162711 [00:03:14]remove file /storage/0463/doc_00162711 [00:03:14]file doc_00162712 [00:03:14]remove file /storage/0463/doc_00162712 [00:03:14]file doc_00162713 [00:03:14]remove file /storage/0463/doc_00162713 [00:03:14]file doc_00162714 [00:03:14]remove file /storage/0463/doc_00162714 [00:03:14]file doc_00162715 [00:03:14]remove file /storage/0463/doc_00162715 [00:03:14]file doc_00162716 [00:03:14]remove file /storage/0463/doc_00162716 [00:03:14]file doc_00162717 [00:03:14]remove file /storage/0463/doc_00162717 [00:03:14]file doc_00162718 [00:03:14]remove file /storage/0463/doc_00162718 [00:03:14]file doc_00162719 [00:03:14]remove file /storage/0463/doc_00162719 [00:03:14]file doc_00162720 [00:03:14]remove file /storage/0463/doc_00162720 [00:03:14]file doc_00162721 [00:03:14]remove file /storage/0463/doc_00162721 [00:03:14]file doc_00162722 [00:03:14]remove file /storage/0463/doc_00162722 [00:03:14]file doc_00162723 [00:03:14]remove file /storage/0463/doc_00162723 [00:03:14]file doc_00162724 [00:03:14]remove file /storage/0463/doc_00162724 [00:03:14]file doc_00162725 [00:03:14]remove file /storage/0463/doc_00162725 [00:03:14]file doc_00162726 [00:03:14]remove file /storage/0463/doc_00162726 [00:03:14]file doc_00162727 [00:03:14]remove file /storage/0463/doc_00162727 [00:03:14]file doc_00162728 [00:03:14]remove file /storage/0463/doc_00162728 [00:03:14]file doc_00162729 [00:03:14]remove file /storage/0463/doc_00162729 [00:03:14]file doc_00162730 [00:03:14]remove file /storage/0463/doc_00162730 [00:03:14]file doc_00162731 [00:03:14]remove file /storage/0463/doc_00162731 [00:03:14]file doc_00162732 [00:03:14]remove file /storage/0463/doc_00162732 [00:03:14]file doc_00162733 [00:03:14]remove file /storage/0463/doc_00162733 [00:03:14]file doc_00162734 [00:03:14]remove file /storage/0463/doc_00162734 [00:03:14]file doc_00162735 [00:03:14]remove file /storage/0463/doc_00162735 [00:03:14]file doc_00162736 [00:03:14]remove file /storage/0463/doc_00162736 [00:03:14]file doc_00162737 [00:03:14]remove file /storage/0463/doc_00162737 [00:03:14]file doc_00162738 [00:03:14]remove file /storage/0463/doc_00162738 [00:03:14]file doc_00162739 [00:03:14]remove file /storage/0463/doc_00162739 [00:03:14]file doc_00162740 [00:03:14]remove file /storage/0463/doc_00162740 [00:03:14]file doc_00162741 [00:03:14]remove file /storage/0463/doc_00162741 [00:03:14]file doc_00162742 [00:03:14]remove file /storage/0463/doc_00162742 [00:03:14]file doc_00162743 [00:03:14]remove file /storage/0463/doc_00162743 [00:03:14]file doc_00162744 [00:03:14]remove file /storage/0463/doc_00162744 [00:03:14]file doc_00162745 [00:03:14]remove file /storage/0463/doc_00162745 [00:03:14]file doc_00162746 [00:03:14]remove file /storage/0463/doc_00162746 [00:03:14]file doc_00162747 [00:03:14]remove file /storage/0463/doc_00162747 [00:03:14]file doc_00162748 [00:03:14]remove file /storage/0463/doc_00162748 [00:03:14]file doc_00162749 [00:03:14]remove file /storage/0463/doc_00162749 [00:03:14]file doc_00162750 [00:03:14]remove file /storage/0463/doc_00162750 [00:03:14]file doc_00162751 [00:03:14]remove file /storage/0463/doc_00162751 [00:03:14]file doc_00162752 [00:03:14]remove file /storage/0463/doc_00162752 [00:03:14]file doc_00162753 [00:03:14]remove file /storage/0463/doc_00162753 [00:03:14]file doc_00162754 [00:03:14]remove file /storage/0463/doc_00162754 [00:03:14]file doc_00162755 [00:03:14]remove file /storage/0463/doc_00162755 [00:03:14]file doc_00162756 [00:03:14]remove file /storage/0463/doc_00162756 [00:03:14]file doc_00162757 [00:03:14]remove file /storage/0463/doc_00162757 [00:03:14]file doc_00162758 [00:03:14]remove file /storage/0463/doc_00162758 [00:03:14]file doc_00162759 [00:03:14]remove file /storage/0463/doc_00162759 [00:03:14]file doc_00162760 [00:03:14]remove file /storage/0463/doc_00162760 [00:03:14]file doc_00162761 [00:03:14]remove file /storage/0463/doc_00162761 [00:03:14]file doc_00162762 [00:03:14]remove file /storage/0463/doc_00162762 [00:03:14]file doc_00162763 [00:03:14]remove file /storage/0463/doc_00162763 [00:03:14]file doc_00162764 [00:03:14]remove file /storage/0463/doc_00162764 [00:03:14]file doc_00162765 [00:03:14]remove file /storage/0463/doc_00162765 [00:03:14]file doc_00162766 [00:03:14]remove file /storage/0463/doc_00162766 [00:03:14]file doc_00162767 [00:03:14]remove file /storage/0463/doc_00162767 [00:03:14]file doc_00162768 [00:03:14]remove file /storage/0463/doc_00162768 [00:03:14]file doc_00162769 [00:03:14]remove file /storage/0463/doc_00162769 [00:03:14]file doc_00162770 [00:03:14]remove file /storage/0463/doc_00162770 [00:03:14]file doc_00162771 [00:03:14]remove file /storage/0463/doc_00162771 [00:03:14]file doc_00162772 [00:03:14]remove file /storage/0463/doc_00162772 [00:03:14]file doc_00162773 [00:03:14]remove file /storage/0463/doc_00162773 [00:03:14]file doc_00162774 [00:03:14]remove file /storage/0463/doc_00162774 [00:03:14]file doc_00162775 [00:03:14]remove file /storage/0463/doc_00162775 [00:03:14]file doc_00162776 [00:03:14]remove file /storage/0463/doc_00162776 [00:03:15]file doc_00162777 [00:03:15]remove file /storage/0463/doc_00162777 [00:03:15]file doc_00162778 [00:03:15]remove file /storage/0463/doc_00162778 [00:03:15]file doc_00162779 [00:03:15]remove file /storage/0463/doc_00162779 [00:03:15]file doc_00162780 [00:03:15]remove file /storage/0463/doc_00162780 [00:03:15]file doc_00162781 [00:03:15]remove file /storage/0463/doc_00162781 [00:03:15]file doc_00162782 [00:03:15]remove file /storage/0463/doc_00162782 [00:03:15]file doc_00162783 [00:03:15]remove file /storage/0463/doc_00162783 [00:03:15]file doc_00162784 [00:03:15]remove file /storage/0463/doc_00162784 [00:03:15]file doc_00162785 [00:03:15]remove file /storage/0463/doc_00162785 [00:03:15]file doc_00162786 [00:03:15]remove file /storage/0463/doc_00162786 [00:03:15]file doc_00162787 [00:03:15]remove file /storage/0463/doc_00162787 [00:03:15]file doc_00162788 [00:03:15]remove file /storage/0463/doc_00162788 [00:03:15]file doc_00162789 [00:03:15]remove file /storage/0463/doc_00162789 [00:03:15]file doc_00162790 [00:03:15]remove file /storage/0463/doc_00162790 [00:03:15]file doc_00162791 [00:03:15]remove file /storage/0463/doc_00162791 [00:03:15]file doc_00162792 [00:03:15]remove file /storage/0463/doc_00162792 [00:03:15]file doc_00162793 [00:03:15]remove file /storage/0463/doc_00162793 [00:03:15]file doc_00162794 [00:03:15]remove file /storage/0463/doc_00162794 [00:03:15]file doc_00162795 [00:03:15]remove file /storage/0463/doc_00162795 [00:03:15]file doc_00162796 [00:03:15]remove file /storage/0463/doc_00162796 [00:03:15]file doc_00162797 [00:03:15]remove file /storage/0463/doc_00162797 [00:03:15]file doc_00162798 [00:03:15]remove file /storage/0463/doc_00162798 [00:03:15]file doc_00162799 [00:03:15]remove file /storage/0463/doc_00162799 [00:03:15]file doc_00162800 [00:03:15]remove file /storage/0463/doc_00162800 [00:03:15]file doc_00162801 [00:03:15]remove file /storage/0463/doc_00162801 [00:03:15]file doc_00162802 [00:03:15]remove file /storage/0463/doc_00162802 [00:03:15]file doc_00162803 [00:03:15]remove file /storage/0463/doc_00162803 [00:03:15]file doc_00162804 [00:03:15]remove file /storage/0463/doc_00162804 [00:03:15]file doc_00162805 [00:03:15]remove file /storage/0463/doc_00162805 [00:03:15]file doc_00162806 [00:03:15]remove file /storage/0463/doc_00162806 [00:03:15]file doc_00162807 [00:03:15]remove file /storage/0463/doc_00162807 [00:03:15]file doc_00162808 [00:03:15]remove file /storage/0463/doc_00162808 [00:03:15]file doc_00162809 [00:03:15]remove file /storage/0463/doc_00162809 [00:03:15]file doc_00162810 [00:03:15]remove file /storage/0463/doc_00162810 [00:03:15]file doc_00162811 [00:03:15]remove file /storage/0463/doc_00162811 [00:03:15]file doc_00162812 [00:03:15]remove file /storage/0463/doc_00162812 [00:03:15]file doc_00162813 [00:03:15]remove file /storage/0463/doc_00162813 [00:03:15]file doc_00162814 [00:03:15]remove file /storage/0463/doc_00162814 [00:03:15]file doc_00162815 [00:03:15]remove file /storage/0463/doc_00162815 [00:03:15]file doc_00162816 [00:03:15]remove file /storage/0463/doc_00162816 [00:03:15]file doc_00162817 [00:03:15]remove file /storage/0463/doc_00162817 [00:03:15]file doc_00162818 [00:03:15]remove file /storage/0463/doc_00162818 [00:03:15]file doc_00162819 [00:03:15]remove file /storage/0463/doc_00162819 [00:03:15]file doc_00162820 [00:03:15]remove file /storage/0463/doc_00162820 [00:03:15]file doc_00162821 [00:03:15]remove file /storage/0463/doc_00162821 [00:03:15]file doc_00162822 [00:03:15]remove file /storage/0463/doc_00162822 [00:03:15]file doc_00162823 [00:03:15]remove file /storage/0463/doc_00162823 [00:03:15]file doc_00162824 [00:03:15]remove file /storage/0463/doc_00162824 [00:03:15]file doc_00162825 [00:03:15]remove file /storage/0463/doc_00162825 [00:03:15]file doc_00162826 [00:03:15]remove file /storage/0463/doc_00162826 [00:03:15]file doc_00162827 [00:03:15]remove file /storage/0463/doc_00162827 [00:03:15]file doc_00162828 [00:03:15]remove file /storage/0463/doc_00162828 [00:03:15]file doc_00162829 [00:03:15]remove file /storage/0463/doc_00162829 [00:03:15]file doc_00162830 [00:03:15]remove file /storage/0463/doc_00162830 [00:03:15]file doc_00162831 [00:03:15]remove file /storage/0463/doc_00162831 [00:03:15]file doc_00162832 [00:03:15]remove file /storage/0463/doc_00162832 [00:03:15]file doc_00162833 [00:03:15]remove file /storage/0463/doc_00162833 [00:03:15]file doc_00162834 [00:03:15]remove file /storage/0463/doc_00162834 [00:03:15]file doc_00162835 [00:03:15]remove file /storage/0463/doc_00162835 [00:03:15]file doc_00162836 [00:03:15]remove file /storage/0463/doc_00162836 [00:03:15]file doc_00162837 [00:03:15]remove file /storage/0463/doc_00162837 [00:03:15]file doc_00162838 [00:03:15]remove file /storage/0463/doc_00162838 [00:03:15]file doc_00162839 [00:03:15]remove file /storage/0463/doc_00162839 [00:03:15]file doc_00162840 [00:03:15]remove file /storage/0463/doc_00162840 [00:03:15]file doc_00162841 [00:03:15]remove file /storage/0463/doc_00162841 [00:03:15]file doc_00162842 [00:03:15]remove file /storage/0463/doc_00162842 [00:03:15]file doc_00162843 [00:03:15]remove file /storage/0463/doc_00162843 [00:03:15]file doc_00162844 [00:03:15]remove file /storage/0463/doc_00162844 [00:03:15]file doc_00162845 [00:03:15]remove file /storage/0463/doc_00162845 [00:03:15]file doc_00162846 [00:03:15]remove file /storage/0463/doc_00162846 [00:03:15]file doc_00162847 [00:03:15]remove file /storage/0463/doc_00162847 [00:03:15]file doc_00162848 [00:03:15]remove file /storage/0463/doc_00162848 [00:03:15]file doc_00162849 [00:03:15]remove file /storage/0463/doc_00162849 [00:03:15]file doc_00162850 [00:03:15]remove file /storage/0463/doc_00162850 [00:03:15]file doc_00162851 [00:03:15]remove file /storage/0463/doc_00162851 [00:03:15]file doc_00162852 [00:03:15]remove file /storage/0463/doc_00162852 [00:03:15]file doc_00162853 [00:03:15]remove file /storage/0463/doc_00162853 [00:03:15]file doc_00162854 [00:03:15]remove file /storage/0463/doc_00162854 [00:03:15]file doc_00162855 [00:03:15]remove file /storage/0463/doc_00162855 [00:03:15]file doc_00162856 [00:03:15]remove file /storage/0463/doc_00162856 [00:03:15]file doc_00162857 [00:03:15]remove file /storage/0463/doc_00162857 [00:03:15]file doc_00162858 [00:03:15]remove file /storage/0463/doc_00162858 [00:03:15]file doc_00162859 [00:03:15]remove file /storage/0463/doc_00162859 [00:03:15]file doc_00162860 [00:03:15]remove file /storage/0463/doc_00162860 [00:03:15]file doc_00162861 [00:03:15]remove file /storage/0463/doc_00162861 [00:03:15]file doc_00162862 [00:03:15]remove file /storage/0463/doc_00162862 [00:03:15]file doc_00162863 [00:03:15]remove file /storage/0463/doc_00162863 [00:03:15]file doc_00162864 [00:03:15]remove file /storage/0463/doc_00162864 [00:03:15]file doc_00162865 [00:03:15]remove file /storage/0463/doc_00162865 [00:03:15]file doc_00162866 [00:03:15]remove file /storage/0463/doc_00162866 [00:03:15]file doc_00162867 [00:03:15]remove file /storage/0463/doc_00162867 [00:03:15]file doc_00162868 [00:03:15]remove file /storage/0463/doc_00162868 [00:03:15]file doc_00162869 [00:03:15]remove file /storage/0463/doc_00162869 [00:03:15]file doc_00162870 [00:03:15]remove file /storage/0463/doc_00162870 [00:03:15]file doc_00162871 [00:03:15]remove file /storage/0463/doc_00162871 [00:03:15]file doc_00162872 [00:03:15]remove file /storage/0463/doc_00162872 [00:03:15]file doc_00162873 [00:03:15]remove file /storage/0463/doc_00162873 [00:03:15]file doc_00162874 [00:03:15]remove file /storage/0463/doc_00162874 [00:03:15]file doc_00162875 [00:03:15]remove file /storage/0463/doc_00162875 [00:03:15]file doc_00162876 [00:03:15]remove file /storage/0463/doc_00162876 [00:03:15]file doc_00162877 [00:03:15]remove file /storage/0463/doc_00162877 [00:03:15]file doc_00162878 [00:03:15]remove file /storage/0463/doc_00162878 [00:03:15]file doc_00162879 [00:03:15]remove file /storage/0463/doc_00162879 [00:03:15]file doc_00162880 [00:03:15]remove file /storage/0463/doc_00162880 [00:03:15]file doc_00162881 [00:03:15]remove file /storage/0463/doc_00162881 [00:03:15]file doc_00162882 [00:03:15]remove file /storage/0463/doc_00162882 [00:03:15]file doc_00162883 [00:03:15]remove file /storage/0463/doc_00162883 [00:03:15]file doc_00162884 [00:03:15]remove file /storage/0463/doc_00162884 [00:03:15]file doc_00162885 [00:03:15]remove file /storage/0463/doc_00162885 [00:03:15]file doc_00162886 [00:03:15]remove file /storage/0463/doc_00162886 [00:03:15]file doc_00162887 [00:03:15]remove file /storage/0463/doc_00162887 [00:03:15]file doc_00162888 [00:03:15]remove file /storage/0463/doc_00162888 [00:03:15]file doc_00162889 [00:03:15]remove file /storage/0463/doc_00162889 [00:03:15]file doc_00162890 [00:03:15]remove file /storage/0463/doc_00162890 [00:03:15]file doc_00162891 [00:03:15]remove file /storage/0463/doc_00162891 [00:03:15]file doc_00162892 [00:03:15]remove file /storage/0463/doc_00162892 [00:03:15]file doc_00162893 [00:03:15]remove file /storage/0463/doc_00162893 [00:03:15]file doc_00162894 [00:03:15]remove file /storage/0463/doc_00162894 [00:03:15]file doc_00162895 [00:03:15]remove file /storage/0463/doc_00162895 [00:03:15]file doc_00162896 [00:03:15]remove file /storage/0463/doc_00162896 [00:03:15]file doc_00162897 [00:03:15]remove file /storage/0463/doc_00162897 [00:03:15]file doc_00162898 [00:03:15]remove file /storage/0463/doc_00162898 [00:03:15]file doc_00162899 [00:03:15]remove file /storage/0463/doc_00162899 [00:03:15]file doc_00162900 [00:03:15]remove file /storage/0463/doc_00162900 [00:03:15]file doc_00162901 [00:03:15]remove file /storage/0463/doc_00162901 [00:03:15]file doc_00162902 [00:03:15]remove file /storage/0463/doc_00162902 [00:03:15]file doc_00162903 [00:03:15]remove file /storage/0463/doc_00162903 [00:03:15]file doc_00162904 [00:03:15]remove file /storage/0463/doc_00162904 [00:03:15]file doc_00162905 [00:03:15]remove file /storage/0463/doc_00162905 [00:03:15]file doc_00162906 [00:03:15]remove file /storage/0463/doc_00162906 [00:03:15]file doc_00162907 [00:03:15]remove file /storage/0463/doc_00162907 [00:03:15]file doc_00162908 [00:03:15]remove file /storage/0463/doc_00162908 [00:03:15]file doc_00162909 [00:03:15]remove file /storage/0463/doc_00162909 [00:03:15]file doc_00162910 [00:03:15]remove file /storage/0463/doc_00162910 [00:03:15]file doc_00162911 [00:03:15]remove file /storage/0463/doc_00162911 [00:03:15]file doc_00162912 [00:03:15]remove file /storage/0463/doc_00162912 [00:03:15]file doc_00162913 [00:03:15]remove file /storage/0463/doc_00162913 [00:03:15]file doc_00162914 [00:03:15]remove file /storage/0463/doc_00162914 [00:03:15]file doc_00162915 [00:03:15]remove file /storage/0463/doc_00162915 [00:03:15]file doc_00162916 [00:03:15]remove file /storage/0463/doc_00162916 [00:03:15]file doc_00162917 [00:03:15]remove file /storage/0463/doc_00162917 [00:03:15]file doc_00162918 [00:03:15]remove file /storage/0463/doc_00162918 [00:03:15]file doc_00162919 [00:03:15]remove file /storage/0463/doc_00162919 [00:03:15]file doc_00162920 [00:03:15]remove file /storage/0463/doc_00162920 [00:03:15]file doc_00162921 [00:03:15]remove file /storage/0463/doc_00162921 [00:03:15]file doc_00162922 [00:03:15]remove file /storage/0463/doc_00162922 [00:03:15]file doc_00162923 [00:03:15]remove file /storage/0463/doc_00162923 [00:03:15]file doc_00162924 [00:03:15]remove file /storage/0463/doc_00162924 [00:03:15]file doc_00162925 [00:03:15]remove file /storage/0463/doc_00162925 [00:03:15]file doc_00162926 [00:03:15]remove file /storage/0463/doc_00162926 [00:03:15]file doc_00162927 [00:03:15]remove file /storage/0463/doc_00162927 [00:03:15]file doc_00162928 [00:03:15]remove file /storage/0463/doc_00162928 [00:03:15]file doc_00162929 [00:03:15]remove file /storage/0463/doc_00162929 [00:03:15]file doc_00162930 [00:03:15]remove file /storage/0463/doc_00162930 [00:03:15]file doc_00162931 [00:03:15]remove file /storage/0463/doc_00162931 [00:03:15]file doc_00162932 [00:03:15]remove file /storage/0463/doc_00162932 [00:03:15]file doc_00162933 [00:03:15]remove file /storage/0463/doc_00162933 [00:03:15]file doc_00162934 [00:03:15]remove file /storage/0463/doc_00162934 [00:03:15]file doc_00162935 [00:03:15]remove file /storage/0463/doc_00162935 [00:03:15]file doc_00162936 [00:03:15]remove file /storage/0463/doc_00162936 [00:03:15]file doc_00162937 [00:03:15]remove file /storage/0463/doc_00162937 [00:03:15]file doc_00162938 [00:03:15]remove file /storage/0463/doc_00162938 [00:03:15]file doc_00162939 [00:03:15]remove file /storage/0463/doc_00162939 [00:03:15]file doc_00162940 [00:03:15]remove file /storage/0463/doc_00162940 [00:03:15]file doc_00162941 [00:03:15]remove file /storage/0463/doc_00162941 [00:03:15]file doc_00162942 [00:03:15]remove file /storage/0463/doc_00162942 [00:03:15]file doc_00162943 [00:03:15]remove file /storage/0463/doc_00162943 [00:03:15]file doc_00162944 [00:03:15]remove file /storage/0463/doc_00162944 [00:03:15]file doc_00162945 [00:03:15]remove file /storage/0463/doc_00162945 [00:03:15]file doc_00162946 [00:03:15]remove file /storage/0463/doc_00162946 [00:03:15]file doc_00162947 [00:03:15]remove file /storage/0463/doc_00162947 [00:03:15]file doc_00162948 [00:03:15]remove file /storage/0463/doc_00162948 [00:03:15]file doc_00162949 [00:03:15]remove file /storage/0463/doc_00162949 [00:03:15]file doc_00162950 [00:03:15]remove file /storage/0463/doc_00162950 [00:03:15]file doc_00162951 [00:03:15]remove file /storage/0463/doc_00162951 [00:03:15]file doc_00162952 [00:03:15]remove file /storage/0463/doc_00162952 [00:03:15]file doc_00162953 [00:03:15]remove file /storage/0463/doc_00162953 [00:03:15]file doc_00162954 [00:03:15]remove file /storage/0463/doc_00162954 [00:03:15]file doc_00162955 [00:03:15]remove file /storage/0463/doc_00162955 [00:03:15]file doc_00162956 [00:03:15]remove file /storage/0463/doc_00162956 [00:03:15]file doc_00162957 [00:03:15]remove file /storage/0463/doc_00162957 [00:03:15]file doc_00162958 [00:03:15]remove file /storage/0463/doc_00162958 [00:03:15]file doc_00162959 [00:03:15]remove file /storage/0463/doc_00162959 [00:03:15]file doc_00162960 [00:03:15]remove file /storage/0463/doc_00162960 [00:03:15]file doc_00162961 [00:03:15]remove file /storage/0463/doc_00162961 [00:03:15]file doc_00162962 [00:03:15]remove file /storage/0463/doc_00162962 [00:03:15]file doc_00162963 [00:03:15]remove file /storage/0463/doc_00162963 [00:03:15]file doc_00162964 [00:03:15]remove file /storage/0463/doc_00162964 [00:03:15]file doc_00162965 [00:03:15]remove file /storage/0463/doc_00162965 [00:03:15]file doc_00162966 [00:03:15]remove file /storage/0463/doc_00162966 [00:03:15]file doc_00162967 [00:03:15]remove file /storage/0463/doc_00162967 [00:03:15]file doc_00162968 [00:03:15]remove file /storage/0463/doc_00162968 [00:03:15]file doc_00162969 [00:03:15]remove file /storage/0463/doc_00162969 [00:03:15]file doc_00162970 [00:03:15]remove file /storage/0463/doc_00162970 [00:03:15]file doc_00162971 [00:03:15]remove file /storage/0463/doc_00162971 [00:03:15]file doc_00162972 [00:03:15]remove file /storage/0463/doc_00162972 [00:03:15]file doc_00162973 [00:03:15]remove file /storage/0463/doc_00162973 [00:03:15]file doc_00162974 [00:03:15]remove file /storage/0463/doc_00162974 [00:03:15]file doc_00162975 [00:03:15]remove file /storage/0463/doc_00162975 [00:03:15]remove dir /storage/0463 [00:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=264 [00:03:15]tlvbuf is 012BEC80 [00:03:16]SAM_PROTO_ClearQueue [00:03:16]wFMCommunicate request_size=4 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 09 00 00 [00:03:16]Write to MH i2c: E2 08 00 98 49 80 09 00 00 00 00 00 00 53 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 98 49 00 90 00 55 [00:03:16]RAPDU: 90 00 [00:03:16]wFMCommunicate OK [00:03:16]SAM_PROTO_ClearQueue done [00:03:16]KKMCreateOFDPacket [00:03:16]OFDProtocolAddRootSTLVToBuf [00:03:16]FM_MakeSignedData [00:03:16]FM_MakeSignedData [00:03:16]SAM_PROTO_SignData [00:03:16]wFMCommunicate request_size=4 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 0D 01 02 [00:03:16]Write to MH i2c: E2 08 00 99 49 80 0D 01 02 00 00 00 00 5B [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 99 49 00 90 00 56 [00:03:16]RAPDU: 90 00 [00:03:16]wFMCommunicate OK [00:03:16]wFMCommunicate request_size=255 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 0D 02 02 FA 02 00 08 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 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 45 67 94 66 0E 04 04 00 D0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A0 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 [00:03:16]Write to MH i2c: E2 02 01 9A 49 80 0D 02 02 FA 00 02 00 08 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 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 45 67 94 66 0E 04 04 00 D0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A0 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 00 00 76 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 9A 49 00 90 00 57 [00:03:16]RAPDU: 90 00 [00:03:16]wFMCommunicate OK [00:03:16]wFMCommunicate request_size=23 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 0D 02 02 12 30 30 38 37 34 38 39 39 35 04 06 00 3D F4 F0 4C 75 4D [00:03:16]Write to MH i2c: E2 1A 00 9B 49 80 0D 02 02 12 00 30 30 38 37 34 38 39 39 35 04 06 00 3D F4 F0 4C 75 4D 00 00 9D [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 03 00 9B 49 00 90 00 58 [00:03:16]RAPDU: 90 00 [00:03:16]wFMCommunicate OK [00:03:16]wFMCommunicate request_size=4 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 0D 03 02 [00:03:16]Write to MH i2c: E2 08 00 9C 49 80 0D 03 02 00 00 00 00 60 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:16]Read from MH i2c: E2 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 0B 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: E2 0B 00 9C 49 00 70 25 23 4E CB 13 84 87 90 00 50 [00:03:16]RAPDU: 70 25 23 4E CB 13 84 87 90 00 [00:03:16]wFMCommunicate OK [00:03:16]SAM_PROTO_SignData done [00:03:16]FM_MakeSignedData done [00:03:16]CreateOFDProtocolMessage [00:03:16]wFMCommunicate request_size=4 [00:03:16]MH_SAM_APDU [00:03:16]CAPDU: 80 11 00 00 [00:03:16]Write to MH i2c: E2 08 00 9D 49 80 11 00 00 00 00 00 00 60 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 17 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 17 00 9D 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C0 [00:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:03:17]wFMCommunicate OK [00:03:17]CreateOFDProtocolMessage done [00:03:17]OFDSenderStorePacket 162976 [00:03:17]StoreOFDPacket docnum=162976 [00:03:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 1C 01 00 00 6A 54 14 01 4D 19 5A 02 01 00 02 00 08 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 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 45 67 94 66 0E 04 04 00 D0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A0 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 35 04 06 00 3D F4 F0 4C 75 4D 70 25 23 4E CB 13 84 87 [00:03:17]CheckFolder [00:03:17]dirname=/storage/ofd_packets [00:03:17]CheckFolder done [00:03:17]ProducePacketName [00:03:17]name=ofd_packets/00162976 [00:03:17]NVStorageSaveData ofd_packets/00162976 [00:03:17]File name is /storage/ofd_packets/00162976 [00:03:17]Write 314 bytes [00:03:17]NVStorageSaveData done [00:03:17]OFDSenderStorePacket done [00:03:17]KKMCreateOFDPacket done [00:03:17]NVStorageSaveData kkm_last_timestamp [00:03:17]File name is /storage/kkm_last_timestamp [00:03:17]Write 4 bytes [00:03:17]NVStorageSaveData done [00:03:17]ExternCall_PrintAddStr [00:03:17]wPrintStart [00:03:17]Write to MH i2c: 01 00 00 9E 49 E7 [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 07 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 07 00 9E 49 00 00 00 00 00 FF 0F FC [00:03:17]RasterBufferAndPrint [00:03:17]line Отчет об открытии смены [00:03:17]line ФФД: 1.0 [00:03:17]line ИНН: 02508201610067 [00:03:17]line Кассир: Шамбеталиев А. [00:03:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:03:17]line Место: АЗС № 140 "Партнер Нефть" [00:03:17]line 15.07.2024 00:03 [00:03:17]line Смена: 464 [00:03:17]line РНМ: 0000000000090858 [00:03:17]line ЗНМ: 0300000129 [00:03:17]line ФД: 162976 [00:03:17]line ФМ: 0000000000874899 [00:03:17]line ФПД: 68122212857165 [00:03:17]written 0, free lines is 4095 [00:03:17]OFD Sender: Processing packet 162976 [packets to send 106, broken 105] [00:03:17]ProducePacketName [00:03:17]name=ofd_packets/00162976 [00:03:17]OFD Sender: To server: pG, [00:03:17]CommunicateWithHost lk.salyk.kg:30040 [00:03:17]ConnectInit lk.salyk.kg [00:03:17]Connected sock=10 [00:03:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 1C 01 00 00 6A 54 14 01 4D 19 5A 02 01 00 02 00 08 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 Write to MH i2c: 2C 01 20 00 D1 00 82 B0 D1 49 80 F9 D0 [00:03:17]B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 Write i2c OK [00:03:17]34 MH_I2C_Read... [00:03:17]32 Read from MH i2c: 2E 01 37 [00:03:17]32 MH_I2C_Read... [00:03:17]34 Read from MH i2c: 01 07 00 [00:03:17]MH_I2C_Read... [00:03:17]34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 Read from MH i2c: 9D 01 D0 07 B5 00 D1 B0 84 49 D1 00 82 00 D1 00 8C 00 00 22 B5 0E C3 F4 [00:03:17]03 RasterBufferAndPrint [00:03:17]04 line [00:03:17]00 line [00:03:17]45 line [00:03:17]67 line [00:03:17]94 line [00:03:17]66 0E 04 04 00 D0 written 0, free lines is 3822 [00:03:17]01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A0 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 MH_Cut [00:03:17]34 Write to MH i2c: 38 D1 39 01 39 00 35 B7 04 49 06 01 00 D2 3D [00:03:17]F4 F0 4C 75 Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]4D Read from MH i2c: 70 D1 25 [00:03:17]23 MH_I2C_Read... [00:03:17]4E CB 13 84 87 [00:03:17]Read from MH i2c: D1 01 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: D1 01 00 B7 49 00 D1 [00:03:17]Write to MH i2c: 01 00 00 B8 49 01 [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C9 27 47 00 F1 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A0 7C 02 00 F4 03 04 00 53 13 94 66 B6 04 01 00 00 81 B4 34 41 70 BE 21 11 [00:03:17]CommunicateWithHost err = 0 [00:03:17]CheckOFDResponse [00:03:17]1017 (14) - 77093643461234 [00:03:17]1041 (16) - 0000000000874899 [00:03:17]1040 (4) - 162976 [00:03:17]1012 (4) - 14.07.2024 18:05 [00:03:17]1206 (1) - 0 [00:03:17]OFD Sender: Remove packet 162976 [00:03:17]ProducePacketName [00:03:17]name=ofd_packets/00162976 [00:03:17]NVStorageDeleteData [00:03:17]*** Cut start [00:03:17]*** Purtial cut [00:03:17]*** Stage 1: CUTSNS_PIN = 1 [00:03:18]Read from MH i2c: 01 [00:03:18]MH_I2C_Read... [00:03:18]*** Stop cut motor [00:03:18]*** Cut end [00:03:18]Read from MH i2c: 01 07 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: 01 07 00 B8 49 00 00 00 00 00 FF 0F 16 [00:03:18]process_action open_shift done [00:03:18]requested_data is exist [00:03:18]produce_requested_data [00:03:18]requested_item fd.num is exist - process it [00:03:18]SAM_PROTO_GetFieldsCounters [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 13 00 00 [00:03:18]Write to MH i2c: E2 08 00 B9 49 80 13 00 00 00 00 00 00 7E [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:18]OFD Sender: No OFD packet to send [00:03:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:18]Read from MH i2c: E2 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 62 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 62 00 B9 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A0 7C 02 00 0E 04 04 00 D0 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 A0 [00:03:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A0 7C 02 00 0E 04 04 00 D0 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:03:18]wFMCommunicate OK [00:03:18]SAM_PROTO_GetFieldsCounters done [00:03:18]requested_item shift.num is exist - process it [00:03:18]requested_item shift.opened is exist - process it [00:03:18]req_shift_opened [00:03:18]FM_GetShiftState [00:03:18]SAM_PROTO_GetShiftState [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 13 01 00 [00:03:18]Write to MH i2c: E2 08 00 BA 49 80 13 01 00 00 00 00 00 80 [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:18]Read from MH i2c: E2 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 0E 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 0E 00 BA 49 00 09 00 01 45 67 94 66 00 00 00 00 90 00 32 [00:03:18]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [00:03:18]wFMCommunicate OK [00:03:18]SAM_PROTO_GetShiftState done [00:03:18]FM_GetShiftState done [00:03:18]req_shift_opened done [00:03:18]requested_item shift.open_date is exist - process it [00:03:18]req_shift_open_date [00:03:18]req_shift_open_date done [00:03:18]produce_requested_data done [00:03:18]produce_requested_data return {"fd.num":162976,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [00:03:18]process_action_free open_shift [00:03:18]json_value_free [00:03:18]json_value_free done [00:03:18]process_json_proto returns [00:03:18]Send response to host [00:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":162976,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [00:03:18]free response buf [00:03:18]execute_script done [00:03:18]execute_script returns [00:03:18]free content buf [00:03:18]Sock 7.Close socket [00:03:18]Sock 7.Thread stoped [00:03:18]accept exits with 9 [00:03:18]New connection [00:03:18]New thread 3066879332 created [00:03:18]Thread 3066735972 joined [00:03:18]Waiting for new connection... [00:03:18] Sock 9.Parse request [00:03:18]Sock 9.Check first char [00:03:18]Sock 9.First char is OK [00:03:18]request: POST /json_proto HTTP/1.0 [00:03:18]Method: POST [00:03:18]URL: /json_proto [00:03:18]Method is POST - this is cgi request [00:03:18]url: /json_proto [00:03:18]query_string will be loaded in cgi processing [00:03:18]execute_cgi json_proto POST (null) [00:03:18]execute_cgi path=json_proto method=POST [00:03:18]POST find Content-Length [00:03:18]Host: 172.17.39.67:8080 [00:03:18]Content-Length: 331 [00:03:18]Content-Type: application/json [00:03:18] [00:03:18]POST finish read [00:03:18]Found Content-Length = 331 [00:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:18]execute_script... [00:03: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" ] } } [00:03:18]POST & json_proto [00:03:18]process_json_proto [00:03:18]json parsed OK: [00:03:18]protocol is kg_v1.0 [00:03:18]action value=get_value [00:03:18]process_action get_value [00:03:18]cmd_get_value [00:03:18]process_action get_value done [00:03:18]requested_data is exist [00:03:18]produce_requested_data [00:03:18]requested_item fm.sale.total is exist - process it [00:03:18]SAM_PROTO_GetFMData [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 13 03 00 [00:03:18]Write to MH i2c: E2 08 00 BB 49 80 13 03 00 00 00 00 00 83 [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:18]Read from MH i2c: E2 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 FD 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 FD 00 BB 49 00 C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 86 [00:03:18]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 00 79 02 00 69 04 A3 00 6F 04 04 00 ED 78 02 00 B1 04 05 00 74 DD 81 56 03 70 04 05 00 38 EA 0D B4 02 72 04 04 00 3C F3 73 A2 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 5E 04 C4 5A 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 1C 30 90 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [00:03:18]wFMCommunicate OK [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 17 00 00 [00:03:18]Write to MH i2c: E2 08 00 BC 49 80 17 00 00 00 00 00 00 85 [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 BC 49 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 BE [00:03:19]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [00:03:19]wFMCommunicate OK [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 17 00 00 [00:03:19]Write to MH i2c: E2 08 00 BD 49 80 17 00 00 00 00 00 00 86 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 BD 49 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 26 [00:03:19]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:03:19]wFMCommunicate OK [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 17 00 00 [00:03:19]Write to MH i2c: E2 08 00 BE 49 80 17 00 00 00 00 00 00 87 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 BE 49 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [00:03:20]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:20]wFMCommunicate OK [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 17 00 00 [00:03:20]Write to MH i2c: E2 08 00 BF 49 80 17 00 00 00 00 00 00 88 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 DE 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 DE 00 BF 49 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 67 [00:03:20]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:03:20]wFMCommunicate OK [00:03:20]SAM_PROTO_GetFMData done [00:03:20]requested_item fm.sale_refund.total is exist - process it [00:03:20]requested_item fm.buy.total is exist - process it [00:03:20]requested_item shift.sale.total is exist - process it [00:03:20]SAM_PROTO_GetShiftData [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 13 02 00 [00:03:20]Write to MH i2c: E2 08 00 C0 49 80 13 02 00 00 00 00 00 87 [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 C0 49 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 FA [00:03:21]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:03:21]wFMCommunicate OK [00:03:21]wFMCommunicate request_size=4 [00:03:21]MH_SAM_APDU [00:03:21]CAPDU: 80 17 00 00 [00:03:21]Write to MH i2c: E2 08 00 C1 49 80 17 00 00 00 00 00 00 8A [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 C1 49 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 92 [00:03:21]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:03:21]wFMCommunicate OK [00:03:21]wFMCommunicate request_size=4 [00:03:21]MH_SAM_APDU [00:03:21]CAPDU: 80 17 00 00 [00:03:21]Write to MH i2c: E2 08 00 C2 49 80 17 00 00 00 00 00 00 8B [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:22]Read from MH i2c: E2 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 FD 00 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 FD 00 C2 49 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 5D [00:03:22]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:03:22]wFMCommunicate OK [00:03:22]wFMCommunicate request_size=4 [00:03:22]MH_SAM_APDU [00:03:22]CAPDU: 80 17 00 00 [00:03:22]Write to MH i2c: E2 08 00 C3 49 80 17 00 00 00 00 00 00 8C [00:03:22]Write i2c OK [00:03:22]MH_I2C_Read... [00:03:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:22]Read from MH i2c: E2 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 FD 00 [00:03:22]MH_I2C_Read... [00:03:22]Read from MH i2c: E2 FD 00 C3 49 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 FE [00:03:22]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:03:22]wFMCommunicate OK [00:03:22]wFMCommunicate request_size=4 [00:03:22]MH_SAM_APDU [00:03:22]CAPDU: 80 17 00 00 [00:03:22]Write to MH i2c: E2 08 00 C4 49 80 17 00 00 00 00 00 00 8D [00:03:22]Write i2c OK [00:03:22]MH_I2C_Read... [00:03:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:03:23]Read from MH i2c: E2 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 BD 00 [00:03:23]MH_I2C_Read... [00:03:23]Read from MH i2c: E2 BD 00 C4 49 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 73 [00:03:23]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:03:23]wFMCommunicate OK [00:03:23]SAM_PROTO_GetShiftData done [00:03:23]requested_item shift.sale.total_cash is exist - process it [00:03:23]requested_item shift.sale_refund.total is exist - process it [00:03:23]requested_item shift.sale_refund.total_cash is exist - process it [00:03:23]requested_item shift.buy.total is exist - process it [00:03:23]requested_item shift.buy.total_cash is exist - process it [00:03:23]produce_requested_data done [00:03:23]produce_requested_data return {"fm.sale.total":143362533.00,"fm.sale_refund.total":62829.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:03:23]process_action_free get_value [00:03:23]json_value_free [00:03:23]json_value_free done [00:03:23]process_json_proto returns [00:03:23]Send response to host [00:03:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":143362533.00,"fm.sale_refund.total":62829.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:03:23]free response buf [00:03:23]execute_script done [00:03:23]execute_script returns [00:03:23]free content buf [00:03:23]Sock 9.Close socket [00:03:23]Sock 9.Thread stoped [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [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: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]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:10]accept exits with 7 [00:13:10]New connection [00:13:10]New thread 3066735972 created [00:13:10]Thread 3066879332 joined [00:13:10]Waiting for new connection... [00:13:10] Sock 7.Parse request [00:13:10]Sock 7.Check first char [00:13:10]Sock 7.First char is OK [00:13:10]request: POST /json_proto HTTP/1.0 [00:13:10]Method: POST [00:13:10]URL: /json_proto [00:13:10]Method is POST - this is cgi request [00:13:10]url: /json_proto [00:13:10]query_string will be loaded in cgi processing [00:13:10]execute_cgi json_proto POST (null) [00:13:10]execute_cgi path=json_proto method=POST [00:13:10]POST find Content-Length [00:13:10]Host: 172.17.39.67:8080 [00:13:10]Content-Length: 802 [00:13:10]Content-Type: application/json [00:13:10] [00:13:10]POST finish read [00:13:10]Found Content-Length = 802 [00:13:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.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" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:10]execute_script... [00:13: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)1319593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.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" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:10]POST & json_proto [00:13:10]process_json_proto [00:13:10]json parsed OK: [00:13:10]protocol is kg_v1.0 [00:13:10]action value=close_receipt [00:13:10]process_action close_receipt [00:13:10]cmd_close_receipt [00:13:10]MH_GetDate [00:13:10]Write to MH i2c: F0 00 00 C5 49 FD [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: F0 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: F0 09 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: F0 09 00 C5 49 00 99 69 94 66 B6 85 93 66 36 [00:13:10]GetLastDocTimeStamp 1721001797 [00:13:10]current date 1721002393 [00:13:10]FM_GetShiftState [00:13:10]SAM_PROTO_GetShiftState [00:13:10]wFMCommunicate request_size=4 [00:13:10]MH_SAM_APDU [00:13:10]CAPDU: 80 13 01 00 [00:13:10]Write to MH i2c: E2 08 00 C6 49 80 13 01 00 00 00 00 00 8C [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:10]Read from MH i2c: E2 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 0E 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 0E 00 C6 49 00 09 00 01 45 67 94 66 00 00 00 00 90 00 3E [00:13:10]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [00:13:10]wFMCommunicate OK [00:13:10]SAM_PROTO_GetShiftState done [00:13:10]FM_GetShiftState done [00:13:10]opened in 1721001797 [00:13:10]opened+sec_in_day 1721088197 [00:13:10]quantity*price = 99914 [00:13:10]sum+1 = 99915 [00:13:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.14 НСП 1% : 8.84 НДС 12% : 106.10 Наличными: 0.00 Безнал.: 999.14 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 1 15.07.2024 00:13 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162977 ФПД: 150628591601956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T001313&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162977&fm=150628591601956&tin=02508201610067®Number=0000000000090858&sum=99914 [00:13:11]StoreToDocumentArchive [00:13:11]shift 464 fd 162977 [00:13:11]save to /storage/0464/doc_00162977 [00:13:11]save last doc name /storage/0464/doc_00162977 to /storage/kkm_last_doc_name [00:13:11]save OK [00:13:11]Clear old archive folders... [00:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:13:11]tlvbuf is 01346300 [00:13:11]SAM_PROTO_ClearQueue [00:13:11]wFMCommunicate request_size=4 [00:13:11]MH_SAM_APDU [00:13:11]CAPDU: 80 09 00 00 [00:13:11]Write to MH i2c: E2 08 00 D3 49 80 09 00 00 00 00 00 00 8E [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 03 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 03 00 D3 49 00 90 00 90 [00:13:11]RAPDU: 90 00 [00:13:11]wFMCommunicate OK [00:13:11]SAM_PROTO_ClearQueue done [00:13:11]KKMCreateOFDPacket [00:13:11]OFDProtocolAddRootSTLVToBuf [00:13:11]FM_MakeSignedData [00:13:11]FM_MakeSignedData [00:13:11]SAM_PROTO_SignData [00:13:11]wFMCommunicate request_size=4 [00:13:11]MH_SAM_APDU [00:13:11]CAPDU: 80 0D 01 02 [00:13:11]Write to MH i2c: E2 08 00 D4 49 80 0D 01 02 00 00 00 00 96 [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 03 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 03 00 D4 49 00 90 00 91 [00:13:11]RAPDU: 90 00 [00:13:11]wFMCommunicate OK [00:13:11]wFMCommunicate request_size=255 [00:13:11]MH_SAM_APDU [00:13: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 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 99 69 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7C 02 00 35 04 06 00 88 [00:13:11]Write to MH i2c: E2 02 01 D5 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 99 69 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7C 02 00 35 04 06 00 88 00 00 C3 [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 03 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 03 00 D5 49 00 90 00 92 [00:13:11]RAPDU: 90 00 [00:13:11]wFMCommunicate OK [00:13:11]wFMCommunicate request_size=10 [00:13:11]MH_SAM_APDU [00:13:11]CAPDU: 80 0D 02 02 05 FE F3 B2 09 24 [00:13:11]Write to MH i2c: E2 0D 00 D6 49 80 0D 02 02 05 00 FE F3 B2 09 24 00 00 73 [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 03 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 03 00 D6 49 00 90 00 93 [00:13:11]RAPDU: 90 00 [00:13:11]wFMCommunicate OK [00:13:11]wFMCommunicate request_size=4 [00:13:11]MH_SAM_APDU [00:13:11]CAPDU: 80 0D 03 02 [00:13:11]Write to MH i2c: E2 08 00 D7 49 80 0D 03 02 00 00 00 00 9B [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 0B 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 0B 00 D7 49 00 F7 D8 2F D9 5E 5A 2F F8 90 00 52 [00:13:11]RAPDU: F7 D8 2F D9 5E 5A 2F F8 90 00 [00:13:11]wFMCommunicate OK [00:13:11]SAM_PROTO_SignData done [00:13:11]FM_MakeSignedData done [00:13:11]CreateOFDProtocolMessage [00:13:11]wFMCommunicate request_size=4 [00:13:11]MH_SAM_APDU [00:13:11]CAPDU: 80 11 00 00 [00:13:11]Write to MH i2c: E2 08 00 D8 49 80 11 00 00 00 00 00 00 9B [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 17 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 17 00 D8 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FB [00:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:13:11]wFMCommunicate OK [00:13:11]CreateOFDProtocolMessage done [00:13:11]OFDSenderStorePacket 162977 [00:13:11]StoreOFDPacket docnum=162977 [00:13:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 95 21 07 01 31 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 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 99 69 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7C 02 00 35 04 06 00 88 FE F3 B2 09 24 F7 D8 2F D9 5E 5A 2F F8 [00:13:11]CheckFolder [00:13:11]dirname=/storage/ofd_packets [00:13:11]CheckFolder done [00:13:11]ProducePacketName [00:13:11]name=ofd_packets/00162977 [00:13:11]NVStorageSaveData ofd_packets/00162977 [00:13:11]File name is /storage/ofd_packets/00162977 [00:13:11]Write 301 bytes [00:13:11]NVStorageSaveData done [00:13:11]OFDSenderStorePacket done [00:13:11]KKMCreateOFDPacket done [00:13:11]NVStorageSaveData kkm_last_timestamp [00:13:11]File name is /storage/kkm_last_timestamp [00:13:11]Write 4 bytes [00:13:11]NVStorageSaveData done [00:13:11]ExternCall_PrintAddStr [00:13:11]wPrintStart [00:13:11]Write to MH i2c: 01 00 00 D9 49 22 [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: 01 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: 01 07 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: 01 07 00 D9 49 00 00 00 00 00 FF 0F 37 [00:13:11]RasterBufferAndPrint [00:13:11]line Счет N : (1)1319593 [00:13:11]line ИНН: 02508201610067 [00:13:11]line Контрольно-Кассовый Чек [00:13:11]line ПРОДАЖА [00:13:11]line ТРК (МРК, ГНК) : 33 [00:13:11]line Товар: 2710124130 [00:13:11]line Аи-92-К-5 [00:13:11]line 15.070 * 66.30 [00:13:11]line = 999.14 [00:13:11]line НДС 12% НСП 1% [00:13:11]line > о реализуемом товаре [00:13:11]line ИТОГО: 999.14 [00:13:11]line НСП 1% : 8.84 [00:13:11]line НДС 12% : 106.10 [00:13:11]line Наличными: 0.00 [00:13:11]line Безнал.: 999.14 [00:13:11]line Место: АЗС № 140 "Партнер Нефть" [00:13:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:13:11]line СНО: Общий режим [00:13:11]line Чек 1 15.07.2024 00:13 [00:13:11]line Смена: 464 ФФД: 1.0 [00:13:11]line ЗНМ: 0300000129 [00:13:11]line РНМ: 0000000000090858 [00:13:11]line Версия ККМ: 001 [00:13:11]line Платежная система: O! деньги [00:13:11]line ФМ: 0000000000874899 [00:13:11]line ФД: 162977 [00:13:11]line ФПД: 150628591601956 [00:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T001313&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162977&fm=150628591601956&tin=02508201610067®Number=0000000000090858&sum=99914 [00:13:12]OFD Sender: Processing packet 162977 [packets to send 106, broken 105] [00:13:12]ProducePacketName [00:13:12]name=ofd_packets/00162977 [00:13:12]OFD Sender: To server: pG, [00:13:12]CommunicateWithHost lk.salyk.kg:30040 [00:13:12]ConnectInit lk.salyk.kg [00:13:12]written 0, free lines is 4095 [00:13:12]Connected sock=10 [00:13:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 95 21 07 01 31 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 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 99 69 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7C 02 00 35 04 06 00 88 FE F3 B2 09 24 F7 D8 2F D9 5E 5A 2F F8 [00:13:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8C 67 47 00 99 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7C 02 00 F4 03 04 00 A5 15 94 66 B6 04 01 00 00 8E 5E 89 80 AF 70 F3 65 [00:13:12]CommunicateWithHost err = 0 [00:13:12]CheckOFDResponse [00:13:12]1017 (14) - 77093643461234 [00:13:12]1041 (16) - 0000000000874899 [00:13:12]1040 (4) - 162977 [00:13:12]1012 (4) - 14.07.2024 18:15 [00:13:12]1206 (1) - 0 [00:13:12]OFD Sender: Remove packet 162977 [00:13:12]ProducePacketName [00:13:12]name=ofd_packets/00162977 [00:13:12]NVStorageDeleteData [00:13:12]Write to MH i2c: 01 00 00 03 4A 4D [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: 01 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: 01 07 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: 01 07 00 03 4A 00 00 00 00 00 F6 0C 56 [00:13:12]RasterBufferAndPrint [00:13:12]line [00:13:12]line [00:13:12]line [00:13:12]line [00:13:12]line [00:13:12]written 0, free lines is 3327 [00:13:12]MH_Cut [00:13:12]Write to MH i2c: D1 01 00 0A 4A 01 26 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: D1 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: D1 01 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: D1 01 00 0A 4A 00 25 [00:13:12]Write to MH i2c: 01 00 00 0B 4A 55 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]OFD Sender: No OFD packet to send [00:13:13]*** Cut start [00:13:13]*** Purtial cut [00:13:13]*** CUTSNS_PIN = 0 [00:13:13]*** Stage 1: CUTSNS_PIN = 1 [00:13:15]Read from MH i2c: 01 [00:13:15]MH_I2C_Read... [00:13:15]*** Stop cut motor [00:13:15]*** Cut end [00:13:15]Read from MH i2c: 01 07 00 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: 01 07 00 0B 4A 00 00 00 00 00 FF 0F 6A [00:13:15]process_action close_receipt done [00:13:15]requested_data is exist [00:13:15]produce_requested_data [00:13:15]requested_item fm.sn is exist - process it [00:13:15]wFMCommunicate request_size=4 [00:13:15]MH_SAM_APDU [00:13:15]CAPDU: 80 11 00 00 [00:13:15]Write to MH i2c: E2 08 00 0C 4A 80 11 00 00 00 00 00 00 D0 [00:13:15]Write i2c OK [00:13:15]MH_I2C_Read... [00:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:15]Read from MH i2c: E2 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 17 00 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 17 00 0C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 30 [00:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:13:15]wFMCommunicate OK [00:13:15]requested_item fd.num is exist - process it [00:13:15]SAM_PROTO_GetFieldsCounters [00:13:15]wFMCommunicate request_size=4 [00:13:15]MH_SAM_APDU [00:13:15]CAPDU: 80 13 00 00 [00:13:15]Write to MH i2c: E2 08 00 0D 4A 80 13 00 00 00 00 00 00 D3 [00:13:15]Write i2c OK [00:13:15]MH_I2C_Read... [00:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:15]Read from MH i2c: E2 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 62 00 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 62 00 0D 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A1 7C 02 00 0E 04 04 00 D0 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 F9 [00:13:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A1 7C 02 00 0E 04 04 00 D0 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:13:15]wFMCommunicate OK [00:13:15]SAM_PROTO_GetFieldsCounters done [00:13:15]requested_item shift.num is exist - process it [00:13:15]requested_item shift.opened is exist - process it [00:13:15]req_shift_opened [00:13:15]FM_GetShiftState [00:13:15]SAM_PROTO_GetShiftState [00:13:15]wFMCommunicate request_size=4 [00:13:15]MH_SAM_APDU [00:13:15]CAPDU: 80 13 01 00 [00:13:15]Write to MH i2c: E2 08 00 0E 4A 80 13 01 00 00 00 00 00 D5 [00:13:15]Write i2c OK [00:13:15]MH_I2C_Read... [00:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:15]Read from MH i2c: E2 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 0E 00 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 0E 00 0E 4A 00 09 00 01 45 67 94 66 00 00 00 00 90 00 87 [00:13:15]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [00:13:15]wFMCommunicate OK [00:13:15]SAM_PROTO_GetShiftState done [00:13:15]FM_GetShiftState done [00:13:15]req_shift_opened done [00:13:15]requested_item shift.open_date is exist - process it [00:13:15]req_shift_open_date [00:13:15]req_shift_open_date done [00:13:15]produce_requested_data done [00:13:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162977,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [00:13:15]process_action_free close_receipt [00:13:15]json_value_free [00:13:15]json_value_free done [00:13:15]process_json_proto returns [00:13:15]Send response to host [00:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162977,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [00:13:15]free response buf [00:13:15]execute_script done [00:13:15]execute_script returns [00:13:15]free content buf [00:13:15]Sock 7.Close socket [00:13:15]Sock 7.Thread stoped [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:04]accept exits with 9 [00:23:04]New connection [00:23:04]New thread 3066879332 created [00:23:04]Thread 3066735972 joined [00:23:04]Waiting for new connection... [00:23:04] Sock 9.Parse request [00:23:04]Sock 9.Check first char [00:23:04]Sock 9.First char is OK [00:23:04]request: POST /json_proto HTTP/1.0 [00:23:04]Method: POST [00:23:04]URL: /json_proto [00:23:04]Method is POST - this is cgi request [00:23:04]url: /json_proto [00:23:04]query_string will be loaded in cgi processing [00:23:04]execute_cgi json_proto POST (null) [00:23:04]execute_cgi path=json_proto method=POST [00:23:04]POST find Content-Length [00:23:05]Host: 172.17.39.67:8080 [00:23:05]Content-Length: 679 [00:23:05]Content-Type: application/json [00:23:05] [00:23:05]POST finish read [00:23:05]Found Content-Length = 679 [00:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:05]execute_script... [00:23: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)1319594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:05]POST & json_proto [00:23:05]process_json_proto [00:23:05]json parsed OK: [00:23:05]protocol is kg_v1.0 [00:23:05]action value=close_receipt [00:23:05]process_action close_receipt [00:23:05]cmd_close_receipt [00:23:05]MH_GetDate [00:23:05]Write to MH i2c: F0 00 00 0F 4A 48 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: F0 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: F0 09 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: F0 09 00 0F 4A 00 EC 6B 94 66 B6 85 93 66 D6 [00:23:05]GetLastDocTimeStamp 1721002393 [00:23:05]current date 1721002988 [00:23:05]FM_GetShiftState [00:23:05]SAM_PROTO_GetShiftState [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 13 01 00 [00:23:05]Write to MH i2c: E2 08 00 10 4A 80 13 01 00 00 00 00 00 D7 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0E 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0E 00 10 4A 00 09 00 01 45 67 94 66 00 00 00 00 90 00 89 [00:23:05]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [00:23:05]wFMCommunicate OK [00:23:05]SAM_PROTO_GetShiftState done [00:23:05]FM_GetShiftState done [00:23:05]opened in 1721001797 [00:23:05]opened+sec_in_day 1721088197 [00:23:05]quantity*price = 67029 [00:23:05]sum+1 = 67030 [00:23:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.18 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 2 15.07.2024 00:23 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162978 ФПД: 243388388856468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T002308&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162978&fm=243388388856468&tin=02508201610067®Number=0000000000090858&sum=67000 [00:23:06]StoreToDocumentArchive [00:23:06]shift 464 fd 162978 [00:23:06]save to /storage/0464/doc_00162978 [00:23:06]save last doc name /storage/0464/doc_00162978 to /storage/kkm_last_doc_name [00:23:06]save OK [00:23:06]Clear old archive folders... [00:23:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:23:06]tlvbuf is 012FC250 [00:23:06]SAM_PROTO_ClearQueue [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 09 00 00 [00:23:06]Write to MH i2c: E2 08 00 1D 4A 80 09 00 00 00 00 00 00 D9 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 1D 4A 00 90 00 DB [00:23:06]RAPDU: 90 00 [00:23:06]wFMCommunicate OK [00:23:06]SAM_PROTO_ClearQueue done [00:23:06]KKMCreateOFDPacket [00:23:06]OFDProtocolAddRootSTLVToBuf [00:23:06]FM_MakeSignedData [00:23:06]FM_MakeSignedData [00:23:06]SAM_PROTO_SignData [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 0D 01 02 [00:23:06]Write to MH i2c: E2 08 00 1E 4A 80 0D 01 02 00 00 00 00 E1 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 1E 4A 00 90 00 DC [00:23:06]RAPDU: 90 00 [00:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=255 [00:23:06]MH_SAM_APDU [00:23: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 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 EC 6B 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7C 02 00 35 04 06 00 DD [00:23:06]Write to MH i2c: E2 02 01 1F 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 EC 6B 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7C 02 00 35 04 06 00 DD 00 00 55 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 1F 4A 00 90 00 DD [00:23:06]RAPDU: 90 00 [00:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=10 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 0D 02 02 05 5C 46 75 D2 94 [00:23:06]Write to MH i2c: E2 0D 00 20 4A 80 0D 02 02 05 00 5C 46 75 D2 94 00 00 6B [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 03 00 20 4A 00 90 00 DE [00:23:06]RAPDU: 90 00 [00:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 0D 03 02 [00:23:06]Write to MH i2c: E2 08 00 21 4A 80 0D 03 02 00 00 00 00 E6 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 0B 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 0B 00 21 4A 00 A6 ED 75 A7 B2 02 B7 8E 90 00 8F [00:23:06]RAPDU: A6 ED 75 A7 B2 02 B7 8E 90 00 [00:23:06]wFMCommunicate OK [00:23:06]SAM_PROTO_SignData done [00:23:06]FM_MakeSignedData done [00:23:06]CreateOFDProtocolMessage [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 11 00 00 [00:23:06]Write to MH i2c: E2 08 00 22 4A 80 11 00 00 00 00 00 00 E6 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 17 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 17 00 22 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 46 [00:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:23:06]wFMCommunicate OK [00:23:06]CreateOFDProtocolMessage done [00:23:06]OFDSenderStorePacket 162978 [00:23:06]StoreOFDPacket docnum=162978 [00:23:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3A 09 07 01 12 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 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 EC 6B 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7C 02 00 35 04 06 00 DD 5C 46 75 D2 94 A6 ED 75 A7 B2 02 B7 8E [00:23:06]CheckFolder [00:23:06]dirname=/storage/ofd_packets [00:23:06]CheckFolder done [00:23:06]ProducePacketName [00:23:06]name=ofd_packets/00162978 [00:23:06]NVStorageSaveData ofd_packets/00162978 [00:23:06]File name is /storage/ofd_packets/00162978 [00:23:06]Write 301 bytes [00:23:06]NVStorageSaveData done [00:23:06]OFDSenderStorePacket done [00:23:06]KKMCreateOFDPacket done [00:23:06]NVStorageSaveData kkm_last_timestamp [00:23:06]File name is /storage/kkm_last_timestamp [00:23:06]Write 4 bytes [00:23:06]NVStorageSaveData done [00:23:06]ExternCall_PrintAddStr [00:23:06]wPrintStart [00:23:06]Write to MH i2c: 01 00 00 23 4A 6D [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: 01 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: 01 07 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: 01 07 00 23 4A 00 00 00 00 00 FF 0F 82 [00:23:06]RasterBufferAndPrint [00:23:06]line Счет N : (1)1319594 [00:23:06]line ИНН: 02508201610067 [00:23:06]line Контрольно-Кассовый Чек [00:23:06]line ПРОДАЖА [00:23:06]line ТРК (МРК, ГНК) : 33 [00:23:06]line Товар: 2710124130 [00:23:06]line Аи-92-К-5 [00:23:06]line 10.110 * 66.30 [00:23:06]line = 670.29 [00:23:06]line НДС 12% НСП 1% [00:23:06]line > о реализуемом товаре [00:23:06]line ОКРУГЛЕНИЕ: -0.29 [00:23:06]line ИТОГО: 670.00 [00:23:06]line Внесено: 670.00 [00:23:06]line СДАЧА: 0.00 [00:23:06]line НСП 1% : 5.93 [00:23:06]line НДС 12% : 71.18 [00:23:06]line Наличными: 670.00 [00:23:06]line Безнал.: 0.00 [00:23:06]line Место: АЗС № 140 "Партнер Нефть" [00:23:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:23:06]line СНО: Общий режим [00:23:06]line Чек 2 15.07.2024 00:23 [00:23:06]line Смена: 464 ФФД: 1.0 [00:23:06]line ЗНМ: 0300000129 [00:23:06]line РНМ: 0000000000090858 [00:23:06]line Версия ККМ: 001 [00:23:06]line ФМ: 0000000000874899 [00:23:06]line ФД: 162978 [00:23:06]line ФПД: 243388388856468 [00:23:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T002308&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162978&fm=243388388856468&tin=02508201610067®Number=0000000000090858&sum=67000 [00:23:07]OFD Sender: Processing packet 162978 [packets to send 106, broken 105] [00:23:07]ProducePacketName [00:23:07]name=ofd_packets/00162978 [00:23:07]OFD Sender: To server: pG, [00:23:07]CommunicateWithHost lk.salyk.kg:30040 [00:23:07]ConnectInit lk.salyk.kg [00:23:07]written 0, free lines is 4095 [00:23:07]Connected sock=7 [00:23:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3A 09 07 01 12 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 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 EC 6B 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7C 02 00 35 04 06 00 DD 5C 46 75 D2 94 A6 ED 75 A7 B2 02 B7 8E [00:23:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 84 56 47 00 DD 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7C 02 00 F4 03 04 00 F8 17 94 66 B6 04 01 00 00 7A F4 A8 35 FC 2C BA DC [00:23:07]CommunicateWithHost err = 0 [00:23:07]CheckOFDResponse [00:23:07]1017 (14) - 77093643461234 [00:23:07]1041 (16) - 0000000000874899 [00:23:07]1040 (4) - 162978 [00:23:07]1012 (4) - 14.07.2024 18:24 [00:23:07]1206 (1) - 0 [00:23:07]OFD Sender: Remove packet 162978 [00:23:07]ProducePacketName [00:23:07]name=ofd_packets/00162978 [00:23:07]NVStorageDeleteData [00:23:07]Write to MH i2c: 01 00 00 4E 4A 98 [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: 01 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: 01 07 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: 01 07 00 4E 4A 00 00 00 00 00 D7 0C 82 [00:23:07]RasterBufferAndPrint [00:23:07]line [00:23:07]line [00:23:07]line [00:23:07]line [00:23:07]line [00:23:07]written 0, free lines is 3295 [00:23:07]MH_Cut [00:23:07]Write to MH i2c: D1 01 00 55 4A 01 71 [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: D1 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: D1 01 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: D1 01 00 55 4A 00 70 [00:23:07]Write to MH i2c: 01 00 00 56 4A A0 [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:07]OFD Sender: No OFD packet to send [00:23:08]*** Cut start [00:23:08]*** Purtial cut [00:23:08]*** Stage 1: CUTSNS_PIN = 1 [00:23:08]Read from MH i2c: 01 [00:23:08]MH_I2C_Read... [00:23:08]*** Stop cut motor [00:23:08]*** Cut end [00:23:08]Read from MH i2c: 01 07 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: 01 07 00 56 4A 00 00 00 00 00 FF 0F B5 [00:23:08]process_action close_receipt done [00:23:08]requested_data is exist [00:23:08]produce_requested_data [00:23:08]requested_item fm.sn is exist - process it [00:23:08]wFMCommunicate request_size=4 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 11 00 00 [00:23:08]Write to MH i2c: E2 08 00 57 4A 80 11 00 00 00 00 00 00 1B [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 17 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 17 00 57 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7B [00:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:23:08]wFMCommunicate OK [00:23:08]requested_item fd.num is exist - process it [00:23:08]SAM_PROTO_GetFieldsCounters [00:23:08]wFMCommunicate request_size=4 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 13 00 00 [00:23:08]Write to MH i2c: E2 08 00 58 4A 80 13 00 00 00 00 00 00 1E [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 62 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 62 00 58 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A2 7C 02 00 0E 04 04 00 D0 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 48 [00:23:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A2 7C 02 00 0E 04 04 00 D0 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:23:08]wFMCommunicate OK [00:23:08]SAM_PROTO_GetFieldsCounters done [00:23:08]requested_item shift.num is exist - process it [00:23:08]requested_item shift.opened is exist - process it [00:23:08]req_shift_opened [00:23:08]FM_GetShiftState [00:23:08]SAM_PROTO_GetShiftState [00:23:08]wFMCommunicate request_size=4 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 13 01 00 [00:23:08]Write to MH i2c: E2 08 00 59 4A 80 13 01 00 00 00 00 00 20 [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 0E 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 0E 00 59 4A 00 09 00 01 45 67 94 66 00 00 00 00 90 00 D2 [00:23:08]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [00:23:08]wFMCommunicate OK [00:23:08]SAM_PROTO_GetShiftState done [00:23:08]FM_GetShiftState done [00:23:08]req_shift_opened done [00:23:08]requested_item shift.open_date is exist - process it [00:23:08]req_shift_open_date [00:23:08]req_shift_open_date done [00:23:08]produce_requested_data done [00:23:08]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162978,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [00:23:08]process_action_free close_receipt [00:23:08]json_value_free [00:23:08]json_value_free done [00:23:08]process_json_proto returns [00:23:08]Send response to host [00:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162978,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [00:23:08]free response buf [00:23:08]execute_script done [00:23:08]execute_script returns [00:23:08]free content buf [00:23:08]Sock 9.Close socket [00:23:08]Sock 9.Thread stoped [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]accept exits with 10 [00:24:12]New connection [00:24:12]New thread 3066735972 created [00:24:12]Thread 3066879332 joined [00:24:12]Waiting for new connection... [00:24:12] Sock 10.Parse request [00:24:12]Sock 10.Check first char [00:24:12]Sock 10.First char is OK [00:24:12]request: POST /json_proto HTTP/1.0 [00:24:12]Method: POST [00:24:12]URL: /json_proto [00:24:12]Method is POST - this is cgi request [00:24:12]url: /json_proto [00:24:12]query_string will be loaded in cgi processing [00:24:12]execute_cgi json_proto POST (null) [00:24:12]execute_cgi path=json_proto method=POST [00:24:12]POST find Content-Length [00:24:12]Host: 172.17.39.67:8080 [00:24:12]Content-Length: 641 [00:24:12]Content-Type: application/json [00:24:12] [00:24:12]POST finish read [00:24:12]Found Content-Length = 641 [00:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:12]execute_script... [00:24: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)1319595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:12]POST & json_proto [00:24:12]process_json_proto [00:24:12]json parsed OK: [00:24:12]protocol is kg_v1.0 [00:24:12]action value=close_receipt [00:24:12]process_action close_receipt [00:24:12]cmd_close_receipt [00:24:12]MH_GetDate [00:24:12]Write to MH i2c: F0 00 00 5A 4A 93 [00:24:12]Write i2c OK [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: F0 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: F0 09 00 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: F0 09 00 5A 4A 00 30 6C 94 66 B6 85 93 66 66 [00:24:12]GetLastDocTimeStamp 1721002988 [00:24:12]current date 1721003056 [00:24:12]FM_GetShiftState [00:24:12]SAM_PROTO_GetShiftState [00:24:12]wFMCommunicate request_size=4 [00:24:12]MH_SAM_APDU [00:24:12]CAPDU: 80 13 01 00 [00:24:12]Write to MH i2c: E2 08 00 5B 4A 80 13 01 00 00 00 00 00 22 [00:24:12]Write i2c OK [00:24:12]MH_I2C_Read... [00:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:12]Read from MH i2c: E2 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 0E 00 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 0E 00 5B 4A 00 09 00 01 45 67 94 66 00 00 00 00 90 00 D4 [00:24:12]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [00:24:12]wFMCommunicate OK [00:24:12]SAM_PROTO_GetShiftState done [00:24:12]FM_GetShiftState done [00:24:12]opened in 1721001797 [00:24:12]opened+sec_in_day 1721088197 [00:24:12]quantity*price = 66300 [00:24:12]sum+1 = 66301 [00:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 663.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 3 15.07.2024 00:24 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162979 ФПД: 32135712133584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T002416&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162979&fm=32135712133584&tin=02508201610067®Number=0000000000090858&sum=66300 [00:24:13]StoreToDocumentArchive [00:24:13]shift 464 fd 162979 [00:24:13]save to /storage/0464/doc_00162979 [00:24:13]save last doc name /storage/0464/doc_00162979 to /storage/kkm_last_doc_name [00:24:13]save OK [00:24:13]Clear old archive folders... [00:24:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:24:13]tlvbuf is 0128B7C0 [00:24:13]SAM_PROTO_ClearQueue [00:24:13]wFMCommunicate request_size=4 [00:24:13]MH_SAM_APDU [00:24:13]CAPDU: 80 09 00 00 [00:24:13]Write to MH i2c: E2 08 00 68 4A 80 09 00 00 00 00 00 00 24 [00:24:13]Write i2c OK [00:24:13]MH_I2C_Read... [00:24:13]Read from MH i2c: E2 [00:24:13]MH_I2C_Read... [00:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:24:13]Read from MH i2c: E2 03 00 [00:24:13]MH_I2C_Read... [00:24:13]Read from MH i2c: E2 03 00 68 4A 00 90 00 26 [00:24:13]RAPDU: 90 00 [00:24:13]wFMCommunicate OK [00:24:13]SAM_PROTO_ClearQueue done [00:24:13]KKMCreateOFDPacket [00:24:13]OFDProtocolAddRootSTLVToBuf [00:24:13]FM_MakeSignedData [00:24:13]FM_MakeSignedData [00:24:13]SAM_PROTO_SignData [00:24:13]wFMCommunicate request_size=4 [00:24:13]MH_SAM_APDU [00:24:13]CAPDU: 80 0D 01 02 [00:24:13]Write to MH i2c: E2 08 00 69 4A 80 0D 01 02 00 00 00 00 2C [00:24:13]Write i2c OK [00:24:13]MH_I2C_Read... [00:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:24:13]Read from MH i2c: E2 [00:24:13]MH_I2C_Read... [00:24:13]Read from MH i2c: E2 03 00 [00:24:13]MH_I2C_Read... [00:24:13]Read from MH i2c: E2 03 00 69 4A 00 90 00 27 [00:24:13]RAPDU: 90 00 [00:24:13]wFMCommunicate OK [00:24:13]wFMCommunicate request_size=255 [00:24:13]MH_SAM_APDU [00:24:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 30 6C 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7C 02 00 35 04 06 00 1D [00:24:13]Write to MH i2c: E2 02 01 6A 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 30 6C 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7C 02 00 35 04 06 00 1D 00 00 0C [00:24:13]Write i2c OK [00:24:13]MH_I2C_Read... [00:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:14]Read from MH i2c: E2 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 03 00 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 03 00 6A 4A 00 90 00 28 [00:24:14]RAPDU: 90 00 [00:24:14]wFMCommunicate OK [00:24:14]wFMCommunicate request_size=10 [00:24:14]MH_SAM_APDU [00:24:14]CAPDU: 80 0D 02 02 05 3A 2D B4 D1 D0 [00:24:14]Write to MH i2c: E2 0D 00 6B 4A 80 0D 02 02 05 00 3A 2D B4 D1 D0 00 00 F5 [00:24:14]Write i2c OK [00:24:14]MH_I2C_Read... [00:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:14]Read from MH i2c: E2 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 03 00 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 03 00 6B 4A 00 90 00 29 [00:24:14]RAPDU: 90 00 [00:24:14]wFMCommunicate OK [00:24:14]wFMCommunicate request_size=4 [00:24:14]MH_SAM_APDU [00:24:14]CAPDU: 80 0D 03 02 [00:24:14]Write to MH i2c: E2 08 00 6C 4A 80 0D 03 02 00 00 00 00 31 [00:24:14]Write i2c OK [00:24:14]MH_I2C_Read... [00:24:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:24:14]Read from MH i2c: E2 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 0B 00 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 0B 00 6C 4A 00 C7 B4 C7 89 B7 B4 43 C9 90 00 74 [00:24:14]RAPDU: C7 B4 C7 89 B7 B4 43 C9 90 00 [00:24:14]wFMCommunicate OK [00:24:14]SAM_PROTO_SignData done [00:24:14]FM_MakeSignedData done [00:24:14]CreateOFDProtocolMessage [00:24:14]wFMCommunicate request_size=4 [00:24:14]MH_SAM_APDU [00:24:14]CAPDU: 80 11 00 00 [00:24:14]Write to MH i2c: E2 08 00 6D 4A 80 11 00 00 00 00 00 00 31 [00:24:14]Write i2c OK [00:24:14]MH_I2C_Read... [00:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:14]Read from MH i2c: E2 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 17 00 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 17 00 6D 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 91 [00:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:24:14]wFMCommunicate OK [00:24:14]CreateOFDProtocolMessage done [00:24:14]OFDSenderStorePacket 162979 [00:24:14]StoreOFDPacket docnum=162979 [00:24:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 96 ED 07 01 2C 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 30 6C 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7C 02 00 35 04 06 00 1D 3A 2D B4 D1 D0 C7 B4 C7 89 B7 B4 43 C9 [00:24:14]CheckFolder [00:24:14]dirname=/storage/ofd_packets [00:24:14]CheckFolder done [00:24:14]ProducePacketName [00:24:14]name=ofd_packets/00162979 [00:24:14]NVStorageSaveData ofd_packets/00162979 [00:24:14]File name is /storage/ofd_packets/00162979 [00:24:14]Write 301 bytes [00:24:14]NVStorageSaveData done [00:24:14]OFDSenderStorePacket done [00:24:14]KKMCreateOFDPacket done [00:24:14]NVStorageSaveData kkm_last_timestamp [00:24:14]File name is /storage/kkm_last_timestamp [00:24:14]Write 4 bytes [00:24:14]NVStorageSaveData done [00:24:14]ExternCall_PrintAddStr [00:24:14]wPrintStart [00:24:14]Write to MH i2c: 01 00 00 6E 4A B8 [00:24:14]Write i2c OK [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: 01 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: 01 07 00 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: 01 07 00 6E 4A 00 00 00 00 00 FF 0F CD [00:24:14]RasterBufferAndPrint [00:24:14]line Счет N : (1)1319595 [00:24:14]line ИНН: 02508201610067 [00:24:14]line Контрольно-Кассовый Чек [00:24:14]line ПРОДАЖА [00:24:14]line ТРК (МРК, ГНК) : 43 [00:24:14]line Товар: 2710124130 [00:24:14]line Аи-92-К-5 [00:24:14]line 10.000 * 66.30 [00:24:14]line = 663.00 [00:24:14]line НДС 12% НСП 1% [00:24:14]line > о реализуемом товаре [00:24:14]line ИТОГО: 663.00 [00:24:14]line НСП 1% : 5.87 [00:24:14]line НДС 12% : 70.41 [00:24:14]line Наличными: 663.00 [00:24:14]line Безнал.: 0.00 [00:24:14]line Место: АЗС № 140 "Партнер Нефть" [00:24:14]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:24:14]line СНО: Общий режим [00:24:14]line Чек 3 15.07.2024 00:24 [00:24:14]line Смена: 464 ФФД: 1.0 [00:24:14]line ЗНМ: 0300000129 [00:24:14]line РНМ: 0000000000090858 [00:24:14]line Версия ККМ: 001 [00:24:14]line ФМ: 0000000000874899 [00:24:14]line ФД: 162979 [00:24:14]line ФПД: 32135712133584 [00:24:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T002416&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162979&fm=32135712133584&tin=02508201610067®Number=0000000000090858&sum=66300 [00:24:14]OFD Sender: Processing packet 162979 [packets to send 106, broken 105] [00:24:14]ProducePacketName [00:24:14]name=ofd_packets/00162979 [00:24:14]OFD Sender: To server: pG, [00:24:14]CommunicateWithHost lk.salyk.kg:30040 [00:24:14]ConnectInit lk.salyk.kg [00:24:14]written 0, free lines is 4095 [00:24:14]Connected sock=9 [00:24:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 96 ED 07 01 2C 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 30 6C 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7C 02 00 35 04 06 00 1D 3A 2D B4 D1 D0 C7 B4 C7 89 B7 B4 43 C9 [00:24:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C2 26 47 00 5E DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7C 02 00 F4 03 04 00 3C 18 94 66 B6 04 01 00 00 AF F3 54 80 65 AE A7 0C [00:24:14]CommunicateWithHost err = 0 [00:24:14]CheckOFDResponse [00:24:14]1017 (14) - 77093643461234 [00:24:14]1041 (16) - 0000000000874899 [00:24:14]1040 (4) - 162979 [00:24:14]1012 (4) - 14.07.2024 18:26 [00:24:14]1206 (1) - 0 [00:24:14]OFD Sender: Remove packet 162979 [00:24:14]ProducePacketName [00:24:14]name=ofd_packets/00162979 [00:24:14]NVStorageDeleteData [00:24:15]Write to MH i2c: 01 00 00 96 4A E0 [00:24:15]Write i2c OK [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: 01 [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: 01 07 00 [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: 01 07 00 96 4A 00 00 00 00 00 09 0D FD [00:24:15]RasterBufferAndPrint [00:24:15]line [00:24:15]line [00:24:15]line [00:24:15]line [00:24:15]line [00:24:15]written 0, free lines is 3343 [00:24:15]MH_Cut [00:24:15]Write to MH i2c: D1 01 00 9D 4A 01 B9 [00:24:15]Write i2c OK [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: D1 [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: D1 01 00 [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: D1 01 00 9D 4A 00 B8 [00:24:15]Write to MH i2c: 01 00 00 9E 4A E8 [00:24:15]Write i2c OK [00:24:15]MH_I2C_Read... [00:24:15]OFD Sender: No OFD packet to send [00:24:15]*** Cut start [00:24:15]*** Purtial cut [00:24:15]*** CUTSNS_PIN = 0 [00:24:15]*** Stage 1: CUTSNS_PIN = 1 [00:24:17]Read from MH i2c: 01 [00:24:17]MH_I2C_Read... [00:24:17]*** Stop cut motor [00:24:17]*** Cut end [00:24:17]Read from MH i2c: 01 07 00 [00:24:17]MH_I2C_Read... [00:24:17]Read from MH i2c: 01 07 00 9E 4A 00 00 00 00 00 FF 0F FD [00:24:17]process_action close_receipt done [00:24:17]requested_data is exist [00:24:17]produce_requested_data [00:24:17]requested_item fm.sn is exist - process it [00:24:17]wFMCommunicate request_size=4 [00:24:17]MH_SAM_APDU [00:24:17]CAPDU: 80 11 00 00 [00:24:17]Write to MH i2c: E2 08 00 9F 4A 80 11 00 00 00 00 00 00 63 [00:24:17]Write i2c OK [00:24:17]MH_I2C_Read... [00:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:17]Read from MH i2c: E2 [00:24:17]MH_I2C_Read... [00:24:17]Read from MH i2c: E2 17 00 [00:24:17]MH_I2C_Read... [00:24:17]Read from MH i2c: E2 17 00 9F 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C3 [00:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:24:17]wFMCommunicate OK [00:24:17]requested_item fd.num is exist - process it [00:24:17]SAM_PROTO_GetFieldsCounters [00:24:17]wFMCommunicate request_size=4 [00:24:17]MH_SAM_APDU [00:24:17]CAPDU: 80 13 00 00 [00:24:17]Write to MH i2c: E2 08 00 A0 4A 80 13 00 00 00 00 00 00 66 [00:24:17]Write i2c OK [00:24:17]MH_I2C_Read... [00:24:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:18]Read from MH i2c: E2 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 62 00 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 62 00 A0 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A3 7C 02 00 0E 04 04 00 D0 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [00: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A3 7C 02 00 0E 04 04 00 D0 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:18]wFMCommunicate OK [00:24:18]SAM_PROTO_GetFieldsCounters done [00:24:18]requested_item shift.num is exist - process it [00:24:18]requested_item shift.opened is exist - process it [00:24:18]req_shift_opened [00:24:18]FM_GetShiftState [00:24:18]SAM_PROTO_GetShiftState [00:24:18]wFMCommunicate request_size=4 [00:24:18]MH_SAM_APDU [00:24:18]CAPDU: 80 13 01 00 [00:24:18]Write to MH i2c: E2 08 00 A1 4A 80 13 01 00 00 00 00 00 68 [00:24:18]Write i2c OK [00:24:18]MH_I2C_Read... [00:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:18]Read from MH i2c: E2 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 0E 00 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 0E 00 A1 4A 00 09 00 01 45 67 94 66 00 00 00 00 90 00 1A [00:24:18]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [00:24:18]wFMCommunicate OK [00:24:18]SAM_PROTO_GetShiftState done [00:24:18]FM_GetShiftState done [00:24:18]req_shift_opened done [00:24:18]requested_item shift.open_date is exist - process it [00:24:18]req_shift_open_date [00:24:18]req_shift_open_date done [00:24:18]produce_requested_data done [00:24:18]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162979,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [00:24:18]process_action_free close_receipt [00:24:18]json_value_free [00:24:18]json_value_free done [00:24:18]process_json_proto returns [00:24:18]Send response to host [00:24:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162979,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [00:24:18]free response buf [00:24:18]execute_script done [00:24:18]execute_script returns [00:24:18]free content buf [00:24:18]Sock 10.Close socket [00:24:18]Sock 10.Thread stoped [00:24:20]OFD Sender: No OFD packet to send [00:24:25]OFD Sender: No OFD packet to send [00:24:30]OFD Sender: No OFD packet to send [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:37]accept exits with 7 [00:29:37]New connection [00:29:37]New thread 3066879332 created [00:29:37]Thread 3066735972 joined [00:29:37]Waiting for new connection... [00:29:37] Sock 7.Parse request [00:29:37]Sock 7.Check first char [00:29:37]Sock 7.First char is OK [00:29:37]request: POST /json_proto HTTP/1.0 [00:29:37]Method: POST [00:29:37]URL: /json_proto [00:29:37]Method is POST - this is cgi request [00:29:37]url: /json_proto [00:29:37]query_string will be loaded in cgi processing [00:29:37]execute_cgi json_proto POST (null) [00:29:37]execute_cgi path=json_proto method=POST [00:29:37]POST find Content-Length [00:29:37]Host: 172.17.39.67:8080 [00:29:37]Content-Length: 678 [00:29:37]Content-Type: application/json [00:29:37] [00:29:37]POST finish read [00:29:37]Found Content-Length = 678 [00:29:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.130, "sum" : 340.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:37]execute_script... [00:29: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)1319596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.130, "sum" : 340.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:37]POST & json_proto [00:29:37]process_json_proto [00:29:37]json parsed OK: [00:29:37]protocol is kg_v1.0 [00:29:37]action value=close_receipt [00:29:37]process_action close_receipt [00:29:37]cmd_close_receipt [00:29:37]MH_GetDate [00:29:37]Write to MH i2c: F0 00 00 A2 4A DB [00:29:37]Write i2c OK [00:29:37]MH_I2C_Read... [00:29:37]Read from MH i2c: F0 [00:29:37]MH_I2C_Read... [00:29:37]Read from MH i2c: F0 09 00 [00:29:37]MH_I2C_Read... [00:29:37]Read from MH i2c: F0 09 00 A2 4A 00 75 6D 94 66 B6 85 93 66 F4 [00:29:37]GetLastDocTimeStamp 1721003056 [00:29:37]current date 1721003381 [00:29:37]FM_GetShiftState [00:29:37]SAM_PROTO_GetShiftState [00:29:37]wFMCommunicate request_size=4 [00:29:37]MH_SAM_APDU [00:29:37]CAPDU: 80 13 01 00 [00:29:37]Write to MH i2c: E2 08 00 A3 4A 80 13 01 00 00 00 00 00 6A [00:29:37]Write i2c OK [00:29:37]MH_I2C_Read... [00:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:37]Read from MH i2c: E2 [00:29:37]MH_I2C_Read... [00:29:37]Read from MH i2c: E2 0E 00 [00:29:37]MH_I2C_Read... [00:29:37]Read from MH i2c: E2 0E 00 A3 4A 00 09 00 01 45 67 94 66 00 00 00 00 90 00 1C [00:29:37]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [00:29:37]wFMCommunicate OK [00:29:37]SAM_PROTO_GetShiftState done [00:29:37]FM_GetShiftState done [00:29:37]opened in 1721001797 [00:29:37]opened+sec_in_day 1721088197 [00:29:37]quantity*price = 34011 [00:29:37]sum+1 = 34013 [00:29:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.12 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 4 15.07.2024 00:29 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162980 ФПД: 46548618610021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T002941&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162980&fm=46548618610021&tin=02508201610067®Number=0000000000090858&sum=34000 [00:29:38]StoreToDocumentArchive [00:29:38]shift 464 fd 162980 [00:29:38]save to /storage/0464/doc_00162980 [00:29:38]save last doc name /storage/0464/doc_00162980 to /storage/kkm_last_doc_name [00:29:38]save OK [00:29:38]Clear old archive folders... [00:29:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:29:38]tlvbuf is 0123BAC0 [00:29:38]SAM_PROTO_ClearQueue [00:29:38]wFMCommunicate request_size=4 [00:29:38]MH_SAM_APDU [00:29:38]CAPDU: 80 09 00 00 [00:29:38]Write to MH i2c: E2 08 00 B0 4A 80 09 00 00 00 00 00 00 6C [00:29:38]Write i2c OK [00:29:38]MH_I2C_Read... [00:29:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:29:38]Read from MH i2c: E2 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 03 00 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 03 00 B0 4A 00 90 00 6E [00:29:38]RAPDU: 90 00 [00:29:38]wFMCommunicate OK [00:29:38]SAM_PROTO_ClearQueue done [00:29:38]KKMCreateOFDPacket [00:29:38]OFDProtocolAddRootSTLVToBuf [00:29:38]FM_MakeSignedData [00:29:38]FM_MakeSignedData [00:29:38]SAM_PROTO_SignData [00:29:38]wFMCommunicate request_size=4 [00:29:38]MH_SAM_APDU [00:29:38]CAPDU: 80 0D 01 02 [00:29:38]Write to MH i2c: E2 08 00 B1 4A 80 0D 01 02 00 00 00 00 74 [00:29:38]Write i2c OK [00:29:38]MH_I2C_Read... [00:29:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:29:38]Read from MH i2c: E2 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 03 00 [00:29:38]MH_I2C_Read... [00:29:38]Read from MH i2c: E2 03 00 B1 4A 00 90 00 6F [00:29:38]RAPDU: 90 00 [00:29:38]wFMCommunicate OK [00:29:38]wFMCommunicate request_size=255 [00:29:38]MH_SAM_APDU [00:29: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 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 D0 84 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 75 6D 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7C 02 00 35 04 06 00 2A [00:29:38]Write to MH i2c: E2 02 01 B2 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 D0 84 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 75 6D 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7C 02 00 35 04 06 00 2A 00 00 0A [00:29:38]Write i2c OK [00:29:38]MH_I2C_Read... [00:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:39]Read from MH i2c: E2 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 03 00 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 03 00 B2 4A 00 90 00 70 [00:29:39]RAPDU: 90 00 [00:29:39]wFMCommunicate OK [00:29:39]wFMCommunicate request_size=10 [00:29:39]MH_SAM_APDU [00:29:39]CAPDU: 80 0D 02 02 05 55 F1 E0 85 65 [00:29:39]Write to MH i2c: E2 0D 00 B3 4A 80 0D 02 02 05 00 55 F1 E0 85 65 00 00 91 [00:29:39]Write i2c OK [00:29:39]MH_I2C_Read... [00:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:39]Read from MH i2c: E2 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 03 00 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 03 00 B3 4A 00 90 00 71 [00:29:39]RAPDU: 90 00 [00:29:39]wFMCommunicate OK [00:29:39]wFMCommunicate request_size=4 [00:29:39]MH_SAM_APDU [00:29:39]CAPDU: 80 0D 03 02 [00:29:39]Write to MH i2c: E2 08 00 B4 4A 80 0D 03 02 00 00 00 00 79 [00:29:39]Write i2c OK [00:29:39]MH_I2C_Read... [00:29:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:29:39]Read from MH i2c: E2 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 0B 00 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 0B 00 B4 4A 00 EB 61 8B 6E 63 C9 F2 28 90 00 05 [00:29:39]RAPDU: EB 61 8B 6E 63 C9 F2 28 90 00 [00:29:39]wFMCommunicate OK [00:29:39]SAM_PROTO_SignData done [00:29:39]FM_MakeSignedData done [00:29:39]CreateOFDProtocolMessage [00:29:39]wFMCommunicate request_size=4 [00:29:39]MH_SAM_APDU [00:29:39]CAPDU: 80 11 00 00 [00:29:39]Write to MH i2c: E2 08 00 B5 4A 80 11 00 00 00 00 00 00 79 [00:29:39]Write i2c OK [00:29:39]MH_I2C_Read... [00:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:39]Read from MH i2c: E2 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 17 00 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: E2 17 00 B5 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D9 [00:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:29:39]wFMCommunicate OK [00:29:39]CreateOFDProtocolMessage done [00:29:39]OFDSenderStorePacket 162980 [00:29:39]StoreOFDPacket docnum=162980 [00:29:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 90 FA 07 01 36 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 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 D0 84 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 75 6D 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7C 02 00 35 04 06 00 2A 55 F1 E0 85 65 EB 61 8B 6E 63 C9 F2 28 [00:29:39]CheckFolder [00:29:39]dirname=/storage/ofd_packets [00:29:39]CheckFolder done [00:29:39]ProducePacketName [00:29:39]name=ofd_packets/00162980 [00:29:39]NVStorageSaveData ofd_packets/00162980 [00:29:39]File name is /storage/ofd_packets/00162980 [00:29:39]Write 301 bytes [00:29:39]NVStorageSaveData done [00:29:39]OFDSenderStorePacket done [00:29:39]KKMCreateOFDPacket done [00:29:39]NVStorageSaveData kkm_last_timestamp [00:29:39]File name is /storage/kkm_last_timestamp [00:29:39]Write 4 bytes [00:29:39]NVStorageSaveData done [00:29:39]ExternCall_PrintAddStr [00:29:39]wPrintStart [00:29:39]Write to MH i2c: 01 00 00 B6 4A 00 [00:29:39]Write i2c OK [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: 01 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: 01 07 00 [00:29:39]MH_I2C_Read... [00:29:39]Read from MH i2c: 01 07 00 B6 4A 00 00 00 00 00 FF 0F 15 [00:29:39]RasterBufferAndPrint [00:29:39]line Счет N : (1)1319596 [00:29:39]line ИНН: 02508201610067 [00:29:39]line Контрольно-Кассовый Чек [00:29:39]line ПРОДАЖА [00:29:39]line ТРК (МРК, ГНК) : 43 [00:29:39]line Товар: 2710124130 [00:29:39]line Аи-92-К-5 [00:29:39]line 5.130 * 66.30 [00:29:39]line = 340.12 [00:29:39]line НДС 12% НСП 1% [00:29:39]line > о реализуемом товаре [00:29:39]line ОКРУГЛЕНИЕ: -0.12 [00:29:39]line ИТОГО: 340.00 [00:29:39]line Внесено: 340.00 [00:29:39]line СДАЧА: 0.00 [00:29:39]line НСП 1% : 3.01 [00:29:39]line НДС 12% : 36.12 [00:29:39]line Наличными: 340.00 [00:29:39]line Безнал.: 0.00 [00:29:39]line Место: АЗС № 140 "Партнер Нефть" [00:29:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:29:39]line СНО: Общий режим [00:29:39]line Чек 4 15.07.2024 00:29 [00:29:39]line Смена: 464 ФФД: 1.0 [00:29:39]line ЗНМ: 0300000129 [00:29:39]line РНМ: 0000000000090858 [00:29:39]line Версия ККМ: 001 [00:29:39]line ФМ: 0000000000874899 [00:29:39]line ФД: 162980 [00:29:39]line ФПД: 46548618610021 [00:29:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T002941&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162980&fm=46548618610021&tin=02508201610067®Number=0000000000090858&sum=34000 [00:29:39]OFD Sender: Processing packet 162980 [packets to send 106, broken 105] [00:29:39]ProducePacketName [00:29:39]name=ofd_packets/00162980 [00:29:39]OFD Sender: To server: pG, [00:29:39]CommunicateWithHost lk.salyk.kg:30040 [00:29:39]ConnectInit lk.salyk.kg [00:29:39]written 0, free lines is 4095 [00:29:39]Connected sock=10 [00:29:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 90 FA 07 01 36 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 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 D0 84 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 75 6D 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7C 02 00 35 04 06 00 2A 55 F1 E0 85 65 EB 61 8B 6E 63 C9 F2 28 [00:29:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4F B6 47 00 E4 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7C 02 00 F4 03 04 00 81 19 94 66 B6 04 01 00 00 0F 2A 79 EA 45 62 E8 DB [00:29:40]CommunicateWithHost err = 0 [00:29:40]CheckOFDResponse [00:29:40]1017 (14) - 77093643461234 [00:29:40]1041 (16) - 0000000000874899 [00:29:40]1040 (4) - 162980 [00:29:40]1012 (4) - 14.07.2024 18:31 [00:29:40]1206 (1) - 0 [00:29:40]OFD Sender: Remove packet 162980 [00:29:40]ProducePacketName [00:29:40]name=ofd_packets/00162980 [00:29:40]NVStorageDeleteData [00:29:40]Write to MH i2c: 01 00 00 E1 4A 2B [00:29:40]Write i2c OK [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: 01 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: 01 07 00 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: 01 07 00 E1 4A 00 00 00 00 00 DC 0C 1A [00:29:40]RasterBufferAndPrint [00:29:40]line [00:29:40]line [00:29:40]line [00:29:40]line [00:29:40]line [00:29:40]written 0, free lines is 3297 [00:29:40]MH_Cut [00:29:40]Write to MH i2c: D1 01 00 E8 4A 01 04 [00:29:40]Write i2c OK [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: D1 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: D1 01 00 [00:29:40]MH_I2C_Read... [00:29:40]Read from MH i2c: D1 01 00 E8 4A 00 03 [00:29:40]Write to MH i2c: 01 00 00 E9 4A 33 [00:29:40]Write i2c OK [00:29:40]MH_I2C_Read... [00:29:40]OFD Sender: No OFD packet to send [00:29:40]*** Cut start [00:29:40]*** Purtial cut [00:29:40]*** Stage 1: CUTSNS_PIN = 1 [00:29:41]Read from MH i2c: 01 [00:29:41]MH_I2C_Read... [00:29:41]*** Stop cut motor [00:29:41]*** Cut end [00:29:41]Read from MH i2c: 01 07 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: 01 07 00 E9 4A 00 00 00 00 00 FF 0F 48 [00:29:41]process_action close_receipt done [00:29:41]requested_data is exist [00:29:41]produce_requested_data [00:29:41]requested_item fm.sn is exist - process it [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 11 00 00 [00:29:41]Write to MH i2c: E2 08 00 EA 4A 80 11 00 00 00 00 00 00 AE [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 17 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 17 00 EA 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0E [00:29:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:29:41]wFMCommunicate OK [00:29:41]requested_item fd.num is exist - process it [00:29:41]SAM_PROTO_GetFieldsCounters [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 13 00 00 [00:29:41]Write to MH i2c: E2 08 00 EB 4A 80 13 00 00 00 00 00 00 B1 [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 62 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 62 00 EB 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A4 7C 02 00 0E 04 04 00 D0 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 E3 [00:29:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A4 7C 02 00 0E 04 04 00 D0 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:29:41]wFMCommunicate OK [00:29:41]SAM_PROTO_GetFieldsCounters done [00:29:41]requested_item shift.num is exist - process it [00:29:41]requested_item shift.opened is exist - process it [00:29:41]req_shift_opened [00:29:41]FM_GetShiftState [00:29:41]SAM_PROTO_GetShiftState [00:29:41]wFMCommunicate request_size=4 [00:29:41]MH_SAM_APDU [00:29:41]CAPDU: 80 13 01 00 [00:29:41]Write to MH i2c: E2 08 00 EC 4A 80 13 01 00 00 00 00 00 B3 [00:29:41]Write i2c OK [00:29:41]MH_I2C_Read... [00:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:41]Read from MH i2c: E2 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 0E 00 [00:29:41]MH_I2C_Read... [00:29:41]Read from MH i2c: E2 0E 00 EC 4A 00 09 00 01 45 67 94 66 00 00 00 00 90 00 65 [00:29:41]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [00:29:41]wFMCommunicate OK [00:29:41]SAM_PROTO_GetShiftState done [00:29:41]FM_GetShiftState done [00:29:41]req_shift_opened done [00:29:41]requested_item shift.open_date is exist - process it [00:29:41]req_shift_open_date [00:29:41]req_shift_open_date done [00:29:41]produce_requested_data done [00:29:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162980,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [00:29:41]process_action_free close_receipt [00:29:41]json_value_free [00:29:41]json_value_free done [00:29:41]process_json_proto returns [00:29:41]Send response to host [00:29:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162980,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [00:29:41]free response buf [00:29:41]execute_script done [00:29:41]execute_script returns [00:29:41]free content buf [00:29:41]Sock 7.Close socket [00:29:41]Sock 7.Thread stoped [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]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:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:14]accept exits with 9 [00:43:14]New connection [00:43:14]New thread 3066735972 created [00:43:14]Thread 3066879332 joined [00:43:14]Waiting for new connection... [00:43:14] Sock 9.Parse request [00:43:14]Sock 9.Check first char [00:43:14]Sock 9.First char is OK [00:43:14]request: POST /json_proto HTTP/1.0 [00:43:14]Method: POST [00:43:14]URL: /json_proto [00:43:14]Method is POST - this is cgi request [00:43:14]url: /json_proto [00:43:14]query_string will be loaded in cgi processing [00:43:14]execute_cgi json_proto POST (null) [00:43:14]execute_cgi path=json_proto method=POST [00:43:14]POST find Content-Length [00:43:14]Host: 172.17.39.67:8080 [00:43:14]Content-Length: 818 [00:43:14]Content-Type: application/json [00:43:14] [00:43:14]POST finish read [00:43:14]Found Content-Length = 818 [00:43:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 12.060, "sum" : 799.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 799.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:14]execute_script... [00:43:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 12.060, "sum" : 799.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 799.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:14]POST & json_proto [00:43:14]process_json_proto [00:43:14]json parsed OK: [00:43:14]protocol is kg_v1.0 [00:43:14]action value=close_receipt [00:43:14]process_action close_receipt [00:43:14]cmd_close_receipt [00:43:14]MH_GetDate [00:43:14]Write to MH i2c: F0 00 00 ED 4A 26 [00:43:14]Write i2c OK [00:43:14]MH_I2C_Read... [00:43:14]Read from MH i2c: F0 [00:43:14]MH_I2C_Read... [00:43:14]Read from MH i2c: F0 09 00 [00:43:14]MH_I2C_Read... [00:43:14]Read from MH i2c: F0 09 00 ED 4A 00 A6 70 94 66 B6 85 93 66 73 [00:43:14]GetLastDocTimeStamp 1721003381 [00:43:14]current date 1721004198 [00:43:14]FM_GetShiftState [00:43:14]SAM_PROTO_GetShiftState [00:43:14]wFMCommunicate request_size=4 [00:43:14]MH_SAM_APDU [00:43:14]CAPDU: 80 13 01 00 [00:43:14]Write to MH i2c: E2 08 00 EE 4A 80 13 01 00 00 00 00 00 B5 [00:43:14]Write i2c OK [00:43:14]MH_I2C_Read... [00:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:14]Read from MH i2c: E2 [00:43:14]MH_I2C_Read... [00:43:14]Read from MH i2c: E2 0E 00 [00:43:14]MH_I2C_Read... [00:43:14]Read from MH i2c: E2 0E 00 EE 4A 00 09 00 01 45 67 94 66 00 00 00 00 90 00 67 [00:43:14]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [00:43:14]wFMCommunicate OK [00:43:14]SAM_PROTO_GetShiftState done [00:43:14]FM_GetShiftState done [00:43:14]opened in 1721001797 [00:43:14]opened+sec_in_day 1721088197 [00:43:14]quantity*price = 79957 [00:43:14]sum+1 = 79959 [00:43:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 799.58 НСП 1% : 7.08 НДС 12% : 84.91 Наличными: 0.00 Безнал.: 799.58 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 5 15.07.2024 00:43 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162981 ФПД: 116170422853893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T004318&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162981&fm=116170422853893&tin=02508201610067®Number=0000000000090858&sum=79958 [00:43:16]StoreToDocumentArchive [00:43:16]shift 464 fd 162981 [00:43:16]save to /storage/0464/doc_00162981 [00:43:16]save last doc name /storage/0464/doc_00162981 to /storage/kkm_last_doc_name [00:43:16]save OK [00:43:16]Clear old archive folders... [00:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:43:16]tlvbuf is 012FBA20 [00:43:16]SAM_PROTO_ClearQueue [00:43:16]wFMCommunicate request_size=4 [00:43:16]MH_SAM_APDU [00:43:16]CAPDU: 80 09 00 00 [00:43:16]Write to MH i2c: E2 08 00 FB 4A 80 09 00 00 00 00 00 00 B7 [00:43:16]Write i2c OK [00:43:16]MH_I2C_Read... [00:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:16]Read from MH i2c: E2 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: E2 03 00 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: E2 03 00 FB 4A 00 90 00 B9 [00:43:16]RAPDU: 90 00 [00:43:16]wFMCommunicate OK [00:43:16]SAM_PROTO_ClearQueue done [00:43:16]KKMCreateOFDPacket [00:43:16]OFDProtocolAddRootSTLVToBuf [00:43:16]FM_MakeSignedData [00:43:16]FM_MakeSignedData [00:43:16]SAM_PROTO_SignData [00:43:16]wFMCommunicate request_size=4 [00:43:16]MH_SAM_APDU [00:43:16]CAPDU: 80 0D 01 02 [00:43:16]Write to MH i2c: E2 08 00 FC 4A 80 0D 01 02 00 00 00 00 BF [00:43:16]Write i2c OK [00:43:16]MH_I2C_Read... [00:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:16]Read from MH i2c: E2 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: E2 03 00 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: E2 03 00 FC 4A 00 90 00 BA [00:43:16]RAPDU: 90 00 [00:43:16]wFMCommunicate OK [00:43:16]wFMCommunicate request_size=255 [00:43:16]MH_SAM_APDU [00:43:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 56 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 2B 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A6 70 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7C 02 00 35 04 06 00 69 [00:43:16]Write to MH i2c: E2 02 01 FD 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 56 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 2B 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A6 70 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7C 02 00 35 04 06 00 69 00 00 56 [00:43:16]Write i2c OK [00:43:16]MH_I2C_Read... [00:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:16]Read from MH i2c: E2 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: E2 03 00 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: E2 03 00 FD 4A 00 90 00 BB [00:43:16]RAPDU: 90 00 [00:43:16]wFMCommunicate OK [00:43:16]wFMCommunicate request_size=10 [00:43:16]MH_SAM_APDU [00:43:16]CAPDU: 80 0D 02 02 05 A8 08 C9 A1 05 [00:43:16]Write to MH i2c: E2 0D 00 FE 4A 80 0D 02 02 05 00 A8 08 C9 A1 05 00 00 EB [00:43:16]Write i2c OK [00:43:16]MH_I2C_Read... [00:43:16]OFD Sender: No OFD packet to send [00:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:16]Read from MH i2c: E2 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: E2 03 00 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: E2 03 00 FE 4A 00 90 00 BC [00:43:16]RAPDU: 90 00 [00:43:16]wFMCommunicate OK [00:43:16]wFMCommunicate request_size=4 [00:43:16]MH_SAM_APDU [00:43:16]CAPDU: 80 0D 03 02 [00:43:16]Write to MH i2c: E2 08 00 FF 4A 80 0D 03 02 00 00 00 00 C4 [00:43:16]Write i2c OK [00:43:16]MH_I2C_Read... [00:43:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:16]Read from MH i2c: E2 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: E2 0B 00 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: E2 0B 00 FF 4A 00 AC 75 D3 B8 32 4A 41 19 90 00 47 [00:43:16]RAPDU: AC 75 D3 B8 32 4A 41 19 90 00 [00:43:16]wFMCommunicate OK [00:43:16]SAM_PROTO_SignData done [00:43:16]FM_MakeSignedData done [00:43:16]CreateOFDProtocolMessage [00:43:16]wFMCommunicate request_size=4 [00:43:16]MH_SAM_APDU [00:43:16]CAPDU: 80 11 00 00 [00:43:16]Write to MH i2c: E2 08 00 00 4B 80 11 00 00 00 00 00 00 C5 [00:43:16]Write i2c OK [00:43:16]MH_I2C_Read... [00:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:16]Read from MH i2c: E2 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: E2 17 00 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: E2 17 00 00 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 25 [00:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:43:16]wFMCommunicate OK [00:43:16]CreateOFDProtocolMessage done [00:43:16]OFDSenderStorePacket 162981 [00:43:16]StoreOFDPacket docnum=162981 [00:43:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B3 85 07 01 62 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 56 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 2B 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A6 70 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7C 02 00 35 04 06 00 69 A8 08 C9 A1 05 AC 75 D3 B8 32 4A 41 19 [00:43:16]CheckFolder [00:43:16]dirname=/storage/ofd_packets [00:43:16]CheckFolder done [00:43:16]ProducePacketName [00:43:16]name=ofd_packets/00162981 [00:43:16]NVStorageSaveData ofd_packets/00162981 [00:43:16]File name is /storage/ofd_packets/00162981 [00:43:16]Write 301 bytes [00:43:16]NVStorageSaveData done [00:43:16]OFDSenderStorePacket done [00:43:16]KKMCreateOFDPacket done [00:43:16]NVStorageSaveData kkm_last_timestamp [00:43:16]File name is /storage/kkm_last_timestamp [00:43:16]Write 4 bytes [00:43:16]NVStorageSaveData done [00:43:16]ExternCall_PrintAddStr [00:43:16]wPrintStart [00:43:16]Write to MH i2c: 01 00 00 01 4B 4C [00:43:16]Write i2c OK [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: 01 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: 01 07 00 [00:43:16]MH_I2C_Read... [00:43:16]Read from MH i2c: 01 07 00 01 4B 00 00 00 00 00 FF 0F 61 [00:43:16]RasterBufferAndPrint [00:43:16]line Счет N : (1)1319597 [00:43:16]line ИНН: 02508201610067 [00:43:16]line Контрольно-Кассовый Чек [00:43:16]line ПРОДАЖА [00:43:16]line ТРК (МРК, ГНК) : 43 [00:43:16]line Товар: 2710124130 [00:43:16]line Аи-92-К-5 [00:43:16]line 12.060 * 66.30 [00:43:16]line = 799.58 [00:43:16]line НДС 12% НСП 1% [00:43:16]line > о реализуемом товаре [00:43:16]line ИТОГО: 799.58 [00:43:16]line НСП 1% : 7.08 [00:43:16]line НДС 12% : 84.91 [00:43:16]line Наличными: 0.00 [00:43:16]line Безнал.: 799.58 [00:43:16]line Место: АЗС № 140 "Партнер Нефть" [00:43:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:43:16]line СНО: Общий режим [00:43:16]line Чек 5 15.07.2024 00:43 [00:43:16]line Смена: 464 ФФД: 1.0 [00:43:16]line ЗНМ: 0300000129 [00:43:16]line РНМ: 0000000000090858 [00:43:16]line Версия ККМ: 001 [00:43:16]line Платежная система: Бакай Банк [00:43:16]line ФМ: 0000000000874899 [00:43:16]line ФД: 162981 [00:43:16]line ФПД: 116170422853893 [00:43:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T004318&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162981&fm=116170422853893&tin=02508201610067®Number=0000000000090858&sum=79958 [00:43:16]OFD Sender: Processing packet 162981 [packets to send 106, broken 105] [00:43:16]ProducePacketName [00:43:16]name=ofd_packets/00162981 [00:43:16]OFD Sender: To server: pG, [00:43:16]CommunicateWithHost lk.salyk.kg:30040 [00:43:16]ConnectInit lk.salyk.kg [00:43:16]written 0, free lines is 4095 [00:43:17]Connected sock=10 [00:43:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B3 85 07 01 62 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 56 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 2B 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A6 70 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7C 02 00 35 04 06 00 69 A8 08 C9 A1 05 AC 75 D3 B8 32 4A 41 19 [00:43:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 88 5F 47 00 0D 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7C 02 00 F4 03 04 00 B2 1C 94 66 B6 04 01 00 00 58 81 D5 3F 3F 13 2F 78 [00:43:17]CommunicateWithHost err = 0 [00:43:17]CheckOFDResponse [00:43:17]1017 (14) - 77093643461234 [00:43:17]1041 (16) - 0000000000874899 [00:43:17]1040 (4) - 162981 [00:43:17]1012 (4) - 14.07.2024 18:45 [00:43:17]1206 (1) - 0 [00:43:17]OFD Sender: Remove packet 162981 [00:43:17]ProducePacketName [00:43:17]name=ofd_packets/00162981 [00:43:17]NVStorageDeleteData [00:43:17]Write to MH i2c: 01 00 00 2B 4B 76 [00:43:17]Write i2c OK [00:43:17]MH_I2C_Read... [00:43:17]Read from MH i2c: 01 [00:43:17]MH_I2C_Read... [00:43:17]Read from MH i2c: 01 07 00 [00:43:17]MH_I2C_Read... [00:43:17]Read from MH i2c: 01 07 00 2B 4B 00 00 00 00 00 E3 0C 6C [00:43:17]RasterBufferAndPrint [00:43:17]line [00:43:17]line [00:43:17]line [00:43:17]line [00:43:17]line [00:43:17]written 0, free lines is 3305 [00:43:17]MH_Cut [00:43:17]Write to MH i2c: D1 01 00 32 4B 01 4F [00:43:17]Write i2c OK [00:43:17]MH_I2C_Read... [00:43:17]Read from MH i2c: D1 [00:43:17]MH_I2C_Read... [00:43:17]Read from MH i2c: D1 01 00 [00:43:17]MH_I2C_Read... [00:43:17]Read from MH i2c: D1 01 00 32 4B 00 4E [00:43:17]Write to MH i2c: 01 00 00 33 4B 7E [00:43:17]Write i2c OK [00:43:17]MH_I2C_Read... [00:43:17]OFD Sender: No OFD packet to send [00:43:18]*** Cut start [00:43:18]*** Purtial cut [00:43:18]*** CUTSNS_PIN = 0 [00:43:18]*** Stage 1: CUTSNS_PIN = 1 [00:43:20]Read from MH i2c: 01 [00:43:20]MH_I2C_Read... [00:43:20]*** Stop cut motor [00:43:20]*** Cut end [00:43:20]Read from MH i2c: 01 07 00 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: 01 07 00 33 4B 00 00 00 00 00 FF 0F 93 [00:43:20]process_action close_receipt done [00:43:20]requested_data is exist [00:43:20]produce_requested_data [00:43:20]requested_item fm.sn is exist - process it [00:43:20]wFMCommunicate request_size=4 [00:43:20]MH_SAM_APDU [00:43:20]CAPDU: 80 11 00 00 [00:43:20]Write to MH i2c: E2 08 00 34 4B 80 11 00 00 00 00 00 00 F9 [00:43:20]Write i2c OK [00:43:20]MH_I2C_Read... [00:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:20]Read from MH i2c: E2 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: E2 17 00 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: E2 17 00 34 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 59 [00:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:43:20]wFMCommunicate OK [00:43:20]requested_item fd.num is exist - process it [00:43:20]SAM_PROTO_GetFieldsCounters [00:43:20]wFMCommunicate request_size=4 [00:43:20]MH_SAM_APDU [00:43:20]CAPDU: 80 13 00 00 [00:43:20]Write to MH i2c: E2 08 00 35 4B 80 13 00 00 00 00 00 00 FC [00:43:20]Write i2c OK [00:43:20]MH_I2C_Read... [00:43:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:20]Read from MH i2c: E2 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: E2 62 00 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: E2 62 00 35 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A5 7C 02 00 0E 04 04 00 D0 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 32 [00:43:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A5 7C 02 00 0E 04 04 00 D0 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:43:20]wFMCommunicate OK [00:43:20]SAM_PROTO_GetFieldsCounters done [00:43:20]requested_item shift.num is exist - process it [00:43:20]requested_item shift.opened is exist - process it [00:43:20]req_shift_opened [00:43:20]FM_GetShiftState [00:43:20]SAM_PROTO_GetShiftState [00:43:20]wFMCommunicate request_size=4 [00:43:20]MH_SAM_APDU [00:43:20]CAPDU: 80 13 01 00 [00:43:20]Write to MH i2c: E2 08 00 36 4B 80 13 01 00 00 00 00 00 FE [00:43:20]Write i2c OK [00:43:20]MH_I2C_Read... [00:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:20]Read from MH i2c: E2 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: E2 0E 00 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: E2 0E 00 36 4B 00 09 00 01 45 67 94 66 00 00 00 00 90 00 B0 [00:43:20]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [00:43:20]wFMCommunicate OK [00:43:20]SAM_PROTO_GetShiftState done [00:43:20]FM_GetShiftState done [00:43:20]req_shift_opened done [00:43:20]requested_item shift.open_date is exist - process it [00:43:20]req_shift_open_date [00:43:20]req_shift_open_date done [00:43:20]produce_requested_data done [00:43:20]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162981,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [00:43:20]process_action_free close_receipt [00:43:20]json_value_free [00:43:20]json_value_free done [00:43:20]process_json_proto returns [00:43:20]Send response to host [00:43:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162981,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [00:43:20]free response buf [00:43:20]execute_script done [00:43:20]execute_script returns [00:43:20]free content buf [00:43:20]Sock 9.Close socket [00:43:20]Sock 9.Thread stoped [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:50]accept exits with 7 [00:46:50]New connection [00:46:50]New thread 3066879332 created [00:46:50]Thread 3066735972 joined [00:46:50]Waiting for new connection... [00:46:50] Sock 7.Parse request [00:46:50]Sock 7.Check first char [00:46:50]Sock 7.First char is OK [00:46:50]request: POST /json_proto HTTP/1.0 [00:46:50]Method: POST [00:46:50]URL: /json_proto [00:46:50]Method is POST - this is cgi request [00:46:50]url: /json_proto [00:46:50]query_string will be loaded in cgi processing [00:46:50]execute_cgi json_proto POST (null) [00:46:50]execute_cgi path=json_proto method=POST [00:46:50]POST find Content-Length [00:46:50]Host: 172.17.39.67:8080 [00:46:50]Content-Length: 678 [00:46:50]Content-Type: application/json [00:46:50] [00:46:50]POST finish read [00:46:50]Found Content-Length = 678 [00:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.130, "sum" : 340.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:50]execute_script... [00:46: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)1319598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.130, "sum" : 340.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:50]POST & json_proto [00:46:50]process_json_proto [00:46:50]json parsed OK: [00:46:50]protocol is kg_v1.0 [00:46:50]action value=close_receipt [00:46:50]process_action close_receipt [00:46:50]cmd_close_receipt [00:46:50]MH_GetDate [00:46:50]Write to MH i2c: F0 00 00 37 4B 71 [00:46:50]Write i2c OK [00:46:50]MH_I2C_Read... [00:46:50]Read from MH i2c: F0 [00:46:50]MH_I2C_Read... [00:46:50]Read from MH i2c: F0 09 00 [00:46:50]MH_I2C_Read... [00:46:50]Read from MH i2c: F0 09 00 37 4B 00 7E 71 94 66 B6 85 93 66 97 [00:46:50]GetLastDocTimeStamp 1721004198 [00:46:50]current date 1721004414 [00:46:50]FM_GetShiftState [00:46:50]SAM_PROTO_GetShiftState [00:46:50]wFMCommunicate request_size=4 [00:46:50]MH_SAM_APDU [00:46:50]CAPDU: 80 13 01 00 [00:46:50]Write to MH i2c: E2 08 00 38 4B 80 13 01 00 00 00 00 00 00 [00:46:50]Write i2c OK [00:46:50]MH_I2C_Read... [00:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:51]Read from MH i2c: E2 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 0E 00 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 0E 00 38 4B 00 09 00 01 45 67 94 66 00 00 00 00 90 00 B2 [00:46:51]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [00:46:51]wFMCommunicate OK [00:46:51]SAM_PROTO_GetShiftState done [00:46:51]FM_GetShiftState done [00:46:51]opened in 1721001797 [00:46:51]opened+sec_in_day 1721088197 [00:46:51]quantity*price = 34011 [00:46:51]sum+1 = 34013 [00:46:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.12 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 6 15.07.2024 00:46 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162982 ФПД: 277977602459076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T004654&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162982&fm=277977602459076&tin=02508201610067®Number=0000000000090858&sum=34000 [00:46:52]StoreToDocumentArchive [00:46:52]shift 464 fd 162982 [00:46:52]save to /storage/0464/doc_00162982 [00:46:52]save last doc name /storage/0464/doc_00162982 to /storage/kkm_last_doc_name [00:46:52]save OK [00:46:52]Clear old archive folders... [00:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:46:52]tlvbuf is 01355FD0 [00:46:52]SAM_PROTO_ClearQueue [00:46:52]wFMCommunicate request_size=4 [00:46:52]MH_SAM_APDU [00:46:52]CAPDU: 80 09 00 00 [00:46:52]Write to MH i2c: E2 08 00 45 4B 80 09 00 00 00 00 00 00 02 [00:46:52]Write i2c OK [00:46:52]MH_I2C_Read... [00:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:46:52]Read from MH i2c: E2 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 45 4B 00 90 00 04 [00:46:52]RAPDU: 90 00 [00:46:52]wFMCommunicate OK [00:46:52]SAM_PROTO_ClearQueue done [00:46:52]KKMCreateOFDPacket [00:46:52]OFDProtocolAddRootSTLVToBuf [00:46:52]FM_MakeSignedData [00:46:52]FM_MakeSignedData [00:46:52]SAM_PROTO_SignData [00:46:52]wFMCommunicate request_size=4 [00:46:52]MH_SAM_APDU [00:46:52]CAPDU: 80 0D 01 02 [00:46:52]Write to MH i2c: E2 08 00 46 4B 80 0D 01 02 00 00 00 00 0A [00:46:52]Write i2c OK [00:46:52]MH_I2C_Read... [00:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:46:52]Read from MH i2c: E2 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 46 4B 00 90 00 05 [00:46:52]RAPDU: 90 00 [00:46:52]wFMCommunicate OK [00:46:52]wFMCommunicate request_size=255 [00:46:52]MH_SAM_APDU [00:46: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 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 D0 84 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 7E 71 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7C 02 00 35 04 06 00 FC [00:46:52]Write to MH i2c: E2 02 01 47 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 D0 84 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 7E 71 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7C 02 00 35 04 06 00 FC 00 00 83 [00:46:52]Write i2c OK [00:46:52]MH_I2C_Read... [00:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:52]Read from MH i2c: E2 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 47 4B 00 90 00 06 [00:46:52]RAPDU: 90 00 [00:46:52]wFMCommunicate OK [00:46:52]wFMCommunicate request_size=10 [00:46:52]MH_SAM_APDU [00:46:52]CAPDU: 80 0D 02 02 05 D1 B4 40 05 C4 [00:46:52]Write to MH i2c: E2 0D 00 48 4B 80 0D 02 02 05 00 D1 B4 40 05 C4 00 00 A5 [00:46:52]Write i2c OK [00:46:52]MH_I2C_Read... [00:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:52]Read from MH i2c: E2 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 48 4B 00 90 00 07 [00:46:52]RAPDU: 90 00 [00:46:52]wFMCommunicate OK [00:46:52]wFMCommunicate request_size=4 [00:46:52]MH_SAM_APDU [00:46:52]CAPDU: 80 0D 03 02 [00:46:52]Write to MH i2c: E2 08 00 49 4B 80 0D 03 02 00 00 00 00 0F [00:46:52]Write i2c OK [00:46:52]MH_I2C_Read... [00:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:46:52]Read from MH i2c: E2 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 0B 00 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 0B 00 49 4B 00 74 67 B5 FA 98 73 3E 75 90 00 58 [00:46:52]RAPDU: 74 67 B5 FA 98 73 3E 75 90 00 [00:46:52]wFMCommunicate OK [00:46:52]SAM_PROTO_SignData done [00:46:52]FM_MakeSignedData done [00:46:52]CreateOFDProtocolMessage [00:46:52]wFMCommunicate request_size=4 [00:46:52]MH_SAM_APDU [00:46:52]CAPDU: 80 11 00 00 [00:46:52]Write to MH i2c: E2 08 00 4A 4B 80 11 00 00 00 00 00 00 0F [00:46:52]Write i2c OK [00:46:52]MH_I2C_Read... [00:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:52]Read from MH i2c: E2 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 17 00 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 17 00 4A 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6F [00:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:46:52]wFMCommunicate OK [00:46:52]CreateOFDProtocolMessage done [00:46:52]OFDSenderStorePacket 162982 [00:46:52]StoreOFDPacket docnum=162982 [00:46:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 13 FD 07 01 79 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 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 D0 84 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 7E 71 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7C 02 00 35 04 06 00 FC D1 B4 40 05 C4 74 67 B5 FA 98 73 3E 75 [00:46:52]CheckFolder [00:46:52]dirname=/storage/ofd_packets [00:46:52]CheckFolder done [00:46:52]ProducePacketName [00:46:52]name=ofd_packets/00162982 [00:46:52]NVStorageSaveData ofd_packets/00162982 [00:46:52]File name is /storage/ofd_packets/00162982 [00:46:52]Write 301 bytes [00:46:52]NVStorageSaveData done [00:46:52]OFDSenderStorePacket done [00:46:52]KKMCreateOFDPacket done [00:46:52]NVStorageSaveData kkm_last_timestamp [00:46:52]File name is /storage/kkm_last_timestamp [00:46:52]Write 4 bytes [00:46:52]NVStorageSaveData done [00:46:52]ExternCall_PrintAddStr [00:46:52]wPrintStart [00:46:52]Write to MH i2c: 01 00 00 4B 4B 96 [00:46:52]Write i2c OK [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: 01 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: 01 07 00 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: 01 07 00 4B 4B 00 00 00 00 00 FF 0F AB [00:46:52]RasterBufferAndPrint [00:46:52]line Счет N : (1)1319598 [00:46:52]line ИНН: 02508201610067 [00:46:52]line Контрольно-Кассовый Чек [00:46:52]line ПРОДАЖА [00:46:52]line ТРК (МРК, ГНК) : 43 [00:46:52]line Товар: 2710124130 [00:46:52]line Аи-92-К-5 [00:46:52]line 5.130 * 66.30 [00:46:52]line = 340.12 [00:46:52]line НДС 12% НСП 1% [00:46:52]line > о реализуемом товаре [00:46:52]line ОКРУГЛЕНИЕ: -0.12 [00:46:52]line ИТОГО: 340.00 [00:46:52]line Внесено: 340.00 [00:46:52]line СДАЧА: 0.00 [00:46:52]line НСП 1% : 3.01 [00:46:52]line НДС 12% : 36.12 [00:46:52]line Наличными: 340.00 [00:46:52]line Безнал.: 0.00 [00:46:52]line Место: АЗС № 140 "Партнер Нефть" [00:46:52]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:46:52]line СНО: Общий режим [00:46:52]line Чек 6 15.07.2024 00:46 [00:46:52]line Смена: 464 ФФД: 1.0 [00:46:52]line ЗНМ: 0300000129 [00:46:52]line РНМ: 0000000000090858 [00:46:52]line Версия ККМ: 001 [00:46:52]line ФМ: 0000000000874899 [00:46:52]line ФД: 162982 [00:46:52]line ФПД: 277977602459076 [00:46:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T004654&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162982&fm=277977602459076&tin=02508201610067®Number=0000000000090858&sum=34000 [00:46:53]OFD Sender: Processing packet 162982 [packets to send 106, broken 105] [00:46:53]ProducePacketName [00:46:53]name=ofd_packets/00162982 [00:46:53]OFD Sender: To server: pG, [00:46:53]CommunicateWithHost lk.salyk.kg:30040 [00:46:53]ConnectInit lk.salyk.kg [00:46:53]written 0, free lines is 4095 [00:46:53]Connected sock=10 [00:46:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 13 FD 07 01 79 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 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 D0 84 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 7E 71 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7C 02 00 35 04 06 00 FC D1 B4 40 05 C4 74 67 B5 FA 98 73 3E 75 [00:46:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 12 ED 47 00 E1 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7C 02 00 F4 03 04 00 8A 1D 94 66 B6 04 01 00 00 A0 02 AF C4 C5 23 DA 73 [00:46:53]CommunicateWithHost err = 0 [00:46:53]CheckOFDResponse [00:46:53]1017 (14) - 77093643461234 [00:46:53]1041 (16) - 0000000000874899 [00:46:53]1040 (4) - 162982 [00:46:53]1012 (4) - 14.07.2024 18:48 [00:46:53]1206 (1) - 0 [00:46:53]OFD Sender: Remove packet 162982 [00:46:53]ProducePacketName [00:46:53]name=ofd_packets/00162982 [00:46:53]NVStorageDeleteData [00:46:53]Write to MH i2c: 01 00 00 76 4B C1 [00:46:53]Write i2c OK [00:46:53]MH_I2C_Read... [00:46:53]Read from MH i2c: 01 [00:46:53]MH_I2C_Read... [00:46:53]Read from MH i2c: 01 07 00 [00:46:53]MH_I2C_Read... [00:46:53]Read from MH i2c: 01 07 00 76 4B 00 00 00 00 00 D1 0C A5 [00:46:53]RasterBufferAndPrint [00:46:53]line [00:46:53]line [00:46:53]line [00:46:53]line [00:46:53]line [00:46:53]written 0, free lines is 3289 [00:46:53]MH_Cut [00:46:53]Write to MH i2c: D1 01 00 7D 4B 01 9A [00:46:53]Write i2c OK [00:46:53]MH_I2C_Read... [00:46:53]Read from MH i2c: D1 [00:46:53]MH_I2C_Read... [00:46:53]Read from MH i2c: D1 01 00 [00:46:53]MH_I2C_Read... [00:46:53]Read from MH i2c: D1 01 00 7D 4B 00 99 [00:46:53]Write to MH i2c: 01 00 00 7E 4B C9 [00:46:53]Write i2c OK [00:46:53]MH_I2C_Read... [00:46:53]OFD Sender: No OFD packet to send [00:46:54]*** Cut start [00:46:54]*** Purtial cut [00:46:54]*** Stage 1: CUTSNS_PIN = 1 [00:46:54]Read from MH i2c: 01 [00:46:54]MH_I2C_Read... [00:46:54]*** Stop cut motor [00:46:54]*** Cut end [00:46:54]Read from MH i2c: 01 07 00 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: 01 07 00 7E 4B 00 00 00 00 00 FF 0F DE [00:46:54]process_action close_receipt done [00:46:54]requested_data is exist [00:46:54]produce_requested_data [00:46:54]requested_item fm.sn is exist - process it [00:46:54]wFMCommunicate request_size=4 [00:46:54]MH_SAM_APDU [00:46:54]CAPDU: 80 11 00 00 [00:46:54]Write to MH i2c: E2 08 00 7F 4B 80 11 00 00 00 00 00 00 44 [00:46:54]Write i2c OK [00:46:54]MH_I2C_Read... [00:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:54]Read from MH i2c: E2 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 17 00 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 17 00 7F 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A4 [00:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:46:54]wFMCommunicate OK [00:46:54]requested_item fd.num is exist - process it [00:46:54]SAM_PROTO_GetFieldsCounters [00:46:54]wFMCommunicate request_size=4 [00:46:54]MH_SAM_APDU [00:46:54]CAPDU: 80 13 00 00 [00:46:54]Write to MH i2c: E2 08 00 80 4B 80 13 00 00 00 00 00 00 47 [00:46:54]Write i2c OK [00:46:54]MH_I2C_Read... [00:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:46:54]Read from MH i2c: E2 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 62 00 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 62 00 80 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A6 7C 02 00 0E 04 04 00 D0 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 81 [00:46:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A6 7C 02 00 0E 04 04 00 D0 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:46:54]wFMCommunicate OK [00:46:54]SAM_PROTO_GetFieldsCounters done [00:46:54]requested_item shift.num is exist - process it [00:46:54]requested_item shift.opened is exist - process it [00:46:54]req_shift_opened [00:46:54]FM_GetShiftState [00:46:54]SAM_PROTO_GetShiftState [00:46:54]wFMCommunicate request_size=4 [00:46:54]MH_SAM_APDU [00:46:54]CAPDU: 80 13 01 00 [00:46:54]Write to MH i2c: E2 08 00 81 4B 80 13 01 00 00 00 00 00 49 [00:46:54]Write i2c OK [00:46:54]MH_I2C_Read... [00:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:54]Read from MH i2c: E2 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 0E 00 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 0E 00 81 4B 00 09 00 01 45 67 94 66 00 00 00 00 90 00 FB [00:46:54]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [00:46:54]wFMCommunicate OK [00:46:54]SAM_PROTO_GetShiftState done [00:46:54]FM_GetShiftState done [00:46:54]req_shift_opened done [00:46:54]requested_item shift.open_date is exist - process it [00:46:54]req_shift_open_date [00:46:54]req_shift_open_date done [00:46:54]produce_requested_data done [00:46:54]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162982,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [00:46:54]process_action_free close_receipt [00:46:54]json_value_free [00:46:54]json_value_free done [00:46:54]process_json_proto returns [00:46:54]Send response to host [00:46:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162982,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [00:46:54]free response buf [00:46:54]execute_script done [00:46:54]execute_script returns [00:46:54]free content buf [00:46:54]Sock 7.Close socket [00:46:54]Sock 7.Thread stoped [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:33]accept exits with 9 [01:15:33]New connection [01:15:33]New thread 3066735972 created [01:15:33]Thread 3066879332 joined [01:15:33]Waiting for new connection... [01:15:33] Sock 9.Parse request [01:15:33]Sock 9.Check first char [01:15:33]Sock 9.First char is OK [01:15:33]request: POST /json_proto HTTP/1.0 [01:15:33]Method: POST [01:15:33]URL: /json_proto [01:15:33]Method is POST - this is cgi request [01:15:33]url: /json_proto [01:15:33]query_string will be loaded in cgi processing [01:15:33]execute_cgi json_proto POST (null) [01:15:33]execute_cgi path=json_proto method=POST [01:15:33]POST find Content-Length [01:15:33]Host: 172.17.39.67:8080 [01:15:33]Content-Length: 683 [01:15:33]Content-Type: application/json [01:15:33] [01:15:33]POST finish read [01:15:33]Found Content-Length = 683 [01:15:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:33]execute_script... [01:15: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)1319599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:33]POST & json_proto [01:15:33]process_json_proto [01:15:33]json parsed OK: [01:15:33]protocol is kg_v1.0 [01:15:33]action value=close_receipt [01:15:33]process_action close_receipt [01:15:33]cmd_close_receipt [01:15:33]MH_GetDate [01:15:33]Write to MH i2c: F0 00 00 82 4B BC [01:15:33]Write i2c OK [01:15:33]MH_I2C_Read... [01:15:33]Read from MH i2c: F0 [01:15:33]MH_I2C_Read... [01:15:33]Read from MH i2c: F0 09 00 [01:15:33]MH_I2C_Read... [01:15:33]Read from MH i2c: F0 09 00 82 4B 00 39 78 94 66 B6 85 93 66 A4 [01:15:33]GetLastDocTimeStamp 1721004414 [01:15:33]current date 1721006137 [01:15:33]FM_GetShiftState [01:15:33]SAM_PROTO_GetShiftState [01:15:33]wFMCommunicate request_size=4 [01:15:33]MH_SAM_APDU [01:15:33]CAPDU: 80 13 01 00 [01:15:33]Write to MH i2c: E2 08 00 83 4B 80 13 01 00 00 00 00 00 4B [01:15:33]Write i2c OK [01:15:33]MH_I2C_Read... [01:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:33]Read from MH i2c: E2 [01:15:33]MH_I2C_Read... [01:15:33]Read from MH i2c: E2 0E 00 [01:15:33]MH_I2C_Read... [01:15:33]Read from MH i2c: E2 0E 00 83 4B 00 09 00 01 45 67 94 66 00 00 00 00 90 00 FD [01:15:33]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:15:33]wFMCommunicate OK [01:15:33]SAM_PROTO_GetShiftState done [01:15:33]FM_GetShiftState done [01:15:33]opened in 1721001797 [01:15:33]opened+sec_in_day 1721088197 [01:15:33]quantity*price = 100046 [01:15:33]sum+1 = 100048 [01:15:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 7 15.07.2024 01:15 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162983 ФПД: 9709044987508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T011537&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162983&fm=9709044987508&tin=02508201610067®Number=0000000000090858&sum=100000 [01:15:34]StoreToDocumentArchive [01:15:34]shift 464 fd 162983 [01:15:34]save to /storage/0464/doc_00162983 [01:15:34]save last doc name /storage/0464/doc_00162983 to /storage/kkm_last_doc_name [01:15:34]save OK [01:15:34]Clear old archive folders... [01:15:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:15:34]tlvbuf is 013E89C0 [01:15:34]SAM_PROTO_ClearQueue [01:15:34]wFMCommunicate request_size=4 [01:15:34]MH_SAM_APDU [01:15:34]CAPDU: 80 09 00 00 [01:15:34]Write to MH i2c: E2 08 00 90 4B 80 09 00 00 00 00 00 00 4D [01:15:34]Write i2c OK [01:15:34]MH_I2C_Read... [01:15:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:34]Read from MH i2c: E2 [01:15:34]MH_I2C_Read... [01:15:34]Read from MH i2c: E2 03 00 [01:15:34]MH_I2C_Read... [01:15:34]Read from MH i2c: E2 03 00 90 4B 00 90 00 4F [01:15:34]RAPDU: 90 00 [01:15:34]wFMCommunicate OK [01:15:34]SAM_PROTO_ClearQueue done [01:15:34]KKMCreateOFDPacket [01:15:34]OFDProtocolAddRootSTLVToBuf [01:15:34]FM_MakeSignedData [01:15:34]FM_MakeSignedData [01:15:34]SAM_PROTO_SignData [01:15:34]wFMCommunicate request_size=4 [01:15:34]MH_SAM_APDU [01:15:34]CAPDU: 80 0D 01 02 [01:15:34]Write to MH i2c: E2 08 00 91 4B 80 0D 01 02 00 00 00 00 55 [01:15:34]Write i2c OK [01:15:34]MH_I2C_Read... [01:15:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:34]Read from MH i2c: E2 [01:15:34]MH_I2C_Read... [01:15:34]Read from MH i2c: E2 03 00 [01:15:34]MH_I2C_Read... [01:15:34]Read from MH i2c: E2 03 00 91 4B 00 90 00 50 [01:15:34]RAPDU: 90 00 [01:15:34]wFMCommunicate OK [01:15:34]wFMCommunicate request_size=255 [01:15:34]MH_SAM_APDU [01:15:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 39 78 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7C 02 00 35 04 06 00 08 [01:15:34]Write to MH i2c: E2 02 01 92 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 39 78 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7C 02 00 35 04 06 00 08 00 00 11 [01:15:34]Write i2c OK [01:15:34]MH_I2C_Read... [01:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:35]Read from MH i2c: E2 [01:15:35]MH_I2C_Read... [01:15:35]Read from MH i2c: E2 03 00 [01:15:35]MH_I2C_Read... [01:15:35]Read from MH i2c: E2 03 00 92 4B 00 90 00 51 [01:15:35]RAPDU: 90 00 [01:15:35]wFMCommunicate OK [01:15:35]wFMCommunicate request_size=10 [01:15:35]MH_SAM_APDU [01:15:35]CAPDU: 80 0D 02 02 05 D4 90 2D 76 74 [01:15:35]Write to MH i2c: E2 0D 00 93 4B 80 0D 02 02 05 00 D4 90 2D 76 74 00 00 DD [01:15:35]Write i2c OK [01:15:35]MH_I2C_Read... [01:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:35]Read from MH i2c: E2 [01:15:35]MH_I2C_Read... [01:15:35]Read from MH i2c: E2 03 00 [01:15:35]MH_I2C_Read... [01:15:35]Read from MH i2c: E2 03 00 93 4B 00 90 00 52 [01:15:35]RAPDU: 90 00 [01:15:35]wFMCommunicate OK [01:15:35]wFMCommunicate request_size=4 [01:15:35]MH_SAM_APDU [01:15:35]CAPDU: 80 0D 03 02 [01:15:35]Write to MH i2c: E2 08 00 94 4B 80 0D 03 02 00 00 00 00 5A [01:15:35]Write i2c OK [01:15:35]MH_I2C_Read... [01:15:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:35]Read from MH i2c: E2 [01:15:35]MH_I2C_Read... [01:15:35]Read from MH i2c: E2 0B 00 [01:15:35]MH_I2C_Read... [01:15:35]Read from MH i2c: E2 0B 00 94 4B 00 08 BD 72 9D 4D ED 26 41 90 00 D0 [01:15:35]RAPDU: 08 BD 72 9D 4D ED 26 41 90 00 [01:15:35]wFMCommunicate OK [01:15:35]SAM_PROTO_SignData done [01:15:35]FM_MakeSignedData done [01:15:35]CreateOFDProtocolMessage [01:15:35]wFMCommunicate request_size=4 [01:15:35]MH_SAM_APDU [01:15:35]CAPDU: 80 11 00 00 [01:15:35]Write to MH i2c: E2 08 00 95 4B 80 11 00 00 00 00 00 00 5A [01:15:35]Write i2c OK [01:15:35]MH_I2C_Read... [01:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:35]Read from MH i2c: E2 [01:15:35]MH_I2C_Read... [01:15:35]Read from MH i2c: E2 17 00 [01:15:35]MH_I2C_Read... [01:15:35]Read from MH i2c: E2 17 00 95 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BA [01:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:15:35]wFMCommunicate OK [01:15:35]CreateOFDProtocolMessage done [01:15:35]OFDSenderStorePacket 162983 [01:15:35]StoreOFDPacket docnum=162983 [01:15:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A0 36 07 01 16 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 39 78 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7C 02 00 35 04 06 00 08 D4 90 2D 76 74 08 BD 72 9D 4D ED 26 41 [01:15:35]CheckFolder [01:15:35]dirname=/storage/ofd_packets [01:15:35]CheckFolder done [01:15:35]ProducePacketName [01:15:35]name=ofd_packets/00162983 [01:15:35]NVStorageSaveData ofd_packets/00162983 [01:15:35]File name is /storage/ofd_packets/00162983 [01:15:35]Write 301 bytes [01:15:35]NVStorageSaveData done [01:15:35]OFDSenderStorePacket done [01:15:35]KKMCreateOFDPacket done [01:15:35]NVStorageSaveData kkm_last_timestamp [01:15:35]File name is /storage/kkm_last_timestamp [01:15:35]Write 4 bytes [01:15:35]NVStorageSaveData done [01:15:35]ExternCall_PrintAddStr [01:15:35]wPrintStart [01:15:35]Write to MH i2c: 01 00 00 96 4B E1 [01:15:35]Write i2c OK [01:15:35]MH_I2C_Read... [01:15:35]Read from MH i2c: 01 [01:15:35]MH_I2C_Read... [01:15:35]Read from MH i2c: 01 07 00 [01:15:35]MH_I2C_Read... [01:15:35]Read from MH i2c: 01 07 00 96 4B 00 00 00 00 00 FF 0F F6 [01:15:35]RasterBufferAndPrint [01:15:35]line Счет N : (1)1319599 [01:15:35]line ИНН: 02508201610067 [01:15:35]line Контрольно-Кассовый Чек [01:15:35]line ПРОДАЖА [01:15:35]line ТРК (МРК, ГНК) : 53 [01:15:35]line Товар: 2710124130 [01:15:35]line Аи-92-К-5 [01:15:35]line 15.090 * 66.30 [01:15:35]line = 1000.47 [01:15:35]line НДС 12% НСП 1% [01:15:35]line > о реализуемом товаре [01:15:35]line ОКРУГЛЕНИЕ: -0.47 [01:15:35]line ИТОГО: 1000.00 [01:15:35]line Внесено: 1000.00 [01:15:35]line СДАЧА: 0.00 [01:15:35]line НСП 1% : 8.85 [01:15:35]line НДС 12% : 106.24 [01:15:35]line Наличными: 1000.00 [01:15:35]line Безнал.: 0.00 [01:15:35]line Место: АЗС № 140 "Партнер Нефть" [01:15:35]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:15:35]line СНО: Общий режим [01:15:35]line Чек 7 15.07.2024 01:15 [01:15:35]line Смена: 464 ФФД: 1.0 [01:15:35]line ЗНМ: 0300000129 [01:15:35]line РНМ: 0000000000090858 [01:15:35]line Версия ККМ: 001 [01:15:35]line ФМ: 0000000000874899 [01:15:35]line ФД: 162983 [01:15:35]line ФПД: 9709044987508 [01:15:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T011537&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162983&fm=9709044987508&tin=02508201610067®Number=0000000000090858&sum=100000 [01:15:35]OFD Sender: Processing packet 162983 [packets to send 106, broken 105] [01:15:35]ProducePacketName [01:15:35]name=ofd_packets/00162983 [01:15:35]OFD Sender: To server: pG, [01:15:35]CommunicateWithHost lk.salyk.kg:30040 [01:15:35]ConnectInit lk.salyk.kg [01:15:35]written 0, free lines is 4095 [01:15:35]Connected sock=10 [01: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 34 38 39 39 0F 01 00 00 A0 36 07 01 16 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 39 78 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7C 02 00 35 04 06 00 08 D4 90 2D 76 74 08 BD 72 9D 4D ED 26 41 [01:15:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0F 36 47 00 D0 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 34 38 39 39 10 04 04 00 A7 7C 02 00 F4 03 04 00 45 24 94 66 B6 04 01 00 00 27 E9 EC 86 D6 2B 31 AA [01:15:35]CommunicateWithHost err = 0 [01:15:35]CheckOFDResponse [01:15:35]1017 (14) - 77093643461234 [01:15:35]1041 (16) - 0000000000874899 [01:15:35]1040 (4) - 162983 [01:15:35]1012 (4) - 14.07.2024 19:17 [01:15:35]1206 (1) - 0 [01:15:35]OFD Sender: Remove packet 162983 [01:15:35]ProducePacketName [01:15:35]name=ofd_packets/00162983 [01:15:35]NVStorageDeleteData [01:15:36]Write to MH i2c: 01 00 00 C1 4B 0C [01:15:36]Write i2c OK [01:15:36]MH_I2C_Read... [01:15:36]Read from MH i2c: 01 [01:15:36]MH_I2C_Read... [01:15:36]Read from MH i2c: 01 07 00 [01:15:36]MH_I2C_Read... [01:15:36]Read from MH i2c: 01 07 00 C1 4B 00 00 00 00 00 D4 0C F3 [01:15:36]RasterBufferAndPrint [01:15:36]line [01:15:36]line [01:15:36]line [01:15:36]line [01:15:36]line [01:15:36]written 0, free lines is 3290 [01:15:36]MH_Cut [01:15:36]Write to MH i2c: D1 01 00 C8 4B 01 E5 [01:15:36]Write i2c OK [01:15:36]MH_I2C_Read... [01:15:36]Read from MH i2c: D1 [01:15:36]MH_I2C_Read... [01:15:36]Read from MH i2c: D1 01 00 [01:15:36]MH_I2C_Read... [01:15:36]Read from MH i2c: D1 01 00 C8 4B 00 E4 [01:15:36]Write to MH i2c: 01 00 00 C9 4B 14 [01:15:36]Write i2c OK [01:15:36]MH_I2C_Read... [01:15:36]OFD Sender: No OFD packet to send [01:15:36]*** Cut start [01:15:36]*** Purtial cut [01:15:36]*** CUTSNS_PIN = 0 [01:15:36]*** Stage 1: CUTSNS_PIN = 1 [01:15:38]Read from MH i2c: 01 [01:15:38]MH_I2C_Read... [01:15:38]*** Stop cut motor [01:15:38]*** Cut end [01:15:38]Read from MH i2c: 01 07 00 [01:15:38]MH_I2C_Read... [01:15:38]Read from MH i2c: 01 07 00 C9 4B 00 00 00 00 00 FF 0F 29 [01:15:38]process_action close_receipt done [01:15:38]requested_data is exist [01:15:38]produce_requested_data [01:15:38]requested_item fm.sn is exist - process it [01:15:38]wFMCommunicate request_size=4 [01:15:38]MH_SAM_APDU [01:15:38]CAPDU: 80 11 00 00 [01:15:38]Write to MH i2c: E2 08 00 CA 4B 80 11 00 00 00 00 00 00 8F [01:15:38]Write i2c OK [01:15:38]MH_I2C_Read... [01:15:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:38]Read from MH i2c: E2 [01:15:38]MH_I2C_Read... [01:15:38]Read from MH i2c: E2 17 00 [01:15:38]MH_I2C_Read... [01:15:38]Read from MH i2c: E2 17 00 CA 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EF [01:15:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:15:38]wFMCommunicate OK [01:15:38]requested_item fd.num is exist - process it [01:15:38]SAM_PROTO_GetFieldsCounters [01:15:38]wFMCommunicate request_size=4 [01:15:38]MH_SAM_APDU [01:15:38]CAPDU: 80 13 00 00 [01:15:38]Write to MH i2c: E2 08 00 CB 4B 80 13 00 00 00 00 00 00 92 [01:15:38]Write i2c OK [01:15:38]MH_I2C_Read... [01:15:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:39]Read from MH i2c: E2 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 62 00 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 62 00 CB 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A7 7C 02 00 0E 04 04 00 D0 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 D0 [01:15:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A7 7C 02 00 0E 04 04 00 D0 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 [01:15:39]wFMCommunicate OK [01:15:39]SAM_PROTO_GetFieldsCounters done [01:15:39]requested_item shift.num is exist - process it [01:15:39]requested_item shift.opened is exist - process it [01:15:39]req_shift_opened [01:15:39]FM_GetShiftState [01:15:39]SAM_PROTO_GetShiftState [01:15:39]wFMCommunicate request_size=4 [01:15:39]MH_SAM_APDU [01:15:39]CAPDU: 80 13 01 00 [01:15:39]Write to MH i2c: E2 08 00 CC 4B 80 13 01 00 00 00 00 00 94 [01:15:39]Write i2c OK [01:15:39]MH_I2C_Read... [01:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:39]Read from MH i2c: E2 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 0E 00 [01:15:39]MH_I2C_Read... [01:15:39]Read from MH i2c: E2 0E 00 CC 4B 00 09 00 01 45 67 94 66 00 00 00 00 90 00 46 [01:15:39]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:15:39]wFMCommunicate OK [01:15:39]SAM_PROTO_GetShiftState done [01:15:39]FM_GetShiftState done [01:15:39]req_shift_opened done [01:15:39]requested_item shift.open_date is exist - process it [01:15:39]req_shift_open_date [01:15:39]req_shift_open_date done [01:15:39]produce_requested_data done [01:15:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162983,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [01:15:39]process_action_free close_receipt [01:15:39]json_value_free [01:15:39]json_value_free done [01:15:39]process_json_proto returns [01:15:39]Send response to host [01:15:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162983,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [01:15:39]free response buf [01:15:39]execute_script done [01:15:39]execute_script returns [01:15:39]free content buf [01:15:39]Sock 9.Close socket [01:15:39]Sock 9.Thread stoped [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:55]accept exits with 7 [01:19:55]New connection [01:19:55]New thread 3066879332 created [01:19:55]Thread 3066735972 joined [01:19:55]Waiting for new connection... [01:19:55] Sock 7.Parse request [01:19:55]Sock 7.Check first char [01:19:55]Sock 7.First char is OK [01:19:55]request: POST /json_proto HTTP/1.0 [01:19:55]Method: POST [01:19:55]URL: /json_proto [01:19:55]Method is POST - this is cgi request [01:19:55]url: /json_proto [01:19:55]query_string will be loaded in cgi processing [01:19:55]execute_cgi json_proto POST (null) [01:19:55]execute_cgi path=json_proto method=POST [01:19:55]POST find Content-Length [01:19:55]Host: 172.17.39.67:8080 [01:19:55]Content-Length: 683 [01:19:55]Content-Type: application/json [01:19:55] [01:19:55]POST finish read [01:19:55]Found Content-Length = 683 [01:19:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:55]execute_script... [01:19: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)1319600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:55]POST & json_proto [01:19:55]process_json_proto [01:19:55]json parsed OK: [01:19:55]protocol is kg_v1.0 [01:19:55]action value=close_receipt [01:19:55]process_action close_receipt [01:19:55]cmd_close_receipt [01:19:55]MH_GetDate [01:19:55]Write to MH i2c: F0 00 00 CD 4B 07 [01:19:55]Write i2c OK [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: F0 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: F0 09 00 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: F0 09 00 CD 4B 00 3F 79 94 66 B6 85 93 66 F6 [01:19:55]GetLastDocTimeStamp 1721006137 [01:19:55]current date 1721006399 [01:19:55]FM_GetShiftState [01:19:55]SAM_PROTO_GetShiftState [01:19:55]wFMCommunicate request_size=4 [01:19:55]MH_SAM_APDU [01:19:55]CAPDU: 80 13 01 00 [01:19:55]Write to MH i2c: E2 08 00 CE 4B 80 13 01 00 00 00 00 00 96 [01:19:55]Write i2c OK [01:19:55]MH_I2C_Read... [01:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:55]Read from MH i2c: E2 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: E2 0E 00 [01:19:55]MH_I2C_Read... [01:19:55]Read from MH i2c: E2 0E 00 CE 4B 00 09 00 01 45 67 94 66 00 00 00 00 90 00 48 [01:19:55]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:19:55]wFMCommunicate OK [01:19:55]SAM_PROTO_GetShiftState done [01:19:55]FM_GetShiftState done [01:19:55]opened in 1721001797 [01:19:55]opened+sec_in_day 1721088197 [01:19:55]quantity*price = 100046 [01:19:55]sum+1 = 100048 [01:19:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 8 15.07.2024 01:19 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162984 ФПД: 147283571341995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T011959&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162984&fm=147283571341995&tin=02508201610067®Number=0000000000090858&sum=100000 [01:19:56]StoreToDocumentArchive [01:19:56]shift 464 fd 162984 [01:19:56]save to /storage/0464/doc_00162984 [01:19:56]save last doc name /storage/0464/doc_00162984 to /storage/kkm_last_doc_name [01:19:56]save OK [01:19:56]Clear old archive folders... [01:19:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:19:56]tlvbuf is 01316620 [01:19:56]SAM_PROTO_ClearQueue [01:19:56]wFMCommunicate request_size=4 [01:19:56]MH_SAM_APDU [01:19:56]CAPDU: 80 09 00 00 [01:19:56]Write to MH i2c: E2 08 00 DB 4B 80 09 00 00 00 00 00 00 98 [01:19:56]Write i2c OK [01:19:56]MH_I2C_Read... [01:19:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:19:56]Read from MH i2c: E2 [01:19:56]MH_I2C_Read... [01:19:56]Read from MH i2c: E2 03 00 [01:19:56]MH_I2C_Read... [01:19:56]Read from MH i2c: E2 03 00 DB 4B 00 90 00 9A [01:19:56]RAPDU: 90 00 [01:19:56]wFMCommunicate OK [01:19:56]SAM_PROTO_ClearQueue done [01:19:56]KKMCreateOFDPacket [01:19:56]OFDProtocolAddRootSTLVToBuf [01:19:56]FM_MakeSignedData [01:19:56]FM_MakeSignedData [01:19:56]SAM_PROTO_SignData [01:19:56]wFMCommunicate request_size=4 [01:19:56]MH_SAM_APDU [01:19:56]CAPDU: 80 0D 01 02 [01:19:56]Write to MH i2c: E2 08 00 DC 4B 80 0D 01 02 00 00 00 00 A0 [01:19:56]Write i2c OK [01:19:56]MH_I2C_Read... [01:19:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:19:56]Read from MH i2c: E2 [01:19:56]MH_I2C_Read... [01:19:56]Read from MH i2c: E2 03 00 [01:19:56]MH_I2C_Read... [01:19:56]Read from MH i2c: E2 03 00 DC 4B 00 90 00 9B [01:19:56]RAPDU: 90 00 [01:19:56]wFMCommunicate OK [01:19:56]wFMCommunicate request_size=255 [01:19:56]MH_SAM_APDU [01:19:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 3F 79 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7C 02 00 35 04 06 00 85 [01:19:56]Write to MH i2c: E2 02 01 DD 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 3F 79 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7C 02 00 35 04 06 00 85 00 00 E2 [01:19:56]Write i2c OK [01:19:56]MH_I2C_Read... [01:19:56]OFD Sender: No OFD packet to send [01:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:56]Read from MH i2c: E2 [01:19:56]MH_I2C_Read... [01:19:56]Read from MH i2c: E2 03 00 [01:19:56]MH_I2C_Read... [01:19:56]Read from MH i2c: E2 03 00 DD 4B 00 90 00 9C [01:19:56]RAPDU: 90 00 [01:19:56]wFMCommunicate OK [01:19:56]wFMCommunicate request_size=10 [01:19:56]MH_SAM_APDU [01:19:56]CAPDU: 80 0D 02 02 05 F4 20 F3 7A AB [01:19:56]Write to MH i2c: E2 0D 00 DE 4B 80 0D 02 02 05 00 F4 20 F3 7A AB 00 00 D9 [01:19:56]Write i2c OK [01:19:56]MH_I2C_Read... [01:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:19:56]Read from MH i2c: E2 [01:19:56]MH_I2C_Read... [01:19:56]Read from MH i2c: E2 03 00 [01:19:56]MH_I2C_Read... [01:19:56]Read from MH i2c: E2 03 00 DE 4B 00 90 00 9D [01:19:56]RAPDU: 90 00 [01:19:56]wFMCommunicate OK [01:19:56]wFMCommunicate request_size=4 [01:19:56]MH_SAM_APDU [01:19:56]CAPDU: 80 0D 03 02 [01:19:56]Write to MH i2c: E2 08 00 DF 4B 80 0D 03 02 00 00 00 00 A5 [01:19:56]Write i2c OK [01:19:56]MH_I2C_Read... [01:19:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:19:57]Read from MH i2c: E2 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: E2 0B 00 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: E2 0B 00 DF 4B 00 E8 73 3A 07 19 2A 06 4D 90 00 D8 [01:19:57]RAPDU: E8 73 3A 07 19 2A 06 4D 90 00 [01:19:57]wFMCommunicate OK [01:19:57]SAM_PROTO_SignData done [01:19:57]FM_MakeSignedData done [01:19:57]CreateOFDProtocolMessage [01:19:57]wFMCommunicate request_size=4 [01:19:57]MH_SAM_APDU [01:19:57]CAPDU: 80 11 00 00 [01:19:57]Write to MH i2c: E2 08 00 E0 4B 80 11 00 00 00 00 00 00 A5 [01:19:57]Write i2c OK [01:19:57]MH_I2C_Read... [01:19:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:57]Read from MH i2c: E2 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: E2 17 00 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: E2 17 00 E0 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 05 [01:19:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:19:57]wFMCommunicate OK [01:19:57]CreateOFDProtocolMessage done [01:19:57]OFDSenderStorePacket 162984 [01:19:57]StoreOFDPacket docnum=162984 [01:19:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6F 12 07 01 48 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 3F 79 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7C 02 00 35 04 06 00 85 F4 20 F3 7A AB E8 73 3A 07 19 2A 06 4D [01:19:57]CheckFolder [01:19:57]dirname=/storage/ofd_packets [01:19:57]CheckFolder done [01:19:57]ProducePacketName [01:19:57]name=ofd_packets/00162984 [01:19:57]NVStorageSaveData ofd_packets/00162984 [01:19:57]File name is /storage/ofd_packets/00162984 [01:19:57]Write 301 bytes [01:19:57]NVStorageSaveData done [01:19:57]OFDSenderStorePacket done [01:19:57]KKMCreateOFDPacket done [01:19:57]NVStorageSaveData kkm_last_timestamp [01:19:57]File name is /storage/kkm_last_timestamp [01:19:57]Write 4 bytes [01:19:57]NVStorageSaveData done [01:19:57]ExternCall_PrintAddStr [01:19:57]wPrintStart [01:19:57]Write to MH i2c: 01 00 00 E1 4B 2C [01:19:57]Write i2c OK [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: 01 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: 01 07 00 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: 01 07 00 E1 4B 00 00 00 00 00 FF 0F 41 [01:19:57]RasterBufferAndPrint [01:19:57]line Счет N : (1)1319600 [01:19:57]line ИНН: 02508201610067 [01:19:57]line Контрольно-Кассовый Чек [01:19:57]line ПРОДАЖА [01:19:57]line ТРК (МРК, ГНК) : 53 [01:19:57]line Товар: 2710124130 [01:19:57]line Аи-92-К-5 [01:19:57]line 15.090 * 66.30 [01:19:57]line = 1000.47 [01:19:57]line НДС 12% НСП 1% [01:19:57]line > о реализуемом товаре [01:19:57]line ОКРУГЛЕНИЕ: -0.47 [01:19:57]line ИТОГО: 1000.00 [01:19:57]line Внесено: 1000.00 [01:19:57]line СДАЧА: 0.00 [01:19:57]line НСП 1% : 8.85 [01:19:57]line НДС 12% : 106.24 [01:19:57]line Наличными: 1000.00 [01:19:57]line Безнал.: 0.00 [01:19:57]line Место: АЗС № 140 "Партнер Нефть" [01:19:57]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:19:57]line СНО: Общий режим [01:19:57]line Чек 8 15.07.2024 01:19 [01:19:57]line Смена: 464 ФФД: 1.0 [01:19:57]line ЗНМ: 0300000129 [01:19:57]line РНМ: 0000000000090858 [01:19:57]line Версия ККМ: 001 [01:19:57]line ФМ: 0000000000874899 [01:19:57]line ФД: 162984 [01:19:57]line ФПД: 147283571341995 [01:19:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T011959&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162984&fm=147283571341995&tin=02508201610067®Number=0000000000090858&sum=100000 [01:19:57]OFD Sender: Processing packet 162984 [packets to send 106, broken 105] [01:19:57]ProducePacketName [01:19:57]name=ofd_packets/00162984 [01:19:57]OFD Sender: To server: pG, [01:19:57]CommunicateWithHost lk.salyk.kg:30040 [01:19:57]ConnectInit lk.salyk.kg [01:19:57]written 0, free lines is 4095 [01:19:57]Write to MH i2c: 01 00 00 0C 4C 58 [01:19:57]Write i2c OK [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: 01 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: 01 07 00 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: 01 07 00 0C 4C 00 00 00 00 00 D1 0C 3C [01:19:57]RasterBufferAndPrint [01:19:57]line [01:19:57]line [01:19:57]line [01:19:57]line [01:19:57]line [01:19:57]written 0, free lines is 3287 [01:19:57]MH_Cut [01:19:57]Write to MH i2c: D1 01 00 13 4C 01 31 [01:19:57]Write i2c OK [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: D1 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: D1 01 00 [01:19:57]MH_I2C_Read... [01:19:57]Read from MH i2c: D1 01 00 13 4C 00 30 [01:19:57]Write to MH i2c: 01 00 00 14 4C 60 [01:19:57]Write i2c OK [01:19:57]MH_I2C_Read... [01:19:58]*** Cut start [01:19:58]*** Purtial cut [01:19:58]*** Stage 1: CUTSNS_PIN = 1 [01:19:58]Read from MH i2c: 01 [01:19:58]MH_I2C_Read... [01:19:58]*** Stop cut motor [01:19:58]*** Cut end [01:19:58]Read from MH i2c: 01 07 00 [01:19:58]MH_I2C_Read... [01:19:58]Read from MH i2c: 01 07 00 14 4C 00 00 00 00 00 FF 0F 75 [01:19:58]process_action close_receipt done [01:19:58]requested_data is exist [01:19:58]produce_requested_data [01:19:58]requested_item fm.sn is exist - process it [01:19:58]wFMCommunicate request_size=4 [01:19:58]MH_SAM_APDU [01:19:58]CAPDU: 80 11 00 00 [01:19:58]Write to MH i2c: E2 08 00 15 4C 80 11 00 00 00 00 00 00 DB [01:19:58]Write i2c OK [01:19:58]MH_I2C_Read... [01:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:58]Read from MH i2c: E2 [01:19:58]MH_I2C_Read... [01:19:58]Read from MH i2c: E2 17 00 [01:19:58]MH_I2C_Read... [01:19:58]Read from MH i2c: E2 17 00 15 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3B [01:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:19:58]wFMCommunicate OK [01:19:58]requested_item fd.num is exist - process it [01:19:58]SAM_PROTO_GetFieldsCounters [01:19:58]wFMCommunicate request_size=4 [01:19:58]MH_SAM_APDU [01:19:58]CAPDU: 80 13 00 00 [01:19:58]Write to MH i2c: E2 08 00 16 4C 80 13 00 00 00 00 00 00 DE [01:19:58]Write i2c OK [01:19:58]MH_I2C_Read... [01:19:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:59]Read from MH i2c: E2 [01:19:59]MH_I2C_Read... [01:19:59]Read from MH i2c: E2 62 00 [01:19:59]MH_I2C_Read... [01:19:59]Read from MH i2c: E2 62 00 16 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A8 7C 02 00 0E 04 04 00 D0 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 20 [01:19:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A8 7C 02 00 0E 04 04 00 D0 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 [01:19:59]wFMCommunicate OK [01:19:59]SAM_PROTO_GetFieldsCounters done [01:19:59]requested_item shift.num is exist - process it [01:19:59]requested_item shift.opened is exist - process it [01:19:59]req_shift_opened [01:19:59]FM_GetShiftState [01:19:59]SAM_PROTO_GetShiftState [01:19:59]wFMCommunicate request_size=4 [01:19:59]MH_SAM_APDU [01:19:59]CAPDU: 80 13 01 00 [01:19:59]Write to MH i2c: E2 08 00 17 4C 80 13 01 00 00 00 00 00 E0 [01:19:59]Write i2c OK [01:19:59]MH_I2C_Read... [01:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:59]Read from MH i2c: E2 [01:19:59]MH_I2C_Read... [01:19:59]Read from MH i2c: E2 0E 00 [01:19:59]MH_I2C_Read... [01:19:59]Read from MH i2c: E2 0E 00 17 4C 00 09 00 01 45 67 94 66 00 00 00 00 90 00 92 [01:19:59]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:19:59]wFMCommunicate OK [01:19:59]SAM_PROTO_GetShiftState done [01:19:59]FM_GetShiftState done [01:19:59]req_shift_opened done [01:19:59]requested_item shift.open_date is exist - process it [01:19:59]req_shift_open_date [01:19:59]req_shift_open_date done [01:19:59]produce_requested_data done [01:19:59]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162984,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [01:19:59]process_action_free close_receipt [01:19:59]json_value_free [01:19:59]json_value_free done [01:19:59]process_json_proto returns [01:19:59]Send response to host [01:19:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162984,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [01:19:59]free response buf [01:19:59]execute_script done [01:19:59]execute_script returns [01:19:59]free content buf [01:19:59]Sock 7.Close socket [01:19:59]Sock 7.Thread stoped [01:22:09]ConnectInit Can't connect to host [01:22:09]CommunicateWithHost connect error [01:22:09]CommunicateWithHost err = -1 [01:22:09]OFD Sender: Server communicate error [01:22:14]OFD Sender: Processing packet 162984 [packets to send 106, broken 105] [01:22:14]ProducePacketName [01:22:14]name=ofd_packets/00162984 [01:22:14]OFD Sender: To server: pG, [01:22:14]CommunicateWithHost lk.salyk.kg:30040 [01:22:14]ConnectInit lk.salyk.kg [01:22:14]Connected sock=7 [01:22:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6F 12 07 01 48 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 3F 79 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7C 02 00 35 04 06 00 85 F4 20 F3 7A AB E8 73 3A 07 19 2A 06 4D [01:22:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AB D9 47 00 AD 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7C 02 00 F4 03 04 00 D3 25 94 66 B6 04 01 00 00 34 1C B3 7D 4B 10 7F 94 [01:22:14]CommunicateWithHost err = 0 [01:22:14]CheckOFDResponse [01:22:14]1017 (14) - 77093643461234 [01:22:14]1041 (16) - 0000000000874899 [01:22:14]1040 (4) - 162984 [01:22:14]1012 (4) - 14.07.2024 19:24 [01:22:14]1206 (1) - 0 [01:22:14]OFD Sender: Remove packet 162984 [01:22:14]ProducePacketName [01:22:14]name=ofd_packets/00162984 [01:22:14]NVStorageDeleteData [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:03]accept exits with 9 [01:28:03]New connection [01:28:03]New thread 3066735972 created [01:28:03]Thread 3066879332 joined [01:28:03]Waiting for new connection... [01:28:03] Sock 9.Parse request [01:28:03]Sock 9.Check first char [01:28:03]Sock 9.First char is OK [01:28:03]request: POST /json_proto HTTP/1.0 [01:28:03]Method: POST [01:28:03]URL: /json_proto [01:28:03]Method is POST - this is cgi request [01:28:03]url: /json_proto [01:28:03]query_string will be loaded in cgi processing [01:28:03]execute_cgi json_proto POST (null) [01:28:03]execute_cgi path=json_proto method=POST [01:28:03]POST find Content-Length [01:28:03]Host: 172.17.39.67:8080 [01:28:03]Content-Length: 683 [01:28:03]Content-Type: application/json [01:28:03] [01:28:03]POST finish read [01:28:03]Found Content-Length = 683 [01:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 24.740, "sum" : 1640.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1640.00, "total" : 1640.00, "payments": [ { "type": 0, "sum" : 1640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:28:03]execute_script... [01:28:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 24.740, "sum" : 1640.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1640.00, "total" : 1640.00, "payments": [ { "type": 0, "sum" : 1640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:28:03]POST & json_proto [01:28:03]process_json_proto [01:28:03]json parsed OK: [01:28:03]protocol is kg_v1.0 [01:28:03]action value=close_receipt [01:28:03]process_action close_receipt [01:28:03]cmd_close_receipt [01:28:03]MH_GetDate [01:28:03]Write to MH i2c: F0 00 00 18 4C 53 [01:28:03]Write i2c OK [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: F0 [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: F0 09 00 [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: F0 09 00 18 4C 00 27 7B 94 66 B6 85 93 66 2C [01:28:03]GetLastDocTimeStamp 1721006399 [01:28:03]current date 1721006887 [01:28:03]FM_GetShiftState [01:28:03]SAM_PROTO_GetShiftState [01:28:03]wFMCommunicate request_size=4 [01:28:03]MH_SAM_APDU [01:28:03]CAPDU: 80 13 01 00 [01:28:03]Write to MH i2c: E2 08 00 19 4C 80 13 01 00 00 00 00 00 E2 [01:28:03]Write i2c OK [01:28:03]MH_I2C_Read... [01:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:28:03]Read from MH i2c: E2 [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: E2 0E 00 [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: E2 0E 00 19 4C 00 09 00 01 45 67 94 66 00 00 00 00 90 00 94 [01:28:03]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:28:03]wFMCommunicate OK [01:28:03]SAM_PROTO_GetShiftState done [01:28:03]FM_GetShiftState done [01:28:03]opened in 1721001797 [01:28:03]opened+sec_in_day 1721088197 [01:28:03]quantity*price = 164026 [01:28:03]sum+1 = 164027 [01:28:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1640.00 Внесено: 1640.00 СДАЧА: 0.00 НСП 1% : 14.52 НДС 12% : 174.19 Наличными: 1640.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 9 15.07.2024 01:28 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162985 ФПД: 231681500602565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T012807&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162985&fm=231681500602565&tin=02508201610067®Number=0000000000090858&sum=164000 [01:28:04]StoreToDocumentArchive [01:28:04]shift 464 fd 162985 [01:28:04]save to /storage/0464/doc_00162985 [01:28:04]save last doc name /storage/0464/doc_00162985 to /storage/kkm_last_doc_name [01:28:04]save OK [01:28:04]Clear old archive folders... [01:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:28:04]tlvbuf is 0123BCA0 [01:28:04]SAM_PROTO_ClearQueue [01:28:04]wFMCommunicate request_size=4 [01:28:04]MH_SAM_APDU [01:28:04]CAPDU: 80 09 00 00 [01:28:04]Write to MH i2c: E2 08 00 26 4C 80 09 00 00 00 00 00 00 E4 [01:28:04]Write i2c OK [01:28:04]MH_I2C_Read... [01:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:28:04]Read from MH i2c: E2 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: E2 03 00 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: E2 03 00 26 4C 00 90 00 E6 [01:28:04]RAPDU: 90 00 [01:28:04]wFMCommunicate OK [01:28:04]SAM_PROTO_ClearQueue done [01:28:04]KKMCreateOFDPacket [01:28:04]OFDProtocolAddRootSTLVToBuf [01:28:04]FM_MakeSignedData [01:28:04]FM_MakeSignedData [01:28:04]SAM_PROTO_SignData [01:28:04]wFMCommunicate request_size=4 [01:28:04]MH_SAM_APDU [01:28:04]CAPDU: 80 0D 01 02 [01:28:04]Write to MH i2c: E2 08 00 27 4C 80 0D 01 02 00 00 00 00 EC [01:28:04]Write i2c OK [01:28:04]MH_I2C_Read... [01:28:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:28:04]Read from MH i2c: E2 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: E2 03 00 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: E2 03 00 27 4C 00 90 00 E7 [01:28:04]RAPDU: 90 00 [01:28:04]wFMCommunicate OK [01:28:04]wFMCommunicate request_size=255 [01:28:04]MH_SAM_APDU [01:28: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 A4 60 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BA 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 44 00 00 00 00 07 04 06 00 A0 80 02 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 27 7B 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7C 02 00 35 04 06 00 D2 [01:28:04]Write to MH i2c: E2 02 01 28 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 60 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BA 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 44 00 00 00 00 07 04 06 00 A0 80 02 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 27 7B 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7C 02 00 35 04 06 00 D2 00 00 FA [01:28:04]Write i2c OK [01:28:04]MH_I2C_Read... [01:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:28:04]Read from MH i2c: E2 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: E2 03 00 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: E2 03 00 28 4C 00 90 00 E8 [01:28:04]RAPDU: 90 00 [01:28:04]wFMCommunicate OK [01:28:04]wFMCommunicate request_size=10 [01:28:04]MH_SAM_APDU [01:28:04]CAPDU: 80 0D 02 02 05 B6 8D 8B 60 C5 [01:28:04]Write to MH i2c: E2 0D 00 29 4C 80 0D 02 02 05 00 B6 8D 8B 60 C5 00 00 EC [01:28:04]Write i2c OK [01:28:04]MH_I2C_Read... [01:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:28:04]Read from MH i2c: E2 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: E2 03 00 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: E2 03 00 29 4C 00 90 00 E9 [01:28:04]RAPDU: 90 00 [01:28:04]wFMCommunicate OK [01:28:04]wFMCommunicate request_size=4 [01:28:04]MH_SAM_APDU [01:28:04]CAPDU: 80 0D 03 02 [01:28:04]Write to MH i2c: E2 08 00 2A 4C 80 0D 03 02 00 00 00 00 F1 [01:28:04]Write i2c OK [01:28:04]MH_I2C_Read... [01:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:28:05]Read from MH i2c: E2 [01:28:05]MH_I2C_Read... [01:28:05]Read from MH i2c: E2 0B 00 [01:28:05]MH_I2C_Read... [01:28:05]Read from MH i2c: E2 0B 00 2A 4C 00 07 09 DF B0 6A D8 90 79 90 00 DC [01:28:05]RAPDU: 07 09 DF B0 6A D8 90 79 90 00 [01:28:05]wFMCommunicate OK [01:28:05]SAM_PROTO_SignData done [01:28:05]FM_MakeSignedData done [01:28:05]CreateOFDProtocolMessage [01:28:05]wFMCommunicate request_size=4 [01:28:05]MH_SAM_APDU [01:28:05]CAPDU: 80 11 00 00 [01:28:05]Write to MH i2c: E2 08 00 2B 4C 80 11 00 00 00 00 00 00 F1 [01:28:05]Write i2c OK [01:28:05]MH_I2C_Read... [01:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:28:05]Read from MH i2c: E2 [01:28:05]MH_I2C_Read... [01:28:05]Read from MH i2c: E2 17 00 [01:28:05]MH_I2C_Read... [01:28:05]Read from MH i2c: E2 17 00 2B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 51 [01:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:28:05]wFMCommunicate OK [01:28:05]CreateOFDProtocolMessage done [01:28:05]OFDSenderStorePacket 162985 [01:28:05]StoreOFDPacket docnum=162985 [01:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4E FF 07 01 CB 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 A4 60 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BA 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 44 00 00 00 00 07 04 06 00 A0 80 02 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 27 7B 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7C 02 00 35 04 06 00 D2 B6 8D 8B 60 C5 07 09 DF B0 6A D8 90 79 [01:28:05]CheckFolder [01:28:05]dirname=/storage/ofd_packets [01:28:05]CheckFolder done [01:28:05]ProducePacketName [01:28:05]name=ofd_packets/00162985 [01:28:05]NVStorageSaveData ofd_packets/00162985 [01:28:05]File name is /storage/ofd_packets/00162985 [01:28:05]Write 301 bytes [01:28:05]NVStorageSaveData done [01:28:05]OFDSenderStorePacket done [01:28:05]KKMCreateOFDPacket done [01:28:05]NVStorageSaveData kkm_last_timestamp [01:28:05]File name is /storage/kkm_last_timestamp [01:28:05]Write 4 bytes [01:28:05]NVStorageSaveData done [01:28:05]ExternCall_PrintAddStr [01:28:05]wPrintStart [01:28:05]Write to MH i2c: 01 00 00 2C 4C 78 [01:28:05]Write i2c OK [01:28:05]MH_I2C_Read... [01:28:05]Read from MH i2c: 01 [01:28:05]MH_I2C_Read... [01:28:05]Read from MH i2c: 01 07 00 [01:28:05]MH_I2C_Read... [01:28:05]Read from MH i2c: 01 07 00 2C 4C 00 00 00 00 00 FF 0F 8D [01:28:05]RasterBufferAndPrint [01:28:05]line Счет N : (1)1319602 [01:28:05]line ИНН: 02508201610067 [01:28:05]line Контрольно-Кассовый Чек [01:28:05]line ПРОДАЖА [01:28:05]line ТРК (МРК, ГНК) : 53 [01:28:05]line Товар: 2710124130 [01:28:05]line Аи-92-К-5 [01:28:05]line 24.740 * 66.30 [01:28:05]line = 1640.26 [01:28:05]line НДС 12% НСП 1% [01:28:05]line > о реализуемом товаре [01:28:05]line ОКРУГЛЕНИЕ: -0.26 [01:28:05]line ИТОГО: 1640.00 [01:28:05]line Внесено: 1640.00 [01:28:05]line СДАЧА: 0.00 [01:28:05]line НСП 1% : 14.52 [01:28:05]line НДС 12% : 174.19 [01:28:05]line Наличными: 1640.00 [01:28:05]line Безнал.: 0.00 [01:28:05]line Место: АЗС № 140 "Партнер Нефть" [01:28:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:28:05]line СНО: Общий режим [01:28:05]line Чек 9 15.07.2024 01:28 [01:28:05]line Смена: 464 ФФД: 1.0 [01:28:05]line ЗНМ: 0300000129 [01:28:05]line РНМ: 0000000000090858 [01:28:05]line Версия ККМ: 001 [01:28:05]line ФМ: 0000000000874899 [01:28:05]line ФД: 162985 [01:28:05]line ФПД: 231681500602565 [01:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T012807&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162985&fm=231681500602565&tin=02508201610067®Number=0000000000090858&sum=164000 [01:28:05]OFD Sender: Processing packet 162985 [packets to send 106, broken 105] [01:28:05]ProducePacketName [01:28:05]name=ofd_packets/00162985 [01:28:05]OFD Sender: To server: pG, [01:28:05]CommunicateWithHost lk.salyk.kg:30040 [01:28:05]ConnectInit lk.salyk.kg [01:28:05]written 0, free lines is 4095 [01:28:05]Connected sock=10 [01:28:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4E FF 07 01 CB 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 A4 60 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BA 80 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 80 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 44 00 00 00 00 07 04 06 00 A0 80 02 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 27 7B 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7C 02 00 35 04 06 00 D2 B6 8D 8B 60 C5 07 09 DF B0 6A D8 90 79 [01:28:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 DF 07 47 00 25 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7C 02 00 F4 03 04 00 33 27 94 66 B6 04 01 00 00 BB C9 93 CD 2C 44 ED EC [01:28:05]CommunicateWithHost err = 0 [01:28:05]CheckOFDResponse [01:28:05]1017 (14) - 77093643461234 [01:28:05]1041 (16) - 0000000000874899 [01:28:05]1040 (4) - 162985 [01:28:05]1012 (4) - 14.07.2024 19:29 [01:28:05]1206 (1) - 0 [01:28:05]OFD Sender: Remove packet 162985 [01:28:05]ProducePacketName [01:28:05]name=ofd_packets/00162985 [01:28:05]NVStorageDeleteData [01:28:05]Write to MH i2c: 01 00 00 57 4C A3 [01:28:05]Write i2c OK [01:28:05]MH_I2C_Read... [01:28:05]Read from MH i2c: 01 [01:28:05]MH_I2C_Read... [01:28:05]Read from MH i2c: 01 07 00 [01:28:05]MH_I2C_Read... [01:28:05]Read from MH i2c: 01 07 00 57 4C 00 00 00 00 00 EA 0C A0 [01:28:05]RasterBufferAndPrint [01:28:05]line [01:28:05]line [01:28:05]line [01:28:05]line [01:28:05]line [01:28:05]written 0, free lines is 3315 [01:28:05]MH_Cut [01:28:05]Write to MH i2c: D1 01 00 5E 4C 01 7C [01:28:05]Write i2c OK [01:28:05]MH_I2C_Read... [01:28:05]Read from MH i2c: D1 [01:28:05]MH_I2C_Read... [01:28:05]Read from MH i2c: D1 01 00 [01:28:05]MH_I2C_Read... [01:28:05]Read from MH i2c: D1 01 00 5E 4C 00 7B [01:28:05]Write to MH i2c: 01 00 00 5F 4C AB [01:28:05]Write i2c OK [01:28:05]MH_I2C_Read... [01:28:06]OFD Sender: No OFD packet to send [01:28:06]*** Cut start [01:28:06]*** Purtial cut [01:28:06]*** CUTSNS_PIN = 0 [01:28:06]*** Stage 1: CUTSNS_PIN = 1 [01:28:08]Read from MH i2c: 01 [01:28:08]MH_I2C_Read... [01:28:08]*** Stop cut motor [01:28:08]*** Cut end [01:28:08]Read from MH i2c: 01 07 00 [01:28:08]MH_I2C_Read... [01:28:08]Read from MH i2c: 01 07 00 5F 4C 00 00 00 00 00 FF 0F C0 [01:28:08]process_action close_receipt done [01:28:08]requested_data is exist [01:28:08]produce_requested_data [01:28:08]requested_item fm.sn is exist - process it [01:28:08]wFMCommunicate request_size=4 [01:28:08]MH_SAM_APDU [01:28:08]CAPDU: 80 11 00 00 [01:28:08]Write to MH i2c: E2 08 00 60 4C 80 11 00 00 00 00 00 00 26 [01:28:08]Write i2c OK [01:28:08]MH_I2C_Read... [01:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:28:08]Read from MH i2c: E2 [01:28:08]MH_I2C_Read... [01:28:08]Read from MH i2c: E2 17 00 [01:28:08]MH_I2C_Read... [01:28:08]Read from MH i2c: E2 17 00 60 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 86 [01:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:28:08]wFMCommunicate OK [01:28:08]requested_item fd.num is exist - process it [01:28:08]SAM_PROTO_GetFieldsCounters [01:28:08]wFMCommunicate request_size=4 [01:28:08]MH_SAM_APDU [01:28:08]CAPDU: 80 13 00 00 [01:28:08]Write to MH i2c: E2 08 00 61 4C 80 13 00 00 00 00 00 00 29 [01:28:08]Write i2c OK [01:28:08]MH_I2C_Read... [01:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:28:08]Read from MH i2c: E2 [01:28:08]MH_I2C_Read... [01:28:08]Read from MH i2c: E2 62 00 [01:28:08]MH_I2C_Read... [01:28:08]Read from MH i2c: E2 62 00 61 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A9 7C 02 00 0E 04 04 00 D0 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 6F [01:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A9 7C 02 00 0E 04 04 00 D0 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 [01:28:08]wFMCommunicate OK [01:28:08]SAM_PROTO_GetFieldsCounters done [01:28:08]requested_item shift.num is exist - process it [01:28:08]requested_item shift.opened is exist - process it [01:28:08]req_shift_opened [01:28:08]FM_GetShiftState [01:28:08]SAM_PROTO_GetShiftState [01:28:08]wFMCommunicate request_size=4 [01:28:08]MH_SAM_APDU [01:28:08]CAPDU: 80 13 01 00 [01:28:08]Write to MH i2c: E2 08 00 62 4C 80 13 01 00 00 00 00 00 2B [01:28:08]Write i2c OK [01:28:08]MH_I2C_Read... [01:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:28:08]Read from MH i2c: E2 [01:28:08]MH_I2C_Read... [01:28:08]Read from MH i2c: E2 0E 00 [01:28:08]MH_I2C_Read... [01:28:08]Read from MH i2c: E2 0E 00 62 4C 00 09 00 01 45 67 94 66 00 00 00 00 90 00 DD [01:28:08]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:28:08]wFMCommunicate OK [01:28:08]SAM_PROTO_GetShiftState done [01:28:08]FM_GetShiftState done [01:28:08]req_shift_opened done [01:28:08]requested_item shift.open_date is exist - process it [01:28:08]req_shift_open_date [01:28:08]req_shift_open_date done [01:28:08]produce_requested_data done [01:28:08]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162985,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [01:28:08]process_action_free close_receipt [01:28:08]json_value_free [01:28:08]json_value_free done [01:28:08]process_json_proto returns [01:28:08]Send response to host [01:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162985,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [01:28:08]free response buf [01:28:08]execute_script done [01:28:08]execute_script returns [01:28:08]free content buf [01:28:08]Sock 9.Close socket [01:28:08]Sock 9.Thread stoped [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:22]accept exits with 7 [01:35:22]New connection [01:35:22]New thread 3066879332 created [01:35:22]Thread 3066735972 joined [01:35:22]Waiting for new connection... [01:35:22] Sock 7.Parse request [01:35:22]Sock 7.Check first char [01:35:22]Sock 7.First char is OK [01:35:22]request: POST /json_proto HTTP/1.0 [01:35:22]Method: POST [01:35:22]URL: /json_proto [01:35:22]Method is POST - this is cgi request [01:35:22]url: /json_proto [01:35:22]query_string will be loaded in cgi processing [01:35:22]execute_cgi json_proto POST (null) [01:35:22]execute_cgi path=json_proto method=POST [01:35:22]POST find Content-Length [01:35:22]Host: 172.17.39.67:8080 [01:35:22]Content-Length: 683 [01:35:22]Content-Type: application/json [01:35:22] [01:35:22]POST finish read [01:35:22]Found Content-Length = 683 [01:35:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "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" ] } } [01:35:22]execute_script... [01:35: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)1319603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "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" ] } } [01:35:22]POST & json_proto [01:35:22]process_json_proto [01:35:22]json parsed OK: [01:35:22]protocol is kg_v1.0 [01:35:22]action value=close_receipt [01:35:22]process_action close_receipt [01:35:22]cmd_close_receipt [01:35:22]MH_GetDate [01:35:22]Write to MH i2c: F0 00 00 63 4C 9E [01:35:22]Write i2c OK [01:35:22]MH_I2C_Read... [01:35:22]Read from MH i2c: F0 [01:35:22]MH_I2C_Read... [01:35:22]Read from MH i2c: F0 09 00 [01:35:22]MH_I2C_Read... [01:35:22]Read from MH i2c: F0 09 00 63 4C 00 DE 7C 94 66 B6 85 93 66 2F [01:35:22]GetLastDocTimeStamp 1721006887 [01:35:22]current date 1721007326 [01:35:22]FM_GetShiftState [01:35:22]SAM_PROTO_GetShiftState [01:35:22]wFMCommunicate request_size=4 [01:35:22]MH_SAM_APDU [01:35:22]CAPDU: 80 13 01 00 [01:35:22]Write to MH i2c: E2 08 00 64 4C 80 13 01 00 00 00 00 00 2D [01:35:22]Write i2c OK [01:35:22]MH_I2C_Read... [01:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:22]Read from MH i2c: E2 [01:35:22]MH_I2C_Read... [01:35:22]Read from MH i2c: E2 0E 00 [01:35:22]MH_I2C_Read... [01:35:22]Read from MH i2c: E2 0E 00 64 4C 00 09 00 01 45 67 94 66 00 00 00 00 90 00 DF [01:35:22]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:35:22]wFMCommunicate OK [01:35:22]SAM_PROTO_GetShiftState done [01:35:22]FM_GetShiftState done [01:35:22]opened in 1721001797 [01:35:22]opened+sec_in_day 1721088197 [01:35:22]quantity*price = 40002 [01:35:22]sum+1 = 40004 [01:35:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 10 15.07.2024 01:35 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162986 ФПД: 60300028694310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T013526&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162986&fm=60300028694310&tin=02508201610067®Number=0000000000090858&sum=40000 [01:35:23]StoreToDocumentArchive [01:35:23]shift 464 fd 162986 [01:35:23]save to /storage/0464/doc_00162986 [01:35:23]save last doc name /storage/0464/doc_00162986 to /storage/kkm_last_doc_name [01:35:23]save OK [01:35:23]Clear old archive folders... [01:35:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:35:23]tlvbuf is B6D96390 [01:35:23]SAM_PROTO_ClearQueue [01:35:23]wFMCommunicate request_size=4 [01:35:23]MH_SAM_APDU [01:35:23]CAPDU: 80 09 00 00 [01:35:23]Write to MH i2c: E2 08 00 71 4C 80 09 00 00 00 00 00 00 2F [01:35:23]Write i2c OK [01:35:23]MH_I2C_Read... [01:35:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:35:23]Read from MH i2c: E2 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: E2 03 00 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: E2 03 00 71 4C 00 90 00 31 [01:35:23]RAPDU: 90 00 [01:35:23]wFMCommunicate OK [01:35:23]SAM_PROTO_ClearQueue done [01:35:23]KKMCreateOFDPacket [01:35:23]OFDProtocolAddRootSTLVToBuf [01:35:23]FM_MakeSignedData [01:35:23]FM_MakeSignedData [01:35:23]SAM_PROTO_SignData [01:35:23]wFMCommunicate request_size=4 [01:35:23]MH_SAM_APDU [01:35:23]CAPDU: 80 0D 01 02 [01:35:23]Write to MH i2c: E2 08 00 72 4C 80 0D 01 02 00 00 00 00 37 [01:35:23]Write i2c OK [01:35:23]MH_I2C_Read... [01:35:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:35:23]Read from MH i2c: E2 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: E2 03 00 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: E2 03 00 72 4C 00 90 00 32 [01:35:23]RAPDU: 90 00 [01:35:23]wFMCommunicate OK [01:35:23]wFMCommunicate request_size=255 [01:35:23]MH_SAM_APDU [01:35:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 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 0A 00 00 00 F4 03 04 00 DE 7C 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7C 02 00 35 04 06 00 [01:35:23]Write to MH i2c: E2 02 01 73 4C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 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 0A 00 00 00 F4 03 04 00 DE 7C 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7C 02 00 35 04 06 00 00 00 9A [01:35:23]Write i2c OK [01:35:23]MH_I2C_Read... [01:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:23]Read from MH i2c: E2 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: E2 03 00 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: E2 03 00 73 4C 00 90 00 33 [01:35:23]RAPDU: 90 00 [01:35:23]wFMCommunicate OK [01:35:23]wFMCommunicate request_size=11 [01:35:23]MH_SAM_APDU [01:35:23]CAPDU: 80 0D 02 02 06 36 D7 B1 CA 4F 26 [01:35:23]Write to MH i2c: E2 0E 00 74 4C 80 0D 02 02 06 00 36 D7 B1 CA 4F 26 00 00 43 [01:35:23]Write i2c OK [01:35:23]MH_I2C_Read... [01:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:23]Read from MH i2c: E2 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: E2 03 00 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: E2 03 00 74 4C 00 90 00 34 [01:35:23]RAPDU: 90 00 [01:35:23]wFMCommunicate OK [01:35:23]wFMCommunicate request_size=4 [01:35:23]MH_SAM_APDU [01:35:23]CAPDU: 80 0D 03 02 [01:35:23]Write to MH i2c: E2 08 00 75 4C 80 0D 03 02 00 00 00 00 3C [01:35:23]Write i2c OK [01:35:23]MH_I2C_Read... [01:35:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:35:23]Read from MH i2c: E2 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: E2 0B 00 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: E2 0B 00 75 4C 00 F7 70 93 EA CE F9 BF 56 90 00 FD [01:35:23]RAPDU: F7 70 93 EA CE F9 BF 56 90 00 [01:35:23]wFMCommunicate OK [01:35:23]SAM_PROTO_SignData done [01:35:23]FM_MakeSignedData done [01:35:23]CreateOFDProtocolMessage [01:35:23]wFMCommunicate request_size=4 [01:35:23]MH_SAM_APDU [01:35:23]CAPDU: 80 11 00 00 [01:35:23]Write to MH i2c: E2 08 00 76 4C 80 11 00 00 00 00 00 00 3C [01:35:23]Write i2c OK [01:35:23]MH_I2C_Read... [01:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:23]Read from MH i2c: E2 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: E2 17 00 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: E2 17 00 76 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9C [01:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:35:23]wFMCommunicate OK [01:35:23]CreateOFDProtocolMessage done [01:35:23]OFDSenderStorePacket 162986 [01:35:23]StoreOFDPacket docnum=162986 [01:35:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A9 2F 08 01 0B 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 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 0A 00 00 00 F4 03 04 00 DE 7C 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7C 02 00 35 04 06 00 36 D7 B1 CA 4F 26 F7 70 93 EA CE F9 BF 56 [01:35:23]CheckFolder [01:35:23]dirname=/storage/ofd_packets [01:35:23]CheckFolder done [01:35:23]ProducePacketName [01:35:23]name=ofd_packets/00162986 [01:35:23]NVStorageSaveData ofd_packets/00162986 [01:35:23]File name is /storage/ofd_packets/00162986 [01:35:23]Write 302 bytes [01:35:23]NVStorageSaveData done [01:35:23]OFDSenderStorePacket done [01:35:23]KKMCreateOFDPacket done [01:35:23]NVStorageSaveData kkm_last_timestamp [01:35:23]File name is /storage/kkm_last_timestamp [01:35:23]Write 4 bytes [01:35:23]NVStorageSaveData done [01:35:23]ExternCall_PrintAddStr [01:35:23]wPrintStart [01:35:23]Write to MH i2c: 01 00 00 77 4C C3 [01:35:23]Write i2c OK [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: 01 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: 01 07 00 [01:35:23]MH_I2C_Read... [01:35:23]Read from MH i2c: 01 07 00 77 4C 00 00 00 00 00 FF 0F D8 [01:35:23]RasterBufferAndPrint [01:35:23]line Счет N : (1)1319603 [01:35:23]line ИНН: 02508201610067 [01:35:23]line Контрольно-Кассовый Чек [01:35:23]line ПРОДАЖА [01:35:23]line ТРК (МРК, ГНК) : 61 [01:35:23]line Товар: 2710194210 [01:35:23]line ДТ(л)-К-5 [01:35:23]line 5.510 * 72.60 [01:35:23]line = 400.03 [01:35:23]line НДС 12% НСП 1% [01:35:23]line > о реализуемом товаре [01:35:23]line ОКРУГЛЕНИЕ: -0.03 [01:35:23]line ИТОГО: 400.00 [01:35:23]line Внесено: 400.00 [01:35:23]line СДАЧА: 0.00 [01:35:23]line НСП 1% : 3.54 [01:35:23]line НДС 12% : 42.48 [01:35:23]line Наличными: 400.00 [01:35:23]line Безнал.: 0.00 [01:35:23]line Место: АЗС № 140 "Партнер Нефть" [01:35:23]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:35:23]line СНО: Общий режим [01:35:23]line Чек 10 15.07.2024 01:35 [01:35:23]line Смена: 464 ФФД: 1.0 [01:35:23]line ЗНМ: 0300000129 [01:35:23]line РНМ: 0000000000090858 [01:35:23]line Версия ККМ: 001 [01:35:23]line ФМ: 0000000000874899 [01:35:23]line ФД: 162986 [01:35:23]line ФПД: 60300028694310 [01:35:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T013526&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162986&fm=60300028694310&tin=02508201610067®Number=0000000000090858&sum=40000 [01:35:24]OFD Sender: Processing packet 162986 [packets to send 106, broken 105] [01:35:24]ProducePacketName [01:35:24]name=ofd_packets/00162986 [01:35:24]OFD Sender: To server: pG, [01:35:24]CommunicateWithHost lk.salyk.kg:30040 [01:35:24]ConnectInit lk.salyk.kg [01:35:24]written 0, free lines is 4095 [01:35:24]Connected sock=10 [01:35:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A9 2F 08 01 0B 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 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 0A 00 00 00 F4 03 04 00 DE 7C 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7C 02 00 35 04 06 00 36 D7 B1 CA 4F 26 F7 70 93 EA CE F9 BF 56 [01:35:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2C 2A 47 00 C1 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7C 02 00 F4 03 04 00 EA 28 94 66 B6 04 01 00 00 F9 CB 66 28 97 37 61 87 [01:35:24]CommunicateWithHost err = 0 [01:35:24]CheckOFDResponse [01:35:24]1017 (14) - 77093643461234 [01:35:24]1041 (16) - 0000000000874899 [01:35:24]1040 (4) - 162986 [01:35:24]1012 (4) - 14.07.2024 19:37 [01:35:24]1206 (1) - 0 [01:35:24]OFD Sender: Remove packet 162986 [01:35:24]ProducePacketName [01:35:24]name=ofd_packets/00162986 [01:35:24]NVStorageDeleteData [01:35:24]Write to MH i2c: 01 00 00 A2 4C EE [01:35:24]Write i2c OK [01:35:24]MH_I2C_Read... [01:35:24]Read from MH i2c: 01 [01:35:24]MH_I2C_Read... [01:35:24]Read from MH i2c: 01 07 00 [01:35:24]MH_I2C_Read... [01:35:24]Read from MH i2c: 01 07 00 A2 4C 00 00 00 00 00 D7 0C D8 [01:35:24]RasterBufferAndPrint [01:35:24]line [01:35:24]line [01:35:24]line [01:35:24]line [01:35:24]line [01:35:24]written 0, free lines is 3293 [01:35:24]MH_Cut [01:35:24]Write to MH i2c: D1 01 00 A9 4C 01 C7 [01:35:24]Write i2c OK [01:35:24]MH_I2C_Read... [01:35:24]Read from MH i2c: D1 [01:35:24]MH_I2C_Read... [01:35:24]Read from MH i2c: D1 01 00 [01:35:24]MH_I2C_Read... [01:35:24]Read from MH i2c: D1 01 00 A9 4C 00 C6 [01:35:24]Write to MH i2c: 01 00 00 AA 4C F6 [01:35:24]Write i2c OK [01:35:24]MH_I2C_Read... [01:35:25]OFD Sender: No OFD packet to send [01:35:25]*** Cut start [01:35:25]*** Purtial cut [01:35:25]*** Stage 1: CUTSNS_PIN = 1 [01:35:25]Read from MH i2c: 01 [01:35:25]MH_I2C_Read... [01:35:25]*** Stop cut motor [01:35:25]*** Cut end [01:35:25]Read from MH i2c: 01 07 00 [01:35:25]MH_I2C_Read... [01:35:25]Read from MH i2c: 01 07 00 AA 4C 00 00 00 00 00 FF 0F 0B [01:35:25]process_action close_receipt done [01:35:25]requested_data is exist [01:35:25]produce_requested_data [01:35:25]requested_item fm.sn is exist - process it [01:35:25]wFMCommunicate request_size=4 [01:35:25]MH_SAM_APDU [01:35:25]CAPDU: 80 11 00 00 [01:35:25]Write to MH i2c: E2 08 00 AB 4C 80 11 00 00 00 00 00 00 71 [01:35:25]Write i2c OK [01:35:25]MH_I2C_Read... [01:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:25]Read from MH i2c: E2 [01:35:25]MH_I2C_Read... [01:35:25]Read from MH i2c: E2 17 00 [01:35:25]MH_I2C_Read... [01:35:25]Read from MH i2c: E2 17 00 AB 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D1 [01:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:35:25]wFMCommunicate OK [01:35:25]requested_item fd.num is exist - process it [01:35:25]SAM_PROTO_GetFieldsCounters [01:35:25]wFMCommunicate request_size=4 [01:35:25]MH_SAM_APDU [01:35:25]CAPDU: 80 13 00 00 [01:35:25]Write to MH i2c: E2 08 00 AC 4C 80 13 00 00 00 00 00 00 74 [01:35:25]Write i2c OK [01:35:25]MH_I2C_Read... [01:35:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:35:25]Read from MH i2c: E2 [01:35:25]MH_I2C_Read... [01:35:25]Read from MH i2c: E2 62 00 [01:35:25]MH_I2C_Read... [01:35:25]Read from MH i2c: E2 62 00 AC 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AA 7C 02 00 0E 04 04 00 D0 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 BE [01:35:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AA 7C 02 00 0E 04 04 00 D0 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:35:25]wFMCommunicate OK [01:35:25]SAM_PROTO_GetFieldsCounters done [01:35:25]requested_item shift.num is exist - process it [01:35:25]requested_item shift.opened is exist - process it [01:35:25]req_shift_opened [01:35:25]FM_GetShiftState [01:35:25]SAM_PROTO_GetShiftState [01:35:25]wFMCommunicate request_size=4 [01:35:25]MH_SAM_APDU [01:35:25]CAPDU: 80 13 01 00 [01:35:25]Write to MH i2c: E2 08 00 AD 4C 80 13 01 00 00 00 00 00 76 [01:35:25]Write i2c OK [01:35:25]MH_I2C_Read... [01:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:26]Read from MH i2c: E2 [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: E2 0E 00 [01:35:26]MH_I2C_Read... [01:35:26]Read from MH i2c: E2 0E 00 AD 4C 00 09 00 01 45 67 94 66 00 00 00 00 90 00 28 [01:35:26]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:35:26]wFMCommunicate OK [01:35:26]SAM_PROTO_GetShiftState done [01:35:26]FM_GetShiftState done [01:35:26]req_shift_opened done [01:35:26]requested_item shift.open_date is exist - process it [01:35:26]req_shift_open_date [01:35:26]req_shift_open_date done [01:35:26]produce_requested_data done [01:35:26]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162986,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [01:35:26]process_action_free close_receipt [01:35:26]json_value_free [01:35:26]json_value_free done [01:35:26]process_json_proto returns [01:35:26]Send response to host [01:35:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162986,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [01:35:26]free response buf [01:35:26]execute_script done [01:35:26]execute_script returns [01:35:26]free content buf [01:35:26]Sock 7.Close socket [01:35:26]Sock 7.Thread stoped [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]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]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [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: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:28]accept exits with 9 [01:45:28]New connection [01:45:28]New thread 3066735972 created [01:45:28]Thread 3066879332 joined [01:45:28]Waiting for new connection... [01:45:28] Sock 9.Parse request [01:45:28]Sock 9.Check first char [01:45:28]Sock 9.First char is OK [01:45:28]request: POST /json_proto HTTP/1.0 [01:45:28]Method: POST [01:45:28]URL: /json_proto [01:45:28]Method is POST - this is cgi request [01:45:28]url: /json_proto [01:45:28]query_string will be loaded in cgi processing [01:45:28]execute_cgi json_proto POST (null) [01:45:28]execute_cgi path=json_proto method=POST [01:45:28]POST find Content-Length [01:45:28]Host: 172.17.39.67:8080 [01:45:28]Content-Length: 810 [01:45:28]Content-Type: application/json [01:45:28] [01:45:28]POST finish read [01:45:28]Found Content-Length = 810 [01:45:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 110.200, "sum" : 8000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8000.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:45:28]execute_script... [01:45: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)1319604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 110.200, "sum" : 8000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8000.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:45:28]POST & json_proto [01:45:28]process_json_proto [01:45:28]json parsed OK: [01:45:28]protocol is kg_v1.0 [01:45:28]action value=close_receipt [01:45:28]process_action close_receipt [01:45:28]cmd_close_receipt [01:45:28]MH_GetDate [01:45:28]Write to MH i2c: F0 00 00 AE 4C E9 [01:45:28]Write i2c OK [01:45:28]MH_I2C_Read... [01:45:28]Read from MH i2c: F0 [01:45:28]MH_I2C_Read... [01:45:28]Read from MH i2c: F0 09 00 [01:45:28]MH_I2C_Read... [01:45:28]Read from MH i2c: F0 09 00 AE 4C 00 3C 7F 94 66 B6 85 93 66 DB [01:45:28]GetLastDocTimeStamp 1721007326 [01:45:28]current date 1721007932 [01:45:28]FM_GetShiftState [01:45:28]SAM_PROTO_GetShiftState [01:45:28]wFMCommunicate request_size=4 [01:45:28]MH_SAM_APDU [01:45:28]CAPDU: 80 13 01 00 [01:45:28]Write to MH i2c: E2 08 00 AF 4C 80 13 01 00 00 00 00 00 78 [01:45:28]Write i2c OK [01:45:28]MH_I2C_Read... [01:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:45:28]Read from MH i2c: E2 [01:45:28]MH_I2C_Read... [01:45:28]Read from MH i2c: E2 0E 00 [01:45:28]MH_I2C_Read... [01:45:28]Read from MH i2c: E2 0E 00 AF 4C 00 09 00 01 45 67 94 66 00 00 00 00 90 00 2A [01:45:28]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:45:28]wFMCommunicate OK [01:45:28]SAM_PROTO_GetShiftState done [01:45:28]FM_GetShiftState done [01:45:28]opened in 1721001797 [01:45:28]opened+sec_in_day 1721088197 [01:45:28]quantity*price = 800052 [01:45:28]sum+1 = 800053 [01:45:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8000.52 НСП 1% : 70.80 НДС 12% : 849.61 Наличными: 0.00 Безнал.: 8000.52 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 11 15.07.2024 01:45 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162987 ФПД: 144152788564226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T014532&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162987&fm=144152788564226&tin=02508201610067®Number=0000000000090858&sum=800052 [01:45:29]StoreToDocumentArchive [01:45:29]shift 464 fd 162987 [01:45:29]save to /storage/0464/doc_00162987 [01:45:29]save last doc name /storage/0464/doc_00162987 to /storage/kkm_last_doc_name [01:45:29]save OK [01:45:29]Clear old archive folders... [01:45:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:45:29]tlvbuf is 01326DE0 [01:45:29]SAM_PROTO_ClearQueue [01:45:29]wFMCommunicate request_size=4 [01:45:29]MH_SAM_APDU [01:45:29]CAPDU: 80 09 00 00 [01:45:29]Write to MH i2c: E2 08 00 BC 4C 80 09 00 00 00 00 00 00 7A [01:45:29]Write i2c OK [01:45:29]MH_I2C_Read... [01:45:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:45:29]Read from MH i2c: E2 [01:45:29]MH_I2C_Read... [01:45:29]Read from MH i2c: E2 03 00 [01:45:29]MH_I2C_Read... [01:45:29]Read from MH i2c: E2 03 00 BC 4C 00 90 00 7C [01:45:29]RAPDU: 90 00 [01:45:29]wFMCommunicate OK [01:45:29]SAM_PROTO_ClearQueue done [01:45:29]KKMCreateOFDPacket [01:45:29]OFDProtocolAddRootSTLVToBuf [01:45:29]FM_MakeSignedData [01:45:29]FM_MakeSignedData [01:45:29]SAM_PROTO_SignData [01:45:29]wFMCommunicate request_size=4 [01:45:29]MH_SAM_APDU [01:45:29]CAPDU: 80 0D 01 02 [01:45:29]Write to MH i2c: E2 08 00 BD 4C 80 0D 01 02 00 00 00 00 82 [01:45:29]Write i2c OK [01:45:29]MH_I2C_Read... [01:45:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:45:29]Read from MH i2c: E2 [01:45:29]MH_I2C_Read... [01:45:29]Read from MH i2c: E2 03 00 [01:45:29]MH_I2C_Read... [01:45:29]Read from MH i2c: E2 03 00 BD 4C 00 90 00 7D [01:45:29]RAPDU: 90 00 [01:45:29]wFMCommunicate OK [01:45:29]wFMCommunicate request_size=255 [01:45:29]MH_SAM_APDU [01:45:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 78 AE 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 34 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 3C 7F 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7C 02 00 35 04 06 00 [01:45:29]Write to MH i2c: E2 02 01 BE 4C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 78 AE 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 34 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 3C 7F 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7C 02 00 35 04 06 00 00 00 81 [01:45:29]Write i2c OK [01:45:29]MH_I2C_Read... [01:45:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:45:30]Read from MH i2c: E2 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 03 00 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 03 00 BE 4C 00 90 00 7E [01:45:30]RAPDU: 90 00 [01:45:30]wFMCommunicate OK [01:45:30]wFMCommunicate request_size=11 [01:45:30]MH_SAM_APDU [01:45:30]CAPDU: 80 0D 02 02 06 83 1B 2F C1 79 02 [01:45:30]Write to MH i2c: E2 0E 00 BF 4C 80 0D 02 02 06 00 83 1B 2F C1 79 02 00 00 9A [01:45:30]Write i2c OK [01:45:30]MH_I2C_Read... [01:45:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:45:30]Read from MH i2c: E2 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 03 00 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 03 00 BF 4C 00 90 00 7F [01:45:30]RAPDU: 90 00 [01:45:30]wFMCommunicate OK [01:45:30]wFMCommunicate request_size=4 [01:45:30]MH_SAM_APDU [01:45:30]CAPDU: 80 0D 03 02 [01:45:30]Write to MH i2c: E2 08 00 C0 4C 80 0D 03 02 00 00 00 00 87 [01:45:30]Write i2c OK [01:45:30]MH_I2C_Read... [01:45:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:45:30]Read from MH i2c: E2 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 0B 00 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 0B 00 C0 4C 00 CE D8 F9 37 63 0F 7C 33 90 00 7F [01:45:30]RAPDU: CE D8 F9 37 63 0F 7C 33 90 00 [01:45:30]wFMCommunicate OK [01:45:30]SAM_PROTO_SignData done [01:45:30]FM_MakeSignedData done [01:45:30]CreateOFDProtocolMessage [01:45:30]wFMCommunicate request_size=4 [01:45:30]MH_SAM_APDU [01:45:30]CAPDU: 80 11 00 00 [01:45:30]Write to MH i2c: E2 08 00 C1 4C 80 11 00 00 00 00 00 00 87 [01:45:30]Write i2c OK [01:45:30]MH_I2C_Read... [01:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:45:30]Read from MH i2c: E2 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 17 00 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: E2 17 00 C1 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E7 [01:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:45:30]wFMCommunicate OK [01:45:30]CreateOFDProtocolMessage done [01:45:30]OFDSenderStorePacket 162987 [01:45:30]StoreOFDPacket docnum=162987 [01:45:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 2A 2D 08 01 D1 54 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 78 AE 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 34 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 3C 7F 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7C 02 00 35 04 06 00 83 1B 2F C1 79 02 CE D8 F9 37 63 0F 7C 33 [01:45:30]CheckFolder [01:45:30]dirname=/storage/ofd_packets [01:45:30]CheckFolder done [01:45:30]ProducePacketName [01:45:30]name=ofd_packets/00162987 [01:45:30]NVStorageSaveData ofd_packets/00162987 [01:45:30]File name is /storage/ofd_packets/00162987 [01:45:30]Write 302 bytes [01:45:30]NVStorageSaveData done [01:45:30]OFDSenderStorePacket done [01:45:30]KKMCreateOFDPacket done [01:45:30]NVStorageSaveData kkm_last_timestamp [01:45:30]File name is /storage/kkm_last_timestamp [01:45:30]Write 4 bytes [01:45:30]NVStorageSaveData done [01:45:30]ExternCall_PrintAddStr [01:45:30]wPrintStart [01:45:30]Write to MH i2c: 01 00 00 C2 4C 0E [01:45:30]Write i2c OK [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: 01 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: 01 07 00 [01:45:30]MH_I2C_Read... [01:45:30]Read from MH i2c: 01 07 00 C2 4C 00 00 00 00 00 FF 0F 23 [01:45:30]RasterBufferAndPrint [01:45:30]line Счет N : (1)1319604 [01:45:30]line ИНН: 02508201610067 [01:45:30]line Контрольно-Кассовый Чек [01:45:30]line ПРОДАЖА [01:45:30]line ТРК (МРК, ГНК) : 21 [01:45:30]line Товар: 2710194210 [01:45:30]line ДТ(л)-К-5 [01:45:30]line 110.200 * 72.60 [01:45:30]line = 8000.52 [01:45:30]line НДС 12% НСП 1% [01:45:30]line > о реализуемом товаре [01:45:30]line ИТОГО: 8000.52 [01:45:30]line НСП 1% : 70.80 [01:45:30]line НДС 12% : 849.61 [01:45:30]line Наличными: 0.00 [01:45:30]line Безнал.: 8000.52 [01:45:30]line Место: АЗС № 140 "Партнер Нефть" [01:45:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:45:30]line СНО: Общий режим [01:45:30]line Чек 11 15.07.2024 01:45 [01:45:30]line Смена: 464 ФФД: 1.0 [01:45:30]line ЗНМ: 0300000129 [01:45:30]line РНМ: 0000000000090858 [01:45:30]line Версия ККМ: 001 [01:45:30]line Платежная система: O! деньги [01:45:30]line ФМ: 0000000000874899 [01:45:30]line ФД: 162987 [01:45:30]line ФПД: 144152788564226 [01:45:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T014532&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162987&fm=144152788564226&tin=02508201610067®Number=0000000000090858&sum=800052 [01:45:30]written 0, free lines is 4095 [01:45:30]OFD Sender: Processing packet 162987 [packets to send 106, broken 105] [01:45:30]ProducePacketName [01:45:30]name=ofd_packets/00162987 [01:45:30]OFD Sender: To server: pG, [01:45:30]CommunicateWithHost lk.salyk.kg:30040 [01:45:30]ConnectInit lk.salyk.kg [01:45:30]Connected sock=10 [01:45:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 2A 2D 08 01 D1 54 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 78 AE 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 34 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 3C 7F 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7C 02 00 35 04 06 00 83 1B 2F C1 79 02 CE D8 F9 37 63 0F 7C 33 [01:45:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D4 3A 47 00 BB D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7C 02 00 F4 03 04 00 48 2B 94 66 B6 04 01 00 00 BF 28 35 8F B4 77 C3 5A [01:45:31]CommunicateWithHost err = 0 [01:45:31]CheckOFDResponse [01:45:31]1017 (14) - 77093643461234 [01:45:31]1041 (16) - 0000000000874899 [01:45:31]1040 (4) - 162987 [01:45:31]1012 (4) - 14.07.2024 19:47 [01:45:31]1206 (1) - 0 [01:45:31]OFD Sender: Remove packet 162987 [01:45:31]ProducePacketName [01:45:31]name=ofd_packets/00162987 [01:45:31]NVStorageDeleteData [01:45:31]Write to MH i2c: 01 00 00 EC 4C 38 [01:45:31]Write i2c OK [01:45:31]MH_I2C_Read... [01:45:31]Read from MH i2c: 01 [01:45:31]MH_I2C_Read... [01:45:31]Read from MH i2c: 01 07 00 [01:45:31]MH_I2C_Read... [01:45:31]Read from MH i2c: 01 07 00 EC 4C 00 00 00 00 00 E6 0C 31 [01:45:31]RasterBufferAndPrint [01:45:31]line [01:45:31]line [01:45:31]line [01:45:31]line [01:45:31]line [01:45:31]written 0, free lines is 3309 [01:45:31]MH_Cut [01:45:31]Write to MH i2c: D1 01 00 F3 4C 01 11 [01:45:31]Write i2c OK [01:45:31]MH_I2C_Read... [01:45:31]Read from MH i2c: D1 [01:45:31]MH_I2C_Read... [01:45:31]Read from MH i2c: D1 01 00 [01:45:31]MH_I2C_Read... [01:45:31]Read from MH i2c: D1 01 00 F3 4C 00 10 [01:45:31]Write to MH i2c: 01 00 00 F4 4C 40 [01:45:31]Write i2c OK [01:45:31]MH_I2C_Read... [01:45:31]OFD Sender: No OFD packet to send [01:45:31]*** Cut start [01:45:31]*** Purtial cut [01:45:31]*** CUTSNS_PIN = 0 [01:45:32]*** Stage 1: CUTSNS_PIN = 1 [01:45:33]Read from MH i2c: 01 [01:45:33]MH_I2C_Read... [01:45:33]*** Stop cut motor [01:45:33]*** Cut end [01:45:33]Read from MH i2c: 01 07 00 [01:45:33]MH_I2C_Read... [01:45:33]Read from MH i2c: 01 07 00 F4 4C 00 00 00 00 00 FF 0F 55 [01:45:33]process_action close_receipt done [01:45:33]requested_data is exist [01:45:33]produce_requested_data [01:45:33]requested_item fm.sn is exist - process it [01:45:33]wFMCommunicate request_size=4 [01:45:33]MH_SAM_APDU [01:45:33]CAPDU: 80 11 00 00 [01:45:33]Write to MH i2c: E2 08 00 F5 4C 80 11 00 00 00 00 00 00 BB [01:45:33]Write i2c OK [01:45:33]MH_I2C_Read... [01:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:45:34]Read from MH i2c: E2 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 17 00 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 17 00 F5 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1B [01:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:45:34]wFMCommunicate OK [01:45:34]requested_item fd.num is exist - process it [01:45:34]SAM_PROTO_GetFieldsCounters [01:45:34]wFMCommunicate request_size=4 [01:45:34]MH_SAM_APDU [01:45:34]CAPDU: 80 13 00 00 [01:45:34]Write to MH i2c: E2 08 00 F6 4C 80 13 00 00 00 00 00 00 BE [01:45:34]Write i2c OK [01:45:34]MH_I2C_Read... [01:45:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:45:34]Read from MH i2c: E2 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 62 00 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 62 00 F6 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AB 7C 02 00 0E 04 04 00 D0 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 0C [01:45:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AB 7C 02 00 0E 04 04 00 D0 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:45:34]wFMCommunicate OK [01:45:34]SAM_PROTO_GetFieldsCounters done [01:45:34]requested_item shift.num is exist - process it [01:45:34]requested_item shift.opened is exist - process it [01:45:34]req_shift_opened [01:45:34]FM_GetShiftState [01:45:34]SAM_PROTO_GetShiftState [01:45:34]wFMCommunicate request_size=4 [01:45:34]MH_SAM_APDU [01:45:34]CAPDU: 80 13 01 00 [01:45:34]Write to MH i2c: E2 08 00 F7 4C 80 13 01 00 00 00 00 00 C0 [01:45:34]Write i2c OK [01:45:34]MH_I2C_Read... [01:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:45:34]Read from MH i2c: E2 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 0E 00 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 0E 00 F7 4C 00 09 00 01 45 67 94 66 00 00 00 00 90 00 72 [01:45:34]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:45:34]wFMCommunicate OK [01:45:34]SAM_PROTO_GetShiftState done [01:45:34]FM_GetShiftState done [01:45:34]req_shift_opened done [01:45:34]requested_item shift.open_date is exist - process it [01:45:34]req_shift_open_date [01:45:34]req_shift_open_date done [01:45:34]produce_requested_data done [01:45:34]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162987,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [01:45:34]process_action_free close_receipt [01:45:34]json_value_free [01:45:34]json_value_free done [01:45:34]process_json_proto returns [01:45:34]Send response to host [01:45:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162987,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [01:45:34]free response buf [01:45:34]execute_script done [01:45:34]execute_script returns [01:45:34]free content buf [01:45:34]Sock 9.Close socket [01:45:34]Sock 9.Thread stoped [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:48]accept exits with 7 [01:46:48]New connection [01:46:48]New thread 3066879332 created [01:46:48]Thread 3066735972 joined [01:46:48]Waiting for new connection... [01:46:48] Sock 7.Parse request [01:46:48]Sock 7.Check first char [01:46:48]Sock 7.First char is OK [01:46:48]request: POST /json_proto HTTP/1.0 [01:46:48]Method: POST [01:46:48]URL: /json_proto [01:46:48]Method is POST - this is cgi request [01:46:48]url: /json_proto [01:46:48]query_string will be loaded in cgi processing [01:46:48]execute_cgi json_proto POST (null) [01:46:48]execute_cgi path=json_proto method=POST [01:46:48]POST find Content-Length [01:46:48]Host: 172.17.39.67:8080 [01:46:48]Content-Length: 678 [01:46:48]Content-Type: application/json [01:46:48] [01:46:48]POST finish read [01:46:48]Found Content-Length = 678 [01:46:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:48]execute_script... [01:46: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)1319605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:48]POST & json_proto [01:46:48]process_json_proto [01:46:48]json parsed OK: [01:46:48]protocol is kg_v1.0 [01:46:48]action value=close_receipt [01:46:48]process_action close_receipt [01:46:48]cmd_close_receipt [01:46:48]MH_GetDate [01:46:48]Write to MH i2c: F0 00 00 F8 4C 33 [01:46:48]Write i2c OK [01:46:48]MH_I2C_Read... [01:46:48]Read from MH i2c: F0 [01:46:48]MH_I2C_Read... [01:46:48]Read from MH i2c: F0 09 00 [01:46:48]MH_I2C_Read... [01:46:48]Read from MH i2c: F0 09 00 F8 4C 00 8C 7F 94 66 B6 85 93 66 75 [01:46:48]GetLastDocTimeStamp 1721007932 [01:46:48]current date 1721008012 [01:46:48]FM_GetShiftState [01:46:48]SAM_PROTO_GetShiftState [01:46:48]wFMCommunicate request_size=4 [01:46:48]MH_SAM_APDU [01:46:48]CAPDU: 80 13 01 00 [01:46:48]Write to MH i2c: E2 08 00 F9 4C 80 13 01 00 00 00 00 00 C2 [01:46:48]Write i2c OK [01:46:48]MH_I2C_Read... [01:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:48]Read from MH i2c: E2 [01:46:48]MH_I2C_Read... [01:46:48]Read from MH i2c: E2 0E 00 [01:46:48]MH_I2C_Read... [01:46:48]Read from MH i2c: E2 0E 00 F9 4C 00 09 00 01 45 67 94 66 00 00 00 00 90 00 74 [01:46:48]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:46:48]wFMCommunicate OK [01:46:48]SAM_PROTO_GetShiftState done [01:46:48]FM_GetShiftState done [01:46:48]opened in 1721001797 [01:46:48]opened+sec_in_day 1721088197 [01:46:48]quantity*price = 60001 [01:46:48]sum+1 = 60003 [01:46:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 12 15.07.2024 01:46 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162988 ФПД: 268733472987864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T014652&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162988&fm=268733472987864&tin=02508201610067®Number=0000000000090858&sum=60000 [01:46:50]StoreToDocumentArchive [01:46:50]shift 464 fd 162988 [01:46:50]save to /storage/0464/doc_00162988 [01:46:50]save last doc name /storage/0464/doc_00162988 to /storage/kkm_last_doc_name [01:46:50]save OK [01:46:50]Clear old archive folders... [01:46:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:46:50]tlvbuf is 013876E0 [01:46:50]SAM_PROTO_ClearQueue [01:46:50]wFMCommunicate request_size=4 [01:46:50]MH_SAM_APDU [01:46:50]CAPDU: 80 09 00 00 [01:46:50]Write to MH i2c: E2 08 00 06 4D 80 09 00 00 00 00 00 00 C5 [01:46:50]Write i2c OK [01:46:50]MH_I2C_Read... [01:46:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:46:50]Read from MH i2c: E2 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 03 00 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 03 00 06 4D 00 90 00 C7 [01:46:50]RAPDU: 90 00 [01:46:50]wFMCommunicate OK [01:46:50]SAM_PROTO_ClearQueue done [01:46:50]KKMCreateOFDPacket [01:46:50]OFDProtocolAddRootSTLVToBuf [01:46:50]FM_MakeSignedData [01:46:50]FM_MakeSignedData [01:46:50]SAM_PROTO_SignData [01:46:50]wFMCommunicate request_size=4 [01:46:50]MH_SAM_APDU [01:46:50]CAPDU: 80 0D 01 02 [01:46:50]Write to MH i2c: E2 08 00 07 4D 80 0D 01 02 00 00 00 00 CD [01:46:50]Write i2c OK [01:46:50]MH_I2C_Read... [01:46:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:46:50]Read from MH i2c: E2 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 03 00 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 03 00 07 4D 00 90 00 C8 [01:46:50]RAPDU: 90 00 [01:46:50]wFMCommunicate OK [01:46:50]wFMCommunicate request_size=255 [01:46:50]MH_SAM_APDU [01:46: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 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 0C 00 00 00 F4 03 04 00 8C 7F 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7C 02 00 35 04 06 00 F4 [01:46:50]Write to MH i2c: E2 02 01 08 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 0C 00 00 00 F4 03 04 00 8C 7F 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7C 02 00 35 04 06 00 F4 00 00 56 [01:46:50]Write i2c OK [01:46:50]MH_I2C_Read... [01:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:50]Read from MH i2c: E2 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 03 00 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 03 00 08 4D 00 90 00 C9 [01:46:50]RAPDU: 90 00 [01:46:50]wFMCommunicate OK [01:46:50]wFMCommunicate request_size=10 [01:46:50]MH_SAM_APDU [01:46:50]CAPDU: 80 0D 02 02 05 69 63 32 5A D8 [01:46:50]Write to MH i2c: E2 0D 00 09 4D 80 0D 02 02 05 00 69 63 32 5A D8 00 00 0A [01:46:50]Write i2c OK [01:46:50]MH_I2C_Read... [01:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:50]Read from MH i2c: E2 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 03 00 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 03 00 09 4D 00 90 00 CA [01:46:50]RAPDU: 90 00 [01:46:50]wFMCommunicate OK [01:46:50]wFMCommunicate request_size=4 [01:46:50]MH_SAM_APDU [01:46:50]CAPDU: 80 0D 03 02 [01:46:50]Write to MH i2c: E2 08 00 0A 4D 80 0D 03 02 00 00 00 00 D2 [01:46:50]Write i2c OK [01:46:50]MH_I2C_Read... [01:46:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:46:50]Read from MH i2c: E2 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 0B 00 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 0B 00 0A 4D 00 08 05 F4 AB 0B B5 99 E3 90 00 BB [01:46:50]RAPDU: 08 05 F4 AB 0B B5 99 E3 90 00 [01:46:50]wFMCommunicate OK [01:46:50]SAM_PROTO_SignData done [01:46:50]FM_MakeSignedData done [01:46:50]CreateOFDProtocolMessage [01:46:50]wFMCommunicate request_size=4 [01:46:50]MH_SAM_APDU [01:46:50]CAPDU: 80 11 00 00 [01:46:50]Write to MH i2c: E2 08 00 0B 4D 80 11 00 00 00 00 00 00 D2 [01:46:50]Write i2c OK [01:46:50]MH_I2C_Read... [01:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:50]Read from MH i2c: E2 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 17 00 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: E2 17 00 0B 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 32 [01:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:46:50]wFMCommunicate OK [01:46:50]CreateOFDProtocolMessage done [01:46:50]OFDSenderStorePacket 162988 [01:46:50]StoreOFDPacket docnum=162988 [01:46:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 5A 7E 07 01 96 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 0C 00 00 00 F4 03 04 00 8C 7F 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7C 02 00 35 04 06 00 F4 69 63 32 5A D8 08 05 F4 AB 0B B5 99 E3 [01:46:50]CheckFolder [01:46:50]dirname=/storage/ofd_packets [01:46:50]CheckFolder done [01:46:50]ProducePacketName [01:46:50]name=ofd_packets/00162988 [01:46:50]NVStorageSaveData ofd_packets/00162988 [01:46:50]File name is /storage/ofd_packets/00162988 [01:46:50]Write 301 bytes [01:46:50]NVStorageSaveData done [01:46:50]OFDSenderStorePacket done [01:46:50]KKMCreateOFDPacket done [01:46:50]NVStorageSaveData kkm_last_timestamp [01:46:50]File name is /storage/kkm_last_timestamp [01:46:50]Write 4 bytes [01:46:50]NVStorageSaveData done [01:46:50]ExternCall_PrintAddStr [01:46:50]wPrintStart [01:46:50]Write to MH i2c: 01 00 00 0C 4D 59 [01:46:50]Write i2c OK [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: 01 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: 01 07 00 [01:46:50]MH_I2C_Read... [01:46:50]Read from MH i2c: 01 07 00 0C 4D 00 00 00 00 00 FF 0F 6E [01:46:50]RasterBufferAndPrint [01:46:50]line Счет N : (1)1319605 [01:46:50]line ИНН: 02508201610067 [01:46:50]line Контрольно-Кассовый Чек [01:46:50]line ПРОДАЖА [01:46:50]line ТРК (МРК, ГНК) : 43 [01:46:50]line Товар: 2710124130 [01:46:50]line Аи-92-К-5 [01:46:50]line 9.050 * 66.30 [01:46:50]line = 600.02 [01:46:50]line НДС 12% НСП 1% [01:46:50]line > о реализуемом товаре [01:46:50]line ОКРУГЛЕНИЕ: -0.02 [01:46:50]line ИТОГО: 600.00 [01:46:50]line Внесено: 600.00 [01:46:50]line СДАЧА: 0.00 [01:46:50]line НСП 1% : 5.31 [01:46:50]line НДС 12% : 63.72 [01:46:50]line Наличными: 600.00 [01:46:50]line Безнал.: 0.00 [01:46:50]line Место: АЗС № 140 "Партнер Нефть" [01:46:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:46:50]line СНО: Общий режим [01:46:50]line Чек 12 15.07.2024 01:46 [01:46:50]line Смена: 464 ФФД: 1.0 [01:46:50]line ЗНМ: 0300000129 [01:46:50]line РНМ: 0000000000090858 [01:46:50]line Версия ККМ: 001 [01:46:50]line ФМ: 0000000000874899 [01:46:50]line ФД: 162988 [01:46:50]line ФПД: 268733472987864 [01:46:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T014652&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162988&fm=268733472987864&tin=02508201610067®Number=0000000000090858&sum=60000 [01:46:50]OFD Sender: Processing packet 162988 [packets to send 106, broken 105] [01:46:50]ProducePacketName [01:46:50]name=ofd_packets/00162988 [01:46:50]OFD Sender: To server: pG, [01:46:50]CommunicateWithHost lk.salyk.kg:30040 [01:46:50]ConnectInit lk.salyk.kg [01:46:50]written 0, free lines is 4095 [01:46:51]Connected sock=10 [01:46:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 5A 7E 07 01 96 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 0C 00 00 00 F4 03 04 00 8C 7F 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7C 02 00 35 04 06 00 F4 69 63 32 5A D8 08 05 F4 AB 0B B5 99 E3 [01:46:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 68 64 47 00 55 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7C 02 00 F4 03 04 00 98 2B 94 66 B6 04 01 00 00 5A 1D 30 52 87 4C B4 A0 [01:46:51]CommunicateWithHost err = 0 [01:46:51]CheckOFDResponse [01:46:51]1017 (14) - 77093643461234 [01:46:51]1041 (16) - 0000000000874899 [01:46:51]1040 (4) - 162988 [01:46:51]1012 (4) - 14.07.2024 19:48 [01:46:51]1206 (1) - 0 [01:46:51]OFD Sender: Remove packet 162988 [01:46:51]ProducePacketName [01:46:51]name=ofd_packets/00162988 [01:46:51]NVStorageDeleteData [01:46:51]Write to MH i2c: 01 00 00 37 4D 84 [01:46:51]Write i2c OK [01:46:51]MH_I2C_Read... [01:46:51]Read from MH i2c: 01 [01:46:51]MH_I2C_Read... [01:46:51]Read from MH i2c: 01 07 00 [01:46:51]MH_I2C_Read... [01:46:51]Read from MH i2c: 01 07 00 37 4D 00 00 00 00 00 E4 0C 7B [01:46:51]RasterBufferAndPrint [01:46:51]line [01:46:51]line [01:46:51]line [01:46:51]line [01:46:51]line [01:46:51]written 0, free lines is 3306 [01:46:51]MH_Cut [01:46:51]Write to MH i2c: D1 01 00 3E 4D 01 5D [01:46:51]Write i2c OK [01:46:51]MH_I2C_Read... [01:46:51]Read from MH i2c: D1 [01:46:51]MH_I2C_Read... [01:46:51]Read from MH i2c: D1 01 00 [01:46:51]MH_I2C_Read... [01:46:51]Read from MH i2c: D1 01 00 3E 4D 00 5C [01:46:51]Write to MH i2c: 01 00 00 3F 4D 8C [01:46:51]Write i2c OK [01:46:51]MH_I2C_Read... [01:46:51]OFD Sender: No OFD packet to send [01:46:52]*** Cut start [01:46:52]*** Purtial cut [01:46:52]*** Stage 1: CUTSNS_PIN = 1 [01:46:52]Read from MH i2c: 01 [01:46:52]MH_I2C_Read... [01:46:52]*** Stop cut motor [01:46:52]*** Cut end [01:46:52]Read from MH i2c: 01 07 00 [01:46:52]MH_I2C_Read... [01:46:52]Read from MH i2c: 01 07 00 3F 4D 00 00 00 00 00 FF 0F A1 [01:46:52]process_action close_receipt done [01:46:52]requested_data is exist [01:46:52]produce_requested_data [01:46:52]requested_item fm.sn is exist - process it [01:46:52]wFMCommunicate request_size=4 [01:46:52]MH_SAM_APDU [01:46:52]CAPDU: 80 11 00 00 [01:46:52]Write to MH i2c: E2 08 00 40 4D 80 11 00 00 00 00 00 00 07 [01:46:52]Write i2c OK [01:46:52]MH_I2C_Read... [01:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:52]Read from MH i2c: E2 [01:46:52]MH_I2C_Read... [01:46:52]Read from MH i2c: E2 17 00 [01:46:52]MH_I2C_Read... [01:46:52]Read from MH i2c: E2 17 00 40 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 67 [01:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:46:52]wFMCommunicate OK [01:46:52]requested_item fd.num is exist - process it [01:46:52]SAM_PROTO_GetFieldsCounters [01:46:52]wFMCommunicate request_size=4 [01:46:52]MH_SAM_APDU [01:46:52]CAPDU: 80 13 00 00 [01:46:52]Write to MH i2c: E2 08 00 41 4D 80 13 00 00 00 00 00 00 0A [01:46:52]Write i2c OK [01:46:52]MH_I2C_Read... [01:46:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:46:52]Read from MH i2c: E2 [01:46:52]MH_I2C_Read... [01:46:52]Read from MH i2c: E2 62 00 [01:46:52]MH_I2C_Read... [01:46:52]Read from MH i2c: E2 62 00 41 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AC 7C 02 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [01:46:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AC 7C 02 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:46:52]wFMCommunicate OK [01:46:52]SAM_PROTO_GetFieldsCounters done [01:46:52]requested_item shift.num is exist - process it [01:46:52]requested_item shift.opened is exist - process it [01:46:52]req_shift_opened [01:46:52]FM_GetShiftState [01:46:52]SAM_PROTO_GetShiftState [01:46:52]wFMCommunicate request_size=4 [01:46:52]MH_SAM_APDU [01:46:52]CAPDU: 80 13 01 00 [01:46:52]Write to MH i2c: E2 08 00 42 4D 80 13 01 00 00 00 00 00 0C [01:46:52]Write i2c OK [01:46:52]MH_I2C_Read... [01:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:52]Read from MH i2c: E2 [01:46:52]MH_I2C_Read... [01:46:52]Read from MH i2c: E2 0E 00 [01:46:52]MH_I2C_Read... [01:46:52]Read from MH i2c: E2 0E 00 42 4D 00 09 00 01 45 67 94 66 00 00 00 00 90 00 BE [01:46:52]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:46:52]wFMCommunicate OK [01:46:52]SAM_PROTO_GetShiftState done [01:46:52]FM_GetShiftState done [01:46:52]req_shift_opened done [01:46:52]requested_item shift.open_date is exist - process it [01:46:52]req_shift_open_date [01:46:52]req_shift_open_date done [01:46:52]produce_requested_data done [01:46:52]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162988,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [01:46:52]process_action_free close_receipt [01:46:52]json_value_free [01:46:52]json_value_free done [01:46:52]process_json_proto returns [01:46:52]Send response to host [01:46:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162988,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [01:46:52]free response buf [01:46:52]execute_script done [01:46:52]execute_script returns [01:46:52]free content buf [01:46:52]Sock 7.Close socket [01:46:52]Sock 7.Thread stoped [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:03]accept exits with 9 [01:55:03]New connection [01:55:03]New thread 3066735972 created [01:55:03]Thread 3066879332 joined [01:55:03]Waiting for new connection... [01:55:03] Sock 9.Parse request [01:55:03]Sock 9.Check first char [01:55:03]Sock 9.First char is OK [01:55:03]request: POST /json_proto HTTP/1.0 [01:55:03]Method: POST [01:55:03]URL: /json_proto [01:55:03]Method is POST - this is cgi request [01:55:03]url: /json_proto [01:55:03]query_string will be loaded in cgi processing [01:55:03]execute_cgi json_proto POST (null) [01:55:03]execute_cgi path=json_proto method=POST [01:55:03]POST find Content-Length [01:55:03]Host: 172.17.39.67:8080 [01:55:03]Content-Length: 817 [01:55:03]Content-Type: application/json [01:55:03] [01:55:03]POST finish read [01:55:03]Found Content-Length = 817 [01:55:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:55:03]execute_script... [01:55:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:55:03]POST & json_proto [01:55:03]process_json_proto [01:55:03]json parsed OK: [01:55:03]protocol is kg_v1.0 [01:55:03]action value=close_receipt [01:55:03]process_action close_receipt [01:55:03]cmd_close_receipt [01:55:03]MH_GetDate [01:55:03]Write to MH i2c: F0 00 00 43 4D 7F [01:55:03]Write i2c OK [01:55:03]MH_I2C_Read... [01:55:03]Read from MH i2c: F0 [01:55:03]MH_I2C_Read... [01:55:03]Read from MH i2c: F0 09 00 [01:55:03]MH_I2C_Read... [01:55:03]Read from MH i2c: F0 09 00 43 4D 00 7B 81 94 66 B6 85 93 66 B2 [01:55:03]GetLastDocTimeStamp 1721008012 [01:55:03]current date 1721008507 [01:55:03]FM_GetShiftState [01:55:03]SAM_PROTO_GetShiftState [01:55:03]wFMCommunicate request_size=4 [01:55:03]MH_SAM_APDU [01:55:03]CAPDU: 80 13 01 00 [01:55:03]Write to MH i2c: E2 08 00 44 4D 80 13 01 00 00 00 00 00 0E [01:55:03]Write i2c OK [01:55:03]MH_I2C_Read... [01:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:55:03]Read from MH i2c: E2 [01:55:03]MH_I2C_Read... [01:55:03]Read from MH i2c: E2 0E 00 [01:55:03]MH_I2C_Read... [01:55:03]Read from MH i2c: E2 0E 00 44 4D 00 09 00 01 45 67 94 66 00 00 00 00 90 00 C0 [01:55:03]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:55:03]wFMCommunicate OK [01:55:03]SAM_PROTO_GetShiftState done [01:55:03]FM_GetShiftState done [01:55:03]opened in 1721001797 [01:55:03]opened+sec_in_day 1721088197 [01:55:03]quantity*price = 30033 [01:55:03]sum+1 = 30035 [01:55:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.34 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.34 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 13 15.07.2024 01:55 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162989 ФПД: 98384299308631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T015507&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162989&fm=98384299308631&tin=02508201610067®Number=0000000000090858&sum=30034 [01:55:04]StoreToDocumentArchive [01:55:04]shift 464 fd 162989 [01:55:04]save to /storage/0464/doc_00162989 [01:55:04]save last doc name /storage/0464/doc_00162989 to /storage/kkm_last_doc_name [01:55:04]save OK [01:55:04]Clear old archive folders... [01:55:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:55:04]tlvbuf is 0130C010 [01:55:04]SAM_PROTO_ClearQueue [01:55:04]wFMCommunicate request_size=4 [01:55:04]MH_SAM_APDU [01:55:04]CAPDU: 80 09 00 00 [01:55:04]Write to MH i2c: E2 08 00 51 4D 80 09 00 00 00 00 00 00 10 [01:55:04]Write i2c OK [01:55:04]MH_I2C_Read... [01:55:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:55:04]Read from MH i2c: E2 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: E2 03 00 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: E2 03 00 51 4D 00 90 00 12 [01:55:04]RAPDU: 90 00 [01:55:04]wFMCommunicate OK [01:55:04]SAM_PROTO_ClearQueue done [01:55:04]KKMCreateOFDPacket [01:55:04]OFDProtocolAddRootSTLVToBuf [01:55:04]FM_MakeSignedData [01:55:04]FM_MakeSignedData [01:55:04]SAM_PROTO_SignData [01:55:04]wFMCommunicate request_size=4 [01:55:04]MH_SAM_APDU [01:55:04]CAPDU: 80 0D 01 02 [01:55:04]Write to MH i2c: E2 08 00 52 4D 80 0D 01 02 00 00 00 00 18 [01:55:04]Write i2c OK [01:55:04]MH_I2C_Read... [01:55:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:55:04]Read from MH i2c: E2 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: E2 03 00 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: E2 03 00 52 4D 00 90 00 13 [01:55:04]RAPDU: 90 00 [01:55:04]wFMCommunicate OK [01:55:04]wFMCommunicate request_size=255 [01:55:04]MH_SAM_APDU [01:55: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 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7B 81 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7C 02 00 35 04 06 00 59 [01:55:04]Write to MH i2c: E2 02 01 53 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7B 81 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7C 02 00 35 04 06 00 59 00 00 2F [01:55:04]Write i2c OK [01:55:04]MH_I2C_Read... [01:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:55:04]Read from MH i2c: E2 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: E2 03 00 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: E2 03 00 53 4D 00 90 00 14 [01:55:04]RAPDU: 90 00 [01:55:04]wFMCommunicate OK [01:55:04]wFMCommunicate request_size=10 [01:55:04]MH_SAM_APDU [01:55:04]CAPDU: 80 0D 02 02 05 7A E1 36 36 57 [01:55:04]Write to MH i2c: E2 0D 00 54 4D 80 0D 02 02 05 00 7A E1 36 36 57 00 00 43 [01:55:04]Write i2c OK [01:55:04]MH_I2C_Read... [01:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:55:04]Read from MH i2c: E2 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: E2 03 00 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: E2 03 00 54 4D 00 90 00 15 [01:55:04]RAPDU: 90 00 [01:55:04]wFMCommunicate OK [01:55:04]wFMCommunicate request_size=4 [01:55:04]MH_SAM_APDU [01:55:04]CAPDU: 80 0D 03 02 [01:55:04]Write to MH i2c: E2 08 00 55 4D 80 0D 03 02 00 00 00 00 1D [01:55:04]Write i2c OK [01:55:04]MH_I2C_Read... [01:55:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:55:04]Read from MH i2c: E2 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: E2 0B 00 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: E2 0B 00 55 4D 00 CA 98 16 A8 3B 75 A5 9B 90 00 2E [01:55:04]RAPDU: CA 98 16 A8 3B 75 A5 9B 90 00 [01:55:04]wFMCommunicate OK [01:55:04]SAM_PROTO_SignData done [01:55:04]FM_MakeSignedData done [01:55:04]CreateOFDProtocolMessage [01:55:04]wFMCommunicate request_size=4 [01:55:04]MH_SAM_APDU [01:55:04]CAPDU: 80 11 00 00 [01:55:04]Write to MH i2c: E2 08 00 56 4D 80 11 00 00 00 00 00 00 1D [01:55:04]Write i2c OK [01:55:04]MH_I2C_Read... [01:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:55:04]Read from MH i2c: E2 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: E2 17 00 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: E2 17 00 56 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7D [01:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:55:04]wFMCommunicate OK [01:55:04]CreateOFDProtocolMessage done [01:55:04]OFDSenderStorePacket 162989 [01:55:04]StoreOFDPacket docnum=162989 [01:55:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6F D1 07 01 E4 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7B 81 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7C 02 00 35 04 06 00 59 7A E1 36 36 57 CA 98 16 A8 3B 75 A5 9B [01:55:04]CheckFolder [01:55:04]dirname=/storage/ofd_packets [01:55:04]CheckFolder done [01:55:04]ProducePacketName [01:55:04]name=ofd_packets/00162989 [01:55:04]NVStorageSaveData ofd_packets/00162989 [01:55:04]File name is /storage/ofd_packets/00162989 [01:55:04]Write 301 bytes [01:55:04]NVStorageSaveData done [01:55:04]OFDSenderStorePacket done [01:55:04]KKMCreateOFDPacket done [01:55:04]NVStorageSaveData kkm_last_timestamp [01:55:04]File name is /storage/kkm_last_timestamp [01:55:04]Write 4 bytes [01:55:04]NVStorageSaveData done [01:55:04]ExternCall_PrintAddStr [01:55:04]wPrintStart [01:55:04]Write to MH i2c: 01 00 00 57 4D A4 [01:55:04]Write i2c OK [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: 01 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: 01 07 00 [01:55:04]MH_I2C_Read... [01:55:04]Read from MH i2c: 01 07 00 57 4D 00 00 00 00 00 FF 0F B9 [01:55:04]RasterBufferAndPrint [01:55:04]line Счет N : (1)1319607 [01:55:04]line ИНН: 02508201610067 [01:55:04]line Контрольно-Кассовый Чек [01:55:04]line ПРОДАЖА [01:55:04]line ТРК (МРК, ГНК) : 43 [01:55:04]line Товар: 2710124130 [01:55:04]line Аи-92-К-5 [01:55:04]line 4.530 * 66.30 [01:55:04]line = 300.34 [01:55:04]line НДС 12% НСП 1% [01:55:04]line > о реализуемом товаре [01:55:04]line ИТОГО: 300.34 [01:55:04]line НСП 1% : 2.66 [01:55:04]line НДС 12% : 31.89 [01:55:04]line Наличными: 0.00 [01:55:04]line Безнал.: 300.34 [01:55:04]line Место: АЗС № 140 "Партнер Нефть" [01:55:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:55:04]line СНО: Общий режим [01:55:04]line Чек 13 15.07.2024 01:55 [01:55:04]line Смена: 464 ФФД: 1.0 [01:55:04]line ЗНМ: 0300000129 [01:55:04]line РНМ: 0000000000090858 [01:55:04]line Версия ККМ: 001 [01:55:04]line Платежная система: Бакай Банк [01:55:04]line ФМ: 0000000000874899 [01:55:04]line ФД: 162989 [01:55:04]line ФПД: 98384299308631 [01:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T015507&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162989&fm=98384299308631&tin=02508201610067®Number=0000000000090858&sum=30034 [01:55:05]written 0, free lines is 4095 [01:55:05]OFD Sender: Processing packet 162989 [packets to send 106, broken 105] [01:55:05]ProducePacketName [01:55:05]name=ofd_packets/00162989 [01:55:05]OFD Sender: To server: pG, [01:55:05]CommunicateWithHost lk.salyk.kg:30040 [01:55:05]ConnectInit lk.salyk.kg [01:55:05]Connected sock=10 [01:55:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6F D1 07 01 E4 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7B 81 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7C 02 00 35 04 06 00 59 7A E1 36 36 57 CA 98 16 A8 3B 75 A5 9B [01:55:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A0 1D 47 00 E8 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7C 02 00 F4 03 04 00 87 2D 94 66 B6 04 01 00 00 5A BB E8 76 BC 47 AA B9 [01:55:05]CommunicateWithHost err = 0 [01:55:05]CheckOFDResponse [01:55:05]1017 (14) - 77093643461234 [01:55:05]1041 (16) - 0000000000874899 [01:55:05]1040 (4) - 162989 [01:55:05]1012 (4) - 14.07.2024 19:56 [01:55:05]1206 (1) - 0 [01:55:05]OFD Sender: Remove packet 162989 [01:55:05]ProducePacketName [01:55:05]name=ofd_packets/00162989 [01:55:05]NVStorageDeleteData [01:55:05]Write to MH i2c: 01 00 00 81 4D CE [01:55:05]Write i2c OK [01:55:05]MH_I2C_Read... [01:55:05]Read from MH i2c: 01 [01:55:05]MH_I2C_Read... [01:55:05]Read from MH i2c: 01 07 00 [01:55:05]MH_I2C_Read... [01:55:05]Read from MH i2c: 01 07 00 81 4D 00 00 00 00 00 E6 0C C7 [01:55:05]RasterBufferAndPrint [01:55:05]line [01:55:05]line [01:55:05]line [01:55:05]line [01:55:05]line [01:55:05]written 0, free lines is 3308 [01:55:05]MH_Cut [01:55:05]Write to MH i2c: D1 01 00 88 4D 01 A7 [01:55:05]Write i2c OK [01:55:05]MH_I2C_Read... [01:55:05]Read from MH i2c: D1 [01:55:05]MH_I2C_Read... [01:55:05]Read from MH i2c: D1 01 00 [01:55:05]MH_I2C_Read... [01:55:05]Read from MH i2c: D1 01 00 88 4D 00 A6 [01:55:05]Write to MH i2c: 01 00 00 89 4D D6 [01:55:05]Write i2c OK [01:55:05]MH_I2C_Read... [01:55:06]OFD Sender: No OFD packet to send [01:55:06]*** Cut start [01:55:06]*** Purtial cut [01:55:06]*** CUTSNS_PIN = 0 [01:55:06]*** Stage 1: CUTSNS_PIN = 1 [01:55:08]Read from MH i2c: 01 [01:55:08]MH_I2C_Read... [01:55:08]*** Stop cut motor [01:55:08]*** Cut end [01:55:08]Read from MH i2c: 01 07 00 [01:55:08]MH_I2C_Read... [01:55:08]Read from MH i2c: 01 07 00 89 4D 00 00 00 00 00 FF 0F EB [01:55:08]process_action close_receipt done [01:55:08]requested_data is exist [01:55:08]produce_requested_data [01:55:08]requested_item fm.sn is exist - process it [01:55:08]wFMCommunicate request_size=4 [01:55:08]MH_SAM_APDU [01:55:08]CAPDU: 80 11 00 00 [01:55:08]Write to MH i2c: E2 08 00 8A 4D 80 11 00 00 00 00 00 00 51 [01:55:08]Write i2c OK [01:55:08]MH_I2C_Read... [01:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:55:08]Read from MH i2c: E2 [01:55:08]MH_I2C_Read... [01:55:08]Read from MH i2c: E2 17 00 [01:55:08]MH_I2C_Read... [01:55:08]Read from MH i2c: E2 17 00 8A 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B1 [01:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:55:08]wFMCommunicate OK [01:55:08]requested_item fd.num is exist - process it [01:55:08]SAM_PROTO_GetFieldsCounters [01:55:08]wFMCommunicate request_size=4 [01:55:08]MH_SAM_APDU [01:55:08]CAPDU: 80 13 00 00 [01:55:08]Write to MH i2c: E2 08 00 8B 4D 80 13 00 00 00 00 00 00 54 [01:55:08]Write i2c OK [01:55:08]MH_I2C_Read... [01:55:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:55:08]Read from MH i2c: E2 [01:55:08]MH_I2C_Read... [01:55:08]Read from MH i2c: E2 62 00 [01:55:08]MH_I2C_Read... [01:55:08]Read from MH i2c: E2 62 00 8B 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AD 7C 02 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [01:55:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AD 7C 02 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:55:08]wFMCommunicate OK [01:55:08]SAM_PROTO_GetFieldsCounters done [01:55:08]requested_item shift.num is exist - process it [01:55:08]requested_item shift.opened is exist - process it [01:55:08]req_shift_opened [01:55:08]FM_GetShiftState [01:55:08]SAM_PROTO_GetShiftState [01:55:08]wFMCommunicate request_size=4 [01:55:08]MH_SAM_APDU [01:55:08]CAPDU: 80 13 01 00 [01:55:08]Write to MH i2c: E2 08 00 8C 4D 80 13 01 00 00 00 00 00 56 [01:55:08]Write i2c OK [01:55:08]MH_I2C_Read... [01:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:55:08]Read from MH i2c: E2 [01:55:08]MH_I2C_Read... [01:55:08]Read from MH i2c: E2 0E 00 [01:55:08]MH_I2C_Read... [01:55:08]Read from MH i2c: E2 0E 00 8C 4D 00 09 00 01 45 67 94 66 00 00 00 00 90 00 08 [01:55:08]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [01:55:08]wFMCommunicate OK [01:55:08]SAM_PROTO_GetShiftState done [01:55:08]FM_GetShiftState done [01:55:08]req_shift_opened done [01:55:08]requested_item shift.open_date is exist - process it [01:55:08]req_shift_open_date [01:55:08]req_shift_open_date done [01:55:08]produce_requested_data done [01:55:08]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162989,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [01:55:08]process_action_free close_receipt [01:55:08]json_value_free [01:55:08]json_value_free done [01:55:08]process_json_proto returns [01:55:08]Send response to host [01:55:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162989,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [01:55:08]free response buf [01:55:08]execute_script done [01:55:08]execute_script returns [01:55:08]free content buf [01:55:08]Sock 9.Close socket [01:55:08]Sock 9.Thread stoped [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:27]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:07]OFD Sender: No OFD packet to send [02:14:12]OFD Sender: No OFD packet to send [02:14:17]OFD Sender: No OFD packet to send [02:14:22]OFD Sender: No OFD packet to send [02:14:27]OFD Sender: No OFD packet to send [02:14:32]OFD Sender: No OFD packet to send [02:14:37]OFD Sender: No OFD packet to send [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:28]accept exits with 7 [02:18:28]New connection [02:18:28]New thread 3066879332 created [02:18:28]Thread 3066735972 joined [02:18:28]Waiting for new connection... [02:18:28] Sock 7.Parse request [02:18:28]Sock 7.Check first char [02:18:28]Sock 7.First char is OK [02:18:28]request: POST /json_proto HTTP/1.0 [02:18:28]Method: POST [02:18:28]URL: /json_proto [02:18:28]Method is POST - this is cgi request [02:18:28]url: /json_proto [02:18:28]query_string will be loaded in cgi processing [02:18:28]execute_cgi json_proto POST (null) [02:18:28]execute_cgi path=json_proto method=POST [02:18:28]POST find Content-Length [02:18:28]Host: 172.17.39.67:8080 [02:18:28]Content-Length: 678 [02:18:28]Content-Type: application/json [02:18:28] [02:18:28]POST finish read [02:18:28]Found Content-Length = 678 [02:18:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:18:28]execute_script... [02:18:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "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:18:28]POST & json_proto [02:18:28]process_json_proto [02:18:28]json parsed OK: [02:18:28]protocol is kg_v1.0 [02:18:28]action value=close_receipt [02:18:28]process_action close_receipt [02:18:28]cmd_close_receipt [02:18:28]MH_GetDate [02:18:28]Write to MH i2c: F0 00 00 8D 4D C9 [02:18:28]Write i2c OK [02:18:28]MH_I2C_Read... [02:18:28]Read from MH i2c: F0 [02:18:28]MH_I2C_Read... [02:18:28]Read from MH i2c: F0 09 00 [02:18:28]MH_I2C_Read... [02:18:28]Read from MH i2c: F0 09 00 8D 4D 00 F8 86 94 66 B6 85 93 66 7E [02:18:28]GetLastDocTimeStamp 1721008507 [02:18:28]current date 1721009912 [02:18:28]FM_GetShiftState [02:18:28]SAM_PROTO_GetShiftState [02:18:28]wFMCommunicate request_size=4 [02:18:28]MH_SAM_APDU [02:18:28]CAPDU: 80 13 01 00 [02:18:28]Write to MH i2c: E2 08 00 8E 4D 80 13 01 00 00 00 00 00 58 [02:18:28]Write i2c OK [02:18:28]MH_I2C_Read... [02:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:18:28]Read from MH i2c: E2 [02:18:28]MH_I2C_Read... [02:18:28]Read from MH i2c: E2 0E 00 [02:18:28]MH_I2C_Read... [02:18:28]Read from MH i2c: E2 0E 00 8E 4D 00 09 00 01 45 67 94 66 00 00 00 00 90 00 0A [02:18:28]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [02:18:28]wFMCommunicate OK [02:18:28]SAM_PROTO_GetShiftState done [02:18:28]FM_GetShiftState done [02:18:28]opened in 1721001797 [02:18:28]opened+sec_in_day 1721088197 [02:18:28]quantity*price = 50056 [02:18:28]sum+1 = 50058 [02:18:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 14 15.07.2024 02:18 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162990 ФПД: 245940233755284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T021832&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162990&fm=245940233755284&tin=02508201610067®Number=0000000000090858&sum=50000 [02:18:29]StoreToDocumentArchive [02:18:29]shift 464 fd 162990 [02:18:29]save to /storage/0464/doc_00162990 [02:18:29]save last doc name /storage/0464/doc_00162990 to /storage/kkm_last_doc_name [02:18:29]save OK [02:18:29]Clear old archive folders... [02:18:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:18:29]tlvbuf is 013E8840 [02:18:29]SAM_PROTO_ClearQueue [02:18:29]wFMCommunicate request_size=4 [02:18:29]MH_SAM_APDU [02:18:29]CAPDU: 80 09 00 00 [02:18:29]Write to MH i2c: E2 08 00 9B 4D 80 09 00 00 00 00 00 00 5A [02:18:29]Write i2c OK [02:18:29]MH_I2C_Read... [02:18:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:18:29]Read from MH i2c: E2 [02:18:29]MH_I2C_Read... [02:18:29]Read from MH i2c: E2 03 00 [02:18:29]MH_I2C_Read... [02:18:29]Read from MH i2c: E2 03 00 9B 4D 00 90 00 5C [02:18:29]RAPDU: 90 00 [02:18:29]wFMCommunicate OK [02:18:29]SAM_PROTO_ClearQueue done [02:18:29]KKMCreateOFDPacket [02:18:29]OFDProtocolAddRootSTLVToBuf [02:18:29]FM_MakeSignedData [02:18:29]FM_MakeSignedData [02:18:29]SAM_PROTO_SignData [02:18:29]wFMCommunicate request_size=4 [02:18:29]MH_SAM_APDU [02:18:29]CAPDU: 80 0D 01 02 [02:18:29]Write to MH i2c: E2 08 00 9C 4D 80 0D 01 02 00 00 00 00 62 [02:18:29]Write i2c OK [02:18:29]MH_I2C_Read... [02:18:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:18:29]Read from MH i2c: E2 [02:18:29]MH_I2C_Read... [02:18:29]Read from MH i2c: E2 03 00 [02:18:29]MH_I2C_Read... [02:18:29]Read from MH i2c: E2 03 00 9C 4D 00 90 00 5D [02:18:29]RAPDU: 90 00 [02:18:29]wFMCommunicate OK [02:18:29]wFMCommunicate request_size=255 [02:18:29]MH_SAM_APDU [02:18:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 0E 00 00 00 F4 03 04 00 F8 86 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7C 02 00 35 04 06 00 DF [02:18:29]Write to MH i2c: E2 02 01 9D 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 0E 00 00 00 F4 03 04 00 F8 86 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7C 02 00 35 04 06 00 DF 00 00 80 [02:18:29]Write i2c OK [02:18:29]MH_I2C_Read... [02:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:18:30]Read from MH i2c: E2 [02:18:30]MH_I2C_Read... [02:18:30]Read from MH i2c: E2 03 00 [02:18:30]MH_I2C_Read... [02:18:30]Read from MH i2c: E2 03 00 9D 4D 00 90 00 5E [02:18:30]RAPDU: 90 00 [02:18:30]wFMCommunicate OK [02:18:30]wFMCommunicate request_size=10 [02:18:30]MH_SAM_APDU [02:18:30]CAPDU: 80 0D 02 02 05 AE 6C 44 DA 94 [02:18:30]Write to MH i2c: E2 0D 00 9E 4D 80 0D 02 02 05 00 AE 6C 44 DA 94 00 00 3B [02:18:30]Write i2c OK [02:18:30]MH_I2C_Read... [02:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:18:30]Read from MH i2c: E2 [02:18:30]MH_I2C_Read... [02:18:30]Read from MH i2c: E2 03 00 [02:18:30]MH_I2C_Read... [02:18:30]Read from MH i2c: E2 03 00 9E 4D 00 90 00 5F [02:18:30]RAPDU: 90 00 [02:18:30]wFMCommunicate OK [02:18:30]wFMCommunicate request_size=4 [02:18:30]MH_SAM_APDU [02:18:30]CAPDU: 80 0D 03 02 [02:18:30]Write to MH i2c: E2 08 00 9F 4D 80 0D 03 02 00 00 00 00 67 [02:18:30]Write i2c OK [02:18:30]MH_I2C_Read... [02:18:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:18:30]Read from MH i2c: E2 [02:18:30]MH_I2C_Read... [02:18:30]Read from MH i2c: E2 0B 00 [02:18:30]MH_I2C_Read... [02:18:30]Read from MH i2c: E2 0B 00 9F 4D 00 4B 8D A9 45 92 DE BD 1A 90 00 75 [02:18:30]RAPDU: 4B 8D A9 45 92 DE BD 1A 90 00 [02:18:30]wFMCommunicate OK [02:18:30]SAM_PROTO_SignData done [02:18:30]FM_MakeSignedData done [02:18:30]CreateOFDProtocolMessage [02:18:30]wFMCommunicate request_size=4 [02:18:30]MH_SAM_APDU [02:18:30]CAPDU: 80 11 00 00 [02:18:30]Write to MH i2c: E2 08 00 A0 4D 80 11 00 00 00 00 00 00 67 [02:18:30]Write i2c OK [02:18:30]MH_I2C_Read... [02:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:18:30]Read from MH i2c: E2 [02:18:30]MH_I2C_Read... [02:18:30]Read from MH i2c: E2 17 00 [02:18:30]MH_I2C_Read... [02:18:30]Read from MH i2c: E2 17 00 A0 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C7 [02:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:18:30]wFMCommunicate OK [02:18:30]CreateOFDProtocolMessage done [02:18:30]OFDSenderStorePacket 162990 [02:18:30]StoreOFDPacket docnum=162990 [02:18:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 EA 25 07 01 8D 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 0E 00 00 00 F4 03 04 00 F8 86 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7C 02 00 35 04 06 00 DF AE 6C 44 DA 94 4B 8D A9 45 92 DE BD 1A [02:18:30]CheckFolder [02:18:30]dirname=/storage/ofd_packets [02:18:30]CheckFolder done [02:18:30]ProducePacketName [02:18:30]name=ofd_packets/00162990 [02:18:30]NVStorageSaveData ofd_packets/00162990 [02:18:30]File name is /storage/ofd_packets/00162990 [02:18:30]Write 301 bytes [02:18:30]NVStorageSaveData done [02:18:30]OFDSenderStorePacket done [02:18:30]KKMCreateOFDPacket done [02:18:30]NVStorageSaveData kkm_last_timestamp [02:18:30]File name is /storage/kkm_last_timestamp [02:18:30]Write 4 bytes [02:18:30]NVStorageSaveData done [02:18:30]ExternCall_PrintAddStr [02:18:30]wPrintStart [02:18:30]Write to MH i2c: 01 00 00 A1 4D EE [02:18:30]Write i2c OK [02:18:30]MH_I2C_Read... [02:18:30]Read from MH i2c: 01 [02:18:30]MH_I2C_Read... [02:18:30]Read from MH i2c: 01 07 00 [02:18:30]MH_I2C_Read... [02:18:30]Read from MH i2c: 01 07 00 A1 4D 00 00 00 00 00 FF 0F 03 [02:18:30]RasterBufferAndPrint [02:18:30]line Счет N : (1)1319608 [02:18:30]line ИНН: 02508201610067 [02:18:30]line Контрольно-Кассовый Чек [02:18:30]line ПРОДАЖА [02:18:30]line ТРК (МРК, ГНК) : 33 [02:18:30]line Товар: 2710124130 [02:18:30]line Аи-92-К-5 [02:18:30]line 7.550 * 66.30 [02:18:30]line = 500.57 [02:18:30]line НДС 12% НСП 1% [02:18:30]line > о реализуемом товаре [02:18:30]line ОКРУГЛЕНИЕ: -0.57 [02:18:30]line ИТОГО: 500.00 [02:18:30]line Внесено: 500.00 [02:18:30]line СДАЧА: 0.00 [02:18:30]line НСП 1% : 4.43 [02:18:30]line НДС 12% : 53.16 [02:18:30]line Наличными: 500.00 [02:18:30]line Безнал.: 0.00 [02:18:30]line Место: АЗС № 140 "Партнер Нефть" [02:18:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:18:30]line СНО: Общий режим [02:18:30]line Чек 14 15.07.2024 02:18 [02:18:30]line Смена: 464 ФФД: 1.0 [02:18:30]line ЗНМ: 0300000129 [02:18:30]line РНМ: 0000000000090858 [02:18:30]line Версия ККМ: 001 [02:18:30]line ФМ: 0000000000874899 [02:18:30]line ФД: 162990 [02:18:30]line ФПД: 245940233755284 [02:18:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T021832&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162990&fm=245940233755284&tin=02508201610067®Number=0000000000090858&sum=50000 [02:18:30]OFD Sender: Processing packet 162990 [packets to send 106, broken 105] [02:18:30]ProducePacketName [02:18:30]name=ofd_packets/00162990 [02:18:30]OFD Sender: To server: pG, [02:18:30]CommunicateWithHost lk.salyk.kg:30040 [02:18:30]ConnectInit lk.salyk.kg [02:18:30]written 0, free lines is 4095 [02:18:30]Connected sock=10 [02:18:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 EA 25 07 01 8D 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 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 0E 00 00 00 F4 03 04 00 F8 86 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7C 02 00 35 04 06 00 DF AE 6C 44 DA 94 4B 8D A9 45 92 DE BD 1A [02:18:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 65 6C 47 00 96 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7C 02 00 F4 03 04 00 04 33 94 66 B6 04 01 00 00 C8 81 BF B4 42 33 4A B2 [02:18:30]CommunicateWithHost err = 0 [02:18:30]CheckOFDResponse [02:18:30]1017 (14) - 77093643461234 [02:18:30]1041 (16) - 0000000000874899 [02:18:30]1040 (4) - 162990 [02:18:30]1012 (4) - 14.07.2024 20:20 [02:18:30]1206 (1) - 0 [02:18:30]OFD Sender: Remove packet 162990 [02:18:30]ProducePacketName [02:18:30]name=ofd_packets/00162990 [02:18:30]NVStorageDeleteData [02:18:31]Write to MH i2c: 01 00 00 CC 4D 19 [02:18:31]Write i2c OK [02:18:31]MH_I2C_Read... [02:18:31]Read from MH i2c: 01 [02:18:31]MH_I2C_Read... [02:18:31]Read from MH i2c: 01 07 00 [02:18:31]MH_I2C_Read... [02:18:31]Read from MH i2c: 01 07 00 CC 4D 00 00 00 00 00 CD 0C F9 [02:18:31]RasterBufferAndPrint [02:18:31]line [02:18:31]line [02:18:31]line [02:18:31]line [02:18:31]line [02:18:31]written 0, free lines is 3284 [02:18:31]MH_Cut [02:18:31]Write to MH i2c: D1 01 00 D3 4D 01 F2 [02:18:31]Write i2c OK [02:18:31]MH_I2C_Read... [02:18:31]Read from MH i2c: D1 [02:18:31]MH_I2C_Read... [02:18:31]Read from MH i2c: D1 01 00 [02:18:31]MH_I2C_Read... [02:18:31]Read from MH i2c: D1 01 00 D3 4D 00 F1 [02:18:31]Write to MH i2c: 01 00 00 D4 4D 21 [02:18:31]Write i2c OK [02:18:31]MH_I2C_Read... [02:18:31]OFD Sender: No OFD packet to send [02:18:31]*** Cut start [02:18:31]*** Purtial cut [02:18:31]*** Stage 1: CUTSNS_PIN = 1 [02:18:32]Read from MH i2c: 01 [02:18:32]MH_I2C_Read... [02:18:32]*** Stop cut motor [02:18:32]*** Cut end [02:18:32]Read from MH i2c: 01 07 00 [02:18:32]MH_I2C_Read... [02:18:32]Read from MH i2c: 01 07 00 D4 4D 00 00 00 00 00 FF 0F 36 [02:18:32]process_action close_receipt done [02:18:32]requested_data is exist [02:18:32]produce_requested_data [02:18:32]requested_item fm.sn is exist - process it [02:18:32]wFMCommunicate request_size=4 [02:18:32]MH_SAM_APDU [02:18:32]CAPDU: 80 11 00 00 [02:18:32]Write to MH i2c: E2 08 00 D5 4D 80 11 00 00 00 00 00 00 9C [02:18:32]Write i2c OK [02:18:32]MH_I2C_Read... [02:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:18:32]Read from MH i2c: E2 [02:18:32]MH_I2C_Read... [02:18:32]Read from MH i2c: E2 17 00 [02:18:32]MH_I2C_Read... [02:18:32]Read from MH i2c: E2 17 00 D5 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FC [02:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:18:32]wFMCommunicate OK [02:18:32]requested_item fd.num is exist - process it [02:18:32]SAM_PROTO_GetFieldsCounters [02:18:32]wFMCommunicate request_size=4 [02:18:32]MH_SAM_APDU [02:18:32]CAPDU: 80 13 00 00 [02:18:32]Write to MH i2c: E2 08 00 D6 4D 80 13 00 00 00 00 00 00 9F [02:18:32]Write i2c OK [02:18:32]MH_I2C_Read... [02:18:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:18:32]Read from MH i2c: E2 [02:18:32]MH_I2C_Read... [02:18:32]Read from MH i2c: E2 62 00 [02:18:32]MH_I2C_Read... [02:18:32]Read from MH i2c: E2 62 00 D6 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AE 7C 02 00 0E 04 04 00 D0 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 F9 [02:18:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AE 7C 02 00 0E 04 04 00 D0 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:18:32]wFMCommunicate OK [02:18:32]SAM_PROTO_GetFieldsCounters done [02:18:32]requested_item shift.num is exist - process it [02:18:32]requested_item shift.opened is exist - process it [02:18:32]req_shift_opened [02:18:32]FM_GetShiftState [02:18:32]SAM_PROTO_GetShiftState [02:18:32]wFMCommunicate request_size=4 [02:18:32]MH_SAM_APDU [02:18:32]CAPDU: 80 13 01 00 [02:18:32]Write to MH i2c: E2 08 00 D7 4D 80 13 01 00 00 00 00 00 A1 [02:18:32]Write i2c OK [02:18:32]MH_I2C_Read... [02:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:18:32]Read from MH i2c: E2 [02:18:32]MH_I2C_Read... [02:18:32]Read from MH i2c: E2 0E 00 [02:18:32]MH_I2C_Read... [02:18:32]Read from MH i2c: E2 0E 00 D7 4D 00 09 00 01 45 67 94 66 00 00 00 00 90 00 53 [02:18:32]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [02:18:32]wFMCommunicate OK [02:18:32]SAM_PROTO_GetShiftState done [02:18:32]FM_GetShiftState done [02:18:32]req_shift_opened done [02:18:32]requested_item shift.open_date is exist - process it [02:18:32]req_shift_open_date [02:18:32]req_shift_open_date done [02:18:32]produce_requested_data done [02:18:32]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162990,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [02:18:32]process_action_free close_receipt [02:18:32]json_value_free [02:18:32]json_value_free done [02:18:32]process_json_proto returns [02:18:32]Send response to host [02:18:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162990,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [02:18:32]free response buf [02:18:32]execute_script done [02:18:32]execute_script returns [02:18:32]free content buf [02:18:32]Sock 7.Close socket [02:18:32]Sock 7.Thread stoped [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:01]accept exits with 9 [02:28:01]New connection [02:28:01]New thread 3066735972 created [02:28:01]Thread 3066879332 joined [02:28:01]Waiting for new connection... [02:28:01] Sock 9.Parse request [02:28:01]Sock 9.Check first char [02:28:01]Sock 9.First char is OK [02:28:01]request: POST /json_proto HTTP/1.0 [02:28:01]Method: POST [02:28:01]URL: /json_proto [02:28:01]Method is POST - this is cgi request [02:28:01]url: /json_proto [02:28:01]query_string will be loaded in cgi processing [02:28:01]execute_cgi json_proto POST (null) [02:28:01]execute_cgi path=json_proto method=POST [02:28:01]POST find Content-Length [02:28:01]Host: 172.17.39.67:8080 [02:28:01]Content-Length: 678 [02:28:01]Content-Type: application/json [02:28:01] [02:28:01]POST finish read [02:28:01]Found Content-Length = 678 [02:28:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [02:28:01]execute_script... [02:28:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [02:28:01]POST & json_proto [02:28:01]process_json_proto [02:28:01]json parsed OK: [02:28:01]protocol is kg_v1.0 [02:28:01]action value=close_receipt [02:28:01]process_action close_receipt [02:28:01]cmd_close_receipt [02:28:01]MH_GetDate [02:28:01]Write to MH i2c: F0 00 00 D8 4D 14 [02:28:01]Write i2c OK [02:28:01]MH_I2C_Read... [02:28:01]Read from MH i2c: F0 [02:28:01]MH_I2C_Read... [02:28:01]Read from MH i2c: F0 09 00 [02:28:01]MH_I2C_Read... [02:28:01]Read from MH i2c: F0 09 00 D8 4D 00 35 89 94 66 B6 85 93 66 09 [02:28:01]GetLastDocTimeStamp 1721009912 [02:28:01]current date 1721010485 [02:28:01]FM_GetShiftState [02:28:01]SAM_PROTO_GetShiftState [02:28:01]wFMCommunicate request_size=4 [02:28:01]MH_SAM_APDU [02:28:01]CAPDU: 80 13 01 00 [02:28:01]Write to MH i2c: E2 08 00 D9 4D 80 13 01 00 00 00 00 00 A3 [02:28:01]Write i2c OK [02:28:01]MH_I2C_Read... [02:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:28:01]Read from MH i2c: E2 [02:28:01]MH_I2C_Read... [02:28:01]Read from MH i2c: E2 0E 00 [02:28:01]MH_I2C_Read... [02:28:01]Read from MH i2c: E2 0E 00 D9 4D 00 09 00 01 45 67 94 66 00 00 00 00 90 00 55 [02:28:01]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [02:28:01]wFMCommunicate OK [02:28:01]SAM_PROTO_GetShiftState done [02:28:01]FM_GetShiftState done [02:28:01]opened in 1721001797 [02:28:01]opened+sec_in_day 1721088197 [02:28:01]quantity*price = 30033 [02:28:01]sum+1 = 30035 [02:28:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 15 15.07.2024 02:28 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162991 ФПД: 173922484222553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T022805&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162991&fm=173922484222553&tin=02508201610067®Number=0000000000090858&sum=30000 [02:28:02]StoreToDocumentArchive [02:28:02]shift 464 fd 162991 [02:28:02]save to /storage/0464/doc_00162991 [02:28:02]save last doc name /storage/0464/doc_00162991 to /storage/kkm_last_doc_name [02:28:02]save OK [02:28:02]Clear old archive folders... [02:28:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:28:02]tlvbuf is 012FC1D0 [02:28:02]SAM_PROTO_ClearQueue [02:28:02]wFMCommunicate request_size=4 [02:28:02]MH_SAM_APDU [02:28:02]CAPDU: 80 09 00 00 [02:28:02]Write to MH i2c: E2 08 00 E6 4D 80 09 00 00 00 00 00 00 A5 [02:28:02]Write i2c OK [02:28:02]MH_I2C_Read... [02:28:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:28:02]Read from MH i2c: E2 [02:28:02]MH_I2C_Read... [02:28:02]Read from MH i2c: E2 03 00 [02:28:02]MH_I2C_Read... [02:28:02]Read from MH i2c: E2 03 00 E6 4D 00 90 00 A7 [02:28:02]RAPDU: 90 00 [02:28:02]wFMCommunicate OK [02:28:02]SAM_PROTO_ClearQueue done [02:28:02]KKMCreateOFDPacket [02:28:02]OFDProtocolAddRootSTLVToBuf [02:28:02]FM_MakeSignedData [02:28:02]FM_MakeSignedData [02:28:02]SAM_PROTO_SignData [02:28:02]wFMCommunicate request_size=4 [02:28:02]MH_SAM_APDU [02:28:02]CAPDU: 80 0D 01 02 [02:28:02]Write to MH i2c: E2 08 00 E7 4D 80 0D 01 02 00 00 00 00 AD [02:28:02]Write i2c OK [02:28:02]MH_I2C_Read... [02:28:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:28:02]Read from MH i2c: E2 [02:28:02]MH_I2C_Read... [02:28:02]Read from MH i2c: E2 03 00 [02:28:02]MH_I2C_Read... [02:28:02]Read from MH i2c: E2 03 00 E7 4D 00 90 00 A8 [02:28:02]RAPDU: 90 00 [02:28:02]wFMCommunicate OK [02:28:02]wFMCommunicate request_size=255 [02:28:02]MH_SAM_APDU [02:28:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 0F 00 00 00 F4 03 04 00 35 89 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AF 7C 02 00 35 04 06 00 9E [02:28:02]Write to MH i2c: E2 02 01 E8 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 0F 00 00 00 F4 03 04 00 35 89 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AF 7C 02 00 35 04 06 00 9E 00 00 8B [02:28:02]Write i2c OK [02:28:02]MH_I2C_Read... [02:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:28:02]Read from MH i2c: E2 [02:28:02]MH_I2C_Read... [02:28:02]Read from MH i2c: E2 03 00 [02:28:02]MH_I2C_Read... [02:28:02]Read from MH i2c: E2 03 00 E8 4D 00 90 00 A9 [02:28:02]RAPDU: 90 00 [02:28:02]wFMCommunicate OK [02:28:02]wFMCommunicate request_size=10 [02:28:02]MH_SAM_APDU [02:28:02]CAPDU: 80 0D 02 02 05 2E 7B E3 FA 59 [02:28:02]Write to MH i2c: E2 0D 00 E9 4D 80 0D 02 02 05 00 2E 7B E3 FA 59 00 00 99 [02:28:02]Write i2c OK [02:28:02]MH_I2C_Read... [02:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:28:03]Read from MH i2c: E2 [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: E2 03 00 [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: E2 03 00 E9 4D 00 90 00 AA [02:28:03]RAPDU: 90 00 [02:28:03]wFMCommunicate OK [02:28:03]wFMCommunicate request_size=4 [02:28:03]MH_SAM_APDU [02:28:03]CAPDU: 80 0D 03 02 [02:28:03]Write to MH i2c: E2 08 00 EA 4D 80 0D 03 02 00 00 00 00 B2 [02:28:03]Write i2c OK [02:28:03]MH_I2C_Read... [02:28:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:28:03]Read from MH i2c: E2 [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: E2 0B 00 [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: E2 0B 00 EA 4D 00 7E 2C 2E F3 47 DF 13 9A 90 00 51 [02:28:03]RAPDU: 7E 2C 2E F3 47 DF 13 9A 90 00 [02:28:03]wFMCommunicate OK [02:28:03]SAM_PROTO_SignData done [02:28:03]FM_MakeSignedData done [02:28:03]CreateOFDProtocolMessage [02:28:03]wFMCommunicate request_size=4 [02:28:03]MH_SAM_APDU [02:28:03]CAPDU: 80 11 00 00 [02:28:03]Write to MH i2c: E2 08 00 EB 4D 80 11 00 00 00 00 00 00 B2 [02:28:03]Write i2c OK [02:28:03]MH_I2C_Read... [02:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:28:03]Read from MH i2c: E2 [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: E2 17 00 [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: E2 17 00 EB 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 12 [02:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:28:03]wFMCommunicate OK [02:28:03]CreateOFDProtocolMessage done [02:28:03]OFDSenderStorePacket 162991 [02:28:03]StoreOFDPacket docnum=162991 [02:28:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E4 3A 07 01 26 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 0F 00 00 00 F4 03 04 00 35 89 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AF 7C 02 00 35 04 06 00 9E 2E 7B E3 FA 59 7E 2C 2E F3 47 DF 13 9A [02:28:03]CheckFolder [02:28:03]dirname=/storage/ofd_packets [02:28:03]CheckFolder done [02:28:03]ProducePacketName [02:28:03]name=ofd_packets/00162991 [02:28:03]NVStorageSaveData ofd_packets/00162991 [02:28:03]File name is /storage/ofd_packets/00162991 [02:28:03]Write 301 bytes [02:28:03]NVStorageSaveData done [02:28:03]OFDSenderStorePacket done [02:28:03]KKMCreateOFDPacket done [02:28:03]NVStorageSaveData kkm_last_timestamp [02:28:03]File name is /storage/kkm_last_timestamp [02:28:03]Write 4 bytes [02:28:03]NVStorageSaveData done [02:28:03]OFD Sender: Processing packet 162991 [packets to send 106, broken 105] [02:28:03]ProducePacketName [02:28:03]name=ofd_packets/00162991 [02:28:03]OFD Sender: To server: pG, [02:28:03]CommunicateWithHost lk.salyk.kg:30040 [02:28:03]ConnectInit lk.salyk.kg [02:28:03]ExternCall_PrintAddStr [02:28:03]wPrintStart [02:28:03]Write to MH i2c: 01 00 00 EC 4D 39 [02:28:03]Write i2c OK [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: 01 [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: 01 07 00 [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: 01 07 00 EC 4D 00 00 00 00 00 FF 0F 4E [02:28:03]RasterBufferAndPrint [02:28:03]line Счет N : (1)1319609 [02:28:03]line ИНН: 02508201610067 [02:28:03]line Контрольно-Кассовый Чек [02:28:03]line ПРОДАЖА [02:28:03]line ТРК (МРК, ГНК) : 53 [02:28:03]line Товар: 2710124130 [02:28:03]line Аи-92-К-5 [02:28:03]line 4.530 * 66.30 [02:28:03]line = 300.34 [02:28:03]line НДС 12% НСП 1% [02:28:03]line > о реализуемом товаре [02:28:03]line ОКРУГЛЕНИЕ: -0.34 [02:28:03]line ИТОГО: 300.00 [02:28:03]line Внесено: 300.00 [02:28:03]line СДАЧА: 0.00 [02:28:03]line НСП 1% : 2.66 [02:28:03]line НДС 12% : 31.89 [02:28:03]line Наличными: 300.00 [02:28:03]line Безнал.: 0.00 [02:28:03]line Место: АЗС № 140 "Партнер Нефть" [02:28:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:28:03]line СНО: Общий режим [02:28:03]line Чек 15 15.07.2024 02:28 [02:28:03]line Смена: 464 ФФД: 1.0 [02:28:03]line ЗНМ: 0300000129 [02:28:03]line РНМ: 0000000000090858 [02:28:03]line Версия ККМ: 001 [02:28:03]line ФМ: 0000000000874899 [02:28:03]line ФД: 162991 [02:28:03]line ФПД: 173922484222553 [02:28:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T022805&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162991&fm=173922484222553&tin=02508201610067®Number=0000000000090858&sum=30000 [02:28:03]Connected sock=11 [02:28:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E4 3A 07 01 26 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 0F 00 00 00 F4 03 04 00 35 89 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AF 7C 02 00 35 04 06 00 9E 2E 7B E3 FA 59 7E 2C 2E F3 47 DF 13 9A [02:28:03]written 0, free lines is 4095 [02:28:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 97 1C 47 00 AB 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AF 7C 02 00 F4 03 04 00 41 35 94 66 B6 04 01 00 00 1F 03 E3 D3 02 86 81 66 [02:28:03]CommunicateWithHost err = 0 [02:28:03]CheckOFDResponse [02:28:03]1017 (14) - 77093643461234 [02:28:03]1041 (16) - 0000000000874899 [02:28:03]1040 (4) - 162991 [02:28:03]1012 (4) - 14.07.2024 20:29 [02:28:03]1206 (1) - 0 [02:28:03]OFD Sender: Remove packet 162991 [02:28:03]ProducePacketName [02:28:03]name=ofd_packets/00162991 [02:28:03]NVStorageDeleteData [02:28:03]Write to MH i2c: 01 00 00 17 4E 65 [02:28:03]Write i2c OK [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: 01 [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: 01 07 00 [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: 01 07 00 17 4E 00 00 00 00 00 D6 0C 4E [02:28:03]RasterBufferAndPrint [02:28:03]line [02:28:03]line [02:28:03]line [02:28:03]line [02:28:03]line [02:28:03]written 0, free lines is 3293 [02:28:03]MH_Cut [02:28:03]Write to MH i2c: D1 01 00 1E 4E 01 3E [02:28:03]Write i2c OK [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: D1 [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: D1 01 00 [02:28:03]MH_I2C_Read... [02:28:03]Read from MH i2c: D1 01 00 1E 4E 00 3D [02:28:03]Write to MH i2c: 01 00 00 1F 4E 6D [02:28:03]Write i2c OK [02:28:03]MH_I2C_Read... [02:28:04]OFD Sender: No OFD packet to send [02:28:04]*** Cut start [02:28:04]*** Purtial cut [02:28:04]*** CUTSNS_PIN = 0 [02:28:04]*** Stage 1: CUTSNS_PIN = 1 [02:28:06]Read from MH i2c: 01 [02:28:06]MH_I2C_Read... [02:28:06]*** Stop cut motor [02:28:06]*** Cut end [02:28:06]Read from MH i2c: 01 07 00 [02:28:06]MH_I2C_Read... [02:28:06]Read from MH i2c: 01 07 00 1F 4E 00 00 00 00 00 FF 0F 82 [02:28:06]process_action close_receipt done [02:28:06]requested_data is exist [02:28:06]produce_requested_data [02:28:06]requested_item fm.sn is exist - process it [02:28:06]wFMCommunicate request_size=4 [02:28:06]MH_SAM_APDU [02:28:06]CAPDU: 80 11 00 00 [02:28:06]Write to MH i2c: E2 08 00 20 4E 80 11 00 00 00 00 00 00 E8 [02:28:06]Write i2c OK [02:28:06]MH_I2C_Read... [02:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:28:06]Read from MH i2c: E2 [02:28:06]MH_I2C_Read... [02:28:06]Read from MH i2c: E2 17 00 [02:28:06]MH_I2C_Read... [02:28:06]Read from MH i2c: E2 17 00 20 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 48 [02:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:28:06]wFMCommunicate OK [02:28:06]requested_item fd.num is exist - process it [02:28:06]SAM_PROTO_GetFieldsCounters [02:28:06]wFMCommunicate request_size=4 [02:28:06]MH_SAM_APDU [02:28:06]CAPDU: 80 13 00 00 [02:28:06]Write to MH i2c: E2 08 00 21 4E 80 13 00 00 00 00 00 00 EB [02:28:06]Write i2c OK [02:28:06]MH_I2C_Read... [02:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:28:06]Read from MH i2c: E2 [02:28:06]MH_I2C_Read... [02:28:06]Read from MH i2c: E2 62 00 [02:28:06]MH_I2C_Read... [02:28:06]Read from MH i2c: E2 62 00 21 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AF 7C 02 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [02:28:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AF 7C 02 00 0E 04 04 00 D0 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:28:06]wFMCommunicate OK [02:28:06]SAM_PROTO_GetFieldsCounters done [02:28:06]requested_item shift.num is exist - process it [02:28:06]requested_item shift.opened is exist - process it [02:28:06]req_shift_opened [02:28:06]FM_GetShiftState [02:28:06]SAM_PROTO_GetShiftState [02:28:06]wFMCommunicate request_size=4 [02:28:06]MH_SAM_APDU [02:28:06]CAPDU: 80 13 01 00 [02:28:06]Write to MH i2c: E2 08 00 22 4E 80 13 01 00 00 00 00 00 ED [02:28:06]Write i2c OK [02:28:06]MH_I2C_Read... [02:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:28:06]Read from MH i2c: E2 [02:28:06]MH_I2C_Read... [02:28:06]Read from MH i2c: E2 0E 00 [02:28:06]MH_I2C_Read... [02:28:06]Read from MH i2c: E2 0E 00 22 4E 00 09 00 01 45 67 94 66 00 00 00 00 90 00 9F [02:28:06]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [02:28:06]wFMCommunicate OK [02:28:06]SAM_PROTO_GetShiftState done [02:28:06]FM_GetShiftState done [02:28:06]req_shift_opened done [02:28:06]requested_item shift.open_date is exist - process it [02:28:06]req_shift_open_date [02:28:06]req_shift_open_date done [02:28:06]produce_requested_data done [02:28:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162991,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [02:28:06]process_action_free close_receipt [02:28:06]json_value_free [02:28:06]json_value_free done [02:28:06]process_json_proto returns [02:28:06]Send response to host [02:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162991,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [02:28:06]free response buf [02:28:06]execute_script done [02:28:06]execute_script returns [02:28:06]free content buf [02:28:06]Sock 9.Close socket [02:28:06]Sock 9.Thread stoped [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34: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:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]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:40]accept exits with 7 [02:41:40]New connection [02:41:40]New thread 3066879332 created [02:41:40]Thread 3066735972 joined [02:41:40]Waiting for new connection... [02:41:40] Sock 7.Parse request [02:41:40]Sock 7.Check first char [02:41:40]Sock 7.First char is OK [02:41:40]request: POST /json_proto HTTP/1.0 [02:41:40]Method: POST [02:41:40]URL: /json_proto [02:41:40]Method is POST - this is cgi request [02:41:40]url: /json_proto [02:41:40]query_string will be loaded in cgi processing [02:41:40]execute_cgi json_proto POST (null) [02:41:40]execute_cgi path=json_proto method=POST [02:41:40]POST find Content-Length [02:41:40]Host: 172.17.39.67:8080 [02:41:40]Content-Length: 849 [02:41:40]Content-Type: application/json [02:41:40] [02:41:40]POST finish read [02:41:40]Found Content-Length = 849 [02:41:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:41:40]execute_script... [02:41:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:41:40]POST & json_proto [02:41:40]process_json_proto [02:41:40]json parsed OK: [02:41:40]protocol is kg_v1.0 [02:41:40]action value=close_receipt [02:41:40]process_action close_receipt [02:41:40]cmd_close_receipt [02:41:40]MH_GetDate [02:41:40]Write to MH i2c: F0 00 00 23 4E 60 [02:41:40]Write i2c OK [02:41:40]MH_I2C_Read... [02:41:40]Read from MH i2c: F0 [02:41:40]MH_I2C_Read... [02:41:40]Read from MH i2c: F0 09 00 [02:41:40]MH_I2C_Read... [02:41:40]Read from MH i2c: F0 09 00 23 4E 00 68 8C 94 66 B6 85 93 66 8B [02:41:40]GetLastDocTimeStamp 1721010485 [02:41:40]current date 1721011304 [02:41:40]FM_GetShiftState [02:41:40]SAM_PROTO_GetShiftState [02:41:40]wFMCommunicate request_size=4 [02:41:40]MH_SAM_APDU [02:41:40]CAPDU: 80 13 01 00 [02:41:40]Write to MH i2c: E2 08 00 24 4E 80 13 01 00 00 00 00 00 EF [02:41:40]Write i2c OK [02:41:40]MH_I2C_Read... [02:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:40]Read from MH i2c: E2 [02:41:40]MH_I2C_Read... [02:41:40]Read from MH i2c: E2 0E 00 [02:41:40]MH_I2C_Read... [02:41:40]Read from MH i2c: E2 0E 00 24 4E 00 09 00 01 45 67 94 66 00 00 00 00 90 00 A1 [02:41:40]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [02:41:40]wFMCommunicate OK [02:41:40]SAM_PROTO_GetShiftState done [02:41:40]FM_GetShiftState done [02:41:40]opened in 1721001797 [02:41:40]opened+sec_in_day 1721088197 [02:41:40]quantity*price = 199940 [02:41:40]sum+1 = 199941 [02:41:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1999.40 НСП 1% : 17.69 НДС 12% : 212.33 Наличными: 0.00 Безнал.: 1999.40 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 16 15.07.2024 02:41 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162992 ФПД: 232396064261326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T024144&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162992&fm=232396064261326&tin=02508201610067®Number=0000000000090858&sum=199940 [02:41:41]StoreToDocumentArchive [02:41:41]shift 464 fd 162992 [02:41:41]save to /storage/0464/doc_00162992 [02:41:41]save last doc name /storage/0464/doc_00162992 to /storage/kkm_last_doc_name [02:41:41]save OK [02:41:41]Clear old archive folders... [02:41:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:41:41]tlvbuf is B6F46290 [02:41:41]SAM_PROTO_ClearQueue [02:41:41]wFMCommunicate request_size=4 [02:41:41]MH_SAM_APDU [02:41:41]CAPDU: 80 09 00 00 [02:41:41]Write to MH i2c: E2 08 00 31 4E 80 09 00 00 00 00 00 00 F1 [02:41:41]Write i2c OK [02:41:41]MH_I2C_Read... [02:41:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:41:41]Read from MH i2c: E2 [02:41:41]MH_I2C_Read... [02:41:41]Read from MH i2c: E2 03 00 [02:41:41]MH_I2C_Read... [02:41:41]Read from MH i2c: E2 03 00 31 4E 00 90 00 F3 [02:41:41]RAPDU: 90 00 [02:41:41]wFMCommunicate OK [02:41:41]SAM_PROTO_ClearQueue done [02:41:41]KKMCreateOFDPacket [02:41:41]OFDProtocolAddRootSTLVToBuf [02:41:41]FM_MakeSignedData [02:41:41]FM_MakeSignedData [02:41:41]SAM_PROTO_SignData [02:41:41]wFMCommunicate request_size=4 [02:41:41]MH_SAM_APDU [02:41:41]CAPDU: 80 0D 01 02 [02:41:41]Write to MH i2c: E2 08 00 32 4E 80 0D 01 02 00 00 00 00 F9 [02:41:41]Write i2c OK [02:41:41]MH_I2C_Read... [02:41:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:41:41]Read from MH i2c: E2 [02:41:41]MH_I2C_Read... [02:41:41]Read from MH i2c: E2 03 00 [02:41:41]MH_I2C_Read... [02:41:41]Read from MH i2c: E2 03 00 32 4E 00 90 00 F4 [02:41:41]RAPDU: 90 00 [02:41:41]wFMCommunicate OK [02:41:41]wFMCommunicate request_size=255 [02:41:41]MH_SAM_APDU [02:41:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 68 8C 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7C 02 00 35 04 06 00 [02:41:41]Write to MH i2c: E2 02 01 33 4E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 68 8C 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7C 02 00 35 04 06 00 00 00 32 [02:41:41]Write i2c OK [02:41:41]MH_I2C_Read... [02:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:42]Read from MH i2c: E2 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: E2 03 00 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: E2 03 00 33 4E 00 90 00 F5 [02:41:42]RAPDU: 90 00 [02:41:42]wFMCommunicate OK [02:41:42]wFMCommunicate request_size=11 [02:41:42]MH_SAM_APDU [02:41:42]CAPDU: 80 0D 02 02 06 D3 5C EC DB 84 CE [02:41:42]Write to MH i2c: E2 0E 00 34 4E 80 0D 02 02 06 00 D3 5C EC DB 84 CE 00 00 50 [02:41:42]Write i2c OK [02:41:42]MH_I2C_Read... [02:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:42]Read from MH i2c: E2 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: E2 03 00 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: E2 03 00 34 4E 00 90 00 F6 [02:41:42]RAPDU: 90 00 [02:41:42]wFMCommunicate OK [02:41:42]wFMCommunicate request_size=4 [02:41:42]MH_SAM_APDU [02:41:42]CAPDU: 80 0D 03 02 [02:41:42]Write to MH i2c: E2 08 00 35 4E 80 0D 03 02 00 00 00 00 FE [02:41:42]Write i2c OK [02:41:42]MH_I2C_Read... [02:41:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:41:42]Read from MH i2c: E2 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: E2 0B 00 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: E2 0B 00 35 4E 00 DE 71 03 2E 61 4F DF 1F 90 00 2D [02:41:42]RAPDU: DE 71 03 2E 61 4F DF 1F 90 00 [02:41:42]wFMCommunicate OK [02:41:42]SAM_PROTO_SignData done [02:41:42]FM_MakeSignedData done [02:41:42]CreateOFDProtocolMessage [02:41:42]wFMCommunicate request_size=4 [02:41:42]MH_SAM_APDU [02:41:42]CAPDU: 80 11 00 00 [02:41:42]Write to MH i2c: E2 08 00 36 4E 80 11 00 00 00 00 00 00 FE [02:41:42]Write i2c OK [02:41:42]MH_I2C_Read... [02:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:42]Read from MH i2c: E2 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: E2 17 00 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: E2 17 00 36 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5E [02:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:41:42]wFMCommunicate OK [02:41:42]CreateOFDProtocolMessage done [02:41:42]OFDSenderStorePacket 162992 [02:41:42]StoreOFDPacket docnum=162992 [02:41:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 04 4E 08 01 68 C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 68 8C 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7C 02 00 35 04 06 00 D3 5C EC DB 84 CE DE 71 03 2E 61 4F DF 1F [02:41:42]CheckFolder [02:41:42]dirname=/storage/ofd_packets [02:41:42]CheckFolder done [02:41:42]ProducePacketName [02:41:42]name=ofd_packets/00162992 [02:41:42]NVStorageSaveData ofd_packets/00162992 [02:41:42]File name is /storage/ofd_packets/00162992 [02:41:42]Write 302 bytes [02:41:42]NVStorageSaveData done [02:41:42]OFDSenderStorePacket done [02:41:42]KKMCreateOFDPacket done [02:41:42]NVStorageSaveData kkm_last_timestamp [02:41:42]File name is /storage/kkm_last_timestamp [02:41:42]Write 4 bytes [02:41:42]NVStorageSaveData done [02:41:42]ExternCall_PrintAddStr [02:41:42]wPrintStart [02:41:42]Write to MH i2c: 01 00 00 37 4E 85 [02:41:42]Write i2c OK [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: 01 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: 01 07 00 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: 01 07 00 37 4E 00 00 00 00 00 FF 0F 9A [02:41:42]RasterBufferAndPrint [02:41:42]line Счет N : (1)1319610 [02:41:42]line ИНН: 02508201610067 [02:41:42]line Контрольно-Кассовый Чек [02:41:42]line ПРОДАЖА [02:41:42]line ТРК (МРК, ГНК) : 21 [02:41:42]line Товар: 2710194210 [02:41:42]line ДТ(л)-К-5 [02:41:42]line 27.540 * 72.60 [02:41:42]line = 1999.40 [02:41:42]line НДС 12% НСП 1% [02:41:42]line > о реализуемом товаре [02:41:42]line ИТОГО: 1999.40 [02:41:42]line НСП 1% : 17.69 [02:41:42]line НДС 12% : 212.33 [02:41:42]line Наличными: 0.00 [02:41:42]line Безнал.: 1999.40 [02:41:42]line Место: АЗС № 140 "Партнер Нефть" [02:41:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:41:42]line СНО: Общий режим [02:41:42]line Чек 16 15.07.2024 02:41 [02:41:42]line Смена: 464 ФФД: 1.0 [02:41:42]line ЗНМ: 0300000129 [02:41:42]line РНМ: 0000000000090858 [02:41:42]line Версия ККМ: 001 [02:41:42]line Платежная система: АКБ Кыргызстан [02:41:42]line ФМ: 0000000000874899 [02:41:42]line ФД: 162992 [02:41:42]line ФПД: 232396064261326 [02:41:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T024144&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162992&fm=232396064261326&tin=02508201610067®Number=0000000000090858&sum=199940 [02:41:42]written 0, free lines is 4095 [02:41:42]OFD Sender: Processing packet 162992 [packets to send 106, broken 105] [02:41:42]ProducePacketName [02:41:42]name=ofd_packets/00162992 [02:41:42]OFD Sender: To server: pG, [02:41:42]CommunicateWithHost lk.salyk.kg:30040 [02:41:42]ConnectInit lk.salyk.kg [02:41:42]Connected sock=10 [02:41:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 04 4E 08 01 68 C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 68 8C 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7C 02 00 35 04 06 00 D3 5C EC DB 84 CE DE 71 03 2E 61 4F DF 1F [02:41:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3D 01 47 00 FB 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7C 02 00 F4 03 04 00 74 38 94 66 B6 04 01 00 00 34 C0 69 FB 1B 84 B5 4F [02:41:42]CommunicateWithHost err = 0 [02:41:42]CheckOFDResponse [02:41:42]1017 (14) - 77093643461234 [02:41:42]1041 (16) - 0000000000874899 [02:41:42]1040 (4) - 162992 [02:41:42]1012 (4) - 14.07.2024 20:43 [02:41:42]1206 (1) - 0 [02:41:42]OFD Sender: Remove packet 162992 [02:41:42]ProducePacketName [02:41:42]name=ofd_packets/00162992 [02:41:42]NVStorageDeleteData [02:41:42]Write to MH i2c: 01 00 00 61 4E AF [02:41:42]Write i2c OK [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: 01 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: 01 07 00 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: 01 07 00 61 4E 00 00 00 00 00 FA 0C BC [02:41:42]RasterBufferAndPrint [02:41:42]line [02:41:42]line [02:41:42]line [02:41:42]line [02:41:42]line [02:41:42]written 0, free lines is 3326 [02:41:42]MH_Cut [02:41:42]Write to MH i2c: D1 01 00 68 4E 01 88 [02:41:42]Write i2c OK [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: D1 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: D1 01 00 [02:41:42]MH_I2C_Read... [02:41:42]Read from MH i2c: D1 01 00 68 4E 00 87 [02:41:42]Write to MH i2c: 01 00 00 69 4E B7 [02:41:42]Write i2c OK [02:41:42]MH_I2C_Read... [02:41:43]OFD Sender: No OFD packet to send [02:41:43]*** Cut start [02:41:43]*** Purtial cut [02:41:43]*** Stage 1: CUTSNS_PIN = 1 [02:41:43]Read from MH i2c: 01 [02:41:43]MH_I2C_Read... [02:41:43]*** Stop cut motor [02:41:43]*** Cut end [02:41:43]Read from MH i2c: 01 07 00 [02:41:43]MH_I2C_Read... [02:41:43]Read from MH i2c: 01 07 00 69 4E 00 00 00 00 00 FF 0F CC [02:41:43]process_action close_receipt done [02:41:43]requested_data is exist [02:41:43]produce_requested_data [02:41:43]requested_item fm.sn is exist - process it [02:41:43]wFMCommunicate request_size=4 [02:41:43]MH_SAM_APDU [02:41:43]CAPDU: 80 11 00 00 [02:41:43]Write to MH i2c: E2 08 00 6A 4E 80 11 00 00 00 00 00 00 32 [02:41:43]Write i2c OK [02:41:43]MH_I2C_Read... [02:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:43]Read from MH i2c: E2 [02:41:43]MH_I2C_Read... [02:41:43]Read from MH i2c: E2 17 00 [02:41:43]MH_I2C_Read... [02:41:43]Read from MH i2c: E2 17 00 6A 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 92 [02:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:41:43]wFMCommunicate OK [02:41:43]requested_item fd.num is exist - process it [02:41:43]SAM_PROTO_GetFieldsCounters [02:41:43]wFMCommunicate request_size=4 [02:41:43]MH_SAM_APDU [02:41:43]CAPDU: 80 13 00 00 [02:41:43]Write to MH i2c: E2 08 00 6B 4E 80 13 00 00 00 00 00 00 35 [02:41:43]Write i2c OK [02:41:43]MH_I2C_Read... [02:41:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:41:43]Read from MH i2c: E2 [02:41:43]MH_I2C_Read... [02:41:43]Read from MH i2c: E2 62 00 [02:41:43]MH_I2C_Read... [02:41:43]Read from MH i2c: E2 62 00 6B 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B0 7C 02 00 0E 04 04 00 D0 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 97 [02:41:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B0 7C 02 00 0E 04 04 00 D0 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:41:43]wFMCommunicate OK [02:41:43]SAM_PROTO_GetFieldsCounters done [02:41:43]requested_item shift.num is exist - process it [02:41:43]requested_item shift.opened is exist - process it [02:41:43]req_shift_opened [02:41:43]FM_GetShiftState [02:41:43]SAM_PROTO_GetShiftState [02:41:43]wFMCommunicate request_size=4 [02:41:43]MH_SAM_APDU [02:41:43]CAPDU: 80 13 01 00 [02:41:43]Write to MH i2c: E2 08 00 6C 4E 80 13 01 00 00 00 00 00 37 [02:41:43]Write i2c OK [02:41:43]MH_I2C_Read... [02:41:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:43]Read from MH i2c: E2 [02:41:43]MH_I2C_Read... [02:41:43]Read from MH i2c: E2 0E 00 [02:41:43]MH_I2C_Read... [02:41:43]Read from MH i2c: E2 0E 00 6C 4E 00 09 00 01 45 67 94 66 00 00 00 00 90 00 E9 [02:41:43]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [02:41:43]wFMCommunicate OK [02:41:43]SAM_PROTO_GetShiftState done [02:41:43]FM_GetShiftState done [02:41:43]req_shift_opened done [02:41:43]requested_item shift.open_date is exist - process it [02:41:43]req_shift_open_date [02:41:43]req_shift_open_date done [02:41:43]produce_requested_data done [02:41:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162992,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [02:41:43]process_action_free close_receipt [02:41:43]json_value_free [02:41:43]json_value_free done [02:41:43]process_json_proto returns [02:41:43]Send response to host [02:41:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162992,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [02:41:43]free response buf [02:41:43]execute_script done [02:41:43]execute_script returns [02:41:43]free content buf [02:41:43]Sock 7.Close socket [02:41:43]Sock 7.Thread stoped [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:42]accept exits with 9 [02:47:42]New connection [02:47:42]New thread 3066735972 created [02:47:42]Thread 3066879332 joined [02:47:42]Waiting for new connection... [02:47:42] Sock 9.Parse request [02:47:42]Sock 9.Check first char [02:47:42]Sock 9.First char is OK [02:47:42]request: POST /json_proto HTTP/1.0 [02:47:42]Method: POST [02:47:42]URL: /json_proto [02:47:42]Method is POST - this is cgi request [02:47:42]url: /json_proto [02:47:42]query_string will be loaded in cgi processing [02:47:42]execute_cgi json_proto POST (null) [02:47:42]execute_cgi path=json_proto method=POST [02:47:42]POST find Content-Length [02:47:42]Host: 172.17.39.67:8080 [02:47:42]Content-Length: 683 [02:47:42]Content-Type: application/json [02:47:42] [02:47:42]POST finish read [02:47:42]Found Content-Length = 683 [02:47:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.690, "sum" : 1040.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1040.00, "total" : 1040.00, "payments": [ { "type": 0, "sum" : 1040.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:47:42]execute_script... [02:47: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)1319611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.690, "sum" : 1040.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1040.00, "total" : 1040.00, "payments": [ { "type": 0, "sum" : 1040.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:47:42]POST & json_proto [02:47:42]process_json_proto [02:47:42]json parsed OK: [02:47:42]protocol is kg_v1.0 [02:47:42]action value=close_receipt [02:47:42]process_action close_receipt [02:47:42]cmd_close_receipt [02:47:42]MH_GetDate [02:47:42]Write to MH i2c: F0 00 00 6D 4E AA [02:47:42]Write i2c OK [02:47:42]MH_I2C_Read... [02:47:42]Read from MH i2c: F0 [02:47:42]MH_I2C_Read... [02:47:42]Read from MH i2c: F0 09 00 [02:47:42]MH_I2C_Read... [02:47:42]Read from MH i2c: F0 09 00 6D 4E 00 D2 8D 94 66 B6 85 93 66 40 [02:47:42]GetLastDocTimeStamp 1721011304 [02:47:42]current date 1721011666 [02:47:42]FM_GetShiftState [02:47:42]SAM_PROTO_GetShiftState [02:47:42]wFMCommunicate request_size=4 [02:47:42]MH_SAM_APDU [02:47:42]CAPDU: 80 13 01 00 [02:47:42]Write to MH i2c: E2 08 00 6E 4E 80 13 01 00 00 00 00 00 39 [02:47:42]Write i2c OK [02:47:42]MH_I2C_Read... [02:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:47:42]Read from MH i2c: E2 [02:47:42]MH_I2C_Read... [02:47:42]Read from MH i2c: E2 0E 00 [02:47:42]MH_I2C_Read... [02:47:42]Read from MH i2c: E2 0E 00 6E 4E 00 09 00 01 45 67 94 66 00 00 00 00 90 00 EB [02:47:42]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [02:47:42]wFMCommunicate OK [02:47:42]SAM_PROTO_GetShiftState done [02:47:42]FM_GetShiftState done [02:47:42]opened in 1721001797 [02:47:42]opened+sec_in_day 1721088197 [02:47:42]quantity*price = 104024 [02:47:42]sum+1 = 104026 [02:47:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1040.00 Внесено: 1040.00 СДАЧА: 0.00 НСП 1% : 9.21 НДС 12% : 110.47 Наличными: 1040.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 17 15.07.2024 02:47 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162993 ФПД: 212363981740647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T024747&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162993&fm=212363981740647&tin=02508201610067®Number=0000000000090858&sum=104000 [02:47:43]StoreToDocumentArchive [02:47:43]shift 464 fd 162993 [02:47:43]save to /storage/0464/doc_00162993 [02:47:43]save last doc name /storage/0464/doc_00162993 to /storage/kkm_last_doc_name [02:47:43]save OK [02:47:43]Clear old archive folders... [02:47:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:47:43]tlvbuf is 01227E00 [02:47:43]SAM_PROTO_ClearQueue [02:47:43]wFMCommunicate request_size=4 [02:47:43]MH_SAM_APDU [02:47:43]CAPDU: 80 09 00 00 [02:47:43]Write to MH i2c: E2 08 00 7B 4E 80 09 00 00 00 00 00 00 3B [02:47:43]Write i2c OK [02:47:43]MH_I2C_Read... [02:47:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:47:43]Read from MH i2c: E2 [02:47:43]MH_I2C_Read... [02:47:43]Read from MH i2c: E2 03 00 [02:47:43]MH_I2C_Read... [02:47:43]Read from MH i2c: E2 03 00 7B 4E 00 90 00 3D [02:47:43]RAPDU: 90 00 [02:47:43]wFMCommunicate OK [02:47:43]SAM_PROTO_ClearQueue done [02:47:43]KKMCreateOFDPacket [02:47:43]OFDProtocolAddRootSTLVToBuf [02:47:43]FM_MakeSignedData [02:47:43]FM_MakeSignedData [02:47:43]SAM_PROTO_SignData [02:47:43]wFMCommunicate request_size=4 [02:47:43]MH_SAM_APDU [02:47:43]CAPDU: 80 0D 01 02 [02:47:43]Write to MH i2c: E2 08 00 7C 4E 80 0D 01 02 00 00 00 00 43 [02:47:43]Write i2c OK [02:47:43]MH_I2C_Read... [02:47:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:47:44]Read from MH i2c: E2 [02:47:44]MH_I2C_Read... [02:47:44]Read from MH i2c: E2 03 00 [02:47:44]MH_I2C_Read... [02:47:44]Read from MH i2c: E2 03 00 7C 4E 00 90 00 3E [02:47:44]RAPDU: 90 00 [02:47:44]wFMCommunicate OK [02:47:44]wFMCommunicate request_size=255 [02:47:44]MH_SAM_APDU [02:47: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 4A 3D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 59 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 2B 00 00 00 00 07 04 06 00 40 96 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D3 8D 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7C 02 00 35 04 06 00 C1 [02:47:44]Write to MH i2c: E2 02 01 7D 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 3D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 59 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 2B 00 00 00 00 07 04 06 00 40 96 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D3 8D 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7C 02 00 35 04 06 00 C1 00 00 9D [02:47:44]Write i2c OK [02:47:44]MH_I2C_Read... [02:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:47:44]Read from MH i2c: E2 [02:47:44]MH_I2C_Read... [02:47:44]Read from MH i2c: E2 03 00 [02:47:44]MH_I2C_Read... [02:47:44]Read from MH i2c: E2 03 00 7D 4E 00 90 00 3F [02:47:44]RAPDU: 90 00 [02:47:44]wFMCommunicate OK [02:47:44]wFMCommunicate request_size=10 [02:47:44]MH_SAM_APDU [02:47:44]CAPDU: 80 0D 02 02 05 24 D7 B1 DA 67 [02:47:44]Write to MH i2c: E2 0D 00 7E 4E 80 0D 02 02 05 00 24 D7 B1 DA 67 00 00 3D [02:47:44]Write i2c OK [02:47:44]MH_I2C_Read... [02:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:47:44]Read from MH i2c: E2 [02:47:44]MH_I2C_Read... [02:47:44]Read from MH i2c: E2 03 00 [02:47:44]MH_I2C_Read... [02:47:44]Read from MH i2c: E2 03 00 7E 4E 00 90 00 40 [02:47:44]RAPDU: 90 00 [02:47:44]wFMCommunicate OK [02:47:44]wFMCommunicate request_size=4 [02:47:44]MH_SAM_APDU [02:47:44]CAPDU: 80 0D 03 02 [02:47:44]Write to MH i2c: E2 08 00 7F 4E 80 0D 03 02 00 00 00 00 48 [02:47:44]Write i2c OK [02:47:44]MH_I2C_Read... [02:47:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:47:44]Read from MH i2c: E2 [02:47:44]MH_I2C_Read... [02:47:44]Read from MH i2c: E2 0B 00 [02:47:44]MH_I2C_Read... [02:47:44]Read from MH i2c: E2 0B 00 7F 4E 00 A0 FC 75 80 BB F6 13 E5 90 00 83 [02:47:44]RAPDU: A0 FC 75 80 BB F6 13 E5 90 00 [02:47:44]wFMCommunicate OK [02:47:44]SAM_PROTO_SignData done [02:47:44]FM_MakeSignedData done [02:47:44]CreateOFDProtocolMessage [02:47:44]wFMCommunicate request_size=4 [02:47:44]MH_SAM_APDU [02:47:44]CAPDU: 80 11 00 00 [02:47:44]Write to MH i2c: E2 08 00 80 4E 80 11 00 00 00 00 00 00 48 [02:47:44]Write i2c OK [02:47:44]MH_I2C_Read... [02:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:47:44]Read from MH i2c: E2 [02:47:44]MH_I2C_Read... [02:47:44]Read from MH i2c: E2 17 00 [02:47:44]MH_I2C_Read... [02:47:44]Read from MH i2c: E2 17 00 80 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A8 [02:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:47:44]wFMCommunicate OK [02:47:44]CreateOFDProtocolMessage done [02:47:44]OFDSenderStorePacket 162993 [02:47:44]StoreOFDPacket docnum=162993 [02:47:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 91 AB 07 01 B6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 3D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 59 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 2B 00 00 00 00 07 04 06 00 40 96 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D3 8D 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7C 02 00 35 04 06 00 C1 24 D7 B1 DA 67 A0 FC 75 80 BB F6 13 E5 [02:47:44]CheckFolder [02:47:44]dirname=/storage/ofd_packets [02:47:44]CheckFolder done [02:47:44]ProducePacketName [02:47:44]name=ofd_packets/00162993 [02:47:44]NVStorageSaveData ofd_packets/00162993 [02:47:44]File name is /storage/ofd_packets/00162993 [02:47:44]Write 301 bytes [02:47:44]NVStorageSaveData done [02:47:44]OFDSenderStorePacket done [02:47:44]KKMCreateOFDPacket done [02:47:44]NVStorageSaveData kkm_last_timestamp [02:47:44]File name is /storage/kkm_last_timestamp [02:47:44]Write 4 bytes [02:47:44]NVStorageSaveData done [02:47:44]ExternCall_PrintAddStr [02:47:44]wPrintStart [02:47:44]Write to MH i2c: 01 00 00 81 4E CF [02:47:44]Write i2c OK [02:47:44]MH_I2C_Read... [02:47:44]Read from MH i2c: 01 [02:47:44]MH_I2C_Read... [02:47:44]Read from MH i2c: 01 07 00 [02:47:44]MH_I2C_Read... [02:47:44]Read from MH i2c: 01 07 00 81 4E 00 00 00 00 00 FF 0F E4 [02:47:44]RasterBufferAndPrint [02:47:44]line Счет N : (1)1319611 [02:47:44]line ИНН: 02508201610067 [02:47:44]line Контрольно-Кассовый Чек [02:47:44]line ПРОДАЖА [02:47:44]line ТРК (МРК, ГНК) : 53 [02:47:44]line Товар: 2710124130 [02:47:44]line Аи-92-К-5 [02:47:44]line 15.690 * 66.30 [02:47:44]line = 1040.25 [02:47:44]line НДС 12% НСП 1% [02:47:44]line > о реализуемом товаре [02:47:44]line ОКРУГЛЕНИЕ: -0.25 [02:47:44]line ИТОГО: 1040.00 [02:47:44]line Внесено: 1040.00 [02:47:44]line СДАЧА: 0.00 [02:47:44]line НСП 1% : 9.21 [02:47:44]line НДС 12% : 110.47 [02:47:44]line Наличными: 1040.00 [02:47:44]line Безнал.: 0.00 [02:47:44]line Место: АЗС № 140 "Партнер Нефть" [02:47:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:47:44]line СНО: Общий режим [02:47:44]line Чек 17 15.07.2024 02:47 [02:47:44]line Смена: 464 ФФД: 1.0 [02:47:44]line ЗНМ: 0300000129 [02:47:44]line РНМ: 0000000000090858 [02:47:44]line Версия ККМ: 001 [02:47:44]line ФМ: 0000000000874899 [02:47:44]line ФД: 162993 [02:47:44]line ФПД: 212363981740647 [02:47:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T024747&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162993&fm=212363981740647&tin=02508201610067®Number=0000000000090858&sum=104000 [02:47:44]OFD Sender: Processing packet 162993 [packets to send 106, broken 105] [02:47:44]ProducePacketName [02:47:44]name=ofd_packets/00162993 [02:47:44]OFD Sender: To server: pG, [02:47:44]CommunicateWithHost lk.salyk.kg:30040 [02:47:44]ConnectInit lk.salyk.kg [02:47:44]written 0, free lines is 4095 [02:47:44]Connected sock=10 [02:47:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 91 AB 07 01 B6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 3D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 59 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 2B 00 00 00 00 07 04 06 00 40 96 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D3 8D 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7C 02 00 35 04 06 00 C1 24 D7 B1 DA 67 A0 FC 75 80 BB F6 13 E5 [02:47:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8C E5 47 00 3D 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7C 02 00 F4 03 04 00 DE 39 94 66 B6 04 01 00 00 DD 64 32 3A B5 38 60 41 [02:47:45]CommunicateWithHost err = 0 [02:47:45]CheckOFDResponse [02:47:45]1017 (14) - 77093643461234 [02:47:45]1041 (16) - 0000000000874899 [02:47:45]1040 (4) - 162993 [02:47:45]1012 (4) - 14.07.2024 20:49 [02:47:45]1206 (1) - 0 [02:47:45]OFD Sender: Remove packet 162993 [02:47:45]ProducePacketName [02:47:45]name=ofd_packets/00162993 [02:47:45]NVStorageDeleteData [02:47:45]Write to MH i2c: 01 00 00 AC 4E FA [02:47:45]Write i2c OK [02:47:45]MH_I2C_Read... [02:47:45]Read from MH i2c: 01 [02:47:45]MH_I2C_Read... [02:47:45]Read from MH i2c: 01 07 00 [02:47:45]MH_I2C_Read... [02:47:45]Read from MH i2c: 01 07 00 AC 4E 00 00 00 00 00 D7 0C E4 [02:47:45]RasterBufferAndPrint [02:47:45]line [02:47:45]line [02:47:45]line [02:47:45]line [02:47:45]line [02:47:45]written 0, free lines is 3295 [02:47:45]MH_Cut [02:47:45]Write to MH i2c: D1 01 00 B3 4E 01 D3 [02:47:45]Write i2c OK [02:47:45]MH_I2C_Read... [02:47:45]Read from MH i2c: D1 [02:47:45]MH_I2C_Read... [02:47:45]Read from MH i2c: D1 01 00 [02:47:45]MH_I2C_Read... [02:47:45]Read from MH i2c: D1 01 00 B3 4E 00 D2 [02:47:45]Write to MH i2c: 01 00 00 B4 4E 02 [02:47:45]Write i2c OK [02:47:45]MH_I2C_Read... [02:47:45]OFD Sender: No OFD packet to send [02:47:46]*** Cut start [02:47:46]*** Purtial cut [02:47:46]*** CUTSNS_PIN = 0 [02:47:46]*** Stage 1: CUTSNS_PIN = 1 [02:47:48]Read from MH i2c: 01 [02:47:48]MH_I2C_Read... [02:47:48]*** Stop cut motor [02:47:48]*** Cut end [02:47:48]Read from MH i2c: 01 07 00 [02:47:48]MH_I2C_Read... [02:47:48]Read from MH i2c: 01 07 00 B4 4E 00 00 00 00 00 FF 0F 17 [02:47:48]process_action close_receipt done [02:47:48]requested_data is exist [02:47:48]produce_requested_data [02:47:48]requested_item fm.sn is exist - process it [02:47:48]wFMCommunicate request_size=4 [02:47:48]MH_SAM_APDU [02:47:48]CAPDU: 80 11 00 00 [02:47:48]Write to MH i2c: E2 08 00 B5 4E 80 11 00 00 00 00 00 00 7D [02:47:48]Write i2c OK [02:47:48]MH_I2C_Read... [02:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:47:48]Read from MH i2c: E2 [02:47:48]MH_I2C_Read... [02:47:48]Read from MH i2c: E2 17 00 [02:47:48]MH_I2C_Read... [02:47:48]Read from MH i2c: E2 17 00 B5 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DD [02:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:47:48]wFMCommunicate OK [02:47:48]requested_item fd.num is exist - process it [02:47:48]SAM_PROTO_GetFieldsCounters [02:47:48]wFMCommunicate request_size=4 [02:47:48]MH_SAM_APDU [02:47:48]CAPDU: 80 13 00 00 [02:47:48]Write to MH i2c: E2 08 00 B6 4E 80 13 00 00 00 00 00 00 80 [02:47:48]Write i2c OK [02:47:48]MH_I2C_Read... [02:47:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:47:48]Read from MH i2c: E2 [02:47:48]MH_I2C_Read... [02:47:48]Read from MH i2c: E2 62 00 [02:47:48]MH_I2C_Read... [02:47:48]Read from MH i2c: E2 62 00 B6 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B1 7C 02 00 0E 04 04 00 D0 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 E6 [02:47:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B1 7C 02 00 0E 04 04 00 D0 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:47:48]wFMCommunicate OK [02:47:48]SAM_PROTO_GetFieldsCounters done [02:47:48]requested_item shift.num is exist - process it [02:47:48]requested_item shift.opened is exist - process it [02:47:48]req_shift_opened [02:47:48]FM_GetShiftState [02:47:48]SAM_PROTO_GetShiftState [02:47:48]wFMCommunicate request_size=4 [02:47:48]MH_SAM_APDU [02:47:48]CAPDU: 80 13 01 00 [02:47:48]Write to MH i2c: E2 08 00 B7 4E 80 13 01 00 00 00 00 00 82 [02:47:48]Write i2c OK [02:47:48]MH_I2C_Read... [02:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:47:48]Read from MH i2c: E2 [02:47:48]MH_I2C_Read... [02:47:48]Read from MH i2c: E2 0E 00 [02:47:48]MH_I2C_Read... [02:47:48]Read from MH i2c: E2 0E 00 B7 4E 00 09 00 01 45 67 94 66 00 00 00 00 90 00 34 [02:47:48]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [02:47:48]wFMCommunicate OK [02:47:48]SAM_PROTO_GetShiftState done [02:47:48]FM_GetShiftState done [02:47:48]req_shift_opened done [02:47:48]requested_item shift.open_date is exist - process it [02:47:48]req_shift_open_date [02:47:48]req_shift_open_date done [02:47:48]produce_requested_data done [02:47:48]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162993,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [02:47:48]process_action_free close_receipt [02:47:48]json_value_free [02:47:48]json_value_free done [02:47:48]process_json_proto returns [02:47:48]Send response to host [02:47:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162993,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [02:47:48]free response buf [02:47:48]execute_script done [02:47:48]execute_script returns [02:47:48]free content buf [02:47:48]Sock 9.Close socket [02:47:48]Sock 9.Thread stoped [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:51:59]accept exits with 7 [02:51:59]New connection [02:51:59]New thread 3066879332 created [02:51:59]Thread 3066735972 joined [02:51:59]Waiting for new connection... [02:51:59] Sock 7.Parse request [02:51:59]Sock 7.Check first char [02:51:59]Sock 7.First char is OK [02:51:59]request: POST /json_proto HTTP/1.0 [02:51:59]Method: POST [02:51:59]URL: /json_proto [02:51:59]Method is POST - this is cgi request [02:51:59]url: /json_proto [02:51:59]query_string will be loaded in cgi processing [02:51:59]execute_cgi json_proto POST (null) [02:51:59]execute_cgi path=json_proto method=POST [02:51:59]POST find Content-Length [02:51:59]Host: 172.17.39.67:8080 [02:51:59]Content-Length: 801 [02:51:59]Content-Type: application/json [02:51:59] [02:51:59]POST finish read [02:51:59]Found Content-Length = 801 [02:51:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.010, "sum" : 199.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 199.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:59]execute_script... [02:51: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)1319606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.010, "sum" : 199.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 199.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:59]POST & json_proto [02:51:59]process_json_proto [02:51:59]json parsed OK: [02:51:59]protocol is kg_v1.0 [02:51:59]action value=close_receipt [02:51:59]process_action close_receipt [02:51:59]cmd_close_receipt [02:51:59]MH_GetDate [02:51:59]Write to MH i2c: F0 00 00 B8 4E F5 [02:51:59]Write i2c OK [02:51:59]MH_I2C_Read... [02:51:59]Read from MH i2c: F0 [02:51:59]MH_I2C_Read... [02:51:59]Read from MH i2c: F0 09 00 [02:51:59]MH_I2C_Read... [02:51:59]Read from MH i2c: F0 09 00 B8 4E 00 D3 8E 94 66 B6 85 93 66 8D [02:51:59]GetLastDocTimeStamp 1721011667 [02:51:59]current date 1721011923 [02:51:59]FM_GetShiftState [02:51:59]SAM_PROTO_GetShiftState [02:51:59]wFMCommunicate request_size=4 [02:51:59]MH_SAM_APDU [02:51:59]CAPDU: 80 13 01 00 [02:51:59]Write to MH i2c: E2 08 00 B9 4E 80 13 01 00 00 00 00 00 84 [02:51:59]Write i2c OK [02:51:59]MH_I2C_Read... [02:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:59]Read from MH i2c: E2 [02:51:59]MH_I2C_Read... [02:51:59]Read from MH i2c: E2 0E 00 [02:51:59]MH_I2C_Read... [02:51:59]Read from MH i2c: E2 0E 00 B9 4E 00 09 00 01 45 67 94 66 00 00 00 00 90 00 36 [02:51:59]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [02:51:59]wFMCommunicate OK [02:51:59]SAM_PROTO_GetShiftState done [02:51:59]FM_GetShiftState done [02:51:59]opened in 1721001797 [02:51:59]opened+sec_in_day 1721088197 [02:51:59]quantity*price = 19956 [02:51:59]sum+1 = 19957 [02:51:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 199.56 НСП 1% : 1.77 НДС 12% : 21.19 Наличными: 0.00 Безнал.: 199.56 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 18 15.07.2024 02:52 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162994 ФПД: 14344602583516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T025203&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162994&fm=14344602583516&tin=02508201610067®Number=0000000000090858&sum=19956 [02:52:00]StoreToDocumentArchive [02:52:00]shift 464 fd 162994 [02:52:00]save to /storage/0464/doc_00162994 [02:52:00]save last doc name /storage/0464/doc_00162994 to /storage/kkm_last_doc_name [02:52:00]save OK [02:52:00]Clear old archive folders... [02:52:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:52:00]tlvbuf is 01355F80 [02:52:00]SAM_PROTO_ClearQueue [02:52:00]wFMCommunicate request_size=4 [02:52:00]MH_SAM_APDU [02:52:00]CAPDU: 80 09 00 00 [02:52:00]Write to MH i2c: E2 08 00 C6 4E 80 09 00 00 00 00 00 00 86 [02:52:00]Write i2c OK [02:52:00]MH_I2C_Read... [02:52:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:52:00]Read from MH i2c: E2 [02:52:00]MH_I2C_Read... [02:52:00]Read from MH i2c: E2 03 00 [02:52:00]MH_I2C_Read... [02:52:00]Read from MH i2c: E2 03 00 C6 4E 00 90 00 88 [02:52:00]RAPDU: 90 00 [02:52:00]wFMCommunicate OK [02:52:00]SAM_PROTO_ClearQueue done [02:52:00]KKMCreateOFDPacket [02:52:00]OFDProtocolAddRootSTLVToBuf [02:52:00]FM_MakeSignedData [02:52:00]FM_MakeSignedData [02:52:00]SAM_PROTO_SignData [02:52:00]wFMCommunicate request_size=4 [02:52:00]MH_SAM_APDU [02:52:00]CAPDU: 80 0D 01 02 [02:52:00]Write to MH i2c: E2 08 00 C7 4E 80 0D 01 02 00 00 00 00 8E [02:52:00]Write i2c OK [02:52:00]MH_I2C_Read... [02:52:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:52:00]Read from MH i2c: E2 [02:52:00]MH_I2C_Read... [02:52:00]Read from MH i2c: E2 03 00 [02:52:00]MH_I2C_Read... [02:52:00]Read from MH i2c: E2 03 00 C7 4E 00 90 00 89 [02:52:00]RAPDU: 90 00 [02:52:00]wFMCommunicate OK [02:52:00]wFMCommunicate request_size=255 [02:52:00]MH_SAM_APDU [02:52: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 C2 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F4 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4D 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 47 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D3 8E 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7C 02 00 35 04 06 00 0D [02:52:00]Write to MH i2c: E2 02 01 C8 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F4 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4D 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 47 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D3 8E 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7C 02 00 35 04 06 00 0D 00 00 B4 [02:52:00]Write i2c OK [02:52:00]MH_I2C_Read... [02:52:00]OFD Sender: No OFD packet to send [02:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:01]Read from MH i2c: E2 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: E2 03 00 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: E2 03 00 C8 4E 00 90 00 8A [02:52:01]RAPDU: 90 00 [02:52:01]wFMCommunicate OK [02:52:01]wFMCommunicate request_size=10 [02:52:01]MH_SAM_APDU [02:52:01]CAPDU: 80 0D 02 02 05 0B DC F1 01 DC [02:52:01]Write to MH i2c: E2 0D 00 C9 4E 80 0D 02 02 05 00 0B DC F1 01 DC 00 00 50 [02:52:01]Write i2c OK [02:52:01]MH_I2C_Read... [02:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:01]Read from MH i2c: E2 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: E2 03 00 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: E2 03 00 C9 4E 00 90 00 8B [02:52:01]RAPDU: 90 00 [02:52:01]wFMCommunicate OK [02:52:01]wFMCommunicate request_size=4 [02:52:01]MH_SAM_APDU [02:52:01]CAPDU: 80 0D 03 02 [02:52:01]Write to MH i2c: E2 08 00 CA 4E 80 0D 03 02 00 00 00 00 93 [02:52:01]Write i2c OK [02:52:01]MH_I2C_Read... [02:52:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:52:01]Read from MH i2c: E2 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: E2 0B 00 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: E2 0B 00 CA 4E 00 E0 7D 80 06 D5 93 13 B5 90 00 A7 [02:52:01]RAPDU: E0 7D 80 06 D5 93 13 B5 90 00 [02:52:01]wFMCommunicate OK [02:52:01]SAM_PROTO_SignData done [02:52:01]FM_MakeSignedData done [02:52:01]CreateOFDProtocolMessage [02:52:01]wFMCommunicate request_size=4 [02:52:01]MH_SAM_APDU [02:52:01]CAPDU: 80 11 00 00 [02:52:01]Write to MH i2c: E2 08 00 CB 4E 80 11 00 00 00 00 00 00 93 [02:52:01]Write i2c OK [02:52:01]MH_I2C_Read... [02:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:01]Read from MH i2c: E2 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: E2 17 00 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: E2 17 00 CB 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F3 [02:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:52:01]wFMCommunicate OK [02:52:01]CreateOFDProtocolMessage done [02:52:01]OFDSenderStorePacket 162994 [02:52:01]StoreOFDPacket docnum=162994 [02:52:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 ED FA 07 01 69 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F4 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4D 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 47 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D3 8E 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7C 02 00 35 04 06 00 0D 0B DC F1 01 DC E0 7D 80 06 D5 93 13 B5 [02:52:01]CheckFolder [02:52:01]dirname=/storage/ofd_packets [02:52:01]CheckFolder done [02:52:01]ProducePacketName [02:52:01]name=ofd_packets/00162994 [02:52:01]NVStorageSaveData ofd_packets/00162994 [02:52:01]File name is /storage/ofd_packets/00162994 [02:52:01]Write 301 bytes [02:52:01]NVStorageSaveData done [02:52:01]OFDSenderStorePacket done [02:52:01]KKMCreateOFDPacket done [02:52:01]NVStorageSaveData kkm_last_timestamp [02:52:01]File name is /storage/kkm_last_timestamp [02:52:01]Write 4 bytes [02:52:01]NVStorageSaveData done [02:52:01]ExternCall_PrintAddStr [02:52:01]wPrintStart [02:52:01]Write to MH i2c: 01 00 00 CC 4E 1A [02:52:01]Write i2c OK [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: 01 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: 01 07 00 [02:52:01]MH_I2C_Read... [02:52:01]Read from MH i2c: 01 07 00 CC 4E 00 00 00 00 00 FF 0F 2F [02:52:01]RasterBufferAndPrint [02:52:01]line Счет N : (1)1319606 [02:52:01]line ИНН: 02508201610067 [02:52:01]line Контрольно-Кассовый Чек [02:52:01]line ПРОДАЖА [02:52:01]line ТРК (МРК, ГНК) : 63 [02:52:01]line Товар: 2710124130 [02:52:01]line Аи-92-К-5 [02:52:01]line 3.010 * 66.30 [02:52:01]line = 199.56 [02:52:01]line НДС 12% НСП 1% [02:52:01]line > о реализуемом товаре [02:52:01]line ИТОГО: 199.56 [02:52:01]line НСП 1% : 1.77 [02:52:01]line НДС 12% : 21.19 [02:52:01]line Наличными: 0.00 [02:52:01]line Безнал.: 199.56 [02:52:01]line Место: АЗС № 140 "Партнер Нефть" [02:52:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:52:01]line СНО: Общий режим [02:52:01]line Чек 18 15.07.2024 02:52 [02:52:01]line Смена: 464 ФФД: 1.0 [02:52:01]line ЗНМ: 0300000129 [02:52:01]line РНМ: 0000000000090858 [02:52:01]line Версия ККМ: 001 [02:52:01]line Платежная система: O! деньги [02:52:01]line ФМ: 0000000000874899 [02:52:01]line ФД: 162994 [02:52:01]line ФПД: 14344602583516 [02:52:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T025203&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162994&fm=14344602583516&tin=02508201610067®Number=0000000000090858&sum=19956 [02:52:01]OFD Sender: Processing packet 162994 [packets to send 106, broken 105] [02:52:01]ProducePacketName [02:52:01]name=ofd_packets/00162994 [02:52:01]OFD Sender: To server: pG, [02:52:01]CommunicateWithHost lk.salyk.kg:30040 [02:52:01]ConnectInit lk.salyk.kg [02:52:01]written 0, free lines is 4095 [02:52:01]Connected sock=10 [02:52:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 ED FA 07 01 69 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F4 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4D 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 47 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D3 8E 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7C 02 00 35 04 06 00 0D 0B DC F1 01 DC E0 7D 80 06 D5 93 13 B5 [02:52:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CF 12 47 00 8F 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7C 02 00 F4 03 04 00 DF 3A 94 66 B6 04 01 00 00 18 5F C8 46 5F D1 01 88 [02:52:01]CommunicateWithHost err = 0 [02:52:01]CheckOFDResponse [02:52:01]1017 (14) - 77093643461234 [02:52:01]1041 (16) - 0000000000874899 [02:52:01]1040 (4) - 162994 [02:52:01]1012 (4) - 14.07.2024 20:53 [02:52:01]1206 (1) - 0 [02:52:01]OFD Sender: Remove packet 162994 [02:52:01]ProducePacketName [02:52:01]name=ofd_packets/00162994 [02:52:01]NVStorageDeleteData [02:52:02]Write to MH i2c: 01 00 00 F6 4E 44 [02:52:02]Write i2c OK [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: 01 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: 01 07 00 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: 01 07 00 F6 4E 00 00 00 00 00 E3 0C 3A [02:52:02]RasterBufferAndPrint [02:52:02]line [02:52:02]line [02:52:02]line [02:52:02]line [02:52:02]line [02:52:02]written 0, free lines is 3308 [02:52:02]MH_Cut [02:52:02]Write to MH i2c: D1 01 00 FD 4E 01 1D [02:52:02]Write i2c OK [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: D1 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: D1 01 00 [02:52:02]MH_I2C_Read... [02:52:02]Read from MH i2c: D1 01 00 FD 4E 00 1C [02:52:02]Write to MH i2c: 01 00 00 FE 4E 4C [02:52:02]Write i2c OK [02:52:02]MH_I2C_Read... [02:52:02]OFD Sender: No OFD packet to send [02:52:02]*** Cut start [02:52:02]*** Purtial cut [02:52:02]*** Stage 1: CUTSNS_PIN = 1 [02:52:03]Read from MH i2c: 01 [02:52:03]MH_I2C_Read... [02:52:03]*** Stop cut motor [02:52:03]*** Cut end [02:52:03]Read from MH i2c: 01 07 00 [02:52:03]MH_I2C_Read... [02:52:03]Read from MH i2c: 01 07 00 FE 4E 00 00 00 00 00 FF 0F 61 [02:52:03]process_action close_receipt done [02:52:03]requested_data is exist [02:52:03]produce_requested_data [02:52:03]requested_item fm.sn is exist - process it [02:52:03]wFMCommunicate request_size=4 [02:52:03]MH_SAM_APDU [02:52:03]CAPDU: 80 11 00 00 [02:52:03]Write to MH i2c: E2 08 00 FF 4E 80 11 00 00 00 00 00 00 C7 [02:52:03]Write i2c OK [02:52:03]MH_I2C_Read... [02:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:03]Read from MH i2c: E2 [02:52:03]MH_I2C_Read... [02:52:03]Read from MH i2c: E2 17 00 [02:52:03]MH_I2C_Read... [02:52:03]Read from MH i2c: E2 17 00 FF 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 27 [02:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:52:03]wFMCommunicate OK [02:52:03]requested_item fd.num is exist - process it [02:52:03]SAM_PROTO_GetFieldsCounters [02:52:03]wFMCommunicate request_size=4 [02:52:03]MH_SAM_APDU [02:52:03]CAPDU: 80 13 00 00 [02:52:03]Write to MH i2c: E2 08 00 00 4F 80 13 00 00 00 00 00 00 CB [02:52:03]Write i2c OK [02:52:03]MH_I2C_Read... [02:52:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:52:03]Read from MH i2c: E2 [02:52:03]MH_I2C_Read... [02:52:03]Read from MH i2c: E2 62 00 [02:52:03]MH_I2C_Read... [02:52:03]Read from MH i2c: E2 62 00 00 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B2 7C 02 00 0E 04 04 00 D0 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 35 [02:52:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B2 7C 02 00 0E 04 04 00 D0 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:52:03]wFMCommunicate OK [02:52:03]SAM_PROTO_GetFieldsCounters done [02:52:03]requested_item shift.num is exist - process it [02:52:03]requested_item shift.opened is exist - process it [02:52:03]req_shift_opened [02:52:03]FM_GetShiftState [02:52:03]SAM_PROTO_GetShiftState [02:52:03]wFMCommunicate request_size=4 [02:52:03]MH_SAM_APDU [02:52:03]CAPDU: 80 13 01 00 [02:52:03]Write to MH i2c: E2 08 00 01 4F 80 13 01 00 00 00 00 00 CD [02:52:03]Write i2c OK [02:52:03]MH_I2C_Read... [02:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:03]Read from MH i2c: E2 [02:52:03]MH_I2C_Read... [02:52:03]Read from MH i2c: E2 0E 00 [02:52:03]MH_I2C_Read... [02:52:03]Read from MH i2c: E2 0E 00 01 4F 00 09 00 01 45 67 94 66 00 00 00 00 90 00 7F [02:52:03]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [02:52:03]wFMCommunicate OK [02:52:03]SAM_PROTO_GetShiftState done [02:52:03]FM_GetShiftState done [02:52:03]req_shift_opened done [02:52:03]requested_item shift.open_date is exist - process it [02:52:03]req_shift_open_date [02:52:03]req_shift_open_date done [02:52:03]produce_requested_data done [02:52:03]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162994,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [02:52:03]process_action_free close_receipt [02:52:03]json_value_free [02:52:03]json_value_free done [02:52:03]process_json_proto returns [02:52:03]Send response to host [02:52:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162994,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [02:52:03]free response buf [02:52:03]execute_script done [02:52:03]execute_script returns [02:52:03]free content buf [02:52:03]Sock 7.Close socket [02:52:03]Sock 7.Thread stoped [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52: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:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:56:59]accept exits with 9 [02:56:59]New connection [02:56:59]New thread 3066735972 created [02:56:59]Thread 3066879332 joined [02:56:59]Waiting for new connection... [02:56:59] Sock 9.Parse request [02:56:59]Sock 9.Check first char [02:56:59]Sock 9.First char is OK [02:56:59]request: POST /json_proto HTTP/1.0 [02:56:59]Method: POST [02:56:59]URL: /json_proto [02:56:59]Method is POST - this is cgi request [02:56:59]url: /json_proto [02:56:59]query_string will be loaded in cgi processing [02:56:59]execute_cgi json_proto POST (null) [02:56:59]execute_cgi path=json_proto method=POST [02:56:59]POST find Content-Length [02:56:59]Host: 172.17.39.67:8080 [02:56:59]Content-Length: 842 [02:56:59]Content-Type: application/json [02:56:59] [02:56:59]POST finish read [02:56:59]Found Content-Length = 842 [02:56:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:56:59]execute_script... [02:56: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)1319612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:56:59]POST & json_proto [02:56:59]process_json_proto [02:56:59]json parsed OK: [02:56:59]protocol is kg_v1.0 [02:56:59]action value=close_receipt [02:56:59]process_action close_receipt [02:56:59]cmd_close_receipt [02:56:59]MH_GetDate [02:56:59]Write to MH i2c: F0 00 00 02 4F 40 [02:56:59]Write i2c OK [02:56:59]MH_I2C_Read... [02:56:59]Read from MH i2c: F0 [02:56:59]MH_I2C_Read... [02:56:59]Read from MH i2c: F0 09 00 [02:56:59]MH_I2C_Read... [02:56:59]Read from MH i2c: F0 09 00 02 4F 00 FF 8F 94 66 B6 85 93 66 05 [02:56:59]GetLastDocTimeStamp 1721011923 [02:56:59]current date 1721012223 [02:56:59]FM_GetShiftState [02:56:59]SAM_PROTO_GetShiftState [02:56:59]wFMCommunicate request_size=4 [02:56:59]MH_SAM_APDU [02:56:59]CAPDU: 80 13 01 00 [02:56:59]Write to MH i2c: E2 08 00 03 4F 80 13 01 00 00 00 00 00 CF [02:56:59]Write i2c OK [02:56:59]MH_I2C_Read... [02:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:56:59]Read from MH i2c: E2 [02:56:59]MH_I2C_Read... [02:56:59]Read from MH i2c: E2 0E 00 [02:56:59]MH_I2C_Read... [02:56:59]Read from MH i2c: E2 0E 00 03 4F 00 09 00 01 45 67 94 66 00 00 00 00 90 00 81 [02:56:59]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [02:56:59]wFMCommunicate OK [02:56:59]SAM_PROTO_GetShiftState done [02:56:59]FM_GetShiftState done [02:56:59]opened in 1721001797 [02:56:59]opened+sec_in_day 1721088197 [02:56:59]quantity*price = 66300 [02:56:59]sum+1 = 66301 [02:56:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 0.00 Безнал.: 663.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 19 15.07.2024 02:57 Смена: 464 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162995 ФПД: 267344288448011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T025703&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162995&fm=267344288448011&tin=02508201610067®Number=0000000000090858&sum=66300 [02:57:00]StoreToDocumentArchive [02:57:00]shift 464 fd 162995 [02:57:00]save to /storage/0464/doc_00162995 [02:57:00]save last doc name /storage/0464/doc_00162995 to /storage/kkm_last_doc_name [02:57:00]save OK [02:57:00]Clear old archive folders... [02:57:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:57:00]tlvbuf is 013F0F00 [02:57:00]SAM_PROTO_ClearQueue [02:57:00]wFMCommunicate request_size=4 [02:57:00]MH_SAM_APDU [02:57:00]CAPDU: 80 09 00 00 [02:57:00]Write to MH i2c: E2 08 00 10 4F 80 09 00 00 00 00 00 00 D1 [02:57:00]Write i2c OK [02:57:00]MH_I2C_Read... [02:57:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:57:00]Read from MH i2c: E2 [02:57:00]MH_I2C_Read... [02:57:00]Read from MH i2c: E2 03 00 [02:57:00]MH_I2C_Read... [02:57:00]Read from MH i2c: E2 03 00 10 4F 00 90 00 D3 [02:57:00]RAPDU: 90 00 [02:57:00]wFMCommunicate OK [02:57:00]SAM_PROTO_ClearQueue done [02:57:00]KKMCreateOFDPacket [02:57:00]OFDProtocolAddRootSTLVToBuf [02:57:00]FM_MakeSignedData [02:57:00]FM_MakeSignedData [02:57:00]SAM_PROTO_SignData [02:57:00]wFMCommunicate request_size=4 [02:57:00]MH_SAM_APDU [02:57:00]CAPDU: 80 0D 01 02 [02:57:00]Write to MH i2c: E2 08 00 11 4F 80 0D 01 02 00 00 00 00 D9 [02:57:00]Write i2c OK [02:57:00]MH_I2C_Read... [02:57:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:57:00]Read from MH i2c: E2 [02:57:00]MH_I2C_Read... [02:57:00]Read from MH i2c: E2 03 00 [02:57:00]MH_I2C_Read... [02:57:00]Read from MH i2c: E2 03 00 11 4F 00 90 00 D4 [02:57:00]RAPDU: 90 00 [02:57:00]wFMCommunicate OK [02:57:00]wFMCommunicate request_size=255 [02:57:00]MH_SAM_APDU [02:57: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 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FF 8F 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7C 02 00 35 04 06 00 F3 [02:57:00]Write to MH i2c: E2 02 01 12 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FF 8F 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7C 02 00 35 04 06 00 F3 00 00 A1 [02:57:00]Write i2c OK [02:57:00]MH_I2C_Read... [02:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:57:00]Read from MH i2c: E2 [02:57:00]MH_I2C_Read... [02:57:00]Read from MH i2c: E2 03 00 [02:57:00]MH_I2C_Read... [02:57:00]Read from MH i2c: E2 03 00 12 4F 00 90 00 D5 [02:57:00]RAPDU: 90 00 [02:57:00]wFMCommunicate OK [02:57:00]wFMCommunicate request_size=10 [02:57:00]MH_SAM_APDU [02:57:00]CAPDU: 80 0D 02 02 05 25 F1 58 7E 0B [02:57:00]Write to MH i2c: E2 0D 00 13 4F 80 0D 02 02 05 00 25 F1 58 7E 0B 00 00 DD [02:57:00]Write i2c OK [02:57:00]MH_I2C_Read... [02:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:57:01]Read from MH i2c: E2 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: E2 03 00 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: E2 03 00 13 4F 00 90 00 D6 [02:57:01]RAPDU: 90 00 [02:57:01]wFMCommunicate OK [02:57:01]wFMCommunicate request_size=4 [02:57:01]MH_SAM_APDU [02:57:01]CAPDU: 80 0D 03 02 [02:57:01]Write to MH i2c: E2 08 00 14 4F 80 0D 03 02 00 00 00 00 DE [02:57:01]Write i2c OK [02:57:01]MH_I2C_Read... [02:57:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:57:01]Read from MH i2c: E2 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: E2 0B 00 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: E2 0B 00 14 4F 00 B2 F2 8B F2 41 B6 6E ED 90 00 52 [02:57:01]RAPDU: B2 F2 8B F2 41 B6 6E ED 90 00 [02:57:01]wFMCommunicate OK [02:57:01]SAM_PROTO_SignData done [02:57:01]FM_MakeSignedData done [02:57:01]CreateOFDProtocolMessage [02:57:01]wFMCommunicate request_size=4 [02:57:01]MH_SAM_APDU [02:57:01]CAPDU: 80 11 00 00 [02:57:01]Write to MH i2c: E2 08 00 15 4F 80 11 00 00 00 00 00 00 DE [02:57:01]Write i2c OK [02:57:01]MH_I2C_Read... [02:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:57:01]Read from MH i2c: E2 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: E2 17 00 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: E2 17 00 15 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3E [02:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:57:01]wFMCommunicate OK [02:57:01]CreateOFDProtocolMessage done [02:57:01]OFDSenderStorePacket 162995 [02:57:01]StoreOFDPacket docnum=162995 [02:57:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 1E 18 07 01 81 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FF 8F 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7C 02 00 35 04 06 00 F3 25 F1 58 7E 0B B2 F2 8B F2 41 B6 6E ED [02:57:01]CheckFolder [02:57:01]dirname=/storage/ofd_packets [02:57:01]CheckFolder done [02:57:01]ProducePacketName [02:57:01]name=ofd_packets/00162995 [02:57:01]NVStorageSaveData ofd_packets/00162995 [02:57:01]File name is /storage/ofd_packets/00162995 [02:57:01]Write 301 bytes [02:57:01]NVStorageSaveData done [02:57:01]OFDSenderStorePacket done [02:57:01]KKMCreateOFDPacket done [02:57:01]NVStorageSaveData kkm_last_timestamp [02:57:01]File name is /storage/kkm_last_timestamp [02:57:01]Write 4 bytes [02:57:01]NVStorageSaveData done [02:57:01]ExternCall_PrintAddStr [02:57:01]wPrintStart [02:57:01]Write to MH i2c: 01 00 00 16 4F 65 [02:57:01]Write i2c OK [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: 01 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: 01 07 00 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: 01 07 00 16 4F 00 00 00 00 00 FF 0F 7A [02:57:01]RasterBufferAndPrint [02:57:01]line Счет N : (1)1319612 [02:57:01]line ИНН: 02508201610067 [02:57:01]line Контрольно-Кассовый Чек [02:57:01]line ПРОДАЖА [02:57:01]line ТРК (МРК, ГНК) : 53 [02:57:01]line Товар: 2710124130 [02:57:01]line Аи-92-К-5 [02:57:01]line 10.000 * 66.30 [02:57:01]line = 663.00 [02:57:01]line НДС 12% НСП 1% [02:57:01]line > о реализуемом товаре [02:57:01]line ИТОГО: 663.00 [02:57:01]line НСП 1% : 5.87 [02:57:01]line НДС 12% : 70.41 [02:57:01]line Наличными: 0.00 [02:57:01]line Безнал.: 663.00 [02:57:01]line Место: АЗС № 140 "Партнер Нефть" [02:57:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:57:01]line СНО: Общий режим [02:57:01]line Чек 19 15.07.2024 02:57 [02:57:01]line Смена: 464 ФФД: 1.0 [02:57:01]line ЗНМ: 0300000129 [02:57:01]line РНМ: 0000000000090858 [02:57:01]line Версия ККМ: 001 [02:57:01]line Платежная система: АКБ Кыргызстан [02:57:01]line ФМ: 0000000000874899 [02:57:01]line ФД: 162995 [02:57:01]line ФПД: 267344288448011 [02:57:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T025703&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162995&fm=267344288448011&tin=02508201610067®Number=0000000000090858&sum=66300 [02:57:01]written 0, free lines is 4095 [02:57:01]OFD Sender: Processing packet 162995 [packets to send 106, broken 105] [02:57:01]ProducePacketName [02:57:01]name=ofd_packets/00162995 [02:57:01]OFD Sender: To server: pG, [02:57:01]CommunicateWithHost lk.salyk.kg:30040 [02:57:01]ConnectInit lk.salyk.kg [02:57:01]Connected sock=10 [02:57:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 1E 18 07 01 81 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FF 8F 94 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7C 02 00 35 04 06 00 F3 25 F1 58 7E 0B B2 F2 8B F2 41 B6 6E ED [02:57:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 06 21 47 00 57 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7C 02 00 F4 03 04 00 0B 3C 94 66 B6 04 01 00 00 1C 3A D5 67 C6 AA 6C AD [02:57:01]CommunicateWithHost err = 0 [02:57:01]CheckOFDResponse [02:57:01]1017 (14) - 77093643461234 [02:57:01]1041 (16) - 0000000000874899 [02:57:01]1040 (4) - 162995 [02:57:01]1012 (4) - 14.07.2024 20:58 [02:57:01]1206 (1) - 0 [02:57:01]OFD Sender: Remove packet 162995 [02:57:01]ProducePacketName [02:57:01]name=ofd_packets/00162995 [02:57:01]NVStorageDeleteData [02:57:01]Write to MH i2c: 01 00 00 40 4F 8F [02:57:01]Write i2c OK [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: 01 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: 01 07 00 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: 01 07 00 40 4F 00 00 00 00 00 F3 0C 95 [02:57:01]RasterBufferAndPrint [02:57:01]line [02:57:01]line [02:57:01]line [02:57:01]line [02:57:01]line [02:57:01]written 0, free lines is 3321 [02:57:01]MH_Cut [02:57:01]Write to MH i2c: D1 01 00 47 4F 01 68 [02:57:01]Write i2c OK [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: D1 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: D1 01 00 [02:57:01]MH_I2C_Read... [02:57:01]Read from MH i2c: D1 01 00 47 4F 00 67 [02:57:01]Write to MH i2c: 01 00 00 48 4F 97 [02:57:01]Write i2c OK [02:57:01]MH_I2C_Read... [02:57:02]OFD Sender: No OFD packet to send [02:57:02]*** Cut start [02:57:02]*** Purtial cut [02:57:02]*** CUTSNS_PIN = 0 [02:57:02]*** Stage 1: CUTSNS_PIN = 1 [02:57:04]Read from MH i2c: 01 [02:57:04]MH_I2C_Read... [02:57:04]*** Stop cut motor [02:57:04]*** Cut end [02:57:04]Read from MH i2c: 01 07 00 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: 01 07 00 48 4F 00 00 00 00 00 FF 0F AC [02:57:04]process_action close_receipt done [02:57:04]requested_data is exist [02:57:04]produce_requested_data [02:57:04]requested_item fm.sn is exist - process it [02:57:04]wFMCommunicate request_size=4 [02:57:04]MH_SAM_APDU [02:57:04]CAPDU: 80 11 00 00 [02:57:04]Write to MH i2c: E2 08 00 49 4F 80 11 00 00 00 00 00 00 12 [02:57:04]Write i2c OK [02:57:04]MH_I2C_Read... [02:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:57:04]Read from MH i2c: E2 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: E2 17 00 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: E2 17 00 49 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 72 [02:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:57:04]wFMCommunicate OK [02:57:04]requested_item fd.num is exist - process it [02:57:04]SAM_PROTO_GetFieldsCounters [02:57:04]wFMCommunicate request_size=4 [02:57:04]MH_SAM_APDU [02:57:04]CAPDU: 80 13 00 00 [02:57:04]Write to MH i2c: E2 08 00 4A 4F 80 13 00 00 00 00 00 00 15 [02:57:04]Write i2c OK [02:57:04]MH_I2C_Read... [02:57:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:57:04]Read from MH i2c: E2 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: E2 62 00 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: E2 62 00 4A 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B3 7C 02 00 0E 04 04 00 D0 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [02:57:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B3 7C 02 00 0E 04 04 00 D0 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:57:04]wFMCommunicate OK [02:57:04]SAM_PROTO_GetFieldsCounters done [02:57:04]requested_item shift.num is exist - process it [02:57:04]requested_item shift.opened is exist - process it [02:57:04]req_shift_opened [02:57:04]FM_GetShiftState [02:57:04]SAM_PROTO_GetShiftState [02:57:04]wFMCommunicate request_size=4 [02:57:04]MH_SAM_APDU [02:57:04]CAPDU: 80 13 01 00 [02:57:04]Write to MH i2c: E2 08 00 4B 4F 80 13 01 00 00 00 00 00 17 [02:57:04]Write i2c OK [02:57:04]MH_I2C_Read... [02:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:57:04]Read from MH i2c: E2 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: E2 0E 00 [02:57:04]MH_I2C_Read... [02:57:04]Read from MH i2c: E2 0E 00 4B 4F 00 09 00 01 45 67 94 66 00 00 00 00 90 00 C9 [02:57:04]RAPDU: 09 00 01 45 67 94 66 00 00 00 00 90 00 [02:57:04]wFMCommunicate OK [02:57:04]SAM_PROTO_GetShiftState done [02:57:04]FM_GetShiftState done [02:57:04]req_shift_opened done [02:57:04]requested_item shift.open_date is exist - process it [02:57:04]req_shift_open_date [02:57:04]req_shift_open_date done [02:57:04]produce_requested_data done [02:57:04]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162995,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797} [02:57:04]process_action_free close_receipt [02:57:04]json_value_free [02:57:04]json_value_free done [02:57:04]process_json_proto returns [02:57:04]Send response to host [02:57:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162995,"shift.num":464,"shift.opened":1,"shift.open_date":1721001797}}} [02:57:04]free response buf [02:57:04]execute_script done [02:57:04]execute_script returns [02:57:04]free content buf [02:57:04]Sock 9.Close socket [02:57:04]Sock 9.Thread stoped [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send